[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:10]OFD Sender: No OFD packet to send [03:27:15]OFD Sender: No OFD packet to send [03:27:20]OFD Sender: No OFD packet to send [03:27:25]OFD Sender: No OFD packet to send [03:27:30]OFD Sender: No OFD packet to send [03:27:35]OFD Sender: No OFD packet to send [03:27:40]OFD Sender: No OFD packet to send [03:27:45]OFD Sender: No OFD packet to send [03:27:50]OFD Sender: No OFD packet to send [03:27:55]OFD Sender: No OFD packet to send [03:28:00]OFD Sender: No OFD packet to send [03:28:05]OFD Sender: No OFD packet to send [03:28:10]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:35]OFD Sender: No OFD packet to send [03:28:40]OFD Sender: No OFD packet to send [03:28:45]OFD Sender: No OFD packet to send [03:28:50]OFD Sender: No OFD packet to send [03:28:55]OFD Sender: No OFD packet to send [03:29:00]OFD Sender: No OFD packet to send [03:29:05]OFD Sender: No OFD packet to send [03:29:10]OFD Sender: No OFD packet to send [03:29:15]OFD Sender: No OFD packet to send [03:29:20]OFD Sender: No OFD packet to send [03:29:25]OFD Sender: No OFD packet to send [03:29:30]OFD Sender: No OFD packet to send [03:29:35]OFD Sender: No OFD packet to send [03:29:40]OFD Sender: No OFD packet to send [03:29:45]OFD Sender: No OFD packet to send [03:29:50]OFD Sender: No OFD packet to send [03:29:55]OFD Sender: No OFD packet to send [03:30:00]OFD Sender: No OFD packet to send [03:30:05]OFD Sender: No OFD packet to send [03:30:10]OFD Sender: No OFD packet to send [03:30:15]OFD Sender: No OFD packet to send [03:30:20]OFD Sender: No OFD packet to send [03:30:25]OFD Sender: No OFD packet to send [03:30:30]OFD Sender: No OFD packet to send [03:30:35]OFD Sender: No OFD packet to send [03:30:40]OFD Sender: No OFD packet to send [03:30:45]OFD Sender: No OFD packet to send [03:30:50]OFD Sender: No OFD packet to send [03:30:55]OFD Sender: No OFD packet to send [03:31:00]OFD Sender: No OFD packet to send [03:31:05]OFD Sender: No OFD packet to send [03:31:10]OFD Sender: No OFD packet to send [03:31:15]OFD Sender: No OFD packet to send [03:31:20]OFD Sender: No OFD packet to send [03:31:25]OFD Sender: No OFD packet to send [03:31:30]OFD Sender: No OFD packet to send [03:31:35]OFD Sender: No OFD packet to send [03:31:40]OFD Sender: No OFD packet to send [03:31:45]OFD Sender: No OFD packet to send [03:31:50]OFD Sender: No OFD packet to send [03:31:55]OFD Sender: No OFD packet to send [03:32:00]OFD Sender: No OFD packet to send [03:32:05]OFD Sender: No OFD packet to send [03:32:10]OFD Sender: No OFD packet to send [03:32:15]OFD Sender: No OFD packet to send [03:32:20]OFD Sender: No OFD packet to send [03:32:25]OFD Sender: No OFD packet to send [03:32:30]OFD Sender: No OFD packet to send [03:32:35]OFD Sender: No OFD packet to send [03:32:40]OFD Sender: No OFD packet to send [03:32:45]OFD Sender: No OFD packet to send [03:32:50]OFD Sender: No OFD packet to send [03:32:55]OFD Sender: No OFD packet to send [03:33:00]OFD Sender: No OFD packet to send [03:33:05]OFD Sender: No OFD packet to send [03:33:10]OFD Sender: No OFD packet to send [03:33:15]OFD Sender: No OFD packet to send [03:33:20]OFD Sender: No OFD packet to send [03:33:25]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]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:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:56]OFD Sender: No OFD packet to send [03:46:01]OFD Sender: No OFD packet to send [03:46:06]OFD Sender: No OFD packet to send [03:46:11]OFD Sender: No OFD packet to send [03:46:16]OFD Sender: No OFD packet to send [03:46:21]OFD Sender: No OFD packet to send [03:46:26]OFD Sender: No OFD packet to send [03:46:31]OFD Sender: No OFD packet to send [03:46:36]OFD Sender: No OFD packet to send [03:46:41]OFD Sender: No OFD packet to send [03:46:46]OFD Sender: No OFD packet to send [03:46:51]OFD Sender: No OFD packet to send [03:46:56]OFD Sender: No OFD packet to send [03:47:01]OFD Sender: No OFD packet to send [03:47:06]OFD Sender: No OFD packet to send [03:47:11]OFD Sender: No OFD packet to send [03:47:16]OFD Sender: No OFD packet to send [03:47:21]OFD Sender: No OFD packet to send [03:47:26]OFD Sender: No OFD packet to send [03:47:31]OFD Sender: No OFD packet to send [03:47:36]OFD Sender: No OFD packet to send [03:47:41]OFD Sender: No OFD packet to send [03:47:46]OFD Sender: No OFD packet to send [03:47:51]OFD Sender: No OFD packet to send [03:47:56]OFD Sender: No OFD packet to send [03:48:01]OFD Sender: No OFD packet to send [03:48:06]OFD Sender: No OFD packet to send [03:48:11]OFD Sender: No OFD packet to send [03:48:16]OFD Sender: No OFD packet to send [03:48:21]OFD Sender: No OFD packet to send [03:48:26]OFD Sender: No OFD packet to send [03:48:31]OFD Sender: No OFD packet to send [03:48:36]OFD Sender: No OFD packet to send [03:48:41]OFD Sender: No OFD packet to send [03:48:46]OFD Sender: No OFD packet to send [03:48:51]OFD Sender: No OFD packet to send [03:48:56]OFD Sender: No OFD packet to send [03:49:01]OFD Sender: No OFD packet to send [03:49:06]OFD Sender: No OFD packet to send [03:49:11]OFD Sender: No OFD packet to send [03:49:16]OFD Sender: No OFD packet to send [03:49:21]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49:51]OFD Sender: No OFD packet to send [03:49:56]OFD Sender: No OFD packet to send [03:50:01]OFD Sender: No OFD packet to send [03:50:06]OFD Sender: No OFD packet to send [03:50:11]OFD Sender: No OFD packet to send [03:50:16]OFD Sender: No OFD packet to send [03:50:21]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:50:31]OFD Sender: No OFD packet to send [03:50:36]OFD Sender: No OFD packet to send [03:50:41]OFD Sender: No OFD packet to send [03:50:46]OFD Sender: No OFD packet to send [03:50:51]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]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]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:12]OFD Sender: No OFD packet to send [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06:42]OFD Sender: No OFD packet to send [04:06:47]OFD Sender: No OFD packet to send [04:06:52]OFD Sender: No OFD packet to send [04:06:57]OFD Sender: No OFD packet to send [04:07:02]OFD Sender: No OFD packet to send [04:07:07]OFD Sender: No OFD packet to send [04:07:12]OFD Sender: No OFD packet to send [04:07:17]OFD Sender: No OFD packet to send [04:07:22]OFD Sender: No OFD packet to send [04:07:27]OFD Sender: No OFD packet to send [04:07:32]OFD Sender: No OFD packet to send [04:07:37]OFD Sender: No OFD packet to send [04:07:42]OFD Sender: No OFD packet to send [04:07:47]OFD Sender: No OFD packet to send [04:07:52]OFD Sender: No OFD packet to send [04:07:57]OFD Sender: No OFD packet to send [04:08:02]OFD Sender: No OFD packet to send [04:08:07]OFD Sender: No OFD packet to send [04:08:12]OFD Sender: No OFD packet to send [04:08:17]OFD Sender: No OFD packet to send [04:08:22]OFD Sender: No OFD packet to send [04:08:27]OFD Sender: No OFD packet to send [04:08:32]OFD Sender: No OFD packet to send [04:08:37]OFD Sender: No OFD packet to send [04:08:42]OFD Sender: No OFD packet to send [04:08:47]OFD Sender: No OFD packet to send [04:08:52]OFD Sender: No OFD packet to send [04:08:57]OFD Sender: No OFD packet to send [04:09:02]OFD Sender: No OFD packet to send [04:09:07]OFD Sender: No OFD packet to send [04:09:12]OFD Sender: No OFD packet to send [04:09:17]OFD Sender: No OFD packet to send [04:09:22]OFD Sender: No OFD packet to send [04:09:27]OFD Sender: No OFD packet to send [04:09:32]OFD Sender: No OFD packet to send [04:09:37]OFD Sender: No OFD packet to send [04:09:42]OFD Sender: No OFD packet to send [04:09:47]OFD Sender: No OFD packet to send [04:09:52]OFD Sender: No OFD packet to send [04:09:57]OFD Sender: No OFD packet to send [04:10:02]OFD Sender: No OFD packet to send [04:10:07]OFD Sender: No OFD packet to send [04:10:12]OFD Sender: No OFD packet to send [04:10:17]OFD Sender: No OFD packet to send [04:10:22]OFD Sender: No OFD packet to send [04:10:27]OFD Sender: No OFD packet to send [04:10:32]OFD Sender: No OFD packet to send [04:10:37]OFD Sender: No OFD packet to send [04:10:42]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:22]OFD Sender: No OFD packet to send [04:11:27]OFD Sender: No OFD packet to send [04:11:32]OFD Sender: No OFD packet to send [04:11:37]OFD Sender: No OFD packet to send [04:11:42]OFD Sender: No OFD packet to send [04:11:47]OFD Sender: No OFD packet to send [04:11:52]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:12]OFD Sender: No OFD packet to send [04:14:17]OFD Sender: No OFD packet to send [04:14:22]OFD Sender: No OFD packet to send [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:47]OFD Sender: No OFD packet to send [04:14:52]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:15:02]OFD Sender: No OFD packet to send [04:15:07]OFD Sender: No OFD packet to send [04:15:12]OFD Sender: No OFD packet to send [04:15:17]OFD Sender: No OFD packet to send [04:15:22]OFD Sender: No OFD packet to send [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:37]OFD Sender: No OFD packet to send [04:15:42]OFD Sender: No OFD packet to send [04:15:47]OFD Sender: No OFD packet to send [04:15:52]OFD Sender: No OFD packet to send [04:15:57]OFD Sender: No OFD packet to send [04:16:02]OFD Sender: No OFD packet to send [04:16:07]OFD Sender: No OFD packet to send [04:16:12]OFD Sender: No OFD packet to send [04:16:17]OFD Sender: No OFD packet to send [04:16:22]OFD Sender: No OFD packet to send [04:16:27]OFD Sender: No OFD packet to send [04:16:32]OFD Sender: No OFD packet to send [04:16:37]OFD Sender: No OFD packet to send [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17:07]OFD Sender: No OFD packet to send [04:17:12]OFD Sender: No OFD packet to send [04:17:17]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:47]OFD Sender: No OFD packet to send [04:19:52]OFD Sender: No OFD packet to send [04:19:57]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:12]OFD Sender: No OFD packet to send [04:20:17]OFD Sender: No OFD packet to send [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:13]OFD Sender: No OFD packet to send [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:18]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:03]OFD Sender: No OFD packet to send [04:38:08]OFD Sender: No OFD packet to send [04:38:13]OFD Sender: No OFD packet to send [04:38:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57: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:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:30]OFD Sender: No OFD packet to send [04:59:35]OFD Sender: No OFD packet to send [04:59:40]OFD Sender: No OFD packet to send [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]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:04]accept exits with 7 [05:14:04]New connection [05:14:04]New thread 3067022692 created [05:14:04]Thread 3066879332 joined [05:14:04]Waiting for new connection... [05:14:04] Sock 7.Parse request [05:14:04]Sock 7.Check first char [05:14:04]Sock 7.First char is OK [05:14:04]request: POST /json_proto HTTP/1.0 [05:14:04]Method: POST [05:14:04]URL: /json_proto [05:14:04]Method is POST - this is cgi request [05:14:04]url: /json_proto [05:14:04]query_string will be loaded in cgi processing [05:14:04]execute_cgi json_proto POST (null) [05:14:04]execute_cgi path=json_proto method=POST [05:14:04]POST find Content-Length [05:14:04]Host: 172.17.46.131:8080 [05:14:04]Content-Length: 673 [05:14:04]Content-Type: application/json [05:14:04] [05:14:04]POST finish read [05:14:04]Found Content-Length = 673 [05:14:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412087", "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:14:04]execute_script... [05:14: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)412087", "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:14:04]POST & json_proto [05:14:04]process_json_proto [05:14:04]json parsed OK: [05:14:04]protocol is kg_v1.0 [05:14:04]action value=close_receipt [05:14:04]process_action close_receipt [05:14:04]cmd_close_receipt [05:14:04]MH_GetDate [05:14:04]Write to MH i2c: F0 00 00 7F 01 6F [05:14:04]Write i2c OK [05:14:04]MH_I2C_Read... [05:14:04]Read from MH i2c: F0 [05:14:04]MH_I2C_Read... [05:14:04]Read from MH i2c: F0 09 00 [05:14:04]MH_I2C_Read... [05:14:04]Read from MH i2c: F0 09 00 7F 01 00 9E 68 B5 67 7E 41 4F 65 0D [05:14:04]GetLastDocTimeStamp 1739933506 [05:14:04]current date 1739942046 [05:14:04]FM_GetShiftState [05:14:04]SAM_PROTO_GetShiftState [05:14:04]wFMCommunicate request_size=4 [05:14:04]MH_SAM_APDU [05:14:04]CAPDU: 80 13 01 00 [05:14:04]Write to MH i2c: E2 08 00 80 01 80 13 01 00 00 00 00 00 FE [05:14:04]Write i2c OK [05:14:04]MH_I2C_Read... [05:14:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:14:04]Read from MH i2c: E2 [05:14:04]MH_I2C_Read... [05:14:04]Read from MH i2c: E2 0E 00 [05:14:04]MH_I2C_Read... [05:14:04]Read from MH i2c: E2 0E 00 80 01 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 7D [05:14:04]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [05:14:04]wFMCommunicate OK [05:14:04]SAM_PROTO_GetShiftState done [05:14:04]FM_GetShiftState done [05:14:04]opened in 1739929631 [05:14:04]opened+sec_in_day 1740016031 [05:14:04]quantity*price = 50021 [05:14:04]sum+1 = 50022 [05:14:04]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 СНО: Общий режим Чек 3 19.02.2025 05:14 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186937 ФПД: 64345148347172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T051406&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186937&fm=64345148347172&tin=02508201610067®Number=0000000000091857&sum=50000 [05:14:06]StoreToDocumentArchive [05:14:06]shift 647 fd 186937 [05:14:06]save to /storage/0647/doc_00186937 [05:14:06]save last doc name /storage/0647/doc_00186937 to /storage/kkm_last_doc_name [05:14:06]save OK [05:14:06]Clear old archive folders... [05:14:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:14:06]tlvbuf is 005B9390 [05:14:06]SAM_PROTO_ClearQueue [05:14:06]wFMCommunicate request_size=4 [05:14:06]MH_SAM_APDU [05:14:06]CAPDU: 80 09 00 00 [05:14:06]Write to MH i2c: E2 08 00 8D 01 80 09 00 00 00 00 00 00 00 [05:14:06]Write i2c OK [05:14:06]MH_I2C_Read... [05:14:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:14:06]Read from MH i2c: E2 [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: E2 03 00 [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [05:14:06]RAPDU: 90 00 [05:14:06]wFMCommunicate OK [05:14:06]SAM_PROTO_ClearQueue done [05:14:06]KKMCreateOFDPacket [05:14:06]OFDProtocolAddRootSTLVToBuf [05:14:06]FM_MakeSignedData [05:14:06]FM_MakeSignedData [05:14:06]SAM_PROTO_SignData [05:14:06]wFMCommunicate request_size=4 [05:14:06]MH_SAM_APDU [05:14:06]CAPDU: 80 0D 01 02 [05:14:06]Write to MH i2c: E2 08 00 8E 01 80 0D 01 02 00 00 00 00 08 [05:14:06]Write i2c OK [05:14:06]MH_I2C_Read... [05:14:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:14:06]Read from MH i2c: E2 [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: E2 03 00 [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [05:14:06]RAPDU: 90 00 [05:14:06]wFMCommunicate OK [05:14:06]wFMCommunicate request_size=255 [05:14:06]MH_SAM_APDU [05:14:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 03 00 00 00 F4 03 04 00 9E 68 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 39 DA 02 00 35 04 06 00 3A 85 85 B5 [05:14:06]Write to MH i2c: E2 02 01 8F 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 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 03 00 00 00 F4 03 04 00 9E 68 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 39 DA 02 00 35 04 06 00 3A 85 85 B5 00 00 80 [05:14:06]Write i2c OK [05:14:06]MH_I2C_Read... [05:14:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:14:06]Read from MH i2c: E2 [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: E2 03 00 [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: E2 03 00 8F 01 00 90 00 04 [05:14:06]RAPDU: 90 00 [05:14:06]wFMCommunicate OK [05:14:06]wFMCommunicate request_size=7 [05:14:06]MH_SAM_APDU [05:14:06]CAPDU: 80 0D 02 02 02 D3 24 [05:14:06]Write to MH i2c: E2 0A 00 90 01 80 0D 02 02 02 00 D3 24 00 00 06 [05:14:06]Write i2c OK [05:14:06]MH_I2C_Read... [05:14:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:14:06]Read from MH i2c: E2 [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: E2 03 00 [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: E2 03 00 90 01 00 90 00 05 [05:14:06]RAPDU: 90 00 [05:14:06]wFMCommunicate OK [05:14:06]wFMCommunicate request_size=4 [05:14:06]MH_SAM_APDU [05:14:06]CAPDU: 80 0D 03 02 [05:14:06]Write to MH i2c: E2 08 00 91 01 80 0D 03 02 00 00 00 00 0D [05:14:06]Write i2c OK [05:14:06]MH_I2C_Read... [05:14:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:14:06]Read from MH i2c: E2 [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: E2 0B 00 [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: E2 0B 00 91 01 00 5A 18 B5 49 4C 60 DA B1 90 00 B5 [05:14:06]RAPDU: 5A 18 B5 49 4C 60 DA B1 90 00 [05:14:06]wFMCommunicate OK [05:14:06]SAM_PROTO_SignData done [05:14:06]FM_MakeSignedData done [05:14:06]CreateOFDProtocolMessage [05:14:06]wFMCommunicate request_size=4 [05:14:06]MH_SAM_APDU [05:14:06]CAPDU: 80 11 00 00 [05:14:06]Write to MH i2c: E2 08 00 92 01 80 11 00 00 00 00 00 00 0D [05:14:06]Write i2c OK [05:14:06]MH_I2C_Read... [05:14:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:14:06]Read from MH i2c: E2 [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: E2 17 00 [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: E2 17 00 92 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 60 [05:14:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [05:14:06]wFMCommunicate OK [05:14:06]CreateOFDProtocolMessage done [05:14:06]OFDSenderStorePacket 186937 [05:14:06]StoreOFDPacket docnum=186937 [05:14: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 0C 01 00 00 37 6C 04 01 D6 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 03 00 00 00 F4 03 04 00 9E 68 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 39 DA 02 00 35 04 06 00 3A 85 85 B5 D3 24 5A 18 B5 49 4C 60 DA B1 [05:14:06]CheckFolder [05:14:06]dirname=/storage/ofd_packets [05:14:06]CheckFolder done [05:14:06]ProducePacketName [05:14:06]name=ofd_packets/00186937 [05:14:06]NVStorageSaveData ofd_packets/00186937 [05:14:06]File name is /storage/ofd_packets/00186937 [05:14:06]Write 298 bytes [05:14:06]NVStorageSaveData done [05:14:06]OFDSenderStorePacket done [05:14:06]KKMCreateOFDPacket done [05:14:06]NVStorageSaveData kkm_last_timestamp [05:14:06]File name is /storage/kkm_last_timestamp [05:14:06]Write 4 bytes [05:14:06]NVStorageSaveData done [05:14:06]ExternCall_PrintAddStr [05:14:06]wPrintStart [05:14:06]Write to MH i2c: 01 00 00 93 01 94 [05:14:06]Write i2c OK [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: 01 [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: 01 07 00 [05:14:06]MH_I2C_Read... [05:14:06]Read from MH i2c: 01 07 00 93 01 00 00 00 00 00 FF 0F A9 [05:14:06]RasterBufferAndPrint [05:14:06]line Счет N : (1)412087 [05:14:06]line ИНН: 02508201610067 [05:14:06]line Контрольно-Кассовый Чек [05:14:06]line ПРОДАЖА [05:14:06]line ТРК (МРК, ГНК) : 5 [05:14:06]line Товар: 2710194210 [05:14:06]line ДТ-К-5 [05:14:06]line 6.890 * 72.60 [05:14:06]line = 500.21 [05:14:06]line НДС 12% НСП 1% [05:14:06]line > о реализуемом товаре [05:14:06]line ОКРУГЛЕНИЕ: -0.21 [05:14:06]line ИТОГО: 500.00 [05:14:06]line Внесено: 500.00 [05:14:06]line СДАЧА: 0.00 [05:14:06]line НСП 1% : 4.43 [05:14:06]line НДС 12% : 53.12 [05:14:06]line Наличными: 500.00 [05:14:06]line Безнал.: 0.00 [05:14:06]line Место: АЗС № 92 "Партнер Нефть" [05:14:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [05:14:06]line СНО: Общий режим [05:14:06]line Чек 3 19.02.2025 05:14 [05:14:06]line Смена: 647 ФФД: 1.0 [05:14:06]line ЗНМ: 0300000118 [05:14:06]line РНМ: 0000000000091857 [05:14:06]line Версия ККМ: 001 [05:14:06]line ФМ: 0000000000871826 [05:14:06]line ФД: 186937 [05:14:06]line ФПД: 64345148347172 [05:14:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T051406&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186937&fm=64345148347172&tin=02508201610067®Number=0000000000091857&sum=50000 [05:14:06]OFD Sender: Processing packet 186937 [packets to send 49, broken 48] [05:14:06]ProducePacketName [05:14:06]name=ofd_packets/00186937 [05:14:06]OFD Sender: To server: pG, [05:14:06]CommunicateWithHost lk.salyk.kg:30040 [05:14:06]ConnectInit lk.salyk.kg [05:14:06]written 0, free lines is 4095 [05:14:07]Connected sock=10 [05:14: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 0C 01 00 00 37 6C 04 01 D6 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 03 00 00 00 F4 03 04 00 9E 68 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 39 DA 02 00 35 04 06 00 3A 85 85 B5 D3 24 5A 18 B5 49 4C 60 DA B1 [05:14: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 B6 44 47 00 13 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 39 DA 02 00 F4 03 04 00 F3 0E B5 67 B6 04 01 00 00 D2 44 97 A7 12 90 11 10 [05:14:07]CommunicateWithHost err = 0 [05:14:07]CheckOFDResponse [05:14:07]1017 (14) - 77093643461234 [05:14:07]1041 (16) - 0000000000871826 [05:14:07]1040 (4) - 186937 [05:14:07]1012 (4) - 18.02.2025 22:51 [05:14:07]1206 (1) - 0 [05:14:07]OFD Sender: Remove packet 186937 [05:14:07]ProducePacketName [05:14:07]name=ofd_packets/00186937 [05:14:07]NVStorageDeleteData [05:14:07]Write to MH i2c: 01 00 00 BE 01 BF [05:14:07]Write i2c OK [05:14:07]MH_I2C_Read... [05:14:07]Read from MH i2c: 01 [05:14:07]MH_I2C_Read... [05:14:07]Read from MH i2c: 01 07 00 [05:14:07]MH_I2C_Read... [05:14:07]Read from MH i2c: 01 07 00 BE 01 00 00 00 00 00 DF 0C B1 [05:14:07]RasterBufferAndPrint [05:14:07]line [05:14:07]line [05:14:07]line [05:14:07]line [05:14:07]line [05:14:07]written 0, free lines is 3301 [05:14:07]MH_Cut [05:14:07]Write to MH i2c: D1 01 00 C5 01 01 98 [05:14:07]Write i2c OK [05:14:07]MH_I2C_Read... [05:14:07]Read from MH i2c: D1 [05:14:07]MH_I2C_Read... [05:14:07]Read from MH i2c: D1 01 00 [05:14:07]MH_I2C_Read... [05:14:07]Read from MH i2c: D1 01 00 C5 01 00 97 [05:14:07]Write to MH i2c: 01 00 00 C6 01 C7 [05:14:07]Write i2c OK [05:14:07]MH_I2C_Read... [05:14:07]OFD Sender: No OFD packet to send [05:14:08]*** Cut start [05:14:08]*** Partial cut [05:14:08]*** CUTSNS_PIN = 1 [05:14:08]*** CUTSNS_PIN = 0 [05:14:08]*** Brake cut motor [05:14:08]Read from MH i2c: 01 [05:14:08]MH_I2C_Read... [05:14:08]*** Stop cut motor [05:14:08]*** Cut end [05:14:08]Read from MH i2c: 01 07 00 [05:14:08]MH_I2C_Read... [05:14:08]Read from MH i2c: 01 07 00 C6 01 00 00 00 00 00 FF 0F DC [05:14:08]process_action close_receipt done [05:14:08]requested_data is exist [05:14:08]produce_requested_data [05:14:08]requested_item fm.sn is exist - process it [05:14:08]wFMCommunicate request_size=4 [05:14:08]MH_SAM_APDU [05:14:08]CAPDU: 80 11 00 00 [05:14:08]Write to MH i2c: E2 08 00 C7 01 80 11 00 00 00 00 00 00 42 [05:14:08]Write i2c OK [05:14:08]MH_I2C_Read... [05:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:14:08]Read from MH i2c: E2 [05:14:08]MH_I2C_Read... [05:14:08]Read from MH i2c: E2 17 00 [05:14:08]MH_I2C_Read... [05:14:08]Read from MH i2c: E2 17 00 C7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 95 [05:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [05:14:08]wFMCommunicate OK [05:14:08]requested_item fd.num is exist - process it [05:14:08]SAM_PROTO_GetFieldsCounters [05:14:08]wFMCommunicate request_size=4 [05:14:08]MH_SAM_APDU [05:14:08]CAPDU: 80 13 00 00 [05:14:08]Write to MH i2c: E2 08 00 C8 01 80 13 00 00 00 00 00 00 45 [05:14:08]Write i2c OK [05:14:08]MH_I2C_Read... [05:14:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:14:09]Read from MH i2c: E2 [05:14:09]MH_I2C_Read... [05:14:09]Read from MH i2c: E2 62 00 [05:14:09]MH_I2C_Read... [05:14:09]Read from MH i2c: E2 62 00 C8 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 39 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [05:14: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 39 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:14:09]wFMCommunicate OK [05:14:09]SAM_PROTO_GetFieldsCounters done [05:14:09]requested_item shift.num is exist - process it [05:14:09]requested_item shift.opened is exist - process it [05:14:09]req_shift_opened [05:14:09]FM_GetShiftState [05:14:09]SAM_PROTO_GetShiftState [05:14:09]wFMCommunicate request_size=4 [05:14:09]MH_SAM_APDU [05:14:09]CAPDU: 80 13 01 00 [05:14:09]Write to MH i2c: E2 08 00 C9 01 80 13 01 00 00 00 00 00 47 [05:14:09]Write i2c OK [05:14:09]MH_I2C_Read... [05:14:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:14:09]Read from MH i2c: E2 [05:14:09]MH_I2C_Read... [05:14:09]Read from MH i2c: E2 0E 00 [05:14:09]MH_I2C_Read... [05:14:09]Read from MH i2c: E2 0E 00 C9 01 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C6 [05:14:09]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [05:14:09]wFMCommunicate OK [05:14:09]SAM_PROTO_GetShiftState done [05:14:09]FM_GetShiftState done [05:14:09]req_shift_opened done [05:14:09]requested_item shift.open_date is exist - process it [05:14:09]req_shift_open_date [05:14:09]req_shift_open_date done [05:14:09]produce_requested_data done [05:14:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186937,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [05:14:09]process_action_free close_receipt [05:14:09]json_value_free [05:14:09]json_value_free done [05:14:09]process_json_proto returns [05:14:09]Send response to host [05:14:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186937,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [05:14:09]free response buf [05:14:09]execute_script done [05:14:09]execute_script returns [05:14:09]free content buf [05:14:09]Sock 7.Close socket [05:14:09]Sock 7.Thread stoped [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:45]accept exits with 9 [05:14:45]New connection [05:14:45]New thread 3066879332 created [05:14:45]Thread 3067022692 joined [05:14:45]Waiting for new connection... [05:14:45] Sock 9.Parse request [05:14:45]Sock 9.Check first char [05:14:45]Sock 9.First char is OK [05:14:45]request: POST /json_proto HTTP/1.0 [05:14:45]Method: POST [05:14:45]URL: /json_proto [05:14:45]Method is POST - this is cgi request [05:14:45]url: /json_proto [05:14:45]query_string will be loaded in cgi processing [05:14:45]execute_cgi json_proto POST (null) [05:14:45]execute_cgi path=json_proto method=POST [05:14:45]POST find Content-Length [05:14:45]Host: 172.17.46.131:8080 [05:14:45]Content-Length: 682 [05:14:45]Content-Type: application/json [05:14:45] [05:14:45]POST finish read [05:14:45]Found Content-Length = 682 [05:14:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412088", "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" ] } } [05:14:45]execute_script... [05:14: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)412088", "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" ] } } [05:14:45]POST & json_proto [05:14:45]process_json_proto [05:14:45]json parsed OK: [05:14:45]protocol is kg_v1.0 [05:14:45]action value=close_receipt [05:14:45]process_action close_receipt [05:14:45]cmd_close_receipt [05:14:45]MH_GetDate [05:14:45]Write to MH i2c: F0 00 00 CA 01 BA [05:14:45]Write i2c OK [05:14:45]MH_I2C_Read... [05:14:45]Read from MH i2c: F0 [05:14:45]MH_I2C_Read... [05:14:45]Read from MH i2c: F0 09 00 [05:14:45]MH_I2C_Read... [05:14:45]Read from MH i2c: F0 09 00 CA 01 00 C7 68 B5 67 7E 41 4F 65 81 [05:14:45]GetLastDocTimeStamp 1739942046 [05:14:45]current date 1739942087 [05:14:45]FM_GetShiftState [05:14:45]SAM_PROTO_GetShiftState [05:14:45]wFMCommunicate request_size=4 [05:14:45]MH_SAM_APDU [05:14:45]CAPDU: 80 13 01 00 [05:14:45]Write to MH i2c: E2 08 00 CB 01 80 13 01 00 00 00 00 00 49 [05:14:45]Write i2c OK [05:14:45]MH_I2C_Read... [05:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:14:45]Read from MH i2c: E2 [05:14:45]MH_I2C_Read... [05:14:45]Read from MH i2c: E2 0E 00 [05:14:45]MH_I2C_Read... [05:14:45]Read from MH i2c: E2 0E 00 CB 01 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C8 [05:14:45]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [05:14:45]wFMCommunicate OK [05:14:45]SAM_PROTO_GetShiftState done [05:14:45]FM_GetShiftState done [05:14:45]opened in 1739929631 [05:14:45]opened+sec_in_day 1740016031 [05:14:45]quantity*price = 100023 [05:14:45]sum+1 = 100025 [05:14: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 СНО: Общий режим Чек 4 19.02.2025 05:14 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186938 ФПД: 79323869496296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T051447&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186938&fm=79323869496296&tin=02508201610067®Number=0000000000091857&sum=100000 [05:14:46]StoreToDocumentArchive [05:14:46]shift 647 fd 186938 [05:14:46]save to /storage/0647/doc_00186938 [05:14:46]save last doc name /storage/0647/doc_00186938 to /storage/kkm_last_doc_name [05:14:46]save OK [05:14:46]Clear old archive folders... [05:14:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:14:46]tlvbuf is 005CB880 [05:14:46]SAM_PROTO_ClearQueue [05:14:46]wFMCommunicate request_size=4 [05:14:46]MH_SAM_APDU [05:14:46]CAPDU: 80 09 00 00 [05:14:46]Write to MH i2c: E2 08 00 D8 01 80 09 00 00 00 00 00 00 4B [05:14:46]Write i2c OK [05:14:46]MH_I2C_Read... [05:14:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:14:46]Read from MH i2c: E2 [05:14:46]MH_I2C_Read... [05:14:46]Read from MH i2c: E2 03 00 [05:14:46]MH_I2C_Read... [05:14:46]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [05:14:46]RAPDU: 90 00 [05:14:46]wFMCommunicate OK [05:14:46]SAM_PROTO_ClearQueue done [05:14:46]KKMCreateOFDPacket [05:14:46]OFDProtocolAddRootSTLVToBuf [05:14:46]FM_MakeSignedData [05:14:46]FM_MakeSignedData [05:14:46]SAM_PROTO_SignData [05:14:46]wFMCommunicate request_size=4 [05:14:46]MH_SAM_APDU [05:14:46]CAPDU: 80 0D 01 02 [05:14:46]Write to MH i2c: E2 08 00 D9 01 80 0D 01 02 00 00 00 00 53 [05:14:46]Write i2c OK [05:14:46]MH_I2C_Read... [05:14:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:14:46]Read from MH i2c: E2 [05:14:46]MH_I2C_Read... [05:14:46]Read from MH i2c: E2 03 00 [05:14:46]MH_I2C_Read... [05:14:46]Read from MH i2c: E2 03 00 D9 01 00 90 00 4E [05:14:46]RAPDU: 90 00 [05:14:46]wFMCommunicate OK [05:14:46]wFMCommunicate request_size=255 [05:14:46]MH_SAM_APDU [05:14: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 04 00 00 00 F4 03 04 00 C7 68 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 3A DA 02 00 35 04 06 00 48 [05:14:46]Write to MH i2c: E2 02 01 DA 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 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 04 00 00 00 F4 03 04 00 C7 68 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 3A DA 02 00 35 04 06 00 48 00 00 86 [05:14:46]Write i2c OK [05:14:46]MH_I2C_Read... [05:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:14:47]Read from MH i2c: E2 [05:14:47]MH_I2C_Read... [05:14:47]Read from MH i2c: E2 03 00 [05:14:47]MH_I2C_Read... [05:14:47]Read from MH i2c: E2 03 00 DA 01 00 90 00 4F [05:14:47]RAPDU: 90 00 [05:14:47]wFMCommunicate OK [05:14:47]wFMCommunicate request_size=10 [05:14:47]MH_SAM_APDU [05:14:47]CAPDU: 80 0D 02 02 05 25 07 10 43 E8 [05:14:47]Write to MH i2c: E2 0D 00 DB 01 80 0D 02 02 05 00 25 07 10 43 E8 00 00 C7 [05:14:47]Write i2c OK [05:14:47]MH_I2C_Read... [05:14:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:14:47]Read from MH i2c: E2 [05:14:47]MH_I2C_Read... [05:14:47]Read from MH i2c: E2 03 00 [05:14:47]MH_I2C_Read... [05:14:47]Read from MH i2c: E2 03 00 DB 01 00 90 00 50 [05:14:47]RAPDU: 90 00 [05:14:47]wFMCommunicate OK [05:14:47]wFMCommunicate request_size=4 [05:14:47]MH_SAM_APDU [05:14:47]CAPDU: 80 0D 03 02 [05:14:47]Write to MH i2c: E2 08 00 DC 01 80 0D 03 02 00 00 00 00 58 [05:14:47]Write i2c OK [05:14:47]MH_I2C_Read... [05:14:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:14:47]Read from MH i2c: E2 [05:14:47]MH_I2C_Read... [05:14:47]Read from MH i2c: E2 0B 00 [05:14:47]MH_I2C_Read... [05:14:47]Read from MH i2c: E2 0B 00 DC 01 00 CF D6 D6 DF FD 94 4B B9 90 00 48 [05:14:47]RAPDU: CF D6 D6 DF FD 94 4B B9 90 00 [05:14:47]wFMCommunicate OK [05:14:47]SAM_PROTO_SignData done [05:14:47]FM_MakeSignedData done [05:14:47]CreateOFDProtocolMessage [05:14:47]wFMCommunicate request_size=4 [05:14:47]MH_SAM_APDU [05:14:47]CAPDU: 80 11 00 00 [05:14:47]Write to MH i2c: E2 08 00 DD 01 80 11 00 00 00 00 00 00 58 [05:14:47]Write i2c OK [05:14:47]MH_I2C_Read... [05:14:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:14:47]Read from MH i2c: E2 [05:14:47]MH_I2C_Read... [05:14:47]Read from MH i2c: E2 17 00 [05:14:47]MH_I2C_Read... [05:14:47]Read from MH i2c: E2 17 00 DD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AB [05:14: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:14:47]wFMCommunicate OK [05:14:47]CreateOFDProtocolMessage done [05:14:47]OFDSenderStorePacket 186938 [05:14:47]StoreOFDPacket docnum=186938 [05:14: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 AA 0E 07 01 C1 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 04 00 00 00 F4 03 04 00 C7 68 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 3A DA 02 00 35 04 06 00 48 25 07 10 43 E8 CF D6 D6 DF FD 94 4B B9 [05:14:47]CheckFolder [05:14:47]dirname=/storage/ofd_packets [05:14:47]CheckFolder done [05:14:47]ProducePacketName [05:14:47]name=ofd_packets/00186938 [05:14:47]NVStorageSaveData ofd_packets/00186938 [05:14:47]File name is /storage/ofd_packets/00186938 [05:14:47]Write 301 bytes [05:14:47]NVStorageSaveData done [05:14:47]OFDSenderStorePacket done [05:14:47]KKMCreateOFDPacket done [05:14:47]NVStorageSaveData kkm_last_timestamp [05:14:47]File name is /storage/kkm_last_timestamp [05:14:47]Write 4 bytes [05:14:47]NVStorageSaveData done [05:14:47]ExternCall_PrintAddStr [05:14:47]wPrintStart [05:14:47]Write to MH i2c: 01 00 00 DE 01 DF [05:14:47]Write i2c OK [05:14:47]MH_I2C_Read... [05:14:47]Read from MH i2c: 01 [05:14:47]MH_I2C_Read... [05:14:47]Read from MH i2c: 01 07 00 [05:14:47]MH_I2C_Read... [05:14:47]Read from MH i2c: 01 07 00 DE 01 00 00 00 00 00 FF 0F F4 [05:14:47]RasterBufferAndPrint [05:14:47]line Счет N : (1)412088 [05:14:47]line ИНН: 02508201610067 [05:14:47]line Контрольно-Кассовый Чек [05:14:47]line ПРОДАЖА [05:14:47]line ТРК (МРК, ГНК) : 42 [05:14:47]line Товар: 2710124130 [05:14:47]line Аи-92-К-2 [05:14:47]line 15.580 * 64.20 [05:14:47]line = 1000.24 [05:14:47]line НДС 12% НСП 1% [05:14:47]line > о реализуемом товаре [05:14:47]line ОКРУГЛЕНИЕ: -0.24 [05:14:47]line ИТОГО: 1000.00 [05:14:47]line Внесено: 1000.00 [05:14:47]line СДАЧА: 0.00 [05:14:47]line НСП 1% : 8.85 [05:14:47]line НДС 12% : 106.22 [05:14:47]line Наличными: 1000.00 [05:14:47]line Безнал.: 0.00 [05:14:47]line Место: АЗС № 92 "Партнер Нефть" [05:14:47]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [05:14:47]line СНО: Общий режим [05:14:47]line Чек 4 19.02.2025 05:14 [05:14:47]line Смена: 647 ФФД: 1.0 [05:14:47]line ЗНМ: 0300000118 [05:14:47]line РНМ: 0000000000091857 [05:14:47]line Версия ККМ: 001 [05:14:47]line ФМ: 0000000000871826 [05:14:47]line ФД: 186938 [05:14:47]line ФПД: 79323869496296 [05:14:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T051447&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186938&fm=79323869496296&tin=02508201610067®Number=0000000000091857&sum=100000 [05:14:47]OFD Sender: Processing packet 186938 [packets to send 49, broken 48] [05:14:47]ProducePacketName [05:14:47]name=ofd_packets/00186938 [05:14:47]OFD Sender: To server: pG, [05:14:47]CommunicateWithHost lk.salyk.kg:30040 [05:14:47]ConnectInit lk.salyk.kg [05:14:47]written 0, free lines is 4095 [05:14:47]Connected sock=10 [05:14: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 AA 0E 07 01 C1 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 04 00 00 00 F4 03 04 00 C7 68 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 3A DA 02 00 35 04 06 00 48 25 07 10 43 E8 CF D6 D6 DF FD 94 4B B9 [05:14: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 D2 25 47 00 AA 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3A DA 02 00 F4 03 04 00 1C 0F B5 67 B6 04 01 00 00 41 88 9D 78 C7 59 07 57 [05:14:48]CommunicateWithHost err = 0 [05:14:48]CheckOFDResponse [05:14:48]1017 (14) - 77093643461234 [05:14:48]1041 (16) - 0000000000871826 [05:14:48]1040 (4) - 186938 [05:14:48]1012 (4) - 18.02.2025 22:52 [05:14:48]1206 (1) - 0 [05:14:48]OFD Sender: Remove packet 186938 [05:14:48]ProducePacketName [05:14:48]name=ofd_packets/00186938 [05:14:48]NVStorageDeleteData [05:14:48]Write to MH i2c: 01 00 00 09 02 0B [05:14:48]Write i2c OK [05:14:48]MH_I2C_Read... [05:14:48]Read from MH i2c: 01 [05:14:48]MH_I2C_Read... [05:14:48]Read from MH i2c: 01 07 00 [05:14:48]MH_I2C_Read... [05:14:48]Read from MH i2c: 01 07 00 09 02 00 00 00 00 00 F2 0C 10 [05:14:48]RasterBufferAndPrint [05:14:48]line [05:14:48]line [05:14:48]line [05:14:48]line [05:14:48]line [05:14:48]written 0, free lines is 3321 [05:14:48]MH_Cut [05:14:48]Write to MH i2c: D1 01 00 10 02 01 E4 [05:14:48]Write i2c OK [05:14:48]MH_I2C_Read... [05:14:48]Read from MH i2c: D1 [05:14:48]MH_I2C_Read... [05:14:48]Read from MH i2c: D1 01 00 [05:14:48]MH_I2C_Read... [05:14:48]Read from MH i2c: D1 01 00 10 02 00 E3 [05:14:48]Write to MH i2c: 01 00 00 11 02 13 [05:14:48]Write i2c OK [05:14:48]MH_I2C_Read... [05:14:48]OFD Sender: No OFD packet to send [05:14:48]*** Cut start [05:14:48]*** Partial cut [05:14:48]*** CUTSNS_PIN = 1 [05:14:48]*** CUTSNS_PIN = 0 [05:14:49]*** Brake cut motor [05:14:49]Read from MH i2c: 01 [05:14:49]MH_I2C_Read... [05:14:49]*** Stop cut motor [05:14:49]*** Cut end [05:14:49]Read from MH i2c: 01 07 00 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: 01 07 00 11 02 00 00 00 00 00 FF 0F 28 [05:14:49]process_action close_receipt done [05:14:49]requested_data is exist [05:14:49]produce_requested_data [05:14:49]requested_item fm.sn is exist - process it [05:14:49]wFMCommunicate request_size=4 [05:14:49]MH_SAM_APDU [05:14:49]CAPDU: 80 11 00 00 [05:14:49]Write to MH i2c: E2 08 00 12 02 80 11 00 00 00 00 00 00 8E [05:14:49]Write i2c OK [05:14:49]MH_I2C_Read... [05:14:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:14:49]Read from MH i2c: E2 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: E2 17 00 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: E2 17 00 12 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E1 [05:14:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [05:14:49]wFMCommunicate OK [05:14:49]requested_item fd.num is exist - process it [05:14:49]SAM_PROTO_GetFieldsCounters [05:14:49]wFMCommunicate request_size=4 [05:14:49]MH_SAM_APDU [05:14:49]CAPDU: 80 13 00 00 [05:14:49]Write to MH i2c: E2 08 00 13 02 80 13 00 00 00 00 00 00 91 [05:14:49]Write i2c OK [05:14:49]MH_I2C_Read... [05:14:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:14:49]Read from MH i2c: E2 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: E2 62 00 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: E2 62 00 13 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 3A DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [05:14: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 3A DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:14:49]wFMCommunicate OK [05:14:49]SAM_PROTO_GetFieldsCounters done [05:14:49]requested_item shift.num is exist - process it [05:14:49]requested_item shift.opened is exist - process it [05:14:49]req_shift_opened [05:14:49]FM_GetShiftState [05:14:49]SAM_PROTO_GetShiftState [05:14:49]wFMCommunicate request_size=4 [05:14:49]MH_SAM_APDU [05:14:49]CAPDU: 80 13 01 00 [05:14:49]Write to MH i2c: E2 08 00 14 02 80 13 01 00 00 00 00 00 93 [05:14:49]Write i2c OK [05:14:49]MH_I2C_Read... [05:14:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:14:49]Read from MH i2c: E2 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: E2 0E 00 [05:14:49]MH_I2C_Read... [05:14:49]Read from MH i2c: E2 0E 00 14 02 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 12 [05:14:49]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [05:14:49]wFMCommunicate OK [05:14:49]SAM_PROTO_GetShiftState done [05:14:49]FM_GetShiftState done [05:14:49]req_shift_opened done [05:14:49]requested_item shift.open_date is exist - process it [05:14:49]req_shift_open_date [05:14:49]req_shift_open_date done [05:14:49]produce_requested_data done [05:14:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186938,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [05:14:49]process_action_free close_receipt [05:14:49]json_value_free [05:14:49]json_value_free done [05:14:49]process_json_proto returns [05:14:49]Send response to host [05:14:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186938,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [05:14:49]free response buf [05:14:49]execute_script done [05:14:49]execute_script returns [05:14:49]free content buf [05:14:49]Sock 9.Close socket [05:14:49]Sock 9.Thread stoped [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:48]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:31]accept exits with 7 [05:35:31]New connection [05:35:31]New thread 3067022692 created [05:35:31]Thread 3066879332 joined [05:35:31]Waiting for new connection... [05:35:31] Sock 7.Parse request [05:35:31]Sock 7.Check first char [05:35:31]Sock 7.First char is OK [05:35:31]request: POST /json_proto HTTP/1.0 [05:35:31]Method: POST [05:35:31]URL: /json_proto [05:35:31]Method is POST - this is cgi request [05:35:31]url: /json_proto [05:35:31]query_string will be loaded in cgi processing [05:35:31]execute_cgi json_proto POST (null) [05:35:31]execute_cgi path=json_proto method=POST [05:35:31]POST find Content-Length [05:35:31]Host: 172.17.46.131:8080 [05:35:31]Content-Length: 682 [05:35:31]Content-Type: application/json [05:35:31] [05:35:31]POST finish read [05:35:31]Found Content-Length = 682 [05:35:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412089", "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" ] } } [05:35:31]execute_script... [05:35: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)412089", "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" ] } } [05:35:31]POST & json_proto [05:35:31]process_json_proto [05:35:31]json parsed OK: [05:35:31]protocol is kg_v1.0 [05:35:31]action value=close_receipt [05:35:31]process_action close_receipt [05:35:31]cmd_close_receipt [05:35:31]MH_GetDate [05:35:31]Write to MH i2c: F0 00 00 15 02 06 [05:35:31]Write i2c OK [05:35:31]MH_I2C_Read... [05:35:31]Read from MH i2c: F0 [05:35:31]MH_I2C_Read... [05:35:31]Read from MH i2c: F0 09 00 [05:35:31]MH_I2C_Read... [05:35:31]Read from MH i2c: F0 09 00 15 02 00 A4 6D B5 67 7E 41 4F 65 AF [05:35:31]GetLastDocTimeStamp 1739942087 [05:35:31]current date 1739943332 [05:35:31]FM_GetShiftState [05:35:31]SAM_PROTO_GetShiftState [05:35:31]wFMCommunicate request_size=4 [05:35:31]MH_SAM_APDU [05:35:31]CAPDU: 80 13 01 00 [05:35:31]Write to MH i2c: E2 08 00 16 02 80 13 01 00 00 00 00 00 95 [05:35:31]Write i2c OK [05:35:31]MH_I2C_Read... [05:35:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:35:31]Read from MH i2c: E2 [05:35:31]MH_I2C_Read... [05:35:31]Read from MH i2c: E2 0E 00 [05:35:31]MH_I2C_Read... [05:35:31]Read from MH i2c: E2 0E 00 16 02 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 14 [05:35:31]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [05:35:31]wFMCommunicate OK [05:35:31]SAM_PROTO_GetShiftState done [05:35:31]FM_GetShiftState done [05:35:31]opened in 1739929631 [05:35:31]opened+sec_in_day 1740016031 [05:35:31]quantity*price = 100012 [05:35:31]sum+1 = 100014 [05:35:31]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 СНО: Общий режим Чек 5 19.02.2025 05:35 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186939 ФПД: 147538251644929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T053532&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186939&fm=147538251644929&tin=02508201610067®Number=0000000000091857&sum=100000 [05:35:32]StoreToDocumentArchive [05:35:32]shift 647 fd 186939 [05:35:32]save to /storage/0647/doc_00186939 [05:35:32]save last doc name /storage/0647/doc_00186939 to /storage/kkm_last_doc_name [05:35:32]save OK [05:35:32]Clear old archive folders... [05:35:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:35:32]tlvbuf is 005B1580 [05:35:32]SAM_PROTO_ClearQueue [05:35:32]wFMCommunicate request_size=4 [05:35:32]MH_SAM_APDU [05:35:32]CAPDU: 80 09 00 00 [05:35:32]Write to MH i2c: E2 08 00 23 02 80 09 00 00 00 00 00 00 97 [05:35:32]Write i2c OK [05:35:32]MH_I2C_Read... [05:35:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:35:32]Read from MH i2c: E2 [05:35:32]MH_I2C_Read... [05:35:32]Read from MH i2c: E2 03 00 [05:35:32]MH_I2C_Read... [05:35:32]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [05:35:32]RAPDU: 90 00 [05:35:32]wFMCommunicate OK [05:35:32]SAM_PROTO_ClearQueue done [05:35:32]KKMCreateOFDPacket [05:35:32]OFDProtocolAddRootSTLVToBuf [05:35:32]FM_MakeSignedData [05:35:32]FM_MakeSignedData [05:35:32]SAM_PROTO_SignData [05:35:32]wFMCommunicate request_size=4 [05:35:32]MH_SAM_APDU [05:35:32]CAPDU: 80 0D 01 02 [05:35:32]Write to MH i2c: E2 08 00 24 02 80 0D 01 02 00 00 00 00 9F [05:35:32]Write i2c OK [05:35:32]MH_I2C_Read... [05:35:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:35:32]Read from MH i2c: E2 [05:35:32]MH_I2C_Read... [05:35:32]Read from MH i2c: E2 03 00 [05:35:32]MH_I2C_Read... [05:35:32]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [05:35:32]RAPDU: 90 00 [05:35:32]wFMCommunicate OK [05:35:32]wFMCommunicate request_size=255 [05:35:32]MH_SAM_APDU [05:35:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 05 00 00 00 F4 03 04 00 A4 6D 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 3B DA 02 00 35 04 06 00 86 [05:35:32]Write to MH i2c: E2 02 01 25 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 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 05 00 00 00 F4 03 04 00 A4 6D 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 3B DA 02 00 35 04 06 00 86 00 00 68 [05:35:32]Write i2c OK [05:35:32]MH_I2C_Read... [05:35:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:35:32]Read from MH i2c: E2 [05:35:32]MH_I2C_Read... [05:35:32]Read from MH i2c: E2 03 00 [05:35:32]MH_I2C_Read... [05:35:32]Read from MH i2c: E2 03 00 25 02 00 90 00 9B [05:35:32]RAPDU: 90 00 [05:35:32]wFMCommunicate OK [05:35:32]wFMCommunicate request_size=10 [05:35:32]MH_SAM_APDU [05:35:32]CAPDU: 80 0D 02 02 05 2F 6D 14 80 01 [05:35:32]Write to MH i2c: E2 0D 00 26 02 80 0D 02 02 05 00 2F 6D 14 80 01 00 00 DD [05:35:32]Write i2c OK [05:35:32]MH_I2C_Read... [05:35:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:35:32]Read from MH i2c: E2 [05:35:32]MH_I2C_Read... [05:35:32]Read from MH i2c: E2 03 00 [05:35:32]MH_I2C_Read... [05:35:32]Read from MH i2c: E2 03 00 26 02 00 90 00 9C [05:35:32]RAPDU: 90 00 [05:35:32]wFMCommunicate OK [05:35:32]wFMCommunicate request_size=4 [05:35:32]MH_SAM_APDU [05:35:32]CAPDU: 80 0D 03 02 [05:35:32]Write to MH i2c: E2 08 00 27 02 80 0D 03 02 00 00 00 00 A4 [05:35:32]Write i2c OK [05:35:32]MH_I2C_Read... [05:35:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:35:32]Read from MH i2c: E2 [05:35:32]MH_I2C_Read... [05:35:32]Read from MH i2c: E2 0B 00 [05:35:32]MH_I2C_Read... [05:35:32]Read from MH i2c: E2 0B 00 27 02 00 FB 56 12 0D 54 40 B5 71 90 00 CF [05:35:32]RAPDU: FB 56 12 0D 54 40 B5 71 90 00 [05:35:32]wFMCommunicate OK [05:35:32]SAM_PROTO_SignData done [05:35:32]FM_MakeSignedData done [05:35:32]CreateOFDProtocolMessage [05:35:32]wFMCommunicate request_size=4 [05:35:32]MH_SAM_APDU [05:35:32]CAPDU: 80 11 00 00 [05:35:32]Write to MH i2c: E2 08 00 28 02 80 11 00 00 00 00 00 00 A4 [05:35:32]Write i2c OK [05:35:32]MH_I2C_Read... [05:35:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:35:32]Read from MH i2c: E2 [05:35:32]MH_I2C_Read... [05:35:32]Read from MH i2c: E2 17 00 [05:35:32]MH_I2C_Read... [05:35:32]Read from MH i2c: E2 17 00 28 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F7 [05: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 [05:35:32]wFMCommunicate OK [05:35:32]CreateOFDProtocolMessage done [05:35:32]OFDSenderStorePacket 186939 [05:35:32]StoreOFDPacket docnum=186939 [05:35: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 BA 5C 07 01 D7 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 05 00 00 00 F4 03 04 00 A4 6D 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 3B DA 02 00 35 04 06 00 86 2F 6D 14 80 01 FB 56 12 0D 54 40 B5 71 [05:35:32]CheckFolder [05:35:32]dirname=/storage/ofd_packets [05:35:32]CheckFolder done [05:35:32]ProducePacketName [05:35:32]name=ofd_packets/00186939 [05:35:32]NVStorageSaveData ofd_packets/00186939 [05:35:32]File name is /storage/ofd_packets/00186939 [05:35:32]Write 301 bytes [05:35:32]NVStorageSaveData done [05:35:32]OFDSenderStorePacket done [05:35:32]KKMCreateOFDPacket done [05:35:32]NVStorageSaveData kkm_last_timestamp [05:35:32]File name is /storage/kkm_last_timestamp [05:35:32]Write 4 bytes [05:35:32]NVStorageSaveData done [05:35:32]ExternCall_PrintAddStr [05:35:32]wPrintStart [05:35:32]Write to MH i2c: 01 00 00 29 02 2B [05:35:32]Write i2c OK [05:35:32]MH_I2C_Read... [05:35:32]Read from MH i2c: 01 [05:35:32]MH_I2C_Read... [05:35:32]Read from MH i2c: 01 07 00 [05:35:32]MH_I2C_Read... [05:35:32]Read from MH i2c: 01 07 00 29 02 00 00 00 00 00 FF 0F 40 [05:35:32]RasterBufferAndPrint [05:35:32]line Счет N : (1)412089 [05:35:32]line ИНН: 02508201610067 [05:35:32]line Контрольно-Кассовый Чек [05:35:32]line ПРОДАЖА [05:35:32]line ТРК (МРК, ГНК) : 23 [05:35:32]line Товар: 2710124500 [05:35:32]line Аи-95-К-5 [05:35:32]line 13.910 * 71.90 [05:35:32]line = 1000.13 [05:35:32]line НДС 12% НСП 1% [05:35:32]line > о реализуемом товаре [05:35:32]line ОКРУГЛЕНИЕ: -0.13 [05:35:32]line ИТОГО: 1000.00 [05:35:32]line Внесено: 1000.00 [05:35:32]line СДАЧА: 0.00 [05:35:32]line НСП 1% : 8.85 [05:35:32]line НДС 12% : 106.21 [05:35:32]line Наличными: 1000.00 [05:35:32]line Безнал.: 0.00 [05:35:32]line Место: АЗС № 92 "Партнер Нефть" [05:35:32]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [05:35:32]line СНО: Общий режим [05:35:32]line Чек 5 19.02.2025 05:35 [05:35:32]line Смена: 647 ФФД: 1.0 [05:35:32]line ЗНМ: 0300000118 [05:35:32]line РНМ: 0000000000091857 [05:35:32]line Версия ККМ: 001 [05:35:32]line ФМ: 0000000000871826 [05:35:32]line ФД: 186939 [05:35:32]line ФПД: 147538251644929 [05:35:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T053532&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186939&fm=147538251644929&tin=02508201610067®Number=0000000000091857&sum=100000 [05:35:33]OFD Sender: Processing packet 186939 [packets to send 49, broken 48] [05:35:33]ProducePacketName [05:35:33]name=ofd_packets/00186939 [05:35:33]OFD Sender: To server: pG, [05:35:33]CommunicateWithHost lk.salyk.kg:30040 [05:35:33]ConnectInit lk.salyk.kg [05:35:33]written 0, free lines is 4095 [05:35:33]Connected sock=10 [05:35: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 BA 5C 07 01 D7 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 05 00 00 00 F4 03 04 00 A4 6D 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 3B DA 02 00 35 04 06 00 86 2F 6D 14 80 01 FB 56 12 0D 54 40 B5 71 [05:35: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 80 C6 47 00 82 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 3B DA 02 00 F4 03 04 00 F9 13 B5 67 B6 04 01 00 00 6F F9 8C 0E F2 77 F3 61 [05:35:33]CommunicateWithHost err = 0 [05:35:33]CheckOFDResponse [05:35:33]1017 (14) - 77093643461234 [05:35:33]1041 (16) - 0000000000871826 [05:35:33]1040 (4) - 186939 [05:35:33]1012 (4) - 18.02.2025 23:12 [05:35:33]1206 (1) - 0 [05:35:33]OFD Sender: Remove packet 186939 [05:35:33]ProducePacketName [05:35:33]name=ofd_packets/00186939 [05:35:33]NVStorageDeleteData [05:35:33]Write to MH i2c: 01 00 00 54 02 56 [05:35:33]Write i2c OK [05:35:33]MH_I2C_Read... [05:35:33]Read from MH i2c: 01 [05:35:33]MH_I2C_Read... [05:35:33]Read from MH i2c: 01 07 00 [05:35:33]MH_I2C_Read... [05:35:33]Read from MH i2c: 01 07 00 54 02 00 00 00 00 00 FB 0C 64 [05:35:33]RasterBufferAndPrint [05:35:33]line [05:35:33]line [05:35:33]line [05:35:33]line [05:35:33]line [05:35:33]written 0, free lines is 3330 [05:35:33]MH_Cut [05:35:33]Write to MH i2c: D1 01 00 5B 02 01 2F [05:35:33]Write i2c OK [05:35:33]MH_I2C_Read... [05:35:33]Read from MH i2c: D1 [05:35:33]MH_I2C_Read... [05:35:33]Read from MH i2c: D1 01 00 [05:35:33]MH_I2C_Read... [05:35:33]Read from MH i2c: D1 01 00 5B 02 00 2E [05:35:33]Write to MH i2c: 01 00 00 5C 02 5E [05:35:33]Write i2c OK [05:35:33]MH_I2C_Read... [05:35:33]OFD Sender: No OFD packet to send [05:35:34]*** Cut start [05:35:34]*** Partial cut [05:35:34]*** CUTSNS_PIN = 1 [05:35:34]*** CUTSNS_PIN = 0 [05:35:34]*** Brake cut motor [05:35:34]Read from MH i2c: 01 [05:35:34]MH_I2C_Read... [05:35:34]*** Stop cut motor [05:35:34]*** Cut end [05:35:34]Read from MH i2c: 01 07 00 [05:35:34]MH_I2C_Read... [05:35:34]Read from MH i2c: 01 07 00 5C 02 00 00 00 00 00 FF 0F 73 [05:35:34]process_action close_receipt done [05:35:34]requested_data is exist [05:35:34]produce_requested_data [05:35:34]requested_item fm.sn is exist - process it [05:35:34]wFMCommunicate request_size=4 [05:35:34]MH_SAM_APDU [05:35:34]CAPDU: 80 11 00 00 [05:35:34]Write to MH i2c: E2 08 00 5D 02 80 11 00 00 00 00 00 00 D9 [05:35:34]Write i2c OK [05:35:34]MH_I2C_Read... [05:35:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:35:35]Read from MH i2c: E2 [05:35:35]MH_I2C_Read... [05:35:35]Read from MH i2c: E2 17 00 [05:35:35]MH_I2C_Read... [05:35:35]Read from MH i2c: E2 17 00 5D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2C [05:35:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [05:35:35]wFMCommunicate OK [05:35:35]requested_item fd.num is exist - process it [05:35:35]SAM_PROTO_GetFieldsCounters [05:35:35]wFMCommunicate request_size=4 [05:35:35]MH_SAM_APDU [05:35:35]CAPDU: 80 13 00 00 [05:35:35]Write to MH i2c: E2 08 00 5E 02 80 13 00 00 00 00 00 00 DC [05:35:35]Write i2c OK [05:35:35]MH_I2C_Read... [05:35:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:35:35]Read from MH i2c: E2 [05:35:35]MH_I2C_Read... [05:35:35]Read from MH i2c: E2 62 00 [05:35:35]MH_I2C_Read... [05:35:35]Read from MH i2c: E2 62 00 5E 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 3B DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [05:35:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3B DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:35:35]wFMCommunicate OK [05:35:35]SAM_PROTO_GetFieldsCounters done [05:35:35]requested_item shift.num is exist - process it [05:35:35]requested_item shift.opened is exist - process it [05:35:35]req_shift_opened [05:35:35]FM_GetShiftState [05:35:35]SAM_PROTO_GetShiftState [05:35:35]wFMCommunicate request_size=4 [05:35:35]MH_SAM_APDU [05:35:35]CAPDU: 80 13 01 00 [05:35:35]Write to MH i2c: E2 08 00 5F 02 80 13 01 00 00 00 00 00 DE [05:35:35]Write i2c OK [05:35:35]MH_I2C_Read... [05:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:35:35]Read from MH i2c: E2 [05:35:35]MH_I2C_Read... [05:35:35]Read from MH i2c: E2 0E 00 [05:35:35]MH_I2C_Read... [05:35:35]Read from MH i2c: E2 0E 00 5F 02 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 5D [05:35:35]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [05:35:35]wFMCommunicate OK [05:35:35]SAM_PROTO_GetShiftState done [05:35:35]FM_GetShiftState done [05:35:35]req_shift_opened done [05:35:35]requested_item shift.open_date is exist - process it [05:35:35]req_shift_open_date [05:35:35]req_shift_open_date done [05:35:35]produce_requested_data done [05:35:35]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186939,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [05:35:35]process_action_free close_receipt [05:35:35]json_value_free [05:35:35]json_value_free done [05:35:35]process_json_proto returns [05:35:35]Send response to host [05:35:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186939,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [05:35:35]free response buf [05:35:35]execute_script done [05:35:35]execute_script returns [05:35:35]free content buf [05:35:35]Sock 7.Close socket [05:35:35]Sock 7.Thread stoped [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:49]accept exits with 9 [05:36:49]New connection [05:36:49]New thread 3066879332 created [05:36:49]Thread 3067022692 joined [05:36:49]Waiting for new connection... [05:36:49] Sock 9.Parse request [05:36:49]Sock 9.Check first char [05:36:49]Sock 9.First char is OK [05:36:49]request: POST /json_proto HTTP/1.0 [05:36:49]Method: POST [05:36:49]URL: /json_proto [05:36:49]Method is POST - this is cgi request [05:36:49]url: /json_proto [05:36:49]query_string will be loaded in cgi processing [05:36:49]execute_cgi json_proto POST (null) [05:36:49]execute_cgi path=json_proto method=POST [05:36:49]POST find Content-Length [05:36:49]Host: 172.17.46.131:8080 [05:36:49]Content-Length: 677 [05:36:49]Content-Type: application/json [05:36:49] [05:36:49]POST finish read [05:36:49]Found Content-Length = 677 [05:36:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412090", "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" ] } } [05:36:49]execute_script... [05:36: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)412090", "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" ] } } [05:36:49]POST & json_proto [05:36:49]process_json_proto [05:36:49]json parsed OK: [05:36:49]protocol is kg_v1.0 [05:36:49]action value=close_receipt [05:36:49]process_action close_receipt [05:36:49]cmd_close_receipt [05:36:49]MH_GetDate [05:36:49]Write to MH i2c: F0 00 00 60 02 51 [05:36:49]Write i2c OK [05:36:49]MH_I2C_Read... [05:36:49]Read from MH i2c: F0 [05:36:49]MH_I2C_Read... [05:36:49]Read from MH i2c: F0 09 00 [05:36:49]MH_I2C_Read... [05:36:49]Read from MH i2c: F0 09 00 60 02 00 F3 6D B5 67 7E 41 4F 65 49 [05:36:49]GetLastDocTimeStamp 1739943332 [05:36:49]current date 1739943411 [05:36:49]FM_GetShiftState [05:36:49]SAM_PROTO_GetShiftState [05:36:49]wFMCommunicate request_size=4 [05:36:49]MH_SAM_APDU [05:36:49]CAPDU: 80 13 01 00 [05:36:49]Write to MH i2c: E2 08 00 61 02 80 13 01 00 00 00 00 00 E0 [05:36:49]Write i2c OK [05:36:49]MH_I2C_Read... [05:36:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:36:49]Read from MH i2c: E2 [05:36:49]MH_I2C_Read... [05:36:49]Read from MH i2c: E2 0E 00 [05:36:49]MH_I2C_Read... [05:36:49]Read from MH i2c: E2 0E 00 61 02 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 5F [05:36:49]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [05:36:49]wFMCommunicate OK [05:36:49]SAM_PROTO_GetShiftState done [05:36:49]FM_GetShiftState done [05:36:49]opened in 1739929631 [05:36:49]opened+sec_in_day 1740016031 [05:36:49]quantity*price = 30045 [05:36:49]sum+1 = 30047 [05:36:49]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 СНО: Общий режим Чек 6 19.02.2025 05:36 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186940 ФПД: 126578066278246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T053651&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186940&fm=126578066278246&tin=02508201610067®Number=0000000000091857&sum=30000 [05:36:50]StoreToDocumentArchive [05:36:50]shift 647 fd 186940 [05:36:50]save to /storage/0647/doc_00186940 [05:36:50]save last doc name /storage/0647/doc_00186940 to /storage/kkm_last_doc_name [05:36:50]save OK [05:36:50]Clear old archive folders... [05:36:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:36:50]tlvbuf is 005BA0F0 [05:36:50]SAM_PROTO_ClearQueue [05:36:50]wFMCommunicate request_size=4 [05:36:50]MH_SAM_APDU [05:36:50]CAPDU: 80 09 00 00 [05:36:50]Write to MH i2c: E2 08 00 6E 02 80 09 00 00 00 00 00 00 E2 [05:36:50]Write i2c OK [05:36:50]MH_I2C_Read... [05:36:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:36:50]Read from MH i2c: E2 [05:36:50]MH_I2C_Read... [05:36:50]Read from MH i2c: E2 03 00 [05:36:50]MH_I2C_Read... [05:36:50]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [05:36:50]RAPDU: 90 00 [05:36:50]wFMCommunicate OK [05:36:50]SAM_PROTO_ClearQueue done [05:36:50]KKMCreateOFDPacket [05:36:50]OFDProtocolAddRootSTLVToBuf [05:36:50]FM_MakeSignedData [05:36:50]FM_MakeSignedData [05:36:50]SAM_PROTO_SignData [05:36:50]wFMCommunicate request_size=4 [05:36:50]MH_SAM_APDU [05:36:50]CAPDU: 80 0D 01 02 [05:36:50]Write to MH i2c: E2 08 00 6F 02 80 0D 01 02 00 00 00 00 EA [05:36:50]Write i2c OK [05:36:50]MH_I2C_Read... [05:36:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:36:50]Read from MH i2c: E2 [05:36:50]MH_I2C_Read... [05:36:50]Read from MH i2c: E2 03 00 [05:36:50]MH_I2C_Read... [05:36:50]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [05:36:50]RAPDU: 90 00 [05:36:50]wFMCommunicate OK [05:36:50]wFMCommunicate request_size=255 [05:36:50]MH_SAM_APDU [05:36: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 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 06 00 00 00 F4 03 04 00 F3 6D 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 3C DA 02 00 35 04 06 00 73 [05:36:50]Write to MH i2c: E2 02 01 70 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 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 06 00 00 00 F4 03 04 00 F3 6D 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 3C DA 02 00 35 04 06 00 73 00 00 BE [05:36:50]Write i2c OK [05:36:50]MH_I2C_Read... [05:36:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:36:50]Read from MH i2c: E2 [05:36:50]MH_I2C_Read... [05:36:50]Read from MH i2c: E2 03 00 [05:36:50]MH_I2C_Read... [05:36:50]Read from MH i2c: E2 03 00 70 02 00 90 00 E6 [05:36:50]RAPDU: 90 00 [05:36:50]wFMCommunicate OK [05:36:50]wFMCommunicate request_size=10 [05:36:50]MH_SAM_APDU [05:36:50]CAPDU: 80 0D 02 02 05 1F 40 AD 47 66 [05:36:50]Write to MH i2c: E2 0D 00 71 02 80 0D 02 02 05 00 1F 40 AD 47 66 00 00 B0 [05:36:50]Write i2c OK [05:36:50]MH_I2C_Read... [05:36:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:36:51]Read from MH i2c: E2 [05:36:51]MH_I2C_Read... [05:36:51]Read from MH i2c: E2 03 00 [05:36:51]MH_I2C_Read... [05:36:51]Read from MH i2c: E2 03 00 71 02 00 90 00 E7 [05:36:51]RAPDU: 90 00 [05:36:51]wFMCommunicate OK [05:36:51]wFMCommunicate request_size=4 [05:36:51]MH_SAM_APDU [05:36:51]CAPDU: 80 0D 03 02 [05:36:51]Write to MH i2c: E2 08 00 72 02 80 0D 03 02 00 00 00 00 EF [05:36:51]Write i2c OK [05:36:51]MH_I2C_Read... [05:36:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:36:51]Read from MH i2c: E2 [05:36:51]MH_I2C_Read... [05:36:51]Read from MH i2c: E2 0B 00 [05:36:51]MH_I2C_Read... [05:36:51]Read from MH i2c: E2 0B 00 72 02 00 DB 7D 09 B7 85 E5 84 3A 90 00 30 [05:36:51]RAPDU: DB 7D 09 B7 85 E5 84 3A 90 00 [05:36:51]wFMCommunicate OK [05:36:51]SAM_PROTO_SignData done [05:36:51]FM_MakeSignedData done [05:36:51]CreateOFDProtocolMessage [05:36:51]wFMCommunicate request_size=4 [05:36:51]MH_SAM_APDU [05:36:51]CAPDU: 80 11 00 00 [05:36:51]Write to MH i2c: E2 08 00 73 02 80 11 00 00 00 00 00 00 EF [05:36:51]Write i2c OK [05:36:51]MH_I2C_Read... [05:36:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:36:51]Read from MH i2c: E2 [05:36:51]MH_I2C_Read... [05:36:51]Read from MH i2c: E2 17 00 [05:36:51]MH_I2C_Read... [05:36:51]Read from MH i2c: E2 17 00 73 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 42 [05:36:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [05:36:51]wFMCommunicate OK [05:36:51]CreateOFDProtocolMessage done [05:36:51]OFDSenderStorePacket 186940 [05:36:51]StoreOFDPacket docnum=186940 [05:36: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 F2 C5 07 01 33 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 06 00 00 00 F4 03 04 00 F3 6D 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 3C DA 02 00 35 04 06 00 73 1F 40 AD 47 66 DB 7D 09 B7 85 E5 84 3A [05:36:51]CheckFolder [05:36:51]dirname=/storage/ofd_packets [05:36:51]CheckFolder done [05:36:51]ProducePacketName [05:36:51]name=ofd_packets/00186940 [05:36:51]NVStorageSaveData ofd_packets/00186940 [05:36:51]File name is /storage/ofd_packets/00186940 [05:36:51]Write 301 bytes [05:36:51]NVStorageSaveData done [05:36:51]OFDSenderStorePacket done [05:36:51]KKMCreateOFDPacket done [05:36:51]NVStorageSaveData kkm_last_timestamp [05:36:51]File name is /storage/kkm_last_timestamp [05:36:51]Write 4 bytes [05:36:51]NVStorageSaveData done [05:36:51]ExternCall_PrintAddStr [05:36:51]wPrintStart [05:36:51]Write to MH i2c: 01 00 00 74 02 76 [05:36:51]Write i2c OK [05:36:51]MH_I2C_Read... [05:36:51]Read from MH i2c: 01 [05:36:51]MH_I2C_Read... [05:36:51]Read from MH i2c: 01 07 00 [05:36:51]MH_I2C_Read... [05:36:51]Read from MH i2c: 01 07 00 74 02 00 00 00 00 00 FF 0F 8B [05:36:51]RasterBufferAndPrint [05:36:51]line Счет N : (1)412090 [05:36:51]line ИНН: 02508201610067 [05:36:51]line Контрольно-Кассовый Чек [05:36:51]line ПРОДАЖА [05:36:51]line ТРК (МРК, ГНК) : 32 [05:36:51]line Товар: 2710124130 [05:36:51]line Аи-92-К-2 [05:36:51]line 4.680 * 64.20 [05:36:51]line = 300.46 [05:36:51]line НДС 12% НСП 1% [05:36:51]line > о реализуемом товаре [05:36:51]line ОКРУГЛЕНИЕ: -0.46 [05:36:51]line ИТОГО: 300.00 [05:36:51]line Внесено: 300.00 [05:36:51]line СДАЧА: 0.00 [05:36:51]line НСП 1% : 2.66 [05:36:51]line НДС 12% : 31.91 [05:36:51]line Наличными: 300.00 [05:36:51]line Безнал.: 0.00 [05:36:51]line Место: АЗС № 92 "Партнер Нефть" [05:36:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [05:36:51]line СНО: Общий режим [05:36:51]line Чек 6 19.02.2025 05:36 [05:36:51]line Смена: 647 ФФД: 1.0 [05:36:51]line ЗНМ: 0300000118 [05:36:51]line РНМ: 0000000000091857 [05:36:51]line Версия ККМ: 001 [05:36:51]line ФМ: 0000000000871826 [05:36:51]line ФД: 186940 [05:36:51]line ФПД: 126578066278246 [05:36:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T053651&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186940&fm=126578066278246&tin=02508201610067®Number=0000000000091857&sum=30000 [05:36:51]written 0, free lines is 4095 [05:36:51]OFD Sender: Processing packet 186940 [packets to send 49, broken 48] [05:36:51]ProducePacketName [05:36:51]name=ofd_packets/00186940 [05:36:51]OFD Sender: To server: pG, [05:36:51]CommunicateWithHost lk.salyk.kg:30040 [05:36:51]ConnectInit lk.salyk.kg [05:36:51]Connected sock=10 [05:36: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 F2 C5 07 01 33 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 06 00 00 00 F4 03 04 00 F3 6D 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 3C DA 02 00 35 04 06 00 73 1F 40 AD 47 66 DB 7D 09 B7 85 E5 84 3A [05:36:51]Write to MH i2c: 01 00 00 9F 02 A1 [05:36:51]Write i2c OK [05:36:51]MH_I2C_Read... [05:36:51]Read from MH i2c: 01 [05:36:51]MH_I2C_Read... [05:36:51]Read from MH i2c: 01 07 00 [05:36:51]MH_I2C_Read... [05:36:51]Read from MH i2c: 01 07 00 9F 02 00 00 00 00 00 FF 0C B3 [05:36:51]RasterBufferAndPrint [05:36:51]line [05:36:51]line [05:36:51]line [05:36:51]line [05:36:51]line [05:36:51]written 0, free lines is 3333 [05:36:51]MH_Cut [05:36:51]Write to MH i2c: D1 01 00 A6 02 01 7A [05:36:51]Write i2c OK [05:36:51]MH_I2C_Read... [05:36:51]Read from MH i2c: D1 [05:36:51]MH_I2C_Read... [05:36:51]Read from MH i2c: D1 01 00 [05:36:51]MH_I2C_Read... [05:36:51]Read from MH i2c: D1 01 00 A6 02 00 79 [05:36:51]Write to MH i2c: 01 00 00 A7 02 A9 [05:36:51]Write i2c OK [05:36:51]MH_I2C_Read... [05:36: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 88 6E 47 00 A0 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 3C DA 02 00 F4 03 04 00 47 14 B5 67 B6 04 01 00 00 3C A3 21 53 9C B8 5C 05 [05:36:51]CommunicateWithHost err = 0 [05:36:51]CheckOFDResponse [05:36:51]1017 (14) - 77093643461234 [05:36:51]1041 (16) - 0000000000871826 [05:36:51]1040 (4) - 186940 [05:36:51]1012 (4) - 18.02.2025 23:14 [05:36:51]1206 (1) - 0 [05:36:51]OFD Sender: Remove packet 186940 [05:36:51]ProducePacketName [05:36:51]name=ofd_packets/00186940 [05:36:51]NVStorageDeleteData [05:36:52]OFD Sender: No OFD packet to send [05:36:52]*** Cut start [05:36:52]*** Partial cut [05:36:52]*** CUTSNS_PIN = 1 [05:36:52]*** CUTSNS_PIN = 0 [05:36:52]*** Brake cut motor [05:36:52]Read from MH i2c: 01 [05:36:52]MH_I2C_Read... [05:36:52]*** Stop cut motor [05:36:52]*** Cut end [05:36:52]Read from MH i2c: 01 07 00 [05:36:52]MH_I2C_Read... [05:36:52]Read from MH i2c: 01 07 00 A7 02 00 00 00 00 00 FF 0F BE [05:36:52]process_action close_receipt done [05:36:52]requested_data is exist [05:36:52]produce_requested_data [05:36:52]requested_item fm.sn is exist - process it [05:36:52]wFMCommunicate request_size=4 [05:36:52]MH_SAM_APDU [05:36:52]CAPDU: 80 11 00 00 [05:36:52]Write to MH i2c: E2 08 00 A8 02 80 11 00 00 00 00 00 00 24 [05:36:52]Write i2c OK [05:36:52]MH_I2C_Read... [05:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:36:53]Read from MH i2c: E2 [05:36:53]MH_I2C_Read... [05:36:53]Read from MH i2c: E2 17 00 [05:36:53]MH_I2C_Read... [05:36:53]Read from MH i2c: E2 17 00 A8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 77 [05: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 [05:36:53]wFMCommunicate OK [05:36:53]requested_item fd.num is exist - process it [05:36:53]SAM_PROTO_GetFieldsCounters [05:36:53]wFMCommunicate request_size=4 [05:36:53]MH_SAM_APDU [05:36:53]CAPDU: 80 13 00 00 [05:36:53]Write to MH i2c: E2 08 00 A9 02 80 13 00 00 00 00 00 00 27 [05:36:53]Write i2c OK [05:36:53]MH_I2C_Read... [05:36:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:36:53]Read from MH i2c: E2 [05:36:53]MH_I2C_Read... [05:36:53]Read from MH i2c: E2 62 00 [05:36:53]MH_I2C_Read... [05:36:53]Read from MH i2c: E2 62 00 A9 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 3C DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [05:36: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 3C DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:36:53]wFMCommunicate OK [05:36:53]SAM_PROTO_GetFieldsCounters done [05:36:53]requested_item shift.num is exist - process it [05:36:53]requested_item shift.opened is exist - process it [05:36:53]req_shift_opened [05:36:53]FM_GetShiftState [05:36:53]SAM_PROTO_GetShiftState [05:36:53]wFMCommunicate request_size=4 [05:36:53]MH_SAM_APDU [05:36:53]CAPDU: 80 13 01 00 [05:36:53]Write to MH i2c: E2 08 00 AA 02 80 13 01 00 00 00 00 00 29 [05:36:53]Write i2c OK [05:36:53]MH_I2C_Read... [05:36:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:36:53]Read from MH i2c: E2 [05:36:53]MH_I2C_Read... [05:36:53]Read from MH i2c: E2 0E 00 [05:36:53]MH_I2C_Read... [05:36:53]Read from MH i2c: E2 0E 00 AA 02 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A8 [05:36:53]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [05:36:53]wFMCommunicate OK [05:36:53]SAM_PROTO_GetShiftState done [05:36:53]FM_GetShiftState done [05:36:53]req_shift_opened done [05:36:53]requested_item shift.open_date is exist - process it [05:36:53]req_shift_open_date [05:36:53]req_shift_open_date done [05:36:53]produce_requested_data done [05:36:53]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186940,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [05:36:53]process_action_free close_receipt [05:36:53]json_value_free [05:36:53]json_value_free done [05:36:53]process_json_proto returns [05:36:53]Send response to host [05:36:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186940,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [05:36:53]free response buf [05:36:53]execute_script done [05:36:53]execute_script returns [05:36:53]free content buf [05:36:53]Sock 9.Close socket [05:36:53]Sock 9.Thread stoped [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:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51: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:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:30]OFD Sender: No OFD packet to send [06:28:35]OFD Sender: No OFD packet to send [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:20]OFD Sender: No OFD packet to send [06:29:25]OFD Sender: No OFD packet to send [06:29:30]OFD Sender: No OFD packet to send [06:29:35]OFD Sender: No OFD packet to send [06:29:40]OFD Sender: No OFD packet to send [06:29:45]OFD Sender: No OFD packet to send [06:29:50]OFD Sender: No OFD packet to send [06:29:55]OFD Sender: No OFD packet to send [06:30:00]OFD Sender: No OFD packet to send [06:30:05]OFD Sender: No OFD packet to send [06:30:10]OFD Sender: No OFD packet to send [06:30:15]OFD Sender: No OFD packet to send [06:30:20]OFD Sender: No OFD packet to send [06:30:25]OFD Sender: No OFD packet to send [06:30:30]OFD Sender: No OFD packet to send [06:30:35]OFD Sender: No OFD packet to send [06:30:40]OFD Sender: No OFD packet to send [06:30:45]OFD Sender: No OFD packet to send [06:30:50]OFD Sender: No OFD packet to send [06:30:55]OFD Sender: No OFD packet to send [06:31:00]OFD Sender: No OFD packet to send [06:31:05]OFD Sender: No OFD packet to send [06:31:10]OFD Sender: No OFD packet to send [06:31:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:30]OFD Sender: No OFD packet to send [06:31:35]OFD Sender: No OFD packet to send [06:31:40]OFD Sender: No OFD packet to send [06:31:45]OFD Sender: No OFD packet to send [06:31:50]OFD Sender: No OFD packet to send [06:31:55]OFD Sender: No OFD packet to send [06:32:00]OFD Sender: No OFD packet to send [06:32:05]OFD Sender: No OFD packet to send [06:32:10]OFD Sender: No OFD packet to send [06:32:15]OFD Sender: No OFD packet to send [06:32:20]OFD Sender: No OFD packet to send [06:32:25]OFD Sender: No OFD packet to send [06:32:30]OFD Sender: No OFD packet to send [06:32:35]OFD Sender: No OFD packet to send [06:32:40]OFD Sender: No OFD packet to send [06:32:45]OFD Sender: No OFD packet to send [06:32:50]OFD Sender: No OFD packet to send [06:32:55]OFD Sender: No OFD packet to send [06:33:00]OFD Sender: No OFD packet to send [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:15]OFD Sender: No OFD packet to send [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:30]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:40]OFD Sender: No OFD packet to send [06:33:45]OFD Sender: No OFD packet to send [06:33:50]OFD Sender: No OFD packet to send [06:33:55]OFD Sender: No OFD packet to send [06:34:00]OFD Sender: No OFD packet to send [06:34:05]OFD Sender: No OFD packet to send [06:34:10]OFD Sender: No OFD packet to send [06:34:15]OFD Sender: No OFD packet to send [06:34:20]OFD Sender: No OFD packet to send [06:34:25]OFD Sender: No OFD packet to send [06:34:30]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:55]OFD Sender: No OFD packet to send [06:35:00]OFD Sender: No OFD packet to send [06:35:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:20]OFD Sender: No OFD packet to send [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:33]accept exits with 7 [06:36:33]New connection [06:36:33]New thread 3067022692 created [06:36:33]Thread 3066879332 joined [06:36:33]Waiting for new connection... [06:36:33] Sock 7.Parse request [06:36:33]Sock 7.Check first char [06:36:33]Sock 7.First char is OK [06:36:33]request: POST /json_proto HTTP/1.0 [06:36:33]Method: POST [06:36:33]URL: /json_proto [06:36:33]Method is POST - this is cgi request [06:36:33]url: /json_proto [06:36:33]query_string will be loaded in cgi processing [06:36:33]execute_cgi json_proto POST (null) [06:36:33]execute_cgi path=json_proto method=POST [06:36:33]POST find Content-Length [06:36:33]Host: 172.17.46.131:8080 [06:36:33]Content-Length: 678 [06:36:33]Content-Type: application/json [06:36:33] [06:36:33]POST finish read [06:36:33]Found Content-Length = 678 [06:36:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412091", "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" ] } } [06:36:33]execute_script... [06:36: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)412091", "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" ] } } [06:36:33]POST & json_proto [06:36:33]process_json_proto [06:36:33]json parsed OK: [06:36:33]protocol is kg_v1.0 [06:36:33]action value=close_receipt [06:36:33]process_action close_receipt [06:36:33]cmd_close_receipt [06:36:33]MH_GetDate [06:36:33]Write to MH i2c: F0 00 00 AB 02 9C [06:36:33]Write i2c OK [06:36:33]MH_I2C_Read... [06:36:33]Read from MH i2c: F0 [06:36:33]MH_I2C_Read... [06:36:33]Read from MH i2c: F0 09 00 [06:36:33]MH_I2C_Read... [06:36:33]Read from MH i2c: F0 09 00 AB 02 00 F3 7B B5 67 7E 41 4F 65 A2 [06:36:33]GetLastDocTimeStamp 1739943411 [06:36:33]current date 1739946995 [06:36:33]FM_GetShiftState [06:36:33]SAM_PROTO_GetShiftState [06:36:33]wFMCommunicate request_size=4 [06:36:33]MH_SAM_APDU [06:36:33]CAPDU: 80 13 01 00 [06:36:33]Write to MH i2c: E2 08 00 AC 02 80 13 01 00 00 00 00 00 2B [06:36:33]Write i2c OK [06:36:33]MH_I2C_Read... [06:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:36:33]Read from MH i2c: E2 [06:36:33]MH_I2C_Read... [06:36:33]Read from MH i2c: E2 0E 00 [06:36:33]MH_I2C_Read... [06:36:33]Read from MH i2c: E2 0E 00 AC 02 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 AA [06:36:33]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [06:36:33]wFMCommunicate OK [06:36:33]SAM_PROTO_GetShiftState done [06:36:33]FM_GetShiftState done [06:36:33]opened in 1739929631 [06:36:33]opened+sec_in_day 1740016031 [06:36:33]quantity*price = 100042 [06:36:33]sum+1 = 100044 [06:36:33]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 СНО: Общий режим Чек 7 19.02.2025 06:36 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186941 ФПД: 92411340324671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T063635&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186941&fm=92411340324671&tin=02508201610067®Number=0000000000091857&sum=100000 [06:36:34]StoreToDocumentArchive [06:36:34]shift 647 fd 186941 [06:36:34]save to /storage/0647/doc_00186941 [06:36:34]save last doc name /storage/0647/doc_00186941 to /storage/kkm_last_doc_name [06:36:34]save OK [06:36:34]Clear old archive folders... [06:36:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:36:34]tlvbuf is 005D2B80 [06:36:34]SAM_PROTO_ClearQueue [06:36:34]wFMCommunicate request_size=4 [06:36:34]MH_SAM_APDU [06:36:34]CAPDU: 80 09 00 00 [06:36:34]Write to MH i2c: E2 08 00 B9 02 80 09 00 00 00 00 00 00 2D [06:36:34]Write i2c OK [06:36:34]MH_I2C_Read... [06:36:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:36:34]Read from MH i2c: E2 [06:36:34]MH_I2C_Read... [06:36:34]Read from MH i2c: E2 03 00 [06:36:34]MH_I2C_Read... [06:36:34]Read from MH i2c: E2 03 00 B9 02 00 90 00 2F [06:36:34]RAPDU: 90 00 [06:36:34]wFMCommunicate OK [06:36:34]SAM_PROTO_ClearQueue done [06:36:34]KKMCreateOFDPacket [06:36:34]OFDProtocolAddRootSTLVToBuf [06:36:34]FM_MakeSignedData [06:36:34]FM_MakeSignedData [06:36:34]SAM_PROTO_SignData [06:36:34]wFMCommunicate request_size=4 [06:36:34]MH_SAM_APDU [06:36:34]CAPDU: 80 0D 01 02 [06:36:34]Write to MH i2c: E2 08 00 BA 02 80 0D 01 02 00 00 00 00 35 [06:36:34]Write i2c OK [06:36:34]MH_I2C_Read... [06:36:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:36:34]Read from MH i2c: E2 [06:36:34]MH_I2C_Read... [06:36:34]Read from MH i2c: E2 03 00 [06:36:34]MH_I2C_Read... [06:36:34]Read from MH i2c: E2 03 00 BA 02 00 90 00 30 [06:36:34]RAPDU: 90 00 [06:36:34]wFMCommunicate OK [06:36:34]wFMCommunicate request_size=255 [06:36:34]MH_SAM_APDU [06:36:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 07 00 00 00 F4 03 04 00 F3 7B 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 3D DA 02 00 35 04 06 00 54 0C 31 1C [06:36:34]Write to MH i2c: E2 02 01 BB 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 07 00 00 00 F4 03 04 00 F3 7B 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 3D DA 02 00 35 04 06 00 54 0C 31 1C 00 00 B9 [06:36:34]Write i2c OK [06:36:34]MH_I2C_Read... [06:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:36:35]Read from MH i2c: E2 [06:36:35]MH_I2C_Read... [06:36:35]Read from MH i2c: E2 03 00 [06:36:35]MH_I2C_Read... [06:36:35]Read from MH i2c: E2 03 00 BB 02 00 90 00 31 [06:36:35]RAPDU: 90 00 [06:36:35]wFMCommunicate OK [06:36:35]wFMCommunicate request_size=7 [06:36:35]MH_SAM_APDU [06:36:35]CAPDU: 80 0D 02 02 02 FF 3F [06:36:35]Write to MH i2c: E2 0A 00 BC 02 80 0D 02 02 02 00 FF 3F 00 00 7A [06:36:35]Write i2c OK [06:36:35]MH_I2C_Read... [06:36:35]Read from MH i2c: E2 [06:36:35]MH_I2C_Read... [06:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:36:35]Read from MH i2c: E2 03 00 [06:36:35]MH_I2C_Read... [06:36:35]Read from MH i2c: E2 03 00 BC 02 00 90 00 32 [06:36:35]RAPDU: 90 00 [06:36:35]wFMCommunicate OK [06:36:35]wFMCommunicate request_size=4 [06:36:35]MH_SAM_APDU [06:36:35]CAPDU: 80 0D 03 02 [06:36:35]Write to MH i2c: E2 08 00 BD 02 80 0D 03 02 00 00 00 00 3A [06:36:35]Write i2c OK [06:36:35]MH_I2C_Read... [06:36:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:36:35]Read from MH i2c: E2 [06:36:35]MH_I2C_Read... [06:36:35]Read from MH i2c: E2 0B 00 [06:36:35]MH_I2C_Read... [06:36:35]Read from MH i2c: E2 0B 00 BD 02 00 24 7A 30 91 AF A3 F8 23 90 00 07 [06:36:35]RAPDU: 24 7A 30 91 AF A3 F8 23 90 00 [06:36:35]wFMCommunicate OK [06:36:35]SAM_PROTO_SignData done [06:36:35]FM_MakeSignedData done [06:36:35]CreateOFDProtocolMessage [06:36:35]wFMCommunicate request_size=4 [06:36:35]MH_SAM_APDU [06:36:35]CAPDU: 80 11 00 00 [06:36:35]Write to MH i2c: E2 08 00 BE 02 80 11 00 00 00 00 00 00 3A [06:36:35]Write i2c OK [06:36:35]MH_I2C_Read... [06:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:35]Read from MH i2c: E2 [06:36:35]MH_I2C_Read... [06:36:35]Read from MH i2c: E2 17 00 [06:36:35]MH_I2C_Read... [06:36:35]Read from MH i2c: E2 17 00 BE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8D [06:36: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:36:35]wFMCommunicate OK [06:36:35]CreateOFDProtocolMessage done [06:36:35]OFDSenderStorePacket 186941 [06:36:35]StoreOFDPacket docnum=186941 [06:36: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 BD 13 04 01 DE CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 07 00 00 00 F4 03 04 00 F3 7B 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 3D DA 02 00 35 04 06 00 54 0C 31 1C FF 3F 24 7A 30 91 AF A3 F8 23 [06:36:35]CheckFolder [06:36:35]dirname=/storage/ofd_packets [06:36:35]CheckFolder done [06:36:35]ProducePacketName [06:36:35]name=ofd_packets/00186941 [06:36:35]NVStorageSaveData ofd_packets/00186941 [06:36:35]File name is /storage/ofd_packets/00186941 [06:36:35]Write 298 bytes [06:36:35]NVStorageSaveData done [06:36:35]OFDSenderStorePacket done [06:36:35]KKMCreateOFDPacket done [06:36:35]NVStorageSaveData kkm_last_timestamp [06:36:35]File name is /storage/kkm_last_timestamp [06:36:35]Write 4 bytes [06:36:35]NVStorageSaveData done [06:36:35]ExternCall_PrintAddStr [06:36:35]wPrintStart [06:36:35]Write to MH i2c: 01 00 00 BF 02 C1 [06:36:35]Write i2c OK [06:36:35]MH_I2C_Read... [06:36:35]Read from MH i2c: 01 [06:36:35]MH_I2C_Read... [06:36:35]Read from MH i2c: 01 07 00 [06:36:35]MH_I2C_Read... [06:36:35]Read from MH i2c: 01 07 00 BF 02 00 00 00 00 00 FF 0F D6 [06:36:35]RasterBufferAndPrint [06:36:35]line Счет N : (1)412091 [06:36:35]line ИНН: 02508201610067 [06:36:35]line Контрольно-Кассовый Чек [06:36:35]line ПРОДАЖА [06:36:35]line ТРК (МРК, ГНК) : 5 [06:36:35]line Товар: 2710194210 [06:36:35]line ДТ-К-5 [06:36:35]line 13.780 * 72.60 [06:36:35]line = 1000.43 [06:36:35]line НДС 12% НСП 1% [06:36:35]line > о реализуемом товаре [06:36:35]line ОКРУГЛЕНИЕ: -0.43 [06:36:35]line ИТОГО: 1000.00 [06:36:35]line Внесено: 1000.00 [06:36:35]line СДАЧА: 0.00 [06:36:35]line НСП 1% : 8.85 [06:36:35]line НДС 12% : 106.24 [06:36:35]line Наличными: 1000.00 [06:36:35]line Безнал.: 0.00 [06:36:35]line Место: АЗС № 92 "Партнер Нефть" [06:36:35]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [06:36:35]line СНО: Общий режим [06:36:35]line Чек 7 19.02.2025 06:36 [06:36:35]line Смена: 647 ФФД: 1.0 [06:36:35]line ЗНМ: 0300000118 [06:36:35]line РНМ: 0000000000091857 [06:36:35]line Версия ККМ: 001 [06:36:35]line ФМ: 0000000000871826 [06:36:35]line ФД: 186941 [06:36:35]line ФПД: 92411340324671 [06:36:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T063635&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186941&fm=92411340324671&tin=02508201610067®Number=0000000000091857&sum=100000 [06:36:35]written 0, free lines is 4095 [06:36:35]OFD Sender: Processing packet 186941 [packets to send 49, broken 48] [06:36:35]ProducePacketName [06:36:35]name=ofd_packets/00186941 [06:36:35]OFD Sender: To server: pG, [06:36:35]CommunicateWithHost lk.salyk.kg:30040 [06:36:35]ConnectInit lk.salyk.kg [06:36:35]Connected sock=11 [06:36: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 0C 01 00 00 BD 13 04 01 DE CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 07 00 00 00 F4 03 04 00 F3 7B 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 3D DA 02 00 35 04 06 00 54 0C 31 1C FF 3F 24 7A 30 91 AF A3 F8 23 [06:36:35]Write to MH i2c: 01 00 00 EA 02 EC [06:36:35]Write i2c OK [06:36:35]MH_I2C_Read... [06:36:35]Read from MH i2c: 01 [06:36:35]MH_I2C_Read... [06:36:35]Read from MH i2c: 01 07 00 [06:36:35]MH_I2C_Read... [06:36:35]Read from MH i2c: 01 07 00 EA 02 00 00 00 00 00 EF 0C EE [06:36:35]RasterBufferAndPrint [06:36:35]line [06:36:35]line [06:36:35]line [06:36:35]line [06:36:35]line [06:36:35]written 0, free lines is 3317 [06:36:35]MH_Cut [06:36:35]Write to MH i2c: D1 01 00 F1 02 01 C5 [06:36:35]Write i2c OK [06:36:35]MH_I2C_Read... [06:36:35]Read from MH i2c: D1 [06:36:35]MH_I2C_Read... [06:36:35]Read from MH i2c: D1 01 00 [06:36:35]MH_I2C_Read... [06:36:35]Read from MH i2c: D1 01 00 F1 02 00 C4 [06:36:35]Write to MH i2c: 01 00 00 F2 02 F4 [06:36:35]Write i2c OK [06:36:35]MH_I2C_Read... [06:36: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 DA E2 47 00 9C D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3D DA 02 00 F4 03 04 00 48 22 B5 67 B6 04 01 00 00 C8 5C B0 A4 39 76 AA ED [06:36:35]CommunicateWithHost err = 0 [06:36:35]CheckOFDResponse [06:36:35]1017 (14) - 77093643461234 [06:36:35]1041 (16) - 0000000000871826 [06:36:35]1040 (4) - 186941 [06:36:35]1012 (4) - 19.02.2025 00:14 [06:36:35]1206 (1) - 0 [06:36:35]OFD Sender: Remove packet 186941 [06:36:35]ProducePacketName [06:36:35]name=ofd_packets/00186941 [06:36:35]NVStorageDeleteData [06:36:36]OFD Sender: No OFD packet to send [06:36:36]*** Cut start [06:36:36]*** Partial cut [06:36:36]*** CUTSNS_PIN = 1 [06:36:36]*** CUTSNS_PIN = 0 [06:36:36]*** Brake cut motor [06:36:37]Read from MH i2c: 01 [06:36:37]MH_I2C_Read... [06:36:37]*** Stop cut motor [06:36:37]*** Cut end [06:36:37]Read from MH i2c: 01 07 00 [06:36:37]MH_I2C_Read... [06:36:37]Read from MH i2c: 01 07 00 F2 02 00 00 00 00 00 FF 0F 09 [06:36:37]process_action close_receipt done [06:36:37]requested_data is exist [06:36:37]produce_requested_data [06:36:37]requested_item fm.sn is exist - process it [06:36:37]wFMCommunicate request_size=4 [06:36:37]MH_SAM_APDU [06:36:37]CAPDU: 80 11 00 00 [06:36:37]Write to MH i2c: E2 08 00 F3 02 80 11 00 00 00 00 00 00 6F [06:36:37]Write i2c OK [06:36:37]MH_I2C_Read... [06:36:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:36:37]Read from MH i2c: E2 [06:36:37]MH_I2C_Read... [06:36:37]Read from MH i2c: E2 17 00 [06:36:37]MH_I2C_Read... [06:36:37]Read from MH i2c: E2 17 00 F3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C2 [06:36: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:36:37]wFMCommunicate OK [06:36:37]requested_item fd.num is exist - process it [06:36:37]SAM_PROTO_GetFieldsCounters [06:36:37]wFMCommunicate request_size=4 [06:36:37]MH_SAM_APDU [06:36:37]CAPDU: 80 13 00 00 [06:36:37]Write to MH i2c: E2 08 00 F4 02 80 13 00 00 00 00 00 00 72 [06:36:37]Write i2c OK [06:36:37]MH_I2C_Read... [06:36:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:36:37]Read from MH i2c: E2 [06:36:37]MH_I2C_Read... [06:36:37]Read from MH i2c: E2 62 00 [06:36:37]MH_I2C_Read... [06:36:37]Read from MH i2c: E2 62 00 F4 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 3D DA 02 00 0E 04 04 00 87 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 4F [06:36: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 3D DA 02 00 0E 04 04 00 87 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 [06:36:37]wFMCommunicate OK [06:36:37]SAM_PROTO_GetFieldsCounters done [06:36:37]requested_item shift.num is exist - process it [06:36:37]requested_item shift.opened is exist - process it [06:36:37]req_shift_opened [06:36:37]FM_GetShiftState [06:36:37]SAM_PROTO_GetShiftState [06:36:37]wFMCommunicate request_size=4 [06:36:37]MH_SAM_APDU [06:36:37]CAPDU: 80 13 01 00 [06:36:37]Write to MH i2c: E2 08 00 F5 02 80 13 01 00 00 00 00 00 74 [06:36:37]Write i2c OK [06:36:37]MH_I2C_Read... [06:36:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:36:37]Read from MH i2c: E2 [06:36:37]MH_I2C_Read... [06:36:37]Read from MH i2c: E2 0E 00 [06:36:37]MH_I2C_Read... [06:36:37]Read from MH i2c: E2 0E 00 F5 02 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F3 [06:36:37]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [06:36:37]wFMCommunicate OK [06:36:37]SAM_PROTO_GetShiftState done [06:36:37]FM_GetShiftState done [06:36:37]req_shift_opened done [06:36:37]requested_item shift.open_date is exist - process it [06:36:37]req_shift_open_date [06:36:37]req_shift_open_date done [06:36:37]produce_requested_data done [06:36:37]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186941,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [06:36:37]process_action_free close_receipt [06:36:37]json_value_free [06:36:37]json_value_free done [06:36:37]process_json_proto returns [06:36:37]Send response to host [06:36:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186941,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [06:36:37]free response buf [06:36:37]execute_script done [06:36:37]execute_script returns [06:36:37]free content buf [06:36:37]Sock 7.Close socket [06:36:37]Sock 7.Thread stoped [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:56]OFD Sender: No OFD packet to send [06:43:01]OFD Sender: No OFD packet to send [06:43:06]OFD Sender: No OFD packet to send [06:43:11]OFD Sender: No OFD packet to send [06:43:16]OFD Sender: No OFD packet to send [06:43:21]OFD Sender: No OFD packet to send [06:43:26]OFD Sender: No OFD packet to send [06:43:31]OFD Sender: No OFD packet to send [06:43:36]OFD Sender: No OFD packet to send [06:43:41]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:01]OFD Sender: No OFD packet to send [06:44:06]OFD Sender: No OFD packet to send [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:46]OFD Sender: No OFD packet to send [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:41]OFD Sender: No OFD packet to send [06:46:46]OFD Sender: No OFD packet to send [06:46:51]OFD Sender: No OFD packet to send [06:46:56]OFD Sender: No OFD packet to send [06:47:01]OFD Sender: No OFD packet to send [06:47:06]OFD Sender: No OFD packet to send [06:47:11]OFD Sender: No OFD packet to send [06:47:16]OFD Sender: No OFD packet to send [06:47:21]OFD Sender: No OFD packet to send [06:47:26]OFD Sender: No OFD packet to send [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:03]accept exits with 9 [07:34:03]New connection [07:34:03]New thread 3066879332 created [07:34:03]Thread 3067022692 joined [07:34:03]Waiting for new connection... [07:34:03] Sock 9.Parse request [07:34:03]Sock 9.Check first char [07:34:03]Sock 9.First char is OK [07:34:03]request: POST /json_proto HTTP/1.0 [07:34:03]Method: POST [07:34:03]URL: /json_proto [07:34:03]Method is POST - this is cgi request [07:34:03]url: /json_proto [07:34:03]query_string will be loaded in cgi processing [07:34:03]execute_cgi json_proto POST (null) [07:34:03]execute_cgi path=json_proto method=POST [07:34:03]POST find Content-Length [07:34:03]Host: 172.17.46.131:8080 [07:34:03]Content-Length: 678 [07:34:03]Content-Type: application/json [07:34:03] [07:34:03]POST finish read [07:34:03]Found Content-Length = 678 [07:34:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412092", "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" ] } } [07:34:03]execute_script... [07:34: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)412092", "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" ] } } [07:34:03]POST & json_proto [07:34:03]process_json_proto [07:34:03]json parsed OK: [07:34:03]protocol is kg_v1.0 [07:34:03]action value=close_receipt [07:34:03]process_action close_receipt [07:34:03]cmd_close_receipt [07:34:03]MH_GetDate [07:34:03]Write to MH i2c: F0 00 00 F6 02 E7 [07:34:03]Write i2c OK [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: F0 [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: F0 09 00 [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: F0 09 00 F6 02 00 6D 89 B5 67 7E 41 4F 65 75 [07:34:03]GetLastDocTimeStamp 1739946995 [07:34:03]current date 1739950445 [07:34:03]FM_GetShiftState [07:34:03]SAM_PROTO_GetShiftState [07:34:03]wFMCommunicate request_size=4 [07:34:03]MH_SAM_APDU [07:34:03]CAPDU: 80 13 01 00 [07:34:03]Write to MH i2c: E2 08 00 F7 02 80 13 01 00 00 00 00 00 76 [07:34:03]Write i2c OK [07:34:03]MH_I2C_Read... [07:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:03]Read from MH i2c: E2 [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: E2 0E 00 [07:34:03]MH_I2C_Read... [07:34:03]Read from MH i2c: E2 0E 00 F7 02 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F5 [07:34:03]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [07:34:03]wFMCommunicate OK [07:34:03]SAM_PROTO_GetShiftState done [07:34:03]FM_GetShiftState done [07:34:03]opened in 1739929631 [07:34:03]opened+sec_in_day 1740016031 [07:34:03]quantity*price = 300055 [07:34:03]sum+1 = 300057 [07:34:03]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 СНО: Общий режим Чек 8 19.02.2025 07:34 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186942 ФПД: 36318174172090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T073405&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186942&fm=36318174172090&tin=02508201610067®Number=0000000000091857&sum=300000 [07:34:04]StoreToDocumentArchive [07:34:04]shift 647 fd 186942 [07:34:04]save to /storage/0647/doc_00186942 [07:34:04]save last doc name /storage/0647/doc_00186942 to /storage/kkm_last_doc_name [07:34:04]save OK [07:34:04]Clear old archive folders... [07:34:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:34:04]tlvbuf is 005BA2B0 [07:34:04]SAM_PROTO_ClearQueue [07:34:04]wFMCommunicate request_size=4 [07:34:04]MH_SAM_APDU [07:34:04]CAPDU: 80 09 00 00 [07:34:04]Write to MH i2c: E2 08 00 04 03 80 09 00 00 00 00 00 00 79 [07:34:04]Write i2c OK [07:34:04]MH_I2C_Read... [07:34:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:34:04]Read from MH i2c: E2 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 03 00 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 03 00 04 03 00 90 00 7B [07:34:04]RAPDU: 90 00 [07:34:04]wFMCommunicate OK [07:34:04]SAM_PROTO_ClearQueue done [07:34:04]KKMCreateOFDPacket [07:34:04]OFDProtocolAddRootSTLVToBuf [07:34:04]FM_MakeSignedData [07:34:04]FM_MakeSignedData [07:34:04]SAM_PROTO_SignData [07:34:04]wFMCommunicate request_size=4 [07:34:04]MH_SAM_APDU [07:34:04]CAPDU: 80 0D 01 02 [07:34:04]Write to MH i2c: E2 08 00 05 03 80 0D 01 02 00 00 00 00 81 [07:34:04]Write i2c OK [07:34:04]MH_I2C_Read... [07:34:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:34:04]Read from MH i2c: E2 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 03 00 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 03 00 05 03 00 90 00 7C [07:34:04]RAPDU: 90 00 [07:34:04]wFMCommunicate OK [07:34:04]wFMCommunicate request_size=255 [07:34:04]MH_SAM_APDU [07:34: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 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 08 00 00 00 F4 03 04 00 6D 89 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 3E DA 02 00 35 04 06 00 21 07 FB DE [07:34:04]Write to MH i2c: E2 02 01 06 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 08 00 00 00 F4 03 04 00 6D 89 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 3E DA 02 00 35 04 06 00 21 07 FB DE 00 00 27 [07:34:04]Write i2c OK [07:34:04]MH_I2C_Read... [07:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:04]Read from MH i2c: E2 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 03 00 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 03 00 06 03 00 90 00 7D [07:34:04]RAPDU: 90 00 [07:34:04]wFMCommunicate OK [07:34:04]wFMCommunicate request_size=7 [07:34:04]MH_SAM_APDU [07:34:04]CAPDU: 80 0D 02 02 02 D3 BA [07:34:04]Write to MH i2c: E2 0A 00 07 03 80 0D 02 02 02 00 D3 BA 00 00 15 [07:34:04]Write i2c OK [07:34:04]MH_I2C_Read... [07:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:04]Read from MH i2c: E2 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 03 00 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 03 00 07 03 00 90 00 7E [07:34:04]RAPDU: 90 00 [07:34:04]wFMCommunicate OK [07:34:04]wFMCommunicate request_size=4 [07:34:04]MH_SAM_APDU [07:34:04]CAPDU: 80 0D 03 02 [07:34:04]Write to MH i2c: E2 08 00 08 03 80 0D 03 02 00 00 00 00 86 [07:34:04]Write i2c OK [07:34:04]MH_I2C_Read... [07:34:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:34:04]Read from MH i2c: E2 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 0B 00 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 0B 00 08 03 00 14 B8 B5 FB 6B 5D D4 A6 90 00 45 [07:34:04]RAPDU: 14 B8 B5 FB 6B 5D D4 A6 90 00 [07:34:04]wFMCommunicate OK [07:34:04]SAM_PROTO_SignData done [07:34:04]FM_MakeSignedData done [07:34:04]CreateOFDProtocolMessage [07:34:04]wFMCommunicate request_size=4 [07:34:04]MH_SAM_APDU [07:34:04]CAPDU: 80 11 00 00 [07:34:04]Write to MH i2c: E2 08 00 09 03 80 11 00 00 00 00 00 00 86 [07:34:04]Write i2c OK [07:34:04]MH_I2C_Read... [07:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:04]Read from MH i2c: E2 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 17 00 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: E2 17 00 09 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D9 [07:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:34:04]wFMCommunicate OK [07:34:04]CreateOFDProtocolMessage done [07:34:04]OFDSenderStorePacket 186942 [07:34:04]StoreOFDPacket docnum=186942 [07:34: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 7E 70 04 01 61 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 08 00 00 00 F4 03 04 00 6D 89 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 3E DA 02 00 35 04 06 00 21 07 FB DE D3 BA 14 B8 B5 FB 6B 5D D4 A6 [07:34:04]CheckFolder [07:34:04]dirname=/storage/ofd_packets [07:34:04]CheckFolder done [07:34:04]ProducePacketName [07:34:04]name=ofd_packets/00186942 [07:34:04]NVStorageSaveData ofd_packets/00186942 [07:34:04]File name is /storage/ofd_packets/00186942 [07:34:04]Write 298 bytes [07:34:04]NVStorageSaveData done [07:34:04]OFDSenderStorePacket done [07:34:04]KKMCreateOFDPacket done [07:34:04]NVStorageSaveData kkm_last_timestamp [07:34:04]File name is /storage/kkm_last_timestamp [07:34:04]Write 4 bytes [07:34:04]NVStorageSaveData done [07:34:04]ExternCall_PrintAddStr [07:34:04]wPrintStart [07:34:04]Write to MH i2c: 01 00 00 0A 03 0D [07:34:04]Write i2c OK [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: 01 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: 01 07 00 [07:34:04]MH_I2C_Read... [07:34:04]Read from MH i2c: 01 07 00 0A 03 00 00 00 00 00 FF 0F 22 [07:34:04]RasterBufferAndPrint [07:34:04]line Счет N : (1)412092 [07:34:04]line ИНН: 02508201610067 [07:34:04]line Контрольно-Кассовый Чек [07:34:04]line ПРОДАЖА [07:34:04]line ТРК (МРК, ГНК) : 6 [07:34:04]line Товар: 2710194210 [07:34:04]line ДТ-К-5 [07:34:04]line 41.330 * 72.60 [07:34:04]line = 3000.56 [07:34:04]line НДС 12% НСП 1% [07:34:04]line > о реализуемом товаре [07:34:04]line ОКРУГЛЕНИЕ: -0.56 [07:34:04]line ИТОГО: 3000.00 [07:34:04]line Внесено: 3000.00 [07:34:04]line СДАЧА: 0.00 [07:34:04]line НСП 1% : 26.55 [07:34:04]line НДС 12% : 318.64 [07:34:04]line Наличными: 3000.00 [07:34:04]line Безнал.: 0.00 [07:34:04]line Место: АЗС № 92 "Партнер Нефть" [07:34:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [07:34:04]line СНО: Общий режим [07:34:04]line Чек 8 19.02.2025 07:34 [07:34:04]line Смена: 647 ФФД: 1.0 [07:34:04]line ЗНМ: 0300000118 [07:34:04]line РНМ: 0000000000091857 [07:34:04]line Версия ККМ: 001 [07:34:04]line ФМ: 0000000000871826 [07:34:04]line ФД: 186942 [07:34:04]line ФПД: 36318174172090 [07:34:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T073405&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186942&fm=36318174172090&tin=02508201610067®Number=0000000000091857&sum=300000 [07:34:05]OFD Sender: Processing packet 186942 [packets to send 49, broken 48] [07:34:05]ProducePacketName [07:34:05]name=ofd_packets/00186942 [07:34:05]OFD Sender: To server: pG, [07:34:05]CommunicateWithHost lk.salyk.kg:30040 [07:34:05]ConnectInit lk.salyk.kg [07:34:05]written 0, free lines is 4095 [07:34:05]Connected sock=10 [07:34: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 7E 70 04 01 61 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 08 00 00 00 F4 03 04 00 6D 89 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 3E DA 02 00 35 04 06 00 21 07 FB DE D3 BA 14 B8 B5 FB 6B 5D D4 A6 [07:34: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 6B FF 47 00 81 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 3E DA 02 00 F4 03 04 00 C2 2F B5 67 B6 04 01 00 00 2B 6C 54 E3 52 4B 2B B2 [07:34:05]CommunicateWithHost err = 0 [07:34:05]CheckOFDResponse [07:34:05]1017 (14) - 77093643461234 [07:34:05]1041 (16) - 0000000000871826 [07:34:05]1040 (4) - 186942 [07:34:05]1012 (4) - 19.02.2025 01:11 [07:34:05]1206 (1) - 0 [07:34:05]OFD Sender: Remove packet 186942 [07:34:05]ProducePacketName [07:34:05]name=ofd_packets/00186942 [07:34:05]NVStorageDeleteData [07:34:05]Write to MH i2c: 01 00 00 35 03 38 [07:34:05]Write i2c OK [07:34:05]MH_I2C_Read... [07:34:05]Read from MH i2c: 01 [07:34:05]MH_I2C_Read... [07:34:05]Read from MH i2c: 01 07 00 [07:34:05]MH_I2C_Read... [07:34:05]Read from MH i2c: 01 07 00 35 03 00 00 00 00 00 FA 0C 45 [07:34:05]RasterBufferAndPrint [07:34:05]line [07:34:05]line [07:34:05]line [07:34:05]line [07:34:05]line [07:34:05]written 0, free lines is 3330 [07:34:05]MH_Cut [07:34:05]Write to MH i2c: D1 01 00 3C 03 01 11 [07:34:05]Write i2c OK [07:34:05]MH_I2C_Read... [07:34:05]Read from MH i2c: D1 [07:34:05]MH_I2C_Read... [07:34:05]Read from MH i2c: D1 01 00 [07:34:05]MH_I2C_Read... [07:34:05]Read from MH i2c: D1 01 00 3C 03 00 10 [07:34:05]Write to MH i2c: 01 00 00 3D 03 40 [07:34:05]Write i2c OK [07:34:05]MH_I2C_Read... [07:34:06]OFD Sender: No OFD packet to send [07:34:06]*** Cut start [07:34:06]*** Partial cut [07:34:06]*** CUTSNS_PIN = 1 [07:34:06]*** CUTSNS_PIN = 0 [07:34:06]*** Brake cut motor [07:34:07]Read from MH i2c: 01 [07:34:07]MH_I2C_Read... [07:34:07]*** Stop cut motor [07:34:07]*** Cut end [07:34:07]Read from MH i2c: 01 07 00 [07:34:07]MH_I2C_Read... [07:34:07]Read from MH i2c: 01 07 00 3D 03 00 00 00 00 00 FF 0F 55 [07:34:07]process_action close_receipt done [07:34:07]requested_data is exist [07:34:07]produce_requested_data [07:34:07]requested_item fm.sn is exist - process it [07:34:07]wFMCommunicate request_size=4 [07:34:07]MH_SAM_APDU [07:34:07]CAPDU: 80 11 00 00 [07:34:07]Write to MH i2c: E2 08 00 3E 03 80 11 00 00 00 00 00 00 BB [07:34:07]Write i2c OK [07:34:07]MH_I2C_Read... [07:34:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:07]Read from MH i2c: E2 [07:34:07]MH_I2C_Read... [07:34:07]Read from MH i2c: E2 17 00 [07:34:07]MH_I2C_Read... [07:34:07]Read from MH i2c: E2 17 00 3E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0E [07:34:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:34:07]wFMCommunicate OK [07:34:07]requested_item fd.num is exist - process it [07:34:07]SAM_PROTO_GetFieldsCounters [07:34:07]wFMCommunicate request_size=4 [07:34:07]MH_SAM_APDU [07:34:07]CAPDU: 80 13 00 00 [07:34:07]Write to MH i2c: E2 08 00 3F 03 80 13 00 00 00 00 00 00 BE [07:34:07]Write i2c OK [07:34:07]MH_I2C_Read... [07:34:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:34:07]Read from MH i2c: E2 [07:34:07]MH_I2C_Read... [07:34:07]Read from MH i2c: E2 62 00 [07:34:07]MH_I2C_Read... [07:34:07]Read from MH i2c: E2 62 00 3F 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 3E DA 02 00 0E 04 04 00 87 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 9F [07:34: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 3E DA 02 00 0E 04 04 00 87 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 [07:34:07]wFMCommunicate OK [07:34:07]SAM_PROTO_GetFieldsCounters done [07:34:07]requested_item shift.num is exist - process it [07:34:07]requested_item shift.opened is exist - process it [07:34:07]req_shift_opened [07:34:07]FM_GetShiftState [07:34:07]SAM_PROTO_GetShiftState [07:34:07]wFMCommunicate request_size=4 [07:34:07]MH_SAM_APDU [07:34:07]CAPDU: 80 13 01 00 [07:34:07]Write to MH i2c: E2 08 00 40 03 80 13 01 00 00 00 00 00 C0 [07:34:07]Write i2c OK [07:34:07]MH_I2C_Read... [07:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:07]Read from MH i2c: E2 [07:34:07]MH_I2C_Read... [07:34:07]Read from MH i2c: E2 0E 00 [07:34:07]MH_I2C_Read... [07:34:07]Read from MH i2c: E2 0E 00 40 03 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 3F [07:34:07]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [07:34:07]wFMCommunicate OK [07:34:07]SAM_PROTO_GetShiftState done [07:34:07]FM_GetShiftState done [07:34:07]req_shift_opened done [07:34:07]requested_item shift.open_date is exist - process it [07:34:07]req_shift_open_date [07:34:07]req_shift_open_date done [07:34:07]produce_requested_data done [07:34:07]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186942,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [07:34:07]process_action_free close_receipt [07:34:07]json_value_free [07:34:07]json_value_free done [07:34:07]process_json_proto returns [07:34:07]Send response to host [07:34:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186942,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [07:34:07]free response buf [07:34:07]execute_script done [07:34:07]execute_script returns [07:34:07]free content buf [07:34:07]Sock 9.Close socket [07:34:07]Sock 9.Thread stoped [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:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:10]accept exits with 7 [07:37:10]New connection [07:37:10]New thread 3067022692 created [07:37:10]Thread 3066879332 joined [07:37:10]Waiting for new connection... [07:37:10] Sock 7.Parse request [07:37:10]Sock 7.Check first char [07:37:10]Sock 7.First char is OK [07:37:10]request: POST /json_proto HTTP/1.0 [07:37:10]Method: POST [07:37:10]URL: /json_proto [07:37:10]Method is POST - this is cgi request [07:37:10]url: /json_proto [07:37:10]query_string will be loaded in cgi processing [07:37:10]execute_cgi json_proto POST (null) [07:37:10]execute_cgi path=json_proto method=POST [07:37:10]POST find Content-Length [07:37:10]Host: 172.17.46.131:8080 [07:37:10]Content-Length: 682 [07:37:10]Content-Type: application/json [07:37:10] [07:37:10]POST finish read [07:37:10]Found Content-Length = 682 [07:37:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412093", "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" ] } } [07:37:10]execute_script... [07:37: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)412093", "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" ] } } [07:37:10]POST & json_proto [07:37:10]process_json_proto [07:37:10]json parsed OK: [07:37:10]protocol is kg_v1.0 [07:37:10]action value=close_receipt [07:37:10]process_action close_receipt [07:37:10]cmd_close_receipt [07:37:10]MH_GetDate [07:37:10]Write to MH i2c: F0 00 00 41 03 33 [07:37:10]Write i2c OK [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: F0 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: F0 09 00 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: F0 09 00 41 03 00 28 8A B5 67 7E 41 4F 65 7D [07:37:10]GetLastDocTimeStamp 1739950445 [07:37:10]current date 1739950632 [07:37:10]FM_GetShiftState [07:37:10]SAM_PROTO_GetShiftState [07:37:10]wFMCommunicate request_size=4 [07:37:10]MH_SAM_APDU [07:37:10]CAPDU: 80 13 01 00 [07:37:10]Write to MH i2c: E2 08 00 42 03 80 13 01 00 00 00 00 00 C2 [07:37:10]Write i2c OK [07:37:10]MH_I2C_Read... [07:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:10]Read from MH i2c: E2 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: E2 0E 00 [07:37:10]MH_I2C_Read... [07:37:10]Read from MH i2c: E2 0E 00 42 03 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 41 [07:37:10]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [07:37:10]wFMCommunicate OK [07:37:10]SAM_PROTO_GetShiftState done [07:37:10]FM_GetShiftState done [07:37:10]opened in 1739929631 [07:37:10]opened+sec_in_day 1740016031 [07:37:10]quantity*price = 100023 [07:37:10]sum+1 = 100025 [07:37:10]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 СНО: Общий режим Чек 9 19.02.2025 07:37 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186943 ФПД: 186963751860445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T073712&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186943&fm=186963751860445&tin=02508201610067®Number=0000000000091857&sum=100000 [07:37:11]StoreToDocumentArchive [07:37:11]shift 647 fd 186943 [07:37:11]save to /storage/0647/doc_00186943 [07:37:11]save last doc name /storage/0647/doc_00186943 to /storage/kkm_last_doc_name [07:37:11]save OK [07:37:11]Clear old archive folders... [07:37:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:37:11]tlvbuf is 005D4CE0 [07:37:11]SAM_PROTO_ClearQueue [07:37:11]wFMCommunicate request_size=4 [07:37:11]MH_SAM_APDU [07:37:11]CAPDU: 80 09 00 00 [07:37:11]Write to MH i2c: E2 08 00 4F 03 80 09 00 00 00 00 00 00 C4 [07:37:11]Write i2c OK [07:37:11]MH_I2C_Read... [07:37:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:37:11]Read from MH i2c: E2 [07:37:11]MH_I2C_Read... [07:37:11]Read from MH i2c: E2 03 00 [07:37:11]MH_I2C_Read... [07:37:11]Read from MH i2c: E2 03 00 4F 03 00 90 00 C6 [07:37:11]RAPDU: 90 00 [07:37:11]wFMCommunicate OK [07:37:11]SAM_PROTO_ClearQueue done [07:37:11]KKMCreateOFDPacket [07:37:11]OFDProtocolAddRootSTLVToBuf [07:37:11]FM_MakeSignedData [07:37:11]FM_MakeSignedData [07:37:11]SAM_PROTO_SignData [07:37:11]wFMCommunicate request_size=4 [07:37:11]MH_SAM_APDU [07:37:11]CAPDU: 80 0D 01 02 [07:37:11]Write to MH i2c: E2 08 00 50 03 80 0D 01 02 00 00 00 00 CC [07:37:11]Write i2c OK [07:37:11]MH_I2C_Read... [07:37:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:37:11]Read from MH i2c: E2 [07:37:11]MH_I2C_Read... [07:37:11]Read from MH i2c: E2 03 00 [07:37:11]MH_I2C_Read... [07:37:11]Read from MH i2c: E2 03 00 50 03 00 90 00 C7 [07:37:11]RAPDU: 90 00 [07:37:11]wFMCommunicate OK [07:37:11]wFMCommunicate request_size=255 [07:37:11]MH_SAM_APDU [07:37: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 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 09 00 00 00 F4 03 04 00 28 8A 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 3F DA 02 00 35 04 06 00 AA [07:37:11]Write to MH i2c: E2 02 01 51 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 09 00 00 00 F4 03 04 00 28 8A 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 3F DA 02 00 35 04 06 00 AA 00 00 EE [07:37:11]Write i2c OK [07:37:11]MH_I2C_Read... [07:37:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:12]Read from MH i2c: E2 [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: E2 03 00 [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: E2 03 00 51 03 00 90 00 C8 [07:37:12]RAPDU: 90 00 [07:37:12]wFMCommunicate OK [07:37:12]wFMCommunicate request_size=10 [07:37:12]MH_SAM_APDU [07:37:12]CAPDU: 80 0D 02 02 05 0A E4 03 F8 DD [07:37:12]Write to MH i2c: E2 0D 00 52 03 80 0D 02 02 05 00 0A E4 03 F8 DD 00 00 9F [07:37:12]Write i2c OK [07:37:12]MH_I2C_Read... [07:37:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:37:12]Read from MH i2c: E2 [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: E2 03 00 [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: E2 03 00 52 03 00 90 00 C9 [07:37:12]RAPDU: 90 00 [07:37:12]wFMCommunicate OK [07:37:12]wFMCommunicate request_size=4 [07:37:12]MH_SAM_APDU [07:37:12]CAPDU: 80 0D 03 02 [07:37:12]Write to MH i2c: E2 08 00 53 03 80 0D 03 02 00 00 00 00 D1 [07:37:12]Write i2c OK [07:37:12]MH_I2C_Read... [07:37:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:37:12]Read from MH i2c: E2 [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: E2 0B 00 [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: E2 0B 00 53 03 00 CB 74 B9 24 09 EE CE 11 90 00 C4 [07:37:12]RAPDU: CB 74 B9 24 09 EE CE 11 90 00 [07:37:12]wFMCommunicate OK [07:37:12]SAM_PROTO_SignData done [07:37:12]FM_MakeSignedData done [07:37:12]CreateOFDProtocolMessage [07:37:12]wFMCommunicate request_size=4 [07:37:12]MH_SAM_APDU [07:37:12]CAPDU: 80 11 00 00 [07:37:12]Write to MH i2c: E2 08 00 54 03 80 11 00 00 00 00 00 00 D1 [07:37:12]Write i2c OK [07:37:12]MH_I2C_Read... [07:37:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:12]Read from MH i2c: E2 [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: E2 17 00 [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: E2 17 00 54 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 24 [07:37: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:37:12]wFMCommunicate OK [07:37:12]CreateOFDProtocolMessage done [07:37:12]OFDSenderStorePacket 186943 [07:37:12]StoreOFDPacket docnum=186943 [07:37: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 0F 01 00 00 0A 51 07 01 4A 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 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 09 00 00 00 F4 03 04 00 28 8A 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 3F DA 02 00 35 04 06 00 AA 0A E4 03 F8 DD CB 74 B9 24 09 EE CE 11 [07:37:12]CheckFolder [07:37:12]dirname=/storage/ofd_packets [07:37:12]CheckFolder done [07:37:12]ProducePacketName [07:37:12]name=ofd_packets/00186943 [07:37:12]NVStorageSaveData ofd_packets/00186943 [07:37:12]File name is /storage/ofd_packets/00186943 [07:37:12]Write 301 bytes [07:37:12]NVStorageSaveData done [07:37:12]OFDSenderStorePacket done [07:37:12]KKMCreateOFDPacket done [07:37:12]NVStorageSaveData kkm_last_timestamp [07:37:12]File name is /storage/kkm_last_timestamp [07:37:12]Write 4 bytes [07:37:12]NVStorageSaveData done [07:37:12]ExternCall_PrintAddStr [07:37:12]wPrintStart [07:37:12]Write to MH i2c: 01 00 00 55 03 58 [07:37:12]Write i2c OK [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: 01 [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: 01 07 00 [07:37:12]MH_I2C_Read... [07:37:12]Read from MH i2c: 01 07 00 55 03 00 00 00 00 00 FF 0F 6D [07:37:12]RasterBufferAndPrint [07:37:12]line Счет N : (1)412093 [07:37:12]line ИНН: 02508201610067 [07:37:12]line Контрольно-Кассовый Чек [07:37:12]line ПРОДАЖА [07:37:12]line ТРК (МРК, ГНК) : 32 [07:37:12]line Товар: 2710124130 [07:37:12]line Аи-92-К-2 [07:37:12]line 15.580 * 64.20 [07:37:12]line = 1000.24 [07:37:12]line НДС 12% НСП 1% [07:37:12]line > о реализуемом товаре [07:37:12]line ОКРУГЛЕНИЕ: -0.24 [07:37:12]line ИТОГО: 1000.00 [07:37:12]line Внесено: 1000.00 [07:37:12]line СДАЧА: 0.00 [07:37:12]line НСП 1% : 8.85 [07:37:12]line НДС 12% : 106.22 [07:37:12]line Наличными: 1000.00 [07:37:12]line Безнал.: 0.00 [07:37:12]line Место: АЗС № 92 "Партнер Нефть" [07:37:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [07:37:12]line СНО: Общий режим [07:37:12]line Чек 9 19.02.2025 07:37 [07:37:12]line Смена: 647 ФФД: 1.0 [07:37:12]line ЗНМ: 0300000118 [07:37:12]line РНМ: 0000000000091857 [07:37:12]line Версия ККМ: 001 [07:37:12]line ФМ: 0000000000871826 [07:37:12]line ФД: 186943 [07:37:12]line ФПД: 186963751860445 [07:37:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T073712&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186943&fm=186963751860445&tin=02508201610067®Number=0000000000091857&sum=100000 [07:37:12]OFD Sender: Processing packet 186943 [packets to send 49, broken 48] [07:37:12]ProducePacketName [07:37:12]name=ofd_packets/00186943 [07:37:12]OFD Sender: To server: pG, [07:37:12]CommunicateWithHost lk.salyk.kg:30040 [07:37:12]ConnectInit lk.salyk.kg [07:37:12]written 0, free lines is 4095 [07:37:12]Connected sock=10 [07:37: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 0A 51 07 01 4A 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 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 09 00 00 00 F4 03 04 00 28 8A 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 3F DA 02 00 35 04 06 00 AA 0A E4 03 F8 DD CB 74 B9 24 09 EE CE 11 [07:37: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 AE 63 47 00 09 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 3F DA 02 00 F4 03 04 00 7D 30 B5 67 B6 04 01 00 00 F0 9D 1E B7 3C 99 E9 3C [07:37:13]CommunicateWithHost err = 0 [07:37:13]CheckOFDResponse [07:37:13]1017 (14) - 77093643461234 [07:37:13]1041 (16) - 0000000000871826 [07:37:13]1040 (4) - 186943 [07:37:13]1012 (4) - 19.02.2025 01:14 [07:37:13]1206 (1) - 0 [07:37:13]OFD Sender: Remove packet 186943 [07:37:13]ProducePacketName [07:37:13]name=ofd_packets/00186943 [07:37:13]NVStorageDeleteData [07:37:13]Write to MH i2c: 01 00 00 80 03 83 [07:37:13]Write i2c OK [07:37:13]MH_I2C_Read... [07:37:13]Read from MH i2c: 01 [07:37:13]MH_I2C_Read... [07:37:13]Read from MH i2c: 01 07 00 [07:37:13]MH_I2C_Read... [07:37:13]Read from MH i2c: 01 07 00 80 03 00 00 00 00 00 FF 0C 95 [07:37:13]RasterBufferAndPrint [07:37:13]line [07:37:13]line [07:37:13]line [07:37:13]line [07:37:13]line [07:37:13]written 0, free lines is 3333 [07:37:13]MH_Cut [07:37:13]Write to MH i2c: D1 01 00 87 03 01 5C [07:37:13]Write i2c OK [07:37:13]MH_I2C_Read... [07:37:13]Read from MH i2c: D1 [07:37:13]MH_I2C_Read... [07:37:13]Read from MH i2c: D1 01 00 [07:37:13]MH_I2C_Read... [07:37:13]Read from MH i2c: D1 01 00 87 03 00 5B [07:37:13]Write to MH i2c: 01 00 00 88 03 8B [07:37:13]Write i2c OK [07:37:13]MH_I2C_Read... [07:37:13]OFD Sender: No OFD packet to send [07:37:13]*** Cut start [07:37:13]*** Partial cut [07:37:13]*** CUTSNS_PIN = 1 [07:37:13]*** CUTSNS_PIN = 0 [07:37:14]*** Brake cut motor [07:37:14]Read from MH i2c: 01 [07:37:14]MH_I2C_Read... [07:37:14]*** Stop cut motor [07:37:14]*** Cut end [07:37:14]Read from MH i2c: 01 07 00 [07:37:14]MH_I2C_Read... [07:37:14]Read from MH i2c: 01 07 00 88 03 00 00 00 00 00 FF 0F A0 [07:37:14]process_action close_receipt done [07:37:14]requested_data is exist [07:37:14]produce_requested_data [07:37:14]requested_item fm.sn is exist - process it [07:37:14]wFMCommunicate request_size=4 [07:37:14]MH_SAM_APDU [07:37:14]CAPDU: 80 11 00 00 [07:37:14]Write to MH i2c: E2 08 00 89 03 80 11 00 00 00 00 00 00 06 [07:37:14]Write i2c OK [07:37:14]MH_I2C_Read... [07:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:37:14]Read from MH i2c: E2 [07:37:14]MH_I2C_Read... [07:37:14]Read from MH i2c: E2 17 00 [07:37:14]MH_I2C_Read... [07:37:14]Read from MH i2c: E2 17 00 89 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 59 [07:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:37:14]wFMCommunicate OK [07:37:14]requested_item fd.num is exist - process it [07:37:14]SAM_PROTO_GetFieldsCounters [07:37:14]wFMCommunicate request_size=4 [07:37:14]MH_SAM_APDU [07:37:14]CAPDU: 80 13 00 00 [07:37:14]Write to MH i2c: E2 08 00 8A 03 80 13 00 00 00 00 00 00 09 [07:37:14]Write i2c OK [07:37:14]MH_I2C_Read... [07:37:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:37:14]Read from MH i2c: E2 [07:37:14]MH_I2C_Read... [07:37:14]Read from MH i2c: E2 62 00 [07:37:14]MH_I2C_Read... [07:37:14]Read from MH i2c: E2 62 00 8A 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 3F DA 02 00 0E 04 04 00 87 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 EE [07:37: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 3F DA 02 00 0E 04 04 00 87 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 [07:37:14]wFMCommunicate OK [07:37:14]SAM_PROTO_GetFieldsCounters done [07:37:14]requested_item shift.num is exist - process it [07:37:14]requested_item shift.opened is exist - process it [07:37:14]req_shift_opened [07:37:14]FM_GetShiftState [07:37:14]SAM_PROTO_GetShiftState [07:37:14]wFMCommunicate request_size=4 [07:37:14]MH_SAM_APDU [07:37:14]CAPDU: 80 13 01 00 [07:37:14]Write to MH i2c: E2 08 00 8B 03 80 13 01 00 00 00 00 00 0B [07:37:14]Write i2c OK [07:37:14]MH_I2C_Read... [07:37:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:37:14]Read from MH i2c: E2 [07:37:14]MH_I2C_Read... [07:37:14]Read from MH i2c: E2 0E 00 [07:37:14]MH_I2C_Read... [07:37:14]Read from MH i2c: E2 0E 00 8B 03 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 8A [07:37:14]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [07:37:14]wFMCommunicate OK [07:37:14]SAM_PROTO_GetShiftState done [07:37:14]FM_GetShiftState done [07:37:14]req_shift_opened done [07:37:14]requested_item shift.open_date is exist - process it [07:37:14]req_shift_open_date [07:37:14]req_shift_open_date done [07:37:14]produce_requested_data done [07:37:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186943,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [07:37:14]process_action_free close_receipt [07:37:14]json_value_free [07:37:14]json_value_free done [07:37:14]process_json_proto returns [07:37:14]Send response to host [07:37:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186943,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [07:37:14]free response buf [07:37:14]execute_script done [07:37:14]execute_script returns [07:37:14]free content buf [07:37:14]Sock 7.Close socket [07:37:14]Sock 7.Thread stoped [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:55]accept exits with 9 [07:44:55]New connection [07:44:55]New thread 3066879332 created [07:44:55]Thread 3067022692 joined [07:44:55]Waiting for new connection... [07:44:55] Sock 9.Parse request [07:44:55]Sock 9.Check first char [07:44:55]Sock 9.First char is OK [07:44:55]request: POST /json_proto HTTP/1.0 [07:44:55]Method: POST [07:44:55]URL: /json_proto [07:44:55]Method is POST - this is cgi request [07:44:55]url: /json_proto [07:44:55]query_string will be loaded in cgi processing [07:44:55]execute_cgi json_proto POST (null) [07:44:55]execute_cgi path=json_proto method=POST [07:44:55]POST find Content-Length [07:44:55]Host: 172.17.46.131:8080 [07:44:55]Content-Length: 678 [07:44:55]Content-Type: application/json [07:44:55] [07:44:55]POST finish read [07:44:55]Found Content-Length = 678 [07:44:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412094", "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" ] } } [07:44:55]execute_script... [07:44:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412094", "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" ] } } [07:44:55]POST & json_proto [07:44:55]process_json_proto [07:44:55]json parsed OK: [07:44:55]protocol is kg_v1.0 [07:44:55]action value=close_receipt [07:44:55]process_action close_receipt [07:44:55]cmd_close_receipt [07:44:55]MH_GetDate [07:44:55]Write to MH i2c: F0 00 00 8C 03 7E [07:44:55]Write i2c OK [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: F0 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: F0 09 00 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: F0 09 00 8C 03 00 FA 8B B5 67 7E 41 4F 65 9B [07:44:55]GetLastDocTimeStamp 1739950632 [07:44:55]current date 1739951098 [07:44:55]FM_GetShiftState [07:44:55]SAM_PROTO_GetShiftState [07:44:55]wFMCommunicate request_size=4 [07:44:55]MH_SAM_APDU [07:44:55]CAPDU: 80 13 01 00 [07:44:55]Write to MH i2c: E2 08 00 8D 03 80 13 01 00 00 00 00 00 0D [07:44:55]Write i2c OK [07:44:55]MH_I2C_Read... [07:44:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:55]Read from MH i2c: E2 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: E2 0E 00 [07:44:55]MH_I2C_Read... [07:44:55]Read from MH i2c: E2 0E 00 8D 03 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 8C [07:44:55]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [07:44:55]wFMCommunicate OK [07:44:55]SAM_PROTO_GetShiftState done [07:44:55]FM_GetShiftState done [07:44:55]opened in 1739929631 [07:44:55]opened+sec_in_day 1740016031 [07:44:55]quantity*price = 150064 [07:44:55]sum+1 = 150065 [07:44:55]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 СНО: Общий режим Чек 10 19.02.2025 07:44 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186944 ФПД: 163875114072994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T074458&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186944&fm=163875114072994&tin=02508201610067®Number=0000000000091857&sum=150000 [07:44:57]StoreToDocumentArchive [07:44:57]shift 647 fd 186944 [07:44:57]save to /storage/0647/doc_00186944 [07:44:57]save last doc name /storage/0647/doc_00186944 to /storage/kkm_last_doc_name [07:44:57]save OK [07:44:57]Clear old archive folders... [07:44:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:44:57]tlvbuf is 005C9390 [07:44:57]SAM_PROTO_ClearQueue [07:44:57]wFMCommunicate request_size=4 [07:44:57]MH_SAM_APDU [07:44:57]CAPDU: 80 09 00 00 [07:44:57]Write to MH i2c: E2 08 00 9A 03 80 09 00 00 00 00 00 00 0F [07:44:57]Write i2c OK [07:44:57]MH_I2C_Read... [07:44:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:44:57]Read from MH i2c: E2 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 03 00 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 03 00 9A 03 00 90 00 11 [07:44:57]RAPDU: 90 00 [07:44:57]wFMCommunicate OK [07:44:57]SAM_PROTO_ClearQueue done [07:44:57]KKMCreateOFDPacket [07:44:57]OFDProtocolAddRootSTLVToBuf [07:44:57]FM_MakeSignedData [07:44:57]FM_MakeSignedData [07:44:57]SAM_PROTO_SignData [07:44:57]wFMCommunicate request_size=4 [07:44:57]MH_SAM_APDU [07:44:57]CAPDU: 80 0D 01 02 [07:44:57]Write to MH i2c: E2 08 00 9B 03 80 0D 01 02 00 00 00 00 17 [07:44:57]Write i2c OK [07:44:57]MH_I2C_Read... [07:44:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:44:57]Read from MH i2c: E2 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 03 00 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 03 00 9B 03 00 90 00 12 [07:44:57]RAPDU: 90 00 [07:44:57]wFMCommunicate OK [07:44:57]wFMCommunicate request_size=255 [07:44:57]MH_SAM_APDU [07:44: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 0A 00 00 00 F4 03 04 00 FA 8B 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 40 DA 02 00 35 04 06 00 95 0B 25 F6 [07:44:57]Write to MH i2c: E2 02 01 9C 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0A 00 00 00 F4 03 04 00 FA 8B 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 40 DA 02 00 35 04 06 00 95 0B 25 F6 00 00 AF [07:44:57]Write i2c OK [07:44:57]MH_I2C_Read... [07:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:57]Read from MH i2c: E2 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 03 00 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 03 00 9C 03 00 90 00 13 [07:44:57]RAPDU: 90 00 [07:44:57]wFMCommunicate OK [07:44:57]wFMCommunicate request_size=7 [07:44:57]MH_SAM_APDU [07:44:57]CAPDU: 80 0D 02 02 02 3B A2 [07:44:57]Write to MH i2c: E2 0A 00 9D 03 80 0D 02 02 02 00 3B A2 00 00 FB [07:44:57]Write i2c OK [07:44:57]MH_I2C_Read... [07:44:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:57]Read from MH i2c: E2 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 03 00 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 03 00 9D 03 00 90 00 14 [07:44:57]RAPDU: 90 00 [07:44:57]wFMCommunicate OK [07:44:57]wFMCommunicate request_size=4 [07:44:57]MH_SAM_APDU [07:44:57]CAPDU: 80 0D 03 02 [07:44:57]Write to MH i2c: E2 08 00 9E 03 80 0D 03 02 00 00 00 00 1C [07:44:57]Write i2c OK [07:44:57]MH_I2C_Read... [07:44:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:44:57]Read from MH i2c: E2 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 0B 00 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 0B 00 9E 03 00 B3 65 2D EE D5 56 B1 33 90 00 5F [07:44:57]RAPDU: B3 65 2D EE D5 56 B1 33 90 00 [07:44:57]wFMCommunicate OK [07:44:57]SAM_PROTO_SignData done [07:44:57]FM_MakeSignedData done [07:44:57]CreateOFDProtocolMessage [07:44:57]wFMCommunicate request_size=4 [07:44:57]MH_SAM_APDU [07:44:57]CAPDU: 80 11 00 00 [07:44:57]Write to MH i2c: E2 08 00 9F 03 80 11 00 00 00 00 00 00 1C [07:44:57]Write i2c OK [07:44:57]MH_I2C_Read... [07:44:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:57]Read from MH i2c: E2 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 17 00 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: E2 17 00 9F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6F [07:44: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:44:57]wFMCommunicate OK [07:44:57]CreateOFDProtocolMessage done [07:44:57]OFDSenderStorePacket 186944 [07:44:57]StoreOFDPacket docnum=186944 [07:44: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 6A 6D 04 01 36 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 0A 00 00 00 F4 03 04 00 FA 8B 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 40 DA 02 00 35 04 06 00 95 0B 25 F6 3B A2 B3 65 2D EE D5 56 B1 33 [07:44:57]CheckFolder [07:44:57]dirname=/storage/ofd_packets [07:44:57]CheckFolder done [07:44:57]ProducePacketName [07:44:57]name=ofd_packets/00186944 [07:44:57]NVStorageSaveData ofd_packets/00186944 [07:44:57]File name is /storage/ofd_packets/00186944 [07:44:57]Write 298 bytes [07:44:57]NVStorageSaveData done [07:44:57]OFDSenderStorePacket done [07:44:57]KKMCreateOFDPacket done [07:44:57]NVStorageSaveData kkm_last_timestamp [07:44:57]File name is /storage/kkm_last_timestamp [07:44:57]Write 4 bytes [07:44:57]NVStorageSaveData done [07:44:57]ExternCall_PrintAddStr [07:44:57]wPrintStart [07:44:57]Write to MH i2c: 01 00 00 A0 03 A3 [07:44:57]Write i2c OK [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: 01 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: 01 07 00 [07:44:57]MH_I2C_Read... [07:44:57]Read from MH i2c: 01 07 00 A0 03 00 00 00 00 00 FF 0F B8 [07:44:57]RasterBufferAndPrint [07:44:57]line Счет N : (1)412094 [07:44:57]line ИНН: 02508201610067 [07:44:57]line Контрольно-Кассовый Чек [07:44:57]line ПРОДАЖА [07:44:57]line ТРК (МРК, ГНК) : 5 [07:44:57]line Товар: 2710194210 [07:44:57]line ДТ-К-5 [07:44:57]line 20.670 * 72.60 [07:44:57]line = 1500.64 [07:44:57]line НДС 12% НСП 1% [07:44:57]line > о реализуемом товаре [07:44:57]line ОКРУГЛЕНИЕ: -0.64 [07:44:57]line ИТОГО: 1500.00 [07:44:57]line Внесено: 1500.00 [07:44:57]line СДАЧА: 0.00 [07:44:57]line НСП 1% : 13.28 [07:44:57]line НДС 12% : 159.36 [07:44:57]line Наличными: 1500.00 [07:44:57]line Безнал.: 0.00 [07:44:57]line Место: АЗС № 92 "Партнер Нефть" [07:44:57]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [07:44:57]line СНО: Общий режим [07:44:57]line Чек 10 19.02.2025 07:44 [07:44:57]line Смена: 647 ФФД: 1.0 [07:44:57]line ЗНМ: 0300000118 [07:44:57]line РНМ: 0000000000091857 [07:44:57]line Версия ККМ: 001 [07:44:57]line ФМ: 0000000000871826 [07:44:57]line ФД: 186944 [07:44:57]line ФПД: 163875114072994 [07:44:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T074458&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186944&fm=163875114072994&tin=02508201610067®Number=0000000000091857&sum=150000 [07:44:57]OFD Sender: Processing packet 186944 [packets to send 49, broken 48] [07:44:57]ProducePacketName [07:44:57]name=ofd_packets/00186944 [07:44:57]OFD Sender: To server: pG, [07:44:57]CommunicateWithHost lk.salyk.kg:30040 [07:44:57]ConnectInit lk.salyk.kg [07:44:57]written 0, free lines is 4095 [07:44:58]Connected sock=10 [07:44: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 6A 6D 04 01 36 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 0A 00 00 00 F4 03 04 00 FA 8B 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 40 DA 02 00 35 04 06 00 95 0B 25 F6 3B A2 B3 65 2D EE D5 56 B1 33 [07:44: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 A1 4E 47 00 1F 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 40 DA 02 00 F4 03 04 00 4E 32 B5 67 B6 04 01 00 00 48 12 F5 3D 5D 38 F0 C8 [07:44:58]CommunicateWithHost err = 0 [07:44:58]CheckOFDResponse [07:44:58]1017 (14) - 77093643461234 [07:44:58]1041 (16) - 0000000000871826 [07:44:58]1040 (4) - 186944 [07:44:58]1012 (4) - 19.02.2025 01:22 [07:44:58]1206 (1) - 0 [07:44:58]OFD Sender: Remove packet 186944 [07:44:58]ProducePacketName [07:44:58]name=ofd_packets/00186944 [07:44:58]NVStorageDeleteData [07:44:58]Write to MH i2c: 01 00 00 CB 03 CE [07:44:58]Write i2c OK [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: 01 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: 01 07 00 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: 01 07 00 CB 03 00 00 00 00 00 FF 0C E0 [07:44:58]RasterBufferAndPrint [07:44:58]line [07:44:58]line [07:44:58]line [07:44:58]line [07:44:58]line [07:44:58]written 0, free lines is 3333 [07:44:58]MH_Cut [07:44:58]Write to MH i2c: D1 01 00 D2 03 01 A7 [07:44:58]Write i2c OK [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: D1 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: D1 01 00 [07:44:58]MH_I2C_Read... [07:44:58]Read from MH i2c: D1 01 00 D2 03 00 A6 [07:44:58]Write to MH i2c: 01 00 00 D3 03 D6 [07:44:58]Write i2c OK [07:44:58]MH_I2C_Read... [07:44:58]OFD Sender: No OFD packet to send [07:44:59]*** Cut start [07:44:59]*** Partial cut [07:44:59]*** CUTSNS_PIN = 1 [07:44:59]*** CUTSNS_PIN = 0 [07:44:59]*** Brake cut motor [07:44:59]Read from MH i2c: 01 [07:44:59]MH_I2C_Read... [07:44:59]*** Stop cut motor [07:44:59]*** Cut end [07:44:59]Read from MH i2c: 01 07 00 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: 01 07 00 D3 03 00 00 00 00 00 FF 0F EB [07:44:59]process_action close_receipt done [07:44:59]requested_data is exist [07:44:59]produce_requested_data [07:44:59]requested_item fm.sn is exist - process it [07:44:59]wFMCommunicate request_size=4 [07:44:59]MH_SAM_APDU [07:44:59]CAPDU: 80 11 00 00 [07:44:59]Write to MH i2c: E2 08 00 D4 03 80 11 00 00 00 00 00 00 51 [07:44:59]Write i2c OK [07:44:59]MH_I2C_Read... [07:44:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:59]Read from MH i2c: E2 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: E2 17 00 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: E2 17 00 D4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A4 [07:44: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:44:59]wFMCommunicate OK [07:44:59]requested_item fd.num is exist - process it [07:44:59]SAM_PROTO_GetFieldsCounters [07:44:59]wFMCommunicate request_size=4 [07:44:59]MH_SAM_APDU [07:44:59]CAPDU: 80 13 00 00 [07:44:59]Write to MH i2c: E2 08 00 D5 03 80 13 00 00 00 00 00 00 54 [07:44:59]Write i2c OK [07:44:59]MH_I2C_Read... [07:44:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:44:59]Read from MH i2c: E2 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: E2 62 00 [07:44:59]MH_I2C_Read... [07:44:59]Read from MH i2c: E2 62 00 D5 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 40 DA 02 00 0E 04 04 00 87 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 3D [07:44: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 40 DA 02 00 0E 04 04 00 87 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 [07:44:59]wFMCommunicate OK [07:44:59]SAM_PROTO_GetFieldsCounters done [07:44:59]requested_item shift.num is exist - process it [07:44:59]requested_item shift.opened is exist - process it [07:44:59]req_shift_opened [07:44:59]FM_GetShiftState [07:44:59]SAM_PROTO_GetShiftState [07:44:59]wFMCommunicate request_size=4 [07:44:59]MH_SAM_APDU [07:44:59]CAPDU: 80 13 01 00 [07:44:59]Write to MH i2c: E2 08 00 D6 03 80 13 01 00 00 00 00 00 56 [07:44:59]Write i2c OK [07:44:59]MH_I2C_Read... [07:45:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:00]Read from MH i2c: E2 [07:45:00]MH_I2C_Read... [07:45:00]Read from MH i2c: E2 0E 00 [07:45:00]MH_I2C_Read... [07:45:00]Read from MH i2c: E2 0E 00 D6 03 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D5 [07:45:00]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [07:45:00]wFMCommunicate OK [07:45:00]SAM_PROTO_GetShiftState done [07:45:00]FM_GetShiftState done [07:45:00]req_shift_opened done [07:45:00]requested_item shift.open_date is exist - process it [07:45:00]req_shift_open_date [07:45:00]req_shift_open_date done [07:45:00]produce_requested_data done [07:45:00]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186944,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [07:45:00]process_action_free close_receipt [07:45:00]json_value_free [07:45:00]json_value_free done [07:45:00]process_json_proto returns [07:45:00]Send response to host [07:45:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186944,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [07:45:00]free response buf [07:45:00]execute_script done [07:45:00]execute_script returns [07:45:00]free content buf [07:45:00]Sock 9.Close socket [07:45:00]Sock 9.Thread stoped [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:43]accept exits with 7 [07:50:43]New connection [07:50:43]New thread 3067022692 created [07:50:43]Thread 3066879332 joined [07:50:43]Waiting for new connection... [07:50:43] Sock 7.Parse request [07:50:43]Sock 7.Check first char [07:50:43]Sock 7.First char is OK [07:50:43]request: POST /json_proto HTTP/1.0 [07:50:43]Method: POST [07:50:43]URL: /json_proto [07:50:43]Method is POST - this is cgi request [07:50:43]url: /json_proto [07:50:43]query_string will be loaded in cgi processing [07:50:43]execute_cgi json_proto POST (null) [07:50:43]execute_cgi path=json_proto method=POST [07:50:43]POST find Content-Length [07:50:43]Host: 172.17.46.131:8080 [07:50:43]Content-Length: 678 [07:50:43]Content-Type: application/json [07:50:43] [07:50:43]POST finish read [07:50:43]Found Content-Length = 678 [07:50:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412095", "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" : 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" ] } } [07:50:43]execute_script... [07:50: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)412095", "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" : 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" ] } } [07:50:43]POST & json_proto [07:50:43]process_json_proto [07:50:43]json parsed OK: [07:50:43]protocol is kg_v1.0 [07:50:43]action value=close_receipt [07:50:43]process_action close_receipt [07:50:43]cmd_close_receipt [07:50:43]MH_GetDate [07:50:43]Write to MH i2c: F0 00 00 D7 03 C9 [07:50:43]Write i2c OK [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: F0 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: F0 09 00 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: F0 09 00 D7 03 00 55 8D B5 67 7E 41 4F 65 43 [07:50:43]GetLastDocTimeStamp 1739951098 [07:50:43]current date 1739951445 [07:50:43]FM_GetShiftState [07:50:43]SAM_PROTO_GetShiftState [07:50:43]wFMCommunicate request_size=4 [07:50:43]MH_SAM_APDU [07:50:43]CAPDU: 80 13 01 00 [07:50:43]Write to MH i2c: E2 08 00 D8 03 80 13 01 00 00 00 00 00 58 [07:50:43]Write i2c OK [07:50:43]MH_I2C_Read... [07:50:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:43]Read from MH i2c: E2 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 0E 00 [07:50:43]MH_I2C_Read... [07:50:43]Read from MH i2c: E2 0E 00 D8 03 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D7 [07:50:43]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [07:50:43]wFMCommunicate OK [07:50:43]SAM_PROTO_GetShiftState done [07:50:43]FM_GetShiftState done [07:50:43]opened in 1739929631 [07:50:43]opened+sec_in_day 1740016031 [07:50:43]quantity*price = 70042 [07:50:43]sum+1 = 70043 [07:50:43]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 СНО: Общий режим Чек 11 19.02.2025 07:50 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186945 ФПД: 1726908419694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T075045&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186945&fm=1726908419694&tin=02508201610067®Number=0000000000091857&sum=70000 [07:50:44]StoreToDocumentArchive [07:50:44]shift 647 fd 186945 [07:50:44]save to /storage/0647/doc_00186945 [07:50:44]save last doc name /storage/0647/doc_00186945 to /storage/kkm_last_doc_name [07:50:44]save OK [07:50:44]Clear old archive folders... [07:50:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:50:44]tlvbuf is 00596D50 [07:50:44]SAM_PROTO_ClearQueue [07:50:44]wFMCommunicate request_size=4 [07:50:44]MH_SAM_APDU [07:50:44]CAPDU: 80 09 00 00 [07:50:44]Write to MH i2c: E2 08 00 E5 03 80 09 00 00 00 00 00 00 5A [07:50:44]Write i2c OK [07:50:44]MH_I2C_Read... [07:50:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:44]Read from MH i2c: E2 [07:50:44]MH_I2C_Read... [07:50:44]Read from MH i2c: E2 03 00 [07:50:44]MH_I2C_Read... [07:50:44]Read from MH i2c: E2 03 00 E5 03 00 90 00 5C [07:50:44]RAPDU: 90 00 [07:50:44]wFMCommunicate OK [07:50:44]SAM_PROTO_ClearQueue done [07:50:44]KKMCreateOFDPacket [07:50:44]OFDProtocolAddRootSTLVToBuf [07:50:44]FM_MakeSignedData [07:50:44]FM_MakeSignedData [07:50:44]SAM_PROTO_SignData [07:50:44]wFMCommunicate request_size=4 [07:50:44]MH_SAM_APDU [07:50:44]CAPDU: 80 0D 01 02 [07:50:44]Write to MH i2c: E2 08 00 E6 03 80 0D 01 02 00 00 00 00 62 [07:50:44]Write i2c OK [07:50:44]MH_I2C_Read... [07:50:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:44]Read from MH i2c: E2 [07:50:44]MH_I2C_Read... [07:50:44]Read from MH i2c: E2 03 00 [07:50:44]MH_I2C_Read... [07:50:44]Read from MH i2c: E2 03 00 E6 03 00 90 00 5D [07:50:44]RAPDU: 90 00 [07:50:44]wFMCommunicate OK [07:50:44]wFMCommunicate request_size=255 [07:50:44]MH_SAM_APDU [07:50: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 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 0B 00 00 00 F4 03 04 00 55 8D 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 41 DA 02 00 35 04 06 00 01 [07:50:44]Write to MH i2c: E2 02 01 E7 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 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 0B 00 00 00 F4 03 04 00 55 8D 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 41 DA 02 00 35 04 06 00 01 00 00 5C [07:50:44]Write i2c OK [07:50:44]MH_I2C_Read... [07:50:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:44]Read from MH i2c: E2 [07:50:44]MH_I2C_Read... [07:50:44]Read from MH i2c: E2 03 00 [07:50:44]MH_I2C_Read... [07:50:44]Read from MH i2c: E2 03 00 E7 03 00 90 00 5E [07:50:44]RAPDU: 90 00 [07:50:44]wFMCommunicate OK [07:50:44]wFMCommunicate request_size=10 [07:50:44]MH_SAM_APDU [07:50:44]CAPDU: 80 0D 02 02 05 92 13 C3 4E 6E [07:50:44]Write to MH i2c: E2 0D 00 E8 03 80 0D 02 02 05 00 92 13 C3 4E 6E 00 00 93 [07:50:44]Write i2c OK [07:50:44]MH_I2C_Read... [07:50:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:44]Read from MH i2c: E2 [07:50:44]MH_I2C_Read... [07:50:44]Read from MH i2c: E2 03 00 [07:50:44]MH_I2C_Read... [07:50:44]Read from MH i2c: E2 03 00 E8 03 00 90 00 5F [07:50:44]RAPDU: 90 00 [07:50:44]wFMCommunicate OK [07:50:44]wFMCommunicate request_size=4 [07:50:44]MH_SAM_APDU [07:50:44]CAPDU: 80 0D 03 02 [07:50:44]Write to MH i2c: E2 08 00 E9 03 80 0D 03 02 00 00 00 00 67 [07:50:44]Write i2c OK [07:50:44]MH_I2C_Read... [07:50:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:45]Read from MH i2c: E2 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: E2 0B 00 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: E2 0B 00 E9 03 00 1B 18 8B 40 F5 1E 76 19 90 00 08 [07:50:45]RAPDU: 1B 18 8B 40 F5 1E 76 19 90 00 [07:50:45]wFMCommunicate OK [07:50:45]SAM_PROTO_SignData done [07:50:45]FM_MakeSignedData done [07:50:45]CreateOFDProtocolMessage [07:50:45]wFMCommunicate request_size=4 [07:50:45]MH_SAM_APDU [07:50:45]CAPDU: 80 11 00 00 [07:50:45]Write to MH i2c: E2 08 00 EA 03 80 11 00 00 00 00 00 00 67 [07:50:45]Write i2c OK [07:50:45]MH_I2C_Read... [07:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:45]Read from MH i2c: E2 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: E2 17 00 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: E2 17 00 EA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BA [07:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:50:45]wFMCommunicate OK [07:50:45]CreateOFDProtocolMessage done [07:50:45]OFDSenderStorePacket 186945 [07:50:45]StoreOFDPacket docnum=186945 [07:50: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 9E 06 07 01 CF 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 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 0B 00 00 00 F4 03 04 00 55 8D 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 41 DA 02 00 35 04 06 00 01 92 13 C3 4E 6E 1B 18 8B 40 F5 1E 76 19 [07:50:45]CheckFolder [07:50:45]dirname=/storage/ofd_packets [07:50:45]CheckFolder done [07:50:45]ProducePacketName [07:50:45]name=ofd_packets/00186945 [07:50:45]NVStorageSaveData ofd_packets/00186945 [07:50:45]File name is /storage/ofd_packets/00186945 [07:50:45]Write 301 bytes [07:50:45]NVStorageSaveData done [07:50:45]OFDSenderStorePacket done [07:50:45]KKMCreateOFDPacket done [07:50:45]NVStorageSaveData kkm_last_timestamp [07:50:45]File name is /storage/kkm_last_timestamp [07:50:45]Write 4 bytes [07:50:45]NVStorageSaveData done [07:50:45]ExternCall_PrintAddStr [07:50:45]wPrintStart [07:50:45]Write to MH i2c: 01 00 00 EB 03 EE [07:50:45]Write i2c OK [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: 01 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: 01 07 00 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: 01 07 00 EB 03 00 00 00 00 00 FF 0F 03 [07:50:45]RasterBufferAndPrint [07:50:45]line Счет N : (1)412095 [07:50:45]line ИНН: 02508201610067 [07:50:45]line Контрольно-Кассовый Чек [07:50:45]line ПРОДАЖА [07:50:45]line ТРК (МРК, ГНК) : 12 [07:50:45]line Товар: 2710124130 [07:50:45]line Аи-92-К-2 [07:50:45]line 10.910 * 64.20 [07:50:45]line = 700.42 [07:50:45]line НДС 12% НСП 1% [07:50:45]line > о реализуемом товаре [07:50:45]line ОКРУГЛЕНИЕ: -0.42 [07:50:45]line ИТОГО: 700.00 [07:50:45]line Внесено: 700.00 [07:50:45]line СДАЧА: 0.00 [07:50:45]line НСП 1% : 6.20 [07:50:45]line НДС 12% : 74.38 [07:50:45]line Наличными: 700.00 [07:50:45]line Безнал.: 0.00 [07:50:45]line Место: АЗС № 92 "Партнер Нефть" [07:50:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [07:50:45]line СНО: Общий режим [07:50:45]line Чек 11 19.02.2025 07:50 [07:50:45]line Смена: 647 ФФД: 1.0 [07:50:45]line ЗНМ: 0300000118 [07:50:45]line РНМ: 0000000000091857 [07:50:45]line Версия ККМ: 001 [07:50:45]line ФМ: 0000000000871826 [07:50:45]line ФД: 186945 [07:50:45]line ФПД: 1726908419694 [07:50:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T075045&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186945&fm=1726908419694&tin=02508201610067®Number=0000000000091857&sum=70000 [07:50:45]OFD Sender: Processing packet 186945 [packets to send 49, broken 48] [07:50:45]ProducePacketName [07:50:45]name=ofd_packets/00186945 [07:50:45]OFD Sender: To server: pG, [07:50:45]CommunicateWithHost lk.salyk.kg:30040 [07:50:45]ConnectInit lk.salyk.kg [07:50:45]written 0, free lines is 4095 [07:50:45]Connected sock=10 [07:50: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 9E 06 07 01 CF 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 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 0B 00 00 00 F4 03 04 00 55 8D 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 41 DA 02 00 35 04 06 00 01 92 13 C3 4E 6E 1B 18 8B 40 F5 1E 76 19 [07:50:45]Write to MH i2c: 01 00 00 16 04 1A [07:50:45]Write i2c OK [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: 01 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: 01 07 00 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: 01 07 00 16 04 00 00 00 00 00 F9 0C 26 [07:50:45]RasterBufferAndPrint [07:50:45]line [07:50:45]line [07:50:45]line [07:50:45]line [07:50:45]line [07:50:45]written 0, free lines is 3328 [07:50:45]MH_Cut [07:50:45]Write to MH i2c: D1 01 00 1D 04 01 F3 [07:50: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 E1 85 47 00 38 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 DA 02 00 F4 03 04 00 AA 33 B5 67 B6 04 01 00 00 7F BE 3C 4A 48 A4 E7 6D [07:50:45]CommunicateWithHost err = 0 [07:50:45]CheckOFDResponse [07:50:45]1017 (14) - 77093643461234 [07:50:45]1041 (16) - 0000000000871826 [07:50:45]1040 (4) - 186945 [07:50:45]1012 (4) - 19.02.2025 01:28 [07:50:45]1206 (1) - 0 [07:50:45]OFD Sender: Remove packet 186945 [07:50:45]ProducePacketName [07:50:45]name=ofd_packets/00186945 [07:50:45]NVStorageDeleteData [07:50:45]Write i2c OK [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: D1 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: D1 01 00 [07:50:45]MH_I2C_Read... [07:50:45]Read from MH i2c: D1 01 00 1D 04 00 F2 [07:50:45]Write to MH i2c: 01 00 00 1E 04 22 [07:50:45]Write i2c OK [07:50:45]MH_I2C_Read... [07:50:46]OFD Sender: No OFD packet to send [07:50:46]*** Cut start [07:50:46]*** Partial cut [07:50:46]*** CUTSNS_PIN = 1 [07:50:46]*** CUTSNS_PIN = 0 [07:50:46]*** Brake cut motor [07:50:47]Read from MH i2c: 01 [07:50:47]MH_I2C_Read... [07:50:47]*** Stop cut motor [07:50:47]*** Cut end [07:50:47]Read from MH i2c: 01 07 00 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: 01 07 00 1E 04 00 00 00 00 00 FF 0F 37 [07:50:47]process_action close_receipt done [07:50:47]requested_data is exist [07:50:47]produce_requested_data [07:50:47]requested_item fm.sn is exist - process it [07:50:47]wFMCommunicate request_size=4 [07:50:47]MH_SAM_APDU [07:50:47]CAPDU: 80 11 00 00 [07:50:47]Write to MH i2c: E2 08 00 1F 04 80 11 00 00 00 00 00 00 9D [07:50:47]Write i2c OK [07:50:47]MH_I2C_Read... [07:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:47]Read from MH i2c: E2 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 17 00 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 17 00 1F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F0 [07:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:50:47]wFMCommunicate OK [07:50:47]requested_item fd.num is exist - process it [07:50:47]SAM_PROTO_GetFieldsCounters [07:50:47]wFMCommunicate request_size=4 [07:50:47]MH_SAM_APDU [07:50:47]CAPDU: 80 13 00 00 [07:50:47]Write to MH i2c: E2 08 00 20 04 80 13 00 00 00 00 00 00 A0 [07:50:47]Write i2c OK [07:50:47]MH_I2C_Read... [07:50:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:47]Read from MH i2c: E2 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 62 00 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 62 00 20 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 41 DA 02 00 0E 04 04 00 87 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 8D [07:50: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 41 DA 02 00 0E 04 04 00 87 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 [07:50:47]wFMCommunicate OK [07:50:47]SAM_PROTO_GetFieldsCounters done [07:50:47]requested_item shift.num is exist - process it [07:50:47]requested_item shift.opened is exist - process it [07:50:47]req_shift_opened [07:50:47]FM_GetShiftState [07:50:47]SAM_PROTO_GetShiftState [07:50:47]wFMCommunicate request_size=4 [07:50:47]MH_SAM_APDU [07:50:47]CAPDU: 80 13 01 00 [07:50:47]Write to MH i2c: E2 08 00 21 04 80 13 01 00 00 00 00 00 A2 [07:50:47]Write i2c OK [07:50:47]MH_I2C_Read... [07:50:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:47]Read from MH i2c: E2 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 0E 00 [07:50:47]MH_I2C_Read... [07:50:47]Read from MH i2c: E2 0E 00 21 04 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 21 [07:50:47]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [07:50:47]wFMCommunicate OK [07:50:47]SAM_PROTO_GetShiftState done [07:50:47]FM_GetShiftState done [07:50:47]req_shift_opened done [07:50:47]requested_item shift.open_date is exist - process it [07:50:47]req_shift_open_date [07:50:47]req_shift_open_date done [07:50:47]produce_requested_data done [07:50:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186945,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [07:50:47]process_action_free close_receipt [07:50:47]json_value_free [07:50:47]json_value_free done [07:50:47]process_json_proto returns [07:50:47]Send response to host [07:50:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186945,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [07:50:47]free response buf [07:50:47]execute_script done [07:50:47]execute_script returns [07:50:47]free content buf [07:50:47]Sock 7.Close socket [07:50:47]Sock 7.Thread stoped [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:24]accept exits with 9 [07:55:24]New connection [07:55:24]New thread 3066879332 created [07:55:24]Thread 3067022692 joined [07:55:24]Waiting for new connection... [07:55:24] Sock 9.Parse request [07:55:24]Sock 9.Check first char [07:55:24]Sock 9.First char is OK [07:55:24]request: POST /json_proto HTTP/1.0 [07:55:24]Method: POST [07:55:24]URL: /json_proto [07:55:24]Method is POST - this is cgi request [07:55:24]url: /json_proto [07:55:24]query_string will be loaded in cgi processing [07:55:24]execute_cgi json_proto POST (null) [07:55:24]execute_cgi path=json_proto method=POST [07:55:24]POST find Content-Length [07:55:24]Host: 172.17.46.131:8080 [07:55:24]Content-Length: 682 [07:55:24]Content-Type: application/json [07:55:24] [07:55:24]POST finish read [07:55:24]Found Content-Length = 682 [07:55:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412096", "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" ] } } [07:55:24]execute_script... [07:55: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)412096", "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" ] } } [07:55:24]POST & json_proto [07:55:24]process_json_proto [07:55:24]json parsed OK: [07:55:24]protocol is kg_v1.0 [07:55:24]action value=close_receipt [07:55:24]process_action close_receipt [07:55:24]cmd_close_receipt [07:55:24]MH_GetDate [07:55:24]Write to MH i2c: F0 00 00 22 04 15 [07:55:24]Write i2c OK [07:55:24]MH_I2C_Read... [07:55:24]Read from MH i2c: F0 [07:55:24]MH_I2C_Read... [07:55:24]Read from MH i2c: F0 09 00 [07:55:24]MH_I2C_Read... [07:55:24]Read from MH i2c: F0 09 00 22 04 00 6F 8E B5 67 7E 41 4F 65 AA [07:55:24]GetLastDocTimeStamp 1739951445 [07:55:24]current date 1739951727 [07:55:24]FM_GetShiftState [07:55:24]SAM_PROTO_GetShiftState [07:55:24]wFMCommunicate request_size=4 [07:55:24]MH_SAM_APDU [07:55:24]CAPDU: 80 13 01 00 [07:55:24]Write to MH i2c: E2 08 00 23 04 80 13 01 00 00 00 00 00 A4 [07:55:24]Write i2c OK [07:55:24]MH_I2C_Read... [07:55:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:25]Read from MH i2c: E2 [07:55:25]MH_I2C_Read... [07:55:25]Read from MH i2c: E2 0E 00 [07:55:25]MH_I2C_Read... [07:55:25]Read from MH i2c: E2 0E 00 23 04 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 23 [07:55:25]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [07:55:25]wFMCommunicate OK [07:55:25]SAM_PROTO_GetShiftState done [07:55:25]FM_GetShiftState done [07:55:25]opened in 1739929631 [07:55:25]opened+sec_in_day 1740016031 [07:55:25]quantity*price = 100023 [07:55:25]sum+1 = 100025 [07:55:25]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 СНО: Общий режим Чек 12 19.02.2025 07:55 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186946 ФПД: 200960338666131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T075527&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186946&fm=200960338666131&tin=02508201610067®Number=0000000000091857&sum=100000 [07:55:26]StoreToDocumentArchive [07:55:26]shift 647 fd 186946 [07:55:26]save to /storage/0647/doc_00186946 [07:55:26]save last doc name /storage/0647/doc_00186946 to /storage/kkm_last_doc_name [07:55:26]save OK [07:55:26]Clear old archive folders... [07:55:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:55:26]tlvbuf is 005BDA70 [07:55:26]SAM_PROTO_ClearQueue [07:55:26]wFMCommunicate request_size=4 [07:55:26]MH_SAM_APDU [07:55:26]CAPDU: 80 09 00 00 [07:55:26]Write to MH i2c: E2 08 00 30 04 80 09 00 00 00 00 00 00 A6 [07:55:26]Write i2c OK [07:55:26]MH_I2C_Read... [07:55:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:55:26]Read from MH i2c: E2 [07:55:26]MH_I2C_Read... [07:55:26]Read from MH i2c: E2 03 00 [07:55:26]MH_I2C_Read... [07:55:26]Read from MH i2c: E2 03 00 30 04 00 90 00 A8 [07:55:26]RAPDU: 90 00 [07:55:26]wFMCommunicate OK [07:55:26]SAM_PROTO_ClearQueue done [07:55:26]KKMCreateOFDPacket [07:55:26]OFDProtocolAddRootSTLVToBuf [07:55:26]FM_MakeSignedData [07:55:26]FM_MakeSignedData [07:55:26]SAM_PROTO_SignData [07:55:26]wFMCommunicate request_size=4 [07:55:26]MH_SAM_APDU [07:55:26]CAPDU: 80 0D 01 02 [07:55:26]Write to MH i2c: E2 08 00 31 04 80 0D 01 02 00 00 00 00 AE [07:55:26]Write i2c OK [07:55:26]MH_I2C_Read... [07:55:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:55:26]Read from MH i2c: E2 [07:55:26]MH_I2C_Read... [07:55:26]Read from MH i2c: E2 03 00 [07:55:26]MH_I2C_Read... [07:55:26]Read from MH i2c: E2 03 00 31 04 00 90 00 A9 [07:55:26]RAPDU: 90 00 [07:55:26]wFMCommunicate OK [07:55:26]wFMCommunicate request_size=255 [07:55:26]MH_SAM_APDU [07:55: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 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 0C 00 00 00 F4 03 04 00 6F 8E 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 42 DA 02 00 35 04 06 00 B6 [07:55:26]Write to MH i2c: E2 02 01 32 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0C 00 00 00 F4 03 04 00 6F 8E 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 42 DA 02 00 35 04 06 00 B6 00 00 2D [07:55:26]Write i2c OK [07:55:26]MH_I2C_Read... [07:55:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:26]Read from MH i2c: E2 [07:55:26]MH_I2C_Read... [07:55:26]Read from MH i2c: E2 03 00 [07:55:26]MH_I2C_Read... [07:55:26]Read from MH i2c: E2 03 00 32 04 00 90 00 AA [07:55:26]RAPDU: 90 00 [07:55:26]wFMCommunicate OK [07:55:26]wFMCommunicate request_size=10 [07:55:26]MH_SAM_APDU [07:55:26]CAPDU: 80 0D 02 02 05 C5 B9 99 A2 93 [07:55:26]Write to MH i2c: E2 0D 00 33 04 80 0D 02 02 05 00 C5 B9 99 A2 93 00 00 07 [07:55:26]Write i2c OK [07:55:26]MH_I2C_Read... [07:55:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:26]Read from MH i2c: E2 [07:55:26]MH_I2C_Read... [07:55:26]Read from MH i2c: E2 03 00 [07:55:26]MH_I2C_Read... [07:55:26]Read from MH i2c: E2 03 00 33 04 00 90 00 AB [07:55:26]RAPDU: 90 00 [07:55:26]wFMCommunicate OK [07:55:26]wFMCommunicate request_size=4 [07:55:26]MH_SAM_APDU [07:55:26]CAPDU: 80 0D 03 02 [07:55:26]Write to MH i2c: E2 08 00 34 04 80 0D 03 02 00 00 00 00 B3 [07:55:26]Write i2c OK [07:55:26]MH_I2C_Read... [07:55:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:55:26]Read from MH i2c: E2 [07:55:26]MH_I2C_Read... [07:55:26]Read from MH i2c: E2 0B 00 [07:55:26]MH_I2C_Read... [07:55:26]Read from MH i2c: E2 0B 00 34 04 00 AC AB 25 77 FD A2 F9 6B 90 00 AA [07:55:26]RAPDU: AC AB 25 77 FD A2 F9 6B 90 00 [07:55:26]wFMCommunicate OK [07:55:26]SAM_PROTO_SignData done [07:55:26]FM_MakeSignedData done [07:55:26]CreateOFDProtocolMessage [07:55:26]wFMCommunicate request_size=4 [07:55:26]MH_SAM_APDU [07:55:26]CAPDU: 80 11 00 00 [07:55:26]Write to MH i2c: E2 08 00 35 04 80 11 00 00 00 00 00 00 B3 [07:55:26]Write i2c OK [07:55:26]MH_I2C_Read... [07:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:26]Read from MH i2c: E2 [07:55:26]MH_I2C_Read... [07:55:26]Read from MH i2c: E2 17 00 [07:55:26]MH_I2C_Read... [07:55:26]Read from MH i2c: E2 17 00 35 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 06 [07:55:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:55:26]wFMCommunicate OK [07:55:26]CreateOFDProtocolMessage done [07:55:26]OFDSenderStorePacket 186946 [07:55:26]StoreOFDPacket docnum=186946 [07:55: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 12 37 07 01 CB 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0C 00 00 00 F4 03 04 00 6F 8E 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 42 DA 02 00 35 04 06 00 B6 C5 B9 99 A2 93 AC AB 25 77 FD A2 F9 6B [07:55:26]CheckFolder [07:55:26]dirname=/storage/ofd_packets [07:55:26]CheckFolder done [07:55:26]ProducePacketName [07:55:26]name=ofd_packets/00186946 [07:55:26]NVStorageSaveData ofd_packets/00186946 [07:55:26]File name is /storage/ofd_packets/00186946 [07:55:26]Write 301 bytes [07:55:26]NVStorageSaveData done [07:55:26]OFDSenderStorePacket done [07:55:26]KKMCreateOFDPacket done [07:55:26]NVStorageSaveData kkm_last_timestamp [07:55:26]File name is /storage/kkm_last_timestamp [07:55:26]Write 4 bytes [07:55:26]NVStorageSaveData done [07:55:26]ExternCall_PrintAddStr [07:55:26]wPrintStart [07:55:26]Write to MH i2c: 01 00 00 36 04 3A [07:55:26]Write i2c OK [07:55:26]MH_I2C_Read... [07:55:26]Read from MH i2c: 01 [07:55:26]MH_I2C_Read... [07:55:26]Read from MH i2c: 01 07 00 [07:55:26]MH_I2C_Read... [07:55:26]Read from MH i2c: 01 07 00 36 04 00 00 00 00 00 FF 0F 4F [07:55:26]RasterBufferAndPrint [07:55:26]line Счет N : (1)412096 [07:55:26]line ИНН: 02508201610067 [07:55:26]line Контрольно-Кассовый Чек [07:55:26]line ПРОДАЖА [07:55:26]line ТРК (МРК, ГНК) : 32 [07:55:26]line Товар: 2710124130 [07:55:26]line Аи-92-К-2 [07:55:26]line 15.580 * 64.20 [07:55:26]line = 1000.24 [07:55:26]line НДС 12% НСП 1% [07:55:26]line > о реализуемом товаре [07:55:26]line ОКРУГЛЕНИЕ: -0.24 [07:55:26]line ИТОГО: 1000.00 [07:55:26]line Внесено: 1000.00 [07:55:26]line СДАЧА: 0.00 [07:55:26]line НСП 1% : 8.85 [07:55:26]line НДС 12% : 106.22 [07:55:26]line Наличными: 1000.00 [07:55:26]line Безнал.: 0.00 [07:55:26]line Место: АЗС № 92 "Партнер Нефть" [07:55:26]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [07:55:26]line СНО: Общий режим [07:55:26]line Чек 12 19.02.2025 07:55 [07:55:26]line Смена: 647 ФФД: 1.0 [07:55:26]line ЗНМ: 0300000118 [07:55:26]line РНМ: 0000000000091857 [07:55:26]line Версия ККМ: 001 [07:55:26]line ФМ: 0000000000871826 [07:55:26]line ФД: 186946 [07:55:26]line ФПД: 200960338666131 [07:55:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T075527&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186946&fm=200960338666131&tin=02508201610067®Number=0000000000091857&sum=100000 [07:55:27]OFD Sender: Processing packet 186946 [packets to send 49, broken 48] [07:55:27]ProducePacketName [07:55:27]name=ofd_packets/00186946 [07:55:27]OFD Sender: To server: pG, [07:55:27]CommunicateWithHost lk.salyk.kg:30040 [07:55:27]ConnectInit lk.salyk.kg [07:55:27]written 0, free lines is 4095 [07:55:27]Connected sock=7 [07:55: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 12 37 07 01 CB 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0C 00 00 00 F4 03 04 00 6F 8E 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 42 DA 02 00 35 04 06 00 B6 C5 B9 99 A2 93 AC AB 25 77 FD A2 F9 6B [07:55: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 C2 48 47 00 EE 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 42 DA 02 00 F4 03 04 00 C3 34 B5 67 B6 04 01 00 00 11 49 70 95 B9 FB 4A B8 [07:55:27]CommunicateWithHost err = 0 [07:55:27]CheckOFDResponse [07:55:27]1017 (14) - 77093643461234 [07:55:27]1041 (16) - 0000000000871826 [07:55:27]1040 (4) - 186946 [07:55:27]1012 (4) - 19.02.2025 01:32 [07:55:27]1206 (1) - 0 [07:55:27]OFD Sender: Remove packet 186946 [07:55:27]ProducePacketName [07:55:27]name=ofd_packets/00186946 [07:55:27]NVStorageDeleteData [07:55:27]Write to MH i2c: 01 00 00 61 04 65 [07:55:27]Write i2c OK [07:55:27]MH_I2C_Read... [07:55:27]Read from MH i2c: 01 [07:55:27]MH_I2C_Read... [07:55:27]Read from MH i2c: 01 07 00 [07:55:27]MH_I2C_Read... [07:55:27]Read from MH i2c: 01 07 00 61 04 00 00 00 00 00 00 0D 79 [07:55:27]RasterBufferAndPrint [07:55:27]line [07:55:27]line [07:55:27]line [07:55:27]line [07:55:27]line [07:55:27]written 0, free lines is 3334 [07:55:27]MH_Cut [07:55:27]Write to MH i2c: D1 01 00 68 04 01 3E [07:55:27]Write i2c OK [07:55:27]MH_I2C_Read... [07:55:27]Read from MH i2c: D1 [07:55:27]MH_I2C_Read... [07:55:27]Read from MH i2c: D1 01 00 [07:55:27]MH_I2C_Read... [07:55:27]Read from MH i2c: D1 01 00 68 04 00 3D [07:55:27]Write to MH i2c: 01 00 00 69 04 6D [07:55:27]Write i2c OK [07:55:27]MH_I2C_Read... [07:55:27]OFD Sender: No OFD packet to send [07:55:28]*** Cut start [07:55:28]*** Partial cut [07:55:28]*** CUTSNS_PIN = 1 [07:55:28]*** CUTSNS_PIN = 0 [07:55:28]*** Brake cut motor [07:55:28]Read from MH i2c: 01 [07:55:28]MH_I2C_Read... [07:55:28]*** Stop cut motor [07:55:28]*** Cut end [07:55:28]Read from MH i2c: 01 07 00 [07:55:28]MH_I2C_Read... [07:55:28]Read from MH i2c: 01 07 00 69 04 00 00 00 00 00 FF 0F 82 [07:55:28]process_action close_receipt done [07:55:28]requested_data is exist [07:55:28]produce_requested_data [07:55:28]requested_item fm.sn is exist - process it [07:55:28]wFMCommunicate request_size=4 [07:55:28]MH_SAM_APDU [07:55:28]CAPDU: 80 11 00 00 [07:55:28]Write to MH i2c: E2 08 00 6A 04 80 11 00 00 00 00 00 00 E8 [07:55:28]Write i2c OK [07:55:28]MH_I2C_Read... [07:55:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:28]Read from MH i2c: E2 [07:55:28]MH_I2C_Read... [07:55:28]Read from MH i2c: E2 17 00 [07:55:28]MH_I2C_Read... [07:55:28]Read from MH i2c: E2 17 00 6A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3B [07:55:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:55:28]wFMCommunicate OK [07:55:28]requested_item fd.num is exist - process it [07:55:28]SAM_PROTO_GetFieldsCounters [07:55:28]wFMCommunicate request_size=4 [07:55:28]MH_SAM_APDU [07:55:28]CAPDU: 80 13 00 00 [07:55:28]Write to MH i2c: E2 08 00 6B 04 80 13 00 00 00 00 00 00 EB [07:55:28]Write i2c OK [07:55:28]MH_I2C_Read... [07:55:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:55:29]Read from MH i2c: E2 [07:55:29]MH_I2C_Read... [07:55:29]Read from MH i2c: E2 62 00 [07:55:29]MH_I2C_Read... [07:55:29]Read from MH i2c: E2 62 00 6B 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 42 DA 02 00 0E 04 04 00 87 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 DC [07:55: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 42 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:55:29]wFMCommunicate OK [07:55:29]SAM_PROTO_GetFieldsCounters done [07:55:29]requested_item shift.num is exist - process it [07:55:29]requested_item shift.opened is exist - process it [07:55:29]req_shift_opened [07:55:29]FM_GetShiftState [07:55:29]SAM_PROTO_GetShiftState [07:55:29]wFMCommunicate request_size=4 [07:55:29]MH_SAM_APDU [07:55:29]CAPDU: 80 13 01 00 [07:55:29]Write to MH i2c: E2 08 00 6C 04 80 13 01 00 00 00 00 00 ED [07:55:29]Write i2c OK [07:55:29]MH_I2C_Read... [07:55:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:29]Read from MH i2c: E2 [07:55:29]MH_I2C_Read... [07:55:29]Read from MH i2c: E2 0E 00 [07:55:29]MH_I2C_Read... [07:55:29]Read from MH i2c: E2 0E 00 6C 04 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 6C [07:55:29]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [07:55:29]wFMCommunicate OK [07:55:29]SAM_PROTO_GetShiftState done [07:55:29]FM_GetShiftState done [07:55:29]req_shift_opened done [07:55:29]requested_item shift.open_date is exist - process it [07:55:29]req_shift_open_date [07:55:29]req_shift_open_date done [07:55:29]produce_requested_data done [07:55:29]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186946,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [07:55:29]process_action_free close_receipt [07:55:29]json_value_free [07:55:29]json_value_free done [07:55:29]process_json_proto returns [07:55:29]Send response to host [07:55:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186946,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [07:55:29]free response buf [07:55:29]execute_script done [07:55:29]execute_script returns [07:55:29]free content buf [07:55:29]Sock 9.Close socket [07:55:29]Sock 9.Thread stoped [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:28]OFD Sender: No OFD packet to send [07:56:33]OFD Sender: No OFD packet to send [07:56:38]OFD Sender: No OFD packet to send [07:56:43]OFD Sender: No OFD packet to send [07:56:48]OFD Sender: No OFD packet to send [07:56:53]OFD Sender: No OFD packet to send [07:56:58]OFD Sender: No OFD packet to send [07:57:03]OFD Sender: No OFD packet to send [07:57:08]OFD Sender: No OFD packet to send [07:57:13]OFD Sender: No OFD packet to send [07:57:18]OFD Sender: No OFD packet to send [07:57:23]OFD Sender: No OFD packet to send [07:57:28]OFD Sender: No OFD packet to send [07:57:33]OFD Sender: No OFD packet to send [07:57:38]OFD Sender: No OFD packet to send [07:57:43]OFD Sender: No OFD packet to send [07:57:48]OFD Sender: No OFD packet to send [07:57:53]OFD Sender: No OFD packet to send [07:57:58]OFD Sender: No OFD packet to send [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:04]accept exits with 10 [08:01:04]New connection [08:01:04]New thread 3067022692 created [08:01:04]Thread 3066879332 joined [08:01:04]Waiting for new connection... [08:01:04] Sock 10.Parse request [08:01:04]Sock 10.Check first char [08:01:04]Sock 10.First char is OK [08:01:04]request: POST /json_proto HTTP/1.0 [08:01:04]Method: POST [08:01:04]URL: /json_proto [08:01:04]Method is POST - this is cgi request [08:01:04]url: /json_proto [08:01:04]query_string will be loaded in cgi processing [08:01:04]execute_cgi json_proto POST (null) [08:01:04]execute_cgi path=json_proto method=POST [08:01:04]POST find Content-Length [08:01:04]Host: 172.17.46.131:8080 [08:01:04]Content-Length: 682 [08:01:04]Content-Type: application/json [08:01:04] [08:01:04]POST finish read [08:01:04]Found Content-Length = 682 [08:01:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412097", "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" ] } } [08:01:04]execute_script... [08:01: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)412097", "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" ] } } [08:01:04]POST & json_proto [08:01:04]process_json_proto [08:01:04]json parsed OK: [08:01:04]protocol is kg_v1.0 [08:01:04]action value=close_receipt [08:01:04]process_action close_receipt [08:01:04]cmd_close_receipt [08:01:04]MH_GetDate [08:01:04]Write to MH i2c: F0 00 00 6D 04 60 [08:01:04]Write i2c OK [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: F0 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: F0 09 00 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: F0 09 00 6D 04 00 C2 8F B5 67 7E 41 4F 65 49 [08:01:04]GetLastDocTimeStamp 1739951727 [08:01:04]current date 1739952066 [08:01:04]FM_GetShiftState [08:01:04]SAM_PROTO_GetShiftState [08:01:04]wFMCommunicate request_size=4 [08:01:04]MH_SAM_APDU [08:01:04]CAPDU: 80 13 01 00 [08:01:04]Write to MH i2c: E2 08 00 6E 04 80 13 01 00 00 00 00 00 EF [08:01:04]Write i2c OK [08:01:04]MH_I2C_Read... [08:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:04]Read from MH i2c: E2 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: E2 0E 00 [08:01:04]MH_I2C_Read... [08:01:04]Read from MH i2c: E2 0E 00 6E 04 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 6E [08:01:04]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:01:04]wFMCommunicate OK [08:01:04]SAM_PROTO_GetShiftState done [08:01:04]FM_GetShiftState done [08:01:04]opened in 1739929631 [08:01:04]opened+sec_in_day 1740016031 [08:01:04]quantity*price = 100023 [08:01:04]sum+1 = 100025 [08:01:04]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 СНО: Общий режим Чек 13 19.02.2025 08:01 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186947 ФПД: 74775530867332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T080107&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186947&fm=74775530867332&tin=02508201610067®Number=0000000000091857&sum=100000 [08:01:05]StoreToDocumentArchive [08:01:05]shift 647 fd 186947 [08:01:05]save to /storage/0647/doc_00186947 [08:01:05]save last doc name /storage/0647/doc_00186947 to /storage/kkm_last_doc_name [08:01:05]save OK [08:01:05]Clear old archive folders... [08:01:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:01:05]tlvbuf is 005C0B90 [08:01:05]SAM_PROTO_ClearQueue [08:01:05]wFMCommunicate request_size=4 [08:01:05]MH_SAM_APDU [08:01:05]CAPDU: 80 09 00 00 [08:01:05]Write to MH i2c: E2 08 00 7B 04 80 09 00 00 00 00 00 00 F1 [08:01:05]Write i2c OK [08:01:05]MH_I2C_Read... [08:01:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:05]Read from MH i2c: E2 [08:01:05]MH_I2C_Read... [08:01:05]Read from MH i2c: E2 03 00 [08:01:05]MH_I2C_Read... [08:01:05]Read from MH i2c: E2 03 00 7B 04 00 90 00 F3 [08:01:05]RAPDU: 90 00 [08:01:05]wFMCommunicate OK [08:01:05]SAM_PROTO_ClearQueue done [08:01:05]KKMCreateOFDPacket [08:01:05]OFDProtocolAddRootSTLVToBuf [08:01:05]FM_MakeSignedData [08:01:05]FM_MakeSignedData [08:01:05]SAM_PROTO_SignData [08:01:05]wFMCommunicate request_size=4 [08:01:05]MH_SAM_APDU [08:01:05]CAPDU: 80 0D 01 02 [08:01:05]Write to MH i2c: E2 08 00 7C 04 80 0D 01 02 00 00 00 00 F9 [08:01:05]Write i2c OK [08:01:05]MH_I2C_Read... [08:01:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:05]Read from MH i2c: E2 [08:01:05]MH_I2C_Read... [08:01:05]Read from MH i2c: E2 03 00 [08:01:05]MH_I2C_Read... [08:01:05]Read from MH i2c: E2 03 00 7C 04 00 90 00 F4 [08:01:05]RAPDU: 90 00 [08:01:05]wFMCommunicate OK [08:01:05]wFMCommunicate request_size=255 [08:01:05]MH_SAM_APDU [08:01: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 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 0D 00 00 00 F4 03 04 00 C3 8F 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 43 DA 02 00 35 04 06 00 44 [08:01:05]Write to MH i2c: E2 02 01 7D 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0D 00 00 00 F4 03 04 00 C3 8F 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 43 DA 02 00 35 04 06 00 44 00 00 5D [08:01:05]Write i2c OK [08:01:05]MH_I2C_Read... [08:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:06]Read from MH i2c: E2 [08:01:06]MH_I2C_Read... [08:01:06]Read from MH i2c: E2 03 00 [08:01:06]MH_I2C_Read... [08:01:06]Read from MH i2c: E2 03 00 7D 04 00 90 00 F5 [08:01:06]RAPDU: 90 00 [08:01:06]wFMCommunicate OK [08:01:06]wFMCommunicate request_size=10 [08:01:06]MH_SAM_APDU [08:01:06]CAPDU: 80 0D 02 02 05 02 08 F4 8A 84 [08:01:06]Write to MH i2c: E2 0D 00 7E 04 80 0D 02 02 05 00 02 08 F4 8A 84 00 00 12 [08:01:06]Write i2c OK [08:01:06]MH_I2C_Read... [08:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:06]Read from MH i2c: E2 [08:01:06]MH_I2C_Read... [08:01:06]Read from MH i2c: E2 03 00 [08:01:06]MH_I2C_Read... [08:01:06]Read from MH i2c: E2 03 00 7E 04 00 90 00 F6 [08:01:06]RAPDU: 90 00 [08:01:06]wFMCommunicate OK [08:01:06]wFMCommunicate request_size=4 [08:01:06]MH_SAM_APDU [08:01:06]CAPDU: 80 0D 03 02 [08:01:06]Write to MH i2c: E2 08 00 7F 04 80 0D 03 02 00 00 00 00 FE [08:01:06]Write i2c OK [08:01:06]MH_I2C_Read... [08:01:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:06]Read from MH i2c: E2 [08:01:06]MH_I2C_Read... [08:01:06]Read from MH i2c: E2 0B 00 [08:01:06]MH_I2C_Read... [08:01:06]Read from MH i2c: E2 0B 00 7F 04 00 1E 74 F2 2A CB AD E1 C8 90 00 CE [08:01:06]RAPDU: 1E 74 F2 2A CB AD E1 C8 90 00 [08:01:06]wFMCommunicate OK [08:01:06]SAM_PROTO_SignData done [08:01:06]FM_MakeSignedData done [08:01:06]CreateOFDProtocolMessage [08:01:06]wFMCommunicate request_size=4 [08:01:06]MH_SAM_APDU [08:01:06]CAPDU: 80 11 00 00 [08:01:06]Write to MH i2c: E2 08 00 80 04 80 11 00 00 00 00 00 00 FE [08:01:06]Write i2c OK [08:01:06]MH_I2C_Read... [08:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:06]Read from MH i2c: E2 [08:01:06]MH_I2C_Read... [08:01:06]Read from MH i2c: E2 17 00 [08:01:06]MH_I2C_Read... [08:01:06]Read from MH i2c: E2 17 00 80 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 51 [08:01: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:01:06]wFMCommunicate OK [08:01:06]CreateOFDProtocolMessage done [08:01:06]OFDSenderStorePacket 186947 [08:01:06]StoreOFDPacket docnum=186947 [08:01: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 DA 35 07 01 40 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 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 0D 00 00 00 F4 03 04 00 C3 8F 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 43 DA 02 00 35 04 06 00 44 02 08 F4 8A 84 1E 74 F2 2A CB AD E1 C8 [08:01:06]CheckFolder [08:01:06]dirname=/storage/ofd_packets [08:01:06]CheckFolder done [08:01:06]ProducePacketName [08:01:06]name=ofd_packets/00186947 [08:01:06]NVStorageSaveData ofd_packets/00186947 [08:01:06]File name is /storage/ofd_packets/00186947 [08:01:06]Write 301 bytes [08:01:06]NVStorageSaveData done [08:01:06]OFDSenderStorePacket done [08:01:06]KKMCreateOFDPacket done [08:01:06]NVStorageSaveData kkm_last_timestamp [08:01:06]File name is /storage/kkm_last_timestamp [08:01:06]Write 4 bytes [08:01:06]NVStorageSaveData done [08:01:06]ExternCall_PrintAddStr [08:01:06]wPrintStart [08:01:06]Write to MH i2c: 01 00 00 81 04 85 [08:01:06]Write i2c OK [08:01:06]MH_I2C_Read... [08:01:06]Read from MH i2c: 01 [08:01:06]MH_I2C_Read... [08:01:06]Read from MH i2c: 01 07 00 [08:01:06]MH_I2C_Read... [08:01:06]Read from MH i2c: 01 07 00 81 04 00 00 00 00 00 FF 0F 9A [08:01:06]RasterBufferAndPrint [08:01:06]line Счет N : (1)412097 [08:01:06]line ИНН: 02508201610067 [08:01:06]line Контрольно-Кассовый Чек [08:01:06]line ПРОДАЖА [08:01:06]line ТРК (МРК, ГНК) : 32 [08:01:06]line Товар: 2710124130 [08:01:06]line Аи-92-К-2 [08:01:06]line 15.580 * 64.20 [08:01:06]line = 1000.24 [08:01:06]line НДС 12% НСП 1% [08:01:06]line > о реализуемом товаре [08:01:06]line ОКРУГЛЕНИЕ: -0.24 [08:01:06]line ИТОГО: 1000.00 [08:01:06]line Внесено: 1000.00 [08:01:06]line СДАЧА: 0.00 [08:01:06]line НСП 1% : 8.85 [08:01:06]line НДС 12% : 106.22 [08:01:06]line Наличными: 1000.00 [08:01:06]line Безнал.: 0.00 [08:01:06]line Место: АЗС № 92 "Партнер Нефть" [08:01:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:01:06]line СНО: Общий режим [08:01:06]line Чек 13 19.02.2025 08:01 [08:01:06]line Смена: 647 ФФД: 1.0 [08:01:06]line ЗНМ: 0300000118 [08:01:06]line РНМ: 0000000000091857 [08:01:06]line Версия ККМ: 001 [08:01:06]line ФМ: 0000000000871826 [08:01:06]line ФД: 186947 [08:01:06]line ФПД: 74775530867332 [08:01:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T080107&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186947&fm=74775530867332&tin=02508201610067®Number=0000000000091857&sum=100000 [08:01:06]OFD Sender: Processing packet 186947 [packets to send 49, broken 48] [08:01:06]ProducePacketName [08:01:06]name=ofd_packets/00186947 [08:01:06]OFD Sender: To server: pG, [08:01:06]CommunicateWithHost lk.salyk.kg:30040 [08:01:06]ConnectInit lk.salyk.kg [08:01:06]written 0, free lines is 4095 [08:01:06]Connected sock=9 [08:01: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 DA 35 07 01 40 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 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 0D 00 00 00 F4 03 04 00 C3 8F 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 43 DA 02 00 35 04 06 00 44 02 08 F4 8A 84 1E 74 F2 2A CB AD E1 C8 [08:01: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 4C CF 47 00 4C 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 43 DA 02 00 F4 03 04 00 17 36 B5 67 B6 04 01 00 00 8D FD 8C D4 75 D0 57 DC [08:01:07]CommunicateWithHost err = 0 [08:01:07]CheckOFDResponse [08:01:07]1017 (14) - 77093643461234 [08:01:07]1041 (16) - 0000000000871826 [08:01:07]1040 (4) - 186947 [08:01:07]1012 (4) - 19.02.2025 01:38 [08:01:07]1206 (1) - 0 [08:01:07]OFD Sender: Remove packet 186947 [08:01:07]ProducePacketName [08:01:07]name=ofd_packets/00186947 [08:01:07]NVStorageDeleteData [08:01:07]Write to MH i2c: 01 00 00 AC 04 B0 [08:01:07]Write i2c OK [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: 01 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: 01 07 00 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: 01 07 00 AC 04 00 00 00 00 00 01 0D C5 [08:01:07]RasterBufferAndPrint [08:01:07]line [08:01:07]line [08:01:07]line [08:01:07]line [08:01:07]line [08:01:07]written 0, free lines is 3335 [08:01:07]MH_Cut [08:01:07]Write to MH i2c: D1 01 00 B3 04 01 89 [08:01:07]Write i2c OK [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: D1 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: D1 01 00 [08:01:07]MH_I2C_Read... [08:01:07]Read from MH i2c: D1 01 00 B3 04 00 88 [08:01:07]Write to MH i2c: 01 00 00 B4 04 B8 [08:01:07]Write i2c OK [08:01:07]MH_I2C_Read... [08:01:07]OFD Sender: No OFD packet to send [08:01:07]*** Cut start [08:01:07]*** Partial cut [08:01:07]*** CUTSNS_PIN = 1 [08:01:07]*** CUTSNS_PIN = 0 [08:01:08]*** Brake cut motor [08:01:08]Read from MH i2c: 01 [08:01:08]MH_I2C_Read... [08:01:08]*** Stop cut motor [08:01:08]*** Cut end [08:01:08]Read from MH i2c: 01 07 00 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: 01 07 00 B4 04 00 00 00 00 00 FF 0F CD [08:01:08]process_action close_receipt done [08:01:08]requested_data is exist [08:01:08]produce_requested_data [08:01:08]requested_item fm.sn is exist - process it [08:01:08]wFMCommunicate request_size=4 [08:01:08]MH_SAM_APDU [08:01:08]CAPDU: 80 11 00 00 [08:01:08]Write to MH i2c: E2 08 00 B5 04 80 11 00 00 00 00 00 00 33 [08:01:08]Write i2c OK [08:01:08]MH_I2C_Read... [08:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:08]Read from MH i2c: E2 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: E2 17 00 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: E2 17 00 B5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 86 [08:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:01:08]wFMCommunicate OK [08:01:08]requested_item fd.num is exist - process it [08:01:08]SAM_PROTO_GetFieldsCounters [08:01:08]wFMCommunicate request_size=4 [08:01:08]MH_SAM_APDU [08:01:08]CAPDU: 80 13 00 00 [08:01:08]Write to MH i2c: E2 08 00 B6 04 80 13 00 00 00 00 00 00 36 [08:01:08]Write i2c OK [08:01:08]MH_I2C_Read... [08:01:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:08]Read from MH i2c: E2 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: E2 62 00 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: E2 62 00 B6 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 2B [08:01: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 43 DA 02 00 0E 04 04 00 87 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 [08:01:08]wFMCommunicate OK [08:01:08]SAM_PROTO_GetFieldsCounters done [08:01:08]requested_item shift.num is exist - process it [08:01:08]requested_item shift.opened is exist - process it [08:01:08]req_shift_opened [08:01:08]FM_GetShiftState [08:01:08]SAM_PROTO_GetShiftState [08:01:08]wFMCommunicate request_size=4 [08:01:08]MH_SAM_APDU [08:01:08]CAPDU: 80 13 01 00 [08:01:08]Write to MH i2c: E2 08 00 B7 04 80 13 01 00 00 00 00 00 38 [08:01:08]Write i2c OK [08:01:08]MH_I2C_Read... [08:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:08]Read from MH i2c: E2 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: E2 0E 00 [08:01:08]MH_I2C_Read... [08:01:08]Read from MH i2c: E2 0E 00 B7 04 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 B7 [08:01:08]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:01:08]wFMCommunicate OK [08:01:08]SAM_PROTO_GetShiftState done [08:01:08]FM_GetShiftState done [08:01:08]req_shift_opened done [08:01:08]requested_item shift.open_date is exist - process it [08:01:08]req_shift_open_date [08:01:08]req_shift_open_date done [08:01:08]produce_requested_data done [08:01:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186947,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [08:01:08]process_action_free close_receipt [08:01:08]json_value_free [08:01:08]json_value_free done [08:01:08]process_json_proto returns [08:01:08]Send response to host [08:01:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186947,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [08:01:08]free response buf [08:01:08]execute_script done [08:01:08]execute_script returns [08:01:08]free content buf [08:01:08]Sock 10.Close socket [08:01:08]Sock 10.Thread stoped [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:43]OFD Sender: No OFD packet to send [08:18:48]OFD Sender: No OFD packet to send [08:18:53]OFD Sender: No OFD packet to send [08:18:58]OFD Sender: No OFD packet to send [08:19:03]OFD Sender: No OFD packet to send [08:19:08]OFD Sender: No OFD packet to send [08:19:13]OFD Sender: No OFD packet to send [08:19:18]OFD Sender: No OFD packet to send [08:19:23]OFD Sender: No OFD packet to send [08:19:27]accept exits with 7 [08:19:27]New connection [08:19:27]New thread 3066879332 created [08:19:27]Thread 3067022692 joined [08:19:27]Waiting for new connection... [08:19:27] Sock 7.Parse request [08:19:27]Sock 7.Check first char [08:19:27]Sock 7.First char is OK [08:19:27]request: POST /json_proto HTTP/1.0 [08:19:27]Method: POST [08:19:27]URL: /json_proto [08:19:27]Method is POST - this is cgi request [08:19:27]url: /json_proto [08:19:27]query_string will be loaded in cgi processing [08:19:27]execute_cgi json_proto POST (null) [08:19:27]execute_cgi path=json_proto method=POST [08:19:27]POST find Content-Length [08:19:27]Host: 172.17.46.131:8080 [08:19:27]Content-Length: 792 [08:19:27]Content-Type: application/json [08:19:27] [08:19:27]POST finish read [08:19:27]Found Content-Length = 792 [08:19:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412098", "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" : 0.00, "quantity" : 34.770, "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\u000A90795", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:27]execute_script... [08:19: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)412098", "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" : 0.00, "quantity" : 34.770, "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\u000A90795", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:27]POST & json_proto [08:19:27]process_json_proto [08:19:27]json parsed OK: [08:19:27]protocol is kg_v1.0 [08:19:27]action value=close_receipt [08:19:27]process_action close_receipt [08:19:27]cmd_close_receipt [08:19:27]MH_GetDate [08:19:27]Write to MH i2c: F0 00 00 B8 04 AB [08:19:27]Write i2c OK [08:19:27]MH_I2C_Read... [08:19:27]Read from MH i2c: F0 [08:19:27]MH_I2C_Read... [08:19:27]Read from MH i2c: F0 09 00 [08:19:27]MH_I2C_Read... [08:19:27]Read from MH i2c: F0 09 00 B8 04 00 12 94 B5 67 7E 41 4F 65 E9 [08:19:27]GetLastDocTimeStamp 1739952067 [08:19:27]current date 1739953170 [08:19:27]FM_GetShiftState [08:19:27]SAM_PROTO_GetShiftState [08:19:27]wFMCommunicate request_size=4 [08:19:27]MH_SAM_APDU [08:19:27]CAPDU: 80 13 01 00 [08:19:27]Write to MH i2c: E2 08 00 B9 04 80 13 01 00 00 00 00 00 3A [08:19:27]Write i2c OK [08:19:27]MH_I2C_Read... [08:19:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:27]Read from MH i2c: E2 [08:19:27]MH_I2C_Read... [08:19:27]Read from MH i2c: E2 0E 00 [08:19:27]MH_I2C_Read... [08:19:27]Read from MH i2c: E2 0E 00 B9 04 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 B9 [08:19:27]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:19:27]wFMCommunicate OK [08:19:27]SAM_PROTO_GetShiftState done [08:19:27]FM_GetShiftState done [08:19:27]opened in 1739929631 [08:19:27]opened+sec_in_day 1740016031 [08:19:27]quantity*price = 0 [08:19:27]sum+1 = 1 [08:19: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 СНО: Общий режим Чек 14 19.02.2025 08:19 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 90795 ФМ: 0000000000871826 ФД: 186948 ФПД: 186926364630866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T081930&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186948&fm=186926364630866&tin=02508201610067®Number=0000000000091857&sum=0 [08:19:28]StoreToDocumentArchive [08:19:28]shift 647 fd 186948 [08:19:28]save to /storage/0647/doc_00186948 [08:19:28]save last doc name /storage/0647/doc_00186948 to /storage/kkm_last_doc_name [08:19:28]save OK [08:19:28]Clear old archive folders... [08:19:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:19:28]tlvbuf is 005BE7A0 [08:19:28]SAM_PROTO_ClearQueue [08:19:28]wFMCommunicate request_size=4 [08:19:28]MH_SAM_APDU [08:19:28]CAPDU: 80 09 00 00 [08:19:28]Write to MH i2c: E2 08 00 C6 04 80 09 00 00 00 00 00 00 3C [08:19:28]Write i2c OK [08:19:28]MH_I2C_Read... [08:19:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:28]Read from MH i2c: E2 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 03 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 03 00 C6 04 00 90 00 3E [08:19:28]RAPDU: 90 00 [08:19:28]wFMCommunicate OK [08:19:28]SAM_PROTO_ClearQueue done [08:19:28]KKMCreateOFDPacket [08:19:28]OFDProtocolAddRootSTLVToBuf [08:19:28]FM_MakeSignedData [08:19:28]FM_MakeSignedData [08:19:28]SAM_PROTO_SignData [08:19:28]wFMCommunicate request_size=4 [08:19:28]MH_SAM_APDU [08:19:28]CAPDU: 80 0D 01 02 [08:19:28]Write to MH i2c: E2 08 00 C7 04 80 0D 01 02 00 00 00 00 44 [08:19:28]Write i2c OK [08:19:28]MH_I2C_Read... [08:19:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:28]Read from MH i2c: E2 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 03 00 [08:19:28]MH_I2C_Read... [08:19:28]Read from MH i2c: E2 03 00 C7 04 00 90 00 3F [08:19:28]RAPDU: 90 00 [08:19:28]wFMCommunicate OK [08:19:28]wFMCommunicate request_size=255 [08:19:28]MH_SAM_APDU [08:19: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 87 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 0E 00 00 00 F4 03 04 00 12 94 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 44 DA 02 00 35 04 06 00 AA [08:19:28]Write to MH i2c: E2 02 01 C8 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 87 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 0E 00 00 00 F4 03 04 00 12 94 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 44 DA 02 00 35 04 06 00 AA 00 00 D3 [08:19:29]Write i2c OK [08:19:29]MH_I2C_Read... [08:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:29]Read from MH i2c: E2 [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: E2 03 00 [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: E2 03 00 C8 04 00 90 00 40 [08:19:29]RAPDU: 90 00 [08:19:29]wFMCommunicate OK [08:19:29]wFMCommunicate request_size=10 [08:19:29]MH_SAM_APDU [08:19:29]CAPDU: 80 0D 02 02 05 02 2F 90 1F 52 [08:19:29]Write to MH i2c: E2 0D 00 C9 04 80 0D 02 02 05 00 02 2F 90 1F 52 00 00 83 [08:19:29]Write i2c OK [08:19:29]MH_I2C_Read... [08:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:29]Read from MH i2c: E2 [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: E2 03 00 [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: E2 03 00 C9 04 00 90 00 41 [08:19:29]RAPDU: 90 00 [08:19:29]wFMCommunicate OK [08:19:29]wFMCommunicate request_size=4 [08:19:29]MH_SAM_APDU [08:19:29]CAPDU: 80 0D 03 02 [08:19:29]Write to MH i2c: E2 08 00 CA 04 80 0D 03 02 00 00 00 00 49 [08:19:29]Write i2c OK [08:19:29]MH_I2C_Read... [08:19:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:29]Read from MH i2c: E2 [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: E2 0B 00 [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: E2 0B 00 CA 04 00 EC B9 EC 32 0F E5 73 0E 90 00 82 [08:19:29]RAPDU: EC B9 EC 32 0F E5 73 0E 90 00 [08:19:29]wFMCommunicate OK [08:19:29]SAM_PROTO_SignData done [08:19:29]FM_MakeSignedData done [08:19:29]CreateOFDProtocolMessage [08:19:29]wFMCommunicate request_size=4 [08:19:29]MH_SAM_APDU [08:19:29]CAPDU: 80 11 00 00 [08:19:29]Write to MH i2c: E2 08 00 CB 04 80 11 00 00 00 00 00 00 49 [08:19:29]Write i2c OK [08:19:29]MH_I2C_Read... [08:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:29]Read from MH i2c: E2 [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: E2 17 00 [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: E2 17 00 CB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9C [08:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:19:29]wFMCommunicate OK [08:19:29]CreateOFDProtocolMessage done [08:19:29]OFDSenderStorePacket 186948 [08:19:29]StoreOFDPacket docnum=186948 [08:19: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 30 CD 07 01 D6 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 87 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 0E 00 00 00 F4 03 04 00 12 94 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 44 DA 02 00 35 04 06 00 AA 02 2F 90 1F 52 EC B9 EC 32 0F E5 73 0E [08:19:29]CheckFolder [08:19:29]dirname=/storage/ofd_packets [08:19:29]CheckFolder done [08:19:29]ProducePacketName [08:19:29]name=ofd_packets/00186948 [08:19:29]NVStorageSaveData ofd_packets/00186948 [08:19:29]File name is /storage/ofd_packets/00186948 [08:19:29]Write 301 bytes [08:19:29]NVStorageSaveData done [08:19:29]OFDSenderStorePacket done [08:19:29]KKMCreateOFDPacket done [08:19:29]NVStorageSaveData kkm_last_timestamp [08:19:29]File name is /storage/kkm_last_timestamp [08:19:29]Write 4 bytes [08:19:29]NVStorageSaveData done [08:19:29]ExternCall_PrintAddStr [08:19:29]wPrintStart [08:19:29]Write to MH i2c: 01 00 00 CC 04 D0 [08:19:29]Write i2c OK [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: 01 [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: 01 07 00 [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: 01 07 00 CC 04 00 00 00 00 00 FF 0F E5 [08:19:29]RasterBufferAndPrint [08:19:29]line Счет N : (1)412098 [08:19:29]line ИНН: 02508201610067 [08:19:29]line Контрольно-Кассовый Чек [08:19:29]line ПРОДАЖА [08:19:29]line ТРК (МРК, ГНК) : 23 [08:19:29]line Товар: 2710124500 [08:19:29]line Аи-95-К-5 [08:19:29]line 34.770 * 0.00 [08:19:29]line = 0.00 [08:19:29]line НДС 12% НСП 1% [08:19:29]line > о реализуемом товаре [08:19:29]line ИТОГО: 0.00 [08:19:29]line НСП 1% : 0.00 [08:19:29]line НДС 12% : 0.00 [08:19:29]line Наличными: 0.00 [08:19:29]line Безнал.: 0.00 [08:19:29]line Место: АЗС № 92 "Партнер Нефть" [08:19:29]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:19:29]line СНО: Общий режим [08:19:29]line Чек 14 19.02.2025 08:19 [08:19:29]line Смена: 647 ФФД: 1.0 [08:19:29]line ЗНМ: 0300000118 [08:19:29]line РНМ: 0000000000091857 [08:19:29]line Версия ККМ: 001 [08:19:29]line Талоны: Топливная Карта [08:19:29]line 90795 [08:19:29]line ФМ: 0000000000871826 [08:19:29]line ФД: 186948 [08:19:29]line ФПД: 186926364630866 [08:19:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T081930&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186948&fm=186926364630866&tin=02508201610067®Number=0000000000091857&sum=0 [08:19:29]written 0, free lines is 4095 [08:19:29]OFD Sender: Processing packet 186948 [packets to send 49, broken 48] [08:19:29]ProducePacketName [08:19:29]name=ofd_packets/00186948 [08:19:29]OFD Sender: To server: pG, [08:19:29]CommunicateWithHost lk.salyk.kg:30040 [08:19:29]ConnectInit lk.salyk.kg [08:19:29]Connected sock=10 [08:19: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 30 CD 07 01 D6 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 87 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 0E 00 00 00 F4 03 04 00 12 94 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 44 DA 02 00 35 04 06 00 AA 02 2F 90 1F 52 EC B9 EC 32 0F E5 73 0E [08:19:29]Write to MH i2c: 01 00 00 F6 04 FA [08:19:29]Write i2c OK [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: 01 [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: 01 07 00 [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: 01 07 00 F6 04 00 00 00 00 00 09 0D 17 [08:19:29]RasterBufferAndPrint [08:19:29]line [08:19:29]line [08:19:29]line [08:19:29]line [08:19:29]line [08:19:29]written 0, free lines is 3343 [08:19:29]MH_Cut [08:19:29]Write to MH i2c: D1 01 00 FD 04 01 D3 [08:19:29]Write i2c OK [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: D1 [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: D1 01 00 [08:19:29]MH_I2C_Read... [08:19:29]Read from MH i2c: D1 01 00 FD 04 00 D2 [08:19:29]Write to MH i2c: 01 00 00 FE 04 02 [08:19:29]Write i2c OK [08:19:29]MH_I2C_Read... [08:19: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 FB A3 47 00 95 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 44 DA 02 00 F4 03 04 00 66 3A B5 67 B6 04 01 00 00 BE 90 3B CB 0D 18 E5 2D [08:19:29]CommunicateWithHost err = 0 [08:19:29]CheckOFDResponse [08:19:29]1017 (14) - 77093643461234 [08:19:29]1041 (16) - 0000000000871826 [08:19:29]1040 (4) - 186948 [08:19:29]1012 (4) - 19.02.2025 01:56 [08:19:29]1206 (1) - 0 [08:19:29]OFD Sender: Remove packet 186948 [08:19:29]ProducePacketName [08:19:29]name=ofd_packets/00186948 [08:19:29]NVStorageDeleteData [08:19:30]OFD Sender: No OFD packet to send [08:19:30]*** Cut start [08:19:30]*** Partial cut [08:19:30]*** CUTSNS_PIN = 1 [08:19:30]*** CUTSNS_PIN = 0 [08:19:30]*** Brake cut motor [08:19:31]Read from MH i2c: 01 [08:19:31]MH_I2C_Read... [08:19:31]*** Stop cut motor [08:19:31]*** Cut end [08:19:31]Read from MH i2c: 01 07 00 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: 01 07 00 FE 04 00 00 00 00 00 FF 0F 17 [08:19:31]process_action close_receipt done [08:19:31]requested_data is exist [08:19:31]produce_requested_data [08:19:31]requested_item fm.sn is exist - process it [08:19:31]wFMCommunicate request_size=4 [08:19:31]MH_SAM_APDU [08:19:31]CAPDU: 80 11 00 00 [08:19:31]Write to MH i2c: E2 08 00 FF 04 80 11 00 00 00 00 00 00 7D [08:19:31]Write i2c OK [08:19:31]MH_I2C_Read... [08:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:31]Read from MH i2c: E2 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: E2 17 00 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: E2 17 00 FF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D0 [08:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:19:31]wFMCommunicate OK [08:19:31]requested_item fd.num is exist - process it [08:19:31]SAM_PROTO_GetFieldsCounters [08:19:31]wFMCommunicate request_size=4 [08:19:31]MH_SAM_APDU [08:19:31]CAPDU: 80 13 00 00 [08:19:31]Write to MH i2c: E2 08 00 00 05 80 13 00 00 00 00 00 00 81 [08:19:31]Write i2c OK [08:19:31]MH_I2C_Read... [08:19:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:31]Read from MH i2c: E2 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: E2 62 00 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: E2 62 00 00 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 7A [08:19: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 44 DA 02 00 0E 04 04 00 87 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 [08:19:31]wFMCommunicate OK [08:19:31]SAM_PROTO_GetFieldsCounters done [08:19:31]requested_item shift.num is exist - process it [08:19:31]requested_item shift.opened is exist - process it [08:19:31]req_shift_opened [08:19:31]FM_GetShiftState [08:19:31]SAM_PROTO_GetShiftState [08:19:31]wFMCommunicate request_size=4 [08:19:31]MH_SAM_APDU [08:19:31]CAPDU: 80 13 01 00 [08:19:31]Write to MH i2c: E2 08 00 01 05 80 13 01 00 00 00 00 00 83 [08:19:31]Write i2c OK [08:19:31]MH_I2C_Read... [08:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:31]Read from MH i2c: E2 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: E2 0E 00 [08:19:31]MH_I2C_Read... [08:19:31]Read from MH i2c: E2 0E 00 01 05 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 02 [08:19:31]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:19:31]wFMCommunicate OK [08:19:31]SAM_PROTO_GetShiftState done [08:19:31]FM_GetShiftState done [08:19:31]req_shift_opened done [08:19:31]requested_item shift.open_date is exist - process it [08:19:31]req_shift_open_date [08:19:31]req_shift_open_date done [08:19:31]produce_requested_data done [08:19:31]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186948,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [08:19:31]process_action_free close_receipt [08:19:31]json_value_free [08:19:31]json_value_free done [08:19:31]process_json_proto returns [08:19:31]Send response to host [08:19:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186948,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [08:19:31]free response buf [08:19:31]execute_script done [08:19:31]execute_script returns [08:19:31]free content buf [08:19:31]Sock 7.Close socket [08:19:31]Sock 7.Thread stoped [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:05]accept exits with 9 [08:20:05]New connection [08:20:05]New thread 3067022692 created [08:20:05]Thread 3066879332 joined [08:20:05]Waiting for new connection... [08:20:05] Sock 9.Parse request [08:20:05]Sock 9.Check first char [08:20:05]Sock 9.First char is OK [08:20:05]request: POST /json_proto HTTP/1.0 [08:20:05]Method: POST [08:20:05]URL: /json_proto [08:20:05]Method is POST - this is cgi request [08:20:05]url: /json_proto [08:20:05]query_string will be loaded in cgi processing [08:20:05]execute_cgi json_proto POST (null) [08:20:05]execute_cgi path=json_proto method=POST [08:20:05]POST find Content-Length [08:20:05]Host: 172.17.46.131:8080 [08:20:05]Content-Length: 677 [08:20:05]Content-Type: application/json [08:20:05] [08:20:05]POST finish read [08:20:05]Found Content-Length = 677 [08:20:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412099", "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" : 8.350, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:05]execute_script... [08:20: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)412099", "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" : 8.350, "sum" : 600.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:05]POST & json_proto [08:20:05]process_json_proto [08:20:05]json parsed OK: [08:20:05]protocol is kg_v1.0 [08:20:05]action value=close_receipt [08:20:05]process_action close_receipt [08:20:05]cmd_close_receipt [08:20:05]MH_GetDate [08:20:05]Write to MH i2c: F0 00 00 02 05 F6 [08:20:05]Write i2c OK [08:20:05]MH_I2C_Read... [08:20:05]Read from MH i2c: F0 [08:20:05]MH_I2C_Read... [08:20:05]Read from MH i2c: F0 09 00 [08:20:05]MH_I2C_Read... [08:20:05]Read from MH i2c: F0 09 00 02 05 00 37 94 B5 67 7E 41 4F 65 59 [08:20:05]GetLastDocTimeStamp 1739953170 [08:20:05]current date 1739953207 [08:20:05]FM_GetShiftState [08:20:05]SAM_PROTO_GetShiftState [08:20:05]wFMCommunicate request_size=4 [08:20:05]MH_SAM_APDU [08:20:05]CAPDU: 80 13 01 00 [08:20:05]Write to MH i2c: E2 08 00 03 05 80 13 01 00 00 00 00 00 85 [08:20:05]Write i2c OK [08:20:05]MH_I2C_Read... [08:20:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:05]Read from MH i2c: E2 [08:20:05]MH_I2C_Read... [08:20:05]Read from MH i2c: E2 0E 00 [08:20:05]MH_I2C_Read... [08:20:05]Read from MH i2c: E2 0E 00 03 05 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 04 [08:20:05]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:20:05]wFMCommunicate OK [08:20:05]SAM_PROTO_GetShiftState done [08:20:05]FM_GetShiftState done [08:20:05]opened in 1739929631 [08:20:05]opened+sec_in_day 1740016031 [08:20:05]quantity*price = 60036 [08:20:05]sum+1 = 60038 [08:20:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 15 19.02.2025 08:20 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186949 ФПД: 46540619069472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T082007&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186949&fm=46540619069472&tin=02508201610067®Number=0000000000091857&sum=60000 [08:20:06]StoreToDocumentArchive [08:20:06]shift 647 fd 186949 [08:20:06]save to /storage/0647/doc_00186949 [08:20:06]save last doc name /storage/0647/doc_00186949 to /storage/kkm_last_doc_name [08:20:06]save OK [08:20:06]Clear old archive folders... [08:20:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:20:06]tlvbuf is 005BE390 [08:20:06]SAM_PROTO_ClearQueue [08:20:06]wFMCommunicate request_size=4 [08:20:06]MH_SAM_APDU [08:20:06]CAPDU: 80 09 00 00 [08:20:06]Write to MH i2c: E2 08 00 10 05 80 09 00 00 00 00 00 00 87 [08:20:06]Write i2c OK [08:20:06]MH_I2C_Read... [08:20:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:06]Read from MH i2c: E2 [08:20:06]MH_I2C_Read... [08:20:06]Read from MH i2c: E2 03 00 [08:20:06]MH_I2C_Read... [08:20:06]Read from MH i2c: E2 03 00 10 05 00 90 00 89 [08:20:06]RAPDU: 90 00 [08:20:06]wFMCommunicate OK [08:20:06]SAM_PROTO_ClearQueue done [08:20:06]KKMCreateOFDPacket [08:20:06]OFDProtocolAddRootSTLVToBuf [08:20:06]FM_MakeSignedData [08:20:06]FM_MakeSignedData [08:20:06]SAM_PROTO_SignData [08:20:06]wFMCommunicate request_size=4 [08:20:06]MH_SAM_APDU [08:20:06]CAPDU: 80 0D 01 02 [08:20:06]Write to MH i2c: E2 08 00 11 05 80 0D 01 02 00 00 00 00 8F [08:20:06]Write i2c OK [08:20:06]MH_I2C_Read... [08:20:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:06]Read from MH i2c: E2 [08:20:06]MH_I2C_Read... [08:20:06]Read from MH i2c: E2 03 00 [08:20:06]MH_I2C_Read... [08:20:06]Read from MH i2c: E2 03 00 11 05 00 90 00 8A [08:20:06]RAPDU: 90 00 [08:20:06]wFMCommunicate OK [08:20:06]wFMCommunicate request_size=255 [08:20:06]MH_SAM_APDU [08:20: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 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 37 94 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 45 DA 02 00 35 04 06 00 2A [08:20:06]Write to MH i2c: E2 02 01 12 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 37 94 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 45 DA 02 00 35 04 06 00 2A 00 00 74 [08:20:06]Write i2c OK [08:20:06]MH_I2C_Read... [08:20:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:07]Read from MH i2c: E2 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: E2 03 00 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: E2 03 00 12 05 00 90 00 8B [08:20:07]RAPDU: 90 00 [08:20:07]wFMCommunicate OK [08:20:07]wFMCommunicate request_size=10 [08:20:07]MH_SAM_APDU [08:20:07]CAPDU: 80 0D 02 02 05 54 15 11 38 20 [08:20:07]Write to MH i2c: E2 0D 00 13 05 80 0D 02 02 05 00 54 15 11 38 20 00 00 6E [08:20:07]Write i2c OK [08:20:07]MH_I2C_Read... [08:20:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:07]Read from MH i2c: E2 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: E2 03 00 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: E2 03 00 13 05 00 90 00 8C [08:20:07]RAPDU: 90 00 [08:20:07]wFMCommunicate OK [08:20:07]wFMCommunicate request_size=4 [08:20:07]MH_SAM_APDU [08:20:07]CAPDU: 80 0D 03 02 [08:20:07]Write to MH i2c: E2 08 00 14 05 80 0D 03 02 00 00 00 00 94 [08:20:07]Write i2c OK [08:20:07]MH_I2C_Read... [08:20:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:07]Read from MH i2c: E2 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: E2 0B 00 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: E2 0B 00 14 05 00 29 92 2C CF C1 F3 5D DB 90 00 37 [08:20:07]RAPDU: 29 92 2C CF C1 F3 5D DB 90 00 [08:20:07]wFMCommunicate OK [08:20:07]SAM_PROTO_SignData done [08:20:07]FM_MakeSignedData done [08:20:07]CreateOFDProtocolMessage [08:20:07]wFMCommunicate request_size=4 [08:20:07]MH_SAM_APDU [08:20:07]CAPDU: 80 11 00 00 [08:20:07]Write to MH i2c: E2 08 00 15 05 80 11 00 00 00 00 00 00 94 [08:20:07]Write i2c OK [08:20:07]MH_I2C_Read... [08:20:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:07]Read from MH i2c: E2 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: E2 17 00 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: E2 17 00 15 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E7 [08:20:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:20:07]wFMCommunicate OK [08:20:07]CreateOFDProtocolMessage done [08:20:07]OFDSenderStorePacket 186949 [08:20:07]StoreOFDPacket docnum=186949 [08:20: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 21 DA 07 01 BC B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 37 94 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 45 DA 02 00 35 04 06 00 2A 54 15 11 38 20 29 92 2C CF C1 F3 5D DB [08:20:07]CheckFolder [08:20:07]dirname=/storage/ofd_packets [08:20:07]CheckFolder done [08:20:07]ProducePacketName [08:20:07]name=ofd_packets/00186949 [08:20:07]NVStorageSaveData ofd_packets/00186949 [08:20:07]File name is /storage/ofd_packets/00186949 [08:20:07]Write 301 bytes [08:20:07]NVStorageSaveData done [08:20:07]OFDSenderStorePacket done [08:20:07]KKMCreateOFDPacket done [08:20:07]NVStorageSaveData kkm_last_timestamp [08:20:07]File name is /storage/kkm_last_timestamp [08:20:07]Write 4 bytes [08:20:07]NVStorageSaveData done [08:20:07]OFD Sender: Processing packet 186949 [packets to send 49, broken 48] [08:20:07]ProducePacketName [08:20:07]name=ofd_packets/00186949 [08:20:07]OFD Sender: To server: pG, [08:20:07]CommunicateWithHost lk.salyk.kg:30040 [08:20:07]ConnectInit lk.salyk.kg [08:20:07]ExternCall_PrintAddStr [08:20:07]wPrintStart [08:20:07]Write to MH i2c: 01 00 00 16 05 1B [08:20:07]Write i2c OK [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: 01 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: 01 07 00 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: 01 07 00 16 05 00 00 00 00 00 FF 0F 30 [08:20:07]RasterBufferAndPrint [08:20:07]line Счет N : (1)412099 [08:20:07]line ИНН: 02508201610067 [08:20:07]line Контрольно-Кассовый Чек [08:20:07]line ПРОДАЖА [08:20:07]line ТРК (МРК, ГНК) : 43 [08:20:07]line Товар: 2710124500 [08:20:07]line Аи-95-К-5 [08:20:07]line 8.350 * 71.90 [08:20:07]line = 600.37 [08:20:07]line НДС 12% НСП 1% [08:20:07]line > о реализуемом товаре [08:20:07]line ОКРУГЛЕНИЕ: -0.37 [08:20:07]line ИТОГО: 600.00 [08:20:07]line Внесено: 600.00 [08:20:07]line СДАЧА: 0.00 [08:20:07]line НСП 1% : 5.31 [08:20:07]line НДС 12% : 63.76 [08:20:07]line Наличными: 600.00 [08:20:07]line Безнал.: 0.00 [08:20:07]line Место: АЗС № 92 "Партнер Нефть" [08:20:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:20:07]line СНО: Общий режим [08:20:07]line Чек 15 19.02.2025 08:20 [08:20:07]line Смена: 647 ФФД: 1.0 [08:20:07]line ЗНМ: 0300000118 [08:20:07]line РНМ: 0000000000091857 [08:20:07]line Версия ККМ: 001 [08:20:07]line ФМ: 0000000000871826 [08:20:07]line ФД: 186949 [08:20:07]line ФПД: 46540619069472 [08:20:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T082007&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186949&fm=46540619069472&tin=02508201610067®Number=0000000000091857&sum=60000 [08:20:07]Connected sock=11 [08:20: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 21 DA 07 01 BC B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 20 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 85 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 37 94 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 45 DA 02 00 35 04 06 00 2A 54 15 11 38 20 29 92 2C CF C1 F3 5D DB [08:20:07]written 0, free lines is 4095 [08:20: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 79 69 47 00 38 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 45 DA 02 00 F4 03 04 00 8C 3A B5 67 B6 04 01 00 00 08 91 D4 86 7A C4 42 53 [08:20:07]CommunicateWithHost err = 0 [08:20:07]CheckOFDResponse [08:20:07]1017 (14) - 77093643461234 [08:20:07]1041 (16) - 0000000000871826 [08:20:07]1040 (4) - 186949 [08:20:07]1012 (4) - 19.02.2025 01:57 [08:20:07]1206 (1) - 0 [08:20:07]OFD Sender: Remove packet 186949 [08:20:07]ProducePacketName [08:20:07]name=ofd_packets/00186949 [08:20:07]NVStorageDeleteData [08:20:08]Write to MH i2c: 01 00 00 41 05 46 [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: 01 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: 01 07 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: 01 07 00 41 05 00 00 00 00 00 EE 0C 47 [08:20:08]RasterBufferAndPrint [08:20:08]line [08:20:08]line [08:20:08]line [08:20:08]line [08:20:08]line [08:20:08]written 0, free lines is 3316 [08:20:08]MH_Cut [08:20:08]Write to MH i2c: D1 01 00 48 05 01 1F [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: D1 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: D1 01 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: D1 01 00 48 05 00 1E [08:20:08]Write to MH i2c: 01 00 00 49 05 4E [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]OFD Sender: No OFD packet to send [08:20:08]*** Cut start [08:20:08]*** Partial cut [08:20:08]*** CUTSNS_PIN = 1 [08:20:08]*** CUTSNS_PIN = 0 [08:20:09]*** Brake cut motor [08:20:09]Read from MH i2c: 01 [08:20:09]MH_I2C_Read... [08:20:09]*** Stop cut motor [08:20:09]*** Cut end [08:20:09]Read from MH i2c: 01 07 00 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: 01 07 00 49 05 00 00 00 00 00 FF 0F 63 [08:20:09]process_action close_receipt done [08:20:09]requested_data is exist [08:20:09]produce_requested_data [08:20:09]requested_item fm.sn is exist - process it [08:20:09]wFMCommunicate request_size=4 [08:20:09]MH_SAM_APDU [08:20:09]CAPDU: 80 11 00 00 [08:20:09]Write to MH i2c: E2 08 00 4A 05 80 11 00 00 00 00 00 00 C9 [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:09]Read from MH i2c: E2 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: E2 17 00 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: E2 17 00 4A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1C [08:20:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:20:09]wFMCommunicate OK [08:20:09]requested_item fd.num is exist - process it [08:20:09]SAM_PROTO_GetFieldsCounters [08:20:09]wFMCommunicate request_size=4 [08:20:09]MH_SAM_APDU [08:20:09]CAPDU: 80 13 00 00 [08:20:09]Write to MH i2c: E2 08 00 4B 05 80 13 00 00 00 00 00 00 CC [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:09]Read from MH i2c: E2 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: E2 62 00 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: E2 62 00 4B 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 45 DA 02 00 0E 04 04 00 87 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 C9 [08:20: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 45 DA 02 00 0E 04 04 00 87 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 [08:20:09]wFMCommunicate OK [08:20:09]SAM_PROTO_GetFieldsCounters done [08:20:09]requested_item shift.num is exist - process it [08:20:09]requested_item shift.opened is exist - process it [08:20:09]req_shift_opened [08:20:09]FM_GetShiftState [08:20:09]SAM_PROTO_GetShiftState [08:20:09]wFMCommunicate request_size=4 [08:20:09]MH_SAM_APDU [08:20:09]CAPDU: 80 13 01 00 [08:20:09]Write to MH i2c: E2 08 00 4C 05 80 13 01 00 00 00 00 00 CE [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:09]Read from MH i2c: E2 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: E2 0E 00 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: E2 0E 00 4C 05 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 4D [08:20:09]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:20:09]wFMCommunicate OK [08:20:09]SAM_PROTO_GetShiftState done [08:20:09]FM_GetShiftState done [08:20:09]req_shift_opened done [08:20:09]requested_item shift.open_date is exist - process it [08:20:09]req_shift_open_date [08:20:09]req_shift_open_date done [08:20:09]produce_requested_data done [08:20:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186949,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [08:20:09]process_action_free close_receipt [08:20:09]json_value_free [08:20:09]json_value_free done [08:20:09]process_json_proto returns [08:20:09]Send response to host [08:20:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186949,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [08:20:09]free response buf [08:20:09]execute_script done [08:20:09]execute_script returns [08:20:09]free content buf [08:20:09]Sock 9.Close socket [08:20:09]Sock 9.Thread stoped [08:20:10]accept exits with 7 [08:20:10]New connection [08:20:10]New thread 3066879332 created [08:20:10]Thread 3067022692 joined [08:20:10]Waiting for new connection... [08:20:10] Sock 7.Parse request [08:20:10]Sock 7.Check first char [08:20:10]Sock 7.First char is OK [08:20:10]request: POST /json_proto HTTP/1.0 [08:20:10]Method: POST [08:20:10]URL: /json_proto [08:20:10]Method is POST - this is cgi request [08:20:10]url: /json_proto [08:20:10]query_string will be loaded in cgi processing [08:20:10]execute_cgi json_proto POST (null) [08:20:10]execute_cgi path=json_proto method=POST [08:20:10]POST find Content-Length [08:20:10]Host: 172.17.46.131:8080 [08:20:10]Content-Length: 678 [08:20:10]Content-Type: application/json [08:20:10] [08:20:10]POST finish read [08:20:10]Found Content-Length = 678 [08:20:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412100", "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:20:10]execute_script... [08:20: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)412100", "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:20:10]POST & json_proto [08:20:10]process_json_proto [08:20:10]json parsed OK: [08:20:10]protocol is kg_v1.0 [08:20:10]action value=close_receipt [08:20:10]process_action close_receipt [08:20:10]cmd_close_receipt [08:20:10]MH_GetDate [08:20:10]Write to MH i2c: F0 00 00 4D 05 41 [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: F0 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: F0 09 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: F0 09 00 4D 05 00 3C 94 B5 67 7E 41 4F 65 A9 [08:20:10]GetLastDocTimeStamp 1739953207 [08:20:10]current date 1739953212 [08:20:10]FM_GetShiftState [08:20:10]SAM_PROTO_GetShiftState [08:20:10]wFMCommunicate request_size=4 [08:20:10]MH_SAM_APDU [08:20:10]CAPDU: 80 13 01 00 [08:20:10]Write to MH i2c: E2 08 00 4E 05 80 13 01 00 00 00 00 00 D0 [08:20:10]Write i2c OK [08:20:10]MH_I2C_Read... [08:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:10]Read from MH i2c: E2 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 0E 00 [08:20:10]MH_I2C_Read... [08:20:10]Read from MH i2c: E2 0E 00 4E 05 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 4F [08:20:10]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:20:10]wFMCommunicate OK [08:20:10]SAM_PROTO_GetShiftState done [08:20:10]FM_GetShiftState done [08:20:10]opened in 1739929631 [08:20:10]opened+sec_in_day 1740016031 [08:20:10]quantity*price = 100042 [08:20:10]sum+1 = 100044 [08:20:10]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 19.02.2025 08:20 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186950 ФПД: 102573935216261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T082012&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186950&fm=102573935216261&tin=02508201610067®Number=0000000000091857&sum=100000 [08:20:11]StoreToDocumentArchive [08:20:11]shift 647 fd 186950 [08:20:11]save to /storage/0647/doc_00186950 [08:20:11]save last doc name /storage/0647/doc_00186950 to /storage/kkm_last_doc_name [08:20:11]save OK [08:20:11]Clear old archive folders... [08:20:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:20:11]tlvbuf is 005F3EC0 [08:20:11]SAM_PROTO_ClearQueue [08:20:11]wFMCommunicate request_size=4 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 09 00 00 [08:20:11]Write to MH i2c: E2 08 00 5B 05 80 09 00 00 00 00 00 00 D2 [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 03 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 03 00 5B 05 00 90 00 D4 [08:20:11]RAPDU: 90 00 [08:20:11]wFMCommunicate OK [08:20:11]SAM_PROTO_ClearQueue done [08:20:11]KKMCreateOFDPacket [08:20:11]OFDProtocolAddRootSTLVToBuf [08:20:11]FM_MakeSignedData [08:20:11]FM_MakeSignedData [08:20:11]SAM_PROTO_SignData [08:20:11]wFMCommunicate request_size=4 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 0D 01 02 [08:20:11]Write to MH i2c: E2 08 00 5C 05 80 0D 01 02 00 00 00 00 DA [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 03 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 03 00 5C 05 00 90 00 D5 [08:20:11]RAPDU: 90 00 [08:20:11]wFMCommunicate OK [08:20:11]wFMCommunicate request_size=255 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3C 94 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 46 DA 02 00 35 04 06 00 5D 4A 5A F8 [08:20:11]Write to MH i2c: E2 02 01 5D 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 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 3C 94 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 46 DA 02 00 35 04 06 00 5D 4A 5A F8 00 00 1E [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 03 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 03 00 5D 05 00 90 00 D6 [08:20:11]RAPDU: 90 00 [08:20:11]wFMCommunicate OK [08:20:11]wFMCommunicate request_size=7 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 0D 02 02 02 C6 85 [08:20:11]Write to MH i2c: E2 0A 00 5E 05 80 0D 02 02 02 00 C6 85 00 00 2C [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:11]E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 03 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 03 00 5E 05 00 90 00 D7 [08:20:11]RAPDU: 90 00 [08:20:11]wFMCommunicate OK [08:20:11]wFMCommunicate request_size=4 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 0D 03 02 [08:20:11]Write to MH i2c: E2 08 00 5F 05 80 0D 03 02 00 00 00 00 DF [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:12]Read from MH i2c: E2 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: E2 0B 00 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: E2 0B 00 5F 05 00 08 8D F7 A3 F3 10 91 26 90 00 C9 [08:20:12]RAPDU: 08 8D F7 A3 F3 10 91 26 90 00 [08:20:12]wFMCommunicate OK [08:20:12]SAM_PROTO_SignData done [08:20:12]FM_MakeSignedData done [08:20:12]CreateOFDProtocolMessage [08:20:12]wFMCommunicate request_size=4 [08:20:12]MH_SAM_APDU [08:20:12]CAPDU: 80 11 00 00 [08:20:12]Write to MH i2c: E2 08 00 60 05 80 11 00 00 00 00 00 00 DF [08:20:12]Write i2c OK [08:20:12]MH_I2C_Read... [08:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:12]Read from MH i2c: E2 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: E2 17 00 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: E2 17 00 60 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 32 [08: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 [08:20:12]wFMCommunicate OK [08:20:12]CreateOFDProtocolMessage done [08:20:12]OFDSenderStorePacket 186950 [08:20:12]StoreOFDPacket docnum=186950 [08:20: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 0C 01 00 00 3E 33 04 01 33 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3C 94 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 46 DA 02 00 35 04 06 00 5D 4A 5A F8 C6 85 08 8D F7 A3 F3 10 91 26 [08:20:12]CheckFolder [08:20:12]dirname=/storage/ofd_packets [08:20:12]CheckFolder done [08:20:12]ProducePacketName [08:20:12]name=ofd_packets/00186950 [08:20:12]NVStorageSaveData ofd_packets/00186950 [08:20:12]File name is /storage/ofd_packets/00186950 [08:20:12]Write 298 bytes [08:20:12]NVStorageSaveData done [08:20:12]OFDSenderStorePacket done [08:20:12]KKMCreateOFDPacket done [08:20:12]NVStorageSaveData kkm_last_timestamp [08:20:12]File name is /storage/kkm_last_timestamp [08:20:12]Write 4 bytes [08:20:12]NVStorageSaveData done [08:20:12]ExternCall_PrintAddStr [08:20:12]wPrintStart [08:20:12]Write to MH i2c: 01 00 00 61 05 66 [08:20:12]Write i2c OK [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: 01 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: 01 07 00 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: 01 07 00 61 05 00 00 00 00 00 FF 0F 7B [08:20:12]RasterBufferAndPrint [08:20:12]line Счет N : (1)412100 [08:20:12]line ИНН: 02508201610067 [08:20:12]line Контрольно-Кассовый Чек [08:20:12]line ПРОДАЖА [08:20:12]line ТРК (МРК, ГНК) : 5 [08:20:12]line Товар: 2710194210 [08:20:12]line ДТ-К-5 [08:20:12]line 13.780 * 72.60 [08:20:12]line = 1000.43 [08:20:12]line НДС 12% НСП 1% [08:20:12]line > о реализуемом товаре [08:20:12]line ОКРУГЛЕНИЕ: -0.43 [08:20:12]line ИТОГО: 1000.00 [08:20:12]line Внесено: 1000.00 [08:20:12]line СДАЧА: 0.00 [08:20:12]line НСП 1% : 8.85 [08:20:12]line НДС 12% : 106.24 [08:20:12]line Наличными: 1000.00 [08:20:12]line Безнал.: 0.00 [08:20:12]line Место: АЗС № 92 "Партнер Нефть" [08:20:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:20:12]line СНО: Общий режим [08:20:12]line Чек 16 19.02.2025 08:20 [08:20:12]line Смена: 647 ФФД: 1.0 [08:20:12]line ЗНМ: 0300000118 [08:20:12]line РНМ: 0000000000091857 [08:20:12]line Версия ККМ: 001 [08:20:12]line ФМ: 0000000000871826 [08:20:12]line ФД: 186950 [08:20:12]line ФПД: 102573935216261 [08:20:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T082012&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186950&fm=102573935216261&tin=02508201610067®Number=0000000000091857&sum=100000 [08:20:12]written 0, free lines is 4095 [08:20:12]OFD Sender: Processing packet 186950 [packets to send 49, broken 48] [08:20:12]ProducePacketName [08:20:12]name=ofd_packets/00186950 [08:20:12]OFD Sender: To server: pG, [08:20:12]CommunicateWithHost lk.salyk.kg:30040 [08:20:12]ConnectInit lk.salyk.kg [08:20:12]Connected sock=10 [08:20: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 0C 01 00 00 3E 33 04 01 33 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3C 94 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 46 DA 02 00 35 04 06 00 5D 4A 5A F8 C6 85 08 8D F7 A3 F3 10 91 26 [08:20:12]Write to MH i2c: 01 00 00 8C 05 91 [08:20:12]Write i2c OK [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: 01 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: 01 07 00 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: 01 07 00 8C 05 00 00 00 00 00 FA 0C 9E [08:20:12]RasterBufferAndPrint [08:20:12]line [08:20:12]line [08:20:12]line [08:20:12]line [08:20:12]line [08:20:12]written 0, free lines is 3334 [08:20: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 C0 3D 47 00 AC 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 46 DA 02 00 F4 03 04 00 91 3A B5 67 B6 04 01 00 00 92 74 CE 2A 80 F1 1B 50 [08:20:12]CommunicateWithHost err = 0 [08:20:12]CheckOFDResponse [08:20:12]1017 (14) - 77093643461234 [08:20:12]1041 (16) - 0000000000871826 [08:20:12]1040 (4) - 186950 [08:20:12]1012 (4) - 19.02.2025 01:57 [08:20:12]1206 (1) - 0 [08:20:12]OFD Sender: Remove packet 186950 [08:20:12]ProducePacketName [08:20:12]name=ofd_packets/00186950 [08:20:12]NVStorageDeleteData [08:20:12]MH_Cut [08:20:12]Write to MH i2c: D1 01 00 93 05 01 6A [08:20:12]Write i2c OK [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: D1 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: D1 01 00 [08:20:12]MH_I2C_Read... [08:20:12]Read from MH i2c: D1 01 00 93 05 00 69 [08:20:12]Write to MH i2c: 01 00 00 94 05 99 [08:20:12]Write i2c OK [08:20:12]MH_I2C_Read... [08:20:13]OFD Sender: No OFD packet to send [08:20:13]*** Cut start [08:20:13]*** Partial cut [08:20:13]*** CUTSNS_PIN = 1 [08:20:13]*** CUTSNS_PIN = 0 [08:20:13]*** Brake cut motor [08:20:14]Read from MH i2c: 01 [08:20:14]MH_I2C_Read... [08:20:14]*** Stop cut motor [08:20:14]*** Cut end [08:20:14]Read from MH i2c: 01 07 00 [08:20:14]MH_I2C_Read... [08:20:14]Read from MH i2c: 01 07 00 94 05 00 00 00 00 00 FF 0F AE [08:20:14]process_action close_receipt done [08:20:14]requested_data is exist [08:20:14]produce_requested_data [08:20:14]requested_item fm.sn is exist - process it [08:20:14]wFMCommunicate request_size=4 [08:20:14]MH_SAM_APDU [08:20:14]CAPDU: 80 11 00 00 [08:20:14]Write to MH i2c: E2 08 00 95 05 80 11 00 00 00 00 00 00 14 [08:20:14]Write i2c OK [08:20:14]MH_I2C_Read... [08:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:14]Read from MH i2c: E2 [08:20:14]MH_I2C_Read... [08:20:14]Read from MH i2c: E2 17 00 [08:20:14]MH_I2C_Read... [08:20:14]Read from MH i2c: E2 17 00 95 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 67 [08:20: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:20:14]wFMCommunicate OK [08:20:14]requested_item fd.num is exist - process it [08:20:14]SAM_PROTO_GetFieldsCounters [08:20:14]wFMCommunicate request_size=4 [08:20:14]MH_SAM_APDU [08:20:14]CAPDU: 80 13 00 00 [08:20:14]Write to MH i2c: E2 08 00 96 05 80 13 00 00 00 00 00 00 17 [08:20:14]Write i2c OK [08:20:14]MH_I2C_Read... [08:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:14]Read from MH i2c: E2 [08:20:14]MH_I2C_Read... [08:20:14]Read from MH i2c: E2 62 00 [08:20:14]MH_I2C_Read... [08:20:14]Read from MH i2c: E2 62 00 96 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 18 [08:20: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 46 DA 02 00 0E 04 04 00 87 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:20:14]wFMCommunicate OK [08:20:14]SAM_PROTO_GetFieldsCounters done [08:20:14]requested_item shift.num is exist - process it [08:20:14]requested_item shift.opened is exist - process it [08:20:14]req_shift_opened [08:20:14]FM_GetShiftState [08:20:14]SAM_PROTO_GetShiftState [08:20:14]wFMCommunicate request_size=4 [08:20:14]MH_SAM_APDU [08:20:14]CAPDU: 80 13 01 00 [08:20:14]Write to MH i2c: E2 08 00 97 05 80 13 01 00 00 00 00 00 19 [08:20:14]Write i2c OK [08:20:14]MH_I2C_Read... [08:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:14]Read from MH i2c: E2 [08:20:14]MH_I2C_Read... [08:20:14]Read from MH i2c: E2 0E 00 [08:20:14]MH_I2C_Read... [08:20:14]Read from MH i2c: E2 0E 00 97 05 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 98 [08:20:14]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:20:14]wFMCommunicate OK [08:20:14]SAM_PROTO_GetShiftState done [08:20:14]FM_GetShiftState done [08:20:14]req_shift_opened done [08:20:14]requested_item shift.open_date is exist - process it [08:20:14]req_shift_open_date [08:20:14]req_shift_open_date done [08:20:14]produce_requested_data done [08:20:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186950,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [08:20:14]process_action_free close_receipt [08:20:14]json_value_free [08:20:14]json_value_free done [08:20:14]process_json_proto returns [08:20:14]Send response to host [08:20:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186950,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [08:20:14]free response buf [08:20:14]execute_script done [08:20:14]execute_script returns [08:20:14]free content buf [08:20:14]Sock 7.Close socket [08:20:14]Sock 7.Thread stoped [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:43]OFD Sender: No OFD packet to send [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:54]accept exits with 9 [08:22:54]New connection [08:22:54]New thread 3067022692 created [08:22:54]Thread 3066879332 joined [08:22:54]Waiting for new connection... [08:22:54] Sock 9.Parse request [08:22:54]Sock 9.Check first char [08:22:54]Sock 9.First char is OK [08:22:54]request: POST /json_proto HTTP/1.0 [08:22:54]Method: POST [08:22:54]URL: /json_proto [08:22:54]Method is POST - this is cgi request [08:22:54]url: /json_proto [08:22:54]query_string will be loaded in cgi processing [08:22:54]execute_cgi json_proto POST (null) [08:22:54]execute_cgi path=json_proto method=POST [08:22:54]POST find Content-Length [08:22:54]Host: 172.17.46.131:8080 [08:22:54]Content-Length: 678 [08:22:54]Content-Type: application/json [08:22:54] [08:22:54]POST finish read [08:22:54]Found Content-Length = 678 [08:22:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412101", "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" : 37.200, "sum" : 2700.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2700.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:54]execute_script... [08:22:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412101", "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" : 37.200, "sum" : 2700.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2700.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:54]POST & json_proto [08:22:54]process_json_proto [08:22:54]json parsed OK: [08:22:54]protocol is kg_v1.0 [08:22:54]action value=close_receipt [08:22:54]process_action close_receipt [08:22:54]cmd_close_receipt [08:22:54]MH_GetDate [08:22:54]Write to MH i2c: F0 00 00 98 05 8C [08:22:54]Write i2c OK [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: F0 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: F0 09 00 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: F0 09 00 98 05 00 E0 94 B5 67 7E 41 4F 65 98 [08:22:54]GetLastDocTimeStamp 1739953212 [08:22:54]current date 1739953376 [08:22:54]FM_GetShiftState [08:22:54]SAM_PROTO_GetShiftState [08:22:54]wFMCommunicate request_size=4 [08:22:54]MH_SAM_APDU [08:22:54]CAPDU: 80 13 01 00 [08:22:54]Write to MH i2c: E2 08 00 99 05 80 13 01 00 00 00 00 00 1B [08:22:54]Write i2c OK [08:22:54]MH_I2C_Read... [08:22:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:54]Read from MH i2c: E2 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: E2 0E 00 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: E2 0E 00 99 05 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 9A [08:22:54]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:22:54]wFMCommunicate OK [08:22:54]SAM_PROTO_GetShiftState done [08:22:54]FM_GetShiftState done [08:22:54]opened in 1739929631 [08:22:54]opened+sec_in_day 1740016031 [08:22:54]quantity*price = 270072 [08:22:54]sum+1 = 270073 [08:22:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 2700.00 Внесено: 2700.00 СДАЧА: 0.00 НСП 1% : 23.90 НДС 12% : 286.80 Наличными: 2700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 17 19.02.2025 08:22 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186951 ФПД: 228447142583407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T082256&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186951&fm=228447142583407&tin=02508201610067®Number=0000000000091857&sum=270000 [08:22:55]StoreToDocumentArchive [08:22:55]shift 647 fd 186951 [08:22:55]save to /storage/0647/doc_00186951 [08:22:55]save last doc name /storage/0647/doc_00186951 to /storage/kkm_last_doc_name [08:22:55]save OK [08:22:55]Clear old archive folders... [08:22:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:22:55]tlvbuf is 005AFAA0 [08:22:55]SAM_PROTO_ClearQueue [08:22:55]wFMCommunicate request_size=4 [08:22:55]MH_SAM_APDU [08:22:55]CAPDU: 80 09 00 00 [08:22:55]Write to MH i2c: E2 08 00 A6 05 80 09 00 00 00 00 00 00 1D [08:22:55]Write i2c OK [08:22:55]MH_I2C_Read... [08:22:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:55]Read from MH i2c: E2 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 03 00 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 03 00 A6 05 00 90 00 1F [08:22:55]RAPDU: 90 00 [08:22:55]wFMCommunicate OK [08:22:55]SAM_PROTO_ClearQueue done [08:22:55]KKMCreateOFDPacket [08:22:55]OFDProtocolAddRootSTLVToBuf [08:22:55]FM_MakeSignedData [08:22:55]FM_MakeSignedData [08:22:55]SAM_PROTO_SignData [08:22:55]wFMCommunicate request_size=4 [08:22:55]MH_SAM_APDU [08:22:55]CAPDU: 80 0D 01 02 [08:22:55]Write to MH i2c: E2 08 00 A7 05 80 0D 01 02 00 00 00 00 25 [08:22:55]Write i2c OK [08:22:55]MH_I2C_Read... [08:22:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:55]Read from MH i2c: E2 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 03 00 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 03 00 A7 05 00 90 00 20 [08:22:55]RAPDU: 90 00 [08:22:55]wFMCommunicate OK [08:22:55]wFMCommunicate request_size=255 [08:22:55]MH_SAM_APDU [08:22:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 91 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 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 08 70 00 00 00 00 07 04 06 00 B0 1E 04 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 E0 94 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 47 DA 02 00 35 04 06 00 CF C5 7E C8 [08:22:55]Write to MH i2c: E2 02 01 A8 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 50 91 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 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 08 70 00 00 00 00 07 04 06 00 B0 1E 04 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 E0 94 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 47 DA 02 00 35 04 06 00 CF C5 7E C8 00 00 9C [08:22:55]Write i2c OK [08:22:55]MH_I2C_Read... [08:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:55]Read from MH i2c: E2 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 03 00 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 03 00 A8 05 00 90 00 21 [08:22:55]RAPDU: 90 00 [08:22:55]wFMCommunicate OK [08:22:55]wFMCommunicate request_size=7 [08:22:55]MH_SAM_APDU [08:22:55]CAPDU: 80 0D 02 02 02 9C 6F [08:22:55]Write to MH i2c: E2 0A 00 A9 05 80 0D 02 02 02 00 9C 6F 00 00 37 [08:22:55]Write i2c OK [08:22:55]MH_I2C_Read... [08:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:55]Read from MH i2c: E2 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 03 00 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [08:22:55]RAPDU: 90 00 [08:22:55]wFMCommunicate OK [08:22:55]wFMCommunicate request_size=4 [08:22:55]MH_SAM_APDU [08:22:55]CAPDU: 80 0D 03 02 [08:22:55]Write to MH i2c: E2 08 00 AA 05 80 0D 03 02 00 00 00 00 2A [08:22:55]Write i2c OK [08:22:55]MH_I2C_Read... [08:22:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:55]Read from MH i2c: E2 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 0B 00 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 0B 00 AA 05 00 40 39 2A A2 69 1A B5 44 90 00 EC [08:22:55]RAPDU: 40 39 2A A2 69 1A B5 44 90 00 [08:22:55]wFMCommunicate OK [08:22:55]SAM_PROTO_SignData done [08:22:55]FM_MakeSignedData done [08:22:55]CreateOFDProtocolMessage [08:22:55]wFMCommunicate request_size=4 [08:22:55]MH_SAM_APDU [08:22:55]CAPDU: 80 11 00 00 [08:22:55]Write to MH i2c: E2 08 00 AB 05 80 11 00 00 00 00 00 00 2A [08:22:55]Write i2c OK [08:22:55]MH_I2C_Read... [08:22:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:56]Read from MH i2c: E2 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: E2 17 00 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: E2 17 00 AB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7D [08:22:56]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:56]wFMCommunicate OK [08:22:56]CreateOFDProtocolMessage done [08:22:56]OFDSenderStorePacket 186951 [08:22:56]StoreOFDPacket docnum=186951 [08:22: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 E8 1C 04 01 A5 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 91 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 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 08 70 00 00 00 00 07 04 06 00 B0 1E 04 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 E0 94 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 47 DA 02 00 35 04 06 00 CF C5 7E C8 9C 6F 40 39 2A A2 69 1A B5 44 [08:22:56]CheckFolder [08:22:56]dirname=/storage/ofd_packets [08:22:56]CheckFolder done [08:22:56]ProducePacketName [08:22:56]name=ofd_packets/00186951 [08:22:56]NVStorageSaveData ofd_packets/00186951 [08:22:56]File name is /storage/ofd_packets/00186951 [08:22:56]Write 298 bytes [08:22:56]NVStorageSaveData done [08:22:56]OFDSenderStorePacket done [08:22:56]KKMCreateOFDPacket done [08:22:56]NVStorageSaveData kkm_last_timestamp [08:22:56]File name is /storage/kkm_last_timestamp [08:22:56]Write 4 bytes [08:22:56]NVStorageSaveData done [08:22:56]ExternCall_PrintAddStr [08:22:56]wPrintStart [08:22:56]Write to MH i2c: 01 00 00 AC 05 B1 [08:22:56]Write i2c OK [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: 01 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: 01 07 00 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: 01 07 00 AC 05 00 00 00 00 00 FF 0F C6 [08:22:56]RasterBufferAndPrint [08:22:56]line Счет N : (1)412101 [08:22:56]line ИНН: 02508201610067 [08:22:56]line Контрольно-Кассовый Чек [08:22:56]line ПРОДАЖА [08:22:56]line ТРК (МРК, ГНК) : 5 [08:22:56]line Товар: 2710194210 [08:22:56]line ДТ-К-5 [08:22:56]line 37.200 * 72.60 [08:22:56]line = 2700.72 [08:22:56]line НДС 12% НСП 1% [08:22:56]line > о реализуемом товаре [08:22:56]line ОКРУГЛЕНИЕ: -0.72 [08:22:56]line ИТОГО: 2700.00 [08:22:56]line Внесено: 2700.00 [08:22:56]line СДАЧА: 0.00 [08:22:56]line НСП 1% : 23.90 [08:22:56]line НДС 12% : 286.80 [08:22:56]line Наличными: 2700.00 [08:22:56]line Безнал.: 0.00 [08:22:56]line Место: АЗС № 92 "Партнер Нефть" [08:22:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:22:56]line СНО: Общий режим [08:22:56]line Чек 17 19.02.2025 08:22 [08:22:56]line Смена: 647 ФФД: 1.0 [08:22:56]line ЗНМ: 0300000118 [08:22:56]line РНМ: 0000000000091857 [08:22:56]line Версия ККМ: 001 [08:22:56]line ФМ: 0000000000871826 [08:22:56]line ФД: 186951 [08:22:56]line ФПД: 228447142583407 [08:22:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T082256&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186951&fm=228447142583407&tin=02508201610067®Number=0000000000091857&sum=270000 [08:22:56]OFD Sender: Processing packet 186951 [packets to send 49, broken 48] [08:22:56]ProducePacketName [08:22:56]name=ofd_packets/00186951 [08:22:56]OFD Sender: To server: pG, [08:22:56]CommunicateWithHost lk.salyk.kg:30040 [08:22:56]ConnectInit lk.salyk.kg [08:22:56]written 0, free lines is 4095 [08:22:56]Connected sock=10 [08:22:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E8 1C 04 01 A5 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 91 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 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 08 70 00 00 00 00 07 04 06 00 B0 1E 04 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 E0 94 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 47 DA 02 00 35 04 06 00 CF C5 7E C8 9C 6F 40 39 2A A2 69 1A B5 44 [08:22: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 22 04 47 00 D2 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 47 DA 02 00 F4 03 04 00 35 3B B5 67 B6 04 01 00 00 BF 07 98 21 A4 88 8C 60 [08:22:56]CommunicateWithHost err = 0 [08:22:56]CheckOFDResponse [08:22:56]1017 (14) - 77093643461234 [08:22:56]1041 (16) - 0000000000871826 [08:22:56]1040 (4) - 186951 [08:22:56]1012 (4) - 19.02.2025 02:00 [08:22:56]1206 (1) - 0 [08:22:56]OFD Sender: Remove packet 186951 [08:22:56]ProducePacketName [08:22:56]name=ofd_packets/00186951 [08:22:56]NVStorageDeleteData [08:22:56]Write to MH i2c: 01 00 00 D7 05 DC [08:22:56]Write i2c OK [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: 01 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: 01 07 00 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: 01 07 00 D7 05 00 00 00 00 00 03 0D F3 [08:22:56]RasterBufferAndPrint [08:22:56]line [08:22:56]line [08:22:56]line [08:22:56]line [08:22:56]line [08:22:56]written 0, free lines is 3337 [08:22:56]MH_Cut [08:22:56]Write to MH i2c: D1 01 00 DE 05 01 B5 [08:22:56]Write i2c OK [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: D1 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: D1 01 00 [08:22:56]MH_I2C_Read... [08:22:56]Read from MH i2c: D1 01 00 DE 05 00 B4 [08:22:56]Write to MH i2c: 01 00 00 DF 05 E4 [08:22:56]Write i2c OK [08:22:56]MH_I2C_Read... [08:22:57]OFD Sender: No OFD packet to send [08:22:57]*** Cut start [08:22:57]*** Partial cut [08:22:57]*** CUTSNS_PIN = 1 [08:22:57]*** CUTSNS_PIN = 0 [08:22:57]*** Brake cut motor [08:22:58]Read from MH i2c: 01 [08:22:58]MH_I2C_Read... [08:22:58]*** Stop cut motor [08:22:58]*** Cut end [08:22:58]Read from MH i2c: 01 07 00 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: 01 07 00 DF 05 00 00 00 00 00 FF 0F F9 [08:22:58]process_action close_receipt done [08:22:58]requested_data is exist [08:22:58]produce_requested_data [08:22:58]requested_item fm.sn is exist - process it [08:22:58]wFMCommunicate request_size=4 [08:22:58]MH_SAM_APDU [08:22:58]CAPDU: 80 11 00 00 [08:22:58]Write to MH i2c: E2 08 00 E0 05 80 11 00 00 00 00 00 00 5F [08:22:58]Write i2c OK [08:22:58]MH_I2C_Read... [08:22:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:58]Read from MH i2c: E2 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 17 00 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 17 00 E0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B2 [08:22:58]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:58]wFMCommunicate OK [08:22:58]requested_item fd.num is exist - process it [08:22:58]SAM_PROTO_GetFieldsCounters [08:22:58]wFMCommunicate request_size=4 [08:22:58]MH_SAM_APDU [08:22:58]CAPDU: 80 13 00 00 [08:22:58]Write to MH i2c: E2 08 00 E1 05 80 13 00 00 00 00 00 00 62 [08:22:58]Write i2c OK [08:22:58]MH_I2C_Read... [08:22:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:58]Read from MH i2c: E2 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 62 00 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 62 00 E1 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 47 DA 02 00 0E 04 04 00 87 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 67 [08:22:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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:58]wFMCommunicate OK [08:22:58]SAM_PROTO_GetFieldsCounters done [08:22:58]requested_item shift.num is exist - process it [08:22:58]requested_item shift.opened is exist - process it [08:22:58]req_shift_opened [08:22:58]FM_GetShiftState [08:22:58]SAM_PROTO_GetShiftState [08:22:58]wFMCommunicate request_size=4 [08:22:58]MH_SAM_APDU [08:22:58]CAPDU: 80 13 01 00 [08:22:58]Write to MH i2c: E2 08 00 E2 05 80 13 01 00 00 00 00 00 64 [08:22:58]Write i2c OK [08:22:58]MH_I2C_Read... [08:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:58]Read from MH i2c: E2 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 0E 00 [08:22:58]MH_I2C_Read... [08:22:58]Read from MH i2c: E2 0E 00 E2 05 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E3 [08:22:58]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:22:58]wFMCommunicate OK [08:22:58]SAM_PROTO_GetShiftState done [08:22:58]FM_GetShiftState done [08:22:58]req_shift_opened done [08:22:58]requested_item shift.open_date is exist - process it [08:22:58]req_shift_open_date [08:22:58]req_shift_open_date done [08:22:58]produce_requested_data done [08:22:58]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186951,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [08:22:58]process_action_free close_receipt [08:22:58]json_value_free [08:22:58]json_value_free done [08:22:58]process_json_proto returns [08:22:58]Send response to host [08:22:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186951,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [08:22:58]free response buf [08:22:58]execute_script done [08:22:58]execute_script returns [08:22:58]free content buf [08:22:58]Sock 9.Close socket [08:22:58]Sock 9.Thread stoped [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:26]accept exits with 7 [08:26:26]New connection [08:26:26]New thread 3066879332 created [08:26:26]Thread 3067022692 joined [08:26:26]Waiting for new connection... [08:26:26] Sock 7.Parse request [08:26:26]Sock 7.Check first char [08:26:26]Sock 7.First char is OK [08:26:26]request: POST /json_proto HTTP/1.0 [08:26:26]Method: POST [08:26:26]URL: /json_proto [08:26:26]Method is POST - this is cgi request [08:26:26]url: /json_proto [08:26:26]query_string will be loaded in cgi processing [08:26:26]execute_cgi json_proto POST (null) [08:26:26]execute_cgi path=json_proto method=POST [08:26:26]POST find Content-Length [08:26:26]Host: 172.17.46.131:8080 [08:26:26]Content-Length: 678 [08:26:26]Content-Type: application/json [08:26:26] [08:26:26]POST finish read [08:26:26]Found Content-Length = 678 [08:26:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412102", "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" ] } } [08:26:26]execute_script... [08:26:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412102", "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" ] } } [08:26:26]POST & json_proto [08:26:26]process_json_proto [08:26:26]json parsed OK: [08:26:26]protocol is kg_v1.0 [08:26:26]action value=close_receipt [08:26:26]process_action close_receipt [08:26:26]cmd_close_receipt [08:26:26]MH_GetDate [08:26:26]Write to MH i2c: F0 00 00 E3 05 D7 [08:26:26]Write i2c OK [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: F0 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: F0 09 00 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: F0 09 00 E3 05 00 B4 95 B5 67 7E 41 4F 65 B8 [08:26:26]GetLastDocTimeStamp 1739953376 [08:26:26]current date 1739953588 [08:26:26]FM_GetShiftState [08:26:26]SAM_PROTO_GetShiftState [08:26:26]wFMCommunicate request_size=4 [08:26:26]MH_SAM_APDU [08:26:26]CAPDU: 80 13 01 00 [08:26:26]Write to MH i2c: E2 08 00 E4 05 80 13 01 00 00 00 00 00 66 [08:26:26]Write i2c OK [08:26:26]MH_I2C_Read... [08:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:26]Read from MH i2c: E2 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 0E 00 [08:26:26]MH_I2C_Read... [08:26:26]Read from MH i2c: E2 0E 00 E4 05 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E5 [08:26:26]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:26:26]wFMCommunicate OK [08:26:26]SAM_PROTO_GetShiftState done [08:26:26]FM_GetShiftState done [08:26:26]opened in 1739929631 [08:26:26]opened+sec_in_day 1740016031 [08:26:26]quantity*price = 200013 [08:26:26]sum+1 = 200014 [08:26:26]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 СНО: Общий режим Чек 18 19.02.2025 08:26 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186952 ФПД: 202901178805719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T082628&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186952&fm=202901178805719&tin=02508201610067®Number=0000000000091857&sum=200000 [08:26:27]StoreToDocumentArchive [08:26:27]shift 647 fd 186952 [08:26:27]save to /storage/0647/doc_00186952 [08:26:27]save last doc name /storage/0647/doc_00186952 to /storage/kkm_last_doc_name [08:26:27]save OK [08:26:27]Clear old archive folders... [08:26:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:26:27]tlvbuf is 005D9FC0 [08:26:27]SAM_PROTO_ClearQueue [08:26:27]wFMCommunicate request_size=4 [08:26:27]MH_SAM_APDU [08:26:27]CAPDU: 80 09 00 00 [08:26:27]Write to MH i2c: E2 08 00 F1 05 80 09 00 00 00 00 00 00 68 [08:26:27]Write i2c OK [08:26:27]MH_I2C_Read... [08:26:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:27]Read from MH i2c: E2 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 03 00 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 03 00 F1 05 00 90 00 6A [08:26:27]RAPDU: 90 00 [08:26:27]wFMCommunicate OK [08:26:27]SAM_PROTO_ClearQueue done [08:26:27]KKMCreateOFDPacket [08:26:27]OFDProtocolAddRootSTLVToBuf [08:26:27]FM_MakeSignedData [08:26:27]FM_MakeSignedData [08:26:27]SAM_PROTO_SignData [08:26:27]wFMCommunicate request_size=4 [08:26:27]MH_SAM_APDU [08:26:27]CAPDU: 80 0D 01 02 [08:26:27]Write to MH i2c: E2 08 00 F2 05 80 0D 01 02 00 00 00 00 70 [08:26:27]Write i2c OK [08:26:27]MH_I2C_Read... [08:26:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:27]Read from MH i2c: E2 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 03 00 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 03 00 F2 05 00 90 00 6B [08:26:27]RAPDU: 90 00 [08:26:27]wFMCommunicate OK [08:26:27]wFMCommunicate request_size=255 [08:26:27]MH_SAM_APDU [08:26:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 12 00 00 00 F4 03 04 00 B4 95 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 48 DA 02 00 35 04 06 00 B8 89 9C AF [08:26:27]Write to MH i2c: E2 02 01 F3 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 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 12 00 00 00 F4 03 04 00 B4 95 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 48 DA 02 00 35 04 06 00 B8 89 9C AF 00 00 3A [08:26:27]Write i2c OK [08:26:27]MH_I2C_Read... [08:26:27]OFD Sender: No OFD packet to send [08:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:27]Read from MH i2c: E2 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 03 00 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 03 00 F3 05 00 90 00 6C [08:26:27]RAPDU: 90 00 [08:26:27]wFMCommunicate OK [08:26:27]wFMCommunicate request_size=7 [08:26:27]MH_SAM_APDU [08:26:27]CAPDU: 80 0D 02 02 02 ED D7 [08:26:27]Write to MH i2c: E2 0A 00 F4 05 80 0D 02 02 02 00 ED D7 00 00 3B [08:26:27]Write i2c OK [08:26:27]MH_I2C_Read... [08:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:27]Read from MH i2c: E2 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 03 00 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 03 00 F4 05 00 90 00 6D [08:26:27]RAPDU: 90 00 [08:26:27]wFMCommunicate OK [08:26:27]wFMCommunicate request_size=4 [08:26:27]MH_SAM_APDU [08:26:27]CAPDU: 80 0D 03 02 [08:26:27]Write to MH i2c: E2 08 00 F5 05 80 0D 03 02 00 00 00 00 75 [08:26:27]Write i2c OK [08:26:27]MH_I2C_Read... [08:26:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:27]Read from MH i2c: E2 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 0B 00 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 0B 00 F5 05 00 DB F0 0A A3 86 C4 99 D2 90 00 A3 [08:26:27]RAPDU: DB F0 0A A3 86 C4 99 D2 90 00 [08:26:27]wFMCommunicate OK [08:26:27]SAM_PROTO_SignData done [08:26:27]FM_MakeSignedData done [08:26:27]CreateOFDProtocolMessage [08:26:27]wFMCommunicate request_size=4 [08:26:27]MH_SAM_APDU [08:26:27]CAPDU: 80 11 00 00 [08:26:27]Write to MH i2c: E2 08 00 F6 05 80 11 00 00 00 00 00 00 75 [08:26:27]Write i2c OK [08:26:27]MH_I2C_Read... [08:26:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:27]Read from MH i2c: E2 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 17 00 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: E2 17 00 F6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C8 [08:26:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:26:27]wFMCommunicate OK [08:26:27]CreateOFDProtocolMessage done [08:26:27]OFDSenderStorePacket 186952 [08:26:27]StoreOFDPacket docnum=186952 [08:26: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 A5 76 04 01 7C 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 12 00 00 00 F4 03 04 00 B4 95 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 48 DA 02 00 35 04 06 00 B8 89 9C AF ED D7 DB F0 0A A3 86 C4 99 D2 [08:26:27]CheckFolder [08:26:27]dirname=/storage/ofd_packets [08:26:27]CheckFolder done [08:26:27]ProducePacketName [08:26:27]name=ofd_packets/00186952 [08:26:27]NVStorageSaveData ofd_packets/00186952 [08:26:27]File name is /storage/ofd_packets/00186952 [08:26:27]Write 298 bytes [08:26:27]NVStorageSaveData done [08:26:27]OFDSenderStorePacket done [08:26:27]KKMCreateOFDPacket done [08:26:27]NVStorageSaveData kkm_last_timestamp [08:26:27]File name is /storage/kkm_last_timestamp [08:26:27]Write 4 bytes [08:26:27]NVStorageSaveData done [08:26:27]ExternCall_PrintAddStr [08:26:27]wPrintStart [08:26:27]Write to MH i2c: 01 00 00 F7 05 FC [08:26:27]Write i2c OK [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: 01 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: 01 07 00 [08:26:27]MH_I2C_Read... [08:26:27]Read from MH i2c: 01 07 00 F7 05 00 00 00 00 00 FF 0F 11 [08:26:27]RasterBufferAndPrint [08:26:27]line Счет N : (1)412102 [08:26:27]line ИНН: 02508201610067 [08:26:27]line Контрольно-Кассовый Чек [08:26:27]line ПРОДАЖА [08:26:27]line ТРК (МРК, ГНК) : 5 [08:26:27]line Товар: 2710194210 [08:26:27]line ДТ-К-5 [08:26:27]line 27.550 * 72.60 [08:26:27]line = 2000.13 [08:26:27]line НДС 12% НСП 1% [08:26:27]line > о реализуемом товаре [08:26:27]line ОКРУГЛЕНИЕ: -0.13 [08:26:27]line ИТОГО: 2000.00 [08:26:27]line Внесено: 2000.00 [08:26:27]line СДАЧА: 0.00 [08:26:27]line НСП 1% : 17.70 [08:26:27]line НДС 12% : 212.40 [08:26:27]line Наличными: 2000.00 [08:26:27]line Безнал.: 0.00 [08:26:27]line Место: АЗС № 92 "Партнер Нефть" [08:26:27]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:26:27]line СНО: Общий режим [08:26:27]line Чек 18 19.02.2025 08:26 [08:26:27]line Смена: 647 ФФД: 1.0 [08:26:27]line ЗНМ: 0300000118 [08:26:27]line РНМ: 0000000000091857 [08:26:27]line Версия ККМ: 001 [08:26:27]line ФМ: 0000000000871826 [08:26:27]line ФД: 186952 [08:26:27]line ФПД: 202901178805719 [08:26:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T082628&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186952&fm=202901178805719&tin=02508201610067®Number=0000000000091857&sum=200000 [08:26:28]OFD Sender: Processing packet 186952 [packets to send 49, broken 48] [08:26:28]ProducePacketName [08:26:28]name=ofd_packets/00186952 [08:26:28]OFD Sender: To server: pG, [08:26:28]CommunicateWithHost lk.salyk.kg:30040 [08:26:28]ConnectInit lk.salyk.kg [08:26:28]written 0, free lines is 4095 [08:26:28]Connected sock=10 [08:26:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A5 76 04 01 7C 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 12 00 00 00 F4 03 04 00 B4 95 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 48 DA 02 00 35 04 06 00 B8 89 9C AF ED D7 DB F0 0A A3 86 C4 99 D2 [08:26:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 47 91 47 00 9B 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 48 DA 02 00 F4 03 04 00 09 3C B5 67 B6 04 01 00 00 E3 19 51 4C DC 92 AC CE [08:26:28]CommunicateWithHost err = 0 [08:26:28]CheckOFDResponse [08:26:28]1017 (14) - 77093643461234 [08:26:28]1041 (16) - 0000000000871826 [08:26:28]1040 (4) - 186952 [08:26:28]1012 (4) - 19.02.2025 02:03 [08:26:28]1206 (1) - 0 [08:26:28]OFD Sender: Remove packet 186952 [08:26:28]ProducePacketName [08:26:28]name=ofd_packets/00186952 [08:26:28]NVStorageDeleteData [08:26:28]Write to MH i2c: 01 00 00 22 06 28 [08:26:28]Write i2c OK [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: 01 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: 01 07 00 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: 01 07 00 22 06 00 00 00 00 00 06 0D 42 [08:26:28]RasterBufferAndPrint [08:26:28]line [08:26:28]line [08:26:28]line [08:26:28]line [08:26:28]line [08:26:28]written 0, free lines is 3341 [08:26:28]MH_Cut [08:26:28]Write to MH i2c: D1 01 00 29 06 01 01 [08:26:28]Write i2c OK [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: D1 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: D1 01 00 [08:26:28]MH_I2C_Read... [08:26:28]Read from MH i2c: D1 01 00 29 06 00 00 [08:26:28]Write to MH i2c: 01 00 00 2A 06 30 [08:26:28]Write i2c OK [08:26:28]MH_I2C_Read... [08:26:29]OFD Sender: No OFD packet to send [08:26:29]*** Cut start [08:26:29]*** Partial cut [08:26:29]*** CUTSNS_PIN = 1 [08:26:29]*** CUTSNS_PIN = 0 [08:26:29]*** Brake cut motor [08:26:30]Read from MH i2c: 01 [08:26:30]MH_I2C_Read... [08:26:30]*** Stop cut motor [08:26:30]*** Cut end [08:26:30]Read from MH i2c: 01 07 00 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: 01 07 00 2A 06 00 00 00 00 00 FF 0F 45 [08:26:30]process_action close_receipt done [08:26:30]requested_data is exist [08:26:30]produce_requested_data [08:26:30]requested_item fm.sn is exist - process it [08:26:30]wFMCommunicate request_size=4 [08:26:30]MH_SAM_APDU [08:26:30]CAPDU: 80 11 00 00 [08:26:30]Write to MH i2c: E2 08 00 2B 06 80 11 00 00 00 00 00 00 AB [08:26:30]Write i2c OK [08:26:30]MH_I2C_Read... [08:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:30]Read from MH i2c: E2 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: E2 17 00 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: E2 17 00 2B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FE [08:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:26:30]wFMCommunicate OK [08:26:30]requested_item fd.num is exist - process it [08:26:30]SAM_PROTO_GetFieldsCounters [08:26:30]wFMCommunicate request_size=4 [08:26:30]MH_SAM_APDU [08:26:30]CAPDU: 80 13 00 00 [08:26:30]Write to MH i2c: E2 08 00 2C 06 80 13 00 00 00 00 00 00 AE [08:26:30]Write i2c OK [08:26:30]MH_I2C_Read... [08:26:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:30]Read from MH i2c: E2 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: E2 62 00 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: E2 62 00 2C 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 48 DA 02 00 0E 04 04 00 87 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 B7 [08:26:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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:26:30]wFMCommunicate OK [08:26:30]SAM_PROTO_GetFieldsCounters done [08:26:30]requested_item shift.num is exist - process it [08:26:30]requested_item shift.opened is exist - process it [08:26:30]req_shift_opened [08:26:30]FM_GetShiftState [08:26:30]SAM_PROTO_GetShiftState [08:26:30]wFMCommunicate request_size=4 [08:26:30]MH_SAM_APDU [08:26:30]CAPDU: 80 13 01 00 [08:26:30]Write to MH i2c: E2 08 00 2D 06 80 13 01 00 00 00 00 00 B0 [08:26:30]Write i2c OK [08:26:30]MH_I2C_Read... [08:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:30]Read from MH i2c: E2 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: E2 0E 00 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: E2 0E 00 2D 06 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 2F [08:26:30]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:26:30]wFMCommunicate OK [08:26:30]SAM_PROTO_GetShiftState done [08:26:30]FM_GetShiftState done [08:26:30]req_shift_opened done [08:26:30]requested_item shift.open_date is exist - process it [08:26:30]req_shift_open_date [08:26:30]req_shift_open_date done [08:26:30]produce_requested_data done [08:26:30]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186952,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [08:26:30]process_action_free close_receipt [08:26:30]json_value_free [08:26:30]json_value_free done [08:26:30]process_json_proto returns [08:26:30]Send response to host [08:26:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186952,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [08:26:30]free response buf [08:26:30]execute_script done [08:26:30]execute_script returns [08:26:30]free content buf [08:26:30]Sock 7.Close socket [08:26:30]Sock 7.Thread stoped [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:50]accept exits with 9 [08:28:50]New connection [08:28:50]New thread 3067022692 created [08:28:50]Thread 3066879332 joined [08:28:50]Waiting for new connection... [08:28:50] Sock 9.Parse request [08:28:50]Sock 9.Check first char [08:28:50]Sock 9.First char is OK [08:28:50]request: POST /json_proto HTTP/1.0 [08:28:50]Method: POST [08:28:50]URL: /json_proto [08:28:50]Method is POST - this is cgi request [08:28:50]url: /json_proto [08:28:50]query_string will be loaded in cgi processing [08:28:50]execute_cgi json_proto POST (null) [08:28:50]execute_cgi path=json_proto method=POST [08:28:50]POST find Content-Length [08:28:50]Host: 172.17.46.131:8080 [08:28:50]Content-Length: 682 [08:28:50]Content-Type: application/json [08:28:50] [08:28:50]POST finish read [08:28:50]Found Content-Length = 682 [08:28:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412103", "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 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:50]execute_script... [08:28: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)412103", "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 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:50]POST & json_proto [08:28:50]process_json_proto [08:28:50]json parsed OK: [08:28:50]protocol is kg_v1.0 [08:28:50]action value=close_receipt [08:28:50]process_action close_receipt [08:28:50]cmd_close_receipt [08:28:50]MH_GetDate [08:28:50]Write to MH i2c: F0 00 00 2E 06 23 [08:28:50]Write i2c OK [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: F0 [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: F0 09 00 [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: F0 09 00 2E 06 00 44 96 B5 67 7E 41 4F 65 95 [08:28:50]GetLastDocTimeStamp 1739953588 [08:28:50]current date 1739953732 [08:28:50]FM_GetShiftState [08:28:50]SAM_PROTO_GetShiftState [08:28:50]wFMCommunicate request_size=4 [08:28:50]MH_SAM_APDU [08:28:50]CAPDU: 80 13 01 00 [08:28:50]Write to MH i2c: E2 08 00 2F 06 80 13 01 00 00 00 00 00 B2 [08:28:50]Write i2c OK [08:28:50]MH_I2C_Read... [08:28:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:50]Read from MH i2c: E2 [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: E2 0E 00 [08:28:50]MH_I2C_Read... [08:28:50]Read from MH i2c: E2 0E 00 2F 06 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 31 [08:28:50]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:28:50]wFMCommunicate OK [08:28:50]SAM_PROTO_GetShiftState done [08:28:50]FM_GetShiftState done [08:28:50]opened in 1739929631 [08:28:50]opened+sec_in_day 1740016031 [08:28:50]quantity*price = 200025 [08:28:50]sum+1 = 200027 [08:28:50]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 СНО: Общий режим Чек 19 19.02.2025 08:28 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186953 ФПД: 169245251108070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T082852&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186953&fm=169245251108070&tin=02508201610067®Number=0000000000091857&sum=200000 [08:28:51]StoreToDocumentArchive [08:28:51]shift 647 fd 186953 [08:28:51]save to /storage/0647/doc_00186953 [08:28:51]save last doc name /storage/0647/doc_00186953 to /storage/kkm_last_doc_name [08:28:51]save OK [08:28:51]Clear old archive folders... [08:28:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:28:51]tlvbuf is 005C4E20 [08:28:51]SAM_PROTO_ClearQueue [08:28:51]wFMCommunicate request_size=4 [08:28:51]MH_SAM_APDU [08:28:51]CAPDU: 80 09 00 00 [08:28:51]Write to MH i2c: E2 08 00 3C 06 80 09 00 00 00 00 00 00 B4 [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:51]Read from MH i2c: E2 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 03 00 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 03 00 3C 06 00 90 00 B6 [08:28:51]RAPDU: 90 00 [08:28:51]wFMCommunicate OK [08:28:51]SAM_PROTO_ClearQueue done [08:28:51]KKMCreateOFDPacket [08:28:51]OFDProtocolAddRootSTLVToBuf [08:28:51]FM_MakeSignedData [08:28:51]FM_MakeSignedData [08:28:51]SAM_PROTO_SignData [08:28:51]wFMCommunicate request_size=4 [08:28:51]MH_SAM_APDU [08:28:51]CAPDU: 80 0D 01 02 [08:28:51]Write to MH i2c: E2 08 00 3D 06 80 0D 01 02 00 00 00 00 BC [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:51]Read from MH i2c: E2 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 03 00 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 03 00 3D 06 00 90 00 B7 [08:28:51]RAPDU: 90 00 [08:28:51]wFMCommunicate OK [08:28:51]wFMCommunicate request_size=255 [08:28:51]MH_SAM_APDU [08:28: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 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 13 00 00 00 F4 03 04 00 44 96 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 49 DA 02 00 35 04 06 00 99 [08:28:51]Write to MH i2c: E2 02 01 3E 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 13 00 00 00 F4 03 04 00 44 96 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 49 DA 02 00 35 04 06 00 99 00 00 AF [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:51]Read from MH i2c: E2 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 03 00 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 03 00 3E 06 00 90 00 B8 [08:28:51]RAPDU: 90 00 [08:28:51]wFMCommunicate OK [08:28:51]wFMCommunicate request_size=10 [08:28:51]MH_SAM_APDU [08:28:51]CAPDU: 80 0D 02 02 05 ED 7B 12 7C E6 [08:28:51]Write to MH i2c: E2 0D 00 3F 06 80 0D 02 02 05 00 ED 7B 12 7C E6 00 00 A5 [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:51]Read from MH i2c: E2 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 03 00 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 03 00 3F 06 00 90 00 B9 [08:28:51]RAPDU: 90 00 [08:28:51]wFMCommunicate OK [08:28:51]wFMCommunicate request_size=4 [08:28:51]MH_SAM_APDU [08:28:51]CAPDU: 80 0D 03 02 [08:28:51]Write to MH i2c: E2 08 00 40 06 80 0D 03 02 00 00 00 00 C1 [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:51]Read from MH i2c: E2 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 0B 00 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 0B 00 40 06 00 34 1B B0 AE 67 76 AA 2D 90 00 23 [08:28:51]RAPDU: 34 1B B0 AE 67 76 AA 2D 90 00 [08:28:51]wFMCommunicate OK [08:28:51]SAM_PROTO_SignData done [08:28:51]FM_MakeSignedData done [08:28:51]CreateOFDProtocolMessage [08:28:51]wFMCommunicate request_size=4 [08:28:51]MH_SAM_APDU [08:28:51]CAPDU: 80 11 00 00 [08:28:51]Write to MH i2c: E2 08 00 41 06 80 11 00 00 00 00 00 00 C1 [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:51]Read from MH i2c: E2 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 17 00 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: E2 17 00 41 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 14 [08:28:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:28:51]wFMCommunicate OK [08:28:51]CreateOFDProtocolMessage done [08:28:51]OFDSenderStorePacket 186953 [08:28:51]StoreOFDPacket docnum=186953 [08:28: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 19 28 07 01 63 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 13 00 00 00 F4 03 04 00 44 96 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 49 DA 02 00 35 04 06 00 99 ED 7B 12 7C E6 34 1B B0 AE 67 76 AA 2D [08:28:51]CheckFolder [08:28:51]dirname=/storage/ofd_packets [08:28:51]CheckFolder done [08:28:51]ProducePacketName [08:28:51]name=ofd_packets/00186953 [08:28:51]NVStorageSaveData ofd_packets/00186953 [08:28:51]File name is /storage/ofd_packets/00186953 [08:28:51]Write 301 bytes [08:28:51]NVStorageSaveData done [08:28:51]OFDSenderStorePacket done [08:28:51]KKMCreateOFDPacket done [08:28:51]NVStorageSaveData kkm_last_timestamp [08:28:51]File name is /storage/kkm_last_timestamp [08:28:51]Write 4 bytes [08:28:51]NVStorageSaveData done [08:28:51]ExternCall_PrintAddStr [08:28:51]wPrintStart [08:28:51]Write to MH i2c: 01 00 00 42 06 48 [08:28:51]Write i2c OK [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: 01 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: 01 07 00 [08:28:51]MH_I2C_Read... [08:28:51]Read from MH i2c: 01 07 00 42 06 00 00 00 00 00 FF 0F 5D [08:28:51]RasterBufferAndPrint [08:28:51]line Счет N : (1)412103 [08:28:51]line ИНН: 02508201610067 [08:28:51]line Контрольно-Кассовый Чек [08:28:51]line ПРОДАЖА [08:28:51]line ТРК (МРК, ГНК) : 13 [08:28:51]line Товар: 2710124500 [08:28:51]line Аи-95-К-5 [08:28:51]line 27.820 * 71.90 [08:28:51]line = 2000.26 [08:28:51]line НДС 12% НСП 1% [08:28:51]line > о реализуемом товаре [08:28:51]line ОКРУГЛЕНИЕ: -0.26 [08:28:51]line ИТОГО: 2000.00 [08:28:51]line Внесено: 2000.00 [08:28:51]line СДАЧА: 0.00 [08:28:51]line НСП 1% : 17.70 [08:28:51]line НДС 12% : 212.42 [08:28:51]line Наличными: 2000.00 [08:28:51]line Безнал.: 0.00 [08:28:51]line Место: АЗС № 92 "Партнер Нефть" [08:28:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:28:51]line СНО: Общий режим [08:28:51]line Чек 19 19.02.2025 08:28 [08:28:51]line Смена: 647 ФФД: 1.0 [08:28:51]line ЗНМ: 0300000118 [08:28:51]line РНМ: 0000000000091857 [08:28:51]line Версия ККМ: 001 [08:28:51]line ФМ: 0000000000871826 [08:28:51]line ФД: 186953 [08:28:51]line ФПД: 169245251108070 [08:28:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T082852&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186953&fm=169245251108070&tin=02508201610067®Number=0000000000091857&sum=200000 [08:28:52]OFD Sender: Processing packet 186953 [packets to send 49, broken 48] [08:28:52]ProducePacketName [08:28:52]name=ofd_packets/00186953 [08:28:52]OFD Sender: To server: pG, [08:28:52]CommunicateWithHost lk.salyk.kg:30040 [08:28:52]ConnectInit lk.salyk.kg [08:28:52]written 0, free lines is 4095 [08:28:52]Connected sock=10 [08:28: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 19 28 07 01 63 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 13 00 00 00 F4 03 04 00 44 96 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 49 DA 02 00 35 04 06 00 99 ED 7B 12 7C E6 34 1B B0 AE 67 76 AA 2D [08:28: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 DF 2D 47 00 69 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 49 DA 02 00 F4 03 04 00 99 3C B5 67 B6 04 01 00 00 1F DB 16 21 F8 C9 3A 5E [08:28:52]CommunicateWithHost err = 0 [08:28:52]CheckOFDResponse [08:28:52]1017 (14) - 77093643461234 [08:28:52]1041 (16) - 0000000000871826 [08:28:52]1040 (4) - 186953 [08:28:52]1012 (4) - 19.02.2025 02:06 [08:28:52]1206 (1) - 0 [08:28:52]OFD Sender: Remove packet 186953 [08:28:52]ProducePacketName [08:28:52]name=ofd_packets/00186953 [08:28:52]NVStorageDeleteData [08:28:52]Write to MH i2c: 01 00 00 6D 06 73 [08:28:52]Write i2c OK [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: 01 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: 01 07 00 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: 01 07 00 6D 06 00 00 00 00 00 F7 0C 7D [08:28:52]RasterBufferAndPrint [08:28:52]line [08:28:52]line [08:28:52]line [08:28:52]line [08:28:52]line [08:28:52]written 0, free lines is 3325 [08:28:52]MH_Cut [08:28:52]Write to MH i2c: D1 01 00 74 06 01 4C [08:28:52]Write i2c OK [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: D1 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: D1 01 00 [08:28:52]MH_I2C_Read... [08:28:52]Read from MH i2c: D1 01 00 74 06 00 4B [08:28:52]Write to MH i2c: 01 00 00 75 06 7B [08:28:52]Write i2c OK [08:28:52]MH_I2C_Read... [08:28:53]OFD Sender: No OFD packet to send [08:28:53]*** Cut start [08:28:53]*** Partial cut [08:28:53]*** CUTSNS_PIN = 1 [08:28:53]*** CUTSNS_PIN = 0 [08:28:53]*** Brake cut motor [08:28:53]Read from MH i2c: 01 [08:28:53]MH_I2C_Read... [08:28:53]*** Stop cut motor [08:28:53]*** Cut end [08:28:53]Read from MH i2c: 01 07 00 [08:28:53]MH_I2C_Read... [08:28:53]Read from MH i2c: 01 07 00 75 06 00 00 00 00 00 FF 0F 90 [08:28:53]process_action close_receipt done [08:28:53]requested_data is exist [08:28:53]produce_requested_data [08:28:53]requested_item fm.sn is exist - process it [08:28:53]wFMCommunicate request_size=4 [08:28:53]MH_SAM_APDU [08:28:53]CAPDU: 80 11 00 00 [08:28:53]Write to MH i2c: E2 08 00 76 06 80 11 00 00 00 00 00 00 F6 [08:28:53]Write i2c OK [08:28:53]MH_I2C_Read... [08:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:53]Read from MH i2c: E2 [08:28:53]MH_I2C_Read... [08:28:53]Read from MH i2c: E2 17 00 [08:28:53]MH_I2C_Read... [08:28:53]Read from MH i2c: E2 17 00 76 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 49 [08:28:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:28:53]wFMCommunicate OK [08:28:53]requested_item fd.num is exist - process it [08:28:53]SAM_PROTO_GetFieldsCounters [08:28:53]wFMCommunicate request_size=4 [08:28:53]MH_SAM_APDU [08:28:53]CAPDU: 80 13 00 00 [08:28:53]Write to MH i2c: E2 08 00 77 06 80 13 00 00 00 00 00 00 F9 [08:28:53]Write i2c OK [08:28:53]MH_I2C_Read... [08:28:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:54]Read from MH i2c: E2 [08:28:54]MH_I2C_Read... [08:28:54]Read from MH i2c: E2 62 00 [08:28:54]MH_I2C_Read... [08:28:54]Read from MH i2c: E2 62 00 77 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 49 DA 02 00 0E 04 04 00 87 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 06 [08:28: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 49 DA 02 00 0E 04 04 00 87 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:28:54]wFMCommunicate OK [08:28:54]SAM_PROTO_GetFieldsCounters done [08:28:54]requested_item shift.num is exist - process it [08:28:54]requested_item shift.opened is exist - process it [08:28:54]req_shift_opened [08:28:54]FM_GetShiftState [08:28:54]SAM_PROTO_GetShiftState [08:28:54]wFMCommunicate request_size=4 [08:28:54]MH_SAM_APDU [08:28:54]CAPDU: 80 13 01 00 [08:28:54]Write to MH i2c: E2 08 00 78 06 80 13 01 00 00 00 00 00 FB [08:28:54]Write i2c OK [08:28:54]MH_I2C_Read... [08:28:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:54]Read from MH i2c: E2 [08:28:54]MH_I2C_Read... [08:28:54]Read from MH i2c: E2 0E 00 [08:28:54]MH_I2C_Read... [08:28:54]Read from MH i2c: E2 0E 00 78 06 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 7A [08:28:54]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:28:54]wFMCommunicate OK [08:28:54]SAM_PROTO_GetShiftState done [08:28:54]FM_GetShiftState done [08:28:54]req_shift_opened done [08:28:54]requested_item shift.open_date is exist - process it [08:28:54]req_shift_open_date [08:28:54]req_shift_open_date done [08:28:54]produce_requested_data done [08:28:54]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186953,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [08:28:54]process_action_free close_receipt [08:28:54]json_value_free [08:28:54]json_value_free done [08:28:54]process_json_proto returns [08:28:54]Send response to host [08:28:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186953,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [08:28:54]free response buf [08:28:54]execute_script done [08:28:54]execute_script returns [08:28:54]free content buf [08:28:54]Sock 9.Close socket [08:28:54]Sock 9.Thread stoped [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:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:13]OFD Sender: No OFD packet to send [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:01]accept exits with 7 [08:33:01]New connection [08:33:01]New thread 3066879332 created [08:33:01]Thread 3067022692 joined [08:33:01]Waiting for new connection... [08:33:01] Sock 7.Parse request [08:33:01]Sock 7.Check first char [08:33:01]Sock 7.First char is OK [08:33:01]request: POST /json_proto HTTP/1.0 [08:33:01]Method: POST [08:33:01]URL: /json_proto [08:33:01]Method is POST - this is cgi request [08:33:01]url: /json_proto [08:33:01]query_string will be loaded in cgi processing [08:33:01]execute_cgi json_proto POST (null) [08:33:01]execute_cgi path=json_proto method=POST [08:33:01]POST find Content-Length [08:33:01]Host: 172.17.46.131:8080 [08:33:01]Content-Length: 678 [08:33:01]Content-Type: application/json [08:33:01] [08:33:01]POST finish read [08:33:01]Found Content-Length = 678 [08:33:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412104", "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" : 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" ] } } [08:33:01]execute_script... [08:33: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)412104", "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" : 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" ] } } [08:33:01]POST & json_proto [08:33:01]process_json_proto [08:33:01]json parsed OK: [08:33:01]protocol is kg_v1.0 [08:33:01]action value=close_receipt [08:33:01]process_action close_receipt [08:33:01]cmd_close_receipt [08:33:01]MH_GetDate [08:33:01]Write to MH i2c: F0 00 00 79 06 6E [08:33:01]Write i2c OK [08:33:01]MH_I2C_Read... [08:33:01]Read from MH i2c: F0 [08:33:01]MH_I2C_Read... [08:33:01]Read from MH i2c: F0 09 00 [08:33:01]MH_I2C_Read... [08:33:01]Read from MH i2c: F0 09 00 79 06 00 3F 97 B5 67 7E 41 4F 65 DC [08:33:01]GetLastDocTimeStamp 1739953732 [08:33:01]current date 1739953983 [08:33:01]FM_GetShiftState [08:33:01]SAM_PROTO_GetShiftState [08:33:01]wFMCommunicate request_size=4 [08:33:01]MH_SAM_APDU [08:33:01]CAPDU: 80 13 01 00 [08:33:01]Write to MH i2c: E2 08 00 7A 06 80 13 01 00 00 00 00 00 FD [08:33:01]Write i2c OK [08:33:01]MH_I2C_Read... [08:33:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:01]Read from MH i2c: E2 [08:33:01]MH_I2C_Read... [08:33:01]Read from MH i2c: E2 0E 00 [08:33:01]MH_I2C_Read... [08:33:01]Read from MH i2c: E2 0E 00 7A 06 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 7C [08:33:01]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:33:01]wFMCommunicate OK [08:33:01]SAM_PROTO_GetShiftState done [08:33:01]FM_GetShiftState done [08:33:01]opened in 1739929631 [08:33:01]opened+sec_in_day 1740016031 [08:33:01]quantity*price = 80024 [08:33:01]sum+1 = 80026 [08:33:01]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 СНО: Общий режим Чек 20 19.02.2025 08:33 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186954 ФПД: 274739199162565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T083304&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186954&fm=274739199162565&tin=02508201610067®Number=0000000000091857&sum=80000 [08:33:02]StoreToDocumentArchive [08:33:02]shift 647 fd 186954 [08:33:02]save to /storage/0647/doc_00186954 [08:33:02]save last doc name /storage/0647/doc_00186954 to /storage/kkm_last_doc_name [08:33:02]save OK [08:33:02]Clear old archive folders... [08:33:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:02]tlvbuf is 005DE6E0 [08:33:02]SAM_PROTO_ClearQueue [08:33:02]wFMCommunicate request_size=4 [08:33:02]MH_SAM_APDU [08:33:02]CAPDU: 80 09 00 00 [08:33:02]Write to MH i2c: E2 08 00 87 06 80 09 00 00 00 00 00 00 FF [08:33:02]Write i2c OK [08:33:02]MH_I2C_Read... [08:33:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:02]Read from MH i2c: E2 [08:33:02]MH_I2C_Read... [08:33:02]Read from MH i2c: E2 03 00 [08:33:02]MH_I2C_Read... [08:33:02]Read from MH i2c: E2 03 00 87 06 00 90 00 01 [08:33:02]RAPDU: 90 00 [08:33:02]wFMCommunicate OK [08:33:02]SAM_PROTO_ClearQueue done [08:33:02]KKMCreateOFDPacket [08:33:02]OFDProtocolAddRootSTLVToBuf [08:33:02]FM_MakeSignedData [08:33:02]FM_MakeSignedData [08:33:02]SAM_PROTO_SignData [08:33:02]wFMCommunicate request_size=4 [08:33:02]MH_SAM_APDU [08:33:02]CAPDU: 80 0D 01 02 [08:33:02]Write to MH i2c: E2 08 00 88 06 80 0D 01 02 00 00 00 00 07 [08:33:02]Write i2c OK [08:33:02]MH_I2C_Read... [08:33:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:02]Read from MH i2c: E2 [08:33:02]MH_I2C_Read... [08:33:02]Read from MH i2c: E2 03 00 [08:33:02]MH_I2C_Read... [08:33:02]Read from MH i2c: E2 03 00 88 06 00 90 00 02 [08:33:02]RAPDU: 90 00 [08:33:02]wFMCommunicate OK [08:33:02]wFMCommunicate request_size=255 [08:33:02]MH_SAM_APDU [08:33: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 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 14 00 00 00 F4 03 04 00 40 97 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 4A DA 02 00 35 04 06 00 F9 [08:33:02]Write to MH i2c: E2 02 01 89 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 14 00 00 00 F4 03 04 00 40 97 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 4A DA 02 00 35 04 06 00 F9 00 00 FD [08:33:02]Write i2c OK [08:33:02]MH_I2C_Read... [08:33:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:03]Read from MH i2c: E2 [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: E2 03 00 [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: E2 03 00 89 06 00 90 00 03 [08:33:03]RAPDU: 90 00 [08:33:03]wFMCommunicate OK [08:33:03]wFMCommunicate request_size=10 [08:33:03]MH_SAM_APDU [08:33:03]CAPDU: 80 0D 02 02 05 DF B4 5F 38 C5 [08:33:03]Write to MH i2c: E2 0D 00 8A 06 80 0D 02 02 05 00 DF B4 5F 38 C5 00 00 03 [08:33:03]Write i2c OK [08:33:03]MH_I2C_Read... [08:33:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:03]Read from MH i2c: E2 [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: E2 03 00 [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: E2 03 00 8A 06 00 90 00 04 [08:33:03]RAPDU: 90 00 [08:33:03]wFMCommunicate OK [08:33:03]wFMCommunicate request_size=4 [08:33:03]MH_SAM_APDU [08:33:03]CAPDU: 80 0D 03 02 [08:33:03]Write to MH i2c: E2 08 00 8B 06 80 0D 03 02 00 00 00 00 0C [08:33:03]Write i2c OK [08:33:03]MH_I2C_Read... [08:33:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:03]Read from MH i2c: E2 [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: E2 0B 00 [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: E2 0B 00 8B 06 00 5A E1 01 2D F0 79 73 56 90 00 A8 [08:33:03]RAPDU: 5A E1 01 2D F0 79 73 56 90 00 [08:33:03]wFMCommunicate OK [08:33:03]SAM_PROTO_SignData done [08:33:03]FM_MakeSignedData done [08:33:03]CreateOFDProtocolMessage [08:33:03]wFMCommunicate request_size=4 [08:33:03]MH_SAM_APDU [08:33:03]CAPDU: 80 11 00 00 [08:33:03]Write to MH i2c: E2 08 00 8C 06 80 11 00 00 00 00 00 00 0C [08:33:03]Write i2c OK [08:33:03]MH_I2C_Read... [08:33:03]OFD Sender: No OFD packet to send [08:33:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:03]Read from MH i2c: E2 [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: E2 17 00 [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: E2 17 00 8C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5F [08:33:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:33:03]wFMCommunicate OK [08:33:03]CreateOFDProtocolMessage done [08:33:03]OFDSenderStorePacket 186954 [08:33:03]StoreOFDPacket docnum=186954 [08:33: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 95 8F 07 01 53 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 14 00 00 00 F4 03 04 00 40 97 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 4A DA 02 00 35 04 06 00 F9 DF B4 5F 38 C5 5A E1 01 2D F0 79 73 56 [08:33:03]CheckFolder [08:33:03]dirname=/storage/ofd_packets [08:33:03]CheckFolder done [08:33:03]ProducePacketName [08:33:03]name=ofd_packets/00186954 [08:33:03]NVStorageSaveData ofd_packets/00186954 [08:33:03]File name is /storage/ofd_packets/00186954 [08:33:03]Write 301 bytes [08:33:03]NVStorageSaveData done [08:33:03]OFDSenderStorePacket done [08:33:03]KKMCreateOFDPacket done [08:33:03]NVStorageSaveData kkm_last_timestamp [08:33:03]File name is /storage/kkm_last_timestamp [08:33:03]Write 4 bytes [08:33:03]NVStorageSaveData done [08:33:03]ExternCall_PrintAddStr [08:33:03]wPrintStart [08:33:03]Write to MH i2c: 01 00 00 8D 06 93 [08:33:03]Write i2c OK [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: 01 [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: 01 07 00 [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: 01 07 00 8D 06 00 00 00 00 00 FF 0F A8 [08:33:03]RasterBufferAndPrint [08:33:03]line Счет N : (1)412104 [08:33:03]line ИНН: 02508201610067 [08:33:03]line Контрольно-Кассовый Чек [08:33:03]line ПРОДАЖА [08:33:03]line ТРК (МРК, ГНК) : 13 [08:33:03]line Товар: 2710124500 [08:33:03]line Аи-95-К-5 [08:33:03]line 11.130 * 71.90 [08:33:03]line = 800.25 [08:33:03]line НДС 12% НСП 1% [08:33:03]line > о реализуемом товаре [08:33:03]line ОКРУГЛЕНИЕ: -0.25 [08:33:03]line ИТОГО: 800.00 [08:33:03]line Внесено: 800.00 [08:33:03]line СДАЧА: 0.00 [08:33:03]line НСП 1% : 7.08 [08:33:03]line НДС 12% : 84.98 [08:33:03]line Наличными: 800.00 [08:33:03]line Безнал.: 0.00 [08:33:03]line Место: АЗС № 92 "Партнер Нефть" [08:33:03]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:33:03]line СНО: Общий режим [08:33:03]line Чек 20 19.02.2025 08:33 [08:33:03]line Смена: 647 ФФД: 1.0 [08:33:03]line ЗНМ: 0300000118 [08:33:03]line РНМ: 0000000000091857 [08:33:03]line Версия ККМ: 001 [08:33:03]line ФМ: 0000000000871826 [08:33:03]line ФД: 186954 [08:33:03]line ФПД: 274739199162565 [08:33:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T083304&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186954&fm=274739199162565&tin=02508201610067®Number=0000000000091857&sum=80000 [08:33:03]written 0, free lines is 4095 [08:33:03]OFD Sender: Processing packet 186954 [packets to send 49, broken 48] [08:33:03]ProducePacketName [08:33:03]name=ofd_packets/00186954 [08:33:03]OFD Sender: To server: pG, [08:33:03]CommunicateWithHost lk.salyk.kg:30040 [08:33:03]ConnectInit lk.salyk.kg [08:33:03]Connected sock=11 [08:33: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 95 8F 07 01 53 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 14 00 00 00 F4 03 04 00 40 97 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 4A DA 02 00 35 04 06 00 F9 DF B4 5F 38 C5 5A E1 01 2D F0 79 73 56 [08:33:03]Write to MH i2c: 01 00 00 B8 06 BE [08:33:03]Write i2c OK [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: 01 [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: 01 07 00 [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: 01 07 00 B8 06 00 00 00 00 00 FB 0C CC [08:33:03]RasterBufferAndPrint [08:33:03]line [08:33:03]line [08:33:03]line [08:33:03]line [08:33:03]line [08:33:03]written 0, free lines is 3329 [08:33:03]MH_Cut [08:33:03]Write to MH i2c: D1 01 00 BF 06 01 97 [08:33:03]Write i2c OK [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: D1 [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: D1 01 00 [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: D1 01 00 BF 06 00 96 [08:33:03]Write to MH i2c: 01 00 00 C0 06 C6 [08:33:03]Write i2c OK [08:33:03]MH_I2C_Read... [08:33: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 1A 6C 47 00 3D A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4A DA 02 00 F4 03 04 00 94 3D B5 67 B6 04 01 00 00 7C 08 F5 38 52 69 7A 5A [08:33:03]CommunicateWithHost err = 0 [08:33:03]CheckOFDResponse [08:33:03]1017 (14) - 77093643461234 [08:33:03]1041 (16) - 0000000000871826 [08:33:03]1040 (4) - 186954 [08:33:03]1012 (4) - 19.02.2025 02:10 [08:33:03]1206 (1) - 0 [08:33:03]OFD Sender: Remove packet 186954 [08:33:03]ProducePacketName [08:33:03]name=ofd_packets/00186954 [08:33:03]NVStorageDeleteData [08:33:04]OFD Sender: No OFD packet to send [08:33:04]*** Cut start [08:33:04]*** Partial cut [08:33:04]*** CUTSNS_PIN = 1 [08:33:04]*** CUTSNS_PIN = 0 [08:33:04]*** Brake cut motor [08:33:05]Read from MH i2c: 01 [08:33:05]MH_I2C_Read... [08:33:05]*** Stop cut motor [08:33:05]*** Cut end [08:33:05]Read from MH i2c: 01 07 00 [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: 01 07 00 C0 06 00 00 00 00 00 FF 0F DB [08:33:05]process_action close_receipt done [08:33:05]requested_data is exist [08:33:05]produce_requested_data [08:33:05]requested_item fm.sn is exist - process it [08:33:05]wFMCommunicate request_size=4 [08:33:05]MH_SAM_APDU [08:33:05]CAPDU: 80 11 00 00 [08:33:05]Write to MH i2c: E2 08 00 C1 06 80 11 00 00 00 00 00 00 41 [08:33:05]Write i2c OK [08:33:05]MH_I2C_Read... [08:33:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:05]Read from MH i2c: E2 [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: E2 17 00 [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: E2 17 00 C1 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 94 [08:33:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:33:05]wFMCommunicate OK [08:33:05]requested_item fd.num is exist - process it [08:33:05]SAM_PROTO_GetFieldsCounters [08:33:05]wFMCommunicate request_size=4 [08:33:05]MH_SAM_APDU [08:33:05]CAPDU: 80 13 00 00 [08:33:05]Write to MH i2c: E2 08 00 C2 06 80 13 00 00 00 00 00 00 44 [08:33:05]Write i2c OK [08:33:05]MH_I2C_Read... [08:33:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:05]Read from MH i2c: E2 [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: E2 62 00 [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: E2 62 00 C2 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 4A DA 02 00 0E 04 04 00 87 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 55 [08:33: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 4A DA 02 00 0E 04 04 00 87 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:33:05]wFMCommunicate OK [08:33:05]SAM_PROTO_GetFieldsCounters done [08:33:05]requested_item shift.num is exist - process it [08:33:05]requested_item shift.opened is exist - process it [08:33:05]req_shift_opened [08:33:05]FM_GetShiftState [08:33:05]SAM_PROTO_GetShiftState [08:33:05]wFMCommunicate request_size=4 [08:33:05]MH_SAM_APDU [08:33:05]CAPDU: 80 13 01 00 [08:33:05]Write to MH i2c: E2 08 00 C3 06 80 13 01 00 00 00 00 00 46 [08:33:05]Write i2c OK [08:33:05]MH_I2C_Read... [08:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:05]Read from MH i2c: E2 [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: E2 0E 00 [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: E2 0E 00 C3 06 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C5 [08:33:05]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:33:05]wFMCommunicate OK [08:33:05]SAM_PROTO_GetShiftState done [08:33:05]FM_GetShiftState done [08:33:05]req_shift_opened done [08:33:05]requested_item shift.open_date is exist - process it [08:33:05]req_shift_open_date [08:33:05]req_shift_open_date done [08:33:05]produce_requested_data done [08:33:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186954,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [08:33:05]process_action_free close_receipt [08:33:05]json_value_free [08:33:05]json_value_free done [08:33:05]process_json_proto returns [08:33:05]Send response to host [08:33:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186954,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [08:33:05]free response buf [08:33:05]execute_script done [08:33:05]execute_script returns [08:33:05]free content buf [08:33:05]Sock 7.Close socket [08:33:05]Sock 7.Thread stoped [08:33:09]OFD Sender: No OFD packet to send [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:34]OFD Sender: No OFD packet to send [08:33:38]accept exits with 9 [08:33:38]New connection [08:33:38]New thread 3067022692 created [08:33:38]Thread 3066879332 joined [08:33:38]Waiting for new connection... [08:33:38] Sock 9.Parse request [08:33:38]Sock 9.Check first char [08:33:38]Sock 9.First char is OK [08:33:38]request: POST /json_proto HTTP/1.0 [08:33:38]Method: POST [08:33:38]URL: /json_proto [08:33:38]Method is POST - this is cgi request [08:33:38]url: /json_proto [08:33:38]query_string will be loaded in cgi processing [08:33:38]execute_cgi json_proto POST (null) [08:33:38]execute_cgi path=json_proto method=POST [08:33:38]POST find Content-Length [08:33:38]Host: 172.17.46.131:8080 [08:33:38]Content-Length: 800 [08:33:38]Content-Type: application/json [08:33:38] [08:33:38]POST finish read [08:33:38]Found Content-Length = 800 [08:33:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412106", "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:33:38]execute_script... [08:33: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)412106", "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:33:38]POST & json_proto [08:33:38]process_json_proto [08:33:38]json parsed OK: [08:33:38]protocol is kg_v1.0 [08:33:38]action value=close_receipt [08:33:38]process_action close_receipt [08:33:38]cmd_close_receipt [08:33:38]MH_GetDate [08:33:38]Write to MH i2c: F0 00 00 C4 06 B9 [08:33:38]Write i2c OK [08:33:38]MH_I2C_Read... [08:33:38]Read from MH i2c: F0 [08:33:38]MH_I2C_Read... [08:33:38]Read from MH i2c: F0 09 00 [08:33:38]MH_I2C_Read... [08:33:38]Read from MH i2c: F0 09 00 C4 06 00 64 97 B5 67 7E 41 4F 65 4C [08:33:38]GetLastDocTimeStamp 1739953984 [08:33:38]current date 1739954020 [08:33:38]FM_GetShiftState [08:33:38]SAM_PROTO_GetShiftState [08:33:38]wFMCommunicate request_size=4 [08:33:38]MH_SAM_APDU [08:33:38]CAPDU: 80 13 01 00 [08:33:38]Write to MH i2c: E2 08 00 C5 06 80 13 01 00 00 00 00 00 48 [08:33:38]Write i2c OK [08:33:38]MH_I2C_Read... [08:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:38]Read from MH i2c: E2 [08:33:38]MH_I2C_Read... [08:33:38]Read from MH i2c: E2 0E 00 [08:33:38]MH_I2C_Read... [08:33:38]Read from MH i2c: E2 0E 00 C5 06 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C7 [08:33:38]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:33:38]wFMCommunicate OK [08:33:38]SAM_PROTO_GetShiftState done [08:33:38]FM_GetShiftState done [08:33:38]opened in 1739929631 [08:33:38]opened+sec_in_day 1740016031 [08:33:38]quantity*price = 60027 [08:33:38]sum+1 = 60028 [08:33:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.27 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 0.00 Безнал.: 600.27 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 21 19.02.2025 08:33 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186955 ФПД: 182078881252471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T083340&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186955&fm=182078881252471&tin=02508201610067®Number=0000000000091857&sum=60027 [08:33:39]StoreToDocumentArchive [08:33:39]shift 647 fd 186955 [08:33:39]save to /storage/0647/doc_00186955 [08:33:39]save last doc name /storage/0647/doc_00186955 to /storage/kkm_last_doc_name [08:33:39]save OK [08:33:39]Clear old archive folders... [08:33:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:39]tlvbuf is 005DDFC0 [08:33:39]SAM_PROTO_ClearQueue [08:33:39]wFMCommunicate request_size=4 [08:33:39]MH_SAM_APDU [08:33:39]CAPDU: 80 09 00 00 [08:33:39]Write to MH i2c: E2 08 00 D2 06 80 09 00 00 00 00 00 00 4A [08:33:39]Write i2c OK [08:33:39]MH_I2C_Read... [08:33:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:39]Read from MH i2c: E2 [08:33:39]MH_I2C_Read... [08:33:39]Read from MH i2c: E2 03 00 [08:33:39]MH_I2C_Read... [08:33:39]Read from MH i2c: E2 03 00 D2 06 00 90 00 4C [08:33:39]RAPDU: 90 00 [08:33:39]wFMCommunicate OK [08:33:39]SAM_PROTO_ClearQueue done [08:33:39]KKMCreateOFDPacket [08:33:39]OFDProtocolAddRootSTLVToBuf [08:33:39]FM_MakeSignedData [08:33:39]FM_MakeSignedData [08:33:39]SAM_PROTO_SignData [08:33:39]wFMCommunicate request_size=4 [08:33:39]MH_SAM_APDU [08:33:39]CAPDU: 80 0D 01 02 [08:33:39]Write to MH i2c: E2 08 00 D3 06 80 0D 01 02 00 00 00 00 52 [08:33:39]Write i2c OK [08:33:39]MH_I2C_Read... [08:33:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:39]Read from MH i2c: E2 [08:33:39]MH_I2C_Read... [08:33:39]Read from MH i2c: E2 03 00 [08:33:39]MH_I2C_Read... [08:33:39]Read from MH i2c: E2 03 00 D3 06 00 90 00 4D [08:33:39]RAPDU: 90 00 [08:33:39]wFMCommunicate OK [08:33:39]wFMCommunicate request_size=255 [08:33:39]MH_SAM_APDU [08:33: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 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 15 00 00 00 F4 03 04 00 64 97 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 4B DA 02 00 35 04 06 00 A5 [08:33:39]Write to MH i2c: E2 02 01 D4 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 15 00 00 00 F4 03 04 00 64 97 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 4B DA 02 00 35 04 06 00 A5 00 00 F8 [08:33:39]Write i2c OK [08:33:39]MH_I2C_Read... [08:33:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:39]Read from MH i2c: E2 [08:33:39]MH_I2C_Read... [08:33:39]Read from MH i2c: E2 03 00 [08:33:39]MH_I2C_Read... [08:33:39]Read from MH i2c: E2 03 00 D4 06 00 90 00 4E [08:33:39]RAPDU: 90 00 [08:33:39]wFMCommunicate OK [08:33:39]wFMCommunicate request_size=10 [08:33:39]MH_SAM_APDU [08:33:39]CAPDU: 80 0D 02 02 05 99 8B 09 C4 77 [08:33:39]Write to MH i2c: E2 0D 00 D5 06 80 0D 02 02 05 00 99 8B 09 C4 77 00 00 C7 [08:33:39]Write i2c OK [08:33:39]MH_I2C_Read... [08:33:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:39]Read from MH i2c: E2 [08:33:39]MH_I2C_Read... [08:33:39]Read from MH i2c: E2 03 00 [08:33:39]MH_I2C_Read... [08:33:39]Read from MH i2c: E2 03 00 D5 06 00 90 00 4F [08:33:39]RAPDU: 90 00 [08:33:39]wFMCommunicate OK [08:33:39]wFMCommunicate request_size=4 [08:33:39]MH_SAM_APDU [08:33:39]CAPDU: 80 0D 03 02 [08:33:39]Write to MH i2c: E2 08 00 D6 06 80 0D 03 02 00 00 00 00 57 [08:33:39]Write i2c OK [08:33:39]MH_I2C_Read... [08:33:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:40]Read from MH i2c: E2 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: E2 0B 00 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: E2 0B 00 D6 06 00 B7 6A 36 2B 21 73 B3 31 90 00 52 [08:33:40]RAPDU: B7 6A 36 2B 21 73 B3 31 90 00 [08:33:40]wFMCommunicate OK [08:33:40]SAM_PROTO_SignData done [08:33:40]FM_MakeSignedData done [08:33:40]CreateOFDProtocolMessage [08:33:40]wFMCommunicate request_size=4 [08:33:40]MH_SAM_APDU [08:33:40]CAPDU: 80 11 00 00 [08:33:40]Write to MH i2c: E2 08 00 D7 06 80 11 00 00 00 00 00 00 57 [08:33:40]Write i2c OK [08:33:40]MH_I2C_Read... [08:33:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:40]Read from MH i2c: E2 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: E2 17 00 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: E2 17 00 D7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AA [08:33:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:33:40]wFMCommunicate OK [08:33:40]CreateOFDProtocolMessage done [08:33:40]OFDSenderStorePacket 186955 [08:33:40]StoreOFDPacket docnum=186955 [08:33: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 63 25 07 01 2D 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 15 00 00 00 F4 03 04 00 64 97 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 4B DA 02 00 35 04 06 00 A5 99 8B 09 C4 77 B7 6A 36 2B 21 73 B3 31 [08:33:40]CheckFolder [08:33:40]dirname=/storage/ofd_packets [08:33:40]CheckFolder done [08:33:40]ProducePacketName [08:33:40]name=ofd_packets/00186955 [08:33:40]NVStorageSaveData ofd_packets/00186955 [08:33:40]File name is /storage/ofd_packets/00186955 [08:33:40]Write 301 bytes [08:33:40]NVStorageSaveData done [08:33:40]OFDSenderStorePacket done [08:33:40]KKMCreateOFDPacket done [08:33:40]NVStorageSaveData kkm_last_timestamp [08:33:40]File name is /storage/kkm_last_timestamp [08:33:40]Write 4 bytes [08:33:40]NVStorageSaveData done [08:33:40]ExternCall_PrintAddStr [08:33:40]wPrintStart [08:33:40]Write to MH i2c: 01 00 00 D8 06 DE [08:33:40]Write i2c OK [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: 01 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: 01 07 00 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: 01 07 00 D8 06 00 00 00 00 00 FF 0F F3 [08:33:40]RasterBufferAndPrint [08:33:40]line Счет N : (1)412106 [08:33:40]line ИНН: 02508201610067 [08:33:40]line Контрольно-Кассовый Чек [08:33:40]line ПРОДАЖА [08:33:40]line ТРК (МРК, ГНК) : 22 [08:33:40]line Товар: 2710124130 [08:33:40]line Аи-92-К-2 [08:33:40]line 9.350 * 64.20 [08:33:40]line = 600.27 [08:33:40]line НДС 12% НСП 1% [08:33:40]line > о реализуемом товаре [08:33:40]line ИТОГО: 600.27 [08:33:40]line НСП 1% : 5.31 [08:33:40]line НДС 12% : 63.74 [08:33:40]line Наличными: 0.00 [08:33:40]line Безнал.: 600.27 [08:33:40]line Место: АЗС № 92 "Партнер Нефть" [08:33:40]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:33:40]line СНО: Общий режим [08:33:40]line Чек 21 19.02.2025 08:33 [08:33:40]line Смена: 647 ФФД: 1.0 [08:33:40]line ЗНМ: 0300000118 [08:33:40]line РНМ: 0000000000091857 [08:33:40]line Версия ККМ: 001 [08:33:40]line Платежная система: O! деньги [08:33:40]line ФМ: 0000000000871826 [08:33:40]line ФД: 186955 [08:33:40]line ФПД: 182078881252471 [08:33:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T083340&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186955&fm=182078881252471&tin=02508201610067®Number=0000000000091857&sum=60027 [08:33:40]written 0, free lines is 4095 [08:33:40]OFD Sender: Processing packet 186955 [packets to send 49, broken 48] [08:33:40]ProducePacketName [08:33:40]name=ofd_packets/00186955 [08:33:40]OFD Sender: To server: pG, [08:33:40]CommunicateWithHost lk.salyk.kg:30040 [08:33:40]ConnectInit lk.salyk.kg [08:33:40]Connected sock=10 [08:33: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 63 25 07 01 2D 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 15 00 00 00 F4 03 04 00 64 97 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 4B DA 02 00 35 04 06 00 A5 99 8B 09 C4 77 B7 6A 36 2B 21 73 B3 31 [08:33:40]Write to MH i2c: 01 00 00 02 07 09 [08:33:40]Write i2c OK [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: 01 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: 01 07 00 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: 01 07 00 02 07 00 00 00 00 00 02 0D 1F [08:33:40]RasterBufferAndPrint [08:33:40]line [08:33:40]line [08:33:40]line [08:33:40]line [08:33:40]line [08:33:40]written 0, free lines is 3336 [08:33:40]MH_Cut [08:33:40]Write to MH i2c: D1 01 00 09 07 01 E2 [08:33:40]Write i2c OK [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: D1 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: D1 01 00 [08:33:40]MH_I2C_Read... [08:33:40]Read from MH i2c: D1 01 00 09 07 00 E1 [08:33:40]Write to MH i2c: 01 00 00 0A 07 11 [08:33:40]Write i2c OK [08:33:40]MH_I2C_Read... [08:33: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 E6 C6 47 00 12 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 4B DA 02 00 F4 03 04 00 B9 3D B5 67 B6 04 01 00 00 5E 19 5A AF 8A 37 43 1E [08:33:40]CommunicateWithHost err = 0 [08:33:40]CheckOFDResponse [08:33:40]1017 (14) - 77093643461234 [08:33:40]1041 (16) - 0000000000871826 [08:33:40]1040 (4) - 186955 [08:33:40]1012 (4) - 19.02.2025 02:11 [08:33:40]1206 (1) - 0 [08:33:40]OFD Sender: Remove packet 186955 [08:33:40]ProducePacketName [08:33:40]name=ofd_packets/00186955 [08:33:40]NVStorageDeleteData [08:33:41]OFD Sender: No OFD packet to send [08:33:41]*** Cut start [08:33:41]*** Partial cut [08:33:41]*** CUTSNS_PIN = 1 [08:33:41]*** CUTSNS_PIN = 0 [08:33:41]*** Brake cut motor [08:33:41]Read from MH i2c: 01 [08:33:41]MH_I2C_Read... [08:33:41]*** Stop cut motor [08:33:41]*** Cut end [08:33:41]Read from MH i2c: 01 07 00 [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: 01 07 00 0A 07 00 00 00 00 00 FF 0F 26 [08:33:41]process_action close_receipt done [08:33:41]requested_data is exist [08:33:41]produce_requested_data [08:33:41]requested_item fm.sn is exist - process it [08:33:41]wFMCommunicate request_size=4 [08:33:41]MH_SAM_APDU [08:33:41]CAPDU: 80 11 00 00 [08:33:41]Write to MH i2c: E2 08 00 0B 07 80 11 00 00 00 00 00 00 8C [08:33:41]Write i2c OK [08:33:41]MH_I2C_Read... [08:33:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:41]Read from MH i2c: E2 [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: E2 17 00 [08:33:41]MH_I2C_Read... [08:33:41]Read from MH i2c: E2 17 00 0B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DF [08:33:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:33:41]wFMCommunicate OK [08:33:41]requested_item fd.num is exist - process it [08:33:41]SAM_PROTO_GetFieldsCounters [08:33:41]wFMCommunicate request_size=4 [08:33:41]MH_SAM_APDU [08:33:41]CAPDU: 80 13 00 00 [08:33:41]Write to MH i2c: E2 08 00 0C 07 80 13 00 00 00 00 00 00 8F [08:33:41]Write i2c OK [08:33:41]MH_I2C_Read... [08:33:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:42]Read from MH i2c: E2 [08:33:42]MH_I2C_Read... [08:33:42]Read from MH i2c: E2 62 00 [08:33:42]MH_I2C_Read... [08:33:42]Read from MH i2c: E2 62 00 0C 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 4B DA 02 00 0E 04 04 00 87 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 A4 [08:33: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 4B DA 02 00 0E 04 04 00 87 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:33:42]wFMCommunicate OK [08:33:42]SAM_PROTO_GetFieldsCounters done [08:33:42]requested_item shift.num is exist - process it [08:33:42]requested_item shift.opened is exist - process it [08:33:42]req_shift_opened [08:33:42]FM_GetShiftState [08:33:42]SAM_PROTO_GetShiftState [08:33:42]wFMCommunicate request_size=4 [08:33:42]MH_SAM_APDU [08:33:42]CAPDU: 80 13 01 00 [08:33:42]Write to MH i2c: E2 08 00 0D 07 80 13 01 00 00 00 00 00 91 [08:33:42]Write i2c OK [08:33:42]MH_I2C_Read... [08:33:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:42]Read from MH i2c: E2 [08:33:42]MH_I2C_Read... [08:33:42]Read from MH i2c: E2 0E 00 [08:33:42]MH_I2C_Read... [08:33:42]Read from MH i2c: E2 0E 00 0D 07 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 10 [08:33:42]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:33:42]wFMCommunicate OK [08:33:42]SAM_PROTO_GetShiftState done [08:33:42]FM_GetShiftState done [08:33:42]req_shift_opened done [08:33:42]requested_item shift.open_date is exist - process it [08:33:42]req_shift_open_date [08:33:42]req_shift_open_date done [08:33:42]produce_requested_data done [08:33:42]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186955,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [08:33:42]process_action_free close_receipt [08:33:42]json_value_free [08:33:42]json_value_free done [08:33:42]process_json_proto returns [08:33:42]Send response to host [08:33:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186955,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [08:33:42]free response buf [08:33:42]execute_script done [08:33:42]execute_script returns [08:33:42]free content buf [08:33:42]Sock 9.Close socket [08:33:42]Sock 9.Thread stoped [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:29]accept exits with 7 [08:34:29]New connection [08:34:29]New thread 3066879332 created [08:34:29]Thread 3067022692 joined [08:34:29]Waiting for new connection... [08:34:29] Sock 7.Parse request [08:34:29]Sock 7.Check first char [08:34:29]Sock 7.First char is OK [08:34:29]request: POST /json_proto HTTP/1.0 [08:34:29]Method: POST [08:34:29]URL: /json_proto [08:34:29]Method is POST - this is cgi request [08:34:29]url: /json_proto [08:34:29]query_string will be loaded in cgi processing [08:34:29]execute_cgi json_proto POST (null) [08:34:29]execute_cgi path=json_proto method=POST [08:34:29]POST find Content-Length [08:34:29]Host: 172.17.46.131:8080 [08:34:29]Content-Length: 678 [08:34:29]Content-Type: application/json [08:34:29] [08:34:29]POST finish read [08:34:29]Found Content-Length = 678 [08:34:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412105", "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" : 48.210, "sum" : 3500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:29]execute_script... [08:34: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)412105", "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" : 48.210, "sum" : 3500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:29]POST & json_proto [08:34:29]process_json_proto [08:34:29]json parsed OK: [08:34:29]protocol is kg_v1.0 [08:34:29]action value=close_receipt [08:34:29]process_action close_receipt [08:34:29]cmd_close_receipt [08:34:29]MH_GetDate [08:34:29]Write to MH i2c: F0 00 00 0E 07 04 [08:34:29]Write i2c OK [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: F0 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: F0 09 00 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: F0 09 00 0E 07 00 97 97 B5 67 7E 41 4F 65 CA [08:34:29]GetLastDocTimeStamp 1739954020 [08:34:29]current date 1739954071 [08:34:29]FM_GetShiftState [08:34:29]SAM_PROTO_GetShiftState [08:34:29]wFMCommunicate request_size=4 [08:34:29]MH_SAM_APDU [08:34:29]CAPDU: 80 13 01 00 [08:34:29]Write to MH i2c: E2 08 00 0F 07 80 13 01 00 00 00 00 00 93 [08:34:29]Write i2c OK [08:34:29]MH_I2C_Read... [08:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:29]Read from MH i2c: E2 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 0E 00 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 0E 00 0F 07 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 12 [08:34:29]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:34:29]wFMCommunicate OK [08:34:29]SAM_PROTO_GetShiftState done [08:34:29]FM_GetShiftState done [08:34:29]opened in 1739929631 [08:34:29]opened+sec_in_day 1740016031 [08:34:29]quantity*price = 350004 [08:34:29]sum+1 = 350006 [08:34:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.97 НДС 12% : 371.69 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 22 19.02.2025 08:34 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186956 ФПД: 206786628874429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T083432&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186956&fm=206786628874429&tin=02508201610067®Number=0000000000091857&sum=350000 [08:34:30]StoreToDocumentArchive [08:34:30]shift 647 fd 186956 [08:34:30]save to /storage/0647/doc_00186956 [08:34:30]save last doc name /storage/0647/doc_00186956 to /storage/kkm_last_doc_name [08:34:30]save OK [08:34:30]Clear old archive folders... [08:34:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:34:30]tlvbuf is 005B6190 [08:34:30]SAM_PROTO_ClearQueue [08:34:30]wFMCommunicate request_size=4 [08:34:30]MH_SAM_APDU [08:34:30]CAPDU: 80 09 00 00 [08:34:30]Write to MH i2c: E2 08 00 1C 07 80 09 00 00 00 00 00 00 95 [08:34:30]Write i2c OK [08:34:30]MH_I2C_Read... [08:34:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:30]Read from MH i2c: E2 [08:34:30]MH_I2C_Read... [08:34:30]Read from MH i2c: E2 03 00 [08:34:30]MH_I2C_Read... [08:34:30]Read from MH i2c: E2 03 00 1C 07 00 90 00 97 [08:34:30]RAPDU: 90 00 [08:34:30]wFMCommunicate OK [08:34:30]SAM_PROTO_ClearQueue done [08:34:30]KKMCreateOFDPacket [08:34:30]OFDProtocolAddRootSTLVToBuf [08:34:30]FM_MakeSignedData [08:34:30]FM_MakeSignedData [08:34:30]SAM_PROTO_SignData [08:34:30]wFMCommunicate request_size=4 [08:34:30]MH_SAM_APDU [08:34:30]CAPDU: 80 0D 01 02 [08:34:30]Write to MH i2c: E2 08 00 1D 07 80 0D 01 02 00 00 00 00 9D [08:34:30]Write i2c OK [08:34:30]MH_I2C_Read... [08:34:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:30]Read from MH i2c: E2 [08:34:30]MH_I2C_Read... [08:34:30]Read from MH i2c: E2 03 00 [08:34:30]MH_I2C_Read... [08:34:30]Read from MH i2c: E2 03 00 1D 07 00 90 00 98 [08:34:30]RAPDU: 90 00 [08:34:30]wFMCommunicate OK [08:34:30]wFMCommunicate request_size=255 [08:34:30]MH_SAM_APDU [08:34:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 BC 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 35 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 91 00 00 00 00 07 04 06 00 30 57 05 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 98 97 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 4C DA 02 00 35 04 06 00 BC 12 43 8E [08:34:30]Write to MH i2c: E2 02 01 1E 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 BC 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 35 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 91 00 00 00 00 07 04 06 00 30 57 05 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 98 97 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 4C DA 02 00 35 04 06 00 BC 12 43 8E 00 00 C6 [08:34:30]Write i2c OK [08:34:30]MH_I2C_Read... [08:34:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:31]Read from MH i2c: E2 [08:34:31]MH_I2C_Read... [08:34:31]Read from MH i2c: E2 03 00 [08:34:31]MH_I2C_Read... [08:34:31]Read from MH i2c: E2 03 00 1E 07 00 90 00 99 [08:34:31]RAPDU: 90 00 [08:34:31]wFMCommunicate OK [08:34:31]wFMCommunicate request_size=7 [08:34:31]MH_SAM_APDU [08:34:31]CAPDU: 80 0D 02 02 02 F0 BD [08:34:31]Write to MH i2c: E2 0A 00 1F 07 80 0D 02 02 02 00 F0 BD 00 00 51 [08:34:31]Write i2c OK [08:34:31]MH_I2C_Read... [08:34:31]OFD Sender: No OFD packet to send [08:34:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:31]Read from MH i2c: E2 [08:34:31]MH_I2C_Read... [08:34:31]Read from MH i2c: E2 03 00 [08:34:31]MH_I2C_Read... [08:34:31]Read from MH i2c: E2 03 00 1F 07 00 90 00 9A [08:34:31]RAPDU: 90 00 [08:34:31]wFMCommunicate OK [08:34:31]wFMCommunicate request_size=4 [08:34:31]MH_SAM_APDU [08:34:31]CAPDU: 80 0D 03 02 [08:34:31]Write to MH i2c: E2 08 00 20 07 80 0D 03 02 00 00 00 00 A2 [08:34:31]Write i2c OK [08:34:31]MH_I2C_Read... [08:34:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:31]Read from MH i2c: E2 [08:34:31]MH_I2C_Read... [08:34:31]Read from MH i2c: E2 0B 00 [08:34:31]MH_I2C_Read... [08:34:31]Read from MH i2c: E2 0B 00 20 07 00 F5 65 BC D3 90 9E 7F 30 90 00 69 [08:34:31]RAPDU: F5 65 BC D3 90 9E 7F 30 90 00 [08:34:31]wFMCommunicate OK [08:34:31]SAM_PROTO_SignData done [08:34:31]FM_MakeSignedData done [08:34:31]CreateOFDProtocolMessage [08:34:31]wFMCommunicate request_size=4 [08:34:31]MH_SAM_APDU [08:34:31]CAPDU: 80 11 00 00 [08:34:31]Write to MH i2c: E2 08 00 21 07 80 11 00 00 00 00 00 00 A2 [08:34:31]Write i2c OK [08:34:31]MH_I2C_Read... [08:34:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:31]Read from MH i2c: E2 [08:34:31]MH_I2C_Read... [08:34:31]Read from MH i2c: E2 17 00 [08:34:31]MH_I2C_Read... [08:34:31]Read from MH i2c: E2 17 00 21 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F5 [08:34:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:34:31]wFMCommunicate OK [08:34:31]CreateOFDProtocolMessage done [08:34:31]OFDSenderStorePacket 186956 [08:34:31]StoreOFDPacket docnum=186956 [08:34: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 59 7C 04 01 BA C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 BC 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 35 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 91 00 00 00 00 07 04 06 00 30 57 05 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 98 97 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 4C DA 02 00 35 04 06 00 BC 12 43 8E F0 BD F5 65 BC D3 90 9E 7F 30 [08:34:31]CheckFolder [08:34:31]dirname=/storage/ofd_packets [08:34:31]CheckFolder done [08:34:31]ProducePacketName [08:34:31]name=ofd_packets/00186956 [08:34:31]NVStorageSaveData ofd_packets/00186956 [08:34:31]File name is /storage/ofd_packets/00186956 [08:34:31]Write 298 bytes [08:34:31]NVStorageSaveData done [08:34:31]OFDSenderStorePacket done [08:34:31]KKMCreateOFDPacket done [08:34:31]NVStorageSaveData kkm_last_timestamp [08:34:31]File name is /storage/kkm_last_timestamp [08:34:31]Write 4 bytes [08:34:31]NVStorageSaveData done [08:34:31]ExternCall_PrintAddStr [08:34:31]wPrintStart [08:34:31]Write to MH i2c: 01 00 00 22 07 29 [08:34:31]Write i2c OK [08:34:31]MH_I2C_Read... [08:34:31]Read from MH i2c: 01 [08:34:31]MH_I2C_Read... [08:34:31]Read from MH i2c: 01 07 00 [08:34:31]MH_I2C_Read... [08:34:31]Read from MH i2c: 01 07 00 22 07 00 00 00 00 00 FF 0F 3E [08:34:31]RasterBufferAndPrint [08:34:31]line Счет N : (1)412105 [08:34:31]line ИНН: 02508201610067 [08:34:31]line Контрольно-Кассовый Чек [08:34:31]line ПРОДАЖА [08:34:31]line ТРК (МРК, ГНК) : 5 [08:34:31]line Товар: 2710194210 [08:34:31]line ДТ-К-5 [08:34:31]line 48.210 * 72.60 [08:34:31]line = 3500.05 [08:34:31]line НДС 12% НСП 1% [08:34:31]line > о реализуемом товаре [08:34:31]line ОКРУГЛЕНИЕ: -0.05 [08:34:31]line ИТОГО: 3500.00 [08:34:31]line Внесено: 3500.00 [08:34:31]line СДАЧА: 0.00 [08:34:31]line НСП 1% : 30.97 [08:34:31]line НДС 12% : 371.69 [08:34:31]line Наличными: 3500.00 [08:34:31]line Безнал.: 0.00 [08:34:31]line Место: АЗС № 92 "Партнер Нефть" [08:34:31]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:34:31]line СНО: Общий режим [08:34:31]line Чек 22 19.02.2025 08:34 [08:34:31]line Смена: 647 ФФД: 1.0 [08:34:31]line ЗНМ: 0300000118 [08:34:31]line РНМ: 0000000000091857 [08:34:31]line Версия ККМ: 001 [08:34:31]line ФМ: 0000000000871826 [08:34:31]line ФД: 186956 [08:34:31]line ФПД: 206786628874429 [08:34:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T083432&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186956&fm=206786628874429&tin=02508201610067®Number=0000000000091857&sum=350000 [08:34:31]OFD Sender: Processing packet 186956 [packets to send 49, broken 48] [08:34:31]ProducePacketName [08:34:31]name=ofd_packets/00186956 [08:34:31]OFD Sender: To server: pG, [08:34:31]CommunicateWithHost lk.salyk.kg:30040 [08:34:31]ConnectInit lk.salyk.kg [08:34:31]written 0, free lines is 4095 [08:34:31]Connected sock=10 [08:34:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 59 7C 04 01 BA C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 BC 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 35 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 91 00 00 00 00 07 04 06 00 30 57 05 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 98 97 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 4C DA 02 00 35 04 06 00 BC 12 43 8E F0 BD F5 65 BC D3 90 9E 7F 30 [08:34: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 C1 EE 47 00 8C 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 4C DA 02 00 F4 03 04 00 EC 3D B5 67 B6 04 01 00 00 4F 39 F4 11 F6 48 DC 8C [08:34:32]CommunicateWithHost err = 0 [08:34:32]CheckOFDResponse [08:34:32]1017 (14) - 77093643461234 [08:34:32]1041 (16) - 0000000000871826 [08:34:32]1040 (4) - 186956 [08:34:32]1012 (4) - 19.02.2025 02:11 [08:34:32]1206 (1) - 0 [08:34:32]OFD Sender: Remove packet 186956 [08:34:32]ProducePacketName [08:34:32]name=ofd_packets/00186956 [08:34:32]NVStorageDeleteData [08:34:32]Write to MH i2c: 01 00 00 4D 07 54 [08:34:32]Write i2c OK [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: 01 [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: 01 07 00 [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: 01 07 00 4D 07 00 00 00 00 00 03 0D 6B [08:34:32]RasterBufferAndPrint [08:34:32]line [08:34:32]line [08:34:32]line [08:34:32]line [08:34:32]line [08:34:32]written 0, free lines is 3337 [08:34:32]MH_Cut [08:34:32]Write to MH i2c: D1 01 00 54 07 01 2D [08:34:32]Write i2c OK [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: D1 [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: D1 01 00 [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: D1 01 00 54 07 00 2C [08:34:32]Write to MH i2c: 01 00 00 55 07 5C [08:34:32]Write i2c OK [08:34:32]MH_I2C_Read... [08:34:32]OFD Sender: No OFD packet to send [08:34:32]*** Cut start [08:34:32]*** Partial cut [08:34:32]*** CUTSNS_PIN = 1 [08:34:32]*** CUTSNS_PIN = 0 [08:34:33]*** Brake cut motor [08:34:33]Read from MH i2c: 01 [08:34:33]MH_I2C_Read... [08:34:33]*** Stop cut motor [08:34:33]*** Cut end [08:34:33]Read from MH i2c: 01 07 00 [08:34:33]MH_I2C_Read... [08:34:33]Read from MH i2c: 01 07 00 55 07 00 00 00 00 00 FF 0F 71 [08:34:33]process_action close_receipt done [08:34:33]requested_data is exist [08:34:33]produce_requested_data [08:34:33]requested_item fm.sn is exist - process it [08:34:33]wFMCommunicate request_size=4 [08:34:33]MH_SAM_APDU [08:34:33]CAPDU: 80 11 00 00 [08:34:33]Write to MH i2c: E2 08 00 56 07 80 11 00 00 00 00 00 00 D7 [08:34:33]Write i2c OK [08:34:33]MH_I2C_Read... [08:34:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:33]Read from MH i2c: E2 [08:34:33]MH_I2C_Read... [08:34:33]Read from MH i2c: E2 17 00 [08:34:33]MH_I2C_Read... [08:34:33]Read from MH i2c: E2 17 00 56 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2A [08:34:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:34:33]wFMCommunicate OK [08:34:33]requested_item fd.num is exist - process it [08:34:33]SAM_PROTO_GetFieldsCounters [08:34:33]wFMCommunicate request_size=4 [08:34:33]MH_SAM_APDU [08:34:33]CAPDU: 80 13 00 00 [08:34:33]Write to MH i2c: E2 08 00 57 07 80 13 00 00 00 00 00 00 DA [08:34:33]Write i2c OK [08:34:33]MH_I2C_Read... [08:34:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:33]Read from MH i2c: E2 [08:34:33]MH_I2C_Read... [08:34:33]Read from MH i2c: E2 62 00 [08:34:33]MH_I2C_Read... [08:34:33]Read from MH i2c: E2 62 00 57 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 4C DA 02 00 0E 04 04 00 87 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 F3 [08:34: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 4C DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:34:33]wFMCommunicate OK [08:34:33]SAM_PROTO_GetFieldsCounters done [08:34:33]requested_item shift.num is exist - process it [08:34:33]requested_item shift.opened is exist - process it [08:34:33]req_shift_opened [08:34:33]FM_GetShiftState [08:34:33]SAM_PROTO_GetShiftState [08:34:33]wFMCommunicate request_size=4 [08:34:33]MH_SAM_APDU [08:34:33]CAPDU: 80 13 01 00 [08:34:33]Write to MH i2c: E2 08 00 58 07 80 13 01 00 00 00 00 00 DC [08:34:33]Write i2c OK [08:34:33]MH_I2C_Read... [08:34:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:33]Read from MH i2c: E2 [08:34:33]MH_I2C_Read... [08:34:33]Read from MH i2c: E2 0E 00 [08:34:33]MH_I2C_Read... [08:34:33]Read from MH i2c: E2 0E 00 58 07 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 5B [08:34:33]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:34:33]wFMCommunicate OK [08:34:33]SAM_PROTO_GetShiftState done [08:34:33]FM_GetShiftState done [08:34:33]req_shift_opened done [08:34:33]requested_item shift.open_date is exist - process it [08:34:33]req_shift_open_date [08:34:33]req_shift_open_date done [08:34:33]produce_requested_data done [08:34:33]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186956,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [08:34:33]process_action_free close_receipt [08:34:33]json_value_free [08:34:33]json_value_free done [08:34:33]process_json_proto returns [08:34:33]Send response to host [08:34:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186956,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [08:34:33]free response buf [08:34:33]execute_script done [08:34:33]execute_script returns [08:34:33]free content buf [08:34:33]Sock 7.Close socket [08:34:33]Sock 7.Thread stoped [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:41]accept exits with 9 [08:35:41]New connection [08:35:41]New thread 3067022692 created [08:35:41]Thread 3066879332 joined [08:35:41]Waiting for new connection... [08:35:41] Sock 9.Parse request [08:35:41]Sock 9.Check first char [08:35:41]Sock 9.First char is OK [08:35:41]request: POST /json_proto HTTP/1.0 [08:35:41]Method: POST [08:35:41]URL: /json_proto [08:35:41]Method is POST - this is cgi request [08:35:41]url: /json_proto [08:35:41]query_string will be loaded in cgi processing [08:35:41]execute_cgi json_proto POST (null) [08:35:41]execute_cgi path=json_proto method=POST [08:35:41]POST find Content-Length [08:35:41]Host: 172.17.46.131:8080 [08:35:41]Content-Length: 677 [08:35:41]Content-Type: application/json [08:35:41] [08:35:41]POST finish read [08:35:41]Found Content-Length = 677 [08:35:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412107", "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" ] } } [08:35:41]execute_script... [08: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)412107", "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" ] } } [08:35:41]POST & json_proto [08:35:41]process_json_proto [08:35:41]json parsed OK: [08:35:41]protocol is kg_v1.0 [08:35:41]action value=close_receipt [08:35:41]process_action close_receipt [08:35:41]cmd_close_receipt [08:35:41]MH_GetDate [08:35:41]Write to MH i2c: F0 00 00 59 07 4F [08:35:41]Write i2c OK [08:35:41]MH_I2C_Read... [08:35:41]Read from MH i2c: F0 [08:35:41]MH_I2C_Read... [08:35:41]Read from MH i2c: F0 09 00 [08:35:41]MH_I2C_Read... [08:35:41]Read from MH i2c: F0 09 00 59 07 00 DF 97 B5 67 7E 41 4F 65 5D [08:35:41]GetLastDocTimeStamp 1739954072 [08:35:41]current date 1739954143 [08:35:41]FM_GetShiftState [08:35:41]SAM_PROTO_GetShiftState [08:35:41]wFMCommunicate request_size=4 [08:35:41]MH_SAM_APDU [08:35:41]CAPDU: 80 13 01 00 [08:35:41]Write to MH i2c: E2 08 00 5A 07 80 13 01 00 00 00 00 00 DE [08:35:41]Write i2c OK [08:35:41]MH_I2C_Read... [08:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:41]Read from MH i2c: E2 [08:35:41]MH_I2C_Read... [08:35:41]Read from MH i2c: E2 0E 00 [08:35:41]MH_I2C_Read... [08:35:41]Read from MH i2c: E2 0E 00 5A 07 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 5D [08:35:41]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:35:41]wFMCommunicate OK [08:35:41]SAM_PROTO_GetShiftState done [08:35:41]FM_GetShiftState done [08:35:41]opened in 1739929631 [08:35:41]opened+sec_in_day 1740016031 [08:35:41]quantity*price = 40060 [08:35:41]sum+1 = 40062 [08:35:41]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 СНО: Общий режим Чек 23 19.02.2025 08:35 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186957 ФПД: 138642091710439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T083543&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186957&fm=138642091710439&tin=02508201610067®Number=0000000000091857&sum=40000 [08:35:42]StoreToDocumentArchive [08:35:42]shift 647 fd 186957 [08:35:42]save to /storage/0647/doc_00186957 [08:35:42]save last doc name /storage/0647/doc_00186957 to /storage/kkm_last_doc_name [08:35:42]save OK [08:35:42]Clear old archive folders... [08:35:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:35:42]tlvbuf is 005C9060 [08:35:42]SAM_PROTO_ClearQueue [08:35:42]wFMCommunicate request_size=4 [08:35:42]MH_SAM_APDU [08:35:42]CAPDU: 80 09 00 00 [08:35:42]Write to MH i2c: E2 08 00 67 07 80 09 00 00 00 00 00 00 E0 [08:35:42]Write i2c OK [08:35:42]MH_I2C_Read... [08:35:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:42]Read from MH i2c: E2 [08:35:42]MH_I2C_Read... [08:35:42]Read from MH i2c: E2 03 00 [08:35:42]MH_I2C_Read... [08:35:42]Read from MH i2c: E2 03 00 67 07 00 90 00 E2 [08:35:42]RAPDU: 90 00 [08:35:42]wFMCommunicate OK [08:35:42]SAM_PROTO_ClearQueue done [08:35:42]KKMCreateOFDPacket [08:35:42]OFDProtocolAddRootSTLVToBuf [08:35:42]FM_MakeSignedData [08:35:42]FM_MakeSignedData [08:35:42]SAM_PROTO_SignData [08:35:42]wFMCommunicate request_size=4 [08:35:42]MH_SAM_APDU [08:35:42]CAPDU: 80 0D 01 02 [08:35:42]Write to MH i2c: E2 08 00 68 07 80 0D 01 02 00 00 00 00 E8 [08:35:42]Write i2c OK [08:35:42]MH_I2C_Read... [08:35:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:42]Read from MH i2c: E2 [08:35:42]MH_I2C_Read... [08:35:42]Read from MH i2c: E2 03 00 [08:35:42]MH_I2C_Read... [08:35:42]Read from MH i2c: E2 03 00 68 07 00 90 00 E3 [08:35:42]RAPDU: 90 00 [08:35:42]wFMCommunicate OK [08:35:42]wFMCommunicate request_size=255 [08:35:42]MH_SAM_APDU [08:35: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 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 17 00 00 00 F4 03 04 00 DF 97 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 4D DA 02 00 35 04 06 00 7E [08:35:42]Write to MH i2c: E2 02 01 69 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 17 00 00 00 F4 03 04 00 DF 97 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 4D DA 02 00 35 04 06 00 7E 00 00 54 [08:35:42]Write i2c OK [08:35:42]MH_I2C_Read... [08:35:42]OFD Sender: No OFD packet to send [08:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:42]Read from MH i2c: E2 [08:35:42]MH_I2C_Read... [08:35:42]Read from MH i2c: E2 03 00 [08:35:42]MH_I2C_Read... [08:35:42]Read from MH i2c: E2 03 00 69 07 00 90 00 E4 [08:35:42]RAPDU: 90 00 [08:35:42]wFMCommunicate OK [08:35:42]wFMCommunicate request_size=10 [08:35:42]MH_SAM_APDU [08:35:42]CAPDU: 80 0D 02 02 05 18 20 A0 97 E7 [08:35:42]Write to MH i2c: E2 0D 00 6A 07 80 0D 02 02 05 00 18 20 A0 97 E7 00 00 4B [08:35:42]Write i2c OK [08:35:42]MH_I2C_Read... [08:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:42]Read from MH i2c: E2 [08:35:42]MH_I2C_Read... [08:35:42]Read from MH i2c: E2 03 00 [08:35:42]MH_I2C_Read... [08:35:42]Read from MH i2c: E2 03 00 6A 07 00 90 00 E5 [08:35:42]RAPDU: 90 00 [08:35:42]wFMCommunicate OK [08:35:42]wFMCommunicate request_size=4 [08:35:42]MH_SAM_APDU [08:35:42]CAPDU: 80 0D 03 02 [08:35:42]Write to MH i2c: E2 08 00 6B 07 80 0D 03 02 00 00 00 00 ED [08:35:42]Write i2c OK [08:35:42]MH_I2C_Read... [08:35:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:42]Read from MH i2c: E2 [08:35:42]MH_I2C_Read... [08:35:42]Read from MH i2c: E2 0B 00 [08:35:42]MH_I2C_Read... [08:35:42]Read from MH i2c: E2 0B 00 6B 07 00 2F 9D 1F 52 B9 B6 5B 46 90 00 3B [08:35:42]RAPDU: 2F 9D 1F 52 B9 B6 5B 46 90 00 [08:35:42]wFMCommunicate OK [08:35:42]SAM_PROTO_SignData done [08:35:42]FM_MakeSignedData done [08:35:42]CreateOFDProtocolMessage [08:35:42]wFMCommunicate request_size=4 [08:35:42]MH_SAM_APDU [08:35:42]CAPDU: 80 11 00 00 [08:35:42]Write to MH i2c: E2 08 00 6C 07 80 11 00 00 00 00 00 00 ED [08:35:42]Write i2c OK [08:35:42]MH_I2C_Read... [08:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:42]Read from MH i2c: E2 [08:35:42]MH_I2C_Read... [08:35:42]Read from MH i2c: E2 17 00 [08:35:42]MH_I2C_Read... [08:35:42]Read from MH i2c: E2 17 00 6C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 40 [08:35:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:35:42]wFMCommunicate OK [08:35:42]CreateOFDProtocolMessage done [08:35:42]OFDSenderStorePacket 186957 [08:35:42]StoreOFDPacket docnum=186957 [08:35: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 4E 01 07 01 94 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 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 17 00 00 00 F4 03 04 00 DF 97 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 4D DA 02 00 35 04 06 00 7E 18 20 A0 97 E7 2F 9D 1F 52 B9 B6 5B 46 [08:35:42]CheckFolder [08:35:42]dirname=/storage/ofd_packets [08:35:42]CheckFolder done [08:35:42]ProducePacketName [08:35:42]name=ofd_packets/00186957 [08:35:42]NVStorageSaveData ofd_packets/00186957 [08:35:42]File name is /storage/ofd_packets/00186957 [08:35:42]Write 301 bytes [08:35:42]NVStorageSaveData done [08:35:42]OFDSenderStorePacket done [08:35:42]KKMCreateOFDPacket done [08:35:42]NVStorageSaveData kkm_last_timestamp [08:35:42]File name is /storage/kkm_last_timestamp [08:35:42]Write 4 bytes [08:35:42]NVStorageSaveData done [08:35:42]ExternCall_PrintAddStr [08:35:42]wPrintStart [08:35:42]Write to MH i2c: 01 00 00 6D 07 74 [08:35:42]Write i2c OK [08:35:42]MH_I2C_Read... [08:35:42]Read from MH i2c: 01 [08:35:42]MH_I2C_Read... [08:35:42]Read from MH i2c: 01 07 00 [08:35:42]MH_I2C_Read... [08:35:42]Read from MH i2c: 01 07 00 6D 07 00 00 00 00 00 FF 0F 89 [08:35:42]RasterBufferAndPrint [08:35:42]line Счет N : (1)412107 [08:35:42]line ИНН: 02508201610067 [08:35:42]line Контрольно-Кассовый Чек [08:35:42]line ПРОДАЖА [08:35:42]line ТРК (МРК, ГНК) : 42 [08:35:42]line Товар: 2710124130 [08:35:42]line Аи-92-К-2 [08:35:42]line 6.240 * 64.20 [08:35:42]line = 400.61 [08:35:42]line НДС 12% НСП 1% [08:35:42]line > о реализуемом товаре [08:35:42]line ОКРУГЛЕНИЕ: -0.61 [08:35:42]line ИТОГО: 400.00 [08:35:42]line Внесено: 400.00 [08:35:42]line СДАЧА: 0.00 [08:35:42]line НСП 1% : 3.54 [08:35:42]line НДС 12% : 42.54 [08:35:42]line Наличными: 400.00 [08:35:42]line Безнал.: 0.00 [08:35:42]line Место: АЗС № 92 "Партнер Нефть" [08:35:42]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:35:42]line СНО: Общий режим [08:35:42]line Чек 23 19.02.2025 08:35 [08:35:42]line Смена: 647 ФФД: 1.0 [08:35:42]line ЗНМ: 0300000118 [08:35:42]line РНМ: 0000000000091857 [08:35:42]line Версия ККМ: 001 [08:35:42]line ФМ: 0000000000871826 [08:35:42]line ФД: 186957 [08:35:42]line ФПД: 138642091710439 [08:35:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T083543&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186957&fm=138642091710439&tin=02508201610067®Number=0000000000091857&sum=40000 [08:35:43]OFD Sender: Processing packet 186957 [packets to send 49, broken 48] [08:35:43]ProducePacketName [08:35:43]name=ofd_packets/00186957 [08:35:43]OFD Sender: To server: pG, [08:35:43]CommunicateWithHost lk.salyk.kg:30040 [08:35:43]ConnectInit lk.salyk.kg [08:35:43]written 0, free lines is 4095 [08:35:43]Connected sock=10 [08: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 0F 01 00 00 4E 01 07 01 94 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 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 17 00 00 00 F4 03 04 00 DF 97 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 4D DA 02 00 35 04 06 00 7E 18 20 A0 97 E7 2F 9D 1F 52 B9 B6 5B 46 [08: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 96 D6 47 00 19 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4D DA 02 00 F4 03 04 00 34 3E B5 67 B6 04 01 00 00 F7 0C 7B DA DA 1E 7A BD [08:35:43]CommunicateWithHost err = 0 [08:35:43]CheckOFDResponse [08:35:43]1017 (14) - 77093643461234 [08:35:43]1041 (16) - 0000000000871826 [08:35:43]1040 (4) - 186957 [08:35:43]1012 (4) - 19.02.2025 02:13 [08:35:43]1206 (1) - 0 [08:35:43]OFD Sender: Remove packet 186957 [08:35:43]ProducePacketName [08:35:43]name=ofd_packets/00186957 [08:35:43]NVStorageDeleteData [08:35:43]Write to MH i2c: 01 00 00 98 07 9F [08:35:43]Write i2c OK [08:35:43]MH_I2C_Read... [08:35:43]Read from MH i2c: 01 [08:35:43]MH_I2C_Read... [08:35:43]Read from MH i2c: 01 07 00 [08:35:43]MH_I2C_Read... [08:35:43]Read from MH i2c: 01 07 00 98 07 00 00 00 00 00 F8 0C AA [08:35:43]RasterBufferAndPrint [08:35:43]line [08:35:43]line [08:35:43]line [08:35:43]line [08:35:43]line [08:35:43]written 0, free lines is 3326 [08:35:43]MH_Cut [08:35:43]Write to MH i2c: D1 01 00 9F 07 01 78 [08:35:43]Write i2c OK [08:35:43]MH_I2C_Read... [08:35:43]Read from MH i2c: D1 [08:35:43]MH_I2C_Read... [08:35:43]Read from MH i2c: D1 01 00 [08:35:43]MH_I2C_Read... [08:35:43]Read from MH i2c: D1 01 00 9F 07 00 77 [08:35:43]Write to MH i2c: 01 00 00 A0 07 A7 [08:35:43]Write i2c OK [08:35:43]MH_I2C_Read... [08:35:44]OFD Sender: No OFD packet to send [08:35:44]*** Cut start [08:35:44]*** Partial cut [08:35:44]*** CUTSNS_PIN = 1 [08:35:44]*** CUTSNS_PIN = 0 [08:35:44]*** Brake cut motor [08:35:45]Read from MH i2c: 01 [08:35:45]MH_I2C_Read... [08:35:45]*** Stop cut motor [08:35:45]*** Cut end [08:35:45]Read from MH i2c: 01 07 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: 01 07 00 A0 07 00 00 00 00 00 FF 0F BC [08:35:45]process_action close_receipt done [08:35:45]requested_data is exist [08:35:45]produce_requested_data [08:35:45]requested_item fm.sn is exist - process it [08:35:45]wFMCommunicate request_size=4 [08:35:45]MH_SAM_APDU [08:35:45]CAPDU: 80 11 00 00 [08:35:45]Write to MH i2c: E2 08 00 A1 07 80 11 00 00 00 00 00 00 22 [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 17 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 17 00 A1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 75 [08: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 [08:35:45]wFMCommunicate OK [08:35:45]requested_item fd.num is exist - process it [08:35:45]SAM_PROTO_GetFieldsCounters [08:35:45]wFMCommunicate request_size=4 [08:35:45]MH_SAM_APDU [08:35:45]CAPDU: 80 13 00 00 [08:35:45]Write to MH i2c: E2 08 00 A2 07 80 13 00 00 00 00 00 00 25 [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 62 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 62 00 A2 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 4D DA 02 00 0E 04 04 00 87 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 42 [08: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 4D DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:35:45]wFMCommunicate OK [08:35:45]SAM_PROTO_GetFieldsCounters done [08:35:45]requested_item shift.num is exist - process it [08:35:45]requested_item shift.opened is exist - process it [08:35:45]req_shift_opened [08:35:45]FM_GetShiftState [08:35:45]SAM_PROTO_GetShiftState [08:35:45]wFMCommunicate request_size=4 [08:35:45]MH_SAM_APDU [08:35:45]CAPDU: 80 13 01 00 [08:35:45]Write to MH i2c: E2 08 00 A3 07 80 13 01 00 00 00 00 00 27 [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:45]Read from MH i2c: E2 0E 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 0E 00 A3 07 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A6 [08:35:45]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:35:45]wFMCommunicate OK [08:35:45]SAM_PROTO_GetShiftState done [08:35:45]FM_GetShiftState done [08:35:45]req_shift_opened done [08:35:45]requested_item shift.open_date is exist - process it [08:35:45]req_shift_open_date [08:35:45]req_shift_open_date done [08:35:45]produce_requested_data done [08:35:45]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186957,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [08:35:45]process_action_free close_receipt [08:35:45]json_value_free [08:35:45]json_value_free done [08:35:45]process_json_proto returns [08:35:45]Send response to host [08:35:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186957,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [08:35:45]free response buf [08:35:45]execute_script done [08:35:45]execute_script returns [08:35:45]free content buf [08:35:45]Sock 9.Close socket [08:35:45]Sock 9.Thread stoped [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:15]accept exits with 7 [08:36:15]New connection [08:36:15]New thread 3066879332 created [08:36:15]Thread 3067022692 joined [08:36:15]Waiting for new connection... [08:36:15] Sock 7.Parse request [08:36:15]Sock 7.Check first char [08:36:15]Sock 7.First char is OK [08:36:15]request: POST /json_proto HTTP/1.0 [08:36:15]Method: POST [08:36:15]URL: /json_proto [08:36:15]Method is POST - this is cgi request [08:36:15]url: /json_proto [08:36:15]query_string will be loaded in cgi processing [08:36:15]execute_cgi json_proto POST (null) [08:36:15]execute_cgi path=json_proto method=POST [08:36:15]POST find Content-Length [08:36:15]Host: 172.17.46.131:8080 [08:36:15]Content-Length: 678 [08:36:15]Content-Type: application/json [08:36:15] [08:36:15]POST finish read [08:36:15]Found Content-Length = 678 [08:36:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412108", "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" ] } } [08:36:15]execute_script... [08:36: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)412108", "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" ] } } [08:36:15]POST & json_proto [08:36:15]process_json_proto [08:36:15]json parsed OK: [08:36:15]protocol is kg_v1.0 [08:36:15]action value=close_receipt [08:36:15]process_action close_receipt [08:36:15]cmd_close_receipt [08:36:15]MH_GetDate [08:36:15]Write to MH i2c: F0 00 00 A4 07 9A [08:36:15]Write i2c OK [08:36:15]MH_I2C_Read... [08:36:15]Read from MH i2c: F0 [08:36:15]MH_I2C_Read... [08:36:15]Read from MH i2c: F0 09 00 [08:36:15]MH_I2C_Read... [08:36:15]Read from MH i2c: F0 09 00 A4 07 00 01 98 B5 67 7E 41 4F 65 CB [08:36:15]GetLastDocTimeStamp 1739954143 [08:36:15]current date 1739954177 [08:36:15]FM_GetShiftState [08:36:15]SAM_PROTO_GetShiftState [08:36:15]wFMCommunicate request_size=4 [08:36:15]MH_SAM_APDU [08:36:15]CAPDU: 80 13 01 00 [08:36:15]Write to MH i2c: E2 08 00 A5 07 80 13 01 00 00 00 00 00 29 [08:36:15]Write i2c OK [08:36:15]MH_I2C_Read... [08:36:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:15]Read from MH i2c: E2 [08:36:15]MH_I2C_Read... [08:36:15]Read from MH i2c: E2 0E 00 [08:36:15]MH_I2C_Read... [08:36:15]Read from MH i2c: E2 0E 00 A5 07 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A8 [08:36:15]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:36:15]wFMCommunicate OK [08:36:15]SAM_PROTO_GetShiftState done [08:36:15]FM_GetShiftState done [08:36:15]opened in 1739929631 [08:36:15]opened+sec_in_day 1740016031 [08:36:15]quantity*price = 100042 [08:36:15]sum+1 = 100044 [08:36: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 СНО: Общий режим Чек 24 19.02.2025 08:36 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186958 ФПД: 60984060626504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T083617&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186958&fm=60984060626504&tin=02508201610067®Number=0000000000091857&sum=100000 [08:36:16]StoreToDocumentArchive [08:36:16]shift 647 fd 186958 [08:36:16]save to /storage/0647/doc_00186958 [08:36:16]save last doc name /storage/0647/doc_00186958 to /storage/kkm_last_doc_name [08:36:16]save OK [08:36:16]Clear old archive folders... [08:36:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:36:16]tlvbuf is 005CA720 [08:36:16]SAM_PROTO_ClearQueue [08:36:16]wFMCommunicate request_size=4 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 09 00 00 [08:36:16]Write to MH i2c: E2 08 00 B2 07 80 09 00 00 00 00 00 00 2B [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 B2 07 00 90 00 2D [08:36:16]RAPDU: 90 00 [08:36:16]wFMCommunicate OK [08:36:16]SAM_PROTO_ClearQueue done [08:36:16]KKMCreateOFDPacket [08:36:16]OFDProtocolAddRootSTLVToBuf [08:36:16]FM_MakeSignedData [08:36:16]FM_MakeSignedData [08:36:16]SAM_PROTO_SignData [08:36:16]wFMCommunicate request_size=4 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 0D 01 02 [08:36:16]Write to MH i2c: E2 08 00 B3 07 80 0D 01 02 00 00 00 00 33 [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 B3 07 00 90 00 2E [08:36:16]RAPDU: 90 00 [08:36:16]wFMCommunicate OK [08:36:16]wFMCommunicate request_size=255 [08:36:16]MH_SAM_APDU [08:36: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 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 18 00 00 00 F4 03 04 00 01 98 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 4E DA 02 00 35 04 06 00 37 76 F5 45 [08:36:16]Write to MH i2c: E2 02 01 B4 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 18 00 00 00 F4 03 04 00 01 98 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 4E DA 02 00 35 04 06 00 37 76 F5 45 00 00 3E [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 B4 07 00 90 00 2F [08:36:16]RAPDU: 90 00 [08:36:16]wFMCommunicate OK [08:36:16]wFMCommunicate request_size=7 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 0D 02 02 02 46 48 [08:36:16]Write to MH i2c: E2 0A 00 B5 07 80 0D 02 02 02 00 46 48 00 00 C8 [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 03 00 B5 07 00 90 00 30 [08:36:16]RAPDU: 90 00 [08:36:16]wFMCommunicate OK [08:36:16]wFMCommunicate request_size=4 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 0D 03 02 [08:36:16]Write to MH i2c: E2 08 00 B6 07 80 0D 03 02 00 00 00 00 38 [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 0B 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 0B 00 B6 07 00 5D 16 B9 66 3A C9 7C AD 90 00 F7 [08:36:16]RAPDU: 5D 16 B9 66 3A C9 7C AD 90 00 [08:36:16]wFMCommunicate OK [08:36:16]SAM_PROTO_SignData done [08:36:16]FM_MakeSignedData done [08:36:16]CreateOFDProtocolMessage [08:36:16]wFMCommunicate request_size=4 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 11 00 00 [08:36:16]Write to MH i2c: E2 08 00 B7 07 80 11 00 00 00 00 00 00 38 [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 17 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 17 00 B7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8B [08: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 [08:36:16]wFMCommunicate OK [08:36:16]CreateOFDProtocolMessage done [08:36:16]OFDSenderStorePacket 186958 [08:36:16]StoreOFDPacket docnum=186958 [08: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 0C 01 00 00 05 2A 04 01 D8 C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 18 00 00 00 F4 03 04 00 01 98 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 4E DA 02 00 35 04 06 00 37 76 F5 45 46 48 5D 16 B9 66 3A C9 7C AD [08:36:16]CheckFolder [08:36:16]dirname=/storage/ofd_packets [08:36:16]CheckFolder done [08:36:16]ProducePacketName [08:36:16]name=ofd_packets/00186958 [08:36:16]NVStorageSaveData ofd_packets/00186958 [08:36:16]File name is /storage/ofd_packets/00186958 [08:36:16]Write 298 bytes [08:36:16]NVStorageSaveData done [08:36:16]OFDSenderStorePacket done [08:36:16]KKMCreateOFDPacket done [08:36:16]NVStorageSaveData kkm_last_timestamp [08:36:16]File name is /storage/kkm_last_timestamp [08:36:16]Write 4 bytes [08:36:16]NVStorageSaveData done [08:36:16]ExternCall_PrintAddStr [08:36:16]wPrintStart [08:36:16]Write to MH i2c: 01 00 00 B8 07 BF [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: 01 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: 01 07 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: 01 07 00 B8 07 00 00 00 00 00 FF 0F D4 [08:36:16]RasterBufferAndPrint [08:36:16]line Счет N : (1)412108 [08:36:16]line ИНН: 02508201610067 [08:36:16]line Контрольно-Кассовый Чек [08:36:16]line ПРОДАЖА [08:36:16]line ТРК (МРК, ГНК) : 6 [08:36:16]line Товар: 2710194210 [08:36:16]line ДТ-К-5 [08:36:16]line 13.780 * 72.60 [08:36:16]line = 1000.43 [08:36:16]line НДС 12% НСП 1% [08:36:16]line > о реализуемом товаре [08:36:16]line ОКРУГЛЕНИЕ: -0.43 [08:36:16]line ИТОГО: 1000.00 [08:36:16]line Внесено: 1000.00 [08:36:16]line СДАЧА: 0.00 [08:36:16]line НСП 1% : 8.85 [08:36:16]line НДС 12% : 106.24 [08:36:16]line Наличными: 1000.00 [08:36:16]line Безнал.: 0.00 [08:36:16]line Место: АЗС № 92 "Партнер Нефть" [08:36:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:36:16]line СНО: Общий режим [08:36:16]line Чек 24 19.02.2025 08:36 [08:36:16]line Смена: 647 ФФД: 1.0 [08:36:16]line ЗНМ: 0300000118 [08:36:16]line РНМ: 0000000000091857 [08:36:16]line Версия ККМ: 001 [08:36:16]line ФМ: 0000000000871826 [08:36:16]line ФД: 186958 [08:36:16]line ФПД: 60984060626504 [08:36:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T083617&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186958&fm=60984060626504&tin=02508201610067®Number=0000000000091857&sum=100000 [08:36:17]OFD Sender: Processing packet 186958 [packets to send 49, broken 48] [08:36:17]ProducePacketName [08:36:17]name=ofd_packets/00186958 [08:36:17]OFD Sender: To server: pG, [08:36:17]CommunicateWithHost lk.salyk.kg:30040 [08:36:17]ConnectInit lk.salyk.kg [08:36:17]written 0, free lines is 4095 [08:36:17]Connected sock=10 [08:36: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 05 2A 04 01 D8 C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 18 00 00 00 F4 03 04 00 01 98 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 4E DA 02 00 35 04 06 00 37 76 F5 45 46 48 5D 16 B9 66 3A C9 7C AD [08:36: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 F1 1D 47 00 9F 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 4E DA 02 00 F4 03 04 00 56 3E B5 67 B6 04 01 00 00 40 90 E4 0E DE 32 FE 6D [08:36:17]CommunicateWithHost err = 0 [08:36:17]CheckOFDResponse [08:36:17]1017 (14) - 77093643461234 [08:36:17]1041 (16) - 0000000000871826 [08:36:17]1040 (4) - 186958 [08:36:17]1012 (4) - 19.02.2025 02:13 [08:36:17]1206 (1) - 0 [08:36:17]OFD Sender: Remove packet 186958 [08:36:17]ProducePacketName [08:36:17]name=ofd_packets/00186958 [08:36:17]NVStorageDeleteData [08:36:17]Write to MH i2c: 01 00 00 E3 07 EA [08:36:17]Write i2c OK [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: 01 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: 01 07 00 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: 01 07 00 E3 07 00 00 00 00 00 01 0D FF [08:36:17]RasterBufferAndPrint [08:36:17]line [08:36:17]line [08:36:17]line [08:36:17]line [08:36:17]line [08:36:17]written 0, free lines is 3335 [08:36:17]MH_Cut [08:36:17]Write to MH i2c: D1 01 00 EA 07 01 C3 [08:36:17]Write i2c OK [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: D1 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: D1 01 00 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: D1 01 00 EA 07 00 C2 [08:36:17]Write to MH i2c: 01 00 00 EB 07 F2 [08:36:17]Write i2c OK [08:36:17]MH_I2C_Read... [08:36:18]OFD Sender: No OFD packet to send [08:36:18]*** Cut start [08:36:18]*** Partial cut [08:36:18]*** CUTSNS_PIN = 1 [08:36:18]*** CUTSNS_PIN = 0 [08:36:18]*** Brake cut motor [08:36:19]Read from MH i2c: 01 [08:36:19]MH_I2C_Read... [08:36:19]*** Stop cut motor [08:36:19]*** Cut end [08:36:19]Read from MH i2c: 01 07 00 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: 01 07 00 EB 07 00 00 00 00 00 FF 0F 07 [08:36:19]process_action close_receipt done [08:36:19]requested_data is exist [08:36:19]produce_requested_data [08:36:19]requested_item fm.sn is exist - process it [08:36:19]wFMCommunicate request_size=4 [08:36:19]MH_SAM_APDU [08:36:19]CAPDU: 80 11 00 00 [08:36:19]Write to MH i2c: E2 08 00 EC 07 80 11 00 00 00 00 00 00 6D [08:36:19]Write i2c OK [08:36:19]MH_I2C_Read... [08:36:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:19]Read from MH i2c: E2 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: E2 17 00 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: E2 17 00 EC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C0 [08:36:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:36:19]wFMCommunicate OK [08:36:19]requested_item fd.num is exist - process it [08:36:19]SAM_PROTO_GetFieldsCounters [08:36:19]wFMCommunicate request_size=4 [08:36:19]MH_SAM_APDU [08:36:19]CAPDU: 80 13 00 00 [08:36:19]Write to MH i2c: E2 08 00 ED 07 80 13 00 00 00 00 00 00 70 [08:36:19]Write i2c OK [08:36:19]MH_I2C_Read... [08:36:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:19]Read from MH i2c: E2 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: E2 62 00 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: E2 62 00 ED 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 4E DA 02 00 0E 04 04 00 87 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 91 [08:36: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 4E DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:36:19]wFMCommunicate OK [08:36:19]SAM_PROTO_GetFieldsCounters done [08:36:19]requested_item shift.num is exist - process it [08:36:19]requested_item shift.opened is exist - process it [08:36:19]req_shift_opened [08:36:19]FM_GetShiftState [08:36:19]SAM_PROTO_GetShiftState [08:36:19]wFMCommunicate request_size=4 [08:36:19]MH_SAM_APDU [08:36:19]CAPDU: 80 13 01 00 [08:36:19]Write to MH i2c: E2 08 00 EE 07 80 13 01 00 00 00 00 00 72 [08:36:19]Write i2c OK [08:36:19]MH_I2C_Read... [08:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:19]Read from MH i2c: E2 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: E2 0E 00 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: E2 0E 00 EE 07 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F1 [08:36:19]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:36:19]wFMCommunicate OK [08:36:19]SAM_PROTO_GetShiftState done [08:36:19]FM_GetShiftState done [08:36:19]req_shift_opened done [08:36:19]requested_item shift.open_date is exist - process it [08:36:19]req_shift_open_date [08:36:19]req_shift_open_date done [08:36:19]produce_requested_data done [08:36:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186958,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [08:36:19]process_action_free close_receipt [08:36:19]json_value_free [08:36:19]json_value_free done [08:36:19]process_json_proto returns [08:36:19]Send response to host [08:36:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186958,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [08:36:19]free response buf [08:36:19]execute_script done [08:36:19]execute_script returns [08:36:19]free content buf [08:36:19]Sock 7.Close socket [08:36:19]Sock 7.Thread stoped [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:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:40]accept exits with 9 [08:37:40]New connection [08:37:40]New thread 3067022692 created [08:37:40]Thread 3066879332 joined [08:37:40]Waiting for new connection... [08:37:40] Sock 9.Parse request [08:37:40]Sock 9.Check first char [08:37:40]Sock 9.First char is OK [08:37:40]request: POST /json_proto HTTP/1.0 [08:37:40]Method: POST [08:37:40]URL: /json_proto [08:37:40]Method is POST - this is cgi request [08:37:40]url: /json_proto [08:37:40]query_string will be loaded in cgi processing [08:37:40]execute_cgi json_proto POST (null) [08:37:40]execute_cgi path=json_proto method=POST [08:37:40]POST find Content-Length [08:37:40]Host: 172.17.46.131:8080 [08:37:40]Content-Length: 682 [08:37:40]Content-Type: application/json [08:37:40] [08:37:40]POST finish read [08:37:40]Found Content-Length = 682 [08:37:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412110", "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" ] } } [08:37:40]execute_script... [08:37:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412110", "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" ] } } [08:37:40]POST & json_proto [08:37:40]process_json_proto [08:37:40]json parsed OK: [08:37:40]protocol is kg_v1.0 [08:37:40]action value=close_receipt [08:37:40]process_action close_receipt [08:37:40]cmd_close_receipt [08:37:40]MH_GetDate [08:37:40]Write to MH i2c: F0 00 00 EF 07 E5 [08:37:40]Write i2c OK [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: F0 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: F0 09 00 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: F0 09 00 EF 07 00 57 98 B5 67 7E 41 4F 65 6C [08:37:40]GetLastDocTimeStamp 1739954177 [08:37:40]current date 1739954263 [08:37:40]FM_GetShiftState [08:37:40]SAM_PROTO_GetShiftState [08:37:40]wFMCommunicate request_size=4 [08:37:40]MH_SAM_APDU [08:37:40]CAPDU: 80 13 01 00 [08:37:40]Write to MH i2c: E2 08 00 F0 07 80 13 01 00 00 00 00 00 74 [08:37:40]Write i2c OK [08:37:40]MH_I2C_Read... [08:37:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:40]Read from MH i2c: E2 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 0E 00 [08:37:40]MH_I2C_Read... [08:37:40]Read from MH i2c: E2 0E 00 F0 07 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F3 [08:37:40]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:37:40]wFMCommunicate OK [08:37:40]SAM_PROTO_GetShiftState done [08:37:40]FM_GetShiftState done [08:37:40]opened in 1739929631 [08:37:40]opened+sec_in_day 1740016031 [08:37:40]quantity*price = 100012 [08:37:40]sum+1 = 100014 [08:37:40]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 СНО: Общий режим Чек 25 19.02.2025 08:37 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186959 ФПД: 130104097039632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T083743&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186959&fm=130104097039632&tin=02508201610067®Number=0000000000091857&sum=100000 [08:37:41]StoreToDocumentArchive [08:37:41]shift 647 fd 186959 [08:37:41]save to /storage/0647/doc_00186959 [08:37:41]save last doc name /storage/0647/doc_00186959 to /storage/kkm_last_doc_name [08:37:41]save OK [08:37:41]Clear old archive folders... [08:37:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:37:41]tlvbuf is 005966B0 [08:37:41]SAM_PROTO_ClearQueue [08:37:41]wFMCommunicate request_size=4 [08:37:41]MH_SAM_APDU [08:37:41]CAPDU: 80 09 00 00 [08:37:41]Write to MH i2c: E2 08 00 FD 07 80 09 00 00 00 00 00 00 76 [08:37:41]Write i2c OK [08:37:41]MH_I2C_Read... [08:37:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:41]Read from MH i2c: E2 [08:37:41]MH_I2C_Read... [08:37:41]Read from MH i2c: E2 03 00 [08:37:41]MH_I2C_Read... [08:37:41]Read from MH i2c: E2 03 00 FD 07 00 90 00 78 [08:37:41]RAPDU: 90 00 [08:37:41]wFMCommunicate OK [08:37:41]SAM_PROTO_ClearQueue done [08:37:41]KKMCreateOFDPacket [08:37:41]OFDProtocolAddRootSTLVToBuf [08:37:41]FM_MakeSignedData [08:37:41]FM_MakeSignedData [08:37:41]SAM_PROTO_SignData [08:37:41]wFMCommunicate request_size=4 [08:37:41]MH_SAM_APDU [08:37:41]CAPDU: 80 0D 01 02 [08:37:41]Write to MH i2c: E2 08 00 FE 07 80 0D 01 02 00 00 00 00 7E [08:37:41]Write i2c OK [08:37:41]MH_I2C_Read... [08:37:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:41]Read from MH i2c: E2 [08:37:41]MH_I2C_Read... [08:37:41]Read from MH i2c: E2 03 00 [08:37:41]MH_I2C_Read... [08:37:41]Read from MH i2c: E2 03 00 FE 07 00 90 00 79 [08:37:41]RAPDU: 90 00 [08:37:41]wFMCommunicate OK [08:37:41]wFMCommunicate request_size=255 [08:37:41]MH_SAM_APDU [08:37:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 19 00 00 00 F4 03 04 00 57 98 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 4F DA 02 00 35 04 06 00 76 [08:37:41]Write to MH i2c: E2 02 01 FF 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 19 00 00 00 F4 03 04 00 57 98 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 4F DA 02 00 35 04 06 00 76 00 00 3D [08:37:41]Write i2c OK [08:37:41]MH_I2C_Read... [08:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:42]Read from MH i2c: E2 [08:37:42]MH_I2C_Read... [08:37:42]Read from MH i2c: E2 03 00 [08:37:42]MH_I2C_Read... [08:37:42]Read from MH i2c: E2 03 00 FF 07 00 90 00 7A [08:37:42]RAPDU: 90 00 [08:37:42]wFMCommunicate OK [08:37:42]wFMCommunicate request_size=10 [08:37:42]MH_SAM_APDU [08:37:42]CAPDU: 80 0D 02 02 05 54 38 7C E5 10 [08:37:42]Write to MH i2c: E2 0D 00 00 08 80 0D 02 02 05 00 54 38 7C E5 10 00 00 89 [08:37:42]Write i2c OK [08:37:42]MH_I2C_Read... [08:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:42]Read from MH i2c: E2 [08:37:42]MH_I2C_Read... [08:37:42]Read from MH i2c: E2 03 00 [08:37:42]MH_I2C_Read... [08:37:42]Read from MH i2c: E2 03 00 00 08 00 90 00 7C [08:37:42]RAPDU: 90 00 [08:37:42]wFMCommunicate OK [08:37:42]wFMCommunicate request_size=4 [08:37:42]MH_SAM_APDU [08:37:42]CAPDU: 80 0D 03 02 [08:37:42]Write to MH i2c: E2 08 00 01 08 80 0D 03 02 00 00 00 00 84 [08:37:42]Write i2c OK [08:37:42]MH_I2C_Read... [08:37:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:42]Read from MH i2c: E2 [08:37:42]MH_I2C_Read... [08:37:42]Read from MH i2c: E2 0B 00 [08:37:42]MH_I2C_Read... [08:37:42]Read from MH i2c: E2 0B 00 01 08 00 01 7B 59 FB DE F4 FF D7 90 00 FD [08:37:42]RAPDU: 01 7B 59 FB DE F4 FF D7 90 00 [08:37:42]wFMCommunicate OK [08:37:42]SAM_PROTO_SignData done [08:37:42]FM_MakeSignedData done [08:37:42]CreateOFDProtocolMessage [08:37:42]wFMCommunicate request_size=4 [08:37:42]MH_SAM_APDU [08:37:42]CAPDU: 80 11 00 00 [08:37:42]Write to MH i2c: E2 08 00 02 08 80 11 00 00 00 00 00 00 84 [08:37:42]Write i2c OK [08:37:42]MH_I2C_Read... [08:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:42]Read from MH i2c: E2 [08:37:42]MH_I2C_Read... [08:37:42]Read from MH i2c: E2 17 00 [08:37:42]MH_I2C_Read... [08:37:42]Read from MH i2c: E2 17 00 02 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D7 [08:37:42]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:42]wFMCommunicate OK [08:37:42]CreateOFDProtocolMessage done [08:37:42]OFDSenderStorePacket 186959 [08:37:42]StoreOFDPacket docnum=186959 [08:37: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 14 45 07 01 BC 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 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 19 00 00 00 F4 03 04 00 57 98 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 4F DA 02 00 35 04 06 00 76 54 38 7C E5 10 01 7B 59 FB DE F4 FF D7 [08:37:42]CheckFolder [08:37:42]dirname=/storage/ofd_packets [08:37:42]CheckFolder done [08:37:42]ProducePacketName [08:37:42]name=ofd_packets/00186959 [08:37:42]NVStorageSaveData ofd_packets/00186959 [08:37:42]File name is /storage/ofd_packets/00186959 [08:37:42]Write 301 bytes [08:37:42]NVStorageSaveData done [08:37:42]OFDSenderStorePacket done [08:37:42]KKMCreateOFDPacket done [08:37:42]NVStorageSaveData kkm_last_timestamp [08:37:42]File name is /storage/kkm_last_timestamp [08:37:42]Write 4 bytes [08:37:42]NVStorageSaveData done [08:37:42]OFD Sender: Processing packet 186959 [packets to send 49, broken 48] [08:37:42]ProducePacketName [08:37:42]name=ofd_packets/00186959 [08:37:42]OFD Sender: To server: pG, [08:37:42]CommunicateWithHost lk.salyk.kg:30040 [08:37:42]ConnectInit lk.salyk.kg [08:37:42]ExternCall_PrintAddStr [08:37:42]wPrintStart [08:37:42]Write to MH i2c: 01 00 00 03 08 0B [08:37:42]Write i2c OK [08:37:42]MH_I2C_Read... [08:37:42]Read from MH i2c: 01 [08:37:42]MH_I2C_Read... [08:37:42]Read from MH i2c: 01 07 00 [08:37:42]MH_I2C_Read... [08:37:42]Read from MH i2c: 01 07 00 03 08 00 00 00 00 00 FF 0F 20 [08:37:42]RasterBufferAndPrint [08:37:42]line Счет N : (1)412110 [08:37:42]line ИНН: 02508201610067 [08:37:42]line Контрольно-Кассовый Чек [08:37:42]line ПРОДАЖА [08:37:42]line ТРК (МРК, ГНК) : 13 [08:37:42]line Товар: 2710124500 [08:37:42]line Аи-95-К-5 [08:37:42]line 13.910 * 71.90 [08:37:42]line = 1000.13 [08:37:42]line НДС 12% НСП 1% [08:37:42]line > о реализуемом товаре [08:37:42]line ОКРУГЛЕНИЕ: -0.13 [08:37:42]line ИТОГО: 1000.00 [08:37:42]line Внесено: 1000.00 [08:37:42]line СДАЧА: 0.00 [08:37:42]line НСП 1% : 8.85 [08:37:42]line НДС 12% : 106.21 [08:37:42]line Наличными: 1000.00 [08:37:42]line Безнал.: 0.00 [08:37:42]line Место: АЗС № 92 "Партнер Нефть" [08:37:42]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:37:42]line СНО: Общий режим [08:37:42]line Чек 25 19.02.2025 08:37 [08:37:42]line Смена: 647 ФФД: 1.0 [08:37:42]line ЗНМ: 0300000118 [08:37:42]line РНМ: 0000000000091857 [08:37:42]line Версия ККМ: 001 [08:37:42]line ФМ: 0000000000871826 [08:37:42]line ФД: 186959 [08:37:42]line ФПД: 130104097039632 [08:37:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T083743&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186959&fm=130104097039632&tin=02508201610067®Number=0000000000091857&sum=100000 [08:37:42]Connected sock=11 [08:37:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 14 45 07 01 BC 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 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 19 00 00 00 F4 03 04 00 57 98 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 4F DA 02 00 35 04 06 00 76 54 38 7C E5 10 01 7B 59 FB DE F4 FF D7 [08:37:42]written 0, free lines is 4095 [08:37: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 63 D5 47 00 24 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 4F DA 02 00 F4 03 04 00 AB 3E B5 67 B6 04 01 00 00 93 56 67 25 B3 3D A7 19 [08:37:42]CommunicateWithHost err = 0 [08:37:42]CheckOFDResponse [08:37:42]1017 (14) - 77093643461234 [08:37:42]1041 (16) - 0000000000871826 [08:37:42]1040 (4) - 186959 [08:37:42]1012 (4) - 19.02.2025 02:15 [08:37:42]1206 (1) - 0 [08:37:42]OFD Sender: Remove packet 186959 [08:37:42]ProducePacketName [08:37:42]name=ofd_packets/00186959 [08:37:42]NVStorageDeleteData [08:37:43]Write to MH i2c: 01 00 00 2E 08 36 [08:37:43]Write i2c OK [08:37:43]MH_I2C_Read... [08:37:43]Read from MH i2c: 01 [08:37:43]MH_I2C_Read... [08:37:43]Read from MH i2c: 01 07 00 [08:37:43]MH_I2C_Read... [08:37:43]Read from MH i2c: 01 07 00 2E 08 00 00 00 00 00 F4 0C 3D [08:37:43]RasterBufferAndPrint [08:37:43]line [08:37:43]line [08:37:43]line [08:37:43]line [08:37:43]line [08:37:43]written 0, free lines is 3322 [08:37:43]MH_Cut [08:37:43]Write to MH i2c: D1 01 00 35 08 01 0F [08:37:43]Write i2c OK [08:37:43]MH_I2C_Read... [08:37:43]Read from MH i2c: D1 [08:37:43]MH_I2C_Read... [08:37:43]Read from MH i2c: D1 01 00 [08:37:43]MH_I2C_Read... [08:37:43]Read from MH i2c: D1 01 00 35 08 00 0E [08:37:43]Write to MH i2c: 01 00 00 36 08 3E [08:37:43]Write i2c OK [08:37:43]MH_I2C_Read... [08:37:43]OFD Sender: No OFD packet to send [08:37:43]*** Cut start [08:37:43]*** Partial cut [08:37:43]*** CUTSNS_PIN = 1 [08:37:43]*** CUTSNS_PIN = 0 [08:37:44]*** Brake cut motor [08:37:44]Read from MH i2c: 01 [08:37:44]MH_I2C_Read... [08:37:44]*** Stop cut motor [08:37:44]*** Cut end [08:37:44]Read from MH i2c: 01 07 00 [08:37:44]MH_I2C_Read... [08:37:44]Read from MH i2c: 01 07 00 36 08 00 00 00 00 00 FF 0F 53 [08:37:44]process_action close_receipt done [08:37:44]requested_data is exist [08:37:44]produce_requested_data [08:37:44]requested_item fm.sn is exist - process it [08:37:44]wFMCommunicate request_size=4 [08:37:44]MH_SAM_APDU [08:37:44]CAPDU: 80 11 00 00 [08:37:44]Write to MH i2c: E2 08 00 37 08 80 11 00 00 00 00 00 00 B9 [08:37:44]Write i2c OK [08:37:44]MH_I2C_Read... [08:37:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:44]Read from MH i2c: E2 [08:37:44]MH_I2C_Read... [08:37:44]Read from MH i2c: E2 17 00 [08:37:44]MH_I2C_Read... [08:37:44]Read from MH i2c: E2 17 00 37 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0C [08:37:44]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:44]wFMCommunicate OK [08:37:44]requested_item fd.num is exist - process it [08:37:44]SAM_PROTO_GetFieldsCounters [08:37:44]wFMCommunicate request_size=4 [08:37:44]MH_SAM_APDU [08:37:44]CAPDU: 80 13 00 00 [08:37:44]Write to MH i2c: E2 08 00 38 08 80 13 00 00 00 00 00 00 BC [08:37:44]Write i2c OK [08:37:44]MH_I2C_Read... [08:37:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:44]Read from MH i2c: E2 [08:37:44]MH_I2C_Read... [08:37:44]Read from MH i2c: E2 62 00 [08:37:44]MH_I2C_Read... [08:37:44]Read from MH i2c: E2 62 00 38 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 4F DA 02 00 0E 04 04 00 87 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 E1 [08:37:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:37:44]wFMCommunicate OK [08:37:44]SAM_PROTO_GetFieldsCounters done [08:37:44]requested_item shift.num is exist - process it [08:37:44]requested_item shift.opened is exist - process it [08:37:44]req_shift_opened [08:37:44]FM_GetShiftState [08:37:44]SAM_PROTO_GetShiftState [08:37:44]wFMCommunicate request_size=4 [08:37:44]MH_SAM_APDU [08:37:44]CAPDU: 80 13 01 00 [08:37:44]Write to MH i2c: E2 08 00 39 08 80 13 01 00 00 00 00 00 BE [08:37:44]Write i2c OK [08:37:44]MH_I2C_Read... [08:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:44]Read from MH i2c: E2 [08:37:44]MH_I2C_Read... [08:37:44]Read from MH i2c: E2 0E 00 [08:37:44]MH_I2C_Read... [08:37:44]Read from MH i2c: E2 0E 00 39 08 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 3D [08:37:44]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:37:44]wFMCommunicate OK [08:37:44]SAM_PROTO_GetShiftState done [08:37:44]FM_GetShiftState done [08:37:44]req_shift_opened done [08:37:44]requested_item shift.open_date is exist - process it [08:37:44]req_shift_open_date [08:37:44]req_shift_open_date done [08:37:44]produce_requested_data done [08:37:44]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186959,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [08:37:44]process_action_free close_receipt [08:37:44]json_value_free [08:37:44]json_value_free done [08:37:44]process_json_proto returns [08:37:44]Send response to host [08:37:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186959,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [08:37:44]free response buf [08:37:44]execute_script done [08:37:44]execute_script returns [08:37:44]free content buf [08:37:44]Sock 9.Close socket [08:37:44]Sock 9.Thread stoped [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:03]OFD Sender: No OFD packet to send [08:40:08]OFD Sender: No OFD packet to send [08:40:09]accept exits with 7 [08:40:09]New connection [08:40:09]New thread 3066879332 created [08:40:09]Thread 3067022692 joined [08:40:09]Waiting for new connection... [08:40:09] Sock 7.Parse request [08:40:09]Sock 7.Check first char [08:40:09]Sock 7.First char is OK [08:40:09]request: POST /json_proto HTTP/1.0 [08:40:09]Method: POST [08:40:09]URL: /json_proto [08:40:09]Method is POST - this is cgi request [08:40:09]url: /json_proto [08:40:09]query_string will be loaded in cgi processing [08:40:09]execute_cgi json_proto POST (null) [08:40:09]execute_cgi path=json_proto method=POST [08:40:09]POST find Content-Length [08:40:09]Host: 172.17.46.131:8080 [08:40:09]Content-Length: 673 [08:40:09]Content-Type: application/json [08:40:09] [08:40:09]POST finish read [08:40:09]Found Content-Length = 673 [08:40:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412111", "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" : 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" ] } } [08:40:09]execute_script... [08:40: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)412111", "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" : 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" ] } } [08:40:09]POST & json_proto [08:40:09]process_json_proto [08:40:09]json parsed OK: [08:40:09]protocol is kg_v1.0 [08:40:09]action value=close_receipt [08:40:09]process_action close_receipt [08:40:09]cmd_close_receipt [08:40:09]MH_GetDate [08:40:09]Write to MH i2c: F0 00 00 3A 08 31 [08:40:09]Write i2c OK [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: F0 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: F0 09 00 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: F0 09 00 3A 08 00 EC 98 B5 67 7E 41 4F 65 4D [08:40:09]GetLastDocTimeStamp 1739954263 [08:40:09]current date 1739954412 [08:40:09]FM_GetShiftState [08:40:09]SAM_PROTO_GetShiftState [08:40:09]wFMCommunicate request_size=4 [08:40:09]MH_SAM_APDU [08:40:09]CAPDU: 80 13 01 00 [08:40:09]Write to MH i2c: E2 08 00 3B 08 80 13 01 00 00 00 00 00 C0 [08:40:09]Write i2c OK [08:40:09]MH_I2C_Read... [08:40:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:09]Read from MH i2c: E2 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: E2 0E 00 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: E2 0E 00 3B 08 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 3F [08:40:09]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:40:09]wFMCommunicate OK [08:40:09]SAM_PROTO_GetShiftState done [08:40:09]FM_GetShiftState done [08:40:09]opened in 1739929631 [08:40:09]opened+sec_in_day 1740016031 [08:40:09]quantity*price = 60040 [08:40:09]sum+1 = 60041 [08:40:09]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 СНО: Общий режим Чек 26 19.02.2025 08:40 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186960 ФПД: 10188768967149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T084012&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186960&fm=10188768967149&tin=02508201610067®Number=0000000000091857&sum=60000 [08:40:10]StoreToDocumentArchive [08:40:10]shift 647 fd 186960 [08:40:10]save to /storage/0647/doc_00186960 [08:40:10]save last doc name /storage/0647/doc_00186960 to /storage/kkm_last_doc_name [08:40:10]save OK [08:40:10]Clear old archive folders... [08:40:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:40:10]tlvbuf is 005CF7C0 [08:40:10]SAM_PROTO_ClearQueue [08:40:10]wFMCommunicate request_size=4 [08:40:10]MH_SAM_APDU [08:40:10]CAPDU: 80 09 00 00 [08:40:10]Write to MH i2c: E2 08 00 48 08 80 09 00 00 00 00 00 00 C2 [08:40:10]Write i2c OK [08:40:10]MH_I2C_Read... [08:40:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:10]Read from MH i2c: E2 [08:40:10]MH_I2C_Read... [08:40:10]Read from MH i2c: E2 03 00 [08:40:10]MH_I2C_Read... [08:40:10]Read from MH i2c: E2 03 00 48 08 00 90 00 C4 [08:40:10]RAPDU: 90 00 [08:40:10]wFMCommunicate OK [08:40:10]SAM_PROTO_ClearQueue done [08:40:10]KKMCreateOFDPacket [08:40:10]OFDProtocolAddRootSTLVToBuf [08:40:10]FM_MakeSignedData [08:40:10]FM_MakeSignedData [08:40:10]SAM_PROTO_SignData [08:40:10]wFMCommunicate request_size=4 [08:40:10]MH_SAM_APDU [08:40:10]CAPDU: 80 0D 01 02 [08:40:10]Write to MH i2c: E2 08 00 49 08 80 0D 01 02 00 00 00 00 CA [08:40:10]Write i2c OK [08:40:10]MH_I2C_Read... [08:40:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:11]Read from MH i2c: E2 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: E2 03 00 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: E2 03 00 49 08 00 90 00 C5 [08:40:11]RAPDU: 90 00 [08:40:11]wFMCommunicate OK [08:40:11]wFMCommunicate request_size=255 [08:40:11]MH_SAM_APDU [08:40:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 00 00 00 F4 03 04 00 EC 98 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 50 DA 02 00 35 04 06 00 09 44 41 F4 [08:40:11]Write to MH i2c: E2 02 01 4A 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 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 1A 00 00 00 F4 03 04 00 EC 98 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 50 DA 02 00 35 04 06 00 09 44 41 F4 00 00 1E [08:40:11]Write i2c OK [08:40:11]MH_I2C_Read... [08:40:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:11]Read from MH i2c: E2 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: E2 03 00 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: E2 03 00 4A 08 00 90 00 C6 [08:40:11]RAPDU: 90 00 [08:40:11]wFMCommunicate OK [08:40:11]wFMCommunicate request_size=7 [08:40:11]MH_SAM_APDU [08:40:11]CAPDU: 80 0D 02 02 02 79 ED [08:40:11]Write to MH i2c: E2 0A 00 4B 08 80 0D 02 02 02 00 79 ED 00 00 37 [08:40:11]Write i2c OK [08:40:11]MH_I2C_Read... [08:40:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:11]Read from MH i2c: E2 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: E2 03 00 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: E2 03 00 4B 08 00 90 00 C7 [08:40:11]RAPDU: 90 00 [08:40:11]wFMCommunicate OK [08:40:11]wFMCommunicate request_size=4 [08:40:11]MH_SAM_APDU [08:40:11]CAPDU: 80 0D 03 02 [08:40:11]Write to MH i2c: E2 08 00 4C 08 80 0D 03 02 00 00 00 00 CF [08:40:11]Write i2c OK [08:40:11]MH_I2C_Read... [08:40:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:11]Read from MH i2c: E2 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: E2 0B 00 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: E2 0B 00 4C 08 00 51 EE E5 1D 74 BF D1 8B 90 00 A0 [08:40:11]RAPDU: 51 EE E5 1D 74 BF D1 8B 90 00 [08:40:11]wFMCommunicate OK [08:40:11]SAM_PROTO_SignData done [08:40:11]FM_MakeSignedData done [08:40:11]CreateOFDProtocolMessage [08:40:11]wFMCommunicate request_size=4 [08:40:11]MH_SAM_APDU [08:40:11]CAPDU: 80 11 00 00 [08:40:11]Write to MH i2c: E2 08 00 4D 08 80 11 00 00 00 00 00 00 CF [08:40:11]Write i2c OK [08:40:11]MH_I2C_Read... [08:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:11]Read from MH i2c: E2 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: E2 17 00 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: E2 17 00 4D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 22 [08: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 [08:40:11]wFMCommunicate OK [08:40:11]CreateOFDProtocolMessage done [08:40:11]OFDSenderStorePacket 186960 [08:40:11]StoreOFDPacket docnum=186960 [08:40: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 0C 01 00 00 0B 22 04 01 07 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 00 00 00 F4 03 04 00 EC 98 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 50 DA 02 00 35 04 06 00 09 44 41 F4 79 ED 51 EE E5 1D 74 BF D1 8B [08:40:11]CheckFolder [08:40:11]dirname=/storage/ofd_packets [08:40:11]CheckFolder done [08:40:11]ProducePacketName [08:40:11]name=ofd_packets/00186960 [08:40:11]NVStorageSaveData ofd_packets/00186960 [08:40:11]File name is /storage/ofd_packets/00186960 [08:40:11]Write 298 bytes [08:40:11]NVStorageSaveData done [08:40:11]OFDSenderStorePacket done [08:40:11]KKMCreateOFDPacket done [08:40:11]NVStorageSaveData kkm_last_timestamp [08:40:11]File name is /storage/kkm_last_timestamp [08:40:11]Write 4 bytes [08:40:11]NVStorageSaveData done [08:40:11]ExternCall_PrintAddStr [08:40:11]wPrintStart [08:40:11]Write to MH i2c: 01 00 00 4E 08 56 [08:40:11]Write i2c OK [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: 01 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: 01 07 00 [08:40:11]MH_I2C_Read... [08:40:11]Read from MH i2c: 01 07 00 4E 08 00 00 00 00 00 FF 0F 6B [08:40:11]RasterBufferAndPrint [08:40:11]line Счет N : (1)412111 [08:40:11]line ИНН: 02508201610067 [08:40:11]line Контрольно-Кассовый Чек [08:40:11]line ПРОДАЖА [08:40:11]line ТРК (МРК, ГНК) : 6 [08:40:11]line Товар: 2710194210 [08:40:11]line ДТ-К-5 [08:40:11]line 8.270 * 72.60 [08:40:11]line = 600.40 [08:40:11]line НДС 12% НСП 1% [08:40:11]line > о реализуемом товаре [08:40:11]line ОКРУГЛЕНИЕ: -0.40 [08:40:11]line ИТОГО: 600.00 [08:40:11]line Внесено: 600.00 [08:40:11]line СДАЧА: 0.00 [08:40:11]line НСП 1% : 5.31 [08:40:11]line НДС 12% : 63.76 [08:40:11]line Наличными: 600.00 [08:40:11]line Безнал.: 0.00 [08:40:11]line Место: АЗС № 92 "Партнер Нефть" [08:40:11]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:40:11]line СНО: Общий режим [08:40:11]line Чек 26 19.02.2025 08:40 [08:40:11]line Смена: 647 ФФД: 1.0 [08:40:11]line ЗНМ: 0300000118 [08:40:11]line РНМ: 0000000000091857 [08:40:11]line Версия ККМ: 001 [08:40:11]line ФМ: 0000000000871826 [08:40:11]line ФД: 186960 [08:40:11]line ФПД: 10188768967149 [08:40:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T084012&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186960&fm=10188768967149&tin=02508201610067®Number=0000000000091857&sum=60000 [08:40:11]OFD Sender: Processing packet 186960 [packets to send 49, broken 48] [08:40:11]ProducePacketName [08:40:11]name=ofd_packets/00186960 [08:40:11]OFD Sender: To server: pG, [08:40:11]CommunicateWithHost lk.salyk.kg:30040 [08:40:11]ConnectInit lk.salyk.kg [08:40:11]written 0, free lines is 4095 [08:40:12]Connected sock=10 [08:40: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 0C 01 00 00 0B 22 04 01 07 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 00 00 00 F4 03 04 00 EC 98 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 50 DA 02 00 35 04 06 00 09 44 41 F4 79 ED 51 EE E5 1D 74 BF D1 8B [08:40:12]Write to MH i2c: 01 00 00 79 08 81 [08:40:12]Write i2c OK [08:40:12]MH_I2C_Read... [08:40:12]Read from MH i2c: 01 [08:40:12]MH_I2C_Read... [08:40:12]Read from MH i2c: 01 07 00 [08:40:12]MH_I2C_Read... [08:40:12]Read from MH i2c: 01 07 00 79 08 00 00 00 00 00 F9 0C 8D [08:40:12]RasterBufferAndPrint [08:40:12]line [08:40:12]line [08:40:12]line [08:40:12]line [08:40:12]line [08:40:12]written 0, free lines is 3328 [08:40:12]MH_Cut [08:40:12]Write to MH i2c: D1 01 00 80 08 01 5A [08:40:12]Write i2c OK [08:40:12]MH_I2C_Read... [08:40:12]Read from MH i2c: D1 [08:40:12]MH_I2C_Read... [08:40:12]Read from MH i2c: D1 01 00 [08:40:12]MH_I2C_Read... [08:40:12]Read from MH i2c: D1 01 00 80 08 00 59 [08:40:12]Write to MH i2c: 01 00 00 81 08 89 [08:40:12]Write i2c OK [08:40:12]MH_I2C_Read... [08:40: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 9D 05 47 00 A6 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 50 DA 02 00 F4 03 04 00 40 3F B5 67 B6 04 01 00 00 6A 78 52 DD 1E 7A 9B 37 [08:40:12]CommunicateWithHost err = 0 [08:40:12]CheckOFDResponse [08:40:12]1017 (14) - 77093643461234 [08:40:12]1041 (16) - 0000000000871826 [08:40:12]1040 (4) - 186960 [08:40:12]1012 (4) - 19.02.2025 02:17 [08:40:12]1206 (1) - 0 [08:40:12]OFD Sender: Remove packet 186960 [08:40:12]ProducePacketName [08:40:12]name=ofd_packets/00186960 [08:40:12]NVStorageDeleteData [08:40:12]OFD Sender: No OFD packet to send [08:40:12]*** Cut start [08:40:12]*** Partial cut [08:40:12]*** CUTSNS_PIN = 1 [08:40:12]*** CUTSNS_PIN = 0 [08:40:13]*** Brake cut motor [08:40:13]Read from MH i2c: 01 [08:40:13]MH_I2C_Read... [08:40:13]*** Stop cut motor [08:40:13]*** Cut end [08:40:13]Read from MH i2c: 01 07 00 [08:40:13]MH_I2C_Read... [08:40:13]Read from MH i2c: 01 07 00 81 08 00 00 00 00 00 FF 0F 9E [08:40:13]process_action close_receipt done [08:40:13]requested_data is exist [08:40:13]produce_requested_data [08:40:13]requested_item fm.sn is exist - process it [08:40:13]wFMCommunicate request_size=4 [08:40:13]MH_SAM_APDU [08:40:13]CAPDU: 80 11 00 00 [08:40:13]Write to MH i2c: E2 08 00 82 08 80 11 00 00 00 00 00 00 04 [08:40:13]Write i2c OK [08:40:13]MH_I2C_Read... [08:40:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:13]Read from MH i2c: E2 [08:40:13]MH_I2C_Read... [08:40:13]Read from MH i2c: E2 17 00 [08:40:13]MH_I2C_Read... [08:40:13]Read from MH i2c: E2 17 00 82 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 57 [08:40: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:40:13]wFMCommunicate OK [08:40:13]requested_item fd.num is exist - process it [08:40:13]SAM_PROTO_GetFieldsCounters [08:40:13]wFMCommunicate request_size=4 [08:40:13]MH_SAM_APDU [08:40:13]CAPDU: 80 13 00 00 [08:40:13]Write to MH i2c: E2 08 00 83 08 80 13 00 00 00 00 00 00 07 [08:40:13]Write i2c OK [08:40:13]MH_I2C_Read... [08:40:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:13]Read from MH i2c: E2 [08:40:13]MH_I2C_Read... [08:40:13]Read from MH i2c: E2 62 00 [08:40:13]MH_I2C_Read... [08:40:13]Read from MH i2c: E2 62 00 83 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 50 DA 02 00 0E 04 04 00 87 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 30 [08:40: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 50 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:40:13]wFMCommunicate OK [08:40:13]SAM_PROTO_GetFieldsCounters done [08:40:13]requested_item shift.num is exist - process it [08:40:13]requested_item shift.opened is exist - process it [08:40:13]req_shift_opened [08:40:13]FM_GetShiftState [08:40:13]SAM_PROTO_GetShiftState [08:40:13]wFMCommunicate request_size=4 [08:40:13]MH_SAM_APDU [08:40:13]CAPDU: 80 13 01 00 [08:40:13]Write to MH i2c: E2 08 00 84 08 80 13 01 00 00 00 00 00 09 [08:40:13]Write i2c OK [08:40:13]MH_I2C_Read... [08:40:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:13]Read from MH i2c: E2 [08:40:13]MH_I2C_Read... [08:40:13]Read from MH i2c: E2 0E 00 [08:40:13]MH_I2C_Read... [08:40:13]Read from MH i2c: E2 0E 00 84 08 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 88 [08:40:13]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:40:13]wFMCommunicate OK [08:40:13]SAM_PROTO_GetShiftState done [08:40:13]FM_GetShiftState done [08:40:13]req_shift_opened done [08:40:13]requested_item shift.open_date is exist - process it [08:40:13]req_shift_open_date [08:40:13]req_shift_open_date done [08:40:13]produce_requested_data done [08:40:13]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186960,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [08:40:13]process_action_free close_receipt [08:40:13]json_value_free [08:40:13]json_value_free done [08:40:13]process_json_proto returns [08:40:13]Send response to host [08:40:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186960,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [08:40:13]free response buf [08:40:13]execute_script done [08:40:13]execute_script returns [08:40:13]free content buf [08:40:13]Sock 7.Close socket [08:40:13]Sock 7.Thread stoped [08:40:17]OFD Sender: No OFD packet to send [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [08:40:47]OFD Sender: No OFD packet to send [08:40:52]OFD Sender: No OFD packet to send [08:40:57]OFD Sender: No OFD packet to send [08:41:02]OFD Sender: No OFD packet to send [08:41:06]accept exits with 9 [08:41:06]New connection [08:41:06]New thread 3067022692 created [08:41:06]Thread 3066879332 joined [08:41:06]Waiting for new connection... [08:41:06] Sock 9.Parse request [08:41:06]Sock 9.Check first char [08:41:06]Sock 9.First char is OK [08:41:06]request: POST /json_proto HTTP/1.0 [08:41:06]Method: POST [08:41:06]URL: /json_proto [08:41:06]Method is POST - this is cgi request [08:41:06]url: /json_proto [08:41:06]query_string will be loaded in cgi processing [08:41:06]execute_cgi json_proto POST (null) [08:41:06]execute_cgi path=json_proto method=POST [08:41:06]POST find Content-Length [08:41:06]Host: 172.17.46.131:8080 [08:41:06]Content-Length: 677 [08:41:06]Content-Type: application/json [08:41:06] [08:41:06]POST finish read [08:41:06]Found Content-Length = 677 [08:41:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412112", "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" ] } } [08:41:06]execute_script... [08:41:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412112", "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" ] } } [08:41:06]POST & json_proto [08:41:06]process_json_proto [08:41:06]json parsed OK: [08:41:06]protocol is kg_v1.0 [08:41:06]action value=close_receipt [08:41:06]process_action close_receipt [08:41:06]cmd_close_receipt [08:41:06]MH_GetDate [08:41:06]Write to MH i2c: F0 00 00 85 08 7C [08:41:06]Write i2c OK [08:41:06]MH_I2C_Read... [08:41:06]Read from MH i2c: F0 [08:41:06]MH_I2C_Read... [08:41:06]Read from MH i2c: F0 09 00 [08:41:06]MH_I2C_Read... [08:41:06]Read from MH i2c: F0 09 00 85 08 00 24 99 B5 67 7E 41 4F 65 D1 [08:41:06]GetLastDocTimeStamp 1739954412 [08:41:06]current date 1739954468 [08:41:06]FM_GetShiftState [08:41:06]SAM_PROTO_GetShiftState [08:41:06]wFMCommunicate request_size=4 [08:41:06]MH_SAM_APDU [08:41:06]CAPDU: 80 13 01 00 [08:41:06]Write to MH i2c: E2 08 00 86 08 80 13 01 00 00 00 00 00 0B [08:41:06]Write i2c OK [08:41:06]MH_I2C_Read... [08:41:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:06]Read from MH i2c: E2 [08:41:06]MH_I2C_Read... [08:41:06]Read from MH i2c: E2 0E 00 [08:41:06]MH_I2C_Read... [08:41:06]Read from MH i2c: E2 0E 00 86 08 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 8A [08:41:06]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:41:06]wFMCommunicate OK [08:41:06]SAM_PROTO_GetShiftState done [08:41:06]FM_GetShiftState done [08:41:06]opened in 1739929631 [08:41:06]opened+sec_in_day 1740016031 [08:41:06]quantity*price = 50011 [08:41:06]sum+1 = 50013 [08:41:06]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 СНО: Общий режим Чек 27 19.02.2025 08:41 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186961 ФПД: 8635453035117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T084108&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186961&fm=8635453035117&tin=02508201610067®Number=0000000000091857&sum=50000 [08:41:07]StoreToDocumentArchive [08:41:07]shift 647 fd 186961 [08:41:07]save to /storage/0647/doc_00186961 [08:41:07]save last doc name /storage/0647/doc_00186961 to /storage/kkm_last_doc_name [08:41:07]save OK [08:41:07]Clear old archive folders... [08:41:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:41:07]tlvbuf is B6EB98B0 [08:41:07]SAM_PROTO_ClearQueue [08:41:07]wFMCommunicate request_size=4 [08:41:07]MH_SAM_APDU [08:41:07]CAPDU: 80 09 00 00 [08:41:07]Write to MH i2c: E2 08 00 93 08 80 09 00 00 00 00 00 00 0D [08:41:07]Write i2c OK [08:41:07]MH_I2C_Read... [08:41:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:07]Read from MH i2c: E2 [08:41:07]MH_I2C_Read... [08:41:07]Read from MH i2c: E2 03 00 [08:41:07]MH_I2C_Read... [08:41:07]Read from MH i2c: E2 03 00 93 08 00 90 00 0F [08:41:07]RAPDU: 90 00 [08:41:07]wFMCommunicate OK [08:41:07]SAM_PROTO_ClearQueue done [08:41:07]KKMCreateOFDPacket [08:41:07]OFDProtocolAddRootSTLVToBuf [08:41:07]FM_MakeSignedData [08:41:07]FM_MakeSignedData [08:41:07]SAM_PROTO_SignData [08:41:07]wFMCommunicate request_size=4 [08:41:07]MH_SAM_APDU [08:41:07]CAPDU: 80 0D 01 02 [08:41:07]Write to MH i2c: E2 08 00 94 08 80 0D 01 02 00 00 00 00 15 [08:41:07]Write i2c OK [08:41:07]MH_I2C_Read... [08:41:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:07]Read from MH i2c: E2 [08:41:07]MH_I2C_Read... [08:41:07]Read from MH i2c: E2 03 00 [08:41:07]MH_I2C_Read... [08:41:07]Read from MH i2c: E2 03 00 94 08 00 90 00 10 [08:41:07]RAPDU: 90 00 [08:41:07]wFMCommunicate OK [08:41:07]wFMCommunicate request_size=255 [08:41:07]MH_SAM_APDU [08: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 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 1B 00 00 00 F4 03 04 00 24 99 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 51 DA 02 00 35 04 06 00 07 [08:41:07]Write to MH i2c: E2 02 01 95 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 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 1B 00 00 00 F4 03 04 00 24 99 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 51 DA 02 00 35 04 06 00 07 00 00 5F [08:41:07]Write i2c OK [08:41:07]MH_I2C_Read... [08:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:07]Read from MH i2c: E2 [08:41:07]MH_I2C_Read... [08:41:07]Read from MH i2c: E2 03 00 [08:41:07]MH_I2C_Read... [08:41:07]Read from MH i2c: E2 03 00 95 08 00 90 00 11 [08:41:07]RAPDU: 90 00 [08:41:07]wFMCommunicate OK [08:41:07]wFMCommunicate request_size=10 [08:41:07]MH_SAM_APDU [08:41:07]CAPDU: 80 0D 02 02 05 DA 99 1C 52 6D [08:41:07]Write to MH i2c: E2 0D 00 96 08 80 0D 02 02 05 00 DA 99 1C 52 6D 00 00 70 [08:41:07]Write i2c OK [08:41:07]MH_I2C_Read... [08:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:07]Read from MH i2c: E2 [08:41:07]MH_I2C_Read... [08:41:07]Read from MH i2c: E2 03 00 [08:41:07]MH_I2C_Read... [08:41:07]Read from MH i2c: E2 03 00 96 08 00 90 00 12 [08:41:07]RAPDU: 90 00 [08:41:07]wFMCommunicate OK [08:41:07]wFMCommunicate request_size=4 [08:41:07]MH_SAM_APDU [08:41:07]CAPDU: 80 0D 03 02 [08:41:07]Write to MH i2c: E2 08 00 97 08 80 0D 03 02 00 00 00 00 1A [08:41:07]Write i2c OK [08:41:07]MH_I2C_Read... [08:41:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:07]Read from MH i2c: E2 [08:41:07]MH_I2C_Read... [08:41:07]Read from MH i2c: E2 0B 00 [08:41:07]MH_I2C_Read... [08:41:07]Read from MH i2c: E2 0B 00 97 08 00 16 BD E7 F8 38 8F 9D 94 90 00 C5 [08:41:07]RAPDU: 16 BD E7 F8 38 8F 9D 94 90 00 [08:41:07]wFMCommunicate OK [08:41:07]SAM_PROTO_SignData done [08:41:07]FM_MakeSignedData done [08:41:07]CreateOFDProtocolMessage [08:41:07]wFMCommunicate request_size=4 [08:41:07]MH_SAM_APDU [08:41:07]CAPDU: 80 11 00 00 [08:41:07]Write to MH i2c: E2 08 00 98 08 80 11 00 00 00 00 00 00 1A [08:41:07]Write i2c OK [08:41:07]MH_I2C_Read... [08:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:07]Read from MH i2c: E2 [08:41:07]MH_I2C_Read... [08:41:07]Read from MH i2c: E2 17 00 [08:41:07]MH_I2C_Read... [08:41:07]Read from MH i2c: E2 17 00 98 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6D [08: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 [08:41:07]wFMCommunicate OK [08:41:07]CreateOFDProtocolMessage done [08:41:07]OFDSenderStorePacket 186961 [08:41:07]StoreOFDPacket docnum=186961 [08: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 B4 FD 07 01 92 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 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 1B 00 00 00 F4 03 04 00 24 99 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 51 DA 02 00 35 04 06 00 07 DA 99 1C 52 6D 16 BD E7 F8 38 8F 9D 94 [08:41:07]CheckFolder [08:41:07]dirname=/storage/ofd_packets [08:41:07]CheckFolder done [08:41:07]ProducePacketName [08:41:07]name=ofd_packets/00186961 [08:41:07]NVStorageSaveData ofd_packets/00186961 [08:41:07]File name is /storage/ofd_packets/00186961 [08:41:07]Write 301 bytes [08:41:07]NVStorageSaveData done [08:41:07]OFDSenderStorePacket done [08:41:07]KKMCreateOFDPacket done [08:41:07]NVStorageSaveData kkm_last_timestamp [08:41:07]File name is /storage/kkm_last_timestamp [08:41:07]Write 4 bytes [08:41:07]NVStorageSaveData done [08:41:07]ExternCall_PrintAddStr [08:41:07]wPrintStart [08:41:07]Write to MH i2c: 01 00 00 99 08 A1 [08:41:07]Write i2c OK [08:41:07]MH_I2C_Read... [08:41:07]Read from MH i2c: 01 [08:41:07]MH_I2C_Read... [08:41:07]Read from MH i2c: 01 07 00 [08:41:07]MH_I2C_Read... [08:41:07]Read from MH i2c: 01 07 00 99 08 00 00 00 00 00 FF 0F B6 [08:41:07]RasterBufferAndPrint [08:41:07]line Счет N : (1)412112 [08:41:07]line ИНН: 02508201610067 [08:41:07]line Контрольно-Кассовый Чек [08:41:07]line ПРОДАЖА [08:41:07]line ТРК (МРК, ГНК) : 12 [08:41:07]line Товар: 2710124130 [08:41:07]line Аи-92-К-2 [08:41:07]line 7.790 * 64.20 [08:41:07]line = 500.12 [08:41:07]line НДС 12% НСП 1% [08:41:07]line > о реализуемом товаре [08:41:07]line ОКРУГЛЕНИЕ: -0.12 [08:41:07]line ИТОГО: 500.00 [08:41:07]line Внесено: 500.00 [08:41:07]line СДАЧА: 0.00 [08:41:07]line НСП 1% : 4.43 [08:41:07]line НДС 12% : 53.11 [08:41:07]line Наличными: 500.00 [08:41:07]line Безнал.: 0.00 [08:41:07]line Место: АЗС № 92 "Партнер Нефть" [08:41:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:41:07]line СНО: Общий режим [08:41:07]line Чек 27 19.02.2025 08:41 [08:41:07]line Смена: 647 ФФД: 1.0 [08:41:07]line ЗНМ: 0300000118 [08:41:07]line РНМ: 0000000000091857 [08:41:07]line Версия ККМ: 001 [08:41:07]line ФМ: 0000000000871826 [08:41:07]line ФД: 186961 [08:41:07]line ФПД: 8635453035117 [08:41:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T084108&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186961&fm=8635453035117&tin=02508201610067®Number=0000000000091857&sum=50000 [08:41:08]written 0, free lines is 4095 [08:41:08]OFD Sender: Processing packet 186961 [packets to send 49, broken 48] [08:41:08]ProducePacketName [08:41:08]name=ofd_packets/00186961 [08:41:08]OFD Sender: To server: pG, [08:41:08]CommunicateWithHost lk.salyk.kg:30040 [08:41:08]ConnectInit lk.salyk.kg [08:41:08]Connected sock=10 [08:41: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 B4 FD 07 01 92 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 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 1B 00 00 00 F4 03 04 00 24 99 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 51 DA 02 00 35 04 06 00 07 DA 99 1C 52 6D 16 BD E7 F8 38 8F 9D 94 [08: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 3C 5E 47 00 72 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 51 DA 02 00 F4 03 04 00 79 3F B5 67 B6 04 01 00 00 FB 35 84 EA 9A 5B 11 E8 [08:41:08]CommunicateWithHost err = 0 [08:41:08]CheckOFDResponse [08:41:08]1017 (14) - 77093643461234 [08:41:08]1041 (16) - 0000000000871826 [08:41:08]1040 (4) - 186961 [08:41:08]1012 (4) - 19.02.2025 02:18 [08:41:08]1206 (1) - 0 [08:41:08]OFD Sender: Remove packet 186961 [08:41:08]ProducePacketName [08:41:08]name=ofd_packets/00186961 [08:41:08]NVStorageDeleteData [08:41:08]Write to MH i2c: 01 00 00 C4 08 CC [08:41:08]Write i2c OK [08:41:08]MH_I2C_Read... [08:41:08]Read from MH i2c: 01 [08:41:08]MH_I2C_Read... [08:41:08]Read from MH i2c: 01 07 00 [08:41:08]MH_I2C_Read... [08:41:08]Read from MH i2c: 01 07 00 C4 08 00 00 00 00 00 F2 0C D1 [08:41:08]RasterBufferAndPrint [08:41:08]line [08:41:08]line [08:41:08]line [08:41:08]line [08:41:08]line [08:41:08]written 0, free lines is 3320 [08:41:08]MH_Cut [08:41:08]Write to MH i2c: D1 01 00 CB 08 01 A5 [08:41:08]Write i2c OK [08:41:08]MH_I2C_Read... [08:41:08]Read from MH i2c: D1 [08:41:08]MH_I2C_Read... [08:41:08]Read from MH i2c: D1 01 00 [08:41:08]MH_I2C_Read... [08:41:08]Read from MH i2c: D1 01 00 CB 08 00 A4 [08:41:08]Write to MH i2c: 01 00 00 CC 08 D4 [08:41:08]Write i2c OK [08:41:08]MH_I2C_Read... [08:41:09]OFD Sender: No OFD packet to send [08:41:09]*** Cut start [08:41:09]*** Partial cut [08:41:09]*** CUTSNS_PIN = 1 [08:41:09]*** CUTSNS_PIN = 0 [08:41:09]*** Brake cut motor [08:41:09]Read from MH i2c: 01 [08:41:09]MH_I2C_Read... [08:41:09]*** Stop cut motor [08:41:09]*** Cut end [08:41:09]Read from MH i2c: 01 07 00 [08:41:09]MH_I2C_Read... [08:41:09]Read from MH i2c: 01 07 00 CC 08 00 00 00 00 00 FF 0F E9 [08:41:09]process_action close_receipt done [08:41:09]requested_data is exist [08:41:09]produce_requested_data [08:41:09]requested_item fm.sn is exist - process it [08:41:09]wFMCommunicate request_size=4 [08:41:09]MH_SAM_APDU [08:41:09]CAPDU: 80 11 00 00 [08:41:09]Write to MH i2c: E2 08 00 CD 08 80 11 00 00 00 00 00 00 4F [08:41:09]Write i2c OK [08:41:09]MH_I2C_Read... [08:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:09]Read from MH i2c: E2 [08:41:09]MH_I2C_Read... [08:41:09]Read from MH i2c: E2 17 00 [08:41:09]MH_I2C_Read... [08:41:09]Read from MH i2c: E2 17 00 CD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A2 [08: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 [08:41:09]wFMCommunicate OK [08:41:09]requested_item fd.num is exist - process it [08:41:09]SAM_PROTO_GetFieldsCounters [08:41:09]wFMCommunicate request_size=4 [08:41:09]MH_SAM_APDU [08:41:09]CAPDU: 80 13 00 00 [08:41:09]Write to MH i2c: E2 08 00 CE 08 80 13 00 00 00 00 00 00 52 [08:41:09]Write i2c OK [08:41:09]MH_I2C_Read... [08:41:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:10]Read from MH i2c: E2 [08:41:10]MH_I2C_Read... [08:41:10]Read from MH i2c: E2 62 00 [08:41:10]MH_I2C_Read... [08:41:10]Read from MH i2c: E2 62 00 CE 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 51 DA 02 00 0E 04 04 00 87 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 7F [08:41: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 51 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:10]wFMCommunicate OK [08:41:10]SAM_PROTO_GetFieldsCounters done [08:41:10]requested_item shift.num is exist - process it [08:41:10]requested_item shift.opened is exist - process it [08:41:10]req_shift_opened [08:41:10]FM_GetShiftState [08:41:10]SAM_PROTO_GetShiftState [08:41:10]wFMCommunicate request_size=4 [08:41:10]MH_SAM_APDU [08:41:10]CAPDU: 80 13 01 00 [08:41:10]Write to MH i2c: E2 08 00 CF 08 80 13 01 00 00 00 00 00 54 [08:41:10]Write i2c OK [08:41:10]MH_I2C_Read... [08:41:10]Read from MH i2c: E2 [08:41:10]MH_I2C_Read... [08:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:10]Read from MH i2c: E2 0E 00 [08:41:10]MH_I2C_Read... [08:41:10]Read from MH i2c: E2 0E 00 CF 08 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D3 [08:41:10]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:41:10]wFMCommunicate OK [08:41:10]SAM_PROTO_GetShiftState done [08:41:10]FM_GetShiftState done [08:41:10]req_shift_opened done [08:41:10]requested_item shift.open_date is exist - process it [08:41:10]req_shift_open_date [08:41:10]req_shift_open_date done [08:41:10]produce_requested_data done [08:41:10]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186961,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [08:41:10]process_action_free close_receipt [08:41:10]json_value_free [08:41:10]json_value_free done [08:41:10]process_json_proto returns [08:41:10]Send response to host [08:41:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186961,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [08:41:10]free response buf [08:41:10]execute_script done [08:41:10]execute_script returns [08:41:10]free content buf [08:41:10]Sock 9.Close socket [08:41:10]Sock 9.Thread stoped [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:21]accept exits with 7 [08:43:21]New connection [08:43:21]New thread 3066879332 created [08:43:21]Thread 3067022692 joined [08:43:21]Waiting for new connection... [08:43:21] Sock 7.Parse request [08:43:21]Sock 7.Check first char [08:43:21]Sock 7.First char is OK [08:43:21]request: POST /json_proto HTTP/1.0 [08:43:21]Method: POST [08:43:21]URL: /json_proto [08:43:21]Method is POST - this is cgi request [08:43:21]url: /json_proto [08:43:21]query_string will be loaded in cgi processing [08:43:21]execute_cgi json_proto POST (null) [08:43:21]execute_cgi path=json_proto method=POST [08:43:21]POST find Content-Length [08:43:21]Host: 172.17.46.131:8080 [08:43:21]Content-Length: 1014 [08:43:21]Content-Type: application/json [08:43:21] [08:43:21]POST finish read [08:43:21]Found Content-Length = 1014 [08:43:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412109", "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" : 71.60, "quantity" : 125.700, "sum" : 9000.12, "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 125.70 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:21]execute_script... [08:43:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412109", "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" : 71.60, "quantity" : 125.700, "sum" : 9000.12, "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 125.70 \u0441\u043E\u043C", "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:21]POST & json_proto [08:43:21]process_json_proto [08:43:21]json parsed OK: [08:43:21]protocol is kg_v1.0 [08:43:21]action value=close_receipt [08:43:21]process_action close_receipt [08:43:21]cmd_close_receipt [08:43:21]MH_GetDate [08:43:21]Write to MH i2c: F0 00 00 D0 08 C7 [08:43:21]Write i2c OK [08:43:21]MH_I2C_Read... [08:43:21]Read from MH i2c: F0 [08:43:21]MH_I2C_Read... [08:43:21]Read from MH i2c: F0 09 00 [08:43:21]MH_I2C_Read... [08:43:21]Read from MH i2c: F0 09 00 D0 08 00 AB 99 B5 67 7E 41 4F 65 A3 [08:43:21]GetLastDocTimeStamp 1739954468 [08:43:21]current date 1739954603 [08:43:21]FM_GetShiftState [08:43:21]SAM_PROTO_GetShiftState [08:43:21]wFMCommunicate request_size=4 [08:43:21]MH_SAM_APDU [08:43:21]CAPDU: 80 13 01 00 [08:43:21]Write to MH i2c: E2 08 00 D1 08 80 13 01 00 00 00 00 00 56 [08:43:21]Write i2c OK [08:43:21]MH_I2C_Read... [08:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:21]Read from MH i2c: E2 [08:43:21]MH_I2C_Read... [08:43:21]Read from MH i2c: E2 0E 00 [08:43:21]MH_I2C_Read... [08:43:21]Read from MH i2c: E2 0E 00 D1 08 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D5 [08:43:21]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:43:21]wFMCommunicate OK [08:43:21]SAM_PROTO_GetShiftState done [08:43:21]FM_GetShiftState done [08:43:21]opened in 1739929631 [08:43:21]opened+sec_in_day 1740016031 [08:43:21]quantity*price = 900012 [08:43:21]sum+1 = 900013 [08:43:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 9000.00 Внесено: 9000.00 СДАЧА: 0.00 НСП 1% : 79.65 НДС 12% : 955.76 Наличными: 9000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 28 19.02.2025 08:43 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Дисконтная программа СкидкаДТ номер 92 сэкономлено 125.70 сом ФМ: 0000000000871826 ФД: 186962 ФПД: 40952244975160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T084323&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186962&fm=40952244975160&tin=02508201610067®Number=0000000000091857&sum=900000 [08:43:22]StoreToDocumentArchive [08:43:22]shift 647 fd 186962 [08:43:22]save to /storage/0647/doc_00186962 [08:43:22]save last doc name /storage/0647/doc_00186962 to /storage/kkm_last_doc_name [08:43:22]save OK [08:43:22]Clear old archive folders... [08:43:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:43:22]tlvbuf is 005DD9C0 [08:43:22]SAM_PROTO_ClearQueue [08:43:22]wFMCommunicate request_size=4 [08:43:22]MH_SAM_APDU [08:43:22]CAPDU: 80 09 00 00 [08:43:22]Write to MH i2c: E2 08 00 DE 08 80 09 00 00 00 00 00 00 58 [08:43:22]Write i2c OK [08:43:22]MH_I2C_Read... [08:43:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:22]Read from MH i2c: E2 [08:43:22]MH_I2C_Read... [08:43:22]Read from MH i2c: E2 03 00 [08:43:22]MH_I2C_Read... [08:43:22]Read from MH i2c: E2 03 00 DE 08 00 90 00 5A [08:43:22]RAPDU: 90 00 [08:43:22]wFMCommunicate OK [08:43:22]SAM_PROTO_ClearQueue done [08:43:22]KKMCreateOFDPacket [08:43:22]OFDProtocolAddRootSTLVToBuf [08:43:22]FM_MakeSignedData [08:43:22]FM_MakeSignedData [08:43:22]SAM_PROTO_SignData [08:43:22]wFMCommunicate request_size=4 [08:43:22]MH_SAM_APDU [08:43:22]CAPDU: 80 0D 01 02 [08:43:22]Write to MH i2c: E2 08 00 DF 08 80 0D 01 02 00 00 00 00 60 [08:43:22]Write i2c OK [08:43:22]MH_I2C_Read... [08:43:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:22]Read from MH i2c: E2 [08:43:22]MH_I2C_Read... [08:43:22]Read from MH i2c: E2 03 00 [08:43:22]MH_I2C_Read... [08:43:22]Read from MH i2c: E2 03 00 DF 08 00 90 00 5B [08:43:22]RAPDU: 90 00 [08:43:22]wFMCommunicate OK [08:43:22]wFMCommunicate request_size=255 [08:43:22]MH_SAM_APDU [08:43: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 04 EB 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 AC BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 75 01 00 00 00 07 04 06 00 A0 BB 0D 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 AB 99 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 52 DA 02 00 35 04 06 00 25 3E F0 03 [08:43:22]Write to MH i2c: E2 02 01 E0 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 04 EB 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 AC BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 75 01 00 00 00 07 04 06 00 A0 BB 0D 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 AB 99 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 52 DA 02 00 35 04 06 00 25 3E F0 03 00 00 9C [08:43:22]Write i2c OK [08:43:22]MH_I2C_Read... [08:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:22]Read from MH i2c: E2 [08:43:22]MH_I2C_Read... [08:43:22]Read from MH i2c: E2 03 00 [08:43:22]MH_I2C_Read... [08:43:22]Read from MH i2c: E2 03 00 E0 08 00 90 00 5C [08:43:22]RAPDU: 90 00 [08:43:22]wFMCommunicate OK [08:43:22]wFMCommunicate request_size=7 [08:43:22]MH_SAM_APDU [08:43:22]CAPDU: 80 0D 02 02 02 B6 38 [08:43:22]Write to MH i2c: E2 0A 00 E1 08 80 0D 02 02 02 00 B6 38 00 00 55 [08:43:22]Write i2c OK [08:43:22]MH_I2C_Read... [08:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:22]Read from MH i2c: E2 [08:43:22]MH_I2C_Read... [08:43:22]Read from MH i2c: E2 03 00 [08:43:22]MH_I2C_Read... [08:43:22]Read from MH i2c: E2 03 00 E1 08 00 90 00 5D [08:43:22]RAPDU: 90 00 [08:43:22]wFMCommunicate OK [08:43:22]wFMCommunicate request_size=4 [08:43:22]MH_SAM_APDU [08:43:22]CAPDU: 80 0D 03 02 [08:43:22]Write to MH i2c: E2 08 00 E2 08 80 0D 03 02 00 00 00 00 65 [08:43:22]Write i2c OK [08:43:22]MH_I2C_Read... [08:43:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:22]Read from MH i2c: E2 [08:43:22]MH_I2C_Read... [08:43:22]Read from MH i2c: E2 0B 00 [08:43:22]MH_I2C_Read... [08:43:22]Read from MH i2c: E2 0B 00 E2 08 00 38 40 97 02 9A 90 13 A2 90 00 56 [08:43:22]RAPDU: 38 40 97 02 9A 90 13 A2 90 00 [08:43:22]wFMCommunicate OK [08:43:22]SAM_PROTO_SignData done [08:43:22]FM_MakeSignedData done [08:43:22]CreateOFDProtocolMessage [08:43:22]wFMCommunicate request_size=4 [08:43:22]MH_SAM_APDU [08:43:22]CAPDU: 80 11 00 00 [08:43:22]Write to MH i2c: E2 08 00 E3 08 80 11 00 00 00 00 00 00 65 [08:43:22]Write i2c OK [08:43:22]MH_I2C_Read... [08:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:22]Read from MH i2c: E2 [08:43:22]MH_I2C_Read... [08:43:22]Read from MH i2c: E2 17 00 [08:43:22]MH_I2C_Read... [08:43:22]Read from MH i2c: E2 17 00 E3 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B8 [08: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 [08:43:22]wFMCommunicate OK [08:43:22]CreateOFDProtocolMessage done [08:43:22]OFDSenderStorePacket 186962 [08:43:22]StoreOFDPacket docnum=186962 [08:43: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 66 6B 04 01 30 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 04 EB 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 AC BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 75 01 00 00 00 07 04 06 00 A0 BB 0D 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 AB 99 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 52 DA 02 00 35 04 06 00 25 3E F0 03 B6 38 38 40 97 02 9A 90 13 A2 [08:43:22]CheckFolder [08:43:22]dirname=/storage/ofd_packets [08:43:22]CheckFolder done [08:43:22]ProducePacketName [08:43:22]name=ofd_packets/00186962 [08:43:22]NVStorageSaveData ofd_packets/00186962 [08:43:22]File name is /storage/ofd_packets/00186962 [08:43:22]Write 298 bytes [08:43:22]NVStorageSaveData done [08:43:22]OFDSenderStorePacket done [08:43:22]KKMCreateOFDPacket done [08:43:22]NVStorageSaveData kkm_last_timestamp [08:43:22]File name is /storage/kkm_last_timestamp [08:43:22]Write 4 bytes [08:43:22]NVStorageSaveData done [08:43:22]ExternCall_PrintAddStr [08:43:22]wPrintStart [08:43:22]Write to MH i2c: 01 00 00 E4 08 EC [08:43:22]Write i2c OK [08:43:22]MH_I2C_Read... [08:43:22]Read from MH i2c: 01 [08:43:22]MH_I2C_Read... [08:43:22]Read from MH i2c: 01 07 00 [08:43:22]MH_I2C_Read... [08:43:22]Read from MH i2c: 01 07 00 E4 08 00 00 00 00 00 FF 0F 01 [08:43:22]RasterBufferAndPrint [08:43:22]line Счет N : (1)412109 [08:43:22]line ИНН: 02508201610067 [08:43:22]line Контрольно-Кассовый Чек [08:43:22]line ПРОДАЖА [08:43:22]line ТРК (МРК, ГНК) : 5 [08:43:22]line Товар: 2710194210 [08:43:22]line ДТ-К-5 [08:43:22]line 125.700 * 71.60 [08:43:22]line = 9000.12 [08:43:22]line НДС 12% НСП 1% [08:43:22]line > о реализуемом товаре [08:43:22]line ОКРУГЛЕНИЕ: -0.12 [08:43:22]line ИТОГО: 9000.00 [08:43:22]line Внесено: 9000.00 [08:43:22]line СДАЧА: 0.00 [08:43:22]line НСП 1% : 79.65 [08:43:22]line НДС 12% : 955.76 [08:43:22]line Наличными: 9000.00 [08:43:22]line Безнал.: 0.00 [08:43:22]line Место: АЗС № 92 "Партнер Нефть" [08:43:22]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:43:22]line СНО: Общий режим [08:43:22]line Чек 28 19.02.2025 08:43 [08:43:22]line Смена: 647 ФФД: 1.0 [08:43:22]line ЗНМ: 0300000118 [08:43:22]line РНМ: 0000000000091857 [08:43:22]line Версия ККМ: 001 [08:43:22]line [08:43:22]line Дисконтная программа [08:43:22]line СкидкаДТ [08:43:22]line номер 92 [08:43:22]line сэкономлено 125.70 сом [08:43:22]line ФМ: 0000000000871826 [08:43:22]line ФД: 186962 [08:43:22]line ФПД: 40952244975160 [08:43:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T084323&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186962&fm=40952244975160&tin=02508201610067®Number=0000000000091857&sum=900000 [08:43:23]OFD Sender: Processing packet 186962 [packets to send 49, broken 48] [08:43:23]ProducePacketName [08:43:23]name=ofd_packets/00186962 [08:43:23]OFD Sender: To server: pG, [08:43:23]CommunicateWithHost lk.salyk.kg:30040 [08:43:23]ConnectInit lk.salyk.kg [08:43:23]written 0, free lines is 4095 [08:43:23]Connected sock=10 [08:43:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 66 6B 04 01 30 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 04 EB 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 AC BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 75 01 00 00 00 07 04 06 00 A0 BB 0D 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 AB 99 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 52 DA 02 00 35 04 06 00 25 3E F0 03 B6 38 38 40 97 02 9A 90 13 A2 [08:43:23]Write to MH i2c: 01 00 00 14 09 1D [08:43:23]Write i2c OK [08:43:23]MH_I2C_Read... [08:43:23]Read from MH i2c: 01 [08:43:23]MH_I2C_Read... [08:43:23]Read from MH i2c: 01 07 00 [08:43:23]MH_I2C_Read... [08:43:23]Read from MH i2c: 01 07 00 14 09 00 00 00 00 00 AA 0C DA [08:43:23]RasterBufferAndPrint [08:43:23]line [08:43:23]line [08:43:23]line [08:43:23]line [08:43:23]line [08:43:23]written 0, free lines is 3249 [08:43:23]MH_Cut [08:43:23]Write to MH i2c: D1 01 00 1B 09 01 F6 [08:43:23]Write i2c OK [08:43:23]MH_I2C_Read... [08:43:23]Read from MH i2c: D1 [08:43:23]MH_I2C_Read... [08:43:23]Read from MH i2c: D1 01 00 [08:43:23]MH_I2C_Read... [08:43:23]Read from MH i2c: D1 01 00 1B 09 00 F5 [08:43:23]Write to MH i2c: 01 00 00 1C 09 25 [08:43:23]Write i2c OK [08:43:23]MH_I2C_Read... [08:43: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 96 A2 47 00 CF 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 52 DA 02 00 F4 03 04 00 00 40 B5 67 B6 04 01 00 00 E6 DC 89 9A 3A D0 C5 D7 [08:43:23]CommunicateWithHost err = 0 [08:43:23]CheckOFDResponse [08:43:23]1017 (14) - 77093643461234 [08:43:23]1041 (16) - 0000000000871826 [08:43:23]1040 (4) - 186962 [08:43:23]1012 (4) - 19.02.2025 02:20 [08:43:23]1206 (1) - 0 [08:43:23]OFD Sender: Remove packet 186962 [08:43:23]ProducePacketName [08:43:23]name=ofd_packets/00186962 [08:43:23]NVStorageDeleteData [08:43:24]OFD Sender: No OFD packet to send [08:43:24]*** Cut start [08:43:24]*** Partial cut [08:43:24]*** CUTSNS_PIN = 1 [08:43:24]*** CUTSNS_PIN = 0 [08:43:24]*** Brake cut motor [08:43:25]Read from MH i2c: 01 [08:43:25]MH_I2C_Read... [08:43:25]*** Stop cut motor [08:43:25]*** Cut end [08:43:25]Read from MH i2c: 01 07 00 [08:43:25]MH_I2C_Read... [08:43:25]Read from MH i2c: 01 07 00 1C 09 00 00 00 00 00 FF 0F 3A [08:43:25]process_action close_receipt done [08:43:25]requested_data is exist [08:43:25]produce_requested_data [08:43:25]requested_item fm.sn is exist - process it [08:43:25]wFMCommunicate request_size=4 [08:43:25]MH_SAM_APDU [08:43:25]CAPDU: 80 11 00 00 [08:43:25]Write to MH i2c: E2 08 00 1D 09 80 11 00 00 00 00 00 00 A0 [08:43:25]Write i2c OK [08:43:25]MH_I2C_Read... [08:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:25]Read from MH i2c: E2 [08:43:25]MH_I2C_Read... [08:43:25]Read from MH i2c: E2 17 00 [08:43:25]MH_I2C_Read... [08:43:25]Read from MH i2c: E2 17 00 1D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F3 [08:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:43:25]wFMCommunicate OK [08:43:25]requested_item fd.num is exist - process it [08:43:25]SAM_PROTO_GetFieldsCounters [08:43:25]wFMCommunicate request_size=4 [08:43:25]MH_SAM_APDU [08:43:25]CAPDU: 80 13 00 00 [08:43:25]Write to MH i2c: E2 08 00 1E 09 80 13 00 00 00 00 00 00 A3 [08:43:25]Write i2c OK [08:43:25]MH_I2C_Read... [08:43:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:25]Read from MH i2c: E2 [08:43:25]MH_I2C_Read... [08:43:25]Read from MH i2c: E2 62 00 [08:43:25]MH_I2C_Read... [08:43:25]Read from MH i2c: E2 62 00 1E 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 52 DA 02 00 0E 04 04 00 87 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 D4 [08:43:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:43:25]wFMCommunicate OK [08:43:25]SAM_PROTO_GetFieldsCounters done [08:43:25]requested_item shift.num is exist - process it [08:43:25]requested_item shift.opened is exist - process it [08:43:25]req_shift_opened [08:43:25]FM_GetShiftState [08:43:25]SAM_PROTO_GetShiftState [08:43:25]wFMCommunicate request_size=4 [08:43:25]MH_SAM_APDU [08:43:25]CAPDU: 80 13 01 00 [08:43:25]Write to MH i2c: E2 08 00 1F 09 80 13 01 00 00 00 00 00 A5 [08:43:25]Write i2c OK [08:43:25]MH_I2C_Read... [08:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:25]Read from MH i2c: E2 [08:43:25]MH_I2C_Read... [08:43:25]Read from MH i2c: E2 0E 00 [08:43:25]MH_I2C_Read... [08:43:25]Read from MH i2c: E2 0E 00 1F 09 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 24 [08:43:25]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:43:25]wFMCommunicate OK [08:43:25]SAM_PROTO_GetShiftState done [08:43:25]FM_GetShiftState done [08:43:25]req_shift_opened done [08:43:25]requested_item shift.open_date is exist - process it [08:43:25]req_shift_open_date [08:43:25]req_shift_open_date done [08:43:25]produce_requested_data done [08:43:25]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186962,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [08:43:25]process_action_free close_receipt [08:43:25]json_value_free [08:43:25]json_value_free done [08:43:25]process_json_proto returns [08:43:25]Send response to host [08:43:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186962,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [08:43:25]free response buf [08:43:25]execute_script done [08:43:25]execute_script returns [08:43:25]free content buf [08:43:25]Sock 7.Close socket [08:43:25]Sock 7.Thread stoped [08:43:29]OFD Sender: No OFD packet to send [08:43:34]OFD Sender: No OFD packet to send [08:43:39]OFD Sender: No OFD packet to send [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:59]OFD Sender: No OFD packet to send [08:44:04]OFD Sender: No OFD packet to send [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:07]accept exits with 9 [08:46:07]New connection [08:46:07]New thread 3067022692 created [08:46:07]Thread 3066879332 joined [08:46:07]Waiting for new connection... [08:46:07] Sock 9.Parse request [08:46:07]Sock 9.Check first char [08:46:07]Sock 9.First char is OK [08:46:07]request: POST /json_proto HTTP/1.0 [08:46:07]Method: POST [08:46:07]URL: /json_proto [08:46:07]Method is POST - this is cgi request [08:46:07]url: /json_proto [08:46:07]query_string will be loaded in cgi processing [08:46:07]execute_cgi json_proto POST (null) [08:46:07]execute_cgi path=json_proto method=POST [08:46:07]POST find Content-Length [08:46:07]Host: 172.17.46.131:8080 [08:46:07]Content-Length: 673 [08:46:07]Content-Type: application/json [08:46:07] [08:46:07]POST finish read [08:46:07]Found Content-Length = 673 [08:46:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412113", "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" ] } } [08:46:07]execute_script... [08:46: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)412113", "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" ] } } [08:46:07]POST & json_proto [08:46:07]process_json_proto [08:46:07]json parsed OK: [08:46:07]protocol is kg_v1.0 [08:46:07]action value=close_receipt [08:46:07]process_action close_receipt [08:46:07]cmd_close_receipt [08:46:07]MH_GetDate [08:46:07]Write to MH i2c: F0 00 00 20 09 18 [08:46:07]Write i2c OK [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: F0 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: F0 09 00 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: F0 09 00 20 09 00 52 9A B5 67 7E 41 4F 65 9C [08:46:07]GetLastDocTimeStamp 1739954603 [08:46:07]current date 1739954770 [08:46:07]FM_GetShiftState [08:46:07]SAM_PROTO_GetShiftState [08:46:07]wFMCommunicate request_size=4 [08:46:07]MH_SAM_APDU [08:46:07]CAPDU: 80 13 01 00 [08:46:07]Write to MH i2c: E2 08 00 21 09 80 13 01 00 00 00 00 00 A7 [08:46:07]Write i2c OK [08:46:07]MH_I2C_Read... [08:46:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:07]Read from MH i2c: E2 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: E2 0E 00 [08:46:07]MH_I2C_Read... [08:46:07]Read from MH i2c: E2 0E 00 21 09 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 26 [08:46:07]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:46:07]wFMCommunicate OK [08:46:07]SAM_PROTO_GetShiftState done [08:46:07]FM_GetShiftState done [08:46:07]opened in 1739929631 [08:46:07]opened+sec_in_day 1740016031 [08:46:07]quantity*price = 50021 [08:46:07]sum+1 = 50022 [08:46:07]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 СНО: Общий режим Чек 29 19.02.2025 08:46 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186963 ФПД: 41093538923122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T084610&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186963&fm=41093538923122&tin=02508201610067®Number=0000000000091857&sum=50000 [08:46:08]StoreToDocumentArchive [08:46:08]shift 647 fd 186963 [08:46:08]save to /storage/0647/doc_00186963 [08:46:08]save last doc name /storage/0647/doc_00186963 to /storage/kkm_last_doc_name [08:46:08]save OK [08:46:08]Clear old archive folders... [08:46:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:46:08]tlvbuf is 005C90D0 [08:46:08]SAM_PROTO_ClearQueue [08:46:08]wFMCommunicate request_size=4 [08:46:08]MH_SAM_APDU [08:46:08]CAPDU: 80 09 00 00 [08:46:08]Write to MH i2c: E2 08 00 2E 09 80 09 00 00 00 00 00 00 A9 [08:46:08]Write i2c OK [08:46:08]MH_I2C_Read... [08:46:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:08]Read from MH i2c: E2 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: E2 03 00 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: E2 03 00 2E 09 00 90 00 AB [08:46:08]RAPDU: 90 00 [08:46:08]wFMCommunicate OK [08:46:08]SAM_PROTO_ClearQueue done [08:46:08]KKMCreateOFDPacket [08:46:08]OFDProtocolAddRootSTLVToBuf [08:46:08]FM_MakeSignedData [08:46:08]FM_MakeSignedData [08:46:08]SAM_PROTO_SignData [08:46:08]wFMCommunicate request_size=4 [08:46:08]MH_SAM_APDU [08:46:08]CAPDU: 80 0D 01 02 [08:46:08]Write to MH i2c: E2 08 00 2F 09 80 0D 01 02 00 00 00 00 B1 [08:46:08]Write i2c OK [08:46:08]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:09]Read from MH i2c: E2 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 2F 09 00 90 00 AC [08:46:09]RAPDU: 90 00 [08:46:09]wFMCommunicate OK [08:46:09]wFMCommunicate request_size=255 [08:46:09]MH_SAM_APDU [08:46: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 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 1D 00 00 00 F4 03 04 00 52 9A 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 53 DA 02 00 35 04 06 00 25 5F D5 CA [08:46:09]Write to MH i2c: E2 02 01 30 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1D 00 00 00 F4 03 04 00 52 9A 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 53 DA 02 00 35 04 06 00 25 5F D5 CA 00 00 6D [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:09]Read from MH i2c: E2 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 30 09 00 90 00 AD [08:46:09]RAPDU: 90 00 [08:46:09]wFMCommunicate OK [08:46:09]wFMCommunicate request_size=7 [08:46:09]MH_SAM_APDU [08:46:09]CAPDU: 80 0D 02 02 02 42 72 [08:46:09]Write to MH i2c: E2 0A 00 31 09 80 0D 02 02 02 00 42 72 00 00 6C [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:09]Read from MH i2c: E2 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 31 09 00 90 00 AE [08:46:09]RAPDU: 90 00 [08:46:09]wFMCommunicate OK [08:46:09]wFMCommunicate request_size=4 [08:46:09]MH_SAM_APDU [08:46:09]CAPDU: 80 0D 03 02 [08:46:09]Write to MH i2c: E2 08 00 32 09 80 0D 03 02 00 00 00 00 B6 [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:09]Read from MH i2c: E2 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 0B 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 0B 00 32 09 00 9C 34 0E AE 2A 59 09 58 90 00 27 [08:46:09]RAPDU: 9C 34 0E AE 2A 59 09 58 90 00 [08:46:09]wFMCommunicate OK [08:46:09]SAM_PROTO_SignData done [08:46:09]FM_MakeSignedData done [08:46:09]CreateOFDProtocolMessage [08:46:09]wFMCommunicate request_size=4 [08:46:09]MH_SAM_APDU [08:46:09]CAPDU: 80 11 00 00 [08:46:09]Write to MH i2c: E2 08 00 33 09 80 11 00 00 00 00 00 00 B6 [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:09]Read from MH i2c: E2 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 17 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 17 00 33 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 09 [08:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:46:09]wFMCommunicate OK [08:46:09]CreateOFDProtocolMessage done [08:46:09]OFDSenderStorePacket 186963 [08:46:09]StoreOFDPacket docnum=186963 [08:46: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 6D 42 04 01 C6 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1D 00 00 00 F4 03 04 00 52 9A 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 53 DA 02 00 35 04 06 00 25 5F D5 CA 42 72 9C 34 0E AE 2A 59 09 58 [08:46:09]CheckFolder [08:46:09]dirname=/storage/ofd_packets [08:46:09]CheckFolder done [08:46:09]ProducePacketName [08:46:09]name=ofd_packets/00186963 [08:46:09]NVStorageSaveData ofd_packets/00186963 [08:46:09]File name is /storage/ofd_packets/00186963 [08:46:09]Write 298 bytes [08:46:09]NVStorageSaveData done [08:46:09]OFDSenderStorePacket done [08:46:09]KKMCreateOFDPacket done [08:46:09]NVStorageSaveData kkm_last_timestamp [08:46:09]File name is /storage/kkm_last_timestamp [08:46:09]Write 4 bytes [08:46:09]NVStorageSaveData done [08:46:09]ExternCall_PrintAddStr [08:46:09]wPrintStart [08:46:09]Write to MH i2c: 01 00 00 34 09 3D [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: 01 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: 01 07 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: 01 07 00 34 09 00 00 00 00 00 FF 0F 52 [08:46:09]RasterBufferAndPrint [08:46:09]line Счет N : (1)412113 [08:46:09]line ИНН: 02508201610067 [08:46:09]line Контрольно-Кассовый Чек [08:46:09]line ПРОДАЖА [08:46:09]line ТРК (МРК, ГНК) : 6 [08:46:09]line Товар: 2710194210 [08:46:09]line ДТ-К-5 [08:46:09]line 6.890 * 72.60 [08:46:09]line = 500.21 [08:46:09]line НДС 12% НСП 1% [08:46:09]line > о реализуемом товаре [08:46:09]line ОКРУГЛЕНИЕ: -0.21 [08:46:09]line ИТОГО: 500.00 [08:46:09]line Внесено: 500.00 [08:46:09]line СДАЧА: 0.00 [08:46:09]line НСП 1% : 4.43 [08:46:09]line НДС 12% : 53.12 [08:46:09]line Наличными: 500.00 [08:46:09]line Безнал.: 0.00 [08:46:09]line Место: АЗС № 92 "Партнер Нефть" [08:46:09]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:46:09]line СНО: Общий режим [08:46:09]line Чек 29 19.02.2025 08:46 [08:46:09]line Смена: 647 ФФД: 1.0 [08:46:09]line ЗНМ: 0300000118 [08:46:09]line РНМ: 0000000000091857 [08:46:09]line Версия ККМ: 001 [08:46:09]line ФМ: 0000000000871826 [08:46:09]line ФД: 186963 [08:46:09]line ФПД: 41093538923122 [08:46:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T084610&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186963&fm=41093538923122&tin=02508201610067®Number=0000000000091857&sum=50000 [08:46:09]OFD Sender: Processing packet 186963 [packets to send 49, broken 48] [08:46:09]ProducePacketName [08:46:09]name=ofd_packets/00186963 [08:46:09]OFD Sender: To server: pG, [08:46:09]CommunicateWithHost lk.salyk.kg:30040 [08:46:09]ConnectInit lk.salyk.kg [08:46:09]written 0, free lines is 4095 [08:46:09]Connected sock=10 [08: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 6D 42 04 01 C6 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1D 00 00 00 F4 03 04 00 52 9A 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 53 DA 02 00 35 04 06 00 25 5F D5 CA 42 72 9C 34 0E AE 2A 59 09 58 [08: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 93 F7 47 00 EE A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 53 DA 02 00 F4 03 04 00 A6 40 B5 67 B6 04 01 00 00 B6 0E 50 51 B9 49 54 CB [08:46:10]CommunicateWithHost err = 0 [08:46:10]CheckOFDResponse [08:46:10]1017 (14) - 77093643461234 [08:46:10]1041 (16) - 0000000000871826 [08:46:10]1040 (4) - 186963 [08:46:10]1012 (4) - 19.02.2025 02:23 [08:46:10]1206 (1) - 0 [08:46:10]OFD Sender: Remove packet 186963 [08:46:10]ProducePacketName [08:46:10]name=ofd_packets/00186963 [08:46:10]NVStorageDeleteData [08:46:10]Write to MH i2c: 01 00 00 5F 09 68 [08:46:10]Write i2c OK [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: 01 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: 01 07 00 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: 01 07 00 5F 09 00 00 00 00 00 F8 0C 73 [08:46:10]RasterBufferAndPrint [08:46:10]line [08:46:10]line [08:46:10]line [08:46:10]line [08:46:10]line [08:46:10]written 0, free lines is 3327 [08:46:10]MH_Cut [08:46:10]Write to MH i2c: D1 01 00 66 09 01 41 [08:46:10]Write i2c OK [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: D1 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: D1 01 00 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: D1 01 00 66 09 00 40 [08:46:10]Write to MH i2c: 01 00 00 67 09 70 [08:46:10]Write i2c OK [08:46:10]MH_I2C_Read... [08:46:10]OFD Sender: No OFD packet to send [08:46:10]*** Cut start [08:46:10]*** Partial cut [08:46:10]*** CUTSNS_PIN = 1 [08:46:11]*** CUTSNS_PIN = 0 [08:46:11]*** Brake cut motor [08:46:11]Read from MH i2c: 01 [08:46:11]MH_I2C_Read... [08:46:11]*** Stop cut motor [08:46:11]*** Cut end [08:46:11]Read from MH i2c: 01 07 00 [08:46:11]MH_I2C_Read... [08:46:11]Read from MH i2c: 01 07 00 67 09 00 00 00 00 00 FF 0F 85 [08:46:11]process_action close_receipt done [08:46:11]requested_data is exist [08:46:11]produce_requested_data [08:46:11]requested_item fm.sn is exist - process it [08:46:11]wFMCommunicate request_size=4 [08:46:11]MH_SAM_APDU [08:46:11]CAPDU: 80 11 00 00 [08:46:11]Write to MH i2c: E2 08 00 68 09 80 11 00 00 00 00 00 00 EB [08:46:11]Write i2c OK [08:46:11]MH_I2C_Read... [08:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:11]Read from MH i2c: E2 [08:46:11]MH_I2C_Read... [08:46:11]Read from MH i2c: E2 17 00 [08:46:11]MH_I2C_Read... [08:46:11]Read from MH i2c: E2 17 00 68 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3E [08:46: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:46:11]wFMCommunicate OK [08:46:11]requested_item fd.num is exist - process it [08:46:11]SAM_PROTO_GetFieldsCounters [08:46:11]wFMCommunicate request_size=4 [08:46:11]MH_SAM_APDU [08:46:11]CAPDU: 80 13 00 00 [08:46:11]Write to MH i2c: E2 08 00 69 09 80 13 00 00 00 00 00 00 EE [08:46:11]Write i2c OK [08:46:11]MH_I2C_Read... [08:46:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:11]Read from MH i2c: E2 [08:46:11]MH_I2C_Read... [08:46:11]Read from MH i2c: E2 62 00 [08:46:11]MH_I2C_Read... [08:46:11]Read from MH i2c: E2 62 00 69 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 53 DA 02 00 0E 04 04 00 87 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 23 [08:46: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 53 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:11]wFMCommunicate OK [08:46:11]SAM_PROTO_GetFieldsCounters done [08:46:11]requested_item shift.num is exist - process it [08:46:11]requested_item shift.opened is exist - process it [08:46:11]req_shift_opened [08:46:11]FM_GetShiftState [08:46:11]SAM_PROTO_GetShiftState [08:46:11]wFMCommunicate request_size=4 [08:46:11]MH_SAM_APDU [08:46:11]CAPDU: 80 13 01 00 [08:46:11]Write to MH i2c: E2 08 00 6A 09 80 13 01 00 00 00 00 00 F0 [08:46:11]Write i2c OK [08:46:11]MH_I2C_Read... [08:46:11]Read from MH i2c: E2 [08:46:11]MH_I2C_Read... [08:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:11]Read from MH i2c: E2 0E 00 [08:46:11]MH_I2C_Read... [08:46:11]Read from MH i2c: E2 0E 00 6A 09 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 6F [08:46:11]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:46:11]wFMCommunicate OK [08:46:11]SAM_PROTO_GetShiftState done [08:46:11]FM_GetShiftState done [08:46:11]req_shift_opened done [08:46:11]requested_item shift.open_date is exist - process it [08:46:11]req_shift_open_date [08:46:11]req_shift_open_date done [08:46:11]produce_requested_data done [08:46:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186963,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [08:46:11]process_action_free close_receipt [08:46:11]json_value_free [08:46:11]json_value_free done [08:46:11]process_json_proto returns [08:46:11]Send response to host [08:46:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186963,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [08:46:11]free response buf [08:46:11]execute_script done [08:46:11]execute_script returns [08:46:11]free content buf [08:46:11]Sock 9.Close socket [08:46:11]Sock 9.Thread stoped [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:32]accept exits with 7 [08:48:32]New connection [08:48:32]New thread 3066879332 created [08:48:32]Thread 3067022692 joined [08:48:32]Waiting for new connection... [08:48:32] Sock 7.Parse request [08:48:32]Sock 7.Check first char [08:48:32]Sock 7.First char is OK [08:48:32]request: POST /json_proto HTTP/1.0 [08:48:32]Method: POST [08:48:32]URL: /json_proto [08:48:32]Method is POST - this is cgi request [08:48:32]url: /json_proto [08:48:32]query_string will be loaded in cgi processing [08:48:32]execute_cgi json_proto POST (null) [08:48:32]execute_cgi path=json_proto method=POST [08:48:32]POST find Content-Length [08:48:32]Host: 172.17.46.131:8080 [08:48:32]Content-Length: 678 [08:48:32]Content-Type: application/json [08:48:32] [08:48:32]POST finish read [08:48:32]Found Content-Length = 678 [08:48:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412114", "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:48:32]execute_script... [08:48: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)412114", "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:48:32]POST & json_proto [08:48:32]process_json_proto [08:48:32]json parsed OK: [08:48:32]protocol is kg_v1.0 [08:48:32]action value=close_receipt [08:48:32]process_action close_receipt [08:48:32]cmd_close_receipt [08:48:32]MH_GetDate [08:48:32]Write to MH i2c: F0 00 00 6B 09 63 [08:48:32]Write i2c OK [08:48:32]MH_I2C_Read... [08:48:32]Read from MH i2c: F0 [08:48:32]MH_I2C_Read... [08:48:32]Read from MH i2c: F0 09 00 [08:48:32]MH_I2C_Read... [08:48:32]Read from MH i2c: F0 09 00 6B 09 00 E3 9A B5 67 7E 41 4F 65 78 [08:48:32]GetLastDocTimeStamp 1739954770 [08:48:32]current date 1739954915 [08:48:32]FM_GetShiftState [08:48:32]SAM_PROTO_GetShiftState [08:48:32]wFMCommunicate request_size=4 [08:48:32]MH_SAM_APDU [08:48:32]CAPDU: 80 13 01 00 [08:48:32]Write to MH i2c: E2 08 00 6C 09 80 13 01 00 00 00 00 00 F2 [08:48:32]Write i2c OK [08:48:32]MH_I2C_Read... [08:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:32]Read from MH i2c: E2 [08:48:32]MH_I2C_Read... [08:48:32]Read from MH i2c: E2 0E 00 [08:48:32]MH_I2C_Read... [08:48:32]Read from MH i2c: E2 0E 00 6C 09 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 71 [08:48:32]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:48:32]wFMCommunicate OK [08:48:32]SAM_PROTO_GetShiftState done [08:48:32]FM_GetShiftState done [08:48:32]opened in 1739929631 [08:48:32]opened+sec_in_day 1740016031 [08:48:32]quantity*price = 120007 [08:48:32]sum+1 = 120009 [08:48:32]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 СНО: Общий режим Чек 30 19.02.2025 08:48 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186964 ФПД: 113795200012608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T084835&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186964&fm=113795200012608&tin=02508201610067®Number=0000000000091857&sum=120000 [08:48:34]StoreToDocumentArchive [08:48:34]shift 647 fd 186964 [08:48:34]save to /storage/0647/doc_00186964 [08:48:34]save last doc name /storage/0647/doc_00186964 to /storage/kkm_last_doc_name [08:48:34]save OK [08:48:34]Clear old archive folders... [08:48:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:48:34]tlvbuf is 005B0A40 [08:48:34]SAM_PROTO_ClearQueue [08:48:34]wFMCommunicate request_size=4 [08:48:34]MH_SAM_APDU [08:48:34]CAPDU: 80 09 00 00 [08:48:34]Write to MH i2c: E2 08 00 79 09 80 09 00 00 00 00 00 00 F4 [08:48:34]Write i2c OK [08:48:34]MH_I2C_Read... [08:48:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:34]Read from MH i2c: E2 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 03 00 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 03 00 79 09 00 90 00 F6 [08:48:34]RAPDU: 90 00 [08:48:34]wFMCommunicate OK [08:48:34]SAM_PROTO_ClearQueue done [08:48:34]KKMCreateOFDPacket [08:48:34]OFDProtocolAddRootSTLVToBuf [08:48:34]FM_MakeSignedData [08:48:34]FM_MakeSignedData [08:48:34]SAM_PROTO_SignData [08:48:34]wFMCommunicate request_size=4 [08:48:34]MH_SAM_APDU [08:48:34]CAPDU: 80 0D 01 02 [08:48:34]Write to MH i2c: E2 08 00 7A 09 80 0D 01 02 00 00 00 00 FC [08:48:34]Write i2c OK [08:48:34]MH_I2C_Read... [08:48:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:34]Read from MH i2c: E2 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 03 00 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 03 00 7A 09 00 90 00 F7 [08:48:34]RAPDU: 90 00 [08:48:34]wFMCommunicate OK [08:48:34]wFMCommunicate request_size=255 [08:48:34]MH_SAM_APDU [08:48:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 E3 9A 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 54 DA 02 00 35 04 06 00 67 7F 02 79 [08:48:34]Write to MH i2c: E2 02 01 7B 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 E3 9A 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 54 DA 02 00 35 04 06 00 67 7F 02 79 00 00 63 [08:48:34]Write i2c OK [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 [08:48:34]MH_I2C_Read... [08:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:34]Read from MH i2c: E2 03 00 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 03 00 7B 09 00 90 00 F8 [08:48:34]RAPDU: 90 00 [08:48:34]wFMCommunicate OK [08:48:34]wFMCommunicate request_size=7 [08:48:34]MH_SAM_APDU [08:48:34]CAPDU: 80 0D 02 02 02 51 40 [08:48:34]Write to MH i2c: E2 0A 00 7C 09 80 0D 02 02 02 00 51 40 00 00 94 [08:48:34]Write i2c OK [08:48:34]MH_I2C_Read... [08:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:34]Read from MH i2c: E2 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 03 00 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 03 00 7C 09 00 90 00 F9 [08:48:34]RAPDU: 90 00 [08:48:34]wFMCommunicate OK [08:48:34]wFMCommunicate request_size=4 [08:48:34]MH_SAM_APDU [08:48:34]CAPDU: 80 0D 03 02 [08:48:34]Write to MH i2c: E2 08 00 7D 09 80 0D 03 02 00 00 00 00 01 [08:48:34]Write i2c OK [08:48:34]MH_I2C_Read... [08:48:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:34]Read from MH i2c: E2 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 0B 00 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 0B 00 7D 09 00 C4 A6 07 FC BA 5D 1F DE 90 00 83 [08:48:34]RAPDU: C4 A6 07 FC BA 5D 1F DE 90 00 [08:48:34]wFMCommunicate OK [08:48:34]SAM_PROTO_SignData done [08:48:34]FM_MakeSignedData done [08:48:34]CreateOFDProtocolMessage [08:48:34]wFMCommunicate request_size=4 [08:48:34]MH_SAM_APDU [08:48:34]CAPDU: 80 11 00 00 [08:48:34]Write to MH i2c: E2 08 00 7E 09 80 11 00 00 00 00 00 00 01 [08:48:34]Write i2c OK [08:48:34]MH_I2C_Read... [08:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:34]Read from MH i2c: E2 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 17 00 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: E2 17 00 7E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 54 [08:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:48:34]wFMCommunicate OK [08:48:34]CreateOFDProtocolMessage done [08:48:34]OFDSenderStorePacket 186964 [08:48:34]StoreOFDPacket docnum=186964 [08:48: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 0C 01 00 00 AB 90 04 01 96 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 E3 9A 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 54 DA 02 00 35 04 06 00 67 7F 02 79 51 40 C4 A6 07 FC BA 5D 1F DE [08:48:34]CheckFolder [08:48:34]dirname=/storage/ofd_packets [08:48:34]CheckFolder done [08:48:34]ProducePacketName [08:48:34]name=ofd_packets/00186964 [08:48:34]NVStorageSaveData ofd_packets/00186964 [08:48:34]File name is /storage/ofd_packets/00186964 [08:48:34]Write 298 bytes [08:48:34]NVStorageSaveData done [08:48:34]OFDSenderStorePacket done [08:48:34]KKMCreateOFDPacket done [08:48:34]NVStorageSaveData kkm_last_timestamp [08:48:34]File name is /storage/kkm_last_timestamp [08:48:34]Write 4 bytes [08:48:34]NVStorageSaveData done [08:48:34]ExternCall_PrintAddStr [08:48:34]wPrintStart [08:48:34]Write to MH i2c: 01 00 00 7F 09 88 [08:48:34]Write i2c OK [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: 01 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: 01 07 00 [08:48:34]MH_I2C_Read... [08:48:34]Read from MH i2c: 01 07 00 7F 09 00 00 00 00 00 FF 0F 9D [08:48:34]RasterBufferAndPrint [08:48:34]line Счет N : (1)412114 [08:48:34]line ИНН: 02508201610067 [08:48:34]line Контрольно-Кассовый Чек [08:48:34]line ПРОДАЖА [08:48:34]line ТРК (МРК, ГНК) : 5 [08:48:34]line Товар: 2710194210 [08:48:34]line ДТ-К-5 [08:48:34]line 16.530 * 72.60 [08:48:34]line = 1200.08 [08:48:34]line НДС 12% НСП 1% [08:48:34]line > о реализуемом товаре [08:48:34]line ОКРУГЛЕНИЕ: -0.08 [08:48:34]line ИТОГО: 1200.00 [08:48:34]line Внесено: 1200.00 [08:48:34]line СДАЧА: 0.00 [08:48:34]line НСП 1% : 10.62 [08:48:34]line НДС 12% : 127.44 [08:48:34]line Наличными: 1200.00 [08:48:34]line Безнал.: 0.00 [08:48:34]line Место: АЗС № 92 "Партнер Нефть" [08:48:34]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:48:34]line СНО: Общий режим [08:48:34]line Чек 30 19.02.2025 08:48 [08:48:34]line Смена: 647 ФФД: 1.0 [08:48:34]line ЗНМ: 0300000118 [08:48:34]line РНМ: 0000000000091857 [08:48:34]line Версия ККМ: 001 [08:48:34]line ФМ: 0000000000871826 [08:48:34]line ФД: 186964 [08:48:34]line ФПД: 113795200012608 [08:48:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T084835&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186964&fm=113795200012608&tin=02508201610067®Number=0000000000091857&sum=120000 [08:48:34]OFD Sender: Processing packet 186964 [packets to send 49, broken 48] [08:48:34]ProducePacketName [08:48:34]name=ofd_packets/00186964 [08:48:34]OFD Sender: To server: pG, [08:48:34]CommunicateWithHost lk.salyk.kg:30040 [08:48:34]ConnectInit lk.salyk.kg [08:48:34]written 0, free lines is 4095 [08:48:34]Connected sock=10 [08:48: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 AB 90 04 01 96 A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 E3 9A 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 54 DA 02 00 35 04 06 00 67 7F 02 79 51 40 C4 A6 07 FC BA 5D 1F DE [08:48:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 63 E6 47 00 9F 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 54 DA 02 00 F4 03 04 00 37 41 B5 67 B6 04 01 00 00 47 15 6C B3 B9 69 E8 F7 [08:48:35]CommunicateWithHost err = 0 [08:48:35]CheckOFDResponse [08:48:35]1017 (14) - 77093643461234 [08:48:35]1041 (16) - 0000000000871826 [08:48:35]1040 (4) - 186964 [08:48:35]1012 (4) - 19.02.2025 02:25 [08:48:35]1206 (1) - 0 [08:48:35]OFD Sender: Remove packet 186964 [08:48:35]ProducePacketName [08:48:35]name=ofd_packets/00186964 [08:48:35]NVStorageDeleteData [08:48:35]Write to MH i2c: 01 00 00 AA 09 B3 [08:48:35]Write i2c OK [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: 01 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: 01 07 00 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: 01 07 00 AA 09 00 00 00 00 00 FC 0C C2 [08:48:35]RasterBufferAndPrint [08:48:35]line [08:48:35]line [08:48:35]line [08:48:35]line [08:48:35]line [08:48:35]written 0, free lines is 3330 [08:48:35]MH_Cut [08:48:35]Write to MH i2c: D1 01 00 B1 09 01 8C [08:48:35]Write i2c OK [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: D1 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: D1 01 00 [08:48:35]MH_I2C_Read... [08:48:35]Read from MH i2c: D1 01 00 B1 09 00 8B [08:48:35]Write to MH i2c: 01 00 00 B2 09 BB [08:48:35]Write i2c OK [08:48:35]MH_I2C_Read... [08:48:35]OFD Sender: No OFD packet to send [08:48:35]*** Cut start [08:48:35]*** Partial cut [08:48:35]*** CUTSNS_PIN = 1 [08:48:36]*** CUTSNS_PIN = 0 [08:48:36]*** Brake cut motor [08:48:36]Read from MH i2c: 01 [08:48:36]MH_I2C_Read... [08:48:36]*** Stop cut motor [08:48:36]*** Cut end [08:48:36]Read from MH i2c: 01 07 00 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: 01 07 00 B2 09 00 00 00 00 00 FF 0F D0 [08:48:36]process_action close_receipt done [08:48:36]requested_data is exist [08:48:36]produce_requested_data [08:48:36]requested_item fm.sn is exist - process it [08:48:36]wFMCommunicate request_size=4 [08:48:36]MH_SAM_APDU [08:48:36]CAPDU: 80 11 00 00 [08:48:36]Write to MH i2c: E2 08 00 B3 09 80 11 00 00 00 00 00 00 36 [08:48:36]Write i2c OK [08:48:36]MH_I2C_Read... [08:48:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:36]Read from MH i2c: E2 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: E2 17 00 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: E2 17 00 B3 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 89 [08:48:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:48:36]wFMCommunicate OK [08:48:36]requested_item fd.num is exist - process it [08:48:36]SAM_PROTO_GetFieldsCounters [08:48:36]wFMCommunicate request_size=4 [08:48:36]MH_SAM_APDU [08:48:36]CAPDU: 80 13 00 00 [08:48:36]Write to MH i2c: E2 08 00 B4 09 80 13 00 00 00 00 00 00 39 [08:48:36]Write i2c OK [08:48:36]MH_I2C_Read... [08:48:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:36]Read from MH i2c: E2 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: E2 62 00 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: E2 62 00 B4 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 54 DA 02 00 0E 04 04 00 87 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 72 [08:48:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:48:36]wFMCommunicate OK [08:48:36]SAM_PROTO_GetFieldsCounters done [08:48:36]requested_item shift.num is exist - process it [08:48:36]requested_item shift.opened is exist - process it [08:48:36]req_shift_opened [08:48:36]FM_GetShiftState [08:48:36]SAM_PROTO_GetShiftState [08:48:36]wFMCommunicate request_size=4 [08:48:36]MH_SAM_APDU [08:48:36]CAPDU: 80 13 01 00 [08:48:36]Write to MH i2c: E2 08 00 B5 09 80 13 01 00 00 00 00 00 3B [08:48:36]Write i2c OK [08:48:36]MH_I2C_Read... [08:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:36]Read from MH i2c: E2 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: E2 0E 00 [08:48:36]MH_I2C_Read... [08:48:36]Read from MH i2c: E2 0E 00 B5 09 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 BA [08:48:36]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:48:36]wFMCommunicate OK [08:48:36]SAM_PROTO_GetShiftState done [08:48:36]FM_GetShiftState done [08:48:36]req_shift_opened done [08:48:36]requested_item shift.open_date is exist - process it [08:48:36]req_shift_open_date [08:48:36]req_shift_open_date done [08:48:36]produce_requested_data done [08:48:36]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186964,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [08:48:36]process_action_free close_receipt [08:48:36]json_value_free [08:48:36]json_value_free done [08:48:36]process_json_proto returns [08:48:36]Send response to host [08:48:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186964,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [08:48:36]free response buf [08:48:36]execute_script done [08:48:36]execute_script returns [08:48:36]free content buf [08:48:36]Sock 7.Close socket [08:48:36]Sock 7.Thread stoped [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:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:45]accept exits with 9 [08:56:45]New connection [08:56:45]New thread 3067022692 created [08:56:45]Thread 3066879332 joined [08:56:45]Waiting for new connection... [08:56:45] Sock 9.Parse request [08:56:45]Sock 9.Check first char [08:56:45]Sock 9.First char is OK [08:56:45]request: POST /json_proto HTTP/1.0 [08:56:45]Method: POST [08:56:45]URL: /json_proto [08:56:45]Method is POST - this is cgi request [08:56:45]url: /json_proto [08:56:45]query_string will be loaded in cgi processing [08:56:45]execute_cgi json_proto POST (null) [08:56:45]execute_cgi path=json_proto method=POST [08:56:45]POST find Content-Length [08:56:45]Host: 172.17.46.131:8080 [08:56:45]Content-Length: 673 [08:56:45]Content-Type: application/json [08:56:45] [08:56:45]POST finish read [08:56:45]Found Content-Length = 673 [08:56:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412115", "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" : 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" ] } } [08:56:45]execute_script... [08:56:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412115", "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" : 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" ] } } [08:56:45]POST & json_proto [08:56:45]process_json_proto [08:56:45]json parsed OK: [08:56:45]protocol is kg_v1.0 [08:56:45]action value=close_receipt [08:56:45]process_action close_receipt [08:56:45]cmd_close_receipt [08:56:45]MH_GetDate [08:56:45]Write to MH i2c: F0 00 00 B6 09 AE [08:56:45]Write i2c OK [08:56:45]MH_I2C_Read... [08:56:45]Read from MH i2c: F0 [08:56:45]MH_I2C_Read... [08:56:45]Read from MH i2c: F0 09 00 [08:56:45]MH_I2C_Read... [08:56:45]Read from MH i2c: F0 09 00 B6 09 00 CF 9C B5 67 7E 41 4F 65 B1 [08:56:45]GetLastDocTimeStamp 1739954915 [08:56:45]current date 1739955407 [08:56:45]FM_GetShiftState [08:56:45]SAM_PROTO_GetShiftState [08:56:45]wFMCommunicate request_size=4 [08:56:45]MH_SAM_APDU [08:56:45]CAPDU: 80 13 01 00 [08:56:45]Write to MH i2c: E2 08 00 B7 09 80 13 01 00 00 00 00 00 3D [08:56:45]Write i2c OK [08:56:45]MH_I2C_Read... [08:56:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:45]Read from MH i2c: E2 [08:56:45]MH_I2C_Read... [08:56:45]Read from MH i2c: E2 0E 00 [08:56:45]MH_I2C_Read... [08:56:45]Read from MH i2c: E2 0E 00 B7 09 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 BC [08:56:45]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:56:45]wFMCommunicate OK [08:56:45]SAM_PROTO_GetShiftState done [08:56:45]FM_GetShiftState done [08:56:45]opened in 1739929631 [08:56:45]opened+sec_in_day 1740016031 [08:56:45]quantity*price = 70059 [08:56:45]sum+1 = 70060 [08:56:45]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 СНО: Общий режим Чек 31 19.02.2025 08:56 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186965 ФПД: 183517066421618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T085647&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186965&fm=183517066421618&tin=02508201610067®Number=0000000000091857&sum=70000 [08:56:46]StoreToDocumentArchive [08:56:46]shift 647 fd 186965 [08:56:46]save to /storage/0647/doc_00186965 [08:56:46]save last doc name /storage/0647/doc_00186965 to /storage/kkm_last_doc_name [08:56:46]save OK [08:56:46]Clear old archive folders... [08:56:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:56:46]tlvbuf is 005C9140 [08:56:46]SAM_PROTO_ClearQueue [08:56:46]wFMCommunicate request_size=4 [08:56:46]MH_SAM_APDU [08:56:46]CAPDU: 80 09 00 00 [08:56:46]Write to MH i2c: E2 08 00 C4 09 80 09 00 00 00 00 00 00 3F [08:56:46]Write i2c OK [08:56:46]MH_I2C_Read... [08:56:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:46]Read from MH i2c: E2 [08:56:46]MH_I2C_Read... [08:56:46]Read from MH i2c: E2 03 00 [08:56:46]MH_I2C_Read... [08:56:46]Read from MH i2c: E2 03 00 C4 09 00 90 00 41 [08:56:46]RAPDU: 90 00 [08:56:46]wFMCommunicate OK [08:56:46]SAM_PROTO_ClearQueue done [08:56:46]KKMCreateOFDPacket [08:56:46]OFDProtocolAddRootSTLVToBuf [08:56:46]FM_MakeSignedData [08:56:46]FM_MakeSignedData [08:56:46]SAM_PROTO_SignData [08:56:46]wFMCommunicate request_size=4 [08:56:46]MH_SAM_APDU [08:56:46]CAPDU: 80 0D 01 02 [08:56:46]Write to MH i2c: E2 08 00 C5 09 80 0D 01 02 00 00 00 00 47 [08:56:46]Write i2c OK [08:56:46]MH_I2C_Read... [08:56:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:46]Read from MH i2c: E2 [08:56:46]MH_I2C_Read... [08:56:46]Read from MH i2c: E2 03 00 [08:56:46]MH_I2C_Read... [08:56:46]Read from MH i2c: E2 03 00 C5 09 00 90 00 42 [08:56:46]RAPDU: 90 00 [08:56:46]wFMCommunicate OK [08:56:46]wFMCommunicate request_size=255 [08:56:46]MH_SAM_APDU [08:56: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 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 1F 00 00 00 F4 03 04 00 CF 9C 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 55 DA 02 00 35 04 06 00 A6 E8 65 8D [08:56:46]Write to MH i2c: E2 02 01 C6 09 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1F 00 00 00 F4 03 04 00 CF 9C 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 55 DA 02 00 35 04 06 00 A6 E8 65 8D 00 00 34 [08:56:46]Write i2c OK [08:56:46]MH_I2C_Read... [08:56:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:46]Read from MH i2c: E2 [08:56:46]MH_I2C_Read... [08:56:46]Read from MH i2c: E2 03 00 [08:56:46]MH_I2C_Read... [08:56:46]Read from MH i2c: E2 03 00 C6 09 00 90 00 43 [08:56:46]RAPDU: 90 00 [08:56:46]wFMCommunicate OK [08:56:46]wFMCommunicate request_size=7 [08:56:46]MH_SAM_APDU [08:56:46]CAPDU: 80 0D 02 02 02 E5 72 [08:56:46]Write to MH i2c: E2 0A 00 C7 09 80 0D 02 02 02 00 E5 72 00 00 A5 [08:56:46]Write i2c OK [08:56:46]MH_I2C_Read... [08:56:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:46]Read from MH i2c: E2 [08:56:46]MH_I2C_Read... [08:56:46]Read from MH i2c: E2 03 00 [08:56:46]MH_I2C_Read... [08:56:46]Read from MH i2c: E2 03 00 C7 09 00 90 00 44 [08:56:46]RAPDU: 90 00 [08:56:46]wFMCommunicate OK [08:56:46]wFMCommunicate request_size=4 [08:56:46]MH_SAM_APDU [08:56:46]CAPDU: 80 0D 03 02 [08:56:46]Write to MH i2c: E2 08 00 C8 09 80 0D 03 02 00 00 00 00 4C [08:56:46]Write i2c OK [08:56:46]MH_I2C_Read... [08:56:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:46]Read from MH i2c: E2 [08:56:46]MH_I2C_Read... [08:56:46]Read from MH i2c: E2 0B 00 [08:56:46]MH_I2C_Read... [08:56:46]Read from MH i2c: E2 0B 00 C8 09 00 89 A5 6A D8 09 B8 01 DB 90 00 5A [08:56:46]RAPDU: 89 A5 6A D8 09 B8 01 DB 90 00 [08:56:46]wFMCommunicate OK [08:56:46]SAM_PROTO_SignData done [08:56:46]FM_MakeSignedData done [08:56:46]CreateOFDProtocolMessage [08:56:46]wFMCommunicate request_size=4 [08:56:46]MH_SAM_APDU [08:56:46]CAPDU: 80 11 00 00 [08:56:46]Write to MH i2c: E2 08 00 C9 09 80 11 00 00 00 00 00 00 4C [08:56:46]Write i2c OK [08:56:46]MH_I2C_Read... [08:56:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:46]Read from MH i2c: E2 [08:56:46]MH_I2C_Read... [08:56:46]Read from MH i2c: E2 17 00 [08:56:46]MH_I2C_Read... [08:56:46]Read from MH i2c: E2 17 00 C9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9F [08:56:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:56:46]wFMCommunicate OK [08:56:46]CreateOFDProtocolMessage done [08:56:46]OFDSenderStorePacket 186965 [08:56:46]StoreOFDPacket docnum=186965 [08:56: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 D1 9D 04 01 68 CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1F 00 00 00 F4 03 04 00 CF 9C 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 55 DA 02 00 35 04 06 00 A6 E8 65 8D E5 72 89 A5 6A D8 09 B8 01 DB [08:56:46]CheckFolder [08:56:46]dirname=/storage/ofd_packets [08:56:46]CheckFolder done [08:56:46]ProducePacketName [08:56:46]name=ofd_packets/00186965 [08:56:46]NVStorageSaveData ofd_packets/00186965 [08:56:46]File name is /storage/ofd_packets/00186965 [08:56:46]Write 298 bytes [08:56:46]NVStorageSaveData done [08:56:46]OFDSenderStorePacket done [08:56:46]KKMCreateOFDPacket done [08:56:46]NVStorageSaveData kkm_last_timestamp [08:56:46]File name is /storage/kkm_last_timestamp [08:56:46]Write 4 bytes [08:56:46]NVStorageSaveData done [08:56:46]ExternCall_PrintAddStr [08:56:46]wPrintStart [08:56:46]Write to MH i2c: 01 00 00 CA 09 D3 [08:56:46]Write i2c OK [08:56:46]MH_I2C_Read... [08:56:46]Read from MH i2c: 01 [08:56:46]MH_I2C_Read... [08:56:46]Read from MH i2c: 01 07 00 [08:56:46]MH_I2C_Read... [08:56:46]Read from MH i2c: 01 07 00 CA 09 00 00 00 00 00 FF 0F E8 [08:56:46]RasterBufferAndPrint [08:56:46]line Счет N : (1)412115 [08:56:46]line ИНН: 02508201610067 [08:56:46]line Контрольно-Кассовый Чек [08:56:46]line ПРОДАЖА [08:56:46]line ТРК (МРК, ГНК) : 5 [08:56:46]line Товар: 2710194210 [08:56:46]line ДТ-К-5 [08:56:46]line 9.650 * 72.60 [08:56:46]line = 700.59 [08:56:46]line НДС 12% НСП 1% [08:56:46]line > о реализуемом товаре [08:56:46]line ОКРУГЛЕНИЕ: -0.59 [08:56:46]line ИТОГО: 700.00 [08:56:46]line Внесено: 700.00 [08:56:46]line СДАЧА: 0.00 [08:56:46]line НСП 1% : 6.20 [08:56:46]line НДС 12% : 74.40 [08:56:46]line Наличными: 700.00 [08:56:46]line Безнал.: 0.00 [08:56:46]line Место: АЗС № 92 "Партнер Нефть" [08:56:46]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:56:46]line СНО: Общий режим [08:56:46]line Чек 31 19.02.2025 08:56 [08:56:46]line Смена: 647 ФФД: 1.0 [08:56:46]line ЗНМ: 0300000118 [08:56:46]line РНМ: 0000000000091857 [08:56:46]line Версия ККМ: 001 [08:56:46]line ФМ: 0000000000871826 [08:56:46]line ФД: 186965 [08:56:46]line ФПД: 183517066421618 [08:56:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T085647&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186965&fm=183517066421618&tin=02508201610067®Number=0000000000091857&sum=70000 [08:56:47]OFD Sender: Processing packet 186965 [packets to send 49, broken 48] [08:56:47]ProducePacketName [08:56:47]name=ofd_packets/00186965 [08:56:47]OFD Sender: To server: pG, [08:56:47]CommunicateWithHost lk.salyk.kg:30040 [08:56:47]ConnectInit lk.salyk.kg [08:56:47]written 0, free lines is 4095 [08:56:47]Connected sock=10 [08:56: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 D1 9D 04 01 68 CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1F 00 00 00 F4 03 04 00 CF 9C 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 55 DA 02 00 35 04 06 00 A6 E8 65 8D E5 72 89 A5 6A D8 09 B8 01 DB [08:56: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 0F C2 47 00 B4 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 55 DA 02 00 F4 03 04 00 24 43 B5 67 B6 04 01 00 00 38 09 77 8D 11 54 76 75 [08:56:47]CommunicateWithHost err = 0 [08:56:47]CheckOFDResponse [08:56:47]1017 (14) - 77093643461234 [08:56:47]1041 (16) - 0000000000871826 [08:56:47]1040 (4) - 186965 [08:56:47]1012 (4) - 19.02.2025 02:34 [08:56:47]1206 (1) - 0 [08:56:47]OFD Sender: Remove packet 186965 [08:56:47]ProducePacketName [08:56:47]name=ofd_packets/00186965 [08:56:47]NVStorageDeleteData [08:56:47]Write to MH i2c: 01 00 00 F5 09 FE [08:56:47]Write i2c OK [08:56:47]MH_I2C_Read... [08:56:47]Read from MH i2c: 01 [08:56:47]MH_I2C_Read... [08:56:47]Read from MH i2c: 01 07 00 [08:56:47]MH_I2C_Read... [08:56:47]Read from MH i2c: 01 07 00 F5 09 00 00 00 00 00 FD 0C 0E [08:56:47]RasterBufferAndPrint [08:56:47]line [08:56:47]line [08:56:47]line [08:56:47]line [08:56:47]line [08:56:47]written 0, free lines is 3331 [08:56:47]MH_Cut [08:56:47]Write to MH i2c: D1 01 00 FC 09 01 D7 [08:56:47]Write i2c OK [08:56:47]MH_I2C_Read... [08:56:47]Read from MH i2c: D1 [08:56:47]MH_I2C_Read... [08:56:47]Read from MH i2c: D1 01 00 [08:56:47]MH_I2C_Read... [08:56:47]Read from MH i2c: D1 01 00 FC 09 00 D6 [08:56:47]Write to MH i2c: 01 00 00 FD 09 06 [08:56:47]Write i2c OK [08:56:47]MH_I2C_Read... [08:56:48]OFD Sender: No OFD packet to send [08:56:48]*** Cut start [08:56:48]*** Partial cut [08:56:48]*** CUTSNS_PIN = 1 [08:56:48]*** CUTSNS_PIN = 0 [08:56:48]*** Brake cut motor [08:56:49]Read from MH i2c: 01 [08:56:49]MH_I2C_Read... [08:56:49]*** Stop cut motor [08:56:49]*** Cut end [08:56:49]Read from MH i2c: 01 07 00 [08:56:49]MH_I2C_Read... [08:56:49]Read from MH i2c: 01 07 00 FD 09 00 00 00 00 00 FF 0F 1B [08:56:49]process_action close_receipt done [08:56:49]requested_data is exist [08:56:49]produce_requested_data [08:56:49]requested_item fm.sn is exist - process it [08:56:49]wFMCommunicate request_size=4 [08:56:49]MH_SAM_APDU [08:56:49]CAPDU: 80 11 00 00 [08:56:49]Write to MH i2c: E2 08 00 FE 09 80 11 00 00 00 00 00 00 81 [08:56:49]Write i2c OK [08:56:49]MH_I2C_Read... [08:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:49]Read from MH i2c: E2 [08:56:49]MH_I2C_Read... [08:56:49]Read from MH i2c: E2 17 00 [08:56:49]MH_I2C_Read... [08:56:49]Read from MH i2c: E2 17 00 FE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D4 [08: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 [08:56:49]wFMCommunicate OK [08:56:49]requested_item fd.num is exist - process it [08:56:49]SAM_PROTO_GetFieldsCounters [08:56:49]wFMCommunicate request_size=4 [08:56:49]MH_SAM_APDU [08:56:49]CAPDU: 80 13 00 00 [08:56:49]Write to MH i2c: E2 08 00 FF 09 80 13 00 00 00 00 00 00 84 [08:56:49]Write i2c OK [08:56:49]MH_I2C_Read... [08:56:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:49]Read from MH i2c: E2 [08:56:49]MH_I2C_Read... [08:56:49]Read from MH i2c: E2 62 00 [08:56:49]MH_I2C_Read... [08:56:49]Read from MH i2c: E2 62 00 FF 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 55 DA 02 00 0E 04 04 00 87 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 C1 [08:56:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:56:49]wFMCommunicate OK [08:56:49]SAM_PROTO_GetFieldsCounters done [08:56:49]requested_item shift.num is exist - process it [08:56:49]requested_item shift.opened is exist - process it [08:56:49]req_shift_opened [08:56:49]FM_GetShiftState [08:56:49]SAM_PROTO_GetShiftState [08:56:49]wFMCommunicate request_size=4 [08:56:49]MH_SAM_APDU [08:56:49]CAPDU: 80 13 01 00 [08:56:49]Write to MH i2c: E2 08 00 00 0A 80 13 01 00 00 00 00 00 87 [08:56:49]Write i2c OK [08:56:49]MH_I2C_Read... [08:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:49]Read from MH i2c: E2 [08:56:49]MH_I2C_Read... [08:56:49]Read from MH i2c: E2 0E 00 [08:56:49]MH_I2C_Read... [08:56:49]Read from MH i2c: E2 0E 00 00 0A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 06 [08:56:49]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:56:49]wFMCommunicate OK [08:56:49]SAM_PROTO_GetShiftState done [08:56:49]FM_GetShiftState done [08:56:49]req_shift_opened done [08:56:49]requested_item shift.open_date is exist - process it [08:56:49]req_shift_open_date [08:56:49]req_shift_open_date done [08:56:49]produce_requested_data done [08:56:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186965,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [08:56:49]process_action_free close_receipt [08:56:49]json_value_free [08:56:49]json_value_free done [08:56:49]process_json_proto returns [08:56:49]Send response to host [08:56:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186965,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [08:56:49]free response buf [08:56:49]execute_script done [08:56:49]execute_script returns [08:56:49]free content buf [08:56:49]Sock 9.Close socket [08:56:49]Sock 9.Thread stoped [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:11]accept exits with 7 [08:58:11]New connection [08:58:11]New thread 3066879332 created [08:58:11]Thread 3067022692 joined [08:58:11]Waiting for new connection... [08:58:11] Sock 7.Parse request [08:58:11]Sock 7.Check first char [08:58:11]Sock 7.First char is OK [08:58:11]request: POST /json_proto HTTP/1.0 [08:58:11]Method: POST [08:58:11]URL: /json_proto [08:58:11]Method is POST - this is cgi request [08:58:11]url: /json_proto [08:58:11]query_string will be loaded in cgi processing [08:58:11]execute_cgi json_proto POST (null) [08:58:11]execute_cgi path=json_proto method=POST [08:58:11]POST find Content-Length [08:58:11]Host: 172.17.46.131:8080 [08:58:11]Content-Length: 799 [08:58:11]Content-Type: application/json [08:58:11] [08:58:11]POST finish read [08:58:11]Found Content-Length = 799 [08:58:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412116", "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" : 40.000, "sum" : 2904.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2904.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:11]execute_script... [08:58:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412116", "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" : 40.000, "sum" : 2904.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2904.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:11]POST & json_proto [08:58:11]process_json_proto [08:58:11]json parsed OK: [08:58:11]protocol is kg_v1.0 [08:58:11]action value=close_receipt [08:58:11]process_action close_receipt [08:58:11]cmd_close_receipt [08:58:11]MH_GetDate [08:58:11]Write to MH i2c: F0 00 00 01 0A FA [08:58:11]Write i2c OK [08:58:11]MH_I2C_Read... [08:58:11]Read from MH i2c: F0 [08:58:11]MH_I2C_Read... [08:58:11]Read from MH i2c: F0 09 00 [08:58:11]MH_I2C_Read... [08:58:11]Read from MH i2c: F0 09 00 01 0A 00 25 9D B5 67 7E 41 4F 65 54 [08:58:11]GetLastDocTimeStamp 1739955407 [08:58:11]current date 1739955493 [08:58:11]FM_GetShiftState [08:58:11]SAM_PROTO_GetShiftState [08:58:11]wFMCommunicate request_size=4 [08:58:11]MH_SAM_APDU [08:58:11]CAPDU: 80 13 01 00 [08:58:11]Write to MH i2c: E2 08 00 02 0A 80 13 01 00 00 00 00 00 89 [08:58:11]Write i2c OK [08:58:11]MH_I2C_Read... [08:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:11]Read from MH i2c: E2 [08:58:11]MH_I2C_Read... [08:58:11]Read from MH i2c: E2 0E 00 [08:58:11]MH_I2C_Read... [08:58:11]Read from MH i2c: E2 0E 00 02 0A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 08 [08:58:11]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:58:11]wFMCommunicate OK [08:58:11]SAM_PROTO_GetShiftState done [08:58:11]FM_GetShiftState done [08:58:11]opened in 1739929631 [08:58:11]opened+sec_in_day 1740016031 [08:58:11]quantity*price = 290400 [08:58:11]sum+1 = 290401 [08:58:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2904.00 НСП 1% : 25.70 НДС 12% : 308.39 Наличными: 0.00 Безнал.: 2904.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 32 19.02.2025 08:58 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186966 ФПД: 148523394903662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T085813&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186966&fm=148523394903662&tin=02508201610067®Number=0000000000091857&sum=290400 [08:58:12]StoreToDocumentArchive [08:58:12]shift 647 fd 186966 [08:58:12]save to /storage/0647/doc_00186966 [08:58:12]save last doc name /storage/0647/doc_00186966 to /storage/kkm_last_doc_name [08:58:12]save OK [08:58:12]Clear old archive folders... [08:58:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:58:12]tlvbuf is 005CFFE0 [08:58:12]SAM_PROTO_ClearQueue [08:58:12]wFMCommunicate request_size=4 [08:58:12]MH_SAM_APDU [08:58:12]CAPDU: 80 09 00 00 [08:58:12]Write to MH i2c: E2 08 00 0F 0A 80 09 00 00 00 00 00 00 8B [08:58:12]Write i2c OK [08:58:12]MH_I2C_Read... [08:58:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:12]Read from MH i2c: E2 [08:58:12]MH_I2C_Read... [08:58:12]Read from MH i2c: E2 03 00 [08:58:12]MH_I2C_Read... [08:58:12]Read from MH i2c: E2 03 00 0F 0A 00 90 00 8D [08:58:12]RAPDU: 90 00 [08:58:12]wFMCommunicate OK [08:58:12]SAM_PROTO_ClearQueue done [08:58:12]KKMCreateOFDPacket [08:58:12]OFDProtocolAddRootSTLVToBuf [08:58:12]FM_MakeSignedData [08:58:12]FM_MakeSignedData [08:58:12]SAM_PROTO_SignData [08:58:12]wFMCommunicate request_size=4 [08:58:12]MH_SAM_APDU [08:58:12]CAPDU: 80 0D 01 02 [08:58:12]Write to MH i2c: E2 08 00 10 0A 80 0D 01 02 00 00 00 00 93 [08:58:12]Write i2c OK [08:58:12]MH_I2C_Read... [08:58:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:12]Read from MH i2c: E2 [08:58:12]MH_I2C_Read... [08:58:12]Read from MH i2c: E2 03 00 [08:58:12]MH_I2C_Read... [08:58:12]Read from MH i2c: E2 03 00 10 0A 00 90 00 8E [08:58:12]RAPDU: 90 00 [08:58:12]wFMCommunicate OK [08:58:12]wFMCommunicate request_size=255 [08:58:12]MH_SAM_APDU [08:58:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 60 6E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 25 9D 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 56 DA 02 00 35 04 06 00 87 14 CC 31 [08:58:12]Write to MH i2c: E2 02 01 11 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 60 6E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 25 9D 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 56 DA 02 00 35 04 06 00 87 14 CC 31 00 00 13 [08:58:12]Write i2c OK [08:58:12]MH_I2C_Read... [08:58:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:12]Read from MH i2c: E2 [08:58:12]MH_I2C_Read... [08:58:12]Read from MH i2c: E2 03 00 [08:58:12]MH_I2C_Read... [08:58:12]Read from MH i2c: E2 03 00 11 0A 00 90 00 8F [08:58:12]RAPDU: 90 00 [08:58:12]wFMCommunicate OK [08:58:12]wFMCommunicate request_size=7 [08:58:12]MH_SAM_APDU [08:58:12]CAPDU: 80 0D 02 02 02 AE 6E [08:58:12]Write to MH i2c: E2 0A 00 12 0A 80 0D 02 02 02 00 AE 6E 00 00 B6 [08:58:12]Write i2c OK [08:58:12]MH_I2C_Read... [08:58:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:12]Read from MH i2c: E2 [08:58:12]MH_I2C_Read... [08:58:12]Read from MH i2c: E2 03 00 [08:58:12]MH_I2C_Read... [08:58:12]Read from MH i2c: E2 03 00 12 0A 00 90 00 90 [08:58:12]RAPDU: 90 00 [08:58:12]wFMCommunicate OK [08:58:12]wFMCommunicate request_size=4 [08:58:12]MH_SAM_APDU [08:58:12]CAPDU: 80 0D 03 02 [08:58:12]Write to MH i2c: E2 08 00 13 0A 80 0D 03 02 00 00 00 00 98 [08:58:12]Write i2c OK [08:58:12]MH_I2C_Read... [08:58:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:12]Read from MH i2c: E2 [08:58:12]MH_I2C_Read... [08:58:12]Read from MH i2c: E2 0B 00 [08:58:12]MH_I2C_Read... [08:58:12]Read from MH i2c: E2 0B 00 13 0A 00 40 42 A4 2B 44 78 DD 3B 90 00 BE [08:58:12]RAPDU: 40 42 A4 2B 44 78 DD 3B 90 00 [08:58:12]wFMCommunicate OK [08:58:12]SAM_PROTO_SignData done [08:58:12]FM_MakeSignedData done [08:58:12]CreateOFDProtocolMessage [08:58:12]wFMCommunicate request_size=4 [08:58:12]MH_SAM_APDU [08:58:12]CAPDU: 80 11 00 00 [08:58:12]Write to MH i2c: E2 08 00 14 0A 80 11 00 00 00 00 00 00 98 [08:58:12]Write i2c OK [08:58:12]MH_I2C_Read... [08:58:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:12]Read from MH i2c: E2 [08:58:12]MH_I2C_Read... [08:58:12]Read from MH i2c: E2 17 00 [08:58:12]MH_I2C_Read... [08:58:12]Read from MH i2c: E2 17 00 14 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EB [08:58:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:58:12]wFMCommunicate OK [08:58:12]CreateOFDProtocolMessage done [08:58:12]OFDSenderStorePacket 186966 [08:58:12]StoreOFDPacket docnum=186966 [08:58: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 0C 01 00 00 8C CA 04 01 7E 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 60 6E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 25 9D 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 56 DA 02 00 35 04 06 00 87 14 CC 31 AE 6E 40 42 A4 2B 44 78 DD 3B [08:58:12]CheckFolder [08:58:12]dirname=/storage/ofd_packets [08:58:12]CheckFolder done [08:58:12]ProducePacketName [08:58:12]name=ofd_packets/00186966 [08:58:12]NVStorageSaveData ofd_packets/00186966 [08:58:12]File name is /storage/ofd_packets/00186966 [08:58:12]Write 298 bytes [08:58:12]NVStorageSaveData done [08:58:12]OFDSenderStorePacket done [08:58:12]KKMCreateOFDPacket done [08:58:12]NVStorageSaveData kkm_last_timestamp [08:58:12]File name is /storage/kkm_last_timestamp [08:58:12]Write 4 bytes [08:58:12]NVStorageSaveData done [08:58:12]ExternCall_PrintAddStr [08:58:12]wPrintStart [08:58:12]Write to MH i2c: 01 00 00 15 0A 1F [08:58:12]Write i2c OK [08:58:12]MH_I2C_Read... [08:58:12]Read from MH i2c: 01 [08:58:12]MH_I2C_Read... [08:58:12]Read from MH i2c: 01 07 00 [08:58:12]MH_I2C_Read... [08:58:12]Read from MH i2c: 01 07 00 15 0A 00 00 00 00 00 FF 0F 34 [08:58:12]RasterBufferAndPrint [08:58:12]line Счет N : (1)412116 [08:58:12]line ИНН: 02508201610067 [08:58:12]line Контрольно-Кассовый Чек [08:58:12]line ПРОДАЖА [08:58:12]line ТРК (МРК, ГНК) : 6 [08:58:12]line Товар: 2710194210 [08:58:12]line ДТ-К-5 [08:58:12]line 40.000 * 72.60 [08:58:12]line = 2904.00 [08:58:12]line НДС 12% НСП 1% [08:58:12]line > о реализуемом товаре [08:58:12]line ИТОГО: 2904.00 [08:58:12]line НСП 1% : 25.70 [08:58:12]line НДС 12% : 308.39 [08:58:12]line Наличными: 0.00 [08:58:12]line Безнал.: 2904.00 [08:58:12]line Место: АЗС № 92 "Партнер Нефть" [08:58:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:58:12]line СНО: Общий режим [08:58:12]line Чек 32 19.02.2025 08:58 [08:58:12]line Смена: 647 ФФД: 1.0 [08:58:12]line ЗНМ: 0300000118 [08:58:12]line РНМ: 0000000000091857 [08:58:12]line Версия ККМ: 001 [08:58:12]line Платежная система: O! деньги [08:58:12]line ФМ: 0000000000871826 [08:58:12]line ФД: 186966 [08:58:12]line ФПД: 148523394903662 [08:58:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T085813&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186966&fm=148523394903662&tin=02508201610067®Number=0000000000091857&sum=290400 [08:58:13]OFD Sender: Processing packet 186966 [packets to send 49, broken 48] [08:58:13]ProducePacketName [08:58:13]name=ofd_packets/00186966 [08:58:13]OFD Sender: To server: pG, [08:58:13]CommunicateWithHost lk.salyk.kg:30040 [08:58:13]ConnectInit lk.salyk.kg [08:58:13]written 0, free lines is 4095 [08:58:13]Connected sock=9 [08:58:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 8C CA 04 01 7E 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 60 6E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 25 9D 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 56 DA 02 00 35 04 06 00 87 14 CC 31 AE 6E 40 42 A4 2B 44 78 DD 3B [08:58: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 95 E9 47 00 78 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 56 DA 02 00 F4 03 04 00 7A 43 B5 67 B6 04 01 00 00 B2 F6 3D 26 F1 CB 74 3D [08:58:13]CommunicateWithHost err = 0 [08:58:13]CheckOFDResponse [08:58:13]1017 (14) - 77093643461234 [08:58:13]1041 (16) - 0000000000871826 [08:58:13]1040 (4) - 186966 [08:58:13]1012 (4) - 19.02.2025 02:35 [08:58:13]1206 (1) - 0 [08:58:13]OFD Sender: Remove packet 186966 [08:58:13]ProducePacketName [08:58:13]name=ofd_packets/00186966 [08:58:13]NVStorageDeleteData [08:58:13]Write to MH i2c: 01 00 00 3F 0A 49 [08:58:13]Write i2c OK [08:58:13]MH_I2C_Read... [08:58:13]Read from MH i2c: 01 [08:58:13]MH_I2C_Read... [08:58:13]Read from MH i2c: 01 07 00 [08:58:13]MH_I2C_Read... [08:58:13]Read from MH i2c: 01 07 00 3F 0A 00 00 00 00 00 04 0D 61 [08:58:13]RasterBufferAndPrint [08:58:13]line [08:58:13]line [08:58:13]line [08:58:13]line [08:58:13]line [08:58:13]written 0, free lines is 3339 [08:58:13]MH_Cut [08:58:13]Write to MH i2c: D1 01 00 46 0A 01 22 [08:58:13]Write i2c OK [08:58:13]MH_I2C_Read... [08:58:13]Read from MH i2c: D1 [08:58:13]MH_I2C_Read... [08:58:13]Read from MH i2c: D1 01 00 [08:58:13]MH_I2C_Read... [08:58:13]Read from MH i2c: D1 01 00 46 0A 00 21 [08:58:13]Write to MH i2c: 01 00 00 47 0A 51 [08:58:13]Write i2c OK [08:58:13]MH_I2C_Read... [08:58:14]OFD Sender: No OFD packet to send [08:58:14]*** Cut start [08:58:14]*** Partial cut [08:58:14]*** CUTSNS_PIN = 1 [08:58:14]*** CUTSNS_PIN = 0 [08:58:14]*** Brake cut motor [08:58:15]Read from MH i2c: 01 [08:58:15]MH_I2C_Read... [08:58:15]*** Stop cut motor [08:58:15]*** Cut end [08:58:15]Read from MH i2c: 01 07 00 [08:58:15]MH_I2C_Read... [08:58:15]Read from MH i2c: 01 07 00 47 0A 00 00 00 00 00 FF 0F 66 [08:58:15]process_action close_receipt done [08:58:15]requested_data is exist [08:58:15]produce_requested_data [08:58:15]requested_item fm.sn is exist - process it [08:58:15]wFMCommunicate request_size=4 [08:58:15]MH_SAM_APDU [08:58:15]CAPDU: 80 11 00 00 [08:58:15]Write to MH i2c: E2 08 00 48 0A 80 11 00 00 00 00 00 00 CC [08:58:15]Write i2c OK [08:58:15]MH_I2C_Read... [08:58:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:15]Read from MH i2c: E2 [08:58:15]MH_I2C_Read... [08:58:15]Read from MH i2c: E2 17 00 [08:58:15]MH_I2C_Read... [08:58:15]Read from MH i2c: E2 17 00 48 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1F [08:58: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:58:15]wFMCommunicate OK [08:58:15]requested_item fd.num is exist - process it [08:58:15]SAM_PROTO_GetFieldsCounters [08:58:15]wFMCommunicate request_size=4 [08:58:15]MH_SAM_APDU [08:58:15]CAPDU: 80 13 00 00 [08:58:15]Write to MH i2c: E2 08 00 49 0A 80 13 00 00 00 00 00 00 CF [08:58:15]Write i2c OK [08:58:15]MH_I2C_Read... [08:58:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:15]Read from MH i2c: E2 [08:58:15]MH_I2C_Read... [08:58:15]Read from MH i2c: E2 62 00 [08:58:15]MH_I2C_Read... [08:58:15]Read from MH i2c: E2 62 00 49 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 56 DA 02 00 0E 04 04 00 87 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 10 [08:58:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:58:15]wFMCommunicate OK [08:58:15]SAM_PROTO_GetFieldsCounters done [08:58:15]requested_item shift.num is exist - process it [08:58:15]requested_item shift.opened is exist - process it [08:58:15]req_shift_opened [08:58:15]FM_GetShiftState [08:58:15]SAM_PROTO_GetShiftState [08:58:15]wFMCommunicate request_size=4 [08:58:15]MH_SAM_APDU [08:58:15]CAPDU: 80 13 01 00 [08:58:15]Write to MH i2c: E2 08 00 4A 0A 80 13 01 00 00 00 00 00 D1 [08:58:15]Write i2c OK [08:58:15]MH_I2C_Read... [08:58:15]Read from MH i2c: E2 [08:58:15]MH_I2C_Read... [08:58:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:15]Read from MH i2c: E2 0E 00 [08:58:15]MH_I2C_Read... [08:58:15]Read from MH i2c: E2 0E 00 4A 0A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 50 [08:58:15]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [08:58:15]wFMCommunicate OK [08:58:15]SAM_PROTO_GetShiftState done [08:58:15]FM_GetShiftState done [08:58:15]req_shift_opened done [08:58:15]requested_item shift.open_date is exist - process it [08:58:15]req_shift_open_date [08:58:15]req_shift_open_date done [08:58:15]produce_requested_data done [08:58:15]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186966,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [08:58:15]process_action_free close_receipt [08:58:15]json_value_free [08:58:15]json_value_free done [08:58:15]process_json_proto returns [08:58:15]Send response to host [08:58:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186966,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [08:58:15]free response buf [08:58:15]execute_script done [08:58:15]execute_script returns [08:58:15]free content buf [08:58:15]Sock 7.Close socket [08:58:15]Sock 7.Thread stoped [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:29]OFD Sender: No OFD packet to send [08:58:34]OFD Sender: No OFD packet to send [08:58:39]OFD Sender: No OFD packet to send [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:49]OFD Sender: No OFD packet to send [08:59:54]OFD Sender: No OFD packet to send [08:59:59]OFD Sender: No OFD packet to send [09:00:04]OFD Sender: No OFD packet to send [09:00:09]OFD Sender: No OFD packet to send [09:00:14]OFD Sender: No OFD packet to send [09:00:19]OFD Sender: No OFD packet to send [09:00:24]OFD Sender: No OFD packet to send [09:00:29]OFD Sender: No OFD packet to send [09:00:34]OFD Sender: No OFD packet to send [09:00:39]OFD Sender: No OFD packet to send [09:00:44]OFD Sender: No OFD packet to send [09:00:49]OFD Sender: No OFD packet to send [09:00:54]OFD Sender: No OFD packet to send [09:00:59]OFD Sender: No OFD packet to send [09:01:04]OFD Sender: No OFD packet to send [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]OFD Sender: No OFD packet to send [09:02:19]OFD Sender: No OFD packet to send [09:02:24]OFD Sender: No OFD packet to send [09:02:29]OFD Sender: No OFD packet to send [09:02:34]OFD Sender: No OFD packet to send [09:02:39]OFD Sender: No OFD packet to send [09:02:44]OFD Sender: No OFD packet to send [09:02:49]OFD Sender: No OFD packet to send [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:19]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:39]OFD Sender: No OFD packet to send [09:03:44]OFD Sender: No OFD packet to send [09:03:49]OFD Sender: No OFD packet to send [09:03:54]OFD Sender: No OFD packet to send [09:03:59]OFD Sender: No OFD packet to send [09:04:04]OFD Sender: No OFD packet to send [09:04:09]OFD Sender: No OFD packet to send [09:04:14]OFD Sender: No OFD packet to send [09:04:19]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:29]OFD Sender: No OFD packet to send [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:52]accept exits with 10 [09:04:52]New connection [09:04:52]New thread 3067022692 created [09:04:52]Thread 3066879332 joined [09:04:52]Waiting for new connection... [09:04:52] Sock 10.Parse request [09:04:52]Sock 10.Check first char [09:04:52]Sock 10.First char is OK [09:04:52]request: POST /json_proto HTTP/1.0 [09:04:52]Method: POST [09:04:52]URL: /json_proto [09:04:52]Method is POST - this is cgi request [09:04:52]url: /json_proto [09:04:52]query_string will be loaded in cgi processing [09:04:52]execute_cgi json_proto POST (null) [09:04:52]execute_cgi path=json_proto method=POST [09:04:52]POST find Content-Length [09:04:52]Host: 172.17.46.131:8080 [09:04:52]Content-Length: 682 [09:04:52]Content-Type: application/json [09:04:52] [09:04:52]POST finish read [09:04:52]Found Content-Length = 682 [09:04:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412117", "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" ] } } [09:04:52]execute_script... [09:04: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)412117", "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" ] } } [09:04:52]POST & json_proto [09:04:52]process_json_proto [09:04:52]json parsed OK: [09:04:52]protocol is kg_v1.0 [09:04:52]action value=close_receipt [09:04:52]process_action close_receipt [09:04:52]cmd_close_receipt [09:04:52]MH_GetDate [09:04:52]Write to MH i2c: F0 00 00 4B 0A 44 [09:04:52]Write i2c OK [09:04:52]MH_I2C_Read... [09:04:52]Read from MH i2c: F0 [09:04:52]MH_I2C_Read... [09:04:52]Read from MH i2c: F0 09 00 [09:04:52]MH_I2C_Read... [09:04:52]Read from MH i2c: F0 09 00 4B 0A 00 B7 9E B5 67 7E 41 4F 65 31 [09:04:52]GetLastDocTimeStamp 1739955493 [09:04:52]current date 1739955895 [09:04:52]FM_GetShiftState [09:04:52]SAM_PROTO_GetShiftState [09:04:52]wFMCommunicate request_size=4 [09:04:52]MH_SAM_APDU [09:04:52]CAPDU: 80 13 01 00 [09:04:52]Write to MH i2c: E2 08 00 4C 0A 80 13 01 00 00 00 00 00 D3 [09:04:52]Write i2c OK [09:04:52]MH_I2C_Read... [09:04:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:52]Read from MH i2c: E2 [09:04:52]MH_I2C_Read... [09:04:52]Read from MH i2c: E2 0E 00 [09:04:52]MH_I2C_Read... [09:04:52]Read from MH i2c: E2 0E 00 4C 0A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 52 [09:04:52]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:04:52]wFMCommunicate OK [09:04:52]SAM_PROTO_GetShiftState done [09:04:52]FM_GetShiftState done [09:04:52]opened in 1739929631 [09:04:52]opened+sec_in_day 1740016031 [09:04:52]quantity*price = 100012 [09:04:52]sum+1 = 100014 [09:04:52]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 СНО: Общий режим Чек 33 19.02.2025 09:04 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186967 ФПД: 260007214487714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T090455&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186967&fm=260007214487714&tin=02508201610067®Number=0000000000091857&sum=100000 [09:04:53]StoreToDocumentArchive [09:04:53]shift 647 fd 186967 [09:04:53]save to /storage/0647/doc_00186967 [09:04:53]save last doc name /storage/0647/doc_00186967 to /storage/kkm_last_doc_name [09:04:53]save OK [09:04:53]Clear old archive folders... [09:04:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:04:53]tlvbuf is 005CAA40 [09:04:53]SAM_PROTO_ClearQueue [09:04:53]wFMCommunicate request_size=4 [09:04:53]MH_SAM_APDU [09:04:53]CAPDU: 80 09 00 00 [09:04:53]Write to MH i2c: E2 08 00 59 0A 80 09 00 00 00 00 00 00 D5 [09:04:53]Write i2c OK [09:04:53]MH_I2C_Read... [09:04:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:53]Read from MH i2c: E2 [09:04:53]MH_I2C_Read... [09:04:53]Read from MH i2c: E2 03 00 [09:04:53]MH_I2C_Read... [09:04:53]Read from MH i2c: E2 03 00 59 0A 00 90 00 D7 [09:04:53]RAPDU: 90 00 [09:04:53]wFMCommunicate OK [09:04:53]SAM_PROTO_ClearQueue done [09:04:53]KKMCreateOFDPacket [09:04:53]OFDProtocolAddRootSTLVToBuf [09:04:53]FM_MakeSignedData [09:04:53]FM_MakeSignedData [09:04:53]SAM_PROTO_SignData [09:04:53]wFMCommunicate request_size=4 [09:04:53]MH_SAM_APDU [09:04:53]CAPDU: 80 0D 01 02 [09:04:53]Write to MH i2c: E2 08 00 5A 0A 80 0D 01 02 00 00 00 00 DD [09:04:53]Write i2c OK [09:04:53]MH_I2C_Read... [09:04:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:53]Read from MH i2c: E2 [09:04:53]MH_I2C_Read... [09:04:53]Read from MH i2c: E2 03 00 [09:04:53]MH_I2C_Read... [09:04:53]Read from MH i2c: E2 03 00 5A 0A 00 90 00 D8 [09:04:53]RAPDU: 90 00 [09:04:53]wFMCommunicate OK [09:04:53]wFMCommunicate request_size=255 [09:04:53]MH_SAM_APDU [09:04:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 21 00 00 00 F4 03 04 00 B7 9E 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 57 DA 02 00 35 04 06 00 EC [09:04:53]Write to MH i2c: E2 02 01 5B 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 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 21 00 00 00 F4 03 04 00 B7 9E 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 57 DA 02 00 35 04 06 00 EC 00 00 88 [09:04:53]Write i2c OK [09:04:53]MH_I2C_Read... [09:04:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:54]Read from MH i2c: E2 [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: E2 03 00 [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: E2 03 00 5B 0A 00 90 00 D9 [09:04:54]RAPDU: 90 00 [09:04:54]wFMCommunicate OK [09:04:54]wFMCommunicate request_size=10 [09:04:54]MH_SAM_APDU [09:04:54]CAPDU: 80 0D 02 02 05 79 A5 A8 98 A2 [09:04:54]Write to MH i2c: E2 0D 00 5C 0A 80 0D 02 02 05 00 79 A5 A8 98 A2 00 00 EA [09:04:54]Write i2c OK [09:04:54]MH_I2C_Read... [09:04:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:54]Read from MH i2c: E2 [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: E2 03 00 [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: E2 03 00 5C 0A 00 90 00 DA [09:04:54]RAPDU: 90 00 [09:04:54]wFMCommunicate OK [09:04:54]wFMCommunicate request_size=4 [09:04:54]MH_SAM_APDU [09:04:54]CAPDU: 80 0D 03 02 [09:04:54]Write to MH i2c: E2 08 00 5D 0A 80 0D 03 02 00 00 00 00 E2 [09:04:54]Write i2c OK [09:04:54]MH_I2C_Read... [09:04:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:54]Read from MH i2c: E2 [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: E2 0B 00 [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: E2 0B 00 5D 0A 00 07 3B 54 21 66 87 12 D1 90 00 6A [09:04:54]RAPDU: 07 3B 54 21 66 87 12 D1 90 00 [09:04:54]wFMCommunicate OK [09:04:54]SAM_PROTO_SignData done [09:04:54]FM_MakeSignedData done [09:04:54]CreateOFDProtocolMessage [09:04:54]wFMCommunicate request_size=4 [09:04:54]MH_SAM_APDU [09:04:54]CAPDU: 80 11 00 00 [09:04:54]Write to MH i2c: E2 08 00 5E 0A 80 11 00 00 00 00 00 00 E2 [09:04:54]Write i2c OK [09:04:54]MH_I2C_Read... [09:04:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:54]Read from MH i2c: E2 [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: E2 17 00 [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: E2 17 00 5E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 35 [09:04: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:04:54]wFMCommunicate OK [09:04:54]CreateOFDProtocolMessage done [09:04:54]OFDSenderStorePacket 186967 [09:04:54]StoreOFDPacket docnum=186967 [09:04: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 F5 40 07 01 82 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 21 00 00 00 F4 03 04 00 B7 9E 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 57 DA 02 00 35 04 06 00 EC 79 A5 A8 98 A2 07 3B 54 21 66 87 12 D1 [09:04:54]CheckFolder [09:04:54]dirname=/storage/ofd_packets [09:04:54]CheckFolder done [09:04:54]ProducePacketName [09:04:54]name=ofd_packets/00186967 [09:04:54]NVStorageSaveData ofd_packets/00186967 [09:04:54]File name is /storage/ofd_packets/00186967 [09:04:54]Write 301 bytes [09:04:54]NVStorageSaveData done [09:04:54]OFDSenderStorePacket done [09:04:54]KKMCreateOFDPacket done [09:04:54]NVStorageSaveData kkm_last_timestamp [09:04:54]File name is /storage/kkm_last_timestamp [09:04:54]Write 4 bytes [09:04:54]NVStorageSaveData done [09:04:54]ExternCall_PrintAddStr [09:04:54]wPrintStart [09:04:54]Write to MH i2c: 01 00 00 5F 0A 69 [09:04:54]Write i2c OK [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: 01 [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: 01 07 00 [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: 01 07 00 5F 0A 00 00 00 00 00 FF 0F 7E [09:04:54]RasterBufferAndPrint [09:04:54]line Счет N : (1)412117 [09:04:54]line ИНН: 02508201610067 [09:04:54]line Контрольно-Кассовый Чек [09:04:54]line ПРОДАЖА [09:04:54]line ТРК (МРК, ГНК) : 23 [09:04:54]line Товар: 2710124500 [09:04:54]line Аи-95-К-5 [09:04:54]line 13.910 * 71.90 [09:04:54]line = 1000.13 [09:04:54]line НДС 12% НСП 1% [09:04:54]line > о реализуемом товаре [09:04:54]line ОКРУГЛЕНИЕ: -0.13 [09:04:54]line ИТОГО: 1000.00 [09:04:54]line Внесено: 1000.00 [09:04:54]line СДАЧА: 0.00 [09:04:54]line НСП 1% : 8.85 [09:04:54]line НДС 12% : 106.21 [09:04:54]line Наличными: 1000.00 [09:04:54]line Безнал.: 0.00 [09:04:54]line Место: АЗС № 92 "Партнер Нефть" [09:04:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:04:54]line СНО: Общий режим [09:04:54]line Чек 33 19.02.2025 09:04 [09:04:54]line Смена: 647 ФФД: 1.0 [09:04:54]line ЗНМ: 0300000118 [09:04:54]line РНМ: 0000000000091857 [09:04:54]line Версия ККМ: 001 [09:04:54]line ФМ: 0000000000871826 [09:04:54]line ФД: 186967 [09:04:54]line ФПД: 260007214487714 [09:04:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T090455&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186967&fm=260007214487714&tin=02508201610067®Number=0000000000091857&sum=100000 [09:04:54]OFD Sender: Processing packet 186967 [packets to send 49, broken 48] [09:04:54]ProducePacketName [09:04:54]name=ofd_packets/00186967 [09:04:54]OFD Sender: To server: pG, [09:04:54]CommunicateWithHost lk.salyk.kg:30040 [09:04:54]ConnectInit lk.salyk.kg [09:04:54]written 0, free lines is 4095 [09:04:54]Connected sock=9 [09:04: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 F5 40 07 01 82 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 21 00 00 00 F4 03 04 00 B7 9E 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 57 DA 02 00 35 04 06 00 EC 79 A5 A8 98 A2 07 3B 54 21 66 87 12 D1 [09:04: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 06 04 47 00 D7 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 57 DA 02 00 F4 03 04 00 0B 45 B5 67 B6 04 01 00 00 61 2B 9B B2 64 A8 66 B1 [09:04:55]CommunicateWithHost err = 0 [09:04:55]CheckOFDResponse [09:04:55]1017 (14) - 77093643461234 [09:04:55]1041 (16) - 0000000000871826 [09:04:55]1040 (4) - 186967 [09:04:55]1012 (4) - 19.02.2025 02:42 [09:04:55]1206 (1) - 0 [09:04:55]OFD Sender: Remove packet 186967 [09:04:55]ProducePacketName [09:04:55]name=ofd_packets/00186967 [09:04:55]NVStorageDeleteData [09:04:55]Write to MH i2c: 01 00 00 8A 0A 94 [09:04:55]Write i2c OK [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: 01 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: 01 07 00 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: 01 07 00 8A 0A 00 00 00 00 00 03 0D AB [09:04:55]RasterBufferAndPrint [09:04:55]line [09:04:55]line [09:04:55]line [09:04:55]line [09:04:55]line [09:04:55]written 0, free lines is 3337 [09:04:55]MH_Cut [09:04:55]Write to MH i2c: D1 01 00 91 0A 01 6D [09:04:55]Write i2c OK [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: D1 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: D1 01 00 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: D1 01 00 91 0A 00 6C [09:04:55]Write to MH i2c: 01 00 00 92 0A 9C [09:04:55]Write i2c OK [09:04:55]MH_I2C_Read... [09:04:55]OFD Sender: No OFD packet to send [09:04:55]*** Cut start [09:04:55]*** Partial cut [09:04:55]*** CUTSNS_PIN = 1 [09:04:55]*** CUTSNS_PIN = 0 [09:04:56]*** Brake cut motor [09:04:56]Read from MH i2c: 01 [09:04:56]MH_I2C_Read... [09:04:56]*** Stop cut motor [09:04:56]*** Cut end [09:04:56]Read from MH i2c: 01 07 00 [09:04:56]MH_I2C_Read... [09:04:56]Read from MH i2c: 01 07 00 92 0A 00 00 00 00 00 FF 0F B1 [09:04:56]process_action close_receipt done [09:04:56]requested_data is exist [09:04:56]produce_requested_data [09:04:56]requested_item fm.sn is exist - process it [09:04:56]wFMCommunicate request_size=4 [09:04:56]MH_SAM_APDU [09:04:56]CAPDU: 80 11 00 00 [09:04:56]Write to MH i2c: E2 08 00 93 0A 80 11 00 00 00 00 00 00 17 [09:04:56]Write i2c OK [09:04:56]MH_I2C_Read... [09:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:56]Read from MH i2c: E2 [09:04:56]MH_I2C_Read... [09:04:56]Read from MH i2c: E2 17 00 [09:04:56]MH_I2C_Read... [09:04:56]Read from MH i2c: E2 17 00 93 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6A [09:04: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:04:56]wFMCommunicate OK [09:04:56]requested_item fd.num is exist - process it [09:04:56]SAM_PROTO_GetFieldsCounters [09:04:56]wFMCommunicate request_size=4 [09:04:56]MH_SAM_APDU [09:04:56]CAPDU: 80 13 00 00 [09:04:56]Write to MH i2c: E2 08 00 94 0A 80 13 00 00 00 00 00 00 1A [09:04:56]Write i2c OK [09:04:56]MH_I2C_Read... [09:04:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:56]Read from MH i2c: E2 [09:04:56]MH_I2C_Read... [09:04:56]Read from MH i2c: E2 62 00 [09:04:56]MH_I2C_Read... [09:04:56]Read from MH i2c: E2 62 00 94 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 57 DA 02 00 0E 04 04 00 87 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 5F [09:04: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 DA 02 00 0E 04 04 00 87 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:04:56]wFMCommunicate OK [09:04:56]SAM_PROTO_GetFieldsCounters done [09:04:56]requested_item shift.num is exist - process it [09:04:56]requested_item shift.opened is exist - process it [09:04:56]req_shift_opened [09:04:56]FM_GetShiftState [09:04:56]SAM_PROTO_GetShiftState [09:04:56]wFMCommunicate request_size=4 [09:04:56]MH_SAM_APDU [09:04:56]CAPDU: 80 13 01 00 [09:04:56]Write to MH i2c: E2 08 00 95 0A 80 13 01 00 00 00 00 00 1C [09:04:56]Write i2c OK [09:04:56]MH_I2C_Read... [09:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:56]Read from MH i2c: E2 [09:04:56]MH_I2C_Read... [09:04:56]Read from MH i2c: E2 0E 00 [09:04:56]MH_I2C_Read... [09:04:56]Read from MH i2c: E2 0E 00 95 0A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 9B [09:04:56]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:04:56]wFMCommunicate OK [09:04:56]SAM_PROTO_GetShiftState done [09:04:56]FM_GetShiftState done [09:04:56]req_shift_opened done [09:04:56]requested_item shift.open_date is exist - process it [09:04:56]req_shift_open_date [09:04:56]req_shift_open_date done [09:04:56]produce_requested_data done [09:04:56]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186967,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [09:04:56]process_action_free close_receipt [09:04:56]json_value_free [09:04:56]json_value_free done [09:04:56]process_json_proto returns [09:04:56]Send response to host [09:04:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186967,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [09:04:56]free response buf [09:04:56]execute_script done [09:04:56]execute_script returns [09:04:56]free content buf [09:04:56]Sock 10.Close socket [09:04:56]Sock 10.Thread stoped [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:55]OFD Sender: No OFD packet to send [09:11:00]OFD Sender: No OFD packet to send [09:11:05]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:02]accept exits with 7 [09:13:02]New connection [09:13:02]New thread 3066879332 created [09:13:02]Thread 3067022692 joined [09:13:02]Waiting for new connection... [09:13:02] Sock 7.Parse request [09:13:02]Sock 7.Check first char [09:13:02]Sock 7.First char is OK [09:13:02]request: POST /json_proto HTTP/1.0 [09:13:02]Method: POST [09:13:02]URL: /json_proto [09:13:02]Method is POST - this is cgi request [09:13:02]url: /json_proto [09:13:02]query_string will be loaded in cgi processing [09:13:02]execute_cgi json_proto POST (null) [09:13:02]execute_cgi path=json_proto method=POST [09:13:02]POST find Content-Length [09:13:02]Host: 172.17.46.131:8080 [09:13:02]Content-Length: 678 [09:13:02]Content-Type: application/json [09:13:02] [09:13:02]POST finish read [09:13:02]Found Content-Length = 678 [09:13:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412118", "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" ] } } [09:13:02]execute_script... [09: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)412118", "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" ] } } [09:13:02]POST & json_proto [09:13:02]process_json_proto [09:13:02]json parsed OK: [09:13:02]protocol is kg_v1.0 [09:13:02]action value=close_receipt [09:13:02]process_action close_receipt [09:13:02]cmd_close_receipt [09:13:02]MH_GetDate [09:13:02]Write to MH i2c: F0 00 00 96 0A 8F [09:13:02]Write i2c OK [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: F0 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: F0 09 00 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: F0 09 00 96 0A 00 A1 A0 B5 67 7E 41 4F 65 68 [09:13:02]GetLastDocTimeStamp 1739955895 [09:13:02]current date 1739956385 [09:13:02]FM_GetShiftState [09:13:02]SAM_PROTO_GetShiftState [09:13:02]wFMCommunicate request_size=4 [09:13:02]MH_SAM_APDU [09:13:02]CAPDU: 80 13 01 00 [09:13:02]Write to MH i2c: E2 08 00 97 0A 80 13 01 00 00 00 00 00 1E [09:13:02]Write i2c OK [09:13:02]MH_I2C_Read... [09:13:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:02]Read from MH i2c: E2 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: E2 0E 00 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: E2 0E 00 97 0A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 9D [09:13:02]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:13:02]wFMCommunicate OK [09:13:02]SAM_PROTO_GetShiftState done [09:13:02]FM_GetShiftState done [09:13:02]opened in 1739929631 [09:13:02]opened+sec_in_day 1740016031 [09:13:02]quantity*price = 100042 [09:13:02]sum+1 = 100044 [09: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 СНО: Общий режим Чек 34 19.02.2025 09:13 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186968 ФПД: 132369251034948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T091305&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186968&fm=132369251034948&tin=02508201610067®Number=0000000000091857&sum=100000 [09:13:03]StoreToDocumentArchive [09:13:03]shift 647 fd 186968 [09:13:03]save to /storage/0647/doc_00186968 [09:13:03]save last doc name /storage/0647/doc_00186968 to /storage/kkm_last_doc_name [09:13:03]save OK [09:13:03]Clear old archive folders... [09:13:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:13:03]tlvbuf is 005CF080 [09:13:03]SAM_PROTO_ClearQueue [09:13:03]wFMCommunicate request_size=4 [09:13:03]MH_SAM_APDU [09:13:03]CAPDU: 80 09 00 00 [09:13:03]Write to MH i2c: E2 08 00 A4 0A 80 09 00 00 00 00 00 00 20 [09:13:03]Write i2c OK [09:13:03]MH_I2C_Read... [09:13:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:03]Read from MH i2c: E2 [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: E2 03 00 [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: E2 03 00 A4 0A 00 90 00 22 [09:13:03]RAPDU: 90 00 [09:13:03]wFMCommunicate OK [09:13:03]SAM_PROTO_ClearQueue done [09:13:03]KKMCreateOFDPacket [09:13:03]OFDProtocolAddRootSTLVToBuf [09:13:03]FM_MakeSignedData [09:13:03]FM_MakeSignedData [09:13:03]SAM_PROTO_SignData [09:13:03]wFMCommunicate request_size=4 [09:13:03]MH_SAM_APDU [09:13:03]CAPDU: 80 0D 01 02 [09:13:03]Write to MH i2c: E2 08 00 A5 0A 80 0D 01 02 00 00 00 00 28 [09:13:03]Write i2c OK [09:13:03]MH_I2C_Read... [09:13:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:04]Read from MH i2c: E2 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 A5 0A 00 90 00 23 [09:13:04]RAPDU: 90 00 [09:13:04]wFMCommunicate OK [09:13:04]wFMCommunicate request_size=255 [09:13:04]MH_SAM_APDU [09: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 22 00 00 00 F4 03 04 00 A1 A0 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 58 DA 02 00 35 04 06 00 78 63 9E 2F [09:13:04]Write to MH i2c: E2 02 01 A6 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 22 00 00 00 F4 03 04 00 A1 A0 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 58 DA 02 00 35 04 06 00 78 63 9E 2F 00 00 B0 [09:13:04]Write i2c OK [09:13:04]MH_I2C_Read... [09:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:04]Read from MH i2c: E2 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 A6 0A 00 90 00 24 [09:13:04]RAPDU: 90 00 [09:13:04]wFMCommunicate OK [09:13:04]wFMCommunicate request_size=7 [09:13:04]MH_SAM_APDU [09:13:04]CAPDU: 80 0D 02 02 02 E7 44 [09:13:04]Write to MH i2c: E2 0A 00 A7 0A 80 0D 02 02 02 00 E7 44 00 00 5A [09:13:04]Write i2c OK [09:13:04]MH_I2C_Read... [09:13:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:04]Read from MH i2c: E2 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 03 00 A7 0A 00 90 00 25 [09:13:04]RAPDU: 90 00 [09:13:04]wFMCommunicate OK [09:13:04]wFMCommunicate request_size=4 [09:13:04]MH_SAM_APDU [09:13:04]CAPDU: 80 0D 03 02 [09:13:04]Write to MH i2c: E2 08 00 A8 0A 80 0D 03 02 00 00 00 00 2D [09:13:04]Write i2c OK [09:13:04]MH_I2C_Read... [09:13:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:04]Read from MH i2c: E2 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 0B 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 0B 00 A8 0A 00 E1 BF 3C 2C 8F B0 FE B3 90 00 26 [09:13:04]RAPDU: E1 BF 3C 2C 8F B0 FE B3 90 00 [09:13:04]wFMCommunicate OK [09:13:04]SAM_PROTO_SignData done [09:13:04]FM_MakeSignedData done [09:13:04]CreateOFDProtocolMessage [09:13:04]wFMCommunicate request_size=4 [09:13:04]MH_SAM_APDU [09:13:04]CAPDU: 80 11 00 00 [09:13:04]Write to MH i2c: E2 08 00 A9 0A 80 11 00 00 00 00 00 00 2D [09:13:04]Write i2c OK [09:13:04]MH_I2C_Read... [09:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:04]Read from MH i2c: E2 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 17 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 17 00 A9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 80 [09: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 [09:13:04]wFMCommunicate OK [09:13:04]CreateOFDProtocolMessage done [09:13:04]OFDSenderStorePacket 186968 [09:13:04]StoreOFDPacket docnum=186968 [09: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 A4 59 04 01 B2 E8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 22 00 00 00 F4 03 04 00 A1 A0 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 58 DA 02 00 35 04 06 00 78 63 9E 2F E7 44 E1 BF 3C 2C 8F B0 FE B3 [09:13:04]CheckFolder [09:13:04]dirname=/storage/ofd_packets [09:13:04]CheckFolder done [09:13:04]ProducePacketName [09:13:04]name=ofd_packets/00186968 [09:13:04]NVStorageSaveData ofd_packets/00186968 [09:13:04]File name is /storage/ofd_packets/00186968 [09:13:04]Write 298 bytes [09:13:04]NVStorageSaveData done [09:13:04]OFDSenderStorePacket done [09:13:04]KKMCreateOFDPacket done [09:13:04]NVStorageSaveData kkm_last_timestamp [09:13:04]File name is /storage/kkm_last_timestamp [09:13:04]Write 4 bytes [09:13:04]NVStorageSaveData done [09:13:04]ExternCall_PrintAddStr [09:13:04]wPrintStart [09:13:04]Write to MH i2c: 01 00 00 AA 0A B4 [09:13:04]Write i2c OK [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: 01 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: 01 07 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: 01 07 00 AA 0A 00 00 00 00 00 FF 0F C9 [09:13:04]RasterBufferAndPrint [09:13:04]line Счет N : (1)412118 [09:13:04]line ИНН: 02508201610067 [09:13:04]line Контрольно-Кассовый Чек [09:13:04]line ПРОДАЖА [09:13:04]line ТРК (МРК, ГНК) : 5 [09:13:04]line Товар: 2710194210 [09:13:04]line ДТ-К-5 [09:13:04]line 13.780 * 72.60 [09:13:04]line = 1000.43 [09:13:04]line НДС 12% НСП 1% [09:13:04]line > о реализуемом товаре [09:13:04]line ОКРУГЛЕНИЕ: -0.43 [09:13:04]line ИТОГО: 1000.00 [09:13:04]line Внесено: 1000.00 [09:13:04]line СДАЧА: 0.00 [09:13:04]line НСП 1% : 8.85 [09:13:04]line НДС 12% : 106.24 [09:13:04]line Наличными: 1000.00 [09:13:04]line Безнал.: 0.00 [09:13:04]line Место: АЗС № 92 "Партнер Нефть" [09:13:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:13:04]line СНО: Общий режим [09:13:04]line Чек 34 19.02.2025 09:13 [09:13:04]line Смена: 647 ФФД: 1.0 [09:13:04]line ЗНМ: 0300000118 [09:13:04]line РНМ: 0000000000091857 [09:13:04]line Версия ККМ: 001 [09:13:04]line ФМ: 0000000000871826 [09:13:04]line ФД: 186968 [09:13:04]line ФПД: 132369251034948 [09:13:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T091305&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186968&fm=132369251034948&tin=02508201610067®Number=0000000000091857&sum=100000 [09:13:04]written 0, free lines is 4095 [09:13:04]OFD Sender: Processing packet 186968 [packets to send 49, broken 48] [09:13:04]ProducePacketName [09:13:04]name=ofd_packets/00186968 [09:13:04]OFD Sender: To server: pG, [09:13:04]CommunicateWithHost lk.salyk.kg:30040 [09:13:04]ConnectInit lk.salyk.kg [09:13:04]Connected sock=10 [09:13: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 0C 01 00 00 A4 59 04 01 B2 E8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 22 00 00 00 F4 03 04 00 A1 A0 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 58 DA 02 00 35 04 06 00 78 63 9E 2F E7 44 E1 BF 3C 2C 8F B0 FE B3 [09: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 77 DF 47 00 CA 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 58 DA 02 00 F4 03 04 00 F5 46 B5 67 B6 04 01 00 00 20 B7 27 7D 57 A4 FE 40 [09:13:05]CommunicateWithHost err = 0 [09:13:05]CheckOFDResponse [09:13:05]1017 (14) - 77093643461234 [09:13:05]1041 (16) - 0000000000871826 [09:13:05]1040 (4) - 186968 [09:13:05]1012 (4) - 19.02.2025 02:50 [09:13:05]1206 (1) - 0 [09:13:05]OFD Sender: Remove packet 186968 [09:13:05]ProducePacketName [09:13:05]name=ofd_packets/00186968 [09:13:05]NVStorageDeleteData [09:13:05]Write to MH i2c: 01 00 00 D5 0A DF [09:13:05]Write i2c OK [09:13:05]MH_I2C_Read... [09:13:05]Read from MH i2c: 01 [09:13:05]MH_I2C_Read... [09:13:05]Read from MH i2c: 01 07 00 [09:13:05]MH_I2C_Read... [09:13:05]Read from MH i2c: 01 07 00 D5 0A 00 00 00 00 00 F3 0C E5 [09:13:05]RasterBufferAndPrint [09:13:05]line [09:13:05]line [09:13:05]line [09:13:05]line [09:13:05]line [09:13:05]written 0, free lines is 3321 [09:13:05]MH_Cut [09:13:05]Write to MH i2c: D1 01 00 DC 0A 01 B8 [09:13:05]Write i2c OK [09:13:05]MH_I2C_Read... [09:13:05]Read from MH i2c: D1 [09:13:05]MH_I2C_Read... [09:13:05]Read from MH i2c: D1 01 00 [09:13:05]MH_I2C_Read... [09:13:05]Read from MH i2c: D1 01 00 DC 0A 00 B7 [09:13:05]Write to MH i2c: 01 00 00 DD 0A E7 [09:13:05]Write i2c OK [09:13:05]MH_I2C_Read... [09:13:05]OFD Sender: No OFD packet to send [09:13:05]*** Cut start [09:13:05]*** Partial cut [09:13:05]*** CUTSNS_PIN = 1 [09:13:05]*** CUTSNS_PIN = 0 [09:13:06]*** Brake cut motor [09:13:06]Read from MH i2c: 01 *** Stop cut motor [09:13:06]*** Cut end [09:13:06] [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: 01 07 00 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: 01 07 00 DD 0A 00 00 00 00 00 FF 0F FC [09:13:06]process_action close_receipt done [09:13:06]requested_data is exist [09:13:06]produce_requested_data [09:13:06]requested_item fm.sn is exist - process it [09:13:06]wFMCommunicate request_size=4 [09:13:06]MH_SAM_APDU [09:13:06]CAPDU: 80 11 00 00 [09:13:06]Write to MH i2c: E2 08 00 DE 0A 80 11 00 00 00 00 00 00 62 [09:13:06]Write i2c OK [09:13:06]MH_I2C_Read... [09:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:06]Read from MH i2c: E2 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 17 00 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 17 00 DE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B5 [09: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 [09:13:06]wFMCommunicate OK [09:13:06]requested_item fd.num is exist - process it [09:13:06]SAM_PROTO_GetFieldsCounters [09:13:06]wFMCommunicate request_size=4 [09:13:06]MH_SAM_APDU [09:13:06]CAPDU: 80 13 00 00 [09:13:06]Write to MH i2c: E2 08 00 DF 0A 80 13 00 00 00 00 00 00 65 [09:13:06]Write i2c OK [09:13:06]MH_I2C_Read... [09:13:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:06]Read from MH i2c: E2 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 62 00 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 62 00 DF 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 58 DA 02 00 0E 04 04 00 87 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 AE [09:13: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 58 DA 02 00 0E 04 04 00 87 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:13:06]wFMCommunicate OK [09:13:06]SAM_PROTO_GetFieldsCounters done [09:13:06]requested_item shift.num is exist - process it [09:13:06]requested_item shift.opened is exist - process it [09:13:06]req_shift_opened [09:13:06]FM_GetShiftState [09:13:06]SAM_PROTO_GetShiftState [09:13:06]wFMCommunicate request_size=4 [09:13:06]MH_SAM_APDU [09:13:06]CAPDU: 80 13 01 00 [09:13:06]Write to MH i2c: E2 08 00 E0 0A 80 13 01 00 00 00 00 00 67 [09:13:06]Write i2c OK [09:13:06]MH_I2C_Read... [09:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:06]Read from MH i2c: E2 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 0E 00 [09:13:06]MH_I2C_Read... [09:13:06]Read from MH i2c: E2 0E 00 E0 0A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E6 [09:13:06]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:13:06]wFMCommunicate OK [09:13:06]SAM_PROTO_GetShiftState done [09:13:06]FM_GetShiftState done [09:13:06]req_shift_opened done [09:13:06]requested_item shift.open_date is exist - process it [09:13:06]req_shift_open_date [09:13:06]req_shift_open_date done [09:13:06]produce_requested_data done [09:13:06]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186968,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [09:13:06]process_action_free close_receipt [09:13:06]json_value_free [09:13:06]json_value_free done [09:13:06]process_json_proto returns [09:13:06]Send response to host [09:13:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186968,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [09:13:06]free response buf [09:13:06]execute_script done [09:13:06]execute_script returns [09:13:06]free content buf [09:13:06]Sock 7.Close socket [09:13:06]Sock 7.Thread stoped [09:13:10]OFD Sender: No OFD packet to send [09:13:15]OFD Sender: No OFD packet to send [09:13:20]OFD Sender: No OFD packet to send [09:13:25]OFD Sender: No OFD packet to send [09:13:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:10]OFD Sender: No OFD packet to send [09:15:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:25]OFD Sender: No OFD packet to send [09:15:30]OFD Sender: No OFD packet to send [09:15:35]OFD Sender: No OFD packet to send [09:15:40]OFD Sender: No OFD packet to send [09:15:45]OFD Sender: No OFD packet to send [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:20]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:21]accept exits with 9 [09:19:21]New connection [09:19:21]New thread 3067022692 created [09:19:21]Thread 3066879332 joined [09:19:21]Waiting for new connection... [09:19:21] Sock 9.Parse request [09:19:21]Sock 9.Check first char [09:19:21]Sock 9.First char is OK [09:19:21]request: POST /json_proto HTTP/1.0 [09:19:21]Method: POST [09:19:21]URL: /json_proto [09:19:21]Method is POST - this is cgi request [09:19:21]url: /json_proto [09:19:21]query_string will be loaded in cgi processing [09:19:21]execute_cgi json_proto POST (null) [09:19:21]execute_cgi path=json_proto method=POST [09:19:21]POST find Content-Length [09:19:21]Host: 172.17.46.131:8080 [09:19:21]Content-Length: 677 [09:19:21]Content-Type: application/json [09:19:21] [09:19:21]POST finish read [09:19:21]Found Content-Length = 677 [09:19:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412119", "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.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" ] } } [09:19:21]execute_script... [09:19:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412119", "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.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" ] } } [09:19:21]POST & json_proto [09:19:21]process_json_proto [09:19:21]json parsed OK: [09:19:21]protocol is kg_v1.0 [09:19:21]action value=close_receipt [09:19:21]process_action close_receipt [09:19:21]cmd_close_receipt [09:19:21]MH_GetDate [09:19:21]Write to MH i2c: F0 00 00 E1 0A DA [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: F0 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: F0 09 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: F0 09 00 E1 0A 00 1B A2 B5 67 7E 41 4F 65 2F [09:19:21]GetLastDocTimeStamp 1739956385 [09:19:21]current date 1739956763 [09:19:21]FM_GetShiftState [09:19:21]SAM_PROTO_GetShiftState [09:19:21]wFMCommunicate request_size=4 [09:19:21]MH_SAM_APDU [09:19:21]CAPDU: 80 13 01 00 [09:19:21]Write to MH i2c: E2 08 00 E2 0A 80 13 01 00 00 00 00 00 69 [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:21]Read from MH i2c: E2 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 0E 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 0E 00 E2 0A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E8 [09:19:21]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:19:21]wFMCommunicate OK [09:19:21]SAM_PROTO_GetShiftState done [09:19:21]FM_GetShiftState done [09:19:21]opened in 1739929631 [09:19:21]opened+sec_in_day 1740016031 [09:19:21]quantity*price = 20030 [09:19:21]sum+1 = 20031 [09:19:21]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 СНО: Общий режим Чек 35 19.02.2025 09:19 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186969 ФПД: 139977704912493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T091923&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186969&fm=139977704912493&tin=02508201610067®Number=0000000000091857&sum=20000 [09:19:22]StoreToDocumentArchive [09:19:22]shift 647 fd 186969 [09:19:22]save to /storage/0647/doc_00186969 [09:19:22]save last doc name /storage/0647/doc_00186969 to /storage/kkm_last_doc_name [09:19:22]save OK [09:19:22]Clear old archive folders... [09:19:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:19:22]tlvbuf is 005CF2B0 [09:19:22]SAM_PROTO_ClearQueue [09:19:22]wFMCommunicate request_size=4 [09:19:22]MH_SAM_APDU [09:19:22]CAPDU: 80 09 00 00 [09:19:22]Write to MH i2c: E2 08 00 EF 0A 80 09 00 00 00 00 00 00 6B [09:19:22]Write i2c OK [09:19:22]MH_I2C_Read... [09:19:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:22]Read from MH i2c: E2 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: E2 03 00 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: E2 03 00 EF 0A 00 90 00 6D [09:19:22]RAPDU: 90 00 [09:19:22]wFMCommunicate OK [09:19:22]SAM_PROTO_ClearQueue done [09:19:22]KKMCreateOFDPacket [09:19:22]OFDProtocolAddRootSTLVToBuf [09:19:22]FM_MakeSignedData [09:19:22]FM_MakeSignedData [09:19:22]SAM_PROTO_SignData [09:19:22]wFMCommunicate request_size=4 [09:19:22]MH_SAM_APDU [09:19:22]CAPDU: 80 0D 01 02 [09:19:22]Write to MH i2c: E2 08 00 F0 0A 80 0D 01 02 00 00 00 00 73 [09:19:22]Write i2c OK [09:19:22]MH_I2C_Read... [09:19:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:22]Read from MH i2c: E2 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: E2 03 00 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: E2 03 00 F0 0A 00 90 00 6E [09:19:22]RAPDU: 90 00 [09:19:22]wFMCommunicate OK [09:19:22]wFMCommunicate request_size=255 [09:19:22]MH_SAM_APDU [09:19:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 23 00 00 00 F4 03 04 00 1B A2 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 59 DA 02 00 35 04 06 00 7F [09:19:22]Write to MH i2c: E2 02 01 F1 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 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 23 00 00 00 F4 03 04 00 1B A2 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 59 DA 02 00 35 04 06 00 7F 00 00 91 [09:19:22]Write i2c OK [09:19:22]MH_I2C_Read... [09:19:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:22]Read from MH i2c: E2 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: E2 03 00 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: E2 03 00 F1 0A 00 90 00 6F [09:19:22]RAPDU: 90 00 [09:19:22]wFMCommunicate OK [09:19:22]wFMCommunicate request_size=10 [09:19:22]MH_SAM_APDU [09:19:22]CAPDU: 80 0D 02 02 05 4F 19 60 B6 6D [09:19:22]Write to MH i2c: E2 0D 00 F2 0A 80 0D 02 02 05 00 4F 19 60 B6 6D 00 00 6B [09:19:22]Write i2c OK [09:19:22]MH_I2C_Read... [09:19:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:22]Read from MH i2c: E2 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: E2 03 00 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: E2 03 00 F2 0A 00 90 00 70 [09:19:22]RAPDU: 90 00 [09:19:22]wFMCommunicate OK [09:19:22]wFMCommunicate request_size=4 [09:19:22]MH_SAM_APDU [09:19:22]CAPDU: 80 0D 03 02 [09:19:22]Write to MH i2c: E2 08 00 F3 0A 80 0D 03 02 00 00 00 00 78 [09:19:22]Write i2c OK [09:19:22]MH_I2C_Read... [09:19:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:22]Read from MH i2c: E2 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: E2 0B 00 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: E2 0B 00 F3 0A 00 2F 70 A9 B2 E6 A6 83 CF 90 00 51 [09:19:22]RAPDU: 2F 70 A9 B2 E6 A6 83 CF 90 00 [09:19:22]wFMCommunicate OK [09:19:22]SAM_PROTO_SignData done [09:19:22]FM_MakeSignedData done [09:19:22]CreateOFDProtocolMessage [09:19:22]wFMCommunicate request_size=4 [09:19:22]MH_SAM_APDU [09:19:22]CAPDU: 80 11 00 00 [09:19:22]Write to MH i2c: E2 08 00 F4 0A 80 11 00 00 00 00 00 00 78 [09:19:22]Write i2c OK [09:19:22]MH_I2C_Read... [09:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:23]Read from MH i2c: E2 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: E2 17 00 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: E2 17 00 F4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CB [09:19:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:19:23]wFMCommunicate OK [09:19:23]CreateOFDProtocolMessage done [09:19:23]OFDSenderStorePacket 186969 [09:19:23]StoreOFDPacket docnum=186969 [09:19: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 44 57 07 01 14 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 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 23 00 00 00 F4 03 04 00 1B A2 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 59 DA 02 00 35 04 06 00 7F 4F 19 60 B6 6D 2F 70 A9 B2 E6 A6 83 CF [09:19:23]CheckFolder [09:19:23]dirname=/storage/ofd_packets [09:19:23]CheckFolder done [09:19:23]ProducePacketName [09:19:23]name=ofd_packets/00186969 [09:19:23]NVStorageSaveData ofd_packets/00186969 [09:19:23]File name is /storage/ofd_packets/00186969 [09:19:23]Write 301 bytes [09:19:23]NVStorageSaveData done [09:19:23]OFDSenderStorePacket done [09:19:23]KKMCreateOFDPacket done [09:19:23]NVStorageSaveData kkm_last_timestamp [09:19:23]File name is /storage/kkm_last_timestamp [09:19:23]Write 4 bytes [09:19:23]NVStorageSaveData done [09:19:23]ExternCall_PrintAddStr [09:19:23]wPrintStart [09:19:23]Write to MH i2c: 01 00 00 F5 0A FF [09:19:23]Write i2c OK [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: 01 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: 01 07 00 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: 01 07 00 F5 0A 00 00 00 00 00 FF 0F 14 [09:19:23]RasterBufferAndPrint [09:19:23]line Счет N : (1)412119 [09:19:23]line ИНН: 02508201610067 [09:19:23]line Контрольно-Кассовый Чек [09:19:23]line ПРОДАЖА [09:19:23]line ТРК (МРК, ГНК) : 12 [09:19:23]line Товар: 2710124130 [09:19:23]line Аи-92-К-2 [09:19:23]line 3.120 * 64.20 [09:19:23]line = 200.30 [09:19:23]line НДС 12% НСП 1% [09:19:23]line > о реализуемом товаре [09:19:23]line ОКРУГЛЕНИЕ: -0.30 [09:19:23]line ИТОГО: 200.00 [09:19:23]line Внесено: 200.00 [09:19:23]line СДАЧА: 0.00 [09:19:23]line НСП 1% : 1.77 [09:19:23]line НДС 12% : 21.27 [09:19:23]line Наличными: 200.00 [09:19:23]line Безнал.: 0.00 [09:19:23]line Место: АЗС № 92 "Партнер Нефть" [09:19:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:19:23]line СНО: Общий режим [09:19:23]line Чек 35 19.02.2025 09:19 [09:19:23]line Смена: 647 ФФД: 1.0 [09:19:23]line ЗНМ: 0300000118 [09:19:23]line РНМ: 0000000000091857 [09:19:23]line Версия ККМ: 001 [09:19:23]line ФМ: 0000000000871826 [09:19:23]line ФД: 186969 [09:19:23]line ФПД: 139977704912493 [09:19:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T091923&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186969&fm=139977704912493&tin=02508201610067®Number=0000000000091857&sum=20000 [09:19:23]written 0, free lines is 4095 [09:19:23]OFD Sender: Processing packet 186969 [packets to send 49, broken 48] [09:19:23]ProducePacketName [09:19:23]name=ofd_packets/00186969 [09:19:23]OFD Sender: To server: pG, [09:19:23]CommunicateWithHost lk.salyk.kg:30040 [09:19:23]ConnectInit lk.salyk.kg [09:19:23]Connected sock=10 [09:19:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 44 57 07 01 14 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 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 23 00 00 00 F4 03 04 00 1B A2 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 59 DA 02 00 35 04 06 00 7F 4F 19 60 B6 6D 2F 70 A9 B2 E6 A6 83 CF [09:19:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 97 22 47 00 E9 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 59 DA 02 00 F4 03 04 00 70 48 B5 67 B6 04 01 00 00 3D C2 59 4B 55 39 58 36 [09:19:23]CommunicateWithHost err = 0 [09:19:23]CheckOFDResponse [09:19:23]1017 (14) - 77093643461234 [09:19:23]1041 (16) - 0000000000871826 [09:19:23]1040 (4) - 186969 [09:19:23]1012 (4) - 19.02.2025 02:56 [09:19:23]1206 (1) - 0 [09:19:23]OFD Sender: Remove packet 186969 [09:19:23]ProducePacketName [09:19:23]name=ofd_packets/00186969 [09:19:23]NVStorageDeleteData [09:19:23]Write to MH i2c: 01 00 00 20 0B 2B [09:19:23]Write i2c OK [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: 01 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: 01 07 00 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: 01 07 00 20 0B 00 00 00 00 00 FD 0C 3B [09:19:23]RasterBufferAndPrint [09:19:23]line [09:19:23]line [09:19:23]line [09:19:23]line [09:19:23]line [09:19:23]written 0, free lines is 3332 [09:19:23]MH_Cut [09:19:23]Write to MH i2c: D1 01 00 27 0B 01 04 [09:19:23]Write i2c OK [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: D1 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: D1 01 00 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: D1 01 00 27 0B 00 03 [09:19:23]Write to MH i2c: 01 00 00 28 0B 33 [09:19:23]Write i2c OK [09:19:23]MH_I2C_Read... [09:19:24]OFD Sender: No OFD packet to send [09:19:24]*** Cut start [09:19:24]*** Partial cut [09:19:24]*** CUTSNS_PIN = 1 [09:19:24]*** CUTSNS_PIN = 0 [09:19:24]*** Brake cut motor [09:19:25]Read from MH i2c: 01 [09:19:25]MH_I2C_Read... [09:19:25]*** Stop cut motor [09:19:25]*** Cut end [09:19:25]Read from MH i2c: 01 07 00 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: 01 07 00 28 0B 00 00 00 00 00 FF 0F 48 [09:19:25]process_action close_receipt done [09:19:25]requested_data is exist [09:19:25]produce_requested_data [09:19:25]requested_item fm.sn is exist - process it [09:19:25]wFMCommunicate request_size=4 [09:19:25]MH_SAM_APDU [09:19:25]CAPDU: 80 11 00 00 [09:19:25]Write to MH i2c: E2 08 00 29 0B 80 11 00 00 00 00 00 00 AE [09:19:25]Write i2c OK [09:19:25]MH_I2C_Read... [09:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:25]Read from MH i2c: E2 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 17 00 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 17 00 29 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 01 [09:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:19:25]wFMCommunicate OK [09:19:25]requested_item fd.num is exist - process it [09:19:25]SAM_PROTO_GetFieldsCounters [09:19:25]wFMCommunicate request_size=4 [09:19:25]MH_SAM_APDU [09:19:25]CAPDU: 80 13 00 00 [09:19:25]Write to MH i2c: E2 08 00 2A 0B 80 13 00 00 00 00 00 00 B1 [09:19:25]Write i2c OK [09:19:25]MH_I2C_Read... [09:19:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:25]Read from MH i2c: E2 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 62 00 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 62 00 2A 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 59 DA 02 00 0E 04 04 00 87 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 FE [09:19:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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:19:25]wFMCommunicate OK [09:19:25]SAM_PROTO_GetFieldsCounters done [09:19:25]requested_item shift.num is exist - process it [09:19:25]requested_item shift.opened is exist - process it [09:19:25]req_shift_opened [09:19:25]FM_GetShiftState [09:19:25]SAM_PROTO_GetShiftState [09:19:25]wFMCommunicate request_size=4 [09:19:25]MH_SAM_APDU [09:19:25]CAPDU: 80 13 01 00 [09:19:25]Write to MH i2c: E2 08 00 2B 0B 80 13 01 00 00 00 00 00 B3 [09:19:25]Write i2c OK [09:19:25]MH_I2C_Read... [09:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:25]Read from MH i2c: E2 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 0E 00 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 0E 00 2B 0B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 32 [09:19:25]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:19:25]wFMCommunicate OK [09:19:25]SAM_PROTO_GetShiftState done [09:19:25]FM_GetShiftState done [09:19:25]req_shift_opened done [09:19:25]requested_item shift.open_date is exist - process it [09:19:25]req_shift_open_date [09:19:25]req_shift_open_date done [09:19:25]produce_requested_data done [09:19:25]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186969,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [09:19:25]process_action_free close_receipt [09:19:25]json_value_free [09:19:25]json_value_free done [09:19:25]process_json_proto returns [09:19:25]Send response to host [09:19:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186969,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [09:19:25]free response buf [09:19:25]execute_script done [09:19:25]execute_script returns [09:19:25]free content buf [09:19:25]Sock 9.Close socket [09:19:25]Sock 9.Thread stoped [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:18]accept exits with 7 [09:21:18]New connection [09:21:18]New thread 3066879332 created [09:21:18]Thread 3067022692 joined [09:21:18]Waiting for new connection... [09:21:18] Sock 7.Parse request [09:21:18]Sock 7.Check first char [09:21:18]Sock 7.First char is OK [09:21:18]request: POST /json_proto HTTP/1.0 [09:21:18]Method: POST [09:21:18]URL: /json_proto [09:21:18]Method is POST - this is cgi request [09:21:18]url: /json_proto [09:21:18]query_string will be loaded in cgi processing [09:21:18]execute_cgi json_proto POST (null) [09:21:18]execute_cgi path=json_proto method=POST [09:21:18]POST find Content-Length [09:21:18]Host: 172.17.46.131:8080 [09:21:18]Content-Length: 678 [09:21:18]Content-Type: application/json [09:21:18] [09:21:18]POST finish read [09:21:18]Found Content-Length = 678 [09:21:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412120", "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" ] } } [09:21:18]execute_script... [09:21: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)412120", "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" ] } } [09:21:18]POST & json_proto [09:21:18]process_json_proto [09:21:18]json parsed OK: [09:21:18]protocol is kg_v1.0 [09:21:18]action value=close_receipt [09:21:18]process_action close_receipt [09:21:18]cmd_close_receipt [09:21:18]MH_GetDate [09:21:18]Write to MH i2c: F0 00 00 2C 0B 26 [09:21:18]Write i2c OK [09:21:18]MH_I2C_Read... [09:21:18]Read from MH i2c: F0 [09:21:18]MH_I2C_Read... [09:21:18]Read from MH i2c: F0 09 00 [09:21:18]MH_I2C_Read... [09:21:18]Read from MH i2c: F0 09 00 2C 0B 00 91 A2 B5 67 7E 41 4F 65 F1 [09:21:18]GetLastDocTimeStamp 1739956763 [09:21:18]current date 1739956881 [09:21:18]FM_GetShiftState [09:21:18]SAM_PROTO_GetShiftState [09:21:18]wFMCommunicate request_size=4 [09:21:18]MH_SAM_APDU [09:21:18]CAPDU: 80 13 01 00 [09:21:18]Write to MH i2c: E2 08 00 2D 0B 80 13 01 00 00 00 00 00 B5 [09:21:18]Write i2c OK [09:21:18]MH_I2C_Read... [09:21:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:18]Read from MH i2c: E2 [09:21:18]MH_I2C_Read... [09:21:18]Read from MH i2c: E2 0E 00 [09:21:18]MH_I2C_Read... [09:21:18]Read from MH i2c: E2 0E 00 2D 0B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 34 [09:21:18]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:21:18]wFMCommunicate OK [09:21:18]SAM_PROTO_GetShiftState done [09:21:18]FM_GetShiftState done [09:21:18]opened in 1739929631 [09:21:18]opened+sec_in_day 1740016031 [09:21:18]quantity*price = 100042 [09:21:18]sum+1 = 100044 [09:21:18]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 СНО: Общий режим Чек 36 19.02.2025 09:21 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186970 ФПД: 223835291703525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T092121&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186970&fm=223835291703525&tin=02508201610067®Number=0000000000091857&sum=100000 [09:21:19]StoreToDocumentArchive [09:21:19]shift 647 fd 186970 [09:21:19]save to /storage/0647/doc_00186970 [09:21:19]save last doc name /storage/0647/doc_00186970 to /storage/kkm_last_doc_name [09:21:19]save OK [09:21:19]Clear old archive folders... [09:21:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:21:19]tlvbuf is 005D8AF0 [09:21:19]SAM_PROTO_ClearQueue [09:21:19]wFMCommunicate request_size=4 [09:21:19]MH_SAM_APDU [09:21:19]CAPDU: 80 09 00 00 [09:21:19]Write to MH i2c: E2 08 00 3A 0B 80 09 00 00 00 00 00 00 B7 [09:21:19]Write i2c OK [09:21:19]MH_I2C_Read... [09:21:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:19]Read from MH i2c: E2 [09:21:19]MH_I2C_Read... [09:21:19]Read from MH i2c: E2 03 00 [09:21:19]MH_I2C_Read... [09:21:19]Read from MH i2c: E2 03 00 3A 0B 00 90 00 B9 [09:21:19]RAPDU: 90 00 [09:21:19]wFMCommunicate OK [09:21:19]SAM_PROTO_ClearQueue done [09:21:19]KKMCreateOFDPacket [09:21:19]OFDProtocolAddRootSTLVToBuf [09:21:19]FM_MakeSignedData [09:21:19]FM_MakeSignedData [09:21:19]SAM_PROTO_SignData [09:21:19]wFMCommunicate request_size=4 [09:21:19]MH_SAM_APDU [09:21:19]CAPDU: 80 0D 01 02 [09:21:19]Write to MH i2c: E2 08 00 3B 0B 80 0D 01 02 00 00 00 00 BF [09:21:19]Write i2c OK [09:21:19]MH_I2C_Read... [09:21:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:19]Read from MH i2c: E2 [09:21:19]MH_I2C_Read... [09:21:19]Read from MH i2c: E2 03 00 [09:21:19]MH_I2C_Read... [09:21:19]Read from MH i2c: E2 03 00 3B 0B 00 90 00 BA [09:21:19]RAPDU: 90 00 [09:21:19]wFMCommunicate OK [09:21:19]wFMCommunicate request_size=255 [09:21:19]MH_SAM_APDU [09:21:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 24 00 00 00 F4 03 04 00 91 A2 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 5A DA 02 00 35 04 06 00 CB 93 B7 0C [09:21:19]Write to MH i2c: E2 02 01 3C 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 24 00 00 00 F4 03 04 00 91 A2 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 5A DA 02 00 35 04 06 00 CB 93 B7 0C 00 00 B6 [09:21:19]Write i2c OK [09:21:19]MH_I2C_Read... [09:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:20]Read from MH i2c: E2 [09:21:20]MH_I2C_Read... [09:21:20]Read from MH i2c: E2 03 00 [09:21:20]MH_I2C_Read... [09:21:20]Read from MH i2c: E2 03 00 3C 0B 00 90 00 BB [09:21:20]RAPDU: 90 00 [09:21:20]wFMCommunicate OK [09:21:20]wFMCommunicate request_size=7 [09:21:20]MH_SAM_APDU [09:21:20]CAPDU: 80 0D 02 02 02 D8 E5 [09:21:20]Write to MH i2c: E2 0A 00 3D 0B 80 0D 02 02 02 00 D8 E5 00 00 83 [09:21:20]Write i2c OK [09:21:20]MH_I2C_Read... [09:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:20]Read from MH i2c: E2 [09:21:20]MH_I2C_Read... [09:21:20]Read from MH i2c: E2 03 00 [09:21:20]MH_I2C_Read... [09:21:20]Read from MH i2c: E2 03 00 3D 0B 00 90 00 BC [09:21:20]RAPDU: 90 00 [09:21:20]wFMCommunicate OK [09:21:20]wFMCommunicate request_size=4 [09:21:20]MH_SAM_APDU [09:21:20]CAPDU: 80 0D 03 02 [09:21:20]Write to MH i2c: E2 08 00 3E 0B 80 0D 03 02 00 00 00 00 C4 [09:21:20]Write i2c OK [09:21:20]MH_I2C_Read... [09:21:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:20]Read from MH i2c: E2 [09:21:20]MH_I2C_Read... [09:21:20]Read from MH i2c: E2 0B 00 [09:21:20]MH_I2C_Read... [09:21:20]Read from MH i2c: E2 0B 00 3E 0B 00 94 6C D4 E5 3E D2 17 7F 90 00 24 [09:21:20]RAPDU: 94 6C D4 E5 3E D2 17 7F 90 00 [09:21:20]wFMCommunicate OK [09:21:20]SAM_PROTO_SignData done [09:21:20]FM_MakeSignedData done [09:21:20]CreateOFDProtocolMessage [09:21:20]wFMCommunicate request_size=4 [09:21:20]MH_SAM_APDU [09:21:20]CAPDU: 80 11 00 00 [09:21:20]Write to MH i2c: E2 08 00 3F 0B 80 11 00 00 00 00 00 00 C4 [09:21:20]Write i2c OK [09:21:20]MH_I2C_Read... [09:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:20]Read from MH i2c: E2 [09:21:20]MH_I2C_Read... [09:21:20]Read from MH i2c: E2 17 00 [09:21:20]MH_I2C_Read... [09:21:20]Read from MH i2c: E2 17 00 3F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 17 [09:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:21:20]wFMCommunicate OK [09:21:20]CreateOFDProtocolMessage done [09:21:20]OFDSenderStorePacket 186970 [09:21:20]StoreOFDPacket docnum=186970 [09:21: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 0C 01 00 00 07 B4 04 01 41 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 24 00 00 00 F4 03 04 00 91 A2 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 5A DA 02 00 35 04 06 00 CB 93 B7 0C D8 E5 94 6C D4 E5 3E D2 17 7F [09:21:20]CheckFolder [09:21:20]dirname=/storage/ofd_packets [09:21:20]CheckFolder done [09:21:20]ProducePacketName [09:21:20]name=ofd_packets/00186970 [09:21:20]NVStorageSaveData ofd_packets/00186970 [09:21:20]File name is /storage/ofd_packets/00186970 [09:21:20]Write 298 bytes [09:21:20]NVStorageSaveData done [09:21:20]OFDSenderStorePacket done [09:21:20]KKMCreateOFDPacket done [09:21:20]NVStorageSaveData kkm_last_timestamp [09:21:20]File name is /storage/kkm_last_timestamp [09:21:20]Write 4 bytes [09:21:20]NVStorageSaveData done [09:21:20]ExternCall_PrintAddStr [09:21:20]wPrintStart [09:21:20]Write to MH i2c: 01 00 00 40 0B 4B [09:21:20]Write i2c OK [09:21:20]MH_I2C_Read... [09:21:20]Read from MH i2c: 01 [09:21:20]MH_I2C_Read... [09:21:20]Read from MH i2c: 01 07 00 [09:21:20]MH_I2C_Read... [09:21:20]Read from MH i2c: 01 07 00 40 0B 00 00 00 00 00 FF 0F 60 [09:21:20]RasterBufferAndPrint [09:21:20]line Счет N : (1)412120 [09:21:20]line ИНН: 02508201610067 [09:21:20]line Контрольно-Кассовый Чек [09:21:20]line ПРОДАЖА [09:21:20]line ТРК (МРК, ГНК) : 6 [09:21:20]line Товар: 2710194210 [09:21:20]line ДТ-К-5 [09:21:20]line 13.780 * 72.60 [09:21:20]line = 1000.43 [09:21:20]line НДС 12% НСП 1% [09:21:20]line > о реализуемом товаре [09:21:20]line ОКРУГЛЕНИЕ: -0.43 [09:21:20]line ИТОГО: 1000.00 [09:21:20]line Внесено: 1000.00 [09:21:20]line СДАЧА: 0.00 [09:21:20]line НСП 1% : 8.85 [09:21:20]line НДС 12% : 106.24 [09:21:20]line Наличными: 1000.00 [09:21:20]line Безнал.: 0.00 [09:21:20]line Место: АЗС № 92 "Партнер Нефть" [09:21:20]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:21:20]line СНО: Общий режим [09:21:20]line Чек 36 19.02.2025 09:21 [09:21:20]line Смена: 647 ФФД: 1.0 [09:21:20]line ЗНМ: 0300000118 [09:21:20]line РНМ: 0000000000091857 [09:21:20]line Версия ККМ: 001 [09:21:20]line ФМ: 0000000000871826 [09:21:20]line ФД: 186970 [09:21:20]line ФПД: 223835291703525 [09:21:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T092121&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186970&fm=223835291703525&tin=02508201610067®Number=0000000000091857&sum=100000 [09:21:20]OFD Sender: Processing packet 186970 [packets to send 49, broken 48] [09:21:20]ProducePacketName [09:21:20]name=ofd_packets/00186970 [09:21:20]OFD Sender: To server: pG, [09:21:20]CommunicateWithHost lk.salyk.kg:30040 [09:21:20]ConnectInit lk.salyk.kg [09:21:20]written 0, free lines is 4095 [09:21:20]Connected sock=10 [09:21: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 0C 01 00 00 07 B4 04 01 41 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 24 00 00 00 F4 03 04 00 91 A2 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 5A DA 02 00 35 04 06 00 CB 93 B7 0C D8 E5 94 6C D4 E5 3E D2 17 7F [09:21: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 7A E8 47 00 EF 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 5A DA 02 00 F4 03 04 00 E5 48 B5 67 B6 04 01 00 00 EF 11 69 64 84 09 6D 33 [09:21:21]CommunicateWithHost err = 0 [09:21:21]CheckOFDResponse [09:21:21]1017 (14) - 77093643461234 [09:21:21]1041 (16) - 0000000000871826 [09:21:21]1040 (4) - 186970 [09:21:21]1012 (4) - 19.02.2025 02:58 [09:21:21]1206 (1) - 0 [09:21:21]OFD Sender: Remove packet 186970 [09:21:21]ProducePacketName [09:21:21]name=ofd_packets/00186970 [09:21:21]NVStorageDeleteData [09:21:21]Write to MH i2c: 01 00 00 6B 0B 76 [09:21:21]Write i2c OK [09:21:21]MH_I2C_Read... [09:21:21]Read from MH i2c: 01 [09:21:21]MH_I2C_Read... [09:21:21]Read from MH i2c: 01 07 00 [09:21:21]MH_I2C_Read... [09:21:21]Read from MH i2c: 01 07 00 6B 0B 00 00 00 00 00 FE 0C 87 [09:21:21]RasterBufferAndPrint [09:21:21]line [09:21:21]line [09:21:21]line [09:21:21]line [09:21:21]line [09:21:21]written 0, free lines is 3335 [09:21:21]MH_Cut [09:21:21]Write to MH i2c: D1 01 00 72 0B 01 4F [09:21:21]Write i2c OK [09:21:21]MH_I2C_Read... [09:21:21]Read from MH i2c: D1 [09:21:21]MH_I2C_Read... [09:21:21]Read from MH i2c: D1 01 00 [09:21:21]MH_I2C_Read... [09:21:21]Read from MH i2c: D1 01 00 72 0B 00 4E [09:21:21]Write to MH i2c: 01 00 00 73 0B 7E [09:21:21]Write i2c OK [09:21:21]MH_I2C_Read... [09:21:21]OFD Sender: No OFD packet to send [09:21:21]*** Cut start [09:21:21]*** Partial cut [09:21:21]*** CUTSNS_PIN = 1 [09:21:21]*** CUTSNS_PIN = 0 [09:21:22]*** Brake cut motor [09:21:22]Read from MH i2c: 01 [09:21:22]MH_I2C_Read... [09:21:22]*** Stop cut motor [09:21:22]*** Cut end [09:21:22]Read from MH i2c: 01 07 00 [09:21:22]MH_I2C_Read... [09:21:22]Read from MH i2c: 01 07 00 73 0B 00 00 00 00 00 FF 0F 93 [09:21:22]process_action close_receipt done [09:21:22]requested_data is exist [09:21:22]produce_requested_data [09:21:22]requested_item fm.sn is exist - process it [09:21:22]wFMCommunicate request_size=4 [09:21:22]MH_SAM_APDU [09:21:22]CAPDU: 80 11 00 00 [09:21:22]Write to MH i2c: E2 08 00 74 0B 80 11 00 00 00 00 00 00 F9 [09:21:22]Write i2c OK [09:21:22]MH_I2C_Read... [09:21:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:22]Read from MH i2c: E2 [09:21:22]MH_I2C_Read... [09:21:22]Read from MH i2c: E2 17 00 [09:21:22]MH_I2C_Read... [09:21:22]Read from MH i2c: E2 17 00 74 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4C [09:21:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:21:22]wFMCommunicate OK [09:21:22]requested_item fd.num is exist - process it [09:21:22]SAM_PROTO_GetFieldsCounters [09:21:22]wFMCommunicate request_size=4 [09:21:22]MH_SAM_APDU [09:21:22]CAPDU: 80 13 00 00 [09:21:22]Write to MH i2c: E2 08 00 75 0B 80 13 00 00 00 00 00 00 FC [09:21:22]Write i2c OK [09:21:22]MH_I2C_Read... [09:21:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:22]Read from MH i2c: E2 [09:21:22]MH_I2C_Read... [09:21:22]Read from MH i2c: E2 62 00 [09:21:22]MH_I2C_Read... [09:21:22]Read from MH i2c: E2 62 00 75 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 5A DA 02 00 0E 04 04 00 87 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 4D [09:21: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 5A DA 02 00 0E 04 04 00 87 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:21:22]wFMCommunicate OK [09:21:22]SAM_PROTO_GetFieldsCounters done [09:21:22]requested_item shift.num is exist - process it [09:21:22]requested_item shift.opened is exist - process it [09:21:22]req_shift_opened [09:21:22]FM_GetShiftState [09:21:22]SAM_PROTO_GetShiftState [09:21:22]wFMCommunicate request_size=4 [09:21:22]MH_SAM_APDU [09:21:22]CAPDU: 80 13 01 00 [09:21:22]Write to MH i2c: E2 08 00 76 0B 80 13 01 00 00 00 00 00 FE [09:21:22]Write i2c OK [09:21:22]MH_I2C_Read... [09:21:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:22]Read from MH i2c: E2 [09:21:22]MH_I2C_Read... [09:21:22]Read from MH i2c: E2 0E 00 [09:21:22]MH_I2C_Read... [09:21:22]Read from MH i2c: E2 0E 00 76 0B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 7D [09:21:22]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:21:22]wFMCommunicate OK [09:21:22]SAM_PROTO_GetShiftState done [09:21:22]FM_GetShiftState done [09:21:22]req_shift_opened done [09:21:22]requested_item shift.open_date is exist - process it [09:21:22]req_shift_open_date [09:21:22]req_shift_open_date done [09:21:22]produce_requested_data done [09:21:22]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186970,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [09:21:22]process_action_free close_receipt [09:21:22]json_value_free [09:21:22]json_value_free done [09:21:22]process_json_proto returns [09:21:22]Send response to host [09:21:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186970,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [09:21:22]free response buf [09:21:22]execute_script done [09:21:22]execute_script returns [09:21:22]free content buf [09:21:22]Sock 7.Close socket [09:21:22]Sock 7.Thread stoped [09:21:26]OFD Sender: No OFD packet to send [09:21:31]OFD Sender: No OFD packet to send [09:21:36]OFD Sender: No OFD packet to send [09:21:41]OFD Sender: No OFD packet to send [09:21:46]OFD Sender: No OFD packet to send [09:21:51]OFD Sender: No OFD packet to send [09:21:56]OFD Sender: No OFD packet to send [09:22:01]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:11]OFD Sender: No OFD packet to send [09:22:16]OFD Sender: No OFD packet to send [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22:31]OFD Sender: No OFD packet to send [09:22:36]OFD Sender: No OFD packet to send [09:22:41]OFD Sender: No OFD packet to send [09:22:46]OFD Sender: No OFD packet to send [09:22:51]OFD Sender: No OFD packet to send [09:22:56]OFD Sender: No OFD packet to send [09:23:01]OFD Sender: No OFD packet to send [09:23:06]OFD Sender: No OFD packet to send [09:23:11]OFD Sender: No OFD packet to send [09:23:16]OFD Sender: No OFD packet to send [09:23:21]OFD Sender: No OFD packet to send [09:23:26]OFD Sender: No OFD packet to send [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:54]accept exits with 9 [09:23:54]New connection [09:23:54]New thread 3067022692 created [09:23:54]Thread 3066879332 joined [09:23:54]Waiting for new connection... [09:23:54] Sock 9.Parse request [09:23:54]Sock 9.Check first char [09:23:54]Sock 9.First char is OK [09:23:54]request: POST /json_proto HTTP/1.0 [09:23:54]Method: POST [09:23:54]URL: /json_proto [09:23:54]Method is POST - this is cgi request [09:23:54]url: /json_proto [09:23:54]query_string will be loaded in cgi processing [09:23:54]execute_cgi json_proto POST (null) [09:23:54]execute_cgi path=json_proto method=POST [09:23:54]POST find Content-Length [09:23:54]Host: 172.17.46.131:8080 [09:23:54]Content-Length: 677 [09:23:54]Content-Type: application/json [09:23:54] [09:23:54]POST finish read [09:23:54]Found Content-Length = 677 [09:23:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412121", "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" : 8.100, "sum" : 520.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:54]execute_script... [09:23: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)412121", "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" : 8.100, "sum" : 520.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:54]POST & json_proto [09:23:54]process_json_proto [09:23:54]json parsed OK: [09:23:54]protocol is kg_v1.0 [09:23:54]action value=close_receipt [09:23:54]process_action close_receipt [09:23:54]cmd_close_receipt [09:23:54]MH_GetDate [09:23:54]Write to MH i2c: F0 00 00 77 0B 71 [09:23:54]Write i2c OK [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: F0 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: F0 09 00 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: F0 09 00 77 0B 00 2C A3 B5 67 7E 41 4F 65 D8 [09:23:54]GetLastDocTimeStamp 1739956881 [09:23:54]current date 1739957036 [09:23:54]FM_GetShiftState [09:23:54]SAM_PROTO_GetShiftState [09:23:54]wFMCommunicate request_size=4 [09:23:54]MH_SAM_APDU [09:23:54]CAPDU: 80 13 01 00 [09:23:54]Write to MH i2c: E2 08 00 78 0B 80 13 01 00 00 00 00 00 00 [09:23:54]Write i2c OK [09:23:54]MH_I2C_Read... [09:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:54]Read from MH i2c: E2 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: E2 0E 00 [09:23:54]MH_I2C_Read... [09:23:54]Read from MH i2c: E2 0E 00 78 0B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 7F [09:23:54]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:23:54]wFMCommunicate OK [09:23:54]SAM_PROTO_GetShiftState done [09:23:54]FM_GetShiftState done [09:23:54]opened in 1739929631 [09:23:54]opened+sec_in_day 1740016031 [09:23:54]quantity*price = 52002 [09:23:54]sum+1 = 52003 [09:23:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.60 НДС 12% : 55.22 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 37 19.02.2025 09:23 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186971 ФПД: 211332789859872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T092356&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186971&fm=211332789859872&tin=02508201610067®Number=0000000000091857&sum=52000 [09:23:55]StoreToDocumentArchive [09:23:55]shift 647 fd 186971 [09:23:55]save to /storage/0647/doc_00186971 [09:23:55]save last doc name /storage/0647/doc_00186971 to /storage/kkm_last_doc_name [09:23:55]save OK [09:23:55]Clear old archive folders... [09:23:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:55]tlvbuf is 006117C0 [09:23:55]SAM_PROTO_ClearQueue [09:23:55]wFMCommunicate request_size=4 [09:23:55]MH_SAM_APDU [09:23:55]CAPDU: 80 09 00 00 [09:23:55]Write to MH i2c: E2 08 00 85 0B 80 09 00 00 00 00 00 00 02 [09:23:55]Write i2c OK [09:23:55]MH_I2C_Read... [09:23:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:55]Read from MH i2c: E2 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 03 00 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 03 00 85 0B 00 90 00 04 [09:23:55]RAPDU: 90 00 [09:23:55]wFMCommunicate OK [09:23:55]SAM_PROTO_ClearQueue done [09:23:55]KKMCreateOFDPacket [09:23:55]OFDProtocolAddRootSTLVToBuf [09:23:55]FM_MakeSignedData [09:23:55]FM_MakeSignedData [09:23:55]SAM_PROTO_SignData [09:23:55]wFMCommunicate request_size=4 [09:23:55]MH_SAM_APDU [09:23:55]CAPDU: 80 0D 01 02 [09:23:55]Write to MH i2c: E2 08 00 86 0B 80 0D 01 02 00 00 00 00 0A [09:23:55]Write i2c OK [09:23:55]MH_I2C_Read... [09:23:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:55]Read from MH i2c: E2 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 03 00 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 03 00 86 0B 00 90 00 05 [09:23:55]RAPDU: 90 00 [09:23:55]wFMCommunicate OK [09:23:55]wFMCommunicate request_size=255 [09:23:55]MH_SAM_APDU [09:23: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 A4 1F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 22 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 2C A3 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 5B DA 02 00 35 04 06 00 C0 [09:23:55]Write to MH i2c: E2 02 01 87 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A4 1F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 22 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 2C A3 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 5B DA 02 00 35 04 06 00 C0 00 00 CD [09:23:55]Write i2c OK [09:23:55]MH_I2C_Read... [09:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:55]Read from MH i2c: E2 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 03 00 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 03 00 87 0B 00 90 00 06 [09:23:55]RAPDU: 90 00 [09:23:55]wFMCommunicate OK [09:23:55]wFMCommunicate request_size=10 [09:23:55]MH_SAM_APDU [09:23:55]CAPDU: 80 0D 02 02 05 34 BF DE 76 20 [09:23:55]Write to MH i2c: E2 0D 00 88 0B 80 0D 02 02 05 00 34 BF DE 76 20 00 00 7E [09:23:55]Write i2c OK [09:23:55]MH_I2C_Read... [09:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:55]Read from MH i2c: E2 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 03 00 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 03 00 88 0B 00 90 00 07 [09:23:55]RAPDU: 90 00 [09:23:55]wFMCommunicate OK [09:23:55]wFMCommunicate request_size=4 [09:23:55]MH_SAM_APDU [09:23:55]CAPDU: 80 0D 03 02 [09:23:55]Write to MH i2c: E2 08 00 89 0B 80 0D 03 02 00 00 00 00 0F [09:23:55]Write i2c OK [09:23:55]MH_I2C_Read... [09:23:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:55]Read from MH i2c: E2 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 0B 00 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 0B 00 89 0B 00 21 EA 2B 03 F2 C7 5D 2A 90 00 89 [09:23:55]RAPDU: 21 EA 2B 03 F2 C7 5D 2A 90 00 [09:23:55]wFMCommunicate OK [09:23:55]SAM_PROTO_SignData done [09:23:55]FM_MakeSignedData done [09:23:55]CreateOFDProtocolMessage [09:23:55]wFMCommunicate request_size=4 [09:23:55]MH_SAM_APDU [09:23:55]CAPDU: 80 11 00 00 [09:23:55]Write to MH i2c: E2 08 00 8A 0B 80 11 00 00 00 00 00 00 0F [09:23:55]Write i2c OK [09:23:55]MH_I2C_Read... [09:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:55]Read from MH i2c: E2 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 17 00 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: E2 17 00 8A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 62 [09:23: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:23:55]wFMCommunicate OK [09:23:55]CreateOFDProtocolMessage done [09:23:55]OFDSenderStorePacket 186971 [09:23:55]StoreOFDPacket docnum=186971 [09:23: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 66 C2 07 01 8B 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A4 1F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 22 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 2C A3 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 5B DA 02 00 35 04 06 00 C0 34 BF DE 76 20 21 EA 2B 03 F2 C7 5D 2A [09:23:55]CheckFolder [09:23:55]dirname=/storage/ofd_packets [09:23:55]CheckFolder done [09:23:55]ProducePacketName [09:23:55]name=ofd_packets/00186971 [09:23:55]NVStorageSaveData ofd_packets/00186971 [09:23:55]File name is /storage/ofd_packets/00186971 [09:23:55]Write 301 bytes [09:23:55]NVStorageSaveData done [09:23:55]OFDSenderStorePacket done [09:23:55]KKMCreateOFDPacket done [09:23:55]NVStorageSaveData kkm_last_timestamp [09:23:55]File name is /storage/kkm_last_timestamp [09:23:55]Write 4 bytes [09:23:55]NVStorageSaveData done [09:23:55]ExternCall_PrintAddStr [09:23:55]wPrintStart [09:23:55]Write to MH i2c: 01 00 00 8B 0B 96 [09:23:55]Write i2c OK [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: 01 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: 01 07 00 [09:23:55]MH_I2C_Read... [09:23:55]Read from MH i2c: 01 07 00 8B 0B 00 00 00 00 00 FF 0F AB [09:23:55]RasterBufferAndPrint [09:23:55]line Счет N : (1)412121 [09:23:55]line ИНН: 02508201610067 [09:23:55]line Контрольно-Кассовый Чек [09:23:55]line ПРОДАЖА [09:23:55]line ТРК (МРК, ГНК) : 32 [09:23:55]line Товар: 2710124130 [09:23:55]line Аи-92-К-2 [09:23:55]line 8.100 * 64.20 [09:23:55]line = 520.02 [09:23:55]line НДС 12% НСП 1% [09:23:55]line > о реализуемом товаре [09:23:55]line ОКРУГЛЕНИЕ: -0.02 [09:23:55]line ИТОГО: 520.00 [09:23:55]line Внесено: 520.00 [09:23:55]line СДАЧА: 0.00 [09:23:55]line НСП 1% : 4.60 [09:23:55]line НДС 12% : 55.22 [09:23:55]line Наличными: 520.00 [09:23:55]line Безнал.: 0.00 [09:23:55]line Место: АЗС № 92 "Партнер Нефть" [09:23:55]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:23:55]line СНО: Общий режим [09:23:55]line Чек 37 19.02.2025 09:23 [09:23:55]line Смена: 647 ФФД: 1.0 [09:23:55]line ЗНМ: 0300000118 [09:23:55]line РНМ: 0000000000091857 [09:23:55]line Версия ККМ: 001 [09:23:55]line ФМ: 0000000000871826 [09:23:55]line ФД: 186971 [09:23:55]line ФПД: 211332789859872 [09:23:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T092356&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186971&fm=211332789859872&tin=02508201610067®Number=0000000000091857&sum=52000 [09:23:56]OFD Sender: Processing packet 186971 [packets to send 49, broken 48] [09:23:56]ProducePacketName [09:23:56]name=ofd_packets/00186971 [09:23:56]OFD Sender: To server: pG, [09:23:56]CommunicateWithHost lk.salyk.kg:30040 [09:23:56]ConnectInit lk.salyk.kg [09:23:56]written 0, free lines is 4095 [09:23:56]Connected sock=10 [09:23: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 66 C2 07 01 8B 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A4 1F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 22 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 2C A3 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 5B DA 02 00 35 04 06 00 C0 34 BF DE 76 20 21 EA 2B 03 F2 C7 5D 2A [09:23: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 41 4A 47 00 82 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 5B DA 02 00 F4 03 04 00 81 49 B5 67 B6 04 01 00 00 10 BF 31 71 8A D7 F9 BB [09:23:56]CommunicateWithHost err = 0 [09:23:56]CheckOFDResponse [09:23:56]1017 (14) - 77093643461234 [09:23:56]1041 (16) - 0000000000871826 [09:23:56]1040 (4) - 186971 [09:23:56]1012 (4) - 19.02.2025 03:01 [09:23:56]1206 (1) - 0 [09:23:56]OFD Sender: Remove packet 186971 [09:23:56]ProducePacketName [09:23:56]name=ofd_packets/00186971 [09:23:56]NVStorageDeleteData [09:23:56]Write to MH i2c: 01 00 00 B6 0B C1 [09:23:56]Write i2c OK [09:23:56]MH_I2C_Read... [09:23:56]Read from MH i2c: 01 [09:23:56]MH_I2C_Read... [09:23:56]Read from MH i2c: 01 07 00 [09:23:56]MH_I2C_Read... [09:23:56]Read from MH i2c: 01 07 00 B6 0B 00 00 00 00 00 F9 0C CD [09:23:56]RasterBufferAndPrint [09:23:56]line [09:23:56]line [09:23:56]line [09:23:56]line [09:23:56]line [09:23:56]written 0, free lines is 3328 [09:23:56]MH_Cut [09:23:56]Write to MH i2c: D1 01 00 BD 0B 01 9A [09:23:56]Write i2c OK [09:23:56]MH_I2C_Read... [09:23:56]Read from MH i2c: D1 [09:23:56]MH_I2C_Read... [09:23:56]Read from MH i2c: D1 01 00 [09:23:56]MH_I2C_Read... [09:23:56]Read from MH i2c: D1 01 00 BD 0B 00 99 [09:23:56]Write to MH i2c: 01 00 00 BE 0B C9 [09:23:56]Write i2c OK [09:23:56]MH_I2C_Read... [09:23:57]OFD Sender: No OFD packet to send [09:23:57]*** Cut start [09:23:57]*** Partial cut [09:23:57]*** CUTSNS_PIN = 1 [09:23:57]*** CUTSNS_PIN = 0 [09:23:57]*** Brake cut motor [09:23:58]Read from MH i2c: 01 [09:23:58]MH_I2C_Read... [09:23:58]*** Stop cut motor [09:23:58]*** Cut end [09:23:58]Read from MH i2c: 01 07 00 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: 01 07 00 BE 0B 00 00 00 00 00 FF 0F DE [09:23:58]process_action close_receipt done [09:23:58]requested_data is exist [09:23:58]produce_requested_data [09:23:58]requested_item fm.sn is exist - process it [09:23:58]wFMCommunicate request_size=4 [09:23:58]MH_SAM_APDU [09:23:58]CAPDU: 80 11 00 00 [09:23:58]Write to MH i2c: E2 08 00 BF 0B 80 11 00 00 00 00 00 00 44 [09:23:58]Write i2c OK [09:23:58]MH_I2C_Read... [09:23:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:58]Read from MH i2c: E2 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 17 00 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 17 00 BF 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 97 [09:23: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:23:58]wFMCommunicate OK [09:23:58]requested_item fd.num is exist - process it [09:23:58]SAM_PROTO_GetFieldsCounters [09:23:58]wFMCommunicate request_size=4 [09:23:58]MH_SAM_APDU [09:23:58]CAPDU: 80 13 00 00 [09:23:58]Write to MH i2c: E2 08 00 C0 0B 80 13 00 00 00 00 00 00 47 [09:23:58]Write i2c OK [09:23:58]MH_I2C_Read... [09:23:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:58]Read from MH i2c: E2 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 62 00 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 62 00 C0 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 5B DA 02 00 0E 04 04 00 87 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 9C [09:23: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 5B DA 02 00 0E 04 04 00 87 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:23:58]wFMCommunicate OK [09:23:58]SAM_PROTO_GetFieldsCounters done [09:23:58]requested_item shift.num is exist - process it [09:23:58]requested_item shift.opened is exist - process it [09:23:58]req_shift_opened [09:23:58]FM_GetShiftState [09:23:58]SAM_PROTO_GetShiftState [09:23:58]wFMCommunicate request_size=4 [09:23:58]MH_SAM_APDU [09:23:58]CAPDU: 80 13 01 00 [09:23:58]Write to MH i2c: E2 08 00 C1 0B 80 13 01 00 00 00 00 00 49 [09:23:58]Write i2c OK [09:23:58]MH_I2C_Read... [09:23:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:58]Read from MH i2c: E2 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 0E 00 [09:23:58]MH_I2C_Read... [09:23:58]Read from MH i2c: E2 0E 00 C1 0B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C8 [09:23:58]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:23:58]wFMCommunicate OK [09:23:58]SAM_PROTO_GetShiftState done [09:23:58]FM_GetShiftState done [09:23:58]req_shift_opened done [09:23:58]requested_item shift.open_date is exist - process it [09:23:58]req_shift_open_date [09:23:58]req_shift_open_date done [09:23:58]produce_requested_data done [09:23:58]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186971,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [09:23:58]process_action_free close_receipt [09:23:58]json_value_free [09:23:58]json_value_free done [09:23:58]process_json_proto returns [09:23:58]Send response to host [09:23:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186971,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [09:23:58]free response buf [09:23:58]execute_script done [09:23:58]execute_script returns [09:23:58]free content buf [09:23:58]Sock 9.Close socket [09:23:58]Sock 9.Thread stoped [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:52]accept exits with 7 [09:25:52]New connection [09:25:52]New thread 3066879332 created [09:25:52]Thread 3067022692 joined [09:25:52]Waiting for new connection... [09:25:52] Sock 7.Parse request [09:25:52]Sock 7.Check first char [09:25:52]Sock 7.First char is OK [09:25:52]request: POST /json_proto HTTP/1.0 [09:25:52]Method: POST [09:25:52]URL: /json_proto [09:25:52]Method is POST - this is cgi request [09:25:52]url: /json_proto [09:25:52]query_string will be loaded in cgi processing [09:25:52]execute_cgi json_proto POST (null) [09:25:52]execute_cgi path=json_proto method=POST [09:25:52]POST find Content-Length [09:25:52]Host: 172.17.46.131:8080 [09:25:52]Content-Length: 754 [09:25:52]Content-Type: application/json [09:25:52] [09:25:52]POST finish read [09:25:52]Found Content-Length = 754 [09:25:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412122", "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\u000A30096418", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:52]execute_script... [09:25:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412122", "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\u000A30096418", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:52]POST & json_proto [09:25:52]process_json_proto [09:25:52]json parsed OK: [09:25:52]protocol is kg_v1.0 [09:25:52]action value=close_receipt [09:25:52]process_action close_receipt [09:25:52]cmd_close_receipt [09:25:52]MH_GetDate [09:25:52]Write to MH i2c: F0 00 00 C2 0B BC [09:25:52]Write i2c OK [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: F0 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: F0 09 00 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: F0 09 00 C2 0B 00 A3 A3 B5 67 7E 41 4F 65 9A [09:25:52]GetLastDocTimeStamp 1739957036 [09:25:52]current date 1739957155 [09:25:52]FM_GetShiftState [09:25:52]SAM_PROTO_GetShiftState [09:25:52]wFMCommunicate request_size=4 [09:25:52]MH_SAM_APDU [09:25:52]CAPDU: 80 13 01 00 [09:25:52]Write to MH i2c: E2 08 00 C3 0B 80 13 01 00 00 00 00 00 4B [09:25:52]Write i2c OK [09:25:52]MH_I2C_Read... [09:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:52]Read from MH i2c: E2 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: E2 0E 00 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: E2 0E 00 C3 0B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 CA [09:25:52]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:25:52]wFMCommunicate OK [09:25:52]SAM_PROTO_GetShiftState done [09:25:52]FM_GetShiftState done [09:25:52]opened in 1739929631 [09:25:52]opened+sec_in_day 1740016031 [09:25:52]quantity*price = 0 [09:25:52]sum+1 = 1 [09:25: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 СНО: Общий режим Чек 38 19.02.2025 09:25 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30096418 ФМ: 0000000000871826 ФД: 186972 ФПД: 57254414951335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T092555&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186972&fm=57254414951335&tin=02508201610067®Number=0000000000091857&sum=0 [09:25:53]StoreToDocumentArchive [09:25:53]shift 647 fd 186972 [09:25:53]save to /storage/0647/doc_00186972 [09:25:53]save last doc name /storage/0647/doc_00186972 to /storage/kkm_last_doc_name [09:25:53]save OK [09:25:53]Clear old archive folders... [09:25:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:53]tlvbuf is B6F69890 [09:25:53]SAM_PROTO_ClearQueue [09:25:53]wFMCommunicate request_size=4 [09:25:53]MH_SAM_APDU [09:25:53]CAPDU: 80 09 00 00 [09:25:53]Write to MH i2c: E2 08 00 D0 0B 80 09 00 00 00 00 00 00 4D [09:25:53]Write i2c OK [09:25:53]MH_I2C_Read... [09:25:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:53]Read from MH i2c: E2 [09:25:53]MH_I2C_Read... [09:25:53]Read from MH i2c: E2 03 00 [09:25:53]MH_I2C_Read... [09:25:53]Read from MH i2c: E2 03 00 D0 0B 00 90 00 4F [09:25:53]RAPDU: 90 00 [09:25:53]wFMCommunicate OK [09:25:53]SAM_PROTO_ClearQueue done [09:25:53]KKMCreateOFDPacket [09:25:53]OFDProtocolAddRootSTLVToBuf [09:25:53]FM_MakeSignedData [09:25:53]FM_MakeSignedData [09:25:53]SAM_PROTO_SignData [09:25:53]wFMCommunicate request_size=4 [09:25:53]MH_SAM_APDU [09:25:53]CAPDU: 80 0D 01 02 [09:25:53]Write to MH i2c: E2 08 00 D1 0B 80 0D 01 02 00 00 00 00 55 [09:25:53]Write i2c OK [09:25:53]MH_I2C_Read... [09:25:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:54]Read from MH i2c: E2 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: E2 03 00 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: E2 03 00 D1 0B 00 90 00 50 [09:25:54]RAPDU: 90 00 [09:25:54]wFMCommunicate OK [09:25:54]wFMCommunicate request_size=255 [09:25:54]MH_SAM_APDU [09:25: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 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 26 00 00 00 F4 03 04 00 A3 A3 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 5C DA 02 00 35 04 06 00 34 [09:25:54]Write to MH i2c: E2 02 01 D2 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 26 00 00 00 F4 03 04 00 A3 A3 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 5C DA 02 00 35 04 06 00 34 00 00 4C [09:25:54]Write i2c OK [09:25:54]MH_I2C_Read... [09:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:54]Read from MH i2c: E2 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: E2 03 00 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: E2 03 00 D2 0B 00 90 00 51 [09:25:54]RAPDU: 90 00 [09:25:54]wFMCommunicate OK [09:25:54]wFMCommunicate request_size=10 [09:25:54]MH_SAM_APDU [09:25:54]CAPDU: 80 0D 02 02 05 12 95 10 A3 A7 [09:25:54]Write to MH i2c: E2 0D 00 D3 0B 80 0D 02 02 05 00 12 95 10 A3 A7 00 00 63 [09:25:54]Write i2c OK [09:25:54]MH_I2C_Read... [09:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:54]Read from MH i2c: E2 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: E2 03 00 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: E2 03 00 D3 0B 00 90 00 52 [09:25:54]RAPDU: 90 00 [09:25:54]wFMCommunicate OK [09:25:54]wFMCommunicate request_size=4 [09:25:54]MH_SAM_APDU [09:25:54]CAPDU: 80 0D 03 02 [09:25:54]Write to MH i2c: E2 08 00 D4 0B 80 0D 03 02 00 00 00 00 5A [09:25:54]Write i2c OK [09:25:54]MH_I2C_Read... [09:25:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:54]Read from MH i2c: E2 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: E2 0B 00 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: E2 0B 00 D4 0B 00 E1 C7 DE 5B F7 23 28 FC 90 00 7A [09:25:54]RAPDU: E1 C7 DE 5B F7 23 28 FC 90 00 [09:25:54]wFMCommunicate OK [09:25:54]SAM_PROTO_SignData done [09:25:54]FM_MakeSignedData done [09:25:54]CreateOFDProtocolMessage [09:25:54]wFMCommunicate request_size=4 [09:25:54]MH_SAM_APDU [09:25:54]CAPDU: 80 11 00 00 [09:25:54]Write to MH i2c: E2 08 00 D5 0B 80 11 00 00 00 00 00 00 5A [09:25:54]Write i2c OK [09:25:54]MH_I2C_Read... [09:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:54]Read from MH i2c: E2 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: E2 17 00 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: E2 17 00 D5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AD [09:25: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:25:54]wFMCommunicate OK [09:25:54]CreateOFDProtocolMessage done [09:25:54]OFDSenderStorePacket 186972 [09:25:54]StoreOFDPacket docnum=186972 [09:25: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 CB 27 07 01 8F 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 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 26 00 00 00 F4 03 04 00 A3 A3 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 5C DA 02 00 35 04 06 00 34 12 95 10 A3 A7 E1 C7 DE 5B F7 23 28 FC [09:25:54]CheckFolder [09:25:54]dirname=/storage/ofd_packets [09:25:54]CheckFolder done [09:25:54]ProducePacketName [09:25:54]name=ofd_packets/00186972 [09:25:54]NVStorageSaveData ofd_packets/00186972 [09:25:54]File name is /storage/ofd_packets/00186972 [09:25:54]Write 301 bytes [09:25:54]NVStorageSaveData done [09:25:54]OFDSenderStorePacket done [09:25:54]KKMCreateOFDPacket done [09:25:54]NVStorageSaveData kkm_last_timestamp [09:25:54]File name is /storage/kkm_last_timestamp [09:25:54]Write 4 bytes [09:25:54]NVStorageSaveData done [09:25:54]ExternCall_PrintAddStr [09:25:54]wPrintStart [09:25:54]Write to MH i2c: 01 00 00 D6 0B E1 [09:25:54]Write i2c OK [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: 01 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: 01 07 00 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: 01 07 00 D6 0B 00 00 00 00 00 FF 0F F6 [09:25:54]RasterBufferAndPrint [09:25:54]line Счет N : (1)412122 [09:25:54]line ИНН: 02508201610067 [09:25:54]line Контрольно-Кассовый Чек [09:25:54]line ПРОДАЖА [09:25:54]line ТРК (МРК, ГНК) : 22 [09:25:54]line Товар: 2710124130 [09:25:54]line Аи-92-К-2 [09:25:54]line 20.000 * 0.00 [09:25:54]line = 0.00 [09:25:54]line НДС 12% НСП 1% [09:25:54]line > о реализуемом товаре [09:25:54]line ИТОГО: 0.00 [09:25:54]line НСП 1% : 0.00 [09:25:54]line НДС 12% : 0.00 [09:25:54]line Наличными: 0.00 [09:25:54]line Безнал.: 0.00 [09:25:54]line Место: АЗС № 92 "Партнер Нефть" [09:25:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:25:54]line СНО: Общий режим [09:25:54]line Чек 38 19.02.2025 09:25 [09:25:54]line Смена: 647 ФФД: 1.0 [09:25:54]line ЗНМ: 0300000118 [09:25:54]line РНМ: 0000000000091857 [09:25:54]line Версия ККМ: 001 [09:25:54]line Талоны: ТК ГПНА Online [09:25:54]line 30096418 [09:25:54]line ФМ: 0000000000871826 [09:25:54]line ФД: 186972 [09:25:54]line ФПД: 57254414951335 [09:25:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T092555&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186972&fm=57254414951335&tin=02508201610067®Number=0000000000091857&sum=0 [09:25:54]OFD Sender: Processing packet 186972 [packets to send 49, broken 48] [09:25:54]ProducePacketName [09:25:54]name=ofd_packets/00186972 [09:25:54]OFD Sender: To server: pG, [09:25:54]CommunicateWithHost lk.salyk.kg:30040 [09:25:54]ConnectInit lk.salyk.kg [09:25:54]written 0, free lines is 4095 [09:25:54]Connected sock=10 [09:25:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CB 27 07 01 8F 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 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 26 00 00 00 F4 03 04 00 A3 A3 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 5C DA 02 00 35 04 06 00 34 12 95 10 A3 A7 E1 C7 DE 5B F7 23 28 FC [09:25: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 8E 64 47 00 5D 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 5C DA 02 00 F4 03 04 00 F7 49 B5 67 B6 04 01 00 00 B6 4E 04 E5 E5 F8 66 6B [09:25:55]CommunicateWithHost err = 0 [09:25:55]CheckOFDResponse [09:25:55]1017 (14) - 77093643461234 [09:25:55]1041 (16) - 0000000000871826 [09:25:55]1040 (4) - 186972 [09:25:55]1012 (4) - 19.02.2025 03:03 [09:25:55]1206 (1) - 0 [09:25:55]OFD Sender: Remove packet 186972 [09:25:55]ProducePacketName [09:25:55]name=ofd_packets/00186972 [09:25:55]NVStorageDeleteData [09:25:55]Write to MH i2c: 01 00 00 00 0C 0C [09:25:55]Write i2c OK [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: 01 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: 01 07 00 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: 01 07 00 00 0C 00 00 00 00 00 0E 0D 2E [09:25:55]RasterBufferAndPrint [09:25:55]line [09:25:55]line [09:25:55]line [09:25:55]line [09:25:55]line [09:25:55]written 0, free lines is 3347 [09:25:55]MH_Cut [09:25:55]Write to MH i2c: D1 01 00 07 0C 01 E5 [09:25:55]Write i2c OK [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: D1 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: D1 01 00 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: D1 01 00 07 0C 00 E4 [09:25:55]Write to MH i2c: 01 00 00 08 0C 14 [09:25:55]Write i2c OK [09:25:55]MH_I2C_Read... [09:25:55]OFD Sender: No OFD packet to send [09:25:55]*** Cut start [09:25:55]*** Partial cut [09:25:55]*** CUTSNS_PIN = 1 [09:25:55]*** CUTSNS_PIN = 0 [09:25:56]*** Brake cut motor [09:25:56]Read from MH i2c: 01 [09:25:56]*** Stop cut motor [09:25:56]*** Cut end [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: 01 07 00 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: 01 07 00 08 0C 00 00 00 00 00 FF 0F 29 [09:25:56]process_action close_receipt done [09:25:56]requested_data is exist [09:25:56]produce_requested_data [09:25:56]requested_item fm.sn is exist - process it [09:25:56]wFMCommunicate request_size=4 [09:25:56]MH_SAM_APDU [09:25:56]CAPDU: 80 11 00 00 [09:25:56]Write to MH i2c: E2 08 00 09 0C 80 11 00 00 00 00 00 00 8F [09:25:56]Write i2c OK [09:25:56]MH_I2C_Read... [09:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:56]Read from MH i2c: E2 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 17 00 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 17 00 09 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E2 [09: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 [09:25:56]wFMCommunicate OK [09:25:56]requested_item fd.num is exist - process it [09:25:56]SAM_PROTO_GetFieldsCounters [09:25:56]wFMCommunicate request_size=4 [09:25:56]MH_SAM_APDU [09:25:56]CAPDU: 80 13 00 00 [09:25:56]Write to MH i2c: E2 08 00 0A 0C 80 13 00 00 00 00 00 00 92 [09:25:56]Write i2c OK [09:25:56]MH_I2C_Read... [09:25:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:56]Read from MH i2c: E2 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 62 00 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 62 00 0A 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 5C DA 02 00 0E 04 04 00 87 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 EB [09:25:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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:25:56]wFMCommunicate OK [09:25:56]SAM_PROTO_GetFieldsCounters done [09:25:56]requested_item shift.num is exist - process it [09:25:56]requested_item shift.opened is exist - process it [09:25:56]req_shift_opened [09:25:56]FM_GetShiftState [09:25:56]SAM_PROTO_GetShiftState [09:25:56]wFMCommunicate request_size=4 [09:25:56]MH_SAM_APDU [09:25:56]CAPDU: 80 13 01 00 [09:25:56]Write to MH i2c: E2 08 00 0B 0C 80 13 01 00 00 00 00 00 94 [09:25:56]Write i2c OK [09:25:56]MH_I2C_Read... [09:25:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:56]Read from MH i2c: E2 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 0E 00 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 0E 00 0B 0C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 13 [09:25:56]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:25:56]wFMCommunicate OK [09:25:56]SAM_PROTO_GetShiftState done [09:25:56]FM_GetShiftState done [09:25:56]req_shift_opened done [09:25:56]requested_item shift.open_date is exist - process it [09:25:56]req_shift_open_date [09:25:56]req_shift_open_date done [09:25:56]produce_requested_data done [09:25:56]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186972,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [09:25:56]process_action_free close_receipt [09:25:56]json_value_free [09:25:56]json_value_free done [09:25:56]process_json_proto returns [09:25:56]Send response to host [09:25:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186972,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [09:25:56]free response buf [09:25:56]execute_script done [09:25:56]execute_script returns [09:25:56]free content buf [09:25:56]Sock 7.Close socket [09:25:56]Sock 7.Thread stoped [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:11]OFD Sender: No OFD packet to send [09:31:16]OFD Sender: No OFD packet to send [09:31:21]OFD Sender: No OFD packet to send [09:31:26]OFD Sender: No OFD packet to send [09:31:31]OFD Sender: No OFD packet to send [09:31:36]OFD Sender: No OFD packet to send [09:31:41]OFD Sender: No OFD packet to send [09:31:46]OFD Sender: No OFD packet to send [09:31:51]OFD Sender: No OFD packet to send [09:31:56]OFD Sender: No OFD packet to send [09:32:01]OFD Sender: No OFD packet to send [09:32:06]OFD Sender: No OFD packet to send [09:32:11]OFD Sender: No OFD packet to send [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:40]accept exits with 9 [09:32:40]New connection [09:32:40]New thread 3067022692 created [09:32:40]Thread 3066879332 joined [09:32:40]Waiting for new connection... [09:32:40] Sock 9.Parse request [09:32:40]Sock 9.Check first char [09:32:40]Sock 9.First char is OK [09:32:40]request: POST /json_proto HTTP/1.0 [09:32:40]Method: POST [09:32:40]URL: /json_proto [09:32:40]Method is POST - this is cgi request [09:32:40]url: /json_proto [09:32:40]query_string will be loaded in cgi processing [09:32:40]execute_cgi json_proto POST (null) [09:32:40]execute_cgi path=json_proto method=POST [09:32:40]POST find Content-Length [09:32:40]Host: 172.17.46.131:8080 [09:32:40]Content-Length: 800 [09:32:40]Content-Type: application/json [09:32:40] [09:32:40]POST finish read [09:32:40]Found Content-Length = 800 [09:32:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412123", "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 }]} ], "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" ] } } [09:32:40]execute_script... [09:32: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)412123", "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 }]} ], "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" ] } } [09:32:40]POST & json_proto [09:32:40]process_json_proto [09:32:40]json parsed OK: [09:32:40]protocol is kg_v1.0 [09:32:40]action value=close_receipt [09:32:40]process_action close_receipt [09:32:40]cmd_close_receipt [09:32:40]MH_GetDate [09:32:40]Write to MH i2c: F0 00 00 0C 0C 07 [09:32:40]Write i2c OK [09:32:40]MH_I2C_Read... [09:32:40]Read from MH i2c: F0 [09:32:40]MH_I2C_Read... [09:32:40]Read from MH i2c: F0 09 00 [09:32:40]MH_I2C_Read... [09:32:40]Read from MH i2c: F0 09 00 0C 0C 00 3B A5 B5 67 7E 41 4F 65 7F [09:32:40]GetLastDocTimeStamp 1739957155 [09:32:40]current date 1739957563 [09:32:40]FM_GetShiftState [09:32:40]SAM_PROTO_GetShiftState [09:32:40]wFMCommunicate request_size=4 [09:32:40]MH_SAM_APDU [09:32:40]CAPDU: 80 13 01 00 [09:32:40]Write to MH i2c: E2 08 00 0D 0C 80 13 01 00 00 00 00 00 96 [09:32:40]Write i2c OK [09:32:40]MH_I2C_Read... [09:32:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:40]Read from MH i2c: E2 [09:32:40]MH_I2C_Read... [09:32:40]Read from MH i2c: E2 0E 00 [09:32:40]MH_I2C_Read... [09:32:40]Read from MH i2c: E2 0E 00 0D 0C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 15 [09:32:40]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:32:40]wFMCommunicate OK [09:32:40]SAM_PROTO_GetShiftState done [09:32:40]FM_GetShiftState done [09:32:40]opened in 1739929631 [09:32:40]opened+sec_in_day 1740016031 [09:32:40]quantity*price = 60027 [09:32:40]sum+1 = 60028 [09:32:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.27 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 0.00 Безнал.: 600.27 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 39 19.02.2025 09:32 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186973 ФПД: 203163967222528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T093243&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186973&fm=203163967222528&tin=02508201610067®Number=0000000000091857&sum=60027 [09:32:41]StoreToDocumentArchive [09:32:41]shift 647 fd 186973 [09:32:41]save to /storage/0647/doc_00186973 [09:32:41]save last doc name /storage/0647/doc_00186973 to /storage/kkm_last_doc_name [09:32:41]save OK [09:32:41]Clear old archive folders... [09:32:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:41]tlvbuf is 005B1040 [09:32:41]SAM_PROTO_ClearQueue [09:32:41]wFMCommunicate request_size=4 [09:32:41]MH_SAM_APDU [09:32:41]CAPDU: 80 09 00 00 [09:32:41]Write to MH i2c: E2 08 00 1A 0C 80 09 00 00 00 00 00 00 98 [09:32:41]Write i2c OK [09:32:41]MH_I2C_Read... [09:32:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:41]Read from MH i2c: E2 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: E2 03 00 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: E2 03 00 1A 0C 00 90 00 9A [09:32:41]RAPDU: 90 00 [09:32:41]wFMCommunicate OK [09:32:41]SAM_PROTO_ClearQueue done [09:32:41]KKMCreateOFDPacket [09:32:41]OFDProtocolAddRootSTLVToBuf [09:32:41]FM_MakeSignedData [09:32:41]FM_MakeSignedData [09:32:41]SAM_PROTO_SignData [09:32:41]wFMCommunicate request_size=4 [09:32:41]MH_SAM_APDU [09:32:41]CAPDU: 80 0D 01 02 [09:32:41]Write to MH i2c: E2 08 00 1B 0C 80 0D 01 02 00 00 00 00 A0 [09:32:41]Write i2c OK [09:32:41]MH_I2C_Read... [09:32:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:41]Read from MH i2c: E2 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: E2 03 00 [09:32:41]MH_I2C_Read... [09:32:41]Read from MH i2c: E2 03 00 1B 0C 00 90 00 9B [09:32:41]RAPDU: 90 00 [09:32:41]wFMCommunicate OK [09:32:41]wFMCommunicate request_size=255 [09:32:41]MH_SAM_APDU [09:32: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 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 27 00 00 00 F4 03 04 00 3B A5 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 5D DA 02 00 35 04 06 00 B8 [09:32:41]Write to MH i2c: E2 02 01 1C 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 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 27 00 00 00 F4 03 04 00 3B A5 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 5D DA 02 00 35 04 06 00 B8 00 00 62 [09:32:41]Write i2c OK [09:32:41]MH_I2C_Read... [09:32:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:42]Read from MH i2c: E2 [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: E2 03 00 [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: E2 03 00 1C 0C 00 90 00 9C [09:32:42]RAPDU: 90 00 [09:32:42]wFMCommunicate OK [09:32:42]wFMCommunicate request_size=10 [09:32:42]MH_SAM_APDU [09:32:42]CAPDU: 80 0D 02 02 05 C6 CC 18 F3 00 [09:32:42]Write to MH i2c: E2 0D 00 1D 0C 80 0D 02 02 05 00 C6 CC 18 F3 00 00 00 4A [09:32:42]Write i2c OK [09:32:42]MH_I2C_Read... [09:32:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:42]Read from MH i2c: E2 [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: E2 03 00 [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: E2 03 00 1D 0C 00 90 00 9D [09:32:42]RAPDU: 90 00 [09:32:42]wFMCommunicate OK [09:32:42]wFMCommunicate request_size=4 [09:32:42]MH_SAM_APDU [09:32:42]CAPDU: 80 0D 03 02 [09:32:42]Write to MH i2c: E2 08 00 1E 0C 80 0D 03 02 00 00 00 00 A5 [09:32:42]Write i2c OK [09:32:42]MH_I2C_Read... [09:32:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:42]Read from MH i2c: E2 [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: E2 0B 00 [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: E2 0B 00 1E 0C 00 C8 3E 24 75 FA 8E B6 7E 90 00 01 [09:32:42]RAPDU: C8 3E 24 75 FA 8E B6 7E 90 00 [09:32:42]wFMCommunicate OK [09:32:42]SAM_PROTO_SignData done [09:32:42]FM_MakeSignedData done [09:32:42]CreateOFDProtocolMessage [09:32:42]wFMCommunicate request_size=4 [09:32:42]MH_SAM_APDU [09:32:42]CAPDU: 80 11 00 00 [09:32:42]Write to MH i2c: E2 08 00 1F 0C 80 11 00 00 00 00 00 00 A5 [09:32:42]Write i2c OK [09:32:42]MH_I2C_Read... [09:32:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:42]Read from MH i2c: E2 [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: E2 17 00 [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: E2 17 00 1F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F8 [09:32: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:32:42]wFMCommunicate OK [09:32:42]CreateOFDProtocolMessage done [09:32:42]OFDSenderStorePacket 186973 [09:32:42]StoreOFDPacket docnum=186973 [09:32: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 22 DF 07 01 65 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 27 00 00 00 F4 03 04 00 3B A5 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 5D DA 02 00 35 04 06 00 B8 C6 CC 18 F3 00 C8 3E 24 75 FA 8E B6 7E [09:32:42]CheckFolder [09:32:42]dirname=/storage/ofd_packets [09:32:42]CheckFolder done [09:32:42]ProducePacketName [09:32:42]name=ofd_packets/00186973 [09:32:42]NVStorageSaveData ofd_packets/00186973 [09:32:42]File name is /storage/ofd_packets/00186973 [09:32:42]Write 301 bytes [09:32:42]NVStorageSaveData done [09:32:42]OFDSenderStorePacket done [09:32:42]KKMCreateOFDPacket done [09:32:42]NVStorageSaveData kkm_last_timestamp [09:32:42]File name is /storage/kkm_last_timestamp [09:32:42]Write 4 bytes [09:32:42]NVStorageSaveData done [09:32:42]ExternCall_PrintAddStr [09:32:42]wPrintStart [09:32:42]Write to MH i2c: 01 00 00 20 0C 2C [09:32:42]Write i2c OK [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: 01 [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: 01 07 00 [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: 01 07 00 20 0C 00 00 00 00 00 FF 0F 41 [09:32:42]RasterBufferAndPrint [09:32:42]line Счет N : (1)412123 [09:32:42]line ИНН: 02508201610067 [09:32:42]line Контрольно-Кассовый Чек [09:32:42]line ПРОДАЖА [09:32:42]line ТРК (МРК, ГНК) : 32 [09:32:42]line Товар: 2710124130 [09:32:42]line Аи-92-К-2 [09:32:42]line 9.350 * 64.20 [09:32:42]line = 600.27 [09:32:42]line НДС 12% НСП 1% [09:32:42]line > о реализуемом товаре [09:32:42]line ИТОГО: 600.27 [09:32:42]line НСП 1% : 5.31 [09:32:42]line НДС 12% : 63.74 [09:32:42]line Наличными: 0.00 [09:32:42]line Безнал.: 600.27 [09:32:42]line Место: АЗС № 92 "Партнер Нефть" [09:32:42]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:32:42]line СНО: Общий режим [09:32:42]line Чек 39 19.02.2025 09:32 [09:32:42]line Смена: 647 ФФД: 1.0 [09:32:42]line ЗНМ: 0300000118 [09:32:42]line РНМ: 0000000000091857 [09:32:42]line Версия ККМ: 001 [09:32:42]line Платежная система: O! деньги [09:32:42]line ФМ: 0000000000871826 [09:32:42]line ФД: 186973 [09:32:42]line ФПД: 203163967222528 [09:32:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T093243&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186973&fm=203163967222528&tin=02508201610067®Number=0000000000091857&sum=60027 [09:32:42]written 0, free lines is 4095 [09:32:42]OFD Sender: Processing packet 186973 [packets to send 49, broken 48] [09:32:42]ProducePacketName [09:32:42]name=ofd_packets/00186973 [09:32:42]OFD Sender: To server: pG, [09:32:42]CommunicateWithHost lk.salyk.kg:30040 [09:32:42]ConnectInit lk.salyk.kg [09:32:42]Write to MH i2c: 01 00 00 4A 0C 56 [09:32:42]Write i2c OK [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: 01 [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: 01 07 00 [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: 01 07 00 4A 0C 00 00 00 00 00 10 0D 7A [09:32:42]RasterBufferAndPrint [09:32:42]line [09:32:42]line [09:32:42]line [09:32:42]line [09:32:42]line [09:32:42]written 0, free lines is 3351 [09:32:42]MH_Cut [09:32:42]Write to MH i2c: D1 01 00 51 0C 01 2F [09:32:42]Write i2c OK [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: D1 [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: D1 01 00 [09:32:42]MH_I2C_Read... [09:32:42]Read from MH i2c: D1 01 00 51 0C 00 2E [09:32:42]Write to MH i2c: 01 00 00 52 0C 5E [09:32:42]Write i2c OK [09:32:42]MH_I2C_Read... [09:32:42]Connected sock=10 [09:32: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 22 DF 07 01 65 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 27 00 00 00 F4 03 04 00 3B A5 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 5D DA 02 00 35 04 06 00 B8 C6 CC 18 F3 00 C8 3E 24 75 FA 8E B6 7E [09:32: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 4B 19 47 00 5D 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5D DA 02 00 F4 03 04 00 8F 4B B5 67 B6 04 01 00 00 19 46 B9 6B 0E 48 5B 72 [09:32:43]CommunicateWithHost err = 0 [09:32:43]CheckOFDResponse [09:32:43]1017 (14) - 77093643461234 [09:32:43]1041 (16) - 0000000000871826 [09:32:43]1040 (4) - 186973 [09:32:43]1012 (4) - 19.02.2025 03:10 [09:32:43]1206 (1) - 0 [09:32:43]OFD Sender: Remove packet 186973 [09:32:43]ProducePacketName [09:32:43]name=ofd_packets/00186973 [09:32:43]NVStorageDeleteData [09:32:43]*** Cut start [09:32:43]*** Partial cut [09:32:43]*** CUTSNS_PIN = 1 [09:32:43]*** CUTSNS_PIN = 0 [09:32:43]OFD Sender: No OFD packet to send [09:32:43]*** Brake cut motor [09:32:44]Read from MH i2c: 01 [09:32:44]MH_I2C_Read... [09:32:44]Read from MH i2c: 01 07 00 [09:32:44]MH_I2C_Read... [09:32:44]*** Stop cut motor [09:32:44]*** Cut end [09:32:44]Read from MH i2c: 01 07 00 52 0C 00 00 00 00 00 FF 0F 73 [09:32:44]process_action close_receipt done [09:32:44]requested_data is exist [09:32:44]produce_requested_data [09:32:44]requested_item fm.sn is exist - process it [09:32:44]wFMCommunicate request_size=4 [09:32:44]MH_SAM_APDU [09:32:44]CAPDU: 80 11 00 00 [09:32:44]Write to MH i2c: E2 08 00 53 0C 80 11 00 00 00 00 00 00 D9 [09:32:44]Write i2c OK [09:32:44]MH_I2C_Read... [09:32:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:44]Read from MH i2c: E2 [09:32:44]MH_I2C_Read... [09:32:44]Read from MH i2c: E2 17 00 [09:32:44]MH_I2C_Read... [09:32:44]Read from MH i2c: E2 17 00 53 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2C [09:32: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:32:44]wFMCommunicate OK [09:32:44]requested_item fd.num is exist - process it [09:32:44]SAM_PROTO_GetFieldsCounters [09:32:44]wFMCommunicate request_size=4 [09:32:44]MH_SAM_APDU [09:32:44]CAPDU: 80 13 00 00 [09:32:44]Write to MH i2c: E2 08 00 54 0C 80 13 00 00 00 00 00 00 DC [09:32:44]Write i2c OK [09:32:44]MH_I2C_Read... [09:32:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:44]Read from MH i2c: E2 [09:32:44]MH_I2C_Read... [09:32:44]Read from MH i2c: E2 62 00 [09:32:44]MH_I2C_Read... [09:32:44]Read from MH i2c: E2 62 00 54 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 5D DA 02 00 0E 04 04 00 87 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 39 [09:32: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 5D DA 02 00 0E 04 04 00 87 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:32:44]wFMCommunicate OK [09:32:44]SAM_PROTO_GetFieldsCounters done [09:32:44]requested_item shift.num is exist - process it [09:32:44]requested_item shift.opened is exist - process it [09:32:44]req_shift_opened [09:32:44]FM_GetShiftState [09:32:44]SAM_PROTO_GetShiftState [09:32:44]wFMCommunicate request_size=4 [09:32:44]MH_SAM_APDU [09:32:44]CAPDU: 80 13 01 00 [09:32:44]Write to MH i2c: E2 08 00 55 0C 80 13 01 00 00 00 00 00 DE [09:32:44]Write i2c OK [09:32:44]MH_I2C_Read... [09:32:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:44]Read from MH i2c: E2 [09:32:44]MH_I2C_Read... [09:32:44]Read from MH i2c: E2 0E 00 [09:32:44]MH_I2C_Read... [09:32:44]Read from MH i2c: E2 0E 00 55 0C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 5D [09:32:44]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:32:44]wFMCommunicate OK [09:32:44]SAM_PROTO_GetShiftState done [09:32:44]FM_GetShiftState done [09:32:44]req_shift_opened done [09:32:44]requested_item shift.open_date is exist - process it [09:32:44]req_shift_open_date [09:32:44]req_shift_open_date done [09:32:44]produce_requested_data done [09:32:44]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186973,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [09:32:44]process_action_free close_receipt [09:32:44]json_value_free [09:32:44]json_value_free done [09:32:44]process_json_proto returns [09:32:44]Send response to host [09:32:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186973,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [09:32:44]free response buf [09:32:44]execute_script done [09:32:44]execute_script returns [09:32:44]free content buf [09:32:44]Sock 9.Close socket [09:32:44]Sock 9.Thread stoped [09:32:48]OFD Sender: No OFD packet to send [09:32:52]accept exits with 7 [09:32:52]New connection [09:32:52]New thread 3066879332 created [09:32:52]Thread 3067022692 joined [09:32:52]Waiting for new connection... [09:32:52] Sock 7.Parse request [09:32:52]Sock 7.Check first char [09:32:52]Sock 7.First char is OK [09:32:52]request: POST /json_proto HTTP/1.0 [09:32:52]Method: POST [09:32:52]URL: /json_proto [09:32:52]Method is POST - this is cgi request [09:32:52]url: /json_proto [09:32:52]query_string will be loaded in cgi processing [09:32:52]execute_cgi json_proto POST (null) [09:32:52]execute_cgi path=json_proto method=POST [09:32:52]POST find Content-Length [09:32:52]Host: 172.17.46.131:8080 [09:32:52]Content-Length: 801 [09:32:52]Content-Type: application/json [09:32:52] [09:32:52]POST finish read [09:32:52]Found Content-Length = 801 [09:32:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412124", "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" : 10.910, "sum" : 700.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" : 700.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:52]execute_script... [09:32:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412124", "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" : 10.910, "sum" : 700.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" : 700.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:52]POST & json_proto [09:32:52]process_json_proto [09:32:52]json parsed OK: [09:32:52]protocol is kg_v1.0 [09:32:52]action value=close_receipt [09:32:52]process_action close_receipt [09:32:52]cmd_close_receipt [09:32:52]MH_GetDate [09:32:52]Write to MH i2c: F0 00 00 56 0C 51 [09:32:52]Write i2c OK [09:32:52]MH_I2C_Read... [09:32:52]Read from MH i2c: F0 [09:32:52]MH_I2C_Read... [09:32:52]Read from MH i2c: F0 09 00 [09:32:52]MH_I2C_Read... [09:32:52]Read from MH i2c: F0 09 00 56 0C 00 47 A5 B5 67 7E 41 4F 65 D5 [09:32:52]GetLastDocTimeStamp 1739957563 [09:32:52]current date 1739957575 [09:32:52]FM_GetShiftState [09:32:52]SAM_PROTO_GetShiftState [09:32:52]wFMCommunicate request_size=4 [09:32:52]MH_SAM_APDU [09:32:52]CAPDU: 80 13 01 00 [09:32:52]Write to MH i2c: E2 08 00 57 0C 80 13 01 00 00 00 00 00 E0 [09:32:52]Write i2c OK [09:32:52]MH_I2C_Read... [09:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:52]Read from MH i2c: E2 [09:32:52]MH_I2C_Read... [09:32:52]Read from MH i2c: E2 0E 00 [09:32:52]MH_I2C_Read... [09:32:52]Read from MH i2c: E2 0E 00 57 0C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 5F [09:32:52]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:32:52]wFMCommunicate OK [09:32:52]SAM_PROTO_GetShiftState done [09:32:52]FM_GetShiftState done [09:32:52]opened in 1739929631 [09:32:52]opened+sec_in_day 1740016031 [09:32:52]quantity*price = 70042 [09:32:52]sum+1 = 70043 [09:32:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.42 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.42 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 40 19.02.2025 09:32 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186974 ФПД: 157837242921252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T093255&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186974&fm=157837242921252&tin=02508201610067®Number=0000000000091857&sum=70042 [09:32:53]StoreToDocumentArchive [09:32:53]shift 647 fd 186974 [09:32:53]save to /storage/0647/doc_00186974 [09:32:53]save last doc name /storage/0647/doc_00186974 to /storage/kkm_last_doc_name [09:32:53]save OK [09:32:53]Clear old archive folders... [09:32:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:53]tlvbuf is 005CFC20 [09:32:53]SAM_PROTO_ClearQueue [09:32:53]wFMCommunicate request_size=4 [09:32:53]MH_SAM_APDU [09:32:53]CAPDU: 80 09 00 00 [09:32:53]Write to MH i2c: E2 08 00 64 0C 80 09 00 00 00 00 00 00 E2 [09:32:53]Write i2c OK [09:32:53]MH_I2C_Read... [09:32:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:53]Read from MH i2c: E2 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: E2 03 00 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: E2 03 00 64 0C 00 90 00 E4 [09:32:53]RAPDU: 90 00 [09:32:53]wFMCommunicate OK [09:32:53]SAM_PROTO_ClearQueue done [09:32:53]KKMCreateOFDPacket [09:32:53]OFDProtocolAddRootSTLVToBuf [09:32:53]FM_MakeSignedData [09:32:53]FM_MakeSignedData [09:32:53]SAM_PROTO_SignData [09:32:53]wFMCommunicate request_size=4 [09:32:53]MH_SAM_APDU [09:32:53]CAPDU: 80 0D 01 02 [09:32:53]Write to MH i2c: E2 08 00 65 0C 80 0D 01 02 00 00 00 00 EA [09:32:53]Write i2c OK [09:32:53]MH_I2C_Read... [09:32:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:53]Read from MH i2c: E2 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: E2 03 00 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: E2 03 00 65 0C 00 90 00 E5 [09:32:53]RAPDU: 90 00 [09:32:53]wFMCommunicate OK [09:32:53]wFMCommunicate request_size=255 [09:32:53]MH_SAM_APDU [09: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 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 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 47 A5 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 5E DA 02 00 35 04 06 00 8F [09:32:53]Write to MH i2c: E2 02 01 66 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 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 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 47 A5 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 5E DA 02 00 35 04 06 00 8F 00 00 0A [09:32:53]Write i2c OK [09:32:53]MH_I2C_Read... [09:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:54]Read from MH i2c: E2 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 03 00 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 03 00 66 0C 00 90 00 E6 [09:32:54]RAPDU: 90 00 [09:32:54]wFMCommunicate OK [09:32:54]wFMCommunicate request_size=10 [09:32:54]MH_SAM_APDU [09:32:54]CAPDU: 80 0D 02 02 05 8D 58 CB F1 24 [09:32:54]Write to MH i2c: E2 0D 00 67 0C 80 0D 02 02 05 00 8D 58 CB F1 24 00 00 BC [09:32:54]Write i2c OK [09:32:54]MH_I2C_Read... [09:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:54]Read from MH i2c: E2 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 03 00 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 03 00 67 0C 00 90 00 E7 [09:32:54]RAPDU: 90 00 [09:32:54]wFMCommunicate OK [09:32:54]wFMCommunicate request_size=4 [09:32:54]MH_SAM_APDU [09:32:54]CAPDU: 80 0D 03 02 [09:32:54]Write to MH i2c: E2 08 00 68 0C 80 0D 03 02 00 00 00 00 EF [09:32:54]Write i2c OK [09:32:54]MH_I2C_Read... [09:32:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:54]Read from MH i2c: E2 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 0B 00 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 0B 00 68 0C 00 62 04 36 10 76 D2 BE 76 90 00 18 [09:32:54]RAPDU: 62 04 36 10 76 D2 BE 76 90 00 [09:32:54]wFMCommunicate OK [09:32:54]SAM_PROTO_SignData done [09:32:54]FM_MakeSignedData done [09:32:54]CreateOFDProtocolMessage [09:32:54]wFMCommunicate request_size=4 [09:32:54]MH_SAM_APDU [09:32:54]CAPDU: 80 11 00 00 [09:32:54]Write to MH i2c: E2 08 00 69 0C 80 11 00 00 00 00 00 00 EF [09:32:54]Write i2c OK [09:32:54]MH_I2C_Read... [09:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:54]Read from MH i2c: E2 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 17 00 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: E2 17 00 69 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 42 [09:32: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:32:54]wFMCommunicate OK [09:32:54]CreateOFDProtocolMessage done [09:32:54]OFDSenderStorePacket 186974 [09:32:54]StoreOFDPacket docnum=186974 [09:32: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 08 55 07 01 2E F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 47 A5 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 5E DA 02 00 35 04 06 00 8F 8D 58 CB F1 24 62 04 36 10 76 D2 BE 76 [09:32:54]CheckFolder [09:32:54]dirname=/storage/ofd_packets [09:32:54]CheckFolder done [09:32:54]ProducePacketName [09:32:54]name=ofd_packets/00186974 [09:32:54]NVStorageSaveData ofd_packets/00186974 [09:32:54]File name is /storage/ofd_packets/00186974 [09:32:54]Write 301 bytes [09:32:54]NVStorageSaveData done [09:32:54]OFDSenderStorePacket done [09:32:54]KKMCreateOFDPacket done [09:32:54]NVStorageSaveData kkm_last_timestamp [09:32:54]File name is /storage/kkm_last_timestamp [09:32:54]Write 4 bytes [09:32:54]NVStorageSaveData done [09:32:54]ExternCall_PrintAddStr [09:32:54]wPrintStart [09:32:54]Write to MH i2c: 01 00 00 6A 0C 76 [09:32:54]Write i2c OK [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: 01 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: 01 07 00 [09:32:54]MH_I2C_Read... [09:32:54]Read from MH i2c: 01 07 00 6A 0C 00 00 00 00 00 FF 0F 8B [09:32:54]RasterBufferAndPrint [09:32:54]line Счет N : (1)412124 [09:32:54]line ИНН: 02508201610067 [09:32:54]line Контрольно-Кассовый Чек [09:32:54]line ПРОДАЖА [09:32:54]line ТРК (МРК, ГНК) : 12 [09:32:54]line Товар: 2710124130 [09:32:54]line Аи-92-К-2 [09:32:54]line 10.910 * 64.20 [09:32:54]line = 700.42 [09:32:54]line НДС 12% НСП 1% [09:32:54]line > о реализуемом товаре [09:32:54]line ИТОГО: 700.42 [09:32:54]line НСП 1% : 6.20 [09:32:54]line НДС 12% : 74.38 [09:32:54]line Наличными: 0.00 [09:32:54]line Безнал.: 700.42 [09:32:54]line Место: АЗС № 92 "Партнер Нефть" [09:32:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:32:54]line СНО: Общий режим [09:32:54]line Чек 40 19.02.2025 09:32 [09:32:54]line Смена: 647 ФФД: 1.0 [09:32:54]line ЗНМ: 0300000118 [09:32:54]line РНМ: 0000000000091857 [09:32:54]line Версия ККМ: 001 [09:32:54]line Платежная система: O! деньги [09:32:54]line ФМ: 0000000000871826 [09:32:54]line ФД: 186974 [09:32:54]line ФПД: 157837242921252 [09:32:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T093255&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186974&fm=157837242921252&tin=02508201610067®Number=0000000000091857&sum=70042 [09:32:54]OFD Sender: Processing packet 186974 [packets to send 49, broken 48] [09:32:54]ProducePacketName [09:32:54]name=ofd_packets/00186974 [09:32:54]OFD Sender: To server: pG, [09:32:54]CommunicateWithHost lk.salyk.kg:30040 [09:32:54]ConnectInit lk.salyk.kg [09:32:54]written 0, free lines is 4095 [09:32:54]Connected sock=10 [09: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 08 55 07 01 2E F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 47 A5 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 5E DA 02 00 35 04 06 00 8F 8D 58 CB F1 24 62 04 36 10 76 D2 BE 76 [09:32: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 1B 0E 47 00 02 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 5E DA 02 00 F4 03 04 00 9B 4B B5 67 B6 04 01 00 00 A5 F5 2A C4 59 CF A1 48 [09:32:55]CommunicateWithHost err = 0 [09:32:55]CheckOFDResponse [09:32:55]1017 (14) - 77093643461234 [09:32:55]1041 (16) - 0000000000871826 [09:32:55]1040 (4) - 186974 [09:32:55]1012 (4) - 19.02.2025 03:10 [09:32:55]1206 (1) - 0 [09:32:55]OFD Sender: Remove packet 186974 [09:32:55]ProducePacketName [09:32:55]name=ofd_packets/00186974 [09:32:55]NVStorageDeleteData [09:32:55]Write to MH i2c: 01 00 00 94 0C A0 [09:32:55]Write i2c OK [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: 01 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: 01 07 00 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: 01 07 00 94 0C 00 00 00 00 00 16 0D CA [09:32:55]RasterBufferAndPrint [09:32:55]line [09:32:55]line [09:32:55]line [09:32:55]line [09:32:55]line [09:32:55]written 0, free lines is 3362 [09:32:55]MH_Cut [09:32:55]Write to MH i2c: D1 01 00 9B 0C 01 79 [09:32:55]Write i2c OK [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: D1 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: D1 01 00 [09:32:55]MH_I2C_Read... [09:32:55]Read from MH i2c: D1 01 00 9B 0C 00 78 [09:32:55]Write to MH i2c: 01 00 00 9C 0C A8 [09:32:55]Write i2c OK [09:32:55]MH_I2C_Read... [09:32:55]OFD Sender: No OFD packet to send [09:32:55]*** Cut start [09:32:55]*** Partial cut [09:32:55]*** CUTSNS_PIN = 1 [09:32:55]*** CUTSNS_PIN = 0 [09:32:56]*** Brake cut motor [09:32:56]Read from MH i2c: 01 [09:32:56]MH_I2C_Read... [09:32:56]*** Stop cut motor [09:32:56]*** Cut end [09:32:56]Read from MH i2c: 01 07 00 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: 01 07 00 9C 0C 00 00 00 00 00 FF 0F BD [09:32:56]process_action close_receipt done [09:32:56]requested_data is exist [09:32:56]produce_requested_data [09:32:56]requested_item fm.sn is exist - process it [09:32:56]wFMCommunicate request_size=4 [09:32:56]MH_SAM_APDU [09:32:56]CAPDU: 80 11 00 00 [09:32:56]Write to MH i2c: E2 08 00 9D 0C 80 11 00 00 00 00 00 00 23 [09:32:56]Write i2c OK [09:32:56]MH_I2C_Read... [09:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:56]Read from MH i2c: E2 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: E2 17 00 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: E2 17 00 9D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 76 [09:32: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:32:56]wFMCommunicate OK [09:32:56]requested_item fd.num is exist - process it [09:32:56]SAM_PROTO_GetFieldsCounters [09:32:56]wFMCommunicate request_size=4 [09:32:56]MH_SAM_APDU [09:32:56]CAPDU: 80 13 00 00 [09:32:56]Write to MH i2c: E2 08 00 9E 0C 80 13 00 00 00 00 00 00 26 [09:32:56]Write i2c OK [09:32:56]MH_I2C_Read... [09:32:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:56]Read from MH i2c: E2 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: E2 62 00 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: E2 62 00 9E 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 5E DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [09: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 5E DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:56]wFMCommunicate OK [09:32:56]SAM_PROTO_GetFieldsCounters done [09:32:56]requested_item shift.num is exist - process it [09:32:56]requested_item shift.opened is exist - process it [09:32:56]req_shift_opened [09:32:56]FM_GetShiftState [09:32:56]SAM_PROTO_GetShiftState [09:32:56]wFMCommunicate request_size=4 [09:32:56]MH_SAM_APDU [09:32:56]CAPDU: 80 13 01 00 [09:32:56]Write to MH i2c: E2 08 00 9F 0C 80 13 01 00 00 00 00 00 28 [09:32:56]Write i2c OK [09:32:56]MH_I2C_Read... [09:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:56]Read from MH i2c: E2 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: E2 0E 00 [09:32:56]MH_I2C_Read... [09:32:56]Read from MH i2c: E2 0E 00 9F 0C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A7 [09:32:56]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:32:56]wFMCommunicate OK [09:32:56]SAM_PROTO_GetShiftState done [09:32:56]FM_GetShiftState done [09:32:56]req_shift_opened done [09:32:56]requested_item shift.open_date is exist - process it [09:32:56]req_shift_open_date [09:32:56]req_shift_open_date done [09:32:56]produce_requested_data done [09:32:56]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186974,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [09:32:56]process_action_free close_receipt [09:32:56]json_value_free [09:32:56]json_value_free done [09:32:56]process_json_proto returns [09:32:56]Send response to host [09:32:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186974,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [09:32:56]free response buf [09:32:56]execute_script done [09:32:56]execute_script returns [09:32:56]free content buf [09:32:56]Sock 7.Close socket [09:32:56]Sock 7.Thread stoped [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]accept exits with 9 [09:34:00]New connection [09:34:00]New thread 3067022692 created [09:34:00]Thread 3066879332 joined [09:34:00]Waiting for new connection... [09:34:00] Sock 9.Parse request [09:34:00]Sock 9.Check first char [09:34:00]Sock 9.First char is OK [09:34:00]request: POST /json_proto HTTP/1.0 [09:34:00]Method: POST [09:34:00]URL: /json_proto [09:34:00]Method is POST - this is cgi request [09:34:00]url: /json_proto [09:34:00]query_string will be loaded in cgi processing [09:34:00]execute_cgi json_proto POST (null) [09:34:00]execute_cgi path=json_proto method=POST [09:34:00]POST find Content-Length [09:34:00]Host: 172.17.46.131:8080 [09:34:00]Content-Length: 800 [09:34:00]Content-Type: application/json [09:34:00] [09:34:00]POST finish read [09:34:00]Found Content-Length = 800 [09:34:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412125", "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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4997516", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:00]execute_script... [09:34: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)412125", "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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4997516", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:00]POST & json_proto [09:34:00]process_json_proto [09:34:00]json parsed OK: [09:34:00]protocol is kg_v1.0 [09:34:00]action value=close_receipt [09:34:00]process_action close_receipt [09:34:00]cmd_close_receipt [09:34:00]MH_GetDate [09:34:00]Write to MH i2c: F0 00 00 A0 0C 9B [09:34:00]Write i2c OK [09:34:00]MH_I2C_Read... [09:34:00]Read from MH i2c: F0 [09:34:00]MH_I2C_Read... [09:34:00]Read from MH i2c: F0 09 00 [09:34:00]MH_I2C_Read... [09:34:00]Read from MH i2c: F0 09 00 A0 0C 00 8B A5 B5 67 7E 41 4F 65 63 [09:34:00]GetLastDocTimeStamp 1739957575 [09:34:00]current date 1739957643 [09:34:00]FM_GetShiftState [09:34:00]SAM_PROTO_GetShiftState [09:34:00]wFMCommunicate request_size=4 [09:34:00]MH_SAM_APDU [09:34:00]CAPDU: 80 13 01 00 [09:34:00]Write to MH i2c: E2 08 00 A1 0C 80 13 01 00 00 00 00 00 2A [09:34:00]Write i2c OK [09:34:00]MH_I2C_Read... [09:34:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:00]Read from MH i2c: E2 [09:34:00]MH_I2C_Read... [09:34:00]Read from MH i2c: E2 0E 00 [09:34:00]MH_I2C_Read... [09:34:00]Read from MH i2c: E2 0E 00 A1 0C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A9 [09:34:00]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:34:00]wFMCommunicate OK [09:34:00]SAM_PROTO_GetShiftState done [09:34:00]FM_GetShiftState done [09:34:00]opened in 1739929631 [09:34:00]opened+sec_in_day 1740016031 [09:34:00]quantity*price = 0 [09:34:00]sum+1 = 1 [09:34: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 СНО: Общий режим Чек 41 19.02.2025 09:34 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4997516 ФМ: 0000000000871826 ФД: 186975 ФПД: 11668055493190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T093403&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186975&fm=11668055493190&tin=02508201610067®Number=0000000000091857&sum=0 [09:34:01]StoreToDocumentArchive [09:34:01]shift 647 fd 186975 [09:34:01]save to /storage/0647/doc_00186975 [09:34:01]save last doc name /storage/0647/doc_00186975 to /storage/kkm_last_doc_name [09:34:01]save OK [09:34:01]Clear old archive folders... [09:34:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:01]tlvbuf is B6EB9620 [09:34:01]SAM_PROTO_ClearQueue [09:34:01]wFMCommunicate request_size=4 [09:34:01]MH_SAM_APDU [09:34:01]CAPDU: 80 09 00 00 [09:34:01]Write to MH i2c: E2 08 00 AE 0C 80 09 00 00 00 00 00 00 2C [09:34:01]Write i2c OK [09:34:01]MH_I2C_Read... [09:34:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:01]Read from MH i2c: E2 [09:34:01]MH_I2C_Read... [09:34:01]Read from MH i2c: E2 03 00 [09:34:01]MH_I2C_Read... [09:34:01]Read from MH i2c: E2 03 00 AE 0C 00 90 00 2E [09:34:01]RAPDU: 90 00 [09:34:01]wFMCommunicate OK [09:34:01]SAM_PROTO_ClearQueue done [09:34:01]KKMCreateOFDPacket [09:34:01]OFDProtocolAddRootSTLVToBuf [09:34:01]FM_MakeSignedData [09:34:01]FM_MakeSignedData [09:34:01]SAM_PROTO_SignData [09:34:01]wFMCommunicate request_size=4 [09:34:01]MH_SAM_APDU [09:34:01]CAPDU: 80 0D 01 02 [09:34:01]Write to MH i2c: E2 08 00 AF 0C 80 0D 01 02 00 00 00 00 34 [09:34:01]Write i2c OK [09:34:01]MH_I2C_Read... [09:34:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:01]Read from MH i2c: E2 [09:34:01]MH_I2C_Read... [09:34:01]Read from MH i2c: E2 03 00 [09:34:01]MH_I2C_Read... [09:34:01]Read from MH i2c: E2 03 00 AF 0C 00 90 00 2F [09:34:01]RAPDU: 90 00 [09:34:01]wFMCommunicate OK [09:34:01]wFMCommunicate request_size=255 [09:34:01]MH_SAM_APDU [09:34: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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 8B A5 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 5F DA 02 00 35 04 06 00 0A [09:34:01]Write to MH i2c: E2 02 01 B0 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 8B A5 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 5F DA 02 00 35 04 06 00 0A 00 00 BA [09:34:01]Write i2c OK [09:34:01]MH_I2C_Read... [09:34:02]Read from MH i2c: E2 [09:34:02]MH_I2C_Read... [09:34:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:02]Read from MH i2c: E2 03 00 [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: E2 03 00 B0 0C 00 90 00 30 [09:34:02]RAPDU: 90 00 [09:34:02]wFMCommunicate OK [09:34:02]wFMCommunicate request_size=10 [09:34:02]MH_SAM_APDU [09:34:02]CAPDU: 80 0D 02 02 05 9C AE 4D 8A 46 [09:34:02]Write to MH i2c: E2 0D 00 B1 0C 80 0D 02 02 05 00 9C AE 4D 8A 46 00 00 A8 [09:34:02]Write i2c OK [09:34:02]MH_I2C_Read... [09:34:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:02]Read from MH i2c: E2 [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: E2 03 00 [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: E2 03 00 B1 0C 00 90 00 31 [09:34:02]RAPDU: 90 00 [09:34:02]wFMCommunicate OK [09:34:02]wFMCommunicate request_size=4 [09:34:02]MH_SAM_APDU [09:34:02]CAPDU: 80 0D 03 02 [09:34:02]Write to MH i2c: E2 08 00 B2 0C 80 0D 03 02 00 00 00 00 39 [09:34:02]Write i2c OK [09:34:02]MH_I2C_Read... [09:34:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:02]Read from MH i2c: E2 [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: E2 0B 00 [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: E2 0B 00 B2 0C 00 56 78 0E 18 6A CE A4 00 90 00 0A [09:34:02]RAPDU: 56 78 0E 18 6A CE A4 00 90 00 [09:34:02]wFMCommunicate OK [09:34:02]SAM_PROTO_SignData done [09:34:02]FM_MakeSignedData done [09:34:02]CreateOFDProtocolMessage [09:34:02]wFMCommunicate request_size=4 [09:34:02]MH_SAM_APDU [09:34:02]CAPDU: 80 11 00 00 [09:34:02]Write to MH i2c: E2 08 00 B3 0C 80 11 00 00 00 00 00 00 39 [09:34:02]Write i2c OK [09:34:02]MH_I2C_Read... [09:34:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:02]Read from MH i2c: E2 [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: E2 17 00 [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: E2 17 00 B3 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8C [09: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 [09:34:02]wFMCommunicate OK [09:34:02]CreateOFDProtocolMessage done [09:34:02]OFDSenderStorePacket 186975 [09:34:02]StoreOFDPacket docnum=186975 [09:34: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 91 B7 07 01 E9 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 29 00 00 00 F4 03 04 00 8B A5 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 5F DA 02 00 35 04 06 00 0A 9C AE 4D 8A 46 56 78 0E 18 6A CE A4 00 [09:34:02]CheckFolder [09:34:02]dirname=/storage/ofd_packets [09:34:02]CheckFolder done [09:34:02]ProducePacketName [09:34:02]name=ofd_packets/00186975 [09:34:02]NVStorageSaveData ofd_packets/00186975 [09:34:02]File name is /storage/ofd_packets/00186975 [09:34:02]Write 301 bytes [09:34:02]NVStorageSaveData done [09:34:02]OFDSenderStorePacket done [09:34:02]KKMCreateOFDPacket done [09:34:02]NVStorageSaveData kkm_last_timestamp [09:34:02]File name is /storage/kkm_last_timestamp [09:34:02]Write 4 bytes [09:34:02]NVStorageSaveData done [09:34:02]ExternCall_PrintAddStr [09:34:02]wPrintStart [09:34:02]Write to MH i2c: 01 00 00 B4 0C C0 [09:34:02]Write i2c OK [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: 01 [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: 01 07 00 [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: 01 07 00 B4 0C 00 00 00 00 00 FF 0F D5 [09:34:02]RasterBufferAndPrint [09:34:02]line Счет N : (1)412125 [09:34:02]line ИНН: 02508201610067 [09:34:02]line Контрольно-Кассовый Чек [09:34:02]line ПРОДАЖА [09:34:02]line ТРК (МРК, ГНК) : 22 [09:34:02]line Товар: 2710124130 [09:34:02]line Аи-92-К-2 [09:34:02]line 10.000 * 0.00 [09:34:02]line = 0.00 [09:34:02]line НДС 12% НСП 1% [09:34:02]line > о реализуемом товаре [09:34:02]line ИТОГО: 0.00 [09:34:02]line НСП 1% : 0.00 [09:34:02]line НДС 12% : 0.00 [09:34:02]line Наличными: 0.00 [09:34:02]line Безнал.: 0.00 [09:34:02]line Место: АЗС № 92 "Партнер Нефть" [09:34:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:34:02]line СНО: Общий режим [09:34:02]line Чек 41 19.02.2025 09:34 [09:34:02]line Смена: 647 ФФД: 1.0 [09:34:02]line ЗНМ: 0300000118 [09:34:02]line РНМ: 0000000000091857 [09:34:02]line Версия ККМ: 001 [09:34:02]line Талоны: Топливные Талоны [09:34:02]line 4997516 [09:34:02]line ФМ: 0000000000871826 [09:34:02]line ФД: 186975 [09:34:02]line ФПД: 11668055493190 [09:34:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T093403&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186975&fm=11668055493190&tin=02508201610067®Number=0000000000091857&sum=0 [09:34:02]written 0, free lines is 4095 [09:34:02]OFD Sender: Processing packet 186975 [packets to send 49, broken 48] [09:34:02]ProducePacketName [09:34:02]name=ofd_packets/00186975 [09:34:02]OFD Sender: To server: pG, [09:34:02]CommunicateWithHost lk.salyk.kg:30040 [09:34:02]ConnectInit lk.salyk.kg [09:34:02]Write to MH i2c: 01 00 00 DE 0C EA [09:34:02]Write i2c OK [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: 01 [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: 01 07 00 [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: 01 07 00 DE 0C 00 00 00 00 00 03 0D 01 [09:34:02]RasterBufferAndPrint [09:34:02]line [09:34:02]line [09:34:02]line [09:34:02]line [09:34:02]line [09:34:02]written 0, free lines is 3338 [09:34:02]MH_Cut [09:34:02]Write to MH i2c: D1 01 00 E5 0C 01 C3 [09:34:02]Write i2c OK [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: D1 [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: D1 01 00 [09:34:02]MH_I2C_Read... [09:34:02]Read from MH i2c: D1 01 00 E5 0C 00 C2 [09:34:02]Write to MH i2c: 01 00 00 E6 0C F2 [09:34:02]Write i2c OK [09:34:02]MH_I2C_Read... [09:34:02]Connected sock=10 [09:34: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 91 B7 07 01 E9 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 29 00 00 00 F4 03 04 00 8B A5 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 5F DA 02 00 35 04 06 00 0A 9C AE 4D 8A 46 56 78 0E 18 6A CE A4 00 [09:34: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 D2 EC 47 00 5B 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5F DA 02 00 F4 03 04 00 DF 4B B5 67 B6 04 01 00 00 24 18 3F 41 EE EE 01 66 [09:34:02]CommunicateWithHost err = 0 [09:34:02]CheckOFDResponse [09:34:02]1017 (14) - 77093643461234 [09:34:02]1041 (16) - 0000000000871826 [09:34:02]1040 (4) - 186975 [09:34:02]1012 (4) - 19.02.2025 03:11 [09:34:02]1206 (1) - 0 [09:34:02]OFD Sender: Remove packet 186975 [09:34:02]ProducePacketName [09:34:02]name=ofd_packets/00186975 [09:34:02]NVStorageDeleteData [09:34:03]*** Cut start [09:34:03]*** Partial cut [09:34:03]*** CUTSNS_PIN = 1 [09:34:03]*** CUTSNS_PIN = 0 [09:34:03]OFD Sender: No OFD packet to send [09:34:03]*** Brake cut motor [09:34:04]Read from MH i2c: 01 [09:34:04]MH_I2C_Read... [09:34:04]*** Stop cut motor [09:34:04]*** Cut end [09:34:04]Read from MH i2c: 01 07 00 [09:34:04]MH_I2C_Read... [09:34:04]Read from MH i2c: 01 07 00 E6 0C 00 00 00 00 00 FF 0F 07 [09:34:04]process_action close_receipt done [09:34:04]requested_data is exist [09:34:04]produce_requested_data [09:34:04]requested_item fm.sn is exist - process it [09:34:04]wFMCommunicate request_size=4 [09:34:04]MH_SAM_APDU [09:34:04]CAPDU: 80 11 00 00 [09:34:04]Write to MH i2c: E2 08 00 E7 0C 80 11 00 00 00 00 00 00 6D [09:34:04]Write i2c OK [09:34:04]MH_I2C_Read... [09:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:04]Read from MH i2c: E2 [09:34:04]MH_I2C_Read... [09:34:04]Read from MH i2c: E2 17 00 [09:34:04]MH_I2C_Read... [09:34:04]Read from MH i2c: E2 17 00 E7 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C0 [09:34: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:34:04]wFMCommunicate OK [09:34:04]requested_item fd.num is exist - process it [09:34:04]SAM_PROTO_GetFieldsCounters [09:34:04]wFMCommunicate request_size=4 [09:34:04]MH_SAM_APDU [09:34:04]CAPDU: 80 13 00 00 [09:34:04]Write to MH i2c: E2 08 00 E8 0C 80 13 00 00 00 00 00 00 70 [09:34:04]Write i2c OK [09:34:04]MH_I2C_Read... [09:34:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:04]Read from MH i2c: E2 [09:34:04]MH_I2C_Read... [09:34:04]Read from MH i2c: E2 62 00 [09:34:04]MH_I2C_Read... [09:34:04]Read from MH i2c: E2 62 00 E8 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 5F DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [09:34: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 5F DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:34:04]wFMCommunicate OK [09:34:04]SAM_PROTO_GetFieldsCounters done [09:34:04]requested_item shift.num is exist - process it [09:34:04]requested_item shift.opened is exist - process it [09:34:04]req_shift_opened [09:34:04]FM_GetShiftState [09:34:04]SAM_PROTO_GetShiftState [09:34:04]wFMCommunicate request_size=4 [09:34:04]MH_SAM_APDU [09:34:04]CAPDU: 80 13 01 00 [09:34:04]Write to MH i2c: E2 08 00 E9 0C 80 13 01 00 00 00 00 00 72 [09:34:04]Write i2c OK [09:34:04]MH_I2C_Read... [09:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:04]Read from MH i2c: E2 [09:34:04]MH_I2C_Read... [09:34:04]Read from MH i2c: E2 0E 00 [09:34:04]MH_I2C_Read... [09:34:04]Read from MH i2c: E2 0E 00 E9 0C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F1 [09:34:04]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:34:04]wFMCommunicate OK [09:34:04]SAM_PROTO_GetShiftState done [09:34:04]FM_GetShiftState done [09:34:04]req_shift_opened done [09:34:04]requested_item shift.open_date is exist - process it [09:34:04]req_shift_open_date [09:34:04]req_shift_open_date done [09:34:04]produce_requested_data done [09:34:04]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186975,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [09:34:04]process_action_free close_receipt [09:34:04]json_value_free [09:34:04]json_value_free done [09:34:04]process_json_proto returns [09:34:04]Send response to host [09:34:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186975,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [09:34:04]free response buf [09:34:04]execute_script done [09:34:04]execute_script returns [09:34:04]free content buf [09:34:04]Sock 9.Close socket [09:34:04]Sock 9.Thread stoped [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:52]accept exits with 7 [09:34:52]New connection [09:34:52]New thread 3066879332 created [09:34:52]Thread 3067022692 joined [09:34:52]Waiting for new connection... [09:34:52] Sock 7.Parse request [09:34:52]Sock 7.Check first char [09:34:52]Sock 7.First char is OK [09:34:52]request: POST /json_proto HTTP/1.0 [09:34:52]Method: POST [09:34:52]URL: /json_proto [09:34:52]Method is POST - this is cgi request [09:34:52]url: /json_proto [09:34:52]query_string will be loaded in cgi processing [09:34:52]execute_cgi json_proto POST (null) [09:34:52]execute_cgi path=json_proto method=POST [09:34:52]POST find Content-Length [09:34:52]Host: 172.17.46.131:8080 [09:34:52]Content-Length: 803 [09:34:52]Content-Type: application/json [09:34:52] [09:34:52]POST finish read [09:34:52]Found Content-Length = 803 [09:34:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412126", "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" ] } } [09:34:52]execute_script... [09:34: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)412126", "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" ] } } [09:34:52]POST & json_proto [09:34:52]process_json_proto [09:34:52]json parsed OK: [09:34:52]protocol is kg_v1.0 [09:34:52]action value=close_receipt [09:34:52]process_action close_receipt [09:34:52]cmd_close_receipt [09:34:52]MH_GetDate [09:34:52]Write to MH i2c: F0 00 00 EA 0C E5 [09:34:52]Write i2c OK [09:34:52]MH_I2C_Read... [09:34:52]Read from MH i2c: F0 [09:34:52]MH_I2C_Read... [09:34:52]Read from MH i2c: F0 09 00 [09:34:52]MH_I2C_Read... [09:34:52]Read from MH i2c: F0 09 00 EA 0C 00 BF A5 B5 67 7E 41 4F 65 E1 [09:34:52]GetLastDocTimeStamp 1739957643 [09:34:52]current date 1739957695 [09:34:52]FM_GetShiftState [09:34:52]SAM_PROTO_GetShiftState [09:34:52]wFMCommunicate request_size=4 [09:34:52]MH_SAM_APDU [09:34:52]CAPDU: 80 13 01 00 [09:34:52]Write to MH i2c: E2 08 00 EB 0C 80 13 01 00 00 00 00 00 74 [09:34:52]Write i2c OK [09:34:52]MH_I2C_Read... [09:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:52]Read from MH i2c: E2 [09:34:52]MH_I2C_Read... [09:34:52]Read from MH i2c: E2 0E 00 [09:34:52]MH_I2C_Read... [09:34:52]Read from MH i2c: E2 0E 00 EB 0C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F3 [09:34:52]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:34:52]wFMCommunicate OK [09:34:52]SAM_PROTO_GetShiftState done [09:34:52]FM_GetShiftState done [09:34:52]opened in 1739929631 [09:34:52]opened+sec_in_day 1740016031 [09:34:52]quantity*price = 100023 [09:34:52]sum+1 = 100025 [09:34:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 42 19.02.2025 09:34 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186976 ФПД: 272026473251746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T093455&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186976&fm=272026473251746&tin=02508201610067®Number=0000000000091857&sum=100024 [09:34:53]StoreToDocumentArchive [09:34:53]shift 647 fd 186976 [09:34:53]save to /storage/0647/doc_00186976 [09:34:53]save last doc name /storage/0647/doc_00186976 to /storage/kkm_last_doc_name [09:34:53]save OK [09:34:53]Clear old archive folders... [09:34:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:53]tlvbuf is 00610F80 [09:34:53]SAM_PROTO_ClearQueue [09:34:53]wFMCommunicate request_size=4 [09:34:53]MH_SAM_APDU [09:34:53]CAPDU: 80 09 00 00 [09:34:53]Write to MH i2c: E2 08 00 F8 0C 80 09 00 00 00 00 00 00 76 [09:34:53]Write i2c OK [09:34:53]MH_I2C_Read... [09:34:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:54]Read from MH i2c: E2 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 03 00 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 03 00 F8 0C 00 90 00 78 [09:34:54]RAPDU: 90 00 [09:34:54]wFMCommunicate OK [09:34:54]SAM_PROTO_ClearQueue done [09:34:54]KKMCreateOFDPacket [09:34:54]OFDProtocolAddRootSTLVToBuf [09:34:54]FM_MakeSignedData [09:34:54]FM_MakeSignedData [09:34:54]SAM_PROTO_SignData [09:34:54]wFMCommunicate request_size=4 [09:34:54]MH_SAM_APDU [09:34:54]CAPDU: 80 0D 01 02 [09:34:54]Write to MH i2c: E2 08 00 F9 0C 80 0D 01 02 00 00 00 00 7E [09:34:54]Write i2c OK [09:34:54]MH_I2C_Read... [09:34:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:54]Read from MH i2c: E2 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 03 00 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 03 00 F9 0C 00 90 00 79 [09:34:54]RAPDU: 90 00 [09:34:54]wFMCommunicate OK [09:34:54]wFMCommunicate request_size=255 [09:34:54]MH_SAM_APDU [09:34: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 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 2A 00 00 00 F4 03 04 00 BF A5 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 60 DA 02 00 35 04 06 00 F7 [09:34:54]Write to MH i2c: E2 02 01 FA 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 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 2A 00 00 00 F4 03 04 00 BF A5 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 60 DA 02 00 35 04 06 00 F7 00 00 11 [09:34:54]Write i2c OK [09:34:54]MH_I2C_Read... [09:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:54]Read from MH i2c: E2 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 03 00 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 03 00 FA 0C 00 90 00 7A [09:34:54]RAPDU: 90 00 [09:34:54]wFMCommunicate OK [09:34:54]wFMCommunicate request_size=10 [09:34:54]MH_SAM_APDU [09:34:54]CAPDU: 80 0D 02 02 05 68 19 4E C3 A2 [09:34:54]Write to MH i2c: E2 0D 00 FB 0C 80 0D 02 02 05 00 68 19 4E C3 A2 00 00 BF [09:34:54]Write i2c OK [09:34:54]MH_I2C_Read... [09:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:54]Read from MH i2c: E2 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 03 00 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 03 00 FB 0C 00 90 00 7B [09:34:54]RAPDU: 90 00 [09:34:54]wFMCommunicate OK [09:34:54]wFMCommunicate request_size=4 [09:34:54]MH_SAM_APDU [09:34:54]CAPDU: 80 0D 03 02 [09:34:54]Write to MH i2c: E2 08 00 FC 0C 80 0D 03 02 00 00 00 00 83 [09:34:54]Write i2c OK [09:34:54]MH_I2C_Read... [09:34:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:54]Read from MH i2c: E2 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 0B 00 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 0B 00 FC 0C 00 7C E3 26 B2 D3 65 7E 2B 90 00 9C [09:34:54]RAPDU: 7C E3 26 B2 D3 65 7E 2B 90 00 [09:34:54]wFMCommunicate OK [09:34:54]SAM_PROTO_SignData done [09:34:54]FM_MakeSignedData done [09:34:54]CreateOFDProtocolMessage [09:34:54]wFMCommunicate request_size=4 [09:34:54]MH_SAM_APDU [09:34:54]CAPDU: 80 11 00 00 [09:34:54]Write to MH i2c: E2 08 00 FD 0C 80 11 00 00 00 00 00 00 83 [09:34:54]Write i2c OK [09:34:54]MH_I2C_Read... [09:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:54]Read from MH i2c: E2 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 17 00 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: E2 17 00 FD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D6 [09:34: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:34:54]wFMCommunicate OK [09:34:54]CreateOFDProtocolMessage done [09:34:54]OFDSenderStorePacket 186976 [09:34:54]StoreOFDPacket docnum=186976 [09:34: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 0D C0 07 01 07 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2A 00 00 00 F4 03 04 00 BF A5 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 60 DA 02 00 35 04 06 00 F7 68 19 4E C3 A2 7C E3 26 B2 D3 65 7E 2B [09:34:54]CheckFolder [09:34:54]dirname=/storage/ofd_packets [09:34:54]CheckFolder done [09:34:54]ProducePacketName [09:34:54]name=ofd_packets/00186976 [09:34:54]NVStorageSaveData ofd_packets/00186976 [09:34:54]File name is /storage/ofd_packets/00186976 [09:34:54]Write 301 bytes [09:34:54]NVStorageSaveData done [09:34:54]OFDSenderStorePacket done [09:34:54]KKMCreateOFDPacket done [09:34:54]NVStorageSaveData kkm_last_timestamp [09:34:54]File name is /storage/kkm_last_timestamp [09:34:54]Write 4 bytes [09:34:54]NVStorageSaveData done [09:34:54]ExternCall_PrintAddStr [09:34:54]wPrintStart [09:34:54]Write to MH i2c: 01 00 00 FE 0C 0A [09:34:54]Write i2c OK [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: 01 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: 01 07 00 [09:34:54]MH_I2C_Read... [09:34:54]Read from MH i2c: 01 07 00 FE 0C 00 00 00 00 00 FF 0F 1F [09:34:54]RasterBufferAndPrint [09:34:54]line Счет N : (1)412126 [09:34:54]line ИНН: 02508201610067 [09:34:54]line Контрольно-Кассовый Чек [09:34:54]line ПРОДАЖА [09:34:54]line ТРК (МРК, ГНК) : 42 [09:34:54]line Товар: 2710124130 [09:34:54]line Аи-92-К-2 [09:34:54]line 15.580 * 64.20 [09:34:54]line = 1000.24 [09:34:54]line НДС 12% НСП 1% [09:34:54]line > о реализуемом товаре [09:34:54]line ИТОГО: 1000.24 [09:34:54]line НСП 1% : 8.85 [09:34:54]line НДС 12% : 106.22 [09:34:54]line Наличными: 0.00 [09:34:54]line Безнал.: 1000.24 [09:34:54]line Место: АЗС № 92 "Партнер Нефть" [09:34:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:34:54]line СНО: Общий режим [09:34:54]line Чек 42 19.02.2025 09:34 [09:34:54]line Смена: 647 ФФД: 1.0 [09:34:54]line ЗНМ: 0300000118 [09:34:54]line РНМ: 0000000000091857 [09:34:54]line Версия ККМ: 001 [09:34:54]line Платежная система: O! деньги [09:34:54]line ФМ: 0000000000871826 [09:34:54]line ФД: 186976 [09:34:54]line ФПД: 272026473251746 [09:34:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T093455&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186976&fm=272026473251746&tin=02508201610067®Number=0000000000091857&sum=100024 [09:34:54]written 0, free lines is 4095 [09:34:54]OFD Sender: Processing packet 186976 [packets to send 49, broken 48] [09:34:54]ProducePacketName [09:34:54]name=ofd_packets/00186976 [09:34:54]OFD Sender: To server: pG, [09:34:54]CommunicateWithHost lk.salyk.kg:30040 [09:34:54]ConnectInit lk.salyk.kg [09:34:54]Connected sock=11 [09:34: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 0D C0 07 01 07 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2A 00 00 00 F4 03 04 00 BF A5 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 60 DA 02 00 35 04 06 00 F7 68 19 4E C3 A2 7C E3 26 B2 D3 65 7E 2B [09:34: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 8F 35 47 00 FA 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 60 DA 02 00 F4 03 04 00 13 4C B5 67 B6 04 01 00 00 01 C9 90 86 8B FA AC EF [09:34:55]CommunicateWithHost err = 0 [09:34:55]CheckOFDResponse [09:34:55]1017 (14) - 77093643461234 [09:34:55]1041 (16) - 0000000000871826 [09:34:55]1040 (4) - 186976 [09:34:55]1012 (4) - 19.02.2025 03:12 [09:34:55]1206 (1) - 0 [09:34:55]OFD Sender: Remove packet 186976 [09:34:55]ProducePacketName [09:34:55]name=ofd_packets/00186976 [09:34:55]NVStorageDeleteData [09:34:55]Write to MH i2c: 01 00 00 28 0D 35 [09:34:55]Write i2c OK [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: 01 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: 01 07 00 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: 01 07 00 28 0D 00 00 00 00 00 13 0D 5C [09:34:55]RasterBufferAndPrint [09:34:55]line [09:34:55]line [09:34:55]line [09:34:55]line [09:34:55]line [09:34:55]written 0, free lines is 3354 [09:34:55]MH_Cut [09:34:55]Write to MH i2c: D1 01 00 2F 0D 01 0E [09:34:55]Write i2c OK [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: D1 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: D1 01 00 [09:34:55]MH_I2C_Read... [09:34:55]Read from MH i2c: D1 01 00 2F 0D 00 0D [09:34:55]Write to MH i2c: 01 00 00 30 0D 3D [09:34:55]Write i2c OK [09:34:55]MH_I2C_Read... [09:34:55]OFD Sender: No OFD packet to send [09:34:55]*** Cut start [09:34:55]*** Partial cut [09:34:55]*** CUTSNS_PIN = 1 [09:34:56]*** CUTSNS_PIN = 0 [09:34:56]*** Brake cut motor [09:34:56]Read from MH i2c: 01 [09:34:56]MH_I2C_Read... [09:34:56]*** Stop cut motor [09:34:56]*** Cut end [09:34:56]Read from MH i2c: 01 07 00 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: 01 07 00 30 0D 00 00 00 00 00 FF 0F 52 [09:34:56]process_action close_receipt done [09:34:56]requested_data is exist [09:34:56]produce_requested_data [09:34:56]requested_item fm.sn is exist - process it [09:34:56]wFMCommunicate request_size=4 [09:34:56]MH_SAM_APDU [09:34:56]CAPDU: 80 11 00 00 [09:34:56]Write to MH i2c: E2 08 00 31 0D 80 11 00 00 00 00 00 00 B8 [09:34:56]Write i2c OK [09:34:56]MH_I2C_Read... [09:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:56]Read from MH i2c: E2 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: E2 17 00 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: E2 17 00 31 0D 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:34: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:34:56]wFMCommunicate OK [09:34:56]requested_item fd.num is exist - process it [09:34:56]SAM_PROTO_GetFieldsCounters [09:34:56]wFMCommunicate request_size=4 [09:34:56]MH_SAM_APDU [09:34:56]CAPDU: 80 13 00 00 [09:34:56]Write to MH i2c: E2 08 00 32 0D 80 13 00 00 00 00 00 00 BB [09:34:56]Write i2c OK [09:34:56]MH_I2C_Read... [09:34:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:56]Read from MH i2c: E2 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: E2 62 00 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: E2 62 00 32 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 60 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [09:34: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 60 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:34:56]wFMCommunicate OK [09:34:56]SAM_PROTO_GetFieldsCounters done [09:34:56]requested_item shift.num is exist - process it [09:34:56]requested_item shift.opened is exist - process it [09:34:56]req_shift_opened [09:34:56]FM_GetShiftState [09:34:56]SAM_PROTO_GetShiftState [09:34:56]wFMCommunicate request_size=4 [09:34:56]MH_SAM_APDU [09:34:56]CAPDU: 80 13 01 00 [09:34:56]Write to MH i2c: E2 08 00 33 0D 80 13 01 00 00 00 00 00 BD [09:34:56]Write i2c OK [09:34:56]MH_I2C_Read... [09:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:56]Read from MH i2c: E2 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: E2 0E 00 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: E2 0E 00 33 0D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 3C [09:34:56]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:34:56]wFMCommunicate OK [09:34:56]SAM_PROTO_GetShiftState done [09:34:56]FM_GetShiftState done [09:34:56]req_shift_opened done [09:34:56]requested_item shift.open_date is exist - process it [09:34:56]req_shift_open_date [09:34:56]req_shift_open_date done [09:34:56]produce_requested_data done [09:34:56]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186976,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [09:34:56]process_action_free close_receipt [09:34:56]json_value_free [09:34:56]json_value_free done [09:34:56]process_json_proto returns [09:34:56]Send response to host [09:34:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186976,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [09:34:56]free response buf [09:34:56]execute_script done [09:34:56]execute_script returns [09:34:56]free content buf [09:34:56]Sock 7.Close socket [09:34:56]Sock 7.Thread stoped [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:41]accept exits with 9 [09:35:41]New connection [09:35:41]New thread 3067022692 created [09:35:41]Thread 3066879332 joined [09:35:41]Waiting for new connection... [09:35:41] Sock 9.Parse request [09:35:41]Sock 9.Check first char [09:35:41]Sock 9.First char is OK [09:35:41]request: POST /json_proto HTTP/1.0 [09:35:41]Method: POST [09:35:41]URL: /json_proto [09:35:41]Method is POST - this is cgi request [09:35:41]url: /json_proto [09:35:41]query_string will be loaded in cgi processing [09:35:41]execute_cgi json_proto POST (null) [09:35:41]execute_cgi path=json_proto method=POST [09:35:41]POST find Content-Length [09:35:41]Host: 172.17.46.131:8080 [09:35:41]Content-Length: 750 [09:35:41]Content-Type: application/json [09:35:41] [09:35:41]POST finish read [09:35:41]Found Content-Length = 750 [09:35:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412127", "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.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\u000A30107314", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:41]execute_script... [09: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)412127", "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.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\u000A30107314", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:41]POST & json_proto [09:35:41]process_json_proto [09:35:41]json parsed OK: [09:35:41]protocol is kg_v1.0 [09:35:41]action value=close_receipt [09:35:41]process_action close_receipt [09:35:41]cmd_close_receipt [09:35:41]MH_GetDate [09:35:41]Write to MH i2c: F0 00 00 34 0D 30 [09:35:41]Write i2c OK [09:35:41]MH_I2C_Read... [09:35:41]Read from MH i2c: F0 [09:35:41]MH_I2C_Read... [09:35:41]Read from MH i2c: F0 09 00 [09:35:41]MH_I2C_Read... [09:35:41]Read from MH i2c: F0 09 00 34 0D 00 F0 A5 B5 67 7E 41 4F 65 5D [09:35:41]GetLastDocTimeStamp 1739957695 [09:35:41]current date 1739957744 [09:35:41]FM_GetShiftState [09:35:41]SAM_PROTO_GetShiftState [09:35:41]wFMCommunicate request_size=4 [09:35:41]MH_SAM_APDU [09:35:41]CAPDU: 80 13 01 00 [09:35:41]Write to MH i2c: E2 08 00 35 0D 80 13 01 00 00 00 00 00 BF [09:35:41]Write i2c OK [09:35:41]MH_I2C_Read... [09:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:41]Read from MH i2c: E2 [09:35:41]MH_I2C_Read... [09:35:41]Read from MH i2c: E2 0E 00 [09:35:41]MH_I2C_Read... [09:35:41]Read from MH i2c: E2 0E 00 35 0D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 3E [09:35:41]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:35:41]wFMCommunicate OK [09:35:41]SAM_PROTO_GetShiftState done [09:35:41]FM_GetShiftState done [09:35:41]opened in 1739929631 [09:35:41]opened+sec_in_day 1740016031 [09:35:41]quantity*price = 0 [09:35:41]sum+1 = 1 [09:35:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 43 19.02.2025 09:35 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30107314 ФМ: 0000000000871826 ФД: 186977 ФПД: 68330868604624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T093544&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186977&fm=68330868604624&tin=02508201610067®Number=0000000000091857&sum=0 [09:35:43]StoreToDocumentArchive [09:35:43]shift 647 fd 186977 [09:35:43]save to /storage/0647/doc_00186977 [09:35:43]save last doc name /storage/0647/doc_00186977 to /storage/kkm_last_doc_name [09:35:43]save OK [09:35:43]Clear old archive folders... [09:35:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:35:43]tlvbuf is 005B0030 [09:35:43]SAM_PROTO_ClearQueue [09:35:43]wFMCommunicate request_size=4 [09:35:43]MH_SAM_APDU [09:35:43]CAPDU: 80 09 00 00 [09:35:43]Write to MH i2c: E2 08 00 42 0D 80 09 00 00 00 00 00 00 C1 [09:35:43]Write i2c OK [09:35:43]MH_I2C_Read... [09:35:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:43]Read from MH i2c: E2 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 03 00 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 03 00 42 0D 00 90 00 C3 [09:35:43]RAPDU: 90 00 [09:35:43]wFMCommunicate OK [09:35:43]SAM_PROTO_ClearQueue done [09:35:43]KKMCreateOFDPacket [09:35:43]OFDProtocolAddRootSTLVToBuf [09:35:43]FM_MakeSignedData [09:35:43]FM_MakeSignedData [09:35:43]SAM_PROTO_SignData [09:35:43]wFMCommunicate request_size=4 [09:35:43]MH_SAM_APDU [09:35:43]CAPDU: 80 0D 01 02 [09:35:43]Write to MH i2c: E2 08 00 43 0D 80 0D 01 02 00 00 00 00 C9 [09:35:43]Write i2c OK [09:35:43]MH_I2C_Read... [09:35:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:43]Read from MH i2c: E2 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 03 00 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 03 00 43 0D 00 90 00 C4 [09:35:43]RAPDU: 90 00 [09:35:43]wFMCommunicate OK [09:35:43]wFMCommunicate request_size=255 [09:35:43]MH_SAM_APDU [09:35: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 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 2B 00 00 00 F4 03 04 00 F0 A5 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 61 DA 02 00 35 04 06 00 3E 25 85 26 [09:35:43]Write to MH i2c: E2 02 01 44 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2B 00 00 00 F4 03 04 00 F0 A5 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 61 DA 02 00 35 04 06 00 3E 25 85 26 00 00 49 [09:35:43]Write i2c OK [09:35:43]MH_I2C_Read... [09:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:43]Read from MH i2c: E2 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 03 00 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 03 00 44 0D 00 90 00 C5 [09:35:43]RAPDU: 90 00 [09:35:43]wFMCommunicate OK [09:35:43]wFMCommunicate request_size=7 [09:35:43]MH_SAM_APDU [09:35:43]CAPDU: 80 0D 02 02 02 7E D0 [09:35:43]Write to MH i2c: E2 0A 00 45 0D 80 0D 02 02 02 00 7E D0 00 00 1E [09:35:43]Write i2c OK [09:35:43]MH_I2C_Read... [09:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:43]Read from MH i2c: E2 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 03 00 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 03 00 45 0D 00 90 00 C6 [09:35:43]RAPDU: 90 00 [09:35:43]wFMCommunicate OK [09:35:43]wFMCommunicate request_size=4 [09:35:43]MH_SAM_APDU [09:35:43]CAPDU: 80 0D 03 02 [09:35:43]Write to MH i2c: E2 08 00 46 0D 80 0D 03 02 00 00 00 00 CE [09:35:43]Write i2c OK [09:35:43]MH_I2C_Read... [09:35:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:43]Read from MH i2c: E2 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 0B 00 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 0B 00 46 0D 00 32 B1 1F F0 DB 61 53 FD 90 00 4D [09:35:43]RAPDU: 32 B1 1F F0 DB 61 53 FD 90 00 [09:35:43]wFMCommunicate OK [09:35:43]SAM_PROTO_SignData done [09:35:43]FM_MakeSignedData done [09:35:43]CreateOFDProtocolMessage [09:35:43]wFMCommunicate request_size=4 [09:35:43]MH_SAM_APDU [09:35:43]CAPDU: 80 11 00 00 [09:35:43]Write to MH i2c: E2 08 00 47 0D 80 11 00 00 00 00 00 00 CE [09:35:43]Write i2c OK [09:35:43]MH_I2C_Read... [09:35:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:43]Read from MH i2c: E2 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 17 00 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: E2 17 00 47 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 21 [09: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 [09:35:43]wFMCommunicate OK [09:35:43]CreateOFDProtocolMessage done [09:35:43]OFDSenderStorePacket 186977 [09:35:43]StoreOFDPacket docnum=186977 [09: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 81 E6 04 01 F1 34 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F0 A5 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 61 DA 02 00 35 04 06 00 3E 25 85 26 7E D0 32 B1 1F F0 DB 61 53 FD [09:35:43]CheckFolder [09:35:43]dirname=/storage/ofd_packets [09:35:43]CheckFolder done [09:35:43]ProducePacketName [09:35:43]name=ofd_packets/00186977 [09:35:43]NVStorageSaveData ofd_packets/00186977 [09:35:43]File name is /storage/ofd_packets/00186977 [09:35:43]Write 298 bytes [09:35:43]NVStorageSaveData done [09:35:43]OFDSenderStorePacket done [09:35:43]KKMCreateOFDPacket done [09:35:43]NVStorageSaveData kkm_last_timestamp [09:35:43]File name is /storage/kkm_last_timestamp [09:35:43]Write 4 bytes [09:35:43]NVStorageSaveData done [09:35:43]ExternCall_PrintAddStr [09:35:43]wPrintStart [09:35:43]Write to MH i2c: 01 00 00 48 0D 55 [09:35:43]Write i2c OK [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: 01 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: 01 07 00 [09:35:43]MH_I2C_Read... [09:35:43]Read from MH i2c: 01 07 00 48 0D 00 00 00 00 00 FF 0F 6A [09:35:43]RasterBufferAndPrint [09:35:43]line Счет N : (1)412127 [09:35:43]line ИНН: 02508201610067 [09:35:43]line Контрольно-Кассовый Чек [09:35:43]line ПРОДАЖА [09:35:43]line ТРК (МРК, ГНК) : 5 [09:35:43]line Товар: 2710194210 [09:35:43]line ДТ-К-5 [09:35:43]line 20.000 * 0.00 [09:35:43]line = 0.00 [09:35:43]line НДС 12% НСП 1% [09:35:43]line > о реализуемом товаре [09:35:43]line ИТОГО: 0.00 [09:35:43]line НСП 1% : 0.00 [09:35:43]line НДС 12% : 0.00 [09:35:43]line Наличными: 0.00 [09:35:43]line Безнал.: 0.00 [09:35:43]line Место: АЗС № 92 "Партнер Нефть" [09:35:43]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:35:43]line СНО: Общий режим [09:35:43]line Чек 43 19.02.2025 09:35 [09:35:43]line Смена: 647 ФФД: 1.0 [09:35:43]line ЗНМ: 0300000118 [09:35:43]line РНМ: 0000000000091857 [09:35:43]line Версия ККМ: 001 [09:35:43]line Талоны: ТК ГПНА Online [09:35:43]line 30107314 [09:35:43]line ФМ: 0000000000871826 [09:35:43]line ФД: 186977 [09:35:43]line ФПД: 68330868604624 [09:35:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T093544&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186977&fm=68330868604624&tin=02508201610067®Number=0000000000091857&sum=0 [09:35:43]OFD Sender: Processing packet 186977 [packets to send 49, broken 48] [09:35:43]ProducePacketName [09:35:43]name=ofd_packets/00186977 [09:35:43]OFD Sender: To server: pG, [09:35:43]CommunicateWithHost lk.salyk.kg:30040 [09:35:43]ConnectInit lk.salyk.kg [09:35:43]written 0, free lines is 4095 [09:35:44]Connected sock=10 [09: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 0C 01 00 00 81 E6 04 01 F1 34 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F0 A5 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 61 DA 02 00 35 04 06 00 3E 25 85 26 7E D0 32 B1 1F F0 DB 61 53 FD [09:35:44]Write to MH i2c: 01 00 00 72 0D 7F [09:35:44]Write i2c OK [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: 01 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: 01 07 00 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: 01 07 00 72 0D 00 00 00 00 00 F2 0C 84 [09:35:44]RasterBufferAndPrint [09:35:44]line [09:35:44]line [09:35:44]line [09:35:44]line [09:35:44]line [09:35:44]written 0, free lines is 3320 [09:35:44]MH_Cut [09:35:44]Write to MH i2c: D1 01 00 79 0D 01 58 [09:35:44]Write i2c OK [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: D1 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: D1 01 00 [09:35:44]MH_I2C_Read... [09:35:44]Read from MH i2c: D1 01 00 79 0D 00 57 [09:35:44]Write to MH i2c: 01 00 00 7A 0D 87 [09:35:44]Write i2c OK [09:35:44]MH_I2C_Read... [09: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 3A 86 47 00 FA 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 61 DA 02 00 F4 03 04 00 45 4C B5 67 B6 04 01 00 00 E0 A8 BE AA 8E 58 3F 91 [09:35:44]CommunicateWithHost err = 0 [09:35:44]CheckOFDResponse [09:35:44]1017 (14) - 77093643461234 [09:35:44]1041 (16) - 0000000000871826 [09:35:44]1040 (4) - 186977 [09:35:44]1012 (4) - 19.02.2025 03:13 [09:35:44]1206 (1) - 0 [09:35:44]OFD Sender: Remove packet 186977 [09:35:44]ProducePacketName [09:35:44]name=ofd_packets/00186977 [09:35:44]NVStorageDeleteData [09:35:44]OFD Sender: No OFD packet to send [09:35:45]*** Cut start [09:35:45]*** Partial cut [09:35:45]*** CUTSNS_PIN = 1 [09:35:45]*** CUTSNS_PIN = 0 [09:35:45]*** Brake cut motor [09:35:45]Read from MH i2c: 01 [09:35:45]MH_I2C_Read... [09:35:45]*** Stop cut motor [09:35:45]*** Cut end [09:35:45]Read from MH i2c: 01 07 00 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: 01 07 00 7A 0D 00 00 00 00 00 FF 0F 9C [09:35:45]process_action close_receipt done [09:35:45]requested_data is exist [09:35:45]produce_requested_data [09:35:45]requested_item fm.sn is exist - process it [09:35:45]wFMCommunicate request_size=4 [09:35:45]MH_SAM_APDU [09:35:45]CAPDU: 80 11 00 00 [09:35:45]Write to MH i2c: E2 08 00 7B 0D 80 11 00 00 00 00 00 00 02 [09:35:45]Write i2c OK [09:35:45]MH_I2C_Read... [09:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:45]Read from MH i2c: E2 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: E2 17 00 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: E2 17 00 7B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 55 [09: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 [09:35:45]wFMCommunicate OK [09:35:45]requested_item fd.num is exist - process it [09:35:45]SAM_PROTO_GetFieldsCounters [09:35:45]wFMCommunicate request_size=4 [09:35:45]MH_SAM_APDU [09:35:45]CAPDU: 80 13 00 00 [09:35:45]Write to MH i2c: E2 08 00 7C 0D 80 13 00 00 00 00 00 00 05 [09:35:45]Write i2c OK [09:35:45]MH_I2C_Read... [09:35:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:45]Read from MH i2c: E2 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: E2 62 00 [09:35:45]MH_I2C_Read... [09:35:45]Read from MH i2c: E2 62 00 7C 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 61 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [09: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 61 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:45]wFMCommunicate OK [09:35:45]SAM_PROTO_GetFieldsCounters done [09:35:45]requested_item shift.num is exist - process it [09:35:45]requested_item shift.opened is exist - process it [09:35:45]req_shift_opened [09:35:45]FM_GetShiftState [09:35:45]SAM_PROTO_GetShiftState [09:35:45]wFMCommunicate request_size=4 [09:35:45]MH_SAM_APDU [09:35:45]CAPDU: 80 13 01 00 [09:35:45]Write to MH i2c: E2 08 00 7D 0D 80 13 01 00 00 00 00 00 07 [09:35:45]Write i2c OK [09:35:45]MH_I2C_Read... [09:35:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:46]Read from MH i2c: E2 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 0E 00 [09:35:46]MH_I2C_Read... [09:35:46]Read from MH i2c: E2 0E 00 7D 0D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 86 [09:35:46]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:35:46]wFMCommunicate OK [09:35:46]SAM_PROTO_GetShiftState done [09:35:46]FM_GetShiftState done [09:35:46]req_shift_opened done [09:35:46]requested_item shift.open_date is exist - process it [09:35:46]req_shift_open_date [09:35:46]req_shift_open_date done [09:35:46]produce_requested_data done [09:35:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186977,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [09:35:46]process_action_free close_receipt [09:35:46]json_value_free [09:35:46]json_value_free done [09:35:46]process_json_proto returns [09:35:46]Send response to host [09:35:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186977,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [09:35:46]free response buf [09:35:46]execute_script done [09:35:46]execute_script returns [09:35:46]free content buf [09:35:46]Sock 9.Close socket [09:35:46]Sock 9.Thread stoped [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:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:43]accept exits with 7 [09:39:43]New connection [09:39:43]New thread 3066879332 created [09:39:43]Thread 3067022692 joined [09:39:43]Waiting for new connection... [09:39:43] Sock 7.Parse request [09:39:43]Sock 7.Check first char [09:39:43]Sock 7.First char is OK [09:39:43]request: POST /json_proto HTTP/1.0 [09:39:43]Method: POST [09:39:43]URL: /json_proto [09:39:43]Method is POST - this is cgi request [09:39:43]url: /json_proto [09:39:43]query_string will be loaded in cgi processing [09:39:43]execute_cgi json_proto POST (null) [09:39:43]execute_cgi path=json_proto method=POST [09:39:43]POST find Content-Length [09:39:43]Host: 172.17.46.131:8080 [09:39:43]Content-Length: 1019 [09:39:43]Content-Type: application/json [09:39:43] [09:39:43]POST finish read [09:39:43]Found Content-Length = 1019 [09:39:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412128", "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" : 55.700, "sum" : 3520.24, "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 55.70 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 3520.00, "payments": [ { "type": 0, "sum" : 3520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:43]execute_script... [09:39: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)412128", "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" : 55.700, "sum" : 3520.24, "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 55.70 \u0441\u043E\u043C", "deposit" : 4000.00, "total" : 3520.00, "payments": [ { "type": 0, "sum" : 3520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:43]POST & json_proto [09:39:43]process_json_proto [09:39:43]json parsed OK: [09:39:43]protocol is kg_v1.0 [09:39:43]action value=close_receipt [09:39:43]process_action close_receipt [09:39:43]cmd_close_receipt [09:39:43]MH_GetDate [09:39:43]Write to MH i2c: F0 00 00 7E 0D 7A [09:39:43]Write i2c OK [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: F0 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: F0 09 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: F0 09 00 7E 0D 00 E2 A6 B5 67 7E 41 4F 65 9A [09:39:43]GetLastDocTimeStamp 1739957744 [09:39:43]current date 1739957986 [09:39:43]FM_GetShiftState [09:39:43]SAM_PROTO_GetShiftState [09:39:43]wFMCommunicate request_size=4 [09:39:43]MH_SAM_APDU [09:39:43]CAPDU: 80 13 01 00 [09:39:43]Write to MH i2c: E2 08 00 7F 0D 80 13 01 00 00 00 00 00 09 [09:39:43]Write i2c OK [09:39:43]MH_I2C_Read... [09:39:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:43]Read from MH i2c: E2 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 0E 00 [09:39:43]MH_I2C_Read... [09:39:43]Read from MH i2c: E2 0E 00 7F 0D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 88 [09:39:43]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:39:43]wFMCommunicate OK [09:39:43]SAM_PROTO_GetShiftState done [09:39:43]FM_GetShiftState done [09:39:43]opened in 1739929631 [09:39:43]opened+sec_in_day 1740016031 [09:39:43]quantity*price = 352024 [09:39:43]sum+1 = 352025 [09:39:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 3520.00 Внесено: 4000.00 СДАЧА: 480.00 НСП 1% : 31.15 НДС 12% : 373.83 Наличными: 3520.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 44 19.02.2025 09:39 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Дисконтная программа СкидкаАИ-92 номер 92 сэкономлено 55.70 сом ФМ: 0000000000871826 ФД: 186978 ФПД: 98521704220669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T093946&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186978&fm=98521704220669&tin=02508201610067®Number=0000000000091857&sum=352000 [09:39:44]StoreToDocumentArchive [09:39:44]shift 647 fd 186978 [09:39:44]save to /storage/0647/doc_00186978 [09:39:44]save last doc name /storage/0647/doc_00186978 to /storage/kkm_last_doc_name [09:39:44]save OK [09:39:44]Clear old archive folders... [09:39:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:44]tlvbuf is 005CF100 [09:39:44]SAM_PROTO_ClearQueue [09:39:44]wFMCommunicate request_size=4 [09:39:44]MH_SAM_APDU [09:39:44]CAPDU: 80 09 00 00 [09:39:44]Write to MH i2c: E2 08 00 8C 0D 80 09 00 00 00 00 00 00 0B [09:39:44]Write i2c OK [09:39:44]MH_I2C_Read... [09:39:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:44]Read from MH i2c: E2 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: E2 03 00 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: E2 03 00 8C 0D 00 90 00 0D [09:39:44]RAPDU: 90 00 [09:39:44]wFMCommunicate OK [09:39:44]SAM_PROTO_ClearQueue done [09:39:44]KKMCreateOFDPacket [09:39:44]OFDProtocolAddRootSTLVToBuf [09:39:44]FM_MakeSignedData [09:39:44]FM_MakeSignedData [09:39:44]SAM_PROTO_SignData [09:39:44]wFMCommunicate request_size=4 [09:39:44]MH_SAM_APDU [09:39:44]CAPDU: 80 0D 01 02 [09:39:44]Write to MH i2c: E2 08 00 8D 0D 80 0D 01 02 00 00 00 00 13 [09:39:44]Write i2c OK [09:39:44]MH_I2C_Read... [09:39:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:44]Read from MH i2c: E2 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: E2 03 00 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: E2 03 00 8D 0D 00 90 00 0E [09:39:44]RAPDU: 90 00 [09:39:44]wFMCommunicate OK [09:39:44]wFMCommunicate request_size=255 [09:39:44]MH_SAM_APDU [09:39: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 94 D9 00 00 00 00 00 37 04 06 00 B0 18 00 00 00 00 13 04 06 00 18 5F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 5F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 92 00 00 00 00 07 04 06 00 00 5F 05 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 E2 A6 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 62 DA 02 00 35 04 06 00 59 [09:39:44]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 94 D9 00 00 00 00 00 37 04 06 00 B0 18 00 00 00 00 13 04 06 00 18 5F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 5F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 92 00 00 00 00 07 04 06 00 00 5F 05 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 E2 A6 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 62 DA 02 00 35 04 06 00 59 00 00 58 [09:39:44]Write i2c OK [09:39:44]MH_I2C_Read... [09:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:44]Read from MH i2c: E2 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: E2 03 00 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: E2 03 00 8E 0D 00 90 00 0F [09:39:44]RAPDU: 90 00 [09:39:44]wFMCommunicate OK [09:39:44]wFMCommunicate request_size=10 [09:39:44]MH_SAM_APDU [09:39:44]CAPDU: 80 0D 02 02 05 9A DF 2E C7 FD [09:39:44]Write to MH i2c: E2 0D 00 8F 0D 80 0D 02 02 05 00 9A DF 2E C7 FD 00 00 8B [09:39:44]Write i2c OK [09:39:44]MH_I2C_Read... [09:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:45]Read from MH i2c: E2 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 03 00 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 03 00 8F 0D 00 90 00 10 [09:39:45]RAPDU: 90 00 [09:39:45]wFMCommunicate OK [09:39:45]wFMCommunicate request_size=4 [09:39:45]MH_SAM_APDU [09:39:45]CAPDU: 80 0D 03 02 [09:39:45]Write to MH i2c: E2 08 00 90 0D 80 0D 03 02 00 00 00 00 18 [09:39:45]Write i2c OK [09:39:45]MH_I2C_Read... [09:39:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:45]Read from MH i2c: E2 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 0B 00 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 0B 00 90 0D 00 4E CA 9E C4 20 A5 49 3B 90 00 DC [09:39:45]RAPDU: 4E CA 9E C4 20 A5 49 3B 90 00 [09:39:45]wFMCommunicate OK [09:39:45]SAM_PROTO_SignData done [09:39:45]FM_MakeSignedData done [09:39:45]CreateOFDProtocolMessage [09:39:45]wFMCommunicate request_size=4 [09:39:45]MH_SAM_APDU [09:39:45]CAPDU: 80 11 00 00 [09:39:45]Write to MH i2c: E2 08 00 91 0D 80 11 00 00 00 00 00 00 18 [09:39:45]Write i2c OK [09:39:45]MH_I2C_Read... [09:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:45]Read from MH i2c: E2 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 17 00 [09:39:45]MH_I2C_Read... [09:39:45]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 [09:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:39:45]wFMCommunicate OK [09:39:45]CreateOFDProtocolMessage done [09:39:45]OFDSenderStorePacket 186978 [09:39:45]StoreOFDPacket docnum=186978 [09:39: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 15 3C 07 01 61 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 D9 00 00 00 00 00 37 04 06 00 B0 18 00 00 00 00 13 04 06 00 18 5F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 5F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 92 00 00 00 00 07 04 06 00 00 5F 05 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 E2 A6 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 62 DA 02 00 35 04 06 00 59 9A DF 2E C7 FD 4E CA 9E C4 20 A5 49 3B [09:39:45]CheckFolder [09:39:45]dirname=/storage/ofd_packets [09:39:45]CheckFolder done [09:39:45]ProducePacketName [09:39:45]name=ofd_packets/00186978 [09:39:45]NVStorageSaveData ofd_packets/00186978 [09:39:45]File name is /storage/ofd_packets/00186978 [09:39:45]Write 301 bytes [09:39:45]NVStorageSaveData done [09:39:45]OFDSenderStorePacket done [09:39:45]KKMCreateOFDPacket done [09:39:45]NVStorageSaveData kkm_last_timestamp [09:39:45]File name is /storage/kkm_last_timestamp [09:39:45]Write 4 bytes [09:39:45]NVStorageSaveData done [09:39:45]ExternCall_PrintAddStr [09:39:45]wPrintStart [09:39:45]Write to MH i2c: 01 00 00 92 0D 9F [09:39:45]Write i2c OK [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: 01 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: 01 07 00 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: 01 07 00 92 0D 00 00 00 00 00 FF 0F B4 [09:39:45]RasterBufferAndPrint [09:39:45]line Счет N : (1)412128 [09:39:45]line ИНН: 02508201610067 [09:39:45]line Контрольно-Кассовый Чек [09:39:45]line ПРОДАЖА [09:39:45]line ТРК (МРК, ГНК) : 12 [09:39:45]line Товар: 2710124130 [09:39:45]line Аи-92-К-2 [09:39:45]line 55.700 * 63.20 [09:39:45]line = 3520.24 [09:39:45]line НДС 12% НСП 1% [09:39:45]line > о реализуемом товаре [09:39:45]line ОКРУГЛЕНИЕ: -0.24 [09:39:45]line ИТОГО: 3520.00 [09:39:45]line Внесено: 4000.00 [09:39:45]line СДАЧА: 480.00 [09:39:45]line НСП 1% : 31.15 [09:39:45]line НДС 12% : 373.83 [09:39:45]line Наличными: 3520.00 [09:39:45]line Безнал.: 0.00 [09:39:45]line Место: АЗС № 92 "Партнер Нефть" [09:39:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:39:45]line СНО: Общий режим [09:39:45]line Чек 44 19.02.2025 09:39 [09:39:45]line Смена: 647 ФФД: 1.0 [09:39:45]line ЗНМ: 0300000118 [09:39:45]line РНМ: 0000000000091857 [09:39:45]line Версия ККМ: 001 [09:39:45]line [09:39:45]line Дисконтная программа [09:39:45]line СкидкаАИ-92 [09:39:45]line номер 92 [09:39:45]line сэкономлено 55.70 сом [09:39:45]line ФМ: 0000000000871826 [09:39:45]line ФД: 186978 [09:39:45]line ФПД: 98521704220669 [09:39:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T093946&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186978&fm=98521704220669&tin=02508201610067®Number=0000000000091857&sum=352000 [09:39:45]OFD Sender: Processing packet 186978 [packets to send 49, broken 48] [09:39:45]ProducePacketName [09:39:45]name=ofd_packets/00186978 [09:39:45]OFD Sender: To server: pG, [09:39:45]CommunicateWithHost lk.salyk.kg:30040 [09:39:45]ConnectInit lk.salyk.kg [09:39:45]written 0, free lines is 4095 [09:39:45]Connected sock=10 [09:39: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 15 3C 07 01 61 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 D9 00 00 00 00 00 37 04 06 00 B0 18 00 00 00 00 13 04 06 00 18 5F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 5F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 92 00 00 00 00 07 04 06 00 00 5F 05 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 E2 A6 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 62 DA 02 00 35 04 06 00 59 9A DF 2E C7 FD 4E CA 9E C4 20 A5 49 3B [09:39: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 86 E8 47 00 78 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 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 DA 02 00 F4 03 04 00 36 4D B5 67 B6 04 01 00 00 60 31 36 89 6A EA 8E BB [09:39:45]CommunicateWithHost err = 0 [09:39:45]CheckOFDResponse [09:39:45]1017 (14) - 77093643461234 [09:39:45]1041 (16) - 0000000000871826 [09:39:45]1040 (4) - 186978 [09:39:45]1012 (4) - 19.02.2025 03:17 [09:39:45]1206 (1) - 0 [09:39:45]OFD Sender: Remove packet 186978 [09:39:45]ProducePacketName [09:39:45]name=ofd_packets/00186978 [09:39:45]NVStorageDeleteData [09:39:45]Write to MH i2c: 01 00 00 C2 0D CF [09:39:45]Write i2c OK [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: 01 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: 01 07 00 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: 01 07 00 C2 0D 00 00 00 00 00 C5 0C A7 [09:39:45]RasterBufferAndPrint [09:39:45]line [09:39:45]line [09:39:45]line [09:39:45]line [09:39:45]line [09:39:45]written 0, free lines is 3275 [09:39:46]MH_Cut [09:39:46]Write to MH i2c: D1 01 00 C9 0D 01 A8 [09:39:46]Write i2c OK [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: D1 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: D1 01 00 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: D1 01 00 C9 0D 00 A7 [09:39:46]Write to MH i2c: 01 00 00 CA 0D D7 [09:39:46]Write i2c OK [09:39:46]MH_I2C_Read... [09:39:46]OFD Sender: No OFD packet to send [09:39:46]*** Cut start [09:39:46]*** Partial cut [09:39:46]*** CUTSNS_PIN = 1 [09:39:46]*** CUTSNS_PIN = 0 [09:39:47]*** Brake cut motor [09:39:47]Read from MH i2c: 01 [09:39:47]MH_I2C_Read... [09:39:47]*** Stop cut motor [09:39:47]*** Cut end [09:39:47]Read from MH i2c: 01 07 00 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: 01 07 00 CA 0D 00 00 00 00 00 FF 0F EC [09:39:47]process_action close_receipt done [09:39:47]requested_data is exist [09:39:47]produce_requested_data [09:39:47]requested_item fm.sn is exist - process it [09:39:47]wFMCommunicate request_size=4 [09:39:47]MH_SAM_APDU [09:39:47]CAPDU: 80 11 00 00 [09:39:47]Write to MH i2c: E2 08 00 CB 0D 80 11 00 00 00 00 00 00 52 [09:39:47]Write i2c OK [09:39:47]MH_I2C_Read... [09:39:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:47]Read from MH i2c: E2 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: E2 17 00 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: E2 17 00 CB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A5 [09:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:39:47]wFMCommunicate OK [09:39:47]requested_item fd.num is exist - process it [09:39:47]SAM_PROTO_GetFieldsCounters [09:39:47]wFMCommunicate request_size=4 [09:39:47]MH_SAM_APDU [09:39:47]CAPDU: 80 13 00 00 [09:39:47]Write to MH i2c: E2 08 00 CC 0D 80 13 00 00 00 00 00 00 55 [09:39:47]Write i2c OK [09:39:47]MH_I2C_Read... [09:39:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:47]Read from MH i2c: E2 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: E2 62 00 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: E2 62 00 CC 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 62 DA 02 00 0E 04 04 00 87 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 C6 [09:39: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 62 DA 02 00 0E 04 04 00 87 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:39:47]wFMCommunicate OK [09:39:47]SAM_PROTO_GetFieldsCounters done [09:39:47]requested_item shift.num is exist - process it [09:39:47]requested_item shift.opened is exist - process it [09:39:47]req_shift_opened [09:39:47]FM_GetShiftState [09:39:47]SAM_PROTO_GetShiftState [09:39:47]wFMCommunicate request_size=4 [09:39:47]MH_SAM_APDU [09:39:47]CAPDU: 80 13 01 00 [09:39:47]Write to MH i2c: E2 08 00 CD 0D 80 13 01 00 00 00 00 00 57 [09:39:47]Write i2c OK [09:39:47]MH_I2C_Read... [09:39:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:47]Read from MH i2c: E2 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: E2 0E 00 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: E2 0E 00 CD 0D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D6 [09:39:47]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:39:47]wFMCommunicate OK [09:39:47]SAM_PROTO_GetShiftState done [09:39:47]FM_GetShiftState done [09:39:47]req_shift_opened done [09:39:47]requested_item shift.open_date is exist - process it [09:39:47]req_shift_open_date [09:39:47]req_shift_open_date done [09:39:47]produce_requested_data done [09:39:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186978,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [09:39:47]process_action_free close_receipt [09:39:47]json_value_free [09:39:47]json_value_free done [09:39:47]process_json_proto returns [09:39:47]Send response to host [09:39:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186978,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [09:39:47]free response buf [09:39:47]execute_script done [09:39:47]execute_script returns [09:39:47]free content buf [09:39:47]Sock 7.Close socket [09:39:47]Sock 7.Thread stoped [09:39:51]OFD Sender: No OFD packet to send [09:39:56]OFD Sender: No OFD packet to send [09:40:01]OFD Sender: No OFD packet to send [09:40:06]OFD Sender: No OFD packet to send [09:40:11]OFD Sender: No OFD packet to send [09:40:16]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:25]accept exits with 9 [09:40:25]New connection [09:40:25]New thread 3067022692 created [09:40:25]Thread 3066879332 joined [09:40:25]Waiting for new connection... [09:40:25] Sock 9.Parse request [09:40:25]Sock 9.Check first char [09:40:25]Sock 9.First char is OK [09:40:25]request: POST /json_proto HTTP/1.0 [09:40:25]Method: POST [09:40:25]URL: /json_proto [09:40:25]Method is POST - this is cgi request [09:40:25]url: /json_proto [09:40:25]query_string will be loaded in cgi processing [09:40:25]execute_cgi json_proto POST (null) [09:40:25]execute_cgi path=json_proto method=POST [09:40:25]POST find Content-Length [09:40:25]Host: 172.17.46.131:8080 [09:40:25]Content-Length: 754 [09:40:25]Content-Type: application/json [09:40:25] [09:40:25]POST finish read [09:40:25]Found Content-Length = 754 [09:40:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412129", "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" : 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\u000A30039921", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:25]execute_script... [09:40:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412129", "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" : 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\u000A30039921", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:25]POST & json_proto [09:40:25]process_json_proto [09:40:25]json parsed OK: [09:40:25]protocol is kg_v1.0 [09:40:25]action value=close_receipt [09:40:25]process_action close_receipt [09:40:25]cmd_close_receipt [09:40:25]MH_GetDate [09:40:25]Write to MH i2c: F0 00 00 CE 0D CA [09:40:25]Write i2c OK [09:40:25]MH_I2C_Read... [09:40:25]Read from MH i2c: F0 [09:40:25]MH_I2C_Read... [09:40:25]Read from MH i2c: F0 09 00 [09:40:25]MH_I2C_Read... [09:40:25]Read from MH i2c: F0 09 00 CE 0D 00 0C A7 B5 67 7E 41 4F 65 15 [09:40:25]GetLastDocTimeStamp 1739957986 [09:40:25]current date 1739958028 [09:40:25]FM_GetShiftState [09:40:25]SAM_PROTO_GetShiftState [09:40:25]wFMCommunicate request_size=4 [09:40:25]MH_SAM_APDU [09:40:25]CAPDU: 80 13 01 00 [09:40:25]Write to MH i2c: E2 08 00 CF 0D 80 13 01 00 00 00 00 00 59 [09:40:25]Write i2c OK [09:40:25]MH_I2C_Read... [09:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:25]Read from MH i2c: E2 [09:40:25]MH_I2C_Read... [09:40:25]Read from MH i2c: E2 0E 00 [09:40:25]MH_I2C_Read... [09:40:25]Read from MH i2c: E2 0E 00 CF 0D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D8 [09:40:25]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:40:25]wFMCommunicate OK [09:40:25]SAM_PROTO_GetShiftState done [09:40:25]FM_GetShiftState done [09:40:25]opened in 1739929631 [09:40:25]opened+sec_in_day 1740016031 [09:40:25]quantity*price = 0 [09:40:25]sum+1 = 1 [09:40:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 45 19.02.2025 09:40 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30039921 ФМ: 0000000000871826 ФД: 186979 ФПД: 235553896542359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T094028&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186979&fm=235553896542359&tin=02508201610067®Number=0000000000091857&sum=0 [09:40:26]StoreToDocumentArchive [09:40:26]shift 647 fd 186979 [09:40:26]save to /storage/0647/doc_00186979 [09:40:26]save last doc name /storage/0647/doc_00186979 to /storage/kkm_last_doc_name [09:40:26]save OK [09:40:26]Clear old archive folders... [09:40:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:26]tlvbuf is 005D9440 [09:40:26]SAM_PROTO_ClearQueue [09:40:26]wFMCommunicate request_size=4 [09:40:26]MH_SAM_APDU [09:40:26]CAPDU: 80 09 00 00 [09:40:26]Write to MH i2c: E2 08 00 DC 0D 80 09 00 00 00 00 00 00 5B [09:40:26]Write i2c OK [09:40:26]MH_I2C_Read... [09:40:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:26]Read from MH i2c: E2 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: E2 03 00 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: E2 03 00 DC 0D 00 90 00 5D [09:40:26]RAPDU: 90 00 [09:40:26]wFMCommunicate OK [09:40:26]SAM_PROTO_ClearQueue done [09:40:26]KKMCreateOFDPacket [09:40:26]OFDProtocolAddRootSTLVToBuf [09:40:26]FM_MakeSignedData [09:40:26]FM_MakeSignedData [09:40:26]SAM_PROTO_SignData [09:40:26]wFMCommunicate request_size=4 [09:40:26]MH_SAM_APDU [09:40:26]CAPDU: 80 0D 01 02 [09:40:26]Write to MH i2c: E2 08 00 DD 0D 80 0D 01 02 00 00 00 00 63 [09:40:26]Write i2c OK [09:40:26]MH_I2C_Read... [09:40:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:26]Read from MH i2c: E2 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: E2 03 00 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: E2 03 00 DD 0D 00 90 00 5E [09:40:26]RAPDU: 90 00 [09:40:26]wFMCommunicate OK [09:40:26]wFMCommunicate request_size=255 [09:40:26]MH_SAM_APDU [09:40: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 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 2D 00 00 00 F4 03 04 00 0C A7 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 63 DA 02 00 35 04 06 00 D6 [09:40:26]Write to MH i2c: E2 02 01 DE 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 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 2D 00 00 00 F4 03 04 00 0C A7 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 63 DA 02 00 35 04 06 00 D6 00 00 AE [09:40:26]Write i2c OK [09:40:26]MH_I2C_Read... [09:40:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:26]Read from MH i2c: E2 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: E2 03 00 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: E2 03 00 DE 0D 00 90 00 5F [09:40:26]RAPDU: 90 00 [09:40:26]wFMCommunicate OK [09:40:26]wFMCommunicate request_size=10 [09:40:26]MH_SAM_APDU [09:40:26]CAPDU: 80 0D 02 02 05 3C 2A 54 30 97 [09:40:26]Write to MH i2c: E2 0D 00 DF 0D 80 0D 02 02 05 00 3C 2A 54 30 97 00 00 F1 [09:40:26]Write i2c OK [09:40:26]MH_I2C_Read... [09:40:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:26]Read from MH i2c: E2 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: E2 03 00 [09:40:26]MH_I2C_Read... [09:40:26]Read from MH i2c: E2 03 00 DF 0D 00 90 00 60 [09:40:26]RAPDU: 90 00 [09:40:26]wFMCommunicate OK [09:40:26]wFMCommunicate request_size=4 [09:40:26]MH_SAM_APDU [09:40:26]CAPDU: 80 0D 03 02 [09:40:26]Write to MH i2c: E2 08 00 E0 0D 80 0D 03 02 00 00 00 00 68 [09:40:26]Write i2c OK [09:40:26]MH_I2C_Read... [09:40:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:27]Read from MH i2c: E2 [09:40:27]MH_I2C_Read... [09:40:27]Read from MH i2c: E2 0B 00 [09:40:27]MH_I2C_Read... [09:40:27]Read from MH i2c: E2 0B 00 E0 0D 00 0A FF 8B 94 10 FC D1 40 90 00 AE [09:40:27]RAPDU: 0A FF 8B 94 10 FC D1 40 90 00 [09:40:27]wFMCommunicate OK [09:40:27]SAM_PROTO_SignData done [09:40:27]FM_MakeSignedData done [09:40:27]CreateOFDProtocolMessage [09:40:27]wFMCommunicate request_size=4 [09:40:27]MH_SAM_APDU [09:40:27]CAPDU: 80 11 00 00 [09:40:27]Write to MH i2c: E2 08 00 E1 0D 80 11 00 00 00 00 00 00 68 [09:40:27]Write i2c OK [09:40:27]MH_I2C_Read... [09:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:27]Read from MH i2c: E2 [09:40:27]MH_I2C_Read... [09:40:27]Read from MH i2c: E2 17 00 [09:40:27]MH_I2C_Read... [09:40:27]Read from MH i2c: E2 17 00 E1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BB [09:40: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:40:27]wFMCommunicate OK [09:40:27]CreateOFDProtocolMessage done [09:40:27]OFDSenderStorePacket 186979 [09:40:27]StoreOFDPacket docnum=186979 [09:40: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 50 A1 07 01 63 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2D 00 00 00 F4 03 04 00 0C A7 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 63 DA 02 00 35 04 06 00 D6 3C 2A 54 30 97 0A FF 8B 94 10 FC D1 40 [09:40:27]CheckFolder [09:40:27]dirname=/storage/ofd_packets [09:40:27]CheckFolder done [09:40:27]ProducePacketName [09:40:27]name=ofd_packets/00186979 [09:40:27]NVStorageSaveData ofd_packets/00186979 [09:40:27]File name is /storage/ofd_packets/00186979 [09:40:27]Write 301 bytes [09:40:27]NVStorageSaveData done [09:40:27]OFDSenderStorePacket done [09:40:27]KKMCreateOFDPacket done [09:40:27]NVStorageSaveData kkm_last_timestamp [09:40:27]File name is /storage/kkm_last_timestamp [09:40:27]Write 4 bytes [09:40:27]NVStorageSaveData done [09:40:27]ExternCall_PrintAddStr [09:40:27]wPrintStart [09:40:27]Write to MH i2c: 01 00 00 E2 0D EF [09:40:27]Write i2c OK [09:40:27]MH_I2C_Read... [09:40:27]Read from MH i2c: 01 [09:40:27]MH_I2C_Read... [09:40:27]Read from MH i2c: 01 07 00 [09:40:27]MH_I2C_Read... [09:40:27]Read from MH i2c: 01 07 00 E2 0D 00 00 00 00 00 FF 0F 04 [09:40:27]RasterBufferAndPrint [09:40:27]line Счет N : (1)412129 [09:40:27]line ИНН: 02508201610067 [09:40:27]line Контрольно-Кассовый Чек [09:40:27]line ПРОДАЖА [09:40:27]line ТРК (МРК, ГНК) : 32 [09:40:27]line Товар: 2710124130 [09:40:27]line Аи-92-К-2 [09:40:27]line 30.000 * 0.00 [09:40:27]line = 0.00 [09:40:27]line НДС 12% НСП 1% [09:40:27]line > о реализуемом товаре [09:40:27]line ИТОГО: 0.00 [09:40:27]line НСП 1% : 0.00 [09:40:27]line НДС 12% : 0.00 [09:40:27]line Наличными: 0.00 [09:40:27]line Безнал.: 0.00 [09:40:27]line Место: АЗС № 92 "Партнер Нефть" [09:40:27]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:40:27]line СНО: Общий режим [09:40:27]line Чек 45 19.02.2025 09:40 [09:40:27]line Смена: 647 ФФД: 1.0 [09:40:27]line ЗНМ: 0300000118 [09:40:27]line РНМ: 0000000000091857 [09:40:27]line Версия ККМ: 001 [09:40:27]line Талоны: ТК ГПНА Online [09:40:27]line 30039921 [09:40:27]line ФМ: 0000000000871826 [09:40:27]line ФД: 186979 [09:40:27]line ФПД: 235553896542359 [09:40:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T094028&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186979&fm=235553896542359&tin=02508201610067®Number=0000000000091857&sum=0 [09:40:27]written 0, free lines is 4095 [09:40:27]OFD Sender: Processing packet 186979 [packets to send 49, broken 48] [09:40:27]ProducePacketName [09:40:27]name=ofd_packets/00186979 [09:40:27]OFD Sender: To server: pG, [09:40:27]CommunicateWithHost lk.salyk.kg:30040 [09:40:27]ConnectInit lk.salyk.kg [09:40:27]Connected sock=10 [09:40:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 50 A1 07 01 63 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2D 00 00 00 F4 03 04 00 0C A7 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 63 DA 02 00 35 04 06 00 D6 3C 2A 54 30 97 0A FF 8B 94 10 FC D1 40 [09:40:27]Write to MH i2c: 01 00 00 0C 0E 1A [09:40:27]Write i2c OK [09:40:27]MH_I2C_Read... [09:40:27]Read from MH i2c: 01 [09:40:27]MH_I2C_Read... [09:40:27]Read from MH i2c: 01 07 00 [09:40:27]MH_I2C_Read... [09:40:27]Read from MH i2c: 01 07 00 0C 0E 00 00 00 00 00 13 0D 41 [09:40:27]RasterBufferAndPrint [09:40:27]line [09:40:27]line [09:40:27]line [09:40:27]line [09:40:27]line [09:40:27]written 0, free lines is 3355 [09:40:27]MH_Cut [09:40:27]Write to MH i2c: D1 01 00 13 0E 01 F3 [09:40:27]Write i2c OK [09:40:27]MH_I2C_Read... [09:40:27]Read from MH i2c: D1 [09:40:27]MH_I2C_Read... [09:40:27]Read from MH i2c: D1 01 00 [09:40:27]MH_I2C_Read... [09:40:27]Read from MH i2c: D1 01 00 13 0E 00 F2 [09:40:27]Write to MH i2c: 01 00 00 14 0E 22 [09:40:27]Write i2c OK [09:40:27]MH_I2C_Read... [09:40:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 17 73 47 00 61 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 63 DA 02 00 F4 03 04 00 60 4D B5 67 B6 04 01 00 00 D0 7B 0C 6C A2 7A FB 0C [09:40:27]CommunicateWithHost err = 0 [09:40:27]CheckOFDResponse [09:40:27]1017 (14) - 77093643461234 [09:40:27]1041 (16) - 0000000000871826 [09:40:27]1040 (4) - 186979 [09:40:27]1012 (4) - 19.02.2025 03:17 [09:40:27]1206 (1) - 0 [09:40:27]OFD Sender: Remove packet 186979 [09:40:27]ProducePacketName [09:40:27]name=ofd_packets/00186979 [09:40:27]NVStorageDeleteData [09:40:28]OFD Sender: No OFD packet to send [09:40:28]*** Cut start [09:40:28]*** Partial cut [09:40:28]*** CUTSNS_PIN = 1 [09:40:28]*** CUTSNS_PIN = 0 [09:40:28]*** Brake cut motor [09:40:28]Read from MH i2c: 01 [09:40:28]MH_I2C_Read... [09:40:28]*** Stop cut motor [09:40:28]*** Cut end [09:40:28]Read from MH i2c: 01 07 00 [09:40:28]MH_I2C_Read... [09:40:28]Read from MH i2c: 01 07 00 14 0E 00 00 00 00 00 FF 0F 37 [09:40:28]process_action close_receipt done [09:40:28]requested_data is exist [09:40:28]produce_requested_data [09:40:28]requested_item fm.sn is exist - process it [09:40:28]wFMCommunicate request_size=4 [09:40:28]MH_SAM_APDU [09:40:28]CAPDU: 80 11 00 00 [09:40:28]Write to MH i2c: E2 08 00 15 0E 80 11 00 00 00 00 00 00 9D [09:40:28]Write i2c OK [09:40:28]MH_I2C_Read... [09:40:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:29]Read from MH i2c: E2 [09:40:29]MH_I2C_Read... [09:40:29]Read from MH i2c: E2 17 00 [09:40:29]MH_I2C_Read... [09:40:29]Read from MH i2c: E2 17 00 15 0E 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:40: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:40:29]wFMCommunicate OK [09:40:29]requested_item fd.num is exist - process it [09:40:29]SAM_PROTO_GetFieldsCounters [09:40:29]wFMCommunicate request_size=4 [09:40:29]MH_SAM_APDU [09:40:29]CAPDU: 80 13 00 00 [09:40:29]Write to MH i2c: E2 08 00 16 0E 80 13 00 00 00 00 00 00 A0 [09:40:29]Write i2c OK [09:40:29]MH_I2C_Read... [09:40:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:29]Read from MH i2c: E2 [09:40:29]MH_I2C_Read... [09:40:29]Read from MH i2c: E2 62 00 [09:40:29]MH_I2C_Read... [09:40:29]Read from MH i2c: E2 62 00 16 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 63 DA 02 00 0E 04 04 00 87 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 15 [09:40:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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:40:29]wFMCommunicate OK [09:40:29]SAM_PROTO_GetFieldsCounters done [09:40:29]requested_item shift.num is exist - process it [09:40:29]requested_item shift.opened is exist - process it [09:40:29]req_shift_opened [09:40:29]FM_GetShiftState [09:40:29]SAM_PROTO_GetShiftState [09:40:29]wFMCommunicate request_size=4 [09:40:29]MH_SAM_APDU [09:40:29]CAPDU: 80 13 01 00 [09:40:29]Write to MH i2c: E2 08 00 17 0E 80 13 01 00 00 00 00 00 A2 [09:40:29]Write i2c OK [09:40:29]MH_I2C_Read... [09:40:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:29]Read from MH i2c: E2 [09:40:29]MH_I2C_Read... [09:40:29]Read from MH i2c: E2 0E 00 [09:40:29]MH_I2C_Read... [09:40:29]Read from MH i2c: E2 0E 00 17 0E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 21 [09:40:29]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:40:29]wFMCommunicate OK [09:40:29]SAM_PROTO_GetShiftState done [09:40:29]FM_GetShiftState done [09:40:29]req_shift_opened done [09:40:29]requested_item shift.open_date is exist - process it [09:40:29]req_shift_open_date [09:40:29]req_shift_open_date done [09:40:29]produce_requested_data done [09:40:29]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186979,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [09:40:29]process_action_free close_receipt [09:40:29]json_value_free [09:40:29]json_value_free done [09:40:29]process_json_proto returns [09:40:29]Send response to host [09:40:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186979,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [09:40:29]free response buf [09:40:29]execute_script done [09:40:29]execute_script returns [09:40:29]free content buf [09:40:29]Sock 9.Close socket [09:40:29]Sock 9.Thread stoped [09:40:33]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:32]accept exits with 7 [09:44:32]New connection [09:44:32]New thread 3066879332 created [09:44:32]Thread 3067022692 joined [09:44:32]Waiting for new connection... [09:44:32] Sock 7.Parse request [09:44:32]Sock 7.Check first char [09:44:32]Sock 7.First char is OK [09:44:32]request: POST /json_proto HTTP/1.0 [09:44:32]Method: POST [09:44:32]URL: /json_proto [09:44:32]Method is POST - this is cgi request [09:44:32]url: /json_proto [09:44:32]query_string will be loaded in cgi processing [09:44:32]execute_cgi json_proto POST (null) [09:44:32]execute_cgi path=json_proto method=POST [09:44:32]POST find Content-Length [09:44:32]Host: 172.17.46.131:8080 [09:44:32]Content-Length: 682 [09:44:32]Content-Type: application/json [09:44:32] [09:44:32]POST finish read [09:44:32]Found Content-Length = 682 [09:44:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412130", "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" ] } } [09:44:32]execute_script... [09:44: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)412130", "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" ] } } [09:44:32]POST & json_proto [09:44:32]process_json_proto [09:44:32]json parsed OK: [09:44:32]protocol is kg_v1.0 [09:44:32]action value=close_receipt [09:44:32]process_action close_receipt [09:44:32]cmd_close_receipt [09:44:32]MH_GetDate [09:44:32]Write to MH i2c: F0 00 00 18 0E 15 [09:44:32]Write i2c OK [09:44:32]MH_I2C_Read... [09:44:32]Read from MH i2c: F0 [09:44:32]MH_I2C_Read... [09:44:32]Read from MH i2c: F0 09 00 [09:44:32]MH_I2C_Read... [09:44:32]Read from MH i2c: F0 09 00 18 0E 00 03 A8 B5 67 7E 41 4F 65 58 [09:44:32]GetLastDocTimeStamp 1739958028 [09:44:32]current date 1739958275 [09:44:32]FM_GetShiftState [09:44:32]SAM_PROTO_GetShiftState [09:44:32]wFMCommunicate request_size=4 [09:44:32]MH_SAM_APDU [09:44:32]CAPDU: 80 13 01 00 [09:44:32]Write to MH i2c: E2 08 00 19 0E 80 13 01 00 00 00 00 00 A4 [09:44:32]Write i2c OK [09:44:32]MH_I2C_Read... [09:44:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:32]Read from MH i2c: E2 [09:44:32]MH_I2C_Read... [09:44:32]Read from MH i2c: E2 0E 00 [09:44:32]MH_I2C_Read... [09:44:32]Read from MH i2c: E2 0E 00 19 0E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 23 [09:44:32]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:44:32]wFMCommunicate OK [09:44:32]SAM_PROTO_GetShiftState done [09:44:32]FM_GetShiftState done [09:44:32]opened in 1739929631 [09:44:32]opened+sec_in_day 1740016031 [09:44:32]quantity*price = 150035 [09:44:33]sum+1 = 150036 [09:44:33]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 СНО: Общий режим Чек 46 19.02.2025 09:44 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186980 ФПД: 29579567668825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T094435&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186980&fm=29579567668825&tin=02508201610067®Number=0000000000091857&sum=150000 [09:44:34]StoreToDocumentArchive [09:44:34]shift 647 fd 186980 [09:44:34]save to /storage/0647/doc_00186980 [09:44:34]save last doc name /storage/0647/doc_00186980 to /storage/kkm_last_doc_name [09:44:34]save OK [09:44:34]Clear old archive folders... [09:44:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:34]tlvbuf is 005B06A0 [09:44:34]SAM_PROTO_ClearQueue [09:44:34]wFMCommunicate request_size=4 [09:44:34]MH_SAM_APDU [09:44:34]CAPDU: 80 09 00 00 [09:44:34]Write to MH i2c: E2 08 00 26 0E 80 09 00 00 00 00 00 00 A6 [09:44:34]Write i2c OK [09:44:34]MH_I2C_Read... [09:44:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:34]Read from MH i2c: E2 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: E2 03 00 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: E2 03 00 26 0E 00 90 00 A8 [09:44:34]RAPDU: 90 00 [09:44:34]wFMCommunicate OK [09:44:34]SAM_PROTO_ClearQueue done [09:44:34]KKMCreateOFDPacket [09:44:34]OFDProtocolAddRootSTLVToBuf [09:44:34]FM_MakeSignedData [09:44:34]FM_MakeSignedData [09:44:34]SAM_PROTO_SignData [09:44:34]wFMCommunicate request_size=4 [09:44:34]MH_SAM_APDU [09:44:34]CAPDU: 80 0D 01 02 [09:44:34]Write to MH i2c: E2 08 00 27 0E 80 0D 01 02 00 00 00 00 AE [09:44:34]Write i2c OK [09:44:34]MH_I2C_Read... [09:44:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:34]Read from MH i2c: E2 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: E2 03 00 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: E2 03 00 27 0E 00 90 00 A9 [09:44:34]RAPDU: 90 00 [09:44:34]wFMCommunicate OK [09:44:34]wFMCommunicate request_size=255 [09:44:34]MH_SAM_APDU [09:44: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 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 2E 00 00 00 F4 03 04 00 03 A8 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 64 DA 02 00 35 04 06 00 1A [09:44:34]Write to MH i2c: E2 02 01 28 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 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 2E 00 00 00 F4 03 04 00 03 A8 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 64 DA 02 00 35 04 06 00 1A 00 00 E9 [09:44:34]Write i2c OK [09:44:34]MH_I2C_Read... [09:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:34]Read from MH i2c: E2 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: E2 03 00 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: E2 03 00 28 0E 00 90 00 AA [09:44:34]RAPDU: 90 00 [09:44:34]wFMCommunicate OK [09:44:34]wFMCommunicate request_size=10 [09:44:34]MH_SAM_APDU [09:44:34]CAPDU: 80 0D 02 02 05 E7 07 9F 9E 59 [09:44:34]Write to MH i2c: E2 0D 00 29 0E 80 0D 02 02 05 00 E7 07 9F 9E 59 00 00 3F [09:44:34]Write i2c OK [09:44:34]MH_I2C_Read... [09:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:34]Read from MH i2c: E2 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: E2 03 00 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: E2 03 00 29 0E 00 90 00 AB [09:44:34]RAPDU: 90 00 [09:44:34]wFMCommunicate OK [09:44:34]wFMCommunicate request_size=4 [09:44:34]MH_SAM_APDU [09:44:34]CAPDU: 80 0D 03 02 [09:44:34]Write to MH i2c: E2 08 00 2A 0E 80 0D 03 02 00 00 00 00 B3 [09:44:34]Write i2c OK [09:44:34]MH_I2C_Read... [09:44:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:34]Read from MH i2c: E2 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: E2 0B 00 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: E2 0B 00 2A 0E 00 14 53 A4 A2 2A FF 7A F0 90 00 F4 [09:44:34]RAPDU: 14 53 A4 A2 2A FF 7A F0 90 00 [09:44:34]wFMCommunicate OK [09:44:34]SAM_PROTO_SignData done [09:44:34]FM_MakeSignedData done [09:44:34]CreateOFDProtocolMessage [09:44:34]wFMCommunicate request_size=4 [09:44:34]MH_SAM_APDU [09:44:34]CAPDU: 80 11 00 00 [09:44:34]Write to MH i2c: E2 08 00 2B 0E 80 11 00 00 00 00 00 00 B3 [09:44:34]Write i2c OK [09:44:34]MH_I2C_Read... [09:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:34]Read from MH i2c: E2 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: E2 17 00 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: E2 17 00 2B 0E 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:44: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:44:34]wFMCommunicate OK [09:44:34]CreateOFDProtocolMessage done [09:44:34]OFDSenderStorePacket 186980 [09:44:34]StoreOFDPacket docnum=186980 [09:44: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 51 6A 07 01 04 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 2E 00 00 00 F4 03 04 00 03 A8 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 64 DA 02 00 35 04 06 00 1A E7 07 9F 9E 59 14 53 A4 A2 2A FF 7A F0 [09:44:34]CheckFolder [09:44:34]dirname=/storage/ofd_packets [09:44:34]CheckFolder done [09:44:34]ProducePacketName [09:44:34]name=ofd_packets/00186980 [09:44:34]NVStorageSaveData ofd_packets/00186980 [09:44:34]File name is /storage/ofd_packets/00186980 [09:44:34]Write 301 bytes [09:44:34]NVStorageSaveData done [09:44:34]OFDSenderStorePacket done [09:44:34]KKMCreateOFDPacket done [09:44:34]NVStorageSaveData kkm_last_timestamp [09:44:34]File name is /storage/kkm_last_timestamp [09:44:34]Write 4 bytes [09:44:34]NVStorageSaveData done [09:44:34]ExternCall_PrintAddStr [09:44:34]wPrintStart [09:44:34]Write to MH i2c: 01 00 00 2C 0E 3A [09:44:34]OFD Sender: Processing packet 186980 [packets to send 49, broken 48] [09:44:34]ProducePacketName [09:44:34]name=ofd_packets/00186980 [09:44:34]OFD Sender: To server: pG, [09:44:34]CommunicateWithHost lk.salyk.kg:30040 [09:44:34]ConnectInit lk.salyk.kg [09:44:34]Write i2c OK [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: 01 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: 01 07 00 [09:44:34]MH_I2C_Read... [09:44:34]Read from MH i2c: 01 07 00 2C 0E 00 00 00 00 00 FF 0F 4F [09:44:34]RasterBufferAndPrint [09:44:34]line Счет N : (1)412130 [09:44:34]line ИНН: 02508201610067 [09:44:34]line Контрольно-Кассовый Чек [09:44:34]line ПРОДАЖА [09:44:34]line ТРК (МРК, ГНК) : 42 [09:44:34]line Товар: 2710124130 [09:44:34]line Аи-92-К-2 [09:44:34]line 23.370 * 64.20 [09:44:34]line = 1500.35 [09:44:34]line НДС 12% НСП 1% [09:44:34]line > о реализуемом товаре [09:44:34]line ОКРУГЛЕНИЕ: -0.35 [09:44:34]line ИТОГО: 1500.00 [09:44:34]line Внесено: 1500.00 [09:44:34]line СДАЧА: 0.00 [09:44:34]line НСП 1% : 13.28 [09:44:34]line НДС 12% : 159.33 [09:44:34]line Наличными: 1500.00 [09:44:34]line Безнал.: 0.00 [09:44:34]line Место: АЗС № 92 "Партнер Нефть" [09:44:34]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:44:34]line СНО: Общий режим [09:44:34]line Чек 46 19.02.2025 09:44 [09:44:34]line Смена: 647 ФФД: 1.0 [09:44:34]line ЗНМ: 0300000118 [09:44:34]line РНМ: 0000000000091857 [09:44:34]line Версия ККМ: 001 [09:44:34]line ФМ: 0000000000871826 [09:44:34]line ФД: 186980 [09:44:34]line ФПД: 29579567668825 [09:44:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T094435&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186980&fm=29579567668825&tin=02508201610067®Number=0000000000091857&sum=150000 [09:44:34]written 0, free lines is 4095 [09:44:34]Connected sock=9 [09:44: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 0F 01 00 00 51 6A 07 01 04 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 2E 00 00 00 F4 03 04 00 03 A8 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 64 DA 02 00 35 04 06 00 1A E7 07 9F 9E 59 14 53 A4 A2 2A FF 7A F0 [09:44: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 E3 0A 47 00 30 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 64 DA 02 00 F4 03 04 00 57 4E B5 67 B6 04 01 00 00 4A 2E 00 FD F1 61 F6 7F [09:44:35]CommunicateWithHost err = 0 [09:44:35]CheckOFDResponse [09:44:35]1017 (14) - 77093643461234 [09:44:35]1041 (16) - 0000000000871826 [09:44:35]1040 (4) - 186980 [09:44:35]1012 (4) - 19.02.2025 03:21 [09:44:35]1206 (1) - 0 [09:44:35]OFD Sender: Remove packet 186980 [09:44:35]ProducePacketName [09:44:35]name=ofd_packets/00186980 [09:44:35]NVStorageDeleteData [09:44:35]Write to MH i2c: 01 00 00 57 0E 65 [09:44:35]Write i2c OK [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: 01 [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: 01 07 00 [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: 01 07 00 57 0E 00 00 00 00 00 07 0D 80 [09:44:35]RasterBufferAndPrint [09:44:35]line [09:44:35]line [09:44:35]line [09:44:35]line [09:44:35]line [09:44:35]written 0, free lines is 3342 [09:44:35]MH_Cut [09:44:35]Write to MH i2c: D1 01 00 5E 0E 01 3E [09:44:35]Write i2c OK [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: D1 [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: D1 01 00 [09:44:35]MH_I2C_Read... [09:44:35]Read from MH i2c: D1 01 00 5E 0E 00 3D [09:44:35]Write to MH i2c: 01 00 00 5F 0E 6D [09:44:35]Write i2c OK [09:44:35]MH_I2C_Read... [09:44:35]OFD Sender: No OFD packet to send [09:44:35]*** Cut start [09:44:35]*** Partial cut [09:44:35]*** CUTSNS_PIN = 1 [09:44:35]*** CUTSNS_PIN = 0 [09:44:36]*** Brake cut motor [09:44:36]Read from MH i2c: 01 [09:44:36]MH_I2C_Read... [09:44:36]*** Stop cut motor [09:44:36]*** Cut end [09:44:36]Read from MH i2c: 01 07 00 [09:44:36]MH_I2C_Read... [09:44:36]Read from MH i2c: 01 07 00 5F 0E 00 00 00 00 00 FF 0F 82 [09:44:36]process_action close_receipt done [09:44:36]requested_data is exist [09:44:36]produce_requested_data [09:44:36]requested_item fm.sn is exist - process it [09:44:36]wFMCommunicate request_size=4 [09:44:36]MH_SAM_APDU [09:44:36]CAPDU: 80 11 00 00 [09:44:36]Write to MH i2c: E2 08 00 60 0E 80 11 00 00 00 00 00 00 E8 [09:44:36]Write i2c OK [09:44:36]MH_I2C_Read... [09:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:36]Read from MH i2c: E2 [09:44:36]MH_I2C_Read... [09:44:36]Read from MH i2c: E2 17 00 [09:44:36]MH_I2C_Read... [09:44:36]Read from MH i2c: E2 17 00 60 0E 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:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:44:36]wFMCommunicate OK [09:44:36]requested_item fd.num is exist - process it [09:44:36]SAM_PROTO_GetFieldsCounters [09:44:36]wFMCommunicate request_size=4 [09:44:36]MH_SAM_APDU [09:44:36]CAPDU: 80 13 00 00 [09:44:36]Write to MH i2c: E2 08 00 61 0E 80 13 00 00 00 00 00 00 EB [09:44:36]Write i2c OK [09:44:36]MH_I2C_Read... [09:44:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:36]Read from MH i2c: E2 [09:44:36]MH_I2C_Read... [09:44:36]Read from MH i2c: E2 62 00 [09:44:36]MH_I2C_Read... [09:44:36]Read from MH i2c: E2 62 00 61 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 64 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [09:44: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 64 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:36]wFMCommunicate OK [09:44:36]SAM_PROTO_GetFieldsCounters done [09:44:36]requested_item shift.num is exist - process it [09:44:36]requested_item shift.opened is exist - process it [09:44:36]req_shift_opened [09:44:36]FM_GetShiftState [09:44:36]SAM_PROTO_GetShiftState [09:44:36]wFMCommunicate request_size=4 [09:44:36]MH_SAM_APDU [09:44:36]CAPDU: 80 13 01 00 [09:44:36]Write to MH i2c: E2 08 00 62 0E 80 13 01 00 00 00 00 00 ED [09:44:36]Write i2c OK [09:44:36]MH_I2C_Read... [09:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:36]Read from MH i2c: E2 [09:44:36]MH_I2C_Read... [09:44:36]Read from MH i2c: E2 0E 00 [09:44:36]MH_I2C_Read... [09:44:36]Read from MH i2c: E2 0E 00 62 0E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 6C [09:44:36]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:44:36]wFMCommunicate OK [09:44:36]SAM_PROTO_GetShiftState done [09:44:36]FM_GetShiftState done [09:44:36]req_shift_opened done [09:44:36]requested_item shift.open_date is exist - process it [09:44:36]req_shift_open_date [09:44:36]req_shift_open_date done [09:44:36]produce_requested_data done [09:44:36]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186980,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [09:44:36]process_action_free close_receipt [09:44:36]json_value_free [09:44:36]json_value_free done [09:44:36]process_json_proto returns [09:44:36]Send response to host [09:44:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186980,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [09:44:36]free response buf [09:44:36]execute_script done [09:44:36]execute_script returns [09:44:36]free content buf [09:44:36]Sock 7.Close socket [09:44:36]Sock 7.Thread stoped [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:46]accept exits with 10 [09:49:46]New connection [09:49:46]New thread 3067022692 created [09:49:46]Thread 3066879332 joined [09:49:46]Waiting for new connection... [09:49:46] Sock 10.Parse request [09:49:46]Sock 10.Check first char [09:49:46]Sock 10.First char is OK [09:49:46]request: POST /json_proto HTTP/1.0 [09:49:46]Method: POST [09:49:46]URL: /json_proto [09:49:46]Method is POST - this is cgi request [09:49:46]url: /json_proto [09:49:46]query_string will be loaded in cgi processing [09:49:46]execute_cgi json_proto POST (null) [09:49:46]execute_cgi path=json_proto method=POST [09:49:46]POST find Content-Length [09:49:46]Host: 172.17.46.131:8080 [09:49:46]Content-Length: 677 [09:49:46]Content-Type: application/json [09:49:46] [09:49:46]POST finish read [09:49:46]Found Content-Length = 677 [09:49:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412131", "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:49:46]execute_script... [09:49: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)412131", "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:49:46]POST & json_proto [09:49:46]process_json_proto [09:49:46]json parsed OK: [09:49:46]protocol is kg_v1.0 [09:49:46]action value=close_receipt [09:49:46]process_action close_receipt [09:49:46]cmd_close_receipt [09:49:46]MH_GetDate [09:49:46]Write to MH i2c: F0 00 00 63 0E 60 [09:49:46]Write i2c OK [09:49:46]MH_I2C_Read... [09:49:46]Read from MH i2c: F0 [09:49:46]MH_I2C_Read... [09:49:46]Read from MH i2c: F0 09 00 [09:49:46]MH_I2C_Read... [09:49:46]Read from MH i2c: F0 09 00 63 0E 00 3D A9 B5 67 7E 41 4F 65 DE [09:49:46]GetLastDocTimeStamp 1739958275 [09:49:46]current date 1739958589 [09:49:46]FM_GetShiftState [09:49:46]SAM_PROTO_GetShiftState [09:49:46]wFMCommunicate request_size=4 [09:49:46]MH_SAM_APDU [09:49:46]CAPDU: 80 13 01 00 [09:49:46]Write to MH i2c: E2 08 00 64 0E 80 13 01 00 00 00 00 00 EF [09:49:46]Write i2c OK [09:49:46]MH_I2C_Read... [09:49:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:46]Read from MH i2c: E2 [09:49:46]MH_I2C_Read... [09:49:46]Read from MH i2c: E2 0E 00 [09:49:46]MH_I2C_Read... [09:49:46]Read from MH i2c: E2 0E 00 64 0E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 6E [09:49:46]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:49:46]wFMCommunicate OK [09:49:46]SAM_PROTO_GetShiftState done [09:49:46]FM_GetShiftState done [09:49:46]opened in 1739929631 [09:49:46]opened+sec_in_day 1740016031 [09:49:46]quantity*price = 50011 [09:49:46]sum+1 = 50013 [09:49:46]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 СНО: Общий режим Чек 47 19.02.2025 09:49 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186981 ФПД: 122507028315013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T094949&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186981&fm=122507028315013&tin=02508201610067®Number=0000000000091857&sum=50000 [09:49:47]StoreToDocumentArchive [09:49:47]shift 647 fd 186981 [09:49:47]save to /storage/0647/doc_00186981 [09:49:47]save last doc name /storage/0647/doc_00186981 to /storage/kkm_last_doc_name [09:49:47]save OK [09:49:47]Clear old archive folders... [09:49:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:47]tlvbuf is 006044F0 [09:49:47]SAM_PROTO_ClearQueue [09:49:47]wFMCommunicate request_size=4 [09:49:47]MH_SAM_APDU [09:49:47]CAPDU: 80 09 00 00 [09:49:47]Write to MH i2c: E2 08 00 71 0E 80 09 00 00 00 00 00 00 F1 [09:49:47]Write i2c OK [09:49:47]MH_I2C_Read... [09:49:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:47]Read from MH i2c: E2 [09:49:47]MH_I2C_Read... [09:49:47]Read from MH i2c: E2 03 00 [09:49:47]MH_I2C_Read... [09:49:47]Read from MH i2c: E2 03 00 71 0E 00 90 00 F3 [09:49:47]RAPDU: 90 00 [09:49:47]wFMCommunicate OK [09:49:47]SAM_PROTO_ClearQueue done [09:49:47]KKMCreateOFDPacket [09:49:47]OFDProtocolAddRootSTLVToBuf [09:49:47]FM_MakeSignedData [09:49:47]FM_MakeSignedData [09:49:47]SAM_PROTO_SignData [09:49:47]wFMCommunicate request_size=4 [09:49:47]MH_SAM_APDU [09:49:47]CAPDU: 80 0D 01 02 [09:49:47]Write to MH i2c: E2 08 00 72 0E 80 0D 01 02 00 00 00 00 F9 [09:49:47]Write i2c OK [09:49:47]MH_I2C_Read... [09:49:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:47]Read from MH i2c: E2 [09:49:47]MH_I2C_Read... [09:49:47]Read from MH i2c: E2 03 00 [09:49:47]MH_I2C_Read... [09:49:47]Read from MH i2c: E2 03 00 72 0E 00 90 00 F4 [09:49:47]RAPDU: 90 00 [09:49:47]wFMCommunicate OK [09:49:47]wFMCommunicate request_size=255 [09:49:47]MH_SAM_APDU [09:49: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 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 2F 00 00 00 F4 03 04 00 3D A9 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 65 DA 02 00 35 04 06 00 6F [09:49:47]Write to MH i2c: E2 02 01 73 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 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 2F 00 00 00 F4 03 04 00 3D A9 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 65 DA 02 00 35 04 06 00 6F 00 00 FC [09:49:47]Write i2c OK [09:49:47]MH_I2C_Read... [09:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:48]Read from MH i2c: E2 [09:49:48]MH_I2C_Read... [09:49:48]Read from MH i2c: E2 03 00 [09:49:48]MH_I2C_Read... [09:49:48]Read from MH i2c: E2 03 00 73 0E 00 90 00 F5 [09:49:48]RAPDU: 90 00 [09:49:48]wFMCommunicate OK [09:49:48]wFMCommunicate request_size=10 [09:49:48]MH_SAM_APDU [09:49:48]CAPDU: 80 0D 02 02 05 6B 63 E7 BB 85 [09:49:48]Write to MH i2c: E2 0D 00 74 0E 80 0D 02 02 05 00 6B 63 E7 BB 85 00 00 FB [09:49:48]Write i2c OK [09:49:48]MH_I2C_Read... [09:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:48]Read from MH i2c: E2 [09:49:48]MH_I2C_Read... [09:49:48]Read from MH i2c: E2 03 00 [09:49:48]MH_I2C_Read... [09:49:48]Read from MH i2c: E2 03 00 74 0E 00 90 00 F6 [09:49:48]RAPDU: 90 00 [09:49:48]wFMCommunicate OK [09:49:48]wFMCommunicate request_size=4 [09:49:48]MH_SAM_APDU [09:49:48]CAPDU: 80 0D 03 02 [09:49:48]Write to MH i2c: E2 08 00 75 0E 80 0D 03 02 00 00 00 00 FE [09:49:48]Write i2c OK [09:49:48]MH_I2C_Read... [09:49:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:48]Read from MH i2c: E2 [09:49:48]MH_I2C_Read... [09:49:48]Read from MH i2c: E2 0B 00 [09:49:48]MH_I2C_Read... [09:49:48]Read from MH i2c: E2 0B 00 75 0E 00 6B BE BD 15 64 90 6E 85 90 00 E1 [09:49:48]RAPDU: 6B BE BD 15 64 90 6E 85 90 00 [09:49:48]wFMCommunicate OK [09:49:48]SAM_PROTO_SignData done [09:49:48]FM_MakeSignedData done [09:49:48]CreateOFDProtocolMessage [09:49:48]wFMCommunicate request_size=4 [09:49:48]MH_SAM_APDU [09:49:48]CAPDU: 80 11 00 00 [09:49:48]Write to MH i2c: E2 08 00 76 0E 80 11 00 00 00 00 00 00 FE [09:49:48]Write i2c OK [09:49:48]MH_I2C_Read... [09:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:48]Read from MH i2c: E2 [09:49:48]MH_I2C_Read... [09:49:48]Read from MH i2c: E2 17 00 [09:49:48]MH_I2C_Read... [09:49:48]Read from MH i2c: E2 17 00 76 0E 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:49: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:49:48]wFMCommunicate OK [09:49:48]CreateOFDProtocolMessage done [09:49:48]OFDSenderStorePacket 186981 [09:49:48]StoreOFDPacket docnum=186981 [09:49: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 38 2D 07 01 88 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2F 00 00 00 F4 03 04 00 3D A9 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 65 DA 02 00 35 04 06 00 6F 6B 63 E7 BB 85 6B BE BD 15 64 90 6E 85 [09:49:48]CheckFolder [09:49:48]dirname=/storage/ofd_packets [09:49:48]CheckFolder done [09:49:48]ProducePacketName [09:49:48]name=ofd_packets/00186981 [09:49:48]NVStorageSaveData ofd_packets/00186981 [09:49:48]File name is /storage/ofd_packets/00186981 [09:49:48]Write 301 bytes [09:49:48]NVStorageSaveData done [09:49:48]OFDSenderStorePacket done [09:49:48]KKMCreateOFDPacket done [09:49:48]NVStorageSaveData kkm_last_timestamp [09:49:48]File name is /storage/kkm_last_timestamp [09:49:48]Write 4 bytes [09:49:48]NVStorageSaveData done [09:49:48]ExternCall_PrintAddStr [09:49:48]wPrintStart [09:49:48]Write to MH i2c: 01 00 00 77 0E 85 [09:49:48]Write i2c OK [09:49:48]MH_I2C_Read... [09:49:48]Read from MH i2c: 01 [09:49:48]MH_I2C_Read... [09:49:48]Read from MH i2c: 01 07 00 [09:49:48]MH_I2C_Read... [09:49:48]Read from MH i2c: 01 07 00 77 0E 00 00 00 00 00 FF 0F 9A [09:49:48]RasterBufferAndPrint [09:49:48]line Счет N : (1)412131 [09:49:48]line ИНН: 02508201610067 [09:49:48]line Контрольно-Кассовый Чек [09:49:48]line ПРОДАЖА [09:49:48]line ТРК (МРК, ГНК) : 12 [09:49:48]line Товар: 2710124130 [09:49:48]line Аи-92-К-2 [09:49:48]line 7.790 * 64.20 [09:49:48]line = 500.12 [09:49:48]line НДС 12% НСП 1% [09:49:48]line > о реализуемом товаре [09:49:48]line ОКРУГЛЕНИЕ: -0.12 [09:49:48]line ИТОГО: 500.00 [09:49:48]line Внесено: 500.00 [09:49:48]line СДАЧА: 0.00 [09:49:48]line НСП 1% : 4.43 [09:49:48]line НДС 12% : 53.11 [09:49:48]line Наличными: 500.00 [09:49:48]line Безнал.: 0.00 [09:49:48]line Место: АЗС № 92 "Партнер Нефть" [09:49:48]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:49:48]line СНО: Общий режим [09:49:48]line Чек 47 19.02.2025 09:49 [09:49:48]line Смена: 647 ФФД: 1.0 [09:49:48]line ЗНМ: 0300000118 [09:49:48]line РНМ: 0000000000091857 [09:49:48]line Версия ККМ: 001 [09:49:48]line ФМ: 0000000000871826 [09:49:48]line ФД: 186981 [09:49:48]line ФПД: 122507028315013 [09:49:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T094949&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186981&fm=122507028315013&tin=02508201610067®Number=0000000000091857&sum=50000 [09:49:48]written 0, free lines is 4095 [09:49:48]OFD Sender: Processing packet 186981 [packets to send 49, broken 48] [09:49:48]ProducePacketName [09:49:48]name=ofd_packets/00186981 [09:49:48]OFD Sender: To server: pG, [09:49:48]CommunicateWithHost lk.salyk.kg:30040 [09:49:48]ConnectInit lk.salyk.kg [09:49:48]Connected sock=9 [09:49: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 38 2D 07 01 88 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2F 00 00 00 F4 03 04 00 3D A9 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 65 DA 02 00 35 04 06 00 6F 6B 63 E7 BB 85 6B BE BD 15 64 90 6E 85 [09:49: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 87 9E 47 00 6A AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 65 DA 02 00 F4 03 04 00 91 4F B5 67 B6 04 01 00 00 0D 7D 5F 2B 3A 34 B2 13 [09:49:49]CommunicateWithHost err = 0 [09:49:49]CheckOFDResponse [09:49:49]1017 (14) - 77093643461234 [09:49:49]1041 (16) - 0000000000871826 [09:49:49]1040 (4) - 186981 [09:49:49]1012 (4) - 19.02.2025 03:27 [09:49:49]1206 (1) - 0 [09:49:49]OFD Sender: Remove packet 186981 [09:49:49]ProducePacketName [09:49:49]name=ofd_packets/00186981 [09:49:49]NVStorageDeleteData [09:49:49]Write to MH i2c: 01 00 00 A2 0E B0 [09:49:49]Write i2c OK [09:49:49]MH_I2C_Read... [09:49:49]Read from MH i2c: 01 [09:49:49]MH_I2C_Read... [09:49:49]Read from MH i2c: 01 07 00 [09:49:49]MH_I2C_Read... [09:49:49]Read from MH i2c: 01 07 00 A2 0E 00 00 00 00 00 ED 0C B0 [09:49:49]RasterBufferAndPrint [09:49:49]line [09:49:49]line [09:49:49]line [09:49:49]line [09:49:49]line [09:49:49]written 0, free lines is 3315 [09:49:49]MH_Cut [09:49:49]Write to MH i2c: D1 01 00 A9 0E 01 89 [09:49:49]Write i2c OK [09:49:49]MH_I2C_Read... [09:49:49]Read from MH i2c: D1 [09:49:49]MH_I2C_Read... [09:49:49]Read from MH i2c: D1 01 00 [09:49:49]MH_I2C_Read... [09:49:49]Read from MH i2c: D1 01 00 A9 0E 00 88 [09:49:49]Write to MH i2c: 01 00 00 AA 0E B8 [09:49:49]Write i2c OK [09:49:49]MH_I2C_Read... [09:49:49]OFD Sender: No OFD packet to send [09:49:49]*** Cut start [09:49:49]*** Partial cut [09:49:49]*** CUTSNS_PIN = 1 [09:49:49]*** CUTSNS_PIN = 0 [09:49:50]*** Brake cut motor [09:49:50]Read from MH i2c: 01 [09:49:50]MH_I2C_Read... [09:49:50]*** Stop cut motor [09:49:50]*** Cut end [09:49:50]Read from MH i2c: 01 07 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: 01 07 00 AA 0E 00 00 00 00 00 FF 0F CD [09:49:50]process_action close_receipt done [09:49:50]requested_data is exist [09:49:50]produce_requested_data [09:49:50]requested_item fm.sn is exist - process it [09:49:50]wFMCommunicate request_size=4 [09:49:50]MH_SAM_APDU [09:49:50]CAPDU: 80 11 00 00 [09:49:50]Write to MH i2c: E2 08 00 AB 0E 80 11 00 00 00 00 00 00 33 [09:49:50]Write i2c OK [09:49:50]MH_I2C_Read... [09:49:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:50]Read from MH i2c: E2 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 17 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 17 00 AB 0E 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:49: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:49:50]wFMCommunicate OK [09:49:50]requested_item fd.num is exist - process it [09:49:50]SAM_PROTO_GetFieldsCounters [09:49:50]wFMCommunicate request_size=4 [09:49:50]MH_SAM_APDU [09:49:50]CAPDU: 80 13 00 00 [09:49:50]Write to MH i2c: E2 08 00 AC 0E 80 13 00 00 00 00 00 00 36 [09:49:50]Write i2c OK [09:49:50]MH_I2C_Read... [09:49:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:50]Read from MH i2c: E2 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 62 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 62 00 AC 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 65 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [09:49: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 65 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:50]wFMCommunicate OK [09:49:50]SAM_PROTO_GetFieldsCounters done [09:49:50]requested_item shift.num is exist - process it [09:49:50]requested_item shift.opened is exist - process it [09:49:50]req_shift_opened [09:49:50]FM_GetShiftState [09:49:50]SAM_PROTO_GetShiftState [09:49:50]wFMCommunicate request_size=4 [09:49:50]MH_SAM_APDU [09:49:50]CAPDU: 80 13 01 00 [09:49:50]Write to MH i2c: E2 08 00 AD 0E 80 13 01 00 00 00 00 00 38 [09:49:50]Write i2c OK [09:49:50]MH_I2C_Read... [09:49:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:50]Read from MH i2c: E2 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 0E 00 [09:49:50]MH_I2C_Read... [09:49:50]Read from MH i2c: E2 0E 00 AD 0E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 B7 [09:49:50]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:49:50]wFMCommunicate OK [09:49:50]SAM_PROTO_GetShiftState done [09:49:50]FM_GetShiftState done [09:49:50]req_shift_opened done [09:49:50]requested_item shift.open_date is exist - process it [09:49:50]req_shift_open_date [09:49:50]req_shift_open_date done [09:49:50]produce_requested_data done [09:49:50]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186981,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [09:49:50]process_action_free close_receipt [09:49:50]json_value_free [09:49:50]json_value_free done [09:49:50]process_json_proto returns [09:49:50]Send response to host [09:49:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186981,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [09:49:50]free response buf [09:49:50]execute_script done [09:49:50]execute_script returns [09:49:50]free content buf [09:49:50]Sock 10.Close socket [09:49:50]Sock 10.Thread stoped [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:22]accept exits with 7 [09:51:22]New connection [09:51:22]New thread 3066879332 created [09:51:22]Thread 3067022692 joined [09:51:22]Waiting for new connection... [09:51:22] Sock 7.Parse request [09:51:22]Sock 7.Check first char [09:51:22]Sock 7.First char is OK [09:51:22]request: POST /json_proto HTTP/1.0 [09:51:22]Method: POST [09:51:22]URL: /json_proto [09:51:22]Method is POST - this is cgi request [09:51:22]url: /json_proto [09:51:22]query_string will be loaded in cgi processing [09:51:22]execute_cgi json_proto POST (null) [09:51:22]execute_cgi path=json_proto method=POST [09:51:22]POST find Content-Length [09:51:22]Host: 172.17.46.131:8080 [09:51:22]Content-Length: 677 [09:51:22]Content-Type: application/json [09:51:22] [09:51:22]POST finish read [09:51:22]Found Content-Length = 677 [09:51:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412133", "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" ] } } [09:51:22]execute_script... [09:51:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412133", "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" ] } } [09:51:22]POST & json_proto [09:51:22]process_json_proto [09:51:22]json parsed OK: [09:51:22]protocol is kg_v1.0 [09:51:22]action value=close_receipt [09:51:22]process_action close_receipt [09:51:22]cmd_close_receipt [09:51:22]MH_GetDate [09:51:22]Write to MH i2c: F0 00 00 AE 0E AB [09:51:22]Write i2c OK [09:51:22]MH_I2C_Read... [09:51:22]Read from MH i2c: F0 [09:51:22]MH_I2C_Read... [09:51:22]Read from MH i2c: F0 09 00 [09:51:22]MH_I2C_Read... [09:51:22]Read from MH i2c: F0 09 00 AE 0E 00 9D A9 B5 67 7E 41 4F 65 89 [09:51:22]GetLastDocTimeStamp 1739958589 [09:51:22]current date 1739958685 [09:51:22]FM_GetShiftState [09:51:22]SAM_PROTO_GetShiftState [09:51:22]wFMCommunicate request_size=4 [09:51:22]MH_SAM_APDU [09:51:22]CAPDU: 80 13 01 00 [09:51:22]Write to MH i2c: E2 08 00 AF 0E 80 13 01 00 00 00 00 00 3A [09:51:22]Write i2c OK [09:51:22]MH_I2C_Read... [09:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:22]Read from MH i2c: E2 [09:51:22]MH_I2C_Read... [09:51:22]Read from MH i2c: E2 0E 00 [09:51:22]MH_I2C_Read... [09:51:22]Read from MH i2c: E2 0E 00 AF 0E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 B9 [09:51:22]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:51:22]wFMCommunicate OK [09:51:22]SAM_PROTO_GetShiftState done [09:51:22]FM_GetShiftState done [09:51:22]opened in 1739929631 [09:51:22]opened+sec_in_day 1740016031 [09:51:22]quantity*price = 50011 [09:51:22]sum+1 = 50013 [09:51:22]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 СНО: Общий режим Чек 48 19.02.2025 09:51 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186982 ФПД: 73920364544545 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T095125&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186982&fm=73920364544545&tin=02508201610067®Number=0000000000091857&sum=50000 [09:51:24]StoreToDocumentArchive [09:51:24]shift 647 fd 186982 [09:51:24]save to /storage/0647/doc_00186982 [09:51:24]save last doc name /storage/0647/doc_00186982 to /storage/kkm_last_doc_name [09:51:24]save OK [09:51:24]Clear old archive folders... [09:51:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:24]tlvbuf is 005D9000 [09:51:24]SAM_PROTO_ClearQueue [09:51:24]wFMCommunicate request_size=4 [09:51:24]MH_SAM_APDU [09:51:24]CAPDU: 80 09 00 00 [09:51:24]Write to MH i2c: E2 08 00 BC 0E 80 09 00 00 00 00 00 00 3C [09:51:24]Write i2c OK [09:51:24]MH_I2C_Read... [09:51:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:24]Read from MH i2c: E2 [09:51:24]MH_I2C_Read... [09:51:24]Read from MH i2c: E2 03 00 [09:51:24]MH_I2C_Read... [09:51:24]Read from MH i2c: E2 03 00 BC 0E 00 90 00 3E [09:51:24]RAPDU: 90 00 [09:51:24]wFMCommunicate OK [09:51:24]SAM_PROTO_ClearQueue done [09:51:24]KKMCreateOFDPacket [09:51:24]OFDProtocolAddRootSTLVToBuf [09:51:24]FM_MakeSignedData [09:51:24]FM_MakeSignedData [09:51:24]SAM_PROTO_SignData [09:51:24]wFMCommunicate request_size=4 [09:51:24]MH_SAM_APDU [09:51:24]CAPDU: 80 0D 01 02 [09:51:24]Write to MH i2c: E2 08 00 BD 0E 80 0D 01 02 00 00 00 00 44 [09:51:24]Write i2c OK [09:51:24]MH_I2C_Read... [09:51:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:24]Read from MH i2c: E2 [09:51:24]MH_I2C_Read... [09:51:24]Read from MH i2c: E2 03 00 [09:51:24]MH_I2C_Read... [09:51:24]Read from MH i2c: E2 03 00 BD 0E 00 90 00 3F [09:51:24]RAPDU: 90 00 [09:51:24]wFMCommunicate OK [09:51:24]wFMCommunicate request_size=255 [09:51:24]MH_SAM_APDU [09:51:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 30 00 00 00 F4 03 04 00 9D A9 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 66 DA 02 00 35 04 06 00 43 [09:51:24]Write to MH i2c: E2 02 01 BE 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 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 30 00 00 00 F4 03 04 00 9D A9 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 66 DA 02 00 35 04 06 00 43 00 00 7D [09:51:24]Write i2c OK [09:51:24]MH_I2C_Read... [09:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:24]Read from MH i2c: E2 [09:51:24]MH_I2C_Read... [09:51:24]Read from MH i2c: E2 03 00 [09:51:24]MH_I2C_Read... [09:51:24]Read from MH i2c: E2 03 00 BE 0E 00 90 00 40 [09:51:24]RAPDU: 90 00 [09:51:24]wFMCommunicate OK [09:51:24]wFMCommunicate request_size=10 [09:51:24]MH_SAM_APDU [09:51:24]CAPDU: 80 0D 02 02 05 3A ED 12 02 21 [09:51:24]Write to MH i2c: E2 0D 00 BF 0E 80 0D 02 02 05 00 3A ED 12 02 21 00 00 AD [09:51:24]Write i2c OK [09:51:24]MH_I2C_Read... [09:51:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:24]Read from MH i2c: E2 [09:51:24]MH_I2C_Read... [09:51:24]Read from MH i2c: E2 03 00 [09:51:24]MH_I2C_Read... [09:51:24]Read from MH i2c: E2 03 00 BF 0E 00 90 00 41 [09:51:24]RAPDU: 90 00 [09:51:24]wFMCommunicate OK [09:51:24]wFMCommunicate request_size=4 [09:51:24]MH_SAM_APDU [09:51:24]CAPDU: 80 0D 03 02 [09:51:24]Write to MH i2c: E2 08 00 C0 0E 80 0D 03 02 00 00 00 00 49 [09:51:24]Write i2c OK [09:51:24]MH_I2C_Read... [09:51:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:24]Read from MH i2c: E2 [09:51:24]MH_I2C_Read... [09:51:24]Read from MH i2c: E2 0B 00 [09:51:24]MH_I2C_Read... [09:51:24]Read from MH i2c: E2 0B 00 C0 0E 00 E8 33 10 14 66 E5 E2 F9 90 00 AF [09:51:24]RAPDU: E8 33 10 14 66 E5 E2 F9 90 00 [09:51:24]wFMCommunicate OK [09:51:24]SAM_PROTO_SignData done [09:51:24]FM_MakeSignedData done [09:51:24]CreateOFDProtocolMessage [09:51:24]wFMCommunicate request_size=4 [09:51:24]MH_SAM_APDU [09:51:24]CAPDU: 80 11 00 00 [09:51:24]Write to MH i2c: E2 08 00 C1 0E 80 11 00 00 00 00 00 00 49 [09:51:24]Write i2c OK [09:51:24]MH_I2C_Read... [09:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:24]Read from MH i2c: E2 [09:51:24]MH_I2C_Read... [09:51:24]Read from MH i2c: E2 17 00 [09:51:24]MH_I2C_Read... [09:51:24]Read from MH i2c: E2 17 00 C1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9C [09:51: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:51:24]wFMCommunicate OK [09:51:24]CreateOFDProtocolMessage done [09:51:24]OFDSenderStorePacket 186982 [09:51:24]StoreOFDPacket docnum=186982 [09:51: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 82 F4 07 01 5D 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 30 00 00 00 F4 03 04 00 9D A9 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 66 DA 02 00 35 04 06 00 43 3A ED 12 02 21 E8 33 10 14 66 E5 E2 F9 [09:51:24]CheckFolder [09:51:24]dirname=/storage/ofd_packets [09:51:24]CheckFolder done [09:51:24]ProducePacketName [09:51:24]name=ofd_packets/00186982 [09:51:24]NVStorageSaveData ofd_packets/00186982 [09:51:24]File name is /storage/ofd_packets/00186982 [09:51:24]Write 301 bytes [09:51:24]NVStorageSaveData done [09:51:24]OFDSenderStorePacket done [09:51:24]KKMCreateOFDPacket done [09:51:24]NVStorageSaveData kkm_last_timestamp [09:51:24]File name is /storage/kkm_last_timestamp [09:51:24]Write 4 bytes [09:51:24]NVStorageSaveData done [09:51:24]ExternCall_PrintAddStr [09:51:24]wPrintStart [09:51:24]Write to MH i2c: 01 00 00 C2 0E D0 [09:51:24]Write i2c OK [09:51:24]MH_I2C_Read... [09:51:24]Read from MH i2c: 01 [09:51:24]MH_I2C_Read... [09:51:24]Read from MH i2c: 01 07 00 [09:51:24]MH_I2C_Read... [09:51:24]Read from MH i2c: 01 07 00 C2 0E 00 00 00 00 00 FF 0F E5 [09:51:24]RasterBufferAndPrint [09:51:24]line Счет N : (1)412133 [09:51:24]line ИНН: 02508201610067 [09:51:24]line Контрольно-Кассовый Чек [09:51:24]line ПРОДАЖА [09:51:24]line ТРК (МРК, ГНК) : 22 [09:51:24]line Товар: 2710124130 [09:51:24]line Аи-92-К-2 [09:51:24]line 7.790 * 64.20 [09:51:24]line = 500.12 [09:51:24]line НДС 12% НСП 1% [09:51:24]line > о реализуемом товаре [09:51:24]line ОКРУГЛЕНИЕ: -0.12 [09:51:24]line ИТОГО: 500.00 [09:51:24]line Внесено: 500.00 [09:51:24]line СДАЧА: 0.00 [09:51:24]line НСП 1% : 4.43 [09:51:24]line НДС 12% : 53.11 [09:51:24]line Наличными: 500.00 [09:51:24]line Безнал.: 0.00 [09:51:24]line Место: АЗС № 92 "Партнер Нефть" [09:51:24]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:51:24]line СНО: Общий режим [09:51:24]line Чек 48 19.02.2025 09:51 [09:51:24]line Смена: 647 ФФД: 1.0 [09:51:24]line ЗНМ: 0300000118 [09:51:24]line РНМ: 0000000000091857 [09:51:24]line Версия ККМ: 001 [09:51:24]line ФМ: 0000000000871826 [09:51:24]line ФД: 186982 [09:51:24]line ФПД: 73920364544545 [09:51:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T095125&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186982&fm=73920364544545&tin=02508201610067®Number=0000000000091857&sum=50000 [09:51:24]written 0, free lines is 4095 [09:51:24]OFD Sender: Processing packet 186982 [packets to send 49, broken 48] [09:51:24]ProducePacketName [09:51:24]name=ofd_packets/00186982 [09:51:24]OFD Sender: To server: pG, [09:51:24]CommunicateWithHost lk.salyk.kg:30040 [09:51:24]ConnectInit lk.salyk.kg [09:51:24]Connected sock=10 [09:51: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 82 F4 07 01 5D 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 30 00 00 00 F4 03 04 00 9D A9 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 66 DA 02 00 35 04 06 00 43 3A ED 12 02 21 E8 33 10 14 66 E5 E2 F9 [09:51: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 60 C2 47 00 3C 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 66 DA 02 00 F4 03 04 00 F1 4F B5 67 B6 04 01 00 00 0D 0B 9B DB D7 69 F3 30 [09:51:24]CommunicateWithHost err = 0 [09:51:24]CheckOFDResponse [09:51:24]1017 (14) - 77093643461234 [09:51:24]1041 (16) - 0000000000871826 [09:51:24]1040 (4) - 186982 [09:51:24]1012 (4) - 19.02.2025 03:28 [09:51:24]1206 (1) - 0 [09:51:24]OFD Sender: Remove packet 186982 [09:51:24]ProducePacketName [09:51:24]name=ofd_packets/00186982 [09:51:24]NVStorageDeleteData [09:51:25]Write to MH i2c: 01 00 00 ED 0E FB [09:51:25]Write i2c OK [09:51:25]MH_I2C_Read... [09:51:25]Read from MH i2c: 01 [09:51:25]MH_I2C_Read... [09:51:25]Read from MH i2c: 01 07 00 [09:51:25]MH_I2C_Read... [09:51:25]Read from MH i2c: 01 07 00 ED 0E 00 00 00 00 00 F4 0C 02 [09:51:25]RasterBufferAndPrint [09:51:25]line [09:51:25]line [09:51:25]line [09:51:25]line [09:51:25]line [09:51:25]written 0, free lines is 3322 [09:51:25]MH_Cut [09:51:25]Write to MH i2c: D1 01 00 F4 0E 01 D4 [09:51:25]Write i2c OK [09:51:25]MH_I2C_Read... [09:51:25]Read from MH i2c: D1 [09:51:25]MH_I2C_Read... [09:51:25]Read from MH i2c: D1 01 00 [09:51:25]MH_I2C_Read... [09:51:25]Read from MH i2c: D1 01 00 F4 0E 00 D3 [09:51:25]Write to MH i2c: 01 00 00 F5 0E 03 [09:51:25]Write i2c OK [09:51:25]MH_I2C_Read... [09:51:25]OFD Sender: No OFD packet to send [09:51:25]*** Cut start [09:51:25]*** Partial cut [09:51:25]*** CUTSNS_PIN = 1 [09:51:25]*** CUTSNS_PIN = 0 [09:51:26]*** Brake cut motor [09:51:26]Read from MH i2c: 01 [09:51:26]MH_I2C_Read... [09:51:26]*** Stop cut motor [09:51:26]*** Cut end [09:51:26]Read from MH i2c: 01 07 00 [09:51:26]MH_I2C_Read... [09:51:26]Read from MH i2c: 01 07 00 F5 0E 00 00 00 00 00 FF 0F 18 [09:51:26]process_action close_receipt done [09:51:26]requested_data is exist [09:51:26]produce_requested_data [09:51:26]requested_item fm.sn is exist - process it [09:51:26]wFMCommunicate request_size=4 [09:51:26]MH_SAM_APDU [09:51:26]CAPDU: 80 11 00 00 [09:51:26]Write to MH i2c: E2 08 00 F6 0E 80 11 00 00 00 00 00 00 7E [09:51:26]Write i2c OK [09:51:26]MH_I2C_Read... [09:51:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:26]Read from MH i2c: E2 [09:51:26]MH_I2C_Read... [09:51:26]Read from MH i2c: E2 17 00 [09:51:26]MH_I2C_Read... [09:51:26]Read from MH i2c: E2 17 00 F6 0E 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:51: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:51:26]wFMCommunicate OK [09:51:26]requested_item fd.num is exist - process it [09:51:26]SAM_PROTO_GetFieldsCounters [09:51:26]wFMCommunicate request_size=4 [09:51:26]MH_SAM_APDU [09:51:26]CAPDU: 80 13 00 00 [09:51:26]Write to MH i2c: E2 08 00 F7 0E 80 13 00 00 00 00 00 00 81 [09:51:26]Write i2c OK [09:51:26]MH_I2C_Read... [09:51:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:26]Read from MH i2c: E2 [09:51:26]MH_I2C_Read... [09:51:26]Read from MH i2c: E2 62 00 [09:51:26]MH_I2C_Read... [09:51:26]Read from MH i2c: E2 62 00 F7 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 66 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [09:51: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 66 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:26]wFMCommunicate OK [09:51:26]SAM_PROTO_GetFieldsCounters done [09:51:26]requested_item shift.num is exist - process it [09:51:26]requested_item shift.opened is exist - process it [09:51:26]req_shift_opened [09:51:26]FM_GetShiftState [09:51:26]SAM_PROTO_GetShiftState [09:51:26]wFMCommunicate request_size=4 [09:51:26]MH_SAM_APDU [09:51:26]CAPDU: 80 13 01 00 [09:51:26]Write to MH i2c: E2 08 00 F8 0E 80 13 01 00 00 00 00 00 83 [09:51:26]Write i2c OK [09:51:26]MH_I2C_Read... [09:51:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:26]Read from MH i2c: E2 [09:51:26]MH_I2C_Read... [09:51:26]Read from MH i2c: E2 0E 00 [09:51:26]MH_I2C_Read... [09:51:26]Read from MH i2c: E2 0E 00 F8 0E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 02 [09:51:26]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:51:26]wFMCommunicate OK [09:51:26]SAM_PROTO_GetShiftState done [09:51:26]FM_GetShiftState done [09:51:26]req_shift_opened done [09:51:26]requested_item shift.open_date is exist - process it [09:51:26]req_shift_open_date [09:51:26]req_shift_open_date done [09:51:26]produce_requested_data done [09:51:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186982,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [09:51:26]process_action_free close_receipt [09:51:26]json_value_free [09:51:26]json_value_free done [09:51:26]process_json_proto returns [09:51:26]Send response to host [09:51:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186982,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [09:51:26]free response buf [09:51:26]execute_script done [09:51:26]execute_script returns [09:51:26]free content buf [09:51:26]Sock 7.Close socket [09:51:26]Sock 7.Thread stoped [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:48]accept exits with 9 [09:52:48]New connection [09:52:48]New thread 3067022692 created [09:52:48]Thread 3066879332 joined [09:52:48]Waiting for new connection... [09:52:48] Sock 9.Parse request [09:52:48]Sock 9.Check first char [09:52:48]Sock 9.First char is OK [09:52:48]request: POST /json_proto HTTP/1.0 [09:52:48]Method: POST [09:52:48]URL: /json_proto [09:52:48]Method is POST - this is cgi request [09:52:48]url: /json_proto [09:52:48]query_string will be loaded in cgi processing [09:52:48]execute_cgi json_proto POST (null) [09:52:48]execute_cgi path=json_proto method=POST [09:52:48]POST find Content-Length [09:52:48]Host: 172.17.46.131:8080 [09:52:48]Content-Length: 682 [09:52:48]Content-Type: application/json [09:52:48] [09:52:48]POST finish read [09:52:48]Found Content-Length = 682 [09:52:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412132", "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" : 48.680, "sum" : 3500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:48]execute_script... [09:52: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)412132", "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" : 48.680, "sum" : 3500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:52:48]POST & json_proto [09:52:48]process_json_proto [09:52:48]json parsed OK: [09:52:48]protocol is kg_v1.0 [09:52:48]action value=close_receipt [09:52:48]process_action close_receipt [09:52:48]cmd_close_receipt [09:52:48]MH_GetDate [09:52:48]Write to MH i2c: F0 00 00 F9 0E F6 [09:52:48]Write i2c OK [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: F0 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: F0 09 00 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: F0 09 00 F9 0E 00 F3 A9 B5 67 7E 41 4F 65 2A [09:52:48]GetLastDocTimeStamp 1739958685 [09:52:48]current date 1739958771 [09:52:48]FM_GetShiftState [09:52:48]SAM_PROTO_GetShiftState [09:52:48]wFMCommunicate request_size=4 [09:52:48]MH_SAM_APDU [09:52:48]CAPDU: 80 13 01 00 [09:52:48]Write to MH i2c: E2 08 00 FA 0E 80 13 01 00 00 00 00 00 85 [09:52:48]Write i2c OK [09:52:48]MH_I2C_Read... [09:52:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:48]Read from MH i2c: E2 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 0E 00 [09:52:48]MH_I2C_Read... [09:52:48]Read from MH i2c: E2 0E 00 FA 0E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 04 [09:52:48]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:52:48]wFMCommunicate OK [09:52:48]SAM_PROTO_GetShiftState done [09:52:48]FM_GetShiftState done [09:52:48]opened in 1739929631 [09:52:48]opened+sec_in_day 1740016031 [09:52:48]quantity*price = 350009 [09:52:48]sum+1 = 350010 [09:52:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.97 НДС 12% : 371.69 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 49 19.02.2025 09:52 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186983 ФПД: 223223551209723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T095251&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186983&fm=223223551209723&tin=02508201610067®Number=0000000000091857&sum=350000 [09:52:49]StoreToDocumentArchive [09:52:49]shift 647 fd 186983 [09:52:49]save to /storage/0647/doc_00186983 [09:52:49]save last doc name /storage/0647/doc_00186983 to /storage/kkm_last_doc_name [09:52:49]save OK [09:52:49]Clear old archive folders... [09:52:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:49]tlvbuf is 005D56A0 [09:52:49]SAM_PROTO_ClearQueue [09:52:49]wFMCommunicate request_size=4 [09:52:49]MH_SAM_APDU [09:52:49]CAPDU: 80 09 00 00 [09:52:49]Write to MH i2c: E2 08 00 07 0F 80 09 00 00 00 00 00 00 88 [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 [09:52:49]MH_I2C_Read... [09:52:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:49]Read from MH i2c: E2 03 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 03 00 07 0F 00 90 00 8A [09:52:49]RAPDU: 90 00 [09:52:49]wFMCommunicate OK [09:52:49]SAM_PROTO_ClearQueue done [09:52:49]KKMCreateOFDPacket [09:52:49]OFDProtocolAddRootSTLVToBuf [09:52:49]FM_MakeSignedData [09:52:49]FM_MakeSignedData [09:52:49]SAM_PROTO_SignData [09:52:49]wFMCommunicate request_size=4 [09:52:49]MH_SAM_APDU [09:52:49]CAPDU: 80 0D 01 02 [09:52:49]Write to MH i2c: E2 08 00 08 0F 80 0D 01 02 00 00 00 00 90 [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:49]Read from MH i2c: E2 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 03 00 [09:52:49]MH_I2C_Read... [09:52:49]Read from MH i2c: E2 03 00 08 0F 00 90 00 8B [09:52:49]RAPDU: 90 00 [09:52:49]wFMCommunicate OK [09:52:49]wFMCommunicate request_size=255 [09:52:49]MH_SAM_APDU [09:52: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 28 BE 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 39 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 91 00 00 00 00 07 04 06 00 30 57 05 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 F3 A9 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 67 DA 02 00 35 04 06 00 CB [09:52:49]Write to MH i2c: E2 02 01 09 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 28 BE 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 39 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 91 00 00 00 00 07 04 06 00 30 57 05 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 F3 A9 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 67 DA 02 00 35 04 06 00 CB 00 00 CF [09:52:49]Write i2c OK [09:52:49]MH_I2C_Read... [09:52:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:50]Read from MH i2c: E2 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: E2 03 00 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: E2 03 00 09 0F 00 90 00 8C [09:52:50]RAPDU: 90 00 [09:52:50]wFMCommunicate OK [09:52:50]wFMCommunicate request_size=10 [09:52:50]MH_SAM_APDU [09:52:50]CAPDU: 80 0D 02 02 05 05 48 79 B0 FB [09:52:50]Write to MH i2c: E2 0D 00 0A 0F 80 0D 02 02 05 00 05 48 79 B0 FB 00 00 0E [09:52:50]Write i2c OK [09:52:50]MH_I2C_Read... [09:52:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:50]Read from MH i2c: E2 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: E2 03 00 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: E2 03 00 0A 0F 00 90 00 8D [09:52:50]RAPDU: 90 00 [09:52:50]wFMCommunicate OK [09:52:50]wFMCommunicate request_size=4 [09:52:50]MH_SAM_APDU [09:52:50]CAPDU: 80 0D 03 02 [09:52:50]Write to MH i2c: E2 08 00 0B 0F 80 0D 03 02 00 00 00 00 95 [09:52:50]Write i2c OK [09:52:50]MH_I2C_Read... [09:52:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:50]Read from MH i2c: E2 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: E2 0B 00 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: E2 0B 00 0B 0F 00 BC 3B 0F 08 39 5A 8A 68 90 00 29 [09:52:50]RAPDU: BC 3B 0F 08 39 5A 8A 68 90 00 [09:52:50]wFMCommunicate OK [09:52:50]SAM_PROTO_SignData done [09:52:50]FM_MakeSignedData done [09:52:50]CreateOFDProtocolMessage [09:52:50]wFMCommunicate request_size=4 [09:52:50]MH_SAM_APDU [09:52:50]CAPDU: 80 11 00 00 [09:52:50]Write to MH i2c: E2 08 00 0C 0F 80 11 00 00 00 00 00 00 95 [09:52:50]Write i2c OK [09:52:50]MH_I2C_Read... [09:52:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:50]Read from MH i2c: E2 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: E2 17 00 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: E2 17 00 0C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E8 [09:52: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:52:50]wFMCommunicate OK [09:52:50]CreateOFDProtocolMessage done [09:52:50]OFDSenderStorePacket 186983 [09:52:50]StoreOFDPacket docnum=186983 [09:52: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 D9 36 07 01 22 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 28 BE 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 39 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 91 00 00 00 00 07 04 06 00 30 57 05 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 F3 A9 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 67 DA 02 00 35 04 06 00 CB 05 48 79 B0 FB BC 3B 0F 08 39 5A 8A 68 [09:52:50]CheckFolder [09:52:50]dirname=/storage/ofd_packets [09:52:50]CheckFolder done [09:52:50]ProducePacketName [09:52:50]name=ofd_packets/00186983 [09:52:50]NVStorageSaveData ofd_packets/00186983 [09:52:50]File name is /storage/ofd_packets/00186983 [09:52:50]Write 301 bytes [09:52:50]NVStorageSaveData done [09:52:50]OFDSenderStorePacket done [09:52:50]KKMCreateOFDPacket done [09:52:50]NVStorageSaveData kkm_last_timestamp [09:52:50]File name is /storage/kkm_last_timestamp [09:52:50]Write 4 bytes [09:52:50]NVStorageSaveData done [09:52:50]ExternCall_PrintAddStr [09:52:50]wPrintStart [09:52:50]Write to MH i2c: 01 00 00 0D 0F 1C [09:52:50]Write i2c OK [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: 01 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: 01 07 00 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: 01 07 00 0D 0F 00 00 00 00 00 FF 0F 31 [09:52:50]RasterBufferAndPrint [09:52:50]line Счет N : (1)412132 [09:52:50]line ИНН: 02508201610067 [09:52:50]line Контрольно-Кассовый Чек [09:52:50]line ПРОДАЖА [09:52:50]line ТРК (МРК, ГНК) : 43 [09:52:50]line Товар: 2710124500 [09:52:50]line Аи-95-К-5 [09:52:50]line 48.680 * 71.90 [09:52:50]line = 3500.09 [09:52:50]line НДС 12% НСП 1% [09:52:50]line > о реализуемом товаре [09:52:50]line ОКРУГЛЕНИЕ: -0.09 [09:52:50]line ИТОГО: 3500.00 [09:52:50]line Внесено: 3500.00 [09:52:50]line СДАЧА: 0.00 [09:52:50]line НСП 1% : 30.97 [09:52:50]line НДС 12% : 371.69 [09:52:50]line Наличными: 3500.00 [09:52:50]line Безнал.: 0.00 [09:52:50]line Место: АЗС № 92 "Партнер Нефть" [09:52:50]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:52:50]line СНО: Общий режим [09:52:50]line Чек 49 19.02.2025 09:52 [09:52:50]line Смена: 647 ФФД: 1.0 [09:52:50]line ЗНМ: 0300000118 [09:52:50]line РНМ: 0000000000091857 [09:52:50]line Версия ККМ: 001 [09:52:50]line ФМ: 0000000000871826 [09:52:50]line ФД: 186983 [09:52:50]line ФПД: 223223551209723 [09:52:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T095251&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186983&fm=223223551209723&tin=02508201610067®Number=0000000000091857&sum=350000 [09:52:50]written 0, free lines is 4095 [09:52:50]OFD Sender: Processing packet 186983 [packets to send 49, broken 48] [09:52:50]ProducePacketName [09:52:50]name=ofd_packets/00186983 [09:52:50]OFD Sender: To server: pG, [09:52:50]CommunicateWithHost lk.salyk.kg:30040 [09:52:50]ConnectInit lk.salyk.kg [09:52:50]Connected sock=10 [09:52: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 D9 36 07 01 22 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 28 BE 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 39 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 91 00 00 00 00 07 04 06 00 30 57 05 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 F3 A9 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 67 DA 02 00 35 04 06 00 CB 05 48 79 B0 FB BC 3B 0F 08 39 5A 8A 68 [09:52: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 64 96 47 00 2D 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 67 DA 02 00 F4 03 04 00 47 50 B5 67 B6 04 01 00 00 F0 97 61 4E 34 18 7F 18 [09:52:50]CommunicateWithHost err = 0 [09:52:50]CheckOFDResponse [09:52:50]1017 (14) - 77093643461234 [09:52:50]1041 (16) - 0000000000871826 [09:52:50]1040 (4) - 186983 [09:52:50]1012 (4) - 19.02.2025 03:30 [09:52:50]1206 (1) - 0 [09:52:50]OFD Sender: Remove packet 186983 [09:52:50]ProducePacketName [09:52:50]name=ofd_packets/00186983 [09:52:50]NVStorageDeleteData [09:52:50]Write to MH i2c: 01 00 00 38 0F 47 [09:52:50]Write i2c OK [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: 01 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: 01 07 00 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: 01 07 00 38 0F 00 00 00 00 00 06 0D 61 [09:52:50]RasterBufferAndPrint [09:52:50]line [09:52:50]line [09:52:50]line [09:52:50]line [09:52:50]line [09:52:50]written 0, free lines is 3344 [09:52:50]MH_Cut [09:52:50]Write to MH i2c: D1 01 00 3F 0F 01 20 [09:52:50]Write i2c OK [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: D1 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: D1 01 00 [09:52:50]MH_I2C_Read... [09:52:50]Read from MH i2c: D1 01 00 3F 0F 00 1F [09:52:50]Write to MH i2c: 01 00 00 40 0F 4F [09:52:50]Write i2c OK [09:52:50]MH_I2C_Read... [09:52:51]OFD Sender: No OFD packet to send [09:52:51]*** Cut start [09:52:51]*** Partial cut [09:52:51]*** CUTSNS_PIN = 1 [09:52:51]*** CUTSNS_PIN = 0 [09:52:51]*** Brake cut motor [09:52:52]Read from MH i2c: 01 [09:52:52]MH_I2C_Read... [09:52:52]*** Stop cut motor [09:52:52]*** Cut end [09:52:52]Read from MH i2c: 01 07 00 [09:52:52]MH_I2C_Read... [09:52:52]Read from MH i2c: 01 07 00 40 0F 00 00 00 00 00 FF 0F 64 [09:52:52]process_action close_receipt done [09:52:52]requested_data is exist [09:52:52]produce_requested_data [09:52:52]requested_item fm.sn is exist - process it [09:52:52]wFMCommunicate request_size=4 [09:52:52]MH_SAM_APDU [09:52:52]CAPDU: 80 11 00 00 [09:52:52]Write to MH i2c: E2 08 00 41 0F 80 11 00 00 00 00 00 00 CA [09:52:52]Write i2c OK [09:52:52]MH_I2C_Read... [09:52:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:52]Read from MH i2c: E2 [09:52:52]MH_I2C_Read... [09:52:52]Read from MH i2c: E2 17 00 [09:52:52]MH_I2C_Read... [09:52:52]Read from MH i2c: E2 17 00 41 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1D [09:52: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:52:52]wFMCommunicate OK [09:52:52]requested_item fd.num is exist - process it [09:52:52]SAM_PROTO_GetFieldsCounters [09:52:52]wFMCommunicate request_size=4 [09:52:52]MH_SAM_APDU [09:52:52]CAPDU: 80 13 00 00 [09:52:52]Write to MH i2c: E2 08 00 42 0F 80 13 00 00 00 00 00 00 CD [09:52:52]Write i2c OK [09:52:52]MH_I2C_Read... [09:52:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:52]Read from MH i2c: E2 [09:52:52]MH_I2C_Read... [09:52:52]Read from MH i2c: E2 62 00 [09:52:52]MH_I2C_Read... [09:52:52]Read from MH i2c: E2 62 00 42 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 67 DA 02 00 0E 04 04 00 87 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 52 [09:52: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 67 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:52]wFMCommunicate OK [09:52:52]SAM_PROTO_GetFieldsCounters done [09:52:52]requested_item shift.num is exist - process it [09:52:52]requested_item shift.opened is exist - process it [09:52:52]req_shift_opened [09:52:52]FM_GetShiftState [09:52:52]SAM_PROTO_GetShiftState [09:52:52]wFMCommunicate request_size=4 [09:52:52]MH_SAM_APDU [09:52:52]CAPDU: 80 13 01 00 [09:52:52]Write to MH i2c: E2 08 00 43 0F 80 13 01 00 00 00 00 00 CF [09:52:52]Write i2c OK [09:52:52]MH_I2C_Read... [09:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:52]Read from MH i2c: E2 [09:52:52]MH_I2C_Read... [09:52:52]Read from MH i2c: E2 0E 00 [09:52:52]MH_I2C_Read... [09:52:52]Read from MH i2c: E2 0E 00 43 0F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 4E [09:52:52]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:52:52]wFMCommunicate OK [09:52:52]SAM_PROTO_GetShiftState done [09:52:52]FM_GetShiftState done [09:52:52]req_shift_opened done [09:52:52]requested_item shift.open_date is exist - process it [09:52:52]req_shift_open_date [09:52:52]req_shift_open_date done [09:52:52]produce_requested_data done [09:52:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186983,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [09:52:52]process_action_free close_receipt [09:52:52]json_value_free [09:52:52]json_value_free done [09:52:52]process_json_proto returns [09:52:52]Send response to host [09:52:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186983,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [09:52:52]free response buf [09:52:52]execute_script done [09:52:52]execute_script returns [09:52:52]free content buf [09:52:52]Sock 9.Close socket [09:52:52]Sock 9.Thread stoped [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:21]OFD Sender: No OFD packet to send [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:36]OFD Sender: No OFD packet to send [09:53:41]OFD Sender: No OFD packet to send [09:53:46]OFD Sender: No OFD packet to send [09:53:51]OFD Sender: No OFD packet to send [09:53:56]OFD Sender: No OFD packet to send [09:54:01]OFD Sender: No OFD packet to send [09:54:06]OFD Sender: No OFD packet to send [09:54:10]accept exits with 7 [09:54:10]New connection [09:54:10]New thread 3066879332 created [09:54:10]Thread 3067022692 joined [09:54:10]Waiting for new connection... [09:54:10] Sock 7.Parse request [09:54:10]Sock 7.Check first char [09:54:10]Sock 7.First char is OK [09:54:10]request: POST /json_proto HTTP/1.0 [09:54:10]Method: POST [09:54:10]URL: /json_proto [09:54:10]Method is POST - this is cgi request [09:54:10]url: /json_proto [09:54:10]query_string will be loaded in cgi processing [09:54:10]execute_cgi json_proto POST (null) [09:54:10]execute_cgi path=json_proto method=POST [09:54:10]POST find Content-Length [09:54:10]Host: 172.17.46.131:8080 [09:54:10]Content-Length: 677 [09:54:10]Content-Type: application/json [09:54:10] [09:54:10]POST finish read [09:54:10]Found Content-Length = 677 [09:54:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412134", "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" ] } } [09:54:10]execute_script... [09:54: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)412134", "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" ] } } [09:54:10]POST & json_proto [09:54:10]process_json_proto [09:54:10]json parsed OK: [09:54:10]protocol is kg_v1.0 [09:54:10]action value=close_receipt [09:54:10]process_action close_receipt [09:54:10]cmd_close_receipt [09:54:10]MH_GetDate [09:54:10]Write to MH i2c: F0 00 00 44 0F 42 [09:54:10]Write i2c OK [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: F0 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: F0 09 00 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: F0 09 00 44 0F 00 45 AA B5 67 7E 41 4F 65 C9 [09:54:10]GetLastDocTimeStamp 1739958771 [09:54:10]current date 1739958853 [09:54:10]FM_GetShiftState [09:54:10]SAM_PROTO_GetShiftState [09:54:10]wFMCommunicate request_size=4 [09:54:10]MH_SAM_APDU [09:54:10]CAPDU: 80 13 01 00 [09:54:10]Write to MH i2c: E2 08 00 45 0F 80 13 01 00 00 00 00 00 D1 [09:54:10]Write i2c OK [09:54:10]MH_I2C_Read... [09:54:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:10]Read from MH i2c: E2 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: E2 0E 00 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: E2 0E 00 45 0F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 50 [09:54:10]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:54:10]wFMCommunicate OK [09:54:10]SAM_PROTO_GetShiftState done [09:54:10]FM_GetShiftState done [09:54:10]opened in 1739929631 [09:54:10]opened+sec_in_day 1740016031 [09:54:10]quantity*price = 50011 [09:54:10]sum+1 = 50013 [09:54:10]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 СНО: Общий режим Чек 50 19.02.2025 09:54 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186984 ФПД: 91936946323029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T095413&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186984&fm=91936946323029&tin=02508201610067®Number=0000000000091857&sum=50000 [09:54:11]StoreToDocumentArchive [09:54:11]shift 647 fd 186984 [09:54:11]save to /storage/0647/doc_00186984 [09:54:11]save last doc name /storage/0647/doc_00186984 to /storage/kkm_last_doc_name [09:54:11]save OK [09:54:11]Clear old archive folders... [09:54:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:11]tlvbuf is 00611AD0 [09:54:11]SAM_PROTO_ClearQueue [09:54:11]wFMCommunicate request_size=4 [09:54:11]MH_SAM_APDU [09:54:11]CAPDU: 80 09 00 00 [09:54:11]Write to MH i2c: E2 08 00 52 0F 80 09 00 00 00 00 00 00 D3 [09:54:11]Write i2c OK [09:54:11]MH_I2C_Read... [09:54:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:11]Read from MH i2c: E2 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: E2 03 00 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: E2 03 00 52 0F 00 90 00 D5 [09:54:11]RAPDU: 90 00 [09:54:11]wFMCommunicate OK [09:54:11]SAM_PROTO_ClearQueue done [09:54:11]KKMCreateOFDPacket [09:54:11]OFDProtocolAddRootSTLVToBuf [09:54:11]FM_MakeSignedData [09:54:11]FM_MakeSignedData [09:54:11]SAM_PROTO_SignData [09:54:11]wFMCommunicate request_size=4 [09:54:11]MH_SAM_APDU [09:54:11]CAPDU: 80 0D 01 02 [09:54:11]Write to MH i2c: E2 08 00 53 0F 80 0D 01 02 00 00 00 00 DB [09:54:11]Write i2c OK [09:54:11]MH_I2C_Read... [09:54:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:11]Read from MH i2c: E2 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: E2 03 00 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: E2 03 00 53 0F 00 90 00 D6 [09:54:11]RAPDU: 90 00 [09:54:11]wFMCommunicate OK [09:54:11]wFMCommunicate request_size=255 [09:54:11]MH_SAM_APDU [09:54: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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 32 00 00 00 F4 03 04 00 45 AA 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 68 DA 02 00 35 04 06 00 53 [09:54:11]Write to MH i2c: E2 02 01 54 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 32 00 00 00 F4 03 04 00 45 AA 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 68 DA 02 00 35 04 06 00 53 00 00 D1 [09:54:11]Write i2c OK [09:54:11]MH_I2C_Read... [09:54:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:12]Read from MH i2c: E2 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 03 00 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 03 00 54 0F 00 90 00 D7 [09:54:12]RAPDU: 90 00 [09:54:12]wFMCommunicate OK [09:54:12]wFMCommunicate request_size=10 [09:54:12]MH_SAM_APDU [09:54:12]CAPDU: 80 0D 02 02 05 9D BD 06 FE 55 [09:54:12]Write to MH i2c: E2 0D 00 55 0F 80 0D 02 02 05 00 9D BD 06 FE 55 00 00 9B [09:54:12]Write i2c OK [09:54:12]MH_I2C_Read... [09:54:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:12]Read from MH i2c: E2 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 03 00 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 03 00 55 0F 00 90 00 D8 [09:54:12]RAPDU: 90 00 [09:54:12]wFMCommunicate OK [09:54:12]wFMCommunicate request_size=4 [09:54:12]MH_SAM_APDU [09:54:12]CAPDU: 80 0D 03 02 [09:54:12]Write to MH i2c: E2 08 00 56 0F 80 0D 03 02 00 00 00 00 E0 [09:54:12]Write i2c OK [09:54:12]MH_I2C_Read... [09:54:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:12]Read from MH i2c: E2 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 0B 00 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 0B 00 56 0F 00 2A D1 D6 72 D2 15 41 8D 90 00 D9 [09:54:12]RAPDU: 2A D1 D6 72 D2 15 41 8D 90 00 [09:54:12]wFMCommunicate OK [09:54:12]SAM_PROTO_SignData done [09:54:12]FM_MakeSignedData done [09:54:12]CreateOFDProtocolMessage [09:54:12]wFMCommunicate request_size=4 [09:54:12]MH_SAM_APDU [09:54:12]CAPDU: 80 11 00 00 [09:54:12]Write to MH i2c: E2 08 00 57 0F 80 11 00 00 00 00 00 00 E0 [09:54:12]Write i2c OK [09:54:12]MH_I2C_Read... [09:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:12]Read from MH i2c: E2 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 17 00 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 17 00 57 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 33 [09:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:54:12]wFMCommunicate OK [09:54:12]CreateOFDProtocolMessage done [09:54:12]OFDSenderStorePacket 186984 [09:54:12]StoreOFDPacket docnum=186984 [09:54: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 0F 01 00 00 0F 46 07 01 2C 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 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 32 00 00 00 F4 03 04 00 45 AA 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 68 DA 02 00 35 04 06 00 53 9D BD 06 FE 55 2A D1 D6 72 D2 15 41 8D [09:54:12]CheckFolder [09:54:12]dirname=/storage/ofd_packets [09:54:12]CheckFolder done [09:54:12]ProducePacketName [09:54:12]name=ofd_packets/00186984 [09:54:12]NVStorageSaveData ofd_packets/00186984 [09:54:12]File name is /storage/ofd_packets/00186984 [09:54:12]Write 301 bytes [09:54:12]NVStorageSaveData done [09:54:12]OFDSenderStorePacket done [09:54:12]KKMCreateOFDPacket done [09:54:12]NVStorageSaveData kkm_last_timestamp [09:54:12]File name is /storage/kkm_last_timestamp [09:54:12]Write 4 bytes [09:54:12]NVStorageSaveData done [09:54:12]ExternCall_PrintAddStr [09:54:12]wPrintStart [09:54:12]Write to MH i2c: 01 00 00 58 0F 67 [09:54:12]Write i2c OK [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: 01 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: 01 07 00 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: 01 07 00 58 0F 00 00 00 00 00 FF 0F 7C [09:54:12]RasterBufferAndPrint [09:54:12]line Счет N : (1)412134 [09:54:12]line ИНН: 02508201610067 [09:54:12]line Контрольно-Кассовый Чек [09:54:12]line ПРОДАЖА [09:54:12]line ТРК (МРК, ГНК) : 22 [09:54:12]line Товар: 2710124130 [09:54:12]line Аи-92-К-2 [09:54:12]line 7.790 * 64.20 [09:54:12]line = 500.12 [09:54:12]line НДС 12% НСП 1% [09:54:12]line > о реализуемом товаре [09:54:12]line ОКРУГЛЕНИЕ: -0.12 [09:54:12]line ИТОГО: 500.00 [09:54:12]line Внесено: 500.00 [09:54:12]line СДАЧА: 0.00 [09:54:12]line НСП 1% : 4.43 [09:54:12]line НДС 12% : 53.11 [09:54:12]line Наличными: 500.00 [09:54:12]line Безнал.: 0.00 [09:54:12]line Место: АЗС № 92 "Партнер Нефть" [09:54:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:54:12]line СНО: Общий режим [09:54:12]line Чек 50 19.02.2025 09:54 [09:54:12]line Смена: 647 ФФД: 1.0 [09:54:12]line ЗНМ: 0300000118 [09:54:12]line РНМ: 0000000000091857 [09:54:12]line Версия ККМ: 001 [09:54:12]line ФМ: 0000000000871826 [09:54:12]line ФД: 186984 [09:54:12]line ФПД: 91936946323029 [09:54:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T095413&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186984&fm=91936946323029&tin=02508201610067®Number=0000000000091857&sum=50000 [09:54:12]OFD Sender: Processing packet 186984 [packets to send 49, broken 48] [09:54:12]ProducePacketName [09:54:12]name=ofd_packets/00186984 [09:54:12]OFD Sender: To server: pG, [09:54:12]CommunicateWithHost lk.salyk.kg:30040 [09:54:12]ConnectInit lk.salyk.kg [09:54:12]written 0, free lines is 4095 [09:54:12]Connected sock=10 [09:54: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 0F 46 07 01 2C 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 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 32 00 00 00 F4 03 04 00 45 AA 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 68 DA 02 00 35 04 06 00 53 9D BD 06 FE 55 2A D1 D6 72 D2 15 41 8D [09:54: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 0A 61 47 00 C4 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 68 DA 02 00 F4 03 04 00 99 50 B5 67 B6 04 01 00 00 E3 53 C3 3E EF 97 FB B2 [09:54:13]CommunicateWithHost err = 0 [09:54:13]CheckOFDResponse [09:54:13]1017 (14) - 77093643461234 [09:54:13]1041 (16) - 0000000000871826 [09:54:13]1040 (4) - 186984 [09:54:13]1012 (4) - 19.02.2025 03:31 [09:54:13]1206 (1) - 0 [09:54:13]OFD Sender: Remove packet 186984 [09:54:13]ProducePacketName [09:54:13]name=ofd_packets/00186984 [09:54:13]NVStorageDeleteData [09:54:13]Write to MH i2c: 01 00 00 83 0F 92 [09:54:13]Write i2c OK [09:54:13]MH_I2C_Read... [09:54:13]Read from MH i2c: 01 [09:54:13]MH_I2C_Read... [09:54:13]Read from MH i2c: 01 07 00 [09:54:13]MH_I2C_Read... [09:54:13]Read from MH i2c: 01 07 00 83 0F 00 00 00 00 00 F6 0C 9B [09:54:13]RasterBufferAndPrint [09:54:13]line [09:54:13]line [09:54:13]line [09:54:13]line [09:54:13]line [09:54:13]written 0, free lines is 3324 [09:54:13]MH_Cut [09:54:13]Write to MH i2c: D1 01 00 8A 0F 01 6B [09:54:13]Write i2c OK [09:54:13]MH_I2C_Read... [09:54:13]Read from MH i2c: D1 [09:54:13]MH_I2C_Read... [09:54:13]Read from MH i2c: D1 01 00 [09:54:13]MH_I2C_Read... [09:54:13]Read from MH i2c: D1 01 00 8A 0F 00 6A [09:54:13]Write to MH i2c: 01 00 00 8B 0F 9A [09:54:13]Write i2c OK [09:54:13]MH_I2C_Read... [09:54:13]OFD Sender: No OFD packet to send [09:54:13]*** Cut start [09:54:13]*** Partial cut [09:54:13]*** CUTSNS_PIN = 1 [09:54:13]*** CUTSNS_PIN = 0 [09:54:14]*** Brake cut motor [09:54:14]Read from MH i2c: 01 [09:54:14]MH_I2C_Read... [09:54:14]*** Stop cut motor [09:54:14]*** Cut end [09:54:14]Read from MH i2c: 01 07 00 [09:54:14]MH_I2C_Read... [09:54:14]Read from MH i2c: 01 07 00 8B 0F 00 00 00 00 00 FF 0F AF [09:54:14]process_action close_receipt done [09:54:14]requested_data is exist [09:54:14]produce_requested_data [09:54:14]requested_item fm.sn is exist - process it [09:54:14]wFMCommunicate request_size=4 [09:54:14]MH_SAM_APDU [09:54:14]CAPDU: 80 11 00 00 [09:54:14]Write to MH i2c: E2 08 00 8C 0F 80 11 00 00 00 00 00 00 15 [09:54:14]Write i2c OK [09:54:14]MH_I2C_Read... [09:54:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:14]Read from MH i2c: E2 [09:54:14]MH_I2C_Read... [09:54:14]Read from MH i2c: E2 17 00 [09:54:14]MH_I2C_Read... [09:54:14]Read from MH i2c: E2 17 00 8C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 68 [09:54: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:54:14]wFMCommunicate OK [09:54:14]requested_item fd.num is exist - process it [09:54:14]SAM_PROTO_GetFieldsCounters [09:54:14]wFMCommunicate request_size=4 [09:54:14]MH_SAM_APDU [09:54:14]CAPDU: 80 13 00 00 [09:54:14]Write to MH i2c: E2 08 00 8D 0F 80 13 00 00 00 00 00 00 18 [09:54:14]Write i2c OK [09:54:14]MH_I2C_Read... [09:54:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:14]Read from MH i2c: E2 [09:54:14]MH_I2C_Read... [09:54:14]Read from MH i2c: E2 62 00 [09:54:14]MH_I2C_Read... [09:54:14]Read from MH i2c: E2 62 00 8D 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 68 DA 02 00 0E 04 04 00 87 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 A1 [09:54: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 68 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:54:14]wFMCommunicate OK [09:54:14]SAM_PROTO_GetFieldsCounters done [09:54:14]requested_item shift.num is exist - process it [09:54:14]requested_item shift.opened is exist - process it [09:54:14]req_shift_opened [09:54:14]FM_GetShiftState [09:54:14]SAM_PROTO_GetShiftState [09:54:14]wFMCommunicate request_size=4 [09:54:14]MH_SAM_APDU [09:54:14]CAPDU: 80 13 01 00 [09:54:14]Write to MH i2c: E2 08 00 8E 0F 80 13 01 00 00 00 00 00 1A [09:54:14]Write i2c OK [09:54:14]MH_I2C_Read... [09:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:14]Read from MH i2c: E2 [09:54:14]MH_I2C_Read... [09:54:14]Read from MH i2c: E2 0E 00 [09:54:14]MH_I2C_Read... [09:54:14]Read from MH i2c: E2 0E 00 8E 0F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 99 [09:54:14]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:54:14]wFMCommunicate OK [09:54:14]SAM_PROTO_GetShiftState done [09:54:14]FM_GetShiftState done [09:54:14]req_shift_opened done [09:54:14]requested_item shift.open_date is exist - process it [09:54:14]req_shift_open_date [09:54:14]req_shift_open_date done [09:54:14]produce_requested_data done [09:54:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186984,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [09:54:14]process_action_free close_receipt [09:54:14]json_value_free [09:54:14]json_value_free done [09:54:14]process_json_proto returns [09:54:14]Send response to host [09:54:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186984,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [09:54:14]free response buf [09:54:14]execute_script done [09:54:14]execute_script returns [09:54:14]free content buf [09:54:14]Sock 7.Close socket [09:54:14]Sock 7.Thread stoped [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 [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:28]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:08]OFD Sender: No OFD packet to send [09:56:13]OFD Sender: No OFD packet to send [09:56:18]OFD Sender: No OFD packet to send [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:47]accept exits with 9 [09:58:47]New connection [09:58:47]New thread 3067022692 created [09:58:47]Thread 3066879332 joined [09:58:47]Waiting for new connection... [09:58:47] Sock 9.Parse request [09:58:47]Sock 9.Check first char [09:58:47]Sock 9.First char is OK [09:58:47]request: POST /json_proto HTTP/1.0 [09:58:47]Method: POST [09:58:47]URL: /json_proto [09:58:47]Method is POST - this is cgi request [09:58:47]url: /json_proto [09:58:47]query_string will be loaded in cgi processing [09:58:47]execute_cgi json_proto POST (null) [09:58:47]execute_cgi path=json_proto method=POST [09:58:47]POST find Content-Length [09:58:47]Host: 172.17.46.131:8080 [09:58:47]Content-Length: 792 [09:58:47]Content-Type: application/json [09:58:47] [09:58:47]POST finish read [09:58:47]Found Content-Length = 792 [09:58:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412135", "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" : 23.360, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99954", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:47]execute_script... [09:58: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)412135", "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" : 23.360, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99954", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:47]POST & json_proto [09:58:47]process_json_proto [09:58:47]json parsed OK: [09:58:47]protocol is kg_v1.0 [09:58:47]action value=close_receipt [09:58:47]process_action close_receipt [09:58:47]cmd_close_receipt [09:58:47]MH_GetDate [09:58:47]Write to MH i2c: F0 00 00 8F 0F 8D [09:58:47]Write i2c OK [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: F0 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: F0 09 00 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: F0 09 00 8F 0F 00 59 AB B5 67 7E 41 4F 65 29 [09:58:47]GetLastDocTimeStamp 1739958853 [09:58:47]current date 1739959129 [09:58:47]FM_GetShiftState [09:58:47]SAM_PROTO_GetShiftState [09:58:47]wFMCommunicate request_size=4 [09:58:47]MH_SAM_APDU [09:58:47]CAPDU: 80 13 01 00 [09:58:47]Write to MH i2c: E2 08 00 90 0F 80 13 01 00 00 00 00 00 1C [09:58:47]Write i2c OK [09:58:47]MH_I2C_Read... [09:58:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:47]Read from MH i2c: E2 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 0E 00 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 0E 00 90 0F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 9B [09:58:47]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:58:47]wFMCommunicate OK [09:58:47]SAM_PROTO_GetShiftState done [09:58:47]FM_GetShiftState done [09:58:47]opened in 1739929631 [09:58:47]opened+sec_in_day 1740016031 [09:58:47]quantity*price = 0 [09:58:47]sum+1 = 1 [09:58: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 СНО: Общий режим Чек 51 19.02.2025 09:58 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 99954 ФМ: 0000000000871826 ФД: 186985 ФПД: 78012996766317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T095849&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186985&fm=78012996766317&tin=02508201610067®Number=0000000000091857&sum=0 [09:58:48]StoreToDocumentArchive [09:58:48]shift 647 fd 186985 [09:58:48]save to /storage/0647/doc_00186985 [09:58:48]save last doc name /storage/0647/doc_00186985 to /storage/kkm_last_doc_name [09:58:48]save OK [09:58:48]Clear old archive folders... [09:58:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:48]tlvbuf is 006039F0 [09:58:48]SAM_PROTO_ClearQueue [09:58:48]wFMCommunicate request_size=4 [09:58:48]MH_SAM_APDU [09:58:48]CAPDU: 80 09 00 00 [09:58:48]Write to MH i2c: E2 08 00 9D 0F 80 09 00 00 00 00 00 00 1E [09:58:48]Write i2c OK [09:58:48]MH_I2C_Read... [09:58:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:48]Read from MH i2c: E2 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 03 00 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 03 00 9D 0F 00 90 00 20 [09:58:48]RAPDU: 90 00 [09:58:48]wFMCommunicate OK [09:58:48]SAM_PROTO_ClearQueue done [09:58:48]KKMCreateOFDPacket [09:58:48]OFDProtocolAddRootSTLVToBuf [09:58:48]FM_MakeSignedData [09:58:48]FM_MakeSignedData [09:58:48]SAM_PROTO_SignData [09:58:48]wFMCommunicate request_size=4 [09:58:48]MH_SAM_APDU [09:58:48]CAPDU: 80 0D 01 02 [09:58:48]Write to MH i2c: E2 08 00 9E 0F 80 0D 01 02 00 00 00 00 26 [09:58:48]Write i2c OK [09:58:48]MH_I2C_Read... [09:58:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:48]Read from MH i2c: E2 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 03 00 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 03 00 9E 0F 00 90 00 21 [09:58:48]RAPDU: 90 00 [09:58:48]wFMCommunicate OK [09:58:48]wFMCommunicate request_size=255 [09:58:48]MH_SAM_APDU [09:58: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 40 5B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 59 AB 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 69 DA 02 00 35 04 06 00 46 [09:58:48]Write to MH i2c: E2 02 01 9F 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 40 5B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 59 AB 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 69 DA 02 00 35 04 06 00 46 00 00 34 [09:58:48]Write i2c OK [09:58:48]MH_I2C_Read... [09:58:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:48]Read from MH i2c: E2 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 03 00 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 03 00 9F 0F 00 90 00 22 [09:58:48]RAPDU: 90 00 [09:58:48]wFMCommunicate OK [09:58:48]wFMCommunicate request_size=10 [09:58:48]MH_SAM_APDU [09:58:48]CAPDU: 80 0D 02 02 05 F3 D0 F5 CA 6D [09:58:48]Write to MH i2c: E2 0D 00 A0 0F 80 0D 02 02 05 00 F3 D0 F5 CA 6D 00 00 22 [09:58:48]Write i2c OK [09:58:48]MH_I2C_Read... [09:58:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:48]Read from MH i2c: E2 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 03 00 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 03 00 A0 0F 00 90 00 23 [09:58:48]RAPDU: 90 00 [09:58:48]wFMCommunicate OK [09:58:48]wFMCommunicate request_size=4 [09:58:48]MH_SAM_APDU [09:58:48]CAPDU: 80 0D 03 02 [09:58:48]Write to MH i2c: E2 08 00 A1 0F 80 0D 03 02 00 00 00 00 2B [09:58:48]Write i2c OK [09:58:48]MH_I2C_Read... [09:58:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:48]Read from MH i2c: E2 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 0B 00 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 0B 00 A1 0F 00 6E 77 A2 B9 C4 6B AE 6A 90 00 B3 [09:58:48]RAPDU: 6E 77 A2 B9 C4 6B AE 6A 90 00 [09:58:48]wFMCommunicate OK [09:58:48]SAM_PROTO_SignData done [09:58:48]FM_MakeSignedData done [09:58:48]CreateOFDProtocolMessage [09:58:48]wFMCommunicate request_size=4 [09:58:48]MH_SAM_APDU [09:58:48]CAPDU: 80 11 00 00 [09:58:48]Write to MH i2c: E2 08 00 A2 0F 80 11 00 00 00 00 00 00 2B [09:58:48]Write i2c OK [09:58:48]MH_I2C_Read... [09:58:48]OFD Sender: No OFD packet to send [09:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:48]Read from MH i2c: E2 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 17 00 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: E2 17 00 A2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7E [09:58: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:58:48]wFMCommunicate OK [09:58:48]CreateOFDProtocolMessage done [09:58:48]OFDSenderStorePacket 186985 [09:58:48]StoreOFDPacket docnum=186985 [09:58: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 D4 43 07 01 D2 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 5B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 59 AB 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 69 DA 02 00 35 04 06 00 46 F3 D0 F5 CA 6D 6E 77 A2 B9 C4 6B AE 6A [09:58:48]CheckFolder [09:58:48]dirname=/storage/ofd_packets [09:58:48]CheckFolder done [09:58:48]ProducePacketName [09:58:48]name=ofd_packets/00186985 [09:58:48]NVStorageSaveData ofd_packets/00186985 [09:58:48]File name is /storage/ofd_packets/00186985 [09:58:48]Write 301 bytes [09:58:48]NVStorageSaveData done [09:58:48]OFDSenderStorePacket done [09:58:48]KKMCreateOFDPacket done [09:58:48]NVStorageSaveData kkm_last_timestamp [09:58:48]File name is /storage/kkm_last_timestamp [09:58:48]Write 4 bytes [09:58:48]NVStorageSaveData done [09:58:48]ExternCall_PrintAddStr [09:58:48]wPrintStart [09:58:48]Write to MH i2c: 01 00 00 A3 0F B2 [09:58:48]Write i2c OK [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: 01 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: 01 07 00 [09:58:48]MH_I2C_Read... [09:58:48]Read from MH i2c: 01 07 00 A3 0F 00 00 00 00 00 FF 0F C7 [09:58:48]RasterBufferAndPrint [09:58:48]line Счет N : (1)412135 [09:58:48]line ИНН: 02508201610067 [09:58:48]line Контрольно-Кассовый Чек [09:58:48]line ПРОДАЖА [09:58:48]line ТРК (МРК, ГНК) : 22 [09:58:48]line Товар: 2710124130 [09:58:48]line Аи-92-К-2 [09:58:48]line 23.360 * 0.00 [09:58:48]line = 0.00 [09:58:48]line НДС 12% НСП 1% [09:58:48]line > о реализуемом товаре [09:58:48]line ИТОГО: 0.00 [09:58:48]line НСП 1% : 0.00 [09:58:48]line НДС 12% : 0.00 [09:58:48]line Наличными: 0.00 [09:58:48]line Безнал.: 0.00 [09:58:48]line Место: АЗС № 92 "Партнер Нефть" [09:58:48]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:58:48]line СНО: Общий режим [09:58:48]line Чек 51 19.02.2025 09:58 [09:58:48]line Смена: 647 ФФД: 1.0 [09:58:48]line ЗНМ: 0300000118 [09:58:48]line РНМ: 0000000000091857 [09:58:48]line Версия ККМ: 001 [09:58:48]line Талоны: Топливная Карта [09:58:48]line 99954 [09:58:48]line ФМ: 0000000000871826 [09:58:48]line ФД: 186985 [09:58:48]line ФПД: 78012996766317 [09:58:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T095849&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186985&fm=78012996766317&tin=02508201610067®Number=0000000000091857&sum=0 [09:58:49]written 0, free lines is 4095 [09:58:49]OFD Sender: Processing packet 186985 [packets to send 49, broken 48] [09:58:49]ProducePacketName [09:58:49]name=ofd_packets/00186985 [09:58:49]OFD Sender: To server: pG, [09:58:49]CommunicateWithHost lk.salyk.kg:30040 [09:58:49]ConnectInit lk.salyk.kg [09:58:49]Connected sock=10 [09:58: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 D4 43 07 01 D2 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 5B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 59 AB 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 69 DA 02 00 35 04 06 00 46 F3 D0 F5 CA 6D 6E 77 A2 B9 C4 6B AE 6A [09:58: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 77 A8 47 00 CB 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 69 DA 02 00 F4 03 04 00 AE 51 B5 67 B6 04 01 00 00 12 1F 8E 4B 1D 77 AA 28 [09:58:49]CommunicateWithHost err = 0 [09:58:49]CheckOFDResponse [09:58:49]1017 (14) - 77093643461234 [09:58:49]1041 (16) - 0000000000871826 [09:58:49]1040 (4) - 186985 [09:58:49]1012 (4) - 19.02.2025 03:36 [09:58:49]1206 (1) - 0 [09:58:49]OFD Sender: Remove packet 186985 [09:58:49]ProducePacketName [09:58:49]name=ofd_packets/00186985 [09:58:49]NVStorageDeleteData [09:58:49]Write to MH i2c: 01 00 00 CD 0F DC [09:58:49]Write i2c OK [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: 01 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: 01 07 00 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: 01 07 00 CD 0F 00 00 00 00 00 11 0D 01 [09:58:49]RasterBufferAndPrint [09:58:49]line [09:58:49]line [09:58:49]line [09:58:49]line [09:58:49]line [09:58:49]written 0, free lines is 3351 [09:58:49]MH_Cut [09:58:49]Write to MH i2c: D1 01 00 D4 0F 01 B5 [09:58:49]Write i2c OK [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: D1 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: D1 01 00 [09:58:49]MH_I2C_Read... [09:58:49]Read from MH i2c: D1 01 00 D4 0F 00 B4 [09:58:49]Write to MH i2c: 01 00 00 D5 0F E4 [09:58:49]Write i2c OK [09:58:49]MH_I2C_Read... [09:58:50]OFD Sender: No OFD packet to send [09:58:50]*** Cut start [09:58:50]*** Partial cut [09:58:50]*** CUTSNS_PIN = 1 [09:58:50]*** CUTSNS_PIN = 0 [09:58:50]*** Brake cut motor [09:58:51]Read from MH i2c: 01 [09:58:51]MH_I2C_Read... [09:58:51]*** Stop cut motor [09:58:51]*** Cut end [09:58:51]Read from MH i2c: 01 07 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: 01 07 00 D5 0F 00 00 00 00 00 FF 0F F9 [09:58:51]process_action close_receipt done [09:58:51]requested_data is exist [09:58:51]produce_requested_data [09:58:51]requested_item fm.sn is exist - process it [09:58:51]wFMCommunicate request_size=4 [09:58:51]MH_SAM_APDU [09:58:51]CAPDU: 80 11 00 00 [09:58:51]Write to MH i2c: E2 08 00 D6 0F 80 11 00 00 00 00 00 00 5F [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:51]Read from MH i2c: E2 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 17 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 17 00 D6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B2 [09:58:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:58:51]wFMCommunicate OK [09:58:51]requested_item fd.num is exist - process it [09:58:51]SAM_PROTO_GetFieldsCounters [09:58:51]wFMCommunicate request_size=4 [09:58:51]MH_SAM_APDU [09:58:51]CAPDU: 80 13 00 00 [09:58:51]Write to MH i2c: E2 08 00 D7 0F 80 13 00 00 00 00 00 00 62 [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:51]Read from MH i2c: E2 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 62 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 62 00 D7 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 69 DA 02 00 0E 04 04 00 87 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 EF [09:58: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 69 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:51]wFMCommunicate OK [09:58:51]SAM_PROTO_GetFieldsCounters done [09:58:51]requested_item shift.num is exist - process it [09:58:51]requested_item shift.opened is exist - process it [09:58:51]req_shift_opened [09:58:51]FM_GetShiftState [09:58:51]SAM_PROTO_GetShiftState [09:58:51]wFMCommunicate request_size=4 [09:58:51]MH_SAM_APDU [09:58:51]CAPDU: 80 13 01 00 [09:58:51]Write to MH i2c: E2 08 00 D8 0F 80 13 01 00 00 00 00 00 64 [09:58:51]Write i2c OK [09:58:51]MH_I2C_Read... [09:58:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:51]Read from MH i2c: E2 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 0E 00 [09:58:51]MH_I2C_Read... [09:58:51]Read from MH i2c: E2 0E 00 D8 0F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E3 [09:58:51]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [09:58:51]wFMCommunicate OK [09:58:51]SAM_PROTO_GetShiftState done [09:58:51]FM_GetShiftState done [09:58:51]req_shift_opened done [09:58:51]requested_item shift.open_date is exist - process it [09:58:51]req_shift_open_date [09:58:51]req_shift_open_date done [09:58:51]produce_requested_data done [09:58:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186985,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [09:58:51]process_action_free close_receipt [09:58:51]json_value_free [09:58:51]json_value_free done [09:58:51]process_json_proto returns [09:58:51]Send response to host [09:58:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186985,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [09:58:51]free response buf [09:58:51]execute_script done [09:58:51]execute_script returns [09:58:51]free content buf [09:58:51]Sock 9.Close socket [09:58:51]Sock 9.Thread stoped [09:58:55]OFD Sender: No OFD packet to send [09:59:00]OFD Sender: No OFD packet to send [09:59:05]OFD Sender: No OFD packet to send [09:59:10]OFD Sender: No OFD packet to send [09:59:15]OFD Sender: No OFD packet to send [09:59:20]OFD Sender: No OFD packet to send [09:59:25]OFD Sender: No OFD packet to send [09:59:30]OFD Sender: No OFD packet to send [09:59:35]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:45]OFD Sender: No OFD packet to send [09:59:50]OFD Sender: No OFD packet to send [09:59:55]OFD Sender: No OFD packet to send [10:00:00]OFD Sender: No OFD packet to send [10:00:05]OFD Sender: No OFD packet to send [10:00:10]OFD Sender: No OFD packet to send [10:00:15]OFD Sender: No OFD packet to send [10:00:20]OFD Sender: No OFD packet to send [10:00:25]OFD Sender: No OFD packet to send [10:00:30]OFD Sender: No OFD packet to send [10:00:35]OFD Sender: No OFD packet to send [10:00:40]OFD Sender: No OFD packet to send [10:00:45]OFD Sender: No OFD packet to send [10:00:50]OFD Sender: No OFD packet to send [10:00:55]OFD Sender: No OFD packet to send [10:01:00]OFD Sender: No OFD packet to send [10:01:05]OFD Sender: No OFD packet to send [10:01:10]OFD Sender: No OFD packet to send [10:01:13]accept exits with 7 [10:01:13]New connection [10:01:13]New thread 3066879332 created [10:01:13]Thread 3067022692 joined [10:01:13]Waiting for new connection... [10:01:13] Sock 7.Parse request [10:01:13]Sock 7.Check first char [10:01:13]Sock 7.First char is OK [10:01:13]request: POST /json_proto HTTP/1.0 [10:01:13]Method: POST [10:01:13]URL: /json_proto [10:01:13]Method is POST - this is cgi request [10:01:13]url: /json_proto [10:01:13]query_string will be loaded in cgi processing [10:01:13]execute_cgi json_proto POST (null) [10:01:13]execute_cgi path=json_proto method=POST [10:01:13]POST find Content-Length [10:01:13]Host: 172.17.46.131:8080 [10:01:13]Content-Length: 799 [10:01:13]Content-Type: application/json [10:01:13] [10:01:13]POST finish read [10:01:13]Found Content-Length = 799 [10:01:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412137", "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 }]} ], "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" : 1200.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:13]execute_script... [10:01: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)412137", "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 }]} ], "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" : 1200.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:13]POST & json_proto [10:01:13]process_json_proto [10:01:13]json parsed OK: [10:01:13]protocol is kg_v1.0 [10:01:13]action value=close_receipt [10:01:13]process_action close_receipt [10:01:13]cmd_close_receipt [10:01:13]MH_GetDate [10:01:13]Write to MH i2c: F0 00 00 D9 0F D7 [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: F0 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: F0 09 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: F0 09 00 D9 0F 00 EC AB B5 67 7E 41 4F 65 06 [10:01:13]GetLastDocTimeStamp 1739959129 [10:01:13]current date 1739959276 [10:01:13]FM_GetShiftState [10:01:13]SAM_PROTO_GetShiftState [10:01:13]wFMCommunicate request_size=4 [10:01:13]MH_SAM_APDU [10:01:13]CAPDU: 80 13 01 00 [10:01:13]Write to MH i2c: E2 08 00 DA 0F 80 13 01 00 00 00 00 00 66 [10:01:13]Write i2c OK [10:01:13]MH_I2C_Read... [10:01:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:13]Read from MH i2c: E2 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 0E 00 [10:01:13]MH_I2C_Read... [10:01:13]Read from MH i2c: E2 0E 00 DA 0F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E5 [10:01:13]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:01:13]wFMCommunicate OK [10:01:13]SAM_PROTO_GetShiftState done [10:01:13]FM_GetShiftState done [10:01:13]opened in 1739929631 [10:01:13]opened+sec_in_day 1740016031 [10:01:13]quantity*price = 120007 [10:01:13]sum+1 = 120009 [10:01:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.08 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 0.00 Безнал.: 1200.08 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 52 19.02.2025 10:01 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186986 ФПД: 46189337839577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T100116&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186986&fm=46189337839577&tin=02508201610067®Number=0000000000091857&sum=120008 [10:01:14]StoreToDocumentArchive [10:01:14]shift 647 fd 186986 [10:01:14]save to /storage/0647/doc_00186986 [10:01:14]save last doc name /storage/0647/doc_00186986 to /storage/kkm_last_doc_name [10:01:14]save OK [10:01:14]Clear old archive folders... [10:01:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:01:14]tlvbuf is 005D5C40 [10:01:14]SAM_PROTO_ClearQueue [10:01:14]wFMCommunicate request_size=4 [10:01:14]MH_SAM_APDU [10:01:14]CAPDU: 80 09 00 00 [10:01:14]Write to MH i2c: E2 08 00 E7 0F 80 09 00 00 00 00 00 00 68 [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:14]Read from MH i2c: E2 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 03 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 03 00 E7 0F 00 90 00 6A [10:01:14]RAPDU: 90 00 [10:01:14]wFMCommunicate OK [10:01:14]SAM_PROTO_ClearQueue done [10:01:14]KKMCreateOFDPacket [10:01:14]OFDProtocolAddRootSTLVToBuf [10:01:14]FM_MakeSignedData [10:01:14]FM_MakeSignedData [10:01:14]SAM_PROTO_SignData [10:01:14]wFMCommunicate request_size=4 [10:01:14]MH_SAM_APDU [10:01:14]CAPDU: 80 0D 01 02 [10:01:14]Write to MH i2c: E2 08 00 E8 0F 80 0D 01 02 00 00 00 00 70 [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:14]Read from MH i2c: E2 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 03 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 03 00 E8 0F 00 90 00 6B [10:01:14]RAPDU: 90 00 [10:01:14]wFMCommunicate OK [10:01:14]wFMCommunicate request_size=255 [10:01:14]MH_SAM_APDU [10:01: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 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 C8 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 00 00 00 00 00 00 39 04 06 00 C8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 EC AB 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 6A DA 02 00 35 04 06 00 2A 02 4B 13 [10:01:14]Write to MH i2c: E2 02 01 E9 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 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 C8 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 00 00 00 00 00 00 39 04 06 00 C8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 EC AB 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 6A DA 02 00 35 04 06 00 2A 02 4B 13 00 00 56 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 E9 0F 00 90 00 6C [10:01:15]RAPDU: 90 00 [10:01:15]wFMCommunicate OK [10:01:15]wFMCommunicate request_size=7 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 0D 02 02 02 07 D9 [10:01:15]Write to MH i2c: E2 0A 00 EA 0F 80 0D 02 02 02 00 07 D9 00 00 57 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 EA 0F 00 90 00 6D [10:01:15]RAPDU: 90 00 [10:01:15]wFMCommunicate OK [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 0D 03 02 [10:01:15]Write to MH i2c: E2 08 00 EB 0F 80 0D 03 02 00 00 00 00 75 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:15]OFD Sender: No OFD packet to send [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 0B 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 0B 00 EB 0F 00 82 AF 5A 37 70 AB 02 B7 90 00 0C [10:01:15]RAPDU: 82 AF 5A 37 70 AB 02 B7 90 00 [10:01:15]wFMCommunicate OK [10:01:15]SAM_PROTO_SignData done [10:01:15]FM_MakeSignedData done [10:01:15]CreateOFDProtocolMessage [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 11 00 00 [10:01:15]Write to MH i2c: E2 08 00 EC 0F 80 11 00 00 00 00 00 00 75 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 17 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 17 00 EC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C8 [10:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:01:15]wFMCommunicate OK [10:01:15]CreateOFDProtocolMessage done [10:01:15]OFDSenderStorePacket 186986 [10:01:15]StoreOFDPacket docnum=186986 [10:01: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 0C 01 00 00 67 D4 04 01 7B 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 C8 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 00 00 00 00 00 00 39 04 06 00 C8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 EC AB 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 6A DA 02 00 35 04 06 00 2A 02 4B 13 07 D9 82 AF 5A 37 70 AB 02 B7 [10:01:15]CheckFolder [10:01:15]dirname=/storage/ofd_packets [10:01:15]CheckFolder done [10:01:15]ProducePacketName [10:01:15]name=ofd_packets/00186986 [10:01:15]NVStorageSaveData ofd_packets/00186986 [10:01:15]File name is /storage/ofd_packets/00186986 [10:01:15]Write 298 bytes [10:01:15]NVStorageSaveData done [10:01:15]OFDSenderStorePacket done [10:01:15]KKMCreateOFDPacket done [10:01:15]NVStorageSaveData kkm_last_timestamp [10:01:15]File name is /storage/kkm_last_timestamp [10:01:15]Write 4 bytes [10:01:15]NVStorageSaveData done [10:01:15]ExternCall_PrintAddStr [10:01:15]wPrintStart [10:01:15]Write to MH i2c: 01 00 00 ED 0F FC [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: 01 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: 01 07 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: 01 07 00 ED 0F 00 00 00 00 00 FF 0F 11 [10:01:15]RasterBufferAndPrint [10:01:15]line Счет N : (1)412137 [10:01:15]line ИНН: 02508201610067 [10:01:15]line Контрольно-Кассовый Чек [10:01:15]line ПРОДАЖА [10:01:15]line ТРК (МРК, ГНК) : 5 [10:01:15]line Товар: 2710194210 [10:01:15]line ДТ-К-5 [10:01:15]line 16.530 * 72.60 [10:01:15]line = 1200.08 [10:01:15]line НДС 12% НСП 1% [10:01:15]line > о реализуемом товаре [10:01:15]line ИТОГО: 1200.08 [10:01:15]line НСП 1% : 10.62 [10:01:15]line НДС 12% : 127.44 [10:01:15]line Наличными: 0.00 [10:01:15]line Безнал.: 1200.08 [10:01:15]line Место: АЗС № 92 "Партнер Нефть" [10:01:15]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:01:15]line СНО: Общий режим [10:01:15]line Чек 52 19.02.2025 10:01 [10:01:15]line Смена: 647 ФФД: 1.0 [10:01:15]line ЗНМ: 0300000118 [10:01:15]line РНМ: 0000000000091857 [10:01:15]line Версия ККМ: 001 [10:01:15]line Платежная система: O! деньги [10:01:15]line ФМ: 0000000000871826 [10:01:15]line ФД: 186986 [10:01:15]line ФПД: 46189337839577 [10:01:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T100116&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186986&fm=46189337839577&tin=02508201610067®Number=0000000000091857&sum=120008 [10:01:15]OFD Sender: Processing packet 186986 [packets to send 49, broken 48] [10:01:15]ProducePacketName [10:01:15]name=ofd_packets/00186986 [10:01:15]OFD Sender: To server: pG, [10:01:15]CommunicateWithHost lk.salyk.kg:30040 [10:01:15]ConnectInit lk.salyk.kg [10:01:15]written 0, free lines is 4095 [10:01:15]Connected sock=10 [10:01: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 67 D4 04 01 7B 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 C8 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 00 00 00 00 00 00 39 04 06 00 C8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 EC AB 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 6A DA 02 00 35 04 06 00 2A 02 4B 13 07 D9 82 AF 5A 37 70 AB 02 B7 [10:01: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 1E 23 47 00 EE 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6A DA 02 00 F4 03 04 00 40 52 B5 67 B6 04 01 00 00 20 70 3A 49 8A 3D 95 3D [10:01:16]CommunicateWithHost err = 0 [10:01:16]CheckOFDResponse [10:01:16]1017 (14) - 77093643461234 [10:01:16]1041 (16) - 0000000000871826 [10:01:16]1040 (4) - 186986 [10:01:16]1012 (4) - 19.02.2025 03:38 [10:01:16]1206 (1) - 0 [10:01:16]OFD Sender: Remove packet 186986 [10:01:16]ProducePacketName [10:01:16]name=ofd_packets/00186986 [10:01:16]NVStorageDeleteData [10:01:16]Write to MH i2c: 01 00 00 17 10 27 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 07 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 07 00 17 10 00 00 00 00 00 15 0D 50 [10:01:16]RasterBufferAndPrint [10:01:16]line [10:01:16]line [10:01:16]line [10:01:16]line [10:01:16]line [10:01:16]written 0, free lines is 3355 [10:01:16]MH_Cut [10:01:16]Write to MH i2c: D1 01 00 1E 10 01 00 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: D1 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: D1 01 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: D1 01 00 1E 10 00 FF [10:01:16]Write to MH i2c: 01 00 00 1F 10 2F [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]OFD Sender: No OFD packet to send [10:01:16]*** Cut start [10:01:16]*** Partial cut [10:01:16]*** CUTSNS_PIN = 1 [10:01:16]*** CUTSNS_PIN = 0 [10:01:17]*** Brake cut motor [10:01:17]Read from MH i2c: 01 [10:01:17]MH_I2C_Read... [10:01:17]*** Stop cut motor [10:01:17]*** Cut end [10:01:17]Read from MH i2c: 01 07 00 [10:01:17]MH_I2C_Read... [10:01:17]Read from MH i2c: 01 07 00 1F 10 00 00 00 00 00 FF 0F 44 [10:01:17]process_action close_receipt done [10:01:17]requested_data is exist [10:01:17]produce_requested_data [10:01:17]requested_item fm.sn is exist - process it [10:01:17]wFMCommunicate request_size=4 [10:01:17]MH_SAM_APDU [10:01:17]CAPDU: 80 11 00 00 [10:01:17]Write to MH i2c: E2 08 00 20 10 80 11 00 00 00 00 00 00 AA [10:01:17]Write i2c OK [10:01:17]MH_I2C_Read... [10:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:17]Read from MH i2c: E2 [10:01:17]MH_I2C_Read... [10:01:17]Read from MH i2c: E2 17 00 [10:01:17]MH_I2C_Read... [10:01:17]Read from MH i2c: E2 17 00 20 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FD [10:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:01:17]wFMCommunicate OK [10:01:17]requested_item fd.num is exist - process it [10:01:17]SAM_PROTO_GetFieldsCounters [10:01:17]wFMCommunicate request_size=4 [10:01:17]MH_SAM_APDU [10:01:17]CAPDU: 80 13 00 00 [10:01:17]Write to MH i2c: E2 08 00 21 10 80 13 00 00 00 00 00 00 AD [10:01:17]Write i2c OK [10:01:17]MH_I2C_Read... [10:01:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:17]Read from MH i2c: E2 [10:01:17]MH_I2C_Read... [10:01:17]Read from MH i2c: E2 62 00 [10:01:17]MH_I2C_Read... [10:01:17]Read from MH i2c: E2 62 00 21 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 6A DA 02 00 0E 04 04 00 87 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 3E [10:01: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 6A DA 02 00 0E 04 04 00 87 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:01:17]wFMCommunicate OK [10:01:17]SAM_PROTO_GetFieldsCounters done [10:01:17]requested_item shift.num is exist - process it [10:01:17]requested_item shift.opened is exist - process it [10:01:17]req_shift_opened [10:01:17]FM_GetShiftState [10:01:17]SAM_PROTO_GetShiftState [10:01:17]wFMCommunicate request_size=4 [10:01:17]MH_SAM_APDU [10:01:17]CAPDU: 80 13 01 00 [10:01:17]Write to MH i2c: E2 08 00 22 10 80 13 01 00 00 00 00 00 AF [10:01:17]Write i2c OK [10:01:17]MH_I2C_Read... [10:01:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:17]Read from MH i2c: E2 [10:01:17]MH_I2C_Read... [10:01:17]Read from MH i2c: E2 0E 00 [10:01:17]MH_I2C_Read... [10:01:17]Read from MH i2c: E2 0E 00 22 10 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 2E [10:01:17]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:01:17]wFMCommunicate OK [10:01:17]SAM_PROTO_GetShiftState done [10:01:17]FM_GetShiftState done [10:01:17]req_shift_opened done [10:01:17]requested_item shift.open_date is exist - process it [10:01:17]req_shift_open_date [10:01:17]req_shift_open_date done [10:01:17]produce_requested_data done [10:01:17]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186986,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [10:01:17]process_action_free close_receipt [10:01:17]json_value_free [10:01:17]json_value_free done [10:01:17]process_json_proto returns [10:01:17]Send response to host [10:01:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186986,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [10:01:17]free response buf [10:01:17]execute_script done [10:01:17]execute_script returns [10:01:17]free content buf [10:01:17]Sock 7.Close socket [10:01:17]Sock 7.Thread stoped [10:01:21]OFD Sender: No OFD packet to send [10:01:26]OFD Sender: No OFD packet to send [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:11]OFD Sender: No OFD packet to send [10:02:15]accept exits with 9 [10:02:15]New connection [10:02:15]New thread 3067022692 created [10:02:15]Thread 3066879332 joined [10:02:15]Waiting for new connection... [10:02:15] Sock 9.Parse request [10:02:15]Sock 9.Check first char [10:02:15]Sock 9.First char is OK [10:02:15]request: POST /json_proto HTTP/1.0 [10:02:15]Method: POST [10:02:15]URL: /json_proto [10:02:15]Method is POST - this is cgi request [10:02:15]url: /json_proto [10:02:15]query_string will be loaded in cgi processing [10:02:15]execute_cgi json_proto POST (null) [10:02:15]execute_cgi path=json_proto method=POST [10:02:15]POST find Content-Length [10:02:15]Host: 172.17.46.131:8080 [10:02:15]Content-Length: 754 [10:02:15]Content-Type: application/json [10:02:15] [10:02:15]POST finish read [10:02:15]Found Content-Length = 754 [10:02:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412136", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30085817", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:15]execute_script... [10:02: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)412136", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30085817", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:15]POST & json_proto [10:02:15]process_json_proto [10:02:15]json parsed OK: [10:02:15]protocol is kg_v1.0 [10:02:15]action value=close_receipt [10:02:15]process_action close_receipt [10:02:15]cmd_close_receipt [10:02:15]MH_GetDate [10:02:15]Write to MH i2c: F0 00 00 23 10 22 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: F0 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: F0 09 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: F0 09 00 23 10 00 2A AC B5 67 7E 41 4F 65 90 [10:02:15]GetLastDocTimeStamp 1739959276 [10:02:15]current date 1739959338 [10:02:15]FM_GetShiftState [10:02:15]SAM_PROTO_GetShiftState [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 13 01 00 [10:02:15]Write to MH i2c: E2 08 00 24 10 80 13 01 00 00 00 00 00 B1 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 0E 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 0E 00 24 10 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 30 [10:02:15]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:02:15]wFMCommunicate OK [10:02:15]SAM_PROTO_GetShiftState done [10:02:15]FM_GetShiftState done [10:02:15]opened in 1739929631 [10:02:15]opened+sec_in_day 1740016031 [10:02:15]quantity*price = 0 [10:02:15]sum+1 = 1 [10:02: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 СНО: Общий режим Чек 53 19.02.2025 10:02 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30085817 ФМ: 0000000000871826 ФД: 186987 ФПД: 215524280944921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T100218&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186987&fm=215524280944921&tin=02508201610067®Number=0000000000091857&sum=0 [10:02:17]StoreToDocumentArchive [10:02:17]shift 647 fd 186987 [10:02:17]save to /storage/0647/doc_00186987 [10:02:17]save last doc name /storage/0647/doc_00186987 to /storage/kkm_last_doc_name [10:02:17]save OK [10:02:17]Clear old archive folders... [10:02:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:17]tlvbuf is 00611C90 [10:02:17]SAM_PROTO_ClearQueue [10:02:17]wFMCommunicate request_size=4 [10:02:17]MH_SAM_APDU [10:02:17]CAPDU: 80 09 00 00 [10:02:17]Write to MH i2c: E2 08 00 31 10 80 09 00 00 00 00 00 00 B3 [10:02:17]Write i2c OK [10:02:17]MH_I2C_Read... [10:02:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:17]Read from MH i2c: E2 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 03 00 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 03 00 31 10 00 90 00 B5 [10:02:17]RAPDU: 90 00 [10:02:17]wFMCommunicate OK [10:02:17]SAM_PROTO_ClearQueue done [10:02:17]KKMCreateOFDPacket [10:02:17]OFDProtocolAddRootSTLVToBuf [10:02:17]FM_MakeSignedData [10:02:17]FM_MakeSignedData [10:02:17]SAM_PROTO_SignData [10:02:17]wFMCommunicate request_size=4 [10:02:17]MH_SAM_APDU [10:02:17]CAPDU: 80 0D 01 02 [10:02:17]Write to MH i2c: E2 08 00 32 10 80 0D 01 02 00 00 00 00 BB [10:02:17]Write i2c OK [10:02:17]MH_I2C_Read... [10:02:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:17]Read from MH i2c: E2 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 03 00 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 03 00 32 10 00 90 00 B6 [10:02:17]RAPDU: 90 00 [10:02:17]wFMCommunicate OK [10:02:17]wFMCommunicate request_size=255 [10:02:17]MH_SAM_APDU [10:02: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 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 35 00 00 00 F4 03 04 00 2A AC 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 6B DA 02 00 35 04 06 00 C4 [10:02:17]Write to MH i2c: E2 02 01 33 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 35 00 00 00 F4 03 04 00 2A AC 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 6B DA 02 00 35 04 06 00 C4 00 00 C2 [10:02:17]Write i2c OK [10:02:17]MH_I2C_Read... [10:02:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:17]Read from MH i2c: E2 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 03 00 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 03 00 33 10 00 90 00 B7 [10:02:17]RAPDU: 90 00 [10:02:17]wFMCommunicate OK [10:02:17]wFMCommunicate request_size=10 [10:02:17]MH_SAM_APDU [10:02:17]CAPDU: 80 0D 02 02 05 04 A8 34 C9 19 [10:02:17]Write to MH i2c: E2 0D 00 34 10 80 0D 02 02 05 00 04 A8 34 C9 19 00 00 8A [10:02:17]Write i2c OK [10:02:17]MH_I2C_Read... [10:02:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:17]Read from MH i2c: E2 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 03 00 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 03 00 34 10 00 90 00 B8 [10:02:17]RAPDU: 90 00 [10:02:17]wFMCommunicate OK [10:02:17]wFMCommunicate request_size=4 [10:02:17]MH_SAM_APDU [10:02:17]CAPDU: 80 0D 03 02 [10:02:17]Write to MH i2c: E2 08 00 35 10 80 0D 03 02 00 00 00 00 C0 [10:02:17]Write i2c OK [10:02:17]MH_I2C_Read... [10:02:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:17]Read from MH i2c: E2 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 0B 00 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 0B 00 35 10 00 07 27 C0 1A 82 97 DB 19 90 00 D6 [10:02:17]RAPDU: 07 27 C0 1A 82 97 DB 19 90 00 [10:02:17]wFMCommunicate OK [10:02:17]SAM_PROTO_SignData done [10:02:17]FM_MakeSignedData done [10:02:17]CreateOFDProtocolMessage [10:02:17]wFMCommunicate request_size=4 [10:02:17]MH_SAM_APDU [10:02:17]CAPDU: 80 11 00 00 [10:02:17]Write to MH i2c: E2 08 00 36 10 80 11 00 00 00 00 00 00 C0 [10:02:17]Write i2c OK [10:02:17]MH_I2C_Read... [10:02:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:17]Read from MH i2c: E2 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 17 00 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: E2 17 00 36 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 13 [10:02:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:02:17]wFMCommunicate OK [10:02:17]CreateOFDProtocolMessage done [10:02:17]OFDSenderStorePacket 186987 [10:02:17]StoreOFDPacket docnum=186987 [10:02: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 22 32 07 01 A8 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 35 00 00 00 F4 03 04 00 2A AC 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 6B DA 02 00 35 04 06 00 C4 04 A8 34 C9 19 07 27 C0 1A 82 97 DB 19 [10:02:17]CheckFolder [10:02:17]dirname=/storage/ofd_packets [10:02:17]CheckFolder done [10:02:17]ProducePacketName [10:02:17]name=ofd_packets/00186987 [10:02:17]NVStorageSaveData ofd_packets/00186987 [10:02:17]File name is /storage/ofd_packets/00186987 [10:02:17]Write 301 bytes [10:02:17]NVStorageSaveData done [10:02:17]OFDSenderStorePacket done [10:02:17]KKMCreateOFDPacket done [10:02:17]NVStorageSaveData kkm_last_timestamp [10:02:17]File name is /storage/kkm_last_timestamp [10:02:17]Write 4 bytes [10:02:17]NVStorageSaveData done [10:02:17]OFD Sender: Processing packet 186987 [packets to send 49, broken 48] [10:02:17]ProducePacketName [10:02:17]name=ofd_packets/00186987 [10:02:17]OFD Sender: To server: pG, [10:02:17]CommunicateWithHost lk.salyk.kg:30040 [10:02:17]ConnectInit lk.salyk.kg [10:02:17]ExternCall_PrintAddStr [10:02:17]wPrintStart [10:02:17]Write to MH i2c: 01 00 00 37 10 47 [10:02:17]Write i2c OK [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: 01 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: 01 07 00 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: 01 07 00 37 10 00 00 00 00 00 FF 0F 5C [10:02:17]RasterBufferAndPrint [10:02:17]line Счет N : (1)412136 [10:02:17]line ИНН: 02508201610067 [10:02:17]line Контрольно-Кассовый Чек [10:02:17]line ПРОДАЖА [10:02:17]line ТРК (МРК, ГНК) : 12 [10:02:17]line Товар: 2710124130 [10:02:17]line Аи-92-К-2 [10:02:17]line 35.000 * 0.00 [10:02:17]line = 0.00 [10:02:17]line НДС 12% НСП 1% [10:02:17]line > о реализуемом товаре [10:02:17]line ИТОГО: 0.00 [10:02:17]line НСП 1% : 0.00 [10:02:17]line НДС 12% : 0.00 [10:02:17]line Наличными: 0.00 [10:02:17]line Безнал.: 0.00 [10:02:17]line Место: АЗС № 92 "Партнер Нефть" [10:02:17]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:02:17]line СНО: Общий режим [10:02:17]line Чек 53 19.02.2025 10:02 [10:02:17]line Смена: 647 ФФД: 1.0 [10:02:17]line ЗНМ: 0300000118 [10:02:17]line РНМ: 0000000000091857 [10:02:17]line Версия ККМ: 001 [10:02:17]line Талоны: ТК ГПНА Online [10:02:17]line 30085817 [10:02:17]line ФМ: 0000000000871826 [10:02:17]line ФД: 186987 [10:02:17]line ФПД: 215524280944921 [10:02:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T100218&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186987&fm=215524280944921&tin=02508201610067®Number=0000000000091857&sum=0 [10:02:17]Connected sock=11 [10:02: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 22 32 07 01 A8 12 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 35 00 00 00 F4 03 04 00 2A AC 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 6B DA 02 00 35 04 06 00 C4 04 A8 34 C9 19 07 27 C0 1A 82 97 DB 19 [10:02:17]written 0, free lines is 4095 [10:02: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 25 95 47 00 AE BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6B DA 02 00 F4 03 04 00 7E 52 B5 67 B6 04 01 00 00 E2 AB 34 02 0C A4 4A 25 [10:02:18]CommunicateWithHost err = 0 [10:02:18]CheckOFDResponse [10:02:18]1017 (14) - 77093643461234 [10:02:18]1041 (16) - 0000000000871826 [10:02:18]1040 (4) - 186987 [10:02:18]1012 (4) - 19.02.2025 03:39 [10:02:18]1206 (1) - 0 [10:02:18]OFD Sender: Remove packet 186987 [10:02:18]ProducePacketName [10:02:18]name=ofd_packets/00186987 [10:02:18]NVStorageDeleteData [10:02:18]Write to MH i2c: 01 00 00 61 10 71 [10:02:18]Write i2c OK [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: 01 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: 01 07 00 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: 01 07 00 61 10 00 00 00 00 00 FA 0C 7E [10:02:18]RasterBufferAndPrint [10:02:18]line [10:02:18]line [10:02:18]line [10:02:18]line [10:02:18]line [10:02:18]written 0, free lines is 3328 [10:02:18]MH_Cut [10:02:18]Write to MH i2c: D1 01 00 68 10 01 4A [10:02:18]Write i2c OK [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: D1 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: D1 01 00 [10:02:18]MH_I2C_Read... [10:02:18]Read from MH i2c: D1 01 00 68 10 00 49 [10:02:18]Write to MH i2c: 01 00 00 69 10 79 [10:02:18]Write i2c OK [10:02:18]MH_I2C_Read... [10:02:18]OFD Sender: No OFD packet to send [10:02:19]*** Cut start [10:02:19]*** Partial cut [10:02:19]*** CUTSNS_PIN = 1 [10:02:19]*** CUTSNS_PIN = 0 [10:02:19]*** Brake cut motor [10:02:19]Read from MH i2c: 01 [10:02:19]MH_I2C_Read... [10:02:19]*** Stop cut motor [10:02:19]*** Cut end [10:02:19]Read from MH i2c: 01 07 00 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: 01 07 00 69 10 00 00 00 00 00 FF 0F 8E [10:02:19]process_action close_receipt done [10:02:19]requested_data is exist [10:02:19]produce_requested_data [10:02:19]requested_item fm.sn is exist - process it [10:02:19]wFMCommunicate request_size=4 [10:02:19]MH_SAM_APDU [10:02:19]CAPDU: 80 11 00 00 [10:02:19]Write to MH i2c: E2 08 00 6A 10 80 11 00 00 00 00 00 00 F4 [10:02:19]Write i2c OK [10:02:19]MH_I2C_Read... [10:02:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:19]Read from MH i2c: E2 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 17 00 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 17 00 6A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 47 [10:02:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:02:19]wFMCommunicate OK [10:02:19]requested_item fd.num is exist - process it [10:02:19]SAM_PROTO_GetFieldsCounters [10:02:19]wFMCommunicate request_size=4 [10:02:19]MH_SAM_APDU [10:02:19]CAPDU: 80 13 00 00 [10:02:19]Write to MH i2c: E2 08 00 6B 10 80 13 00 00 00 00 00 00 F7 [10:02:19]Write i2c OK [10:02:19]MH_I2C_Read... [10:02:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:19]Read from MH i2c: E2 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 62 00 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 62 00 6B 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 6B DA 02 00 0E 04 04 00 87 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 8C [10:02: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 6B DA 02 00 0E 04 04 00 87 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:02:19]wFMCommunicate OK [10:02:19]SAM_PROTO_GetFieldsCounters done [10:02:19]requested_item shift.num is exist - process it [10:02:19]requested_item shift.opened is exist - process it [10:02:19]req_shift_opened [10:02:19]FM_GetShiftState [10:02:19]SAM_PROTO_GetShiftState [10:02:19]wFMCommunicate request_size=4 [10:02:19]MH_SAM_APDU [10:02:19]CAPDU: 80 13 01 00 [10:02:20]Write to MH i2c: E2 08 00 6C 10 80 13 01 00 00 00 00 00 F9 [10:02:20]Write i2c OK [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 [10:02:20]MH_I2C_Read... [10:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:20]Read from MH i2c: E2 0E 00 [10:02:20]MH_I2C_Read... [10:02:20]Read from MH i2c: E2 0E 00 6C 10 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 78 [10:02:20]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:02:20]wFMCommunicate OK [10:02:20]SAM_PROTO_GetShiftState done [10:02:20]FM_GetShiftState done [10:02:20]req_shift_opened done [10:02:20]requested_item shift.open_date is exist - process it [10:02:20]req_shift_open_date [10:02:20]req_shift_open_date done [10:02:20]produce_requested_data done [10:02:20]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186987,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [10:02:20]process_action_free close_receipt [10:02:20]json_value_free [10:02:20]json_value_free done [10:02:20]process_json_proto returns [10:02:20]Send response to host [10:02:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186987,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [10:02:20]free response buf [10:02:20]execute_script done [10:02:20]execute_script returns [10:02:20]free content buf [10:02:20]Sock 9.Close socket [10:02:20]Sock 9.Thread stoped [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:04]accept exits with 10 [10:03:04]New connection [10:03:04]New thread 3066879332 created [10:03:04]Thread 3067022692 joined [10:03:04]Waiting for new connection... [10:03:04] Sock 10.Parse request [10:03:04]Sock 10.Check first char [10:03:04]Sock 10.First char is OK [10:03:04]request: POST /json_proto HTTP/1.0 [10:03:04]Method: POST [10:03:04]URL: /json_proto [10:03:04]Method is POST - this is cgi request [10:03:04]url: /json_proto [10:03:04]query_string will be loaded in cgi processing [10:03:04]execute_cgi json_proto POST (null) [10:03:04]execute_cgi path=json_proto method=POST [10:03:04]POST find Content-Length [10:03:04]Host: 172.17.46.131:8080 [10:03:04]Content-Length: 682 [10:03:04]Content-Type: application/json [10:03:04] [10:03:04]POST finish read [10:03:04]Found Content-Length = 682 [10:03:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412138", "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" ] } } [10:03:04]execute_script... [10:03: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)412138", "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" ] } } [10:03:04]POST & json_proto [10:03:04]process_json_proto [10:03:04]json parsed OK: [10:03:04]protocol is kg_v1.0 [10:03:04]action value=close_receipt [10:03:04]process_action close_receipt [10:03:04]cmd_close_receipt [10:03:04]MH_GetDate [10:03:04]Write to MH i2c: F0 00 00 6D 10 6C [10:03:04]Write i2c OK [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: F0 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: F0 09 00 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: F0 09 00 6D 10 00 5B AC B5 67 7E 41 4F 65 0B [10:03:04]GetLastDocTimeStamp 1739959338 [10:03:04]current date 1739959387 [10:03:04]FM_GetShiftState [10:03:04]SAM_PROTO_GetShiftState [10:03:04]wFMCommunicate request_size=4 [10:03:04]MH_SAM_APDU [10:03:04]CAPDU: 80 13 01 00 [10:03:04]Write to MH i2c: E2 08 00 6E 10 80 13 01 00 00 00 00 00 FB [10:03:04]Write i2c OK [10:03:04]MH_I2C_Read... [10:03:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:04]Read from MH i2c: E2 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: E2 0E 00 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: E2 0E 00 6E 10 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 7A [10:03:04]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:03:04]wFMCommunicate OK [10:03:04]SAM_PROTO_GetShiftState done [10:03:04]FM_GetShiftState done [10:03:04]opened in 1739929631 [10:03:04]opened+sec_in_day 1740016031 [10:03:04]quantity*price = 100012 [10:03:04]sum+1 = 100014 [10:03:04]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 СНО: Общий режим Чек 54 19.02.2025 10:03 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186988 ФПД: 257573447563458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T100307&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186988&fm=257573447563458&tin=02508201610067®Number=0000000000091857&sum=100000 [10:03:05]StoreToDocumentArchive [10:03:05]shift 647 fd 186988 [10:03:05]save to /storage/0647/doc_00186988 [10:03:05]save last doc name /storage/0647/doc_00186988 to /storage/kkm_last_doc_name [10:03:05]save OK [10:03:05]Clear old archive folders... [10:03:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:05]tlvbuf is 005D6000 [10:03:05]SAM_PROTO_ClearQueue [10:03:05]wFMCommunicate request_size=4 [10:03:05]MH_SAM_APDU [10:03:05]CAPDU: 80 09 00 00 [10:03:05]Write to MH i2c: E2 08 00 7B 10 80 09 00 00 00 00 00 00 FD [10:03:05]Write i2c OK [10:03:05]MH_I2C_Read... [10:03:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:05]Read from MH i2c: E2 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: E2 03 00 [10:03:05]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 03 00 7B 10 00 90 00 FF [10:03:06]RAPDU: 90 00 [10:03:06]wFMCommunicate OK [10:03:06]SAM_PROTO_ClearQueue done [10:03:06]KKMCreateOFDPacket [10:03:06]OFDProtocolAddRootSTLVToBuf [10:03:06]FM_MakeSignedData [10:03:06]FM_MakeSignedData [10:03:06]SAM_PROTO_SignData [10:03:06]wFMCommunicate request_size=4 [10:03:06]MH_SAM_APDU [10:03:06]CAPDU: 80 0D 01 02 [10:03:06]Write to MH i2c: E2 08 00 7C 10 80 0D 01 02 00 00 00 00 05 [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:06]Read from MH i2c: E2 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 03 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 03 00 7C 10 00 90 00 00 [10:03:06]RAPDU: 90 00 [10:03:06]wFMCommunicate OK [10:03:06]wFMCommunicate request_size=255 [10:03:06]MH_SAM_APDU [10:03: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 36 00 00 00 F4 03 04 00 5B AC 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 6C DA 02 00 35 04 06 00 EA [10:03:06]Write to MH i2c: E2 02 01 7D 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 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 36 00 00 00 F4 03 04 00 5B AC 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 6C DA 02 00 35 04 06 00 EA 00 00 8A [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:06]Read from MH i2c: E2 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 03 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 03 00 7D 10 00 90 00 01 [10:03:06]RAPDU: 90 00 [10:03:06]wFMCommunicate OK [10:03:06]wFMCommunicate request_size=10 [10:03:06]MH_SAM_APDU [10:03:06]CAPDU: 80 0D 02 02 05 42 FD D8 78 C2 [10:03:06]Write to MH i2c: E2 0D 00 7E 10 80 0D 02 02 05 00 42 FD D8 78 C2 00 00 63 [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:06]Read from MH i2c: E2 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 03 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 03 00 7E 10 00 90 00 02 [10:03:06]RAPDU: 90 00 [10:03:06]wFMCommunicate OK [10:03:06]wFMCommunicate request_size=4 [10:03:06]MH_SAM_APDU [10:03:06]CAPDU: 80 0D 03 02 [10:03:06]Write to MH i2c: E2 08 00 7F 10 80 0D 03 02 00 00 00 00 0A [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:06]Read from MH i2c: E2 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 0B 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 0B 00 7F 10 00 95 60 71 2F DF C5 87 CD 90 00 98 [10:03:06]RAPDU: 95 60 71 2F DF C5 87 CD 90 00 [10:03:06]wFMCommunicate OK [10:03:06]SAM_PROTO_SignData done [10:03:06]FM_MakeSignedData done [10:03:06]CreateOFDProtocolMessage [10:03:06]wFMCommunicate request_size=4 [10:03:06]MH_SAM_APDU [10:03:06]CAPDU: 80 11 00 00 [10:03:06]Write to MH i2c: E2 08 00 80 10 80 11 00 00 00 00 00 00 0A [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:06]Read from MH i2c: E2 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 17 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 17 00 80 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5D [10:03: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:03:06]wFMCommunicate OK [10:03:06]CreateOFDProtocolMessage done [10:03:06]OFDSenderStorePacket 186988 [10:03:06]StoreOFDPacket docnum=186988 [10:03: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 DD 2F 07 01 34 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 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 36 00 00 00 F4 03 04 00 5B AC 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 6C DA 02 00 35 04 06 00 EA 42 FD D8 78 C2 95 60 71 2F DF C5 87 CD [10:03:06]CheckFolder [10:03:06]dirname=/storage/ofd_packets [10:03:06]CheckFolder done [10:03:06]ProducePacketName [10:03:06]name=ofd_packets/00186988 [10:03:06]NVStorageSaveData ofd_packets/00186988 [10:03:06]File name is /storage/ofd_packets/00186988 [10:03:06]Write 301 bytes [10:03:06]NVStorageSaveData done [10:03:06]OFDSenderStorePacket done [10:03:06]KKMCreateOFDPacket done [10:03:06]NVStorageSaveData kkm_last_timestamp [10:03:06]File name is /storage/kkm_last_timestamp [10:03:06]Write 4 bytes [10:03:06]NVStorageSaveData done [10:03:06]OFD Sender: Processing packet 186988 [packets to send 49, broken 48] [10:03:06]ProducePacketName [10:03:06]name=ofd_packets/00186988 [10:03:06]OFD Sender: To server: pG, [10:03:06]CommunicateWithHost lk.salyk.kg:30040 [10:03:06]ConnectInit lk.salyk.kg [10:03:06]ExternCall_PrintAddStr [10:03:06]wPrintStart [10:03:06]Write to MH i2c: 01 00 00 81 10 91 [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: 01 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: 01 07 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: 01 07 00 81 10 00 00 00 00 00 FF 0F A6 [10:03:06]RasterBufferAndPrint [10:03:06]line Счет N : (1)412138 [10:03:06]line ИНН: 02508201610067 [10:03:06]line Контрольно-Кассовый Чек [10:03:06]line ПРОДАЖА [10:03:06]line ТРК (МРК, ГНК) : 33 [10:03:06]line Товар: 2710124500 [10:03:06]line Аи-95-К-5 [10:03:06]line 13.910 * 71.90 [10:03:06]line = 1000.13 [10:03:06]line НДС 12% НСП 1% [10:03:06]line > о реализуемом товаре [10:03:06]line ОКРУГЛЕНИЕ: -0.13 [10:03:06]line ИТОГО: 1000.00 [10:03:06]line Внесено: 1000.00 [10:03:06]line СДАЧА: 0.00 [10:03:06]line НСП 1% : 8.85 [10:03:06]line НДС 12% : 106.21 [10:03:06]line Наличными: 1000.00 [10:03:06]line Безнал.: 0.00 [10:03:06]line Место: АЗС № 92 "Партнер Нефть" [10:03:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:03:06]line СНО: Общий режим [10:03:06]line Чек 54 19.02.2025 10:03 [10:03:06]line Смена: 647 ФФД: 1.0 [10:03:06]line ЗНМ: 0300000118 [10:03:06]line РНМ: 0000000000091857 [10:03:06]line Версия ККМ: 001 [10:03:06]line ФМ: 0000000000871826 [10:03:06]line ФД: 186988 [10:03:06]line ФПД: 257573447563458 [10:03:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T100307&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186988&fm=257573447563458&tin=02508201610067®Number=0000000000091857&sum=100000 [10:03:06]Connected sock=11 [10:03: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 DD 2F 07 01 34 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 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 36 00 00 00 F4 03 04 00 5B AC 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 6C DA 02 00 35 04 06 00 EA 42 FD D8 78 C2 95 60 71 2F DF C5 87 CD [10:03:06]written 0, free lines is 4095 [10:03: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 4F BB 47 00 3E C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6C DA 02 00 F4 03 04 00 AF 52 B5 67 B6 04 01 00 00 94 C3 23 73 DA 85 2A 98 [10:03:07]CommunicateWithHost err = 0 [10:03:07]CheckOFDResponse [10:03:07]1017 (14) - 77093643461234 [10:03:07]1041 (16) - 0000000000871826 [10:03:07]1040 (4) - 186988 [10:03:07]1012 (4) - 19.02.2025 03:40 [10:03:07]1206 (1) - 0 [10:03:07]OFD Sender: Remove packet 186988 [10:03:07]ProducePacketName [10:03:07]name=ofd_packets/00186988 [10:03:07]NVStorageDeleteData [10:03:07]Write to MH i2c: 01 00 00 AC 10 BC [10:03:07]Write i2c OK [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: 01 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: 01 07 00 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: 01 07 00 AC 10 00 00 00 00 00 EA 0C B9 [10:03:07]RasterBufferAndPrint [10:03:07]line [10:03:07]line [10:03:07]line [10:03:07]line [10:03:07]line [10:03:07]written 0, free lines is 3312 [10:03:07]MH_Cut [10:03:07]Write to MH i2c: D1 01 00 B3 10 01 95 [10:03:07]Write i2c OK [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: D1 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: D1 01 00 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: D1 01 00 B3 10 00 94 [10:03:07]Write to MH i2c: 01 00 00 B4 10 C4 [10:03:07]Write i2c OK [10:03:07]MH_I2C_Read... [10:03:07]OFD Sender: No OFD packet to send [10:03:07]*** Cut start [10:03:07]*** Partial cut [10:03:07]*** CUTSNS_PIN = 1 [10:03:08]*** CUTSNS_PIN = 0 [10:03:08]*** Brake cut motor [10:03:08]Read from MH i2c: 01 [10:03:08]MH_I2C_Read... [10:03:08]*** Stop cut motor [10:03:08]*** Cut end [10:03:08]Read from MH i2c: 01 07 00 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: 01 07 00 B4 10 00 00 00 00 00 FF 0F D9 [10:03:08]process_action close_receipt done [10:03:08]requested_data is exist [10:03:08]produce_requested_data [10:03:08]requested_item fm.sn is exist - process it [10:03:08]wFMCommunicate request_size=4 [10:03:08]MH_SAM_APDU [10:03:08]CAPDU: 80 11 00 00 [10:03:08]Write to MH i2c: E2 08 00 B5 10 80 11 00 00 00 00 00 00 3F [10:03:08]Write i2c OK [10:03:08]MH_I2C_Read... [10:03:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:08]Read from MH i2c: E2 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 17 00 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 17 00 B5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 92 [10:03:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:03:08]wFMCommunicate OK [10:03:08]requested_item fd.num is exist - process it [10:03:08]SAM_PROTO_GetFieldsCounters [10:03:08]wFMCommunicate request_size=4 [10:03:08]MH_SAM_APDU [10:03:08]CAPDU: 80 13 00 00 [10:03:08]Write to MH i2c: E2 08 00 B6 10 80 13 00 00 00 00 00 00 42 [10:03:08]Write i2c OK [10:03:08]MH_I2C_Read... [10:03:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:08]Read from MH i2c: E2 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 62 00 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 62 00 B6 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 6C DA 02 00 0E 04 04 00 87 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 DB [10:03: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 6C DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:08]wFMCommunicate OK [10:03:08]SAM_PROTO_GetFieldsCounters done [10:03:08]requested_item shift.num is exist - process it [10:03:08]requested_item shift.opened is exist - process it [10:03:08]req_shift_opened [10:03:08]FM_GetShiftState [10:03:08]SAM_PROTO_GetShiftState [10:03:08]wFMCommunicate request_size=4 [10:03:08]MH_SAM_APDU [10:03:08]CAPDU: 80 13 01 00 [10:03:08]Write to MH i2c: E2 08 00 B7 10 80 13 01 00 00 00 00 00 44 [10:03:08]Write i2c OK [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 [10:03:08]MH_I2C_Read... [10:03:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:08]Read from MH i2c: E2 0E 00 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 0E 00 B7 10 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C3 [10:03:08]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:03:08]wFMCommunicate OK [10:03:08]SAM_PROTO_GetShiftState done [10:03:08]FM_GetShiftState done [10:03:08]req_shift_opened done [10:03:08]requested_item shift.open_date is exist - process it [10:03:08]req_shift_open_date [10:03:08]req_shift_open_date done [10:03:08]produce_requested_data done [10:03:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186988,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [10:03:08]process_action_free close_receipt [10:03:08]json_value_free [10:03:08]json_value_free done [10:03:08]process_json_proto returns [10:03:08]Send response to host [10:03:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186988,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [10:03:08]free response buf [10:03:08]execute_script done [10:03:08]execute_script returns [10:03:08]free content buf [10:03:08]Sock 10.Close socket [10:03:08]Sock 10.Thread stoped [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:25]accept exits with 7 [10:05:25]New connection [10:05:25]New thread 3067022692 created [10:05:25]Thread 3066879332 joined [10:05:25]Waiting for new connection... [10:05:25] Sock 7.Parse request [10:05:25]Sock 7.Check first char [10:05:25]Sock 7.First char is OK [10:05:25]request: POST /json_proto HTTP/1.0 [10:05:25]Method: POST [10:05:25]URL: /json_proto [10:05:25]Method is POST - this is cgi request [10:05:25]url: /json_proto [10:05:25]query_string will be loaded in cgi processing [10:05:25]execute_cgi json_proto POST (null) [10:05:25]execute_cgi path=json_proto method=POST [10:05:25]POST find Content-Length [10:05:25]Host: 172.17.46.131:8080 [10:05:25]Content-Length: 682 [10:05:25]Content-Type: application/json [10:05:25] [10:05:25]POST finish read [10:05:25]Found Content-Length = 682 [10:05:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412139", "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" ] } } [10:05:25]execute_script... [10:05: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)412139", "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" ] } } [10:05:25]POST & json_proto [10:05:25]process_json_proto [10:05:25]json parsed OK: [10:05:25]protocol is kg_v1.0 [10:05:25]action value=close_receipt [10:05:25]process_action close_receipt [10:05:25]cmd_close_receipt [10:05:25]MH_GetDate [10:05:25]Write to MH i2c: F0 00 00 B8 10 B7 [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: F0 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: F0 09 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: F0 09 00 B8 10 00 E8 AC B5 67 7E 41 4F 65 E3 [10:05:25]GetLastDocTimeStamp 1739959387 [10:05:25]current date 1739959528 [10:05:25]FM_GetShiftState [10:05:25]SAM_PROTO_GetShiftState [10:05:25]wFMCommunicate request_size=4 [10:05:25]MH_SAM_APDU [10:05:25]CAPDU: 80 13 01 00 [10:05:25]Write to MH i2c: E2 08 00 B9 10 80 13 01 00 00 00 00 00 46 [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:25]Read from MH i2c: E2 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 0E 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 0E 00 B9 10 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C5 [10:05:25]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:05:25]wFMCommunicate OK [10:05:25]SAM_PROTO_GetShiftState done [10:05:25]FM_GetShiftState done [10:05:25]opened in 1739929631 [10:05:25]opened+sec_in_day 1740016031 [10:05:25]quantity*price = 100023 [10:05:25]sum+1 = 100025 [10:05:25]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 СНО: Общий режим Чек 55 19.02.2025 10:05 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186989 ФПД: 42293872030680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T100528&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186989&fm=42293872030680&tin=02508201610067®Number=0000000000091857&sum=100000 [10:05:27]StoreToDocumentArchive [10:05:27]shift 647 fd 186989 [10:05:27]save to /storage/0647/doc_00186989 [10:05:27]save last doc name /storage/0647/doc_00186989 to /storage/kkm_last_doc_name [10:05:27]save OK [10:05:27]Clear old archive folders... [10:05:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:27]tlvbuf is 005B0910 [10:05:27]SAM_PROTO_ClearQueue [10:05:27]wFMCommunicate request_size=4 [10:05:27]MH_SAM_APDU [10:05:27]CAPDU: 80 09 00 00 [10:05:27]Write to MH i2c: E2 08 00 C6 10 80 09 00 00 00 00 00 00 48 [10:05:27]Write i2c OK [10:05:27]MH_I2C_Read... [10:05:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:27]Read from MH i2c: E2 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: E2 03 00 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: E2 03 00 C6 10 00 90 00 4A [10:05:27]RAPDU: 90 00 [10:05:27]wFMCommunicate OK [10:05:27]SAM_PROTO_ClearQueue done [10:05:27]KKMCreateOFDPacket [10:05:27]OFDProtocolAddRootSTLVToBuf [10:05:27]FM_MakeSignedData [10:05:27]FM_MakeSignedData [10:05:27]SAM_PROTO_SignData [10:05:27]wFMCommunicate request_size=4 [10:05:27]MH_SAM_APDU [10:05:27]CAPDU: 80 0D 01 02 [10:05:27]Write to MH i2c: E2 08 00 C7 10 80 0D 01 02 00 00 00 00 50 [10:05:27]Write i2c OK [10:05:27]MH_I2C_Read... [10:05:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:27]Read from MH i2c: E2 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: E2 03 00 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: E2 03 00 C7 10 00 90 00 4B [10:05:27]RAPDU: 90 00 [10:05:27]wFMCommunicate OK [10:05:27]wFMCommunicate request_size=255 [10:05:27]MH_SAM_APDU [10:05: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 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 37 00 00 00 F4 03 04 00 E8 AC 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 6D DA 02 00 35 04 06 00 26 [10:05:27]Write to MH i2c: E2 02 01 C8 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 37 00 00 00 F4 03 04 00 E8 AC 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 6D DA 02 00 35 04 06 00 26 00 00 2C [10:05:27]Write i2c OK [10:05:27]MH_I2C_Read... [10:05:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:27]Read from MH i2c: E2 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: E2 03 00 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: E2 03 00 C8 10 00 90 00 4C [10:05:27]RAPDU: 90 00 [10:05:27]wFMCommunicate OK [10:05:27]wFMCommunicate request_size=10 [10:05:27]MH_SAM_APDU [10:05:27]CAPDU: 80 0D 02 02 05 77 4F 37 F3 D8 [10:05:27]Write to MH i2c: E2 0D 00 C9 10 80 0D 02 02 05 00 77 4F 37 F3 D8 00 00 25 [10:05:27]Write i2c OK [10:05:27]MH_I2C_Read... [10:05:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:27]Read from MH i2c: E2 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: E2 03 00 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: E2 03 00 C9 10 00 90 00 4D [10:05:27]RAPDU: 90 00 [10:05:27]wFMCommunicate OK [10:05:27]wFMCommunicate request_size=4 [10:05:27]MH_SAM_APDU [10:05:27]CAPDU: 80 0D 03 02 [10:05:27]Write to MH i2c: E2 08 00 CA 10 80 0D 03 02 00 00 00 00 55 [10:05:27]Write i2c OK [10:05:27]MH_I2C_Read... [10:05:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:27]Read from MH i2c: E2 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: E2 0B 00 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: E2 0B 00 CA 10 00 D2 3C F2 1C 13 44 53 A7 90 00 C3 [10:05:27]RAPDU: D2 3C F2 1C 13 44 53 A7 90 00 [10:05:27]wFMCommunicate OK [10:05:27]SAM_PROTO_SignData done [10:05:27]FM_MakeSignedData done [10:05:27]CreateOFDProtocolMessage [10:05:27]wFMCommunicate request_size=4 [10:05:27]MH_SAM_APDU [10:05:27]CAPDU: 80 11 00 00 [10:05:27]Write to MH i2c: E2 08 00 CB 10 80 11 00 00 00 00 00 00 55 [10:05:27]Write i2c OK [10:05:27]MH_I2C_Read... [10:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:27]Read from MH i2c: E2 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: E2 17 00 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: E2 17 00 CB 10 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:05: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:05:27]wFMCommunicate OK [10:05:27]CreateOFDProtocolMessage done [10:05:27]OFDSenderStorePacket 186989 [10:05:27]StoreOFDPacket docnum=186989 [10:05: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 7E E6 07 01 70 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 37 00 00 00 F4 03 04 00 E8 AC 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 6D DA 02 00 35 04 06 00 26 77 4F 37 F3 D8 D2 3C F2 1C 13 44 53 A7 [10:05:27]CheckFolder [10:05:27]dirname=/storage/ofd_packets [10:05:27]CheckFolder done [10:05:27]ProducePacketName [10:05:27]name=ofd_packets/00186989 [10:05:27]NVStorageSaveData ofd_packets/00186989 [10:05:27]File name is /storage/ofd_packets/00186989 [10:05:27]Write 301 bytes [10:05:27]NVStorageSaveData done [10:05:27]OFDSenderStorePacket done [10:05:27]KKMCreateOFDPacket done [10:05:27]NVStorageSaveData kkm_last_timestamp [10:05:27]File name is /storage/kkm_last_timestamp [10:05:27]Write 4 bytes [10:05:27]NVStorageSaveData done [10:05:27]ExternCall_PrintAddStr [10:05:27]wPrintStart [10:05:27]Write to MH i2c: 01 00 00 CC 10 DC [10:05:27]Write i2c OK [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: 01 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: 01 07 00 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: 01 07 00 CC 10 00 00 00 00 00 FF 0F F1 [10:05:27]RasterBufferAndPrint [10:05:27]line Счет N : (1)412139 [10:05:27]line ИНН: 02508201610067 [10:05:27]line Контрольно-Кассовый Чек [10:05:27]line ПРОДАЖА [10:05:27]line ТРК (МРК, ГНК) : 42 [10:05:27]line Товар: 2710124130 [10:05:27]line Аи-92-К-2 [10:05:27]line 15.580 * 64.20 [10:05:27]line = 1000.24 [10:05:27]line НДС 12% НСП 1% [10:05:27]line > о реализуемом товаре [10:05:27]line ОКРУГЛЕНИЕ: -0.24 [10:05:27]line ИТОГО: 1000.00 [10:05:27]line Внесено: 1000.00 [10:05:27]line СДАЧА: 0.00 [10:05:27]line НСП 1% : 8.85 [10:05:27]line НДС 12% : 106.22 [10:05:27]line Наличными: 1000.00 [10:05:27]line Безнал.: 0.00 [10:05:27]line Место: АЗС № 92 "Партнер Нефть" [10:05:27]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:05:27]line СНО: Общий режим [10:05:27]line Чек 55 19.02.2025 10:05 [10:05:27]line Смена: 647 ФФД: 1.0 [10:05:27]line ЗНМ: 0300000118 [10:05:27]line РНМ: 0000000000091857 [10:05:27]line Версия ККМ: 001 [10:05:27]line ФМ: 0000000000871826 [10:05:27]line ФД: 186989 [10:05:27]line ФПД: 42293872030680 [10:05:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T100528&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186989&fm=42293872030680&tin=02508201610067®Number=0000000000091857&sum=100000 [10:05:27]OFD Sender: Processing packet 186989 [packets to send 49, broken 48] [10:05:27]ProducePacketName [10:05:27]name=ofd_packets/00186989 [10:05:27]OFD Sender: To server: pG, [10:05:27]CommunicateWithHost lk.salyk.kg:30040 [10:05:27]ConnectInit lk.salyk.kg [10:05:27]written 0, free lines is 4095 [10:05:28]Connected sock=10 [10:05: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 7E E6 07 01 70 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 37 00 00 00 F4 03 04 00 E8 AC 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 6D DA 02 00 35 04 06 00 26 77 4F 37 F3 D8 D2 3C F2 1C 13 44 53 A7 [10:05: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 38 2D 47 00 D6 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 6D DA 02 00 F4 03 04 00 3D 53 B5 67 B6 04 01 00 00 C9 E7 F0 0D 31 80 1B 0F [10:05:28]CommunicateWithHost err = 0 [10:05:28]CheckOFDResponse [10:05:28]1017 (14) - 77093643461234 [10:05:28]1041 (16) - 0000000000871826 [10:05:28]1040 (4) - 186989 [10:05:28]1012 (4) - 19.02.2025 03:42 [10:05:28]1206 (1) - 0 [10:05:28]OFD Sender: Remove packet 186989 [10:05:28]ProducePacketName [10:05:28]name=ofd_packets/00186989 [10:05:28]NVStorageDeleteData [10:05:28]Write to MH i2c: 01 00 00 F7 10 07 [10:05:28]Write i2c OK [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: 01 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: 01 07 00 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: 01 07 00 F7 10 00 00 00 00 00 F0 0C 0A [10:05:28]RasterBufferAndPrint [10:05:28]line [10:05:28]line [10:05:28]line [10:05:28]line [10:05:28]line [10:05:28]written 0, free lines is 3318 [10:05:28]MH_Cut [10:05:28]Write to MH i2c: D1 01 00 FE 10 01 E0 [10:05:28]Write i2c OK [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: D1 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: D1 01 00 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: D1 01 00 FE 10 00 DF [10:05:28]Write to MH i2c: 01 00 00 FF 10 0F [10:05:28]Write i2c OK [10:05:28]MH_I2C_Read... [10:05:28]OFD Sender: No OFD packet to send [10:05:29]*** Cut start [10:05:29]*** Partial cut [10:05:29]*** CUTSNS_PIN = 1 [10:05:29]*** CUTSNS_PIN = 0 [10:05:29]*** Brake cut motor [10:05:29]Read from MH i2c: 01 [10:05:29]MH_I2C_Read... [10:05:29]*** Stop cut motor [10:05:29]*** Cut end [10:05:29]Read from MH i2c: 01 07 00 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: 01 07 00 FF 10 00 00 00 00 00 FF 0F 24 [10:05:29]process_action close_receipt done [10:05:29]requested_data is exist [10:05:29]produce_requested_data [10:05:29]requested_item fm.sn is exist - process it [10:05:29]wFMCommunicate request_size=4 [10:05:29]MH_SAM_APDU [10:05:29]CAPDU: 80 11 00 00 [10:05:29]Write to MH i2c: E2 08 00 00 11 80 11 00 00 00 00 00 00 8B [10:05:29]Write i2c OK [10:05:29]MH_I2C_Read... [10:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:29]Read from MH i2c: E2 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: E2 17 00 [10:05:29]MH_I2C_Read... [10:05:29]Read from MH i2c: E2 17 00 00 11 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:05: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:05:29]wFMCommunicate OK [10:05:29]requested_item fd.num is exist - process it [10:05:29]SAM_PROTO_GetFieldsCounters [10:05:29]wFMCommunicate request_size=4 [10:05:29]MH_SAM_APDU [10:05:29]CAPDU: 80 13 00 00 [10:05:29]Write to MH i2c: E2 08 00 01 11 80 13 00 00 00 00 00 00 8E [10:05:29]Write i2c OK [10:05:29]MH_I2C_Read... [10:05:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:30]Read from MH i2c: E2 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: E2 62 00 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: E2 62 00 01 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 6D DA 02 00 0E 04 04 00 87 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 2B [10:05: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 6D DA 02 00 0E 04 04 00 87 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:05:30]wFMCommunicate OK [10:05:30]SAM_PROTO_GetFieldsCounters done [10:05:30]requested_item shift.num is exist - process it [10:05:30]requested_item shift.opened is exist - process it [10:05:30]req_shift_opened [10:05:30]FM_GetShiftState [10:05:30]SAM_PROTO_GetShiftState [10:05:30]wFMCommunicate request_size=4 [10:05:30]MH_SAM_APDU [10:05:30]CAPDU: 80 13 01 00 [10:05:30]Write to MH i2c: E2 08 00 02 11 80 13 01 00 00 00 00 00 90 [10:05:30]Write i2c OK [10:05:30]MH_I2C_Read... [10:05:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:30]Read from MH i2c: E2 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: E2 0E 00 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: E2 0E 00 02 11 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 0F [10:05:30]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:05:30]wFMCommunicate OK [10:05:30]SAM_PROTO_GetShiftState done [10:05:30]FM_GetShiftState done [10:05:30]req_shift_opened done [10:05:30]requested_item shift.open_date is exist - process it [10:05:30]req_shift_open_date [10:05:30]req_shift_open_date done [10:05:30]produce_requested_data done [10:05:30]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186989,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [10:05:30]process_action_free close_receipt [10:05:30]json_value_free [10:05:30]json_value_free done [10:05:30]process_json_proto returns [10:05:30]Send response to host [10:05:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186989,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [10:05:30]free response buf [10:05:30]execute_script done [10:05:30]execute_script returns [10:05:30]free content buf [10:05:30]Sock 7.Close socket [10:05:30]Sock 7.Thread stoped [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:08]OFD Sender: No OFD packet to send [10:06:13]OFD Sender: No OFD packet to send [10:06:18]OFD Sender: No OFD packet to send [10:06:23]OFD Sender: No OFD packet to send [10:06:28]OFD Sender: No OFD packet to send [10:06:33]OFD Sender: No OFD packet to send [10:06:38]OFD Sender: No OFD packet to send [10:06:43]OFD Sender: No OFD packet to send [10:06:48]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10:07:03]OFD Sender: No OFD packet to send [10:07:08]OFD Sender: No OFD packet to send [10:07:13]OFD Sender: No OFD packet to send [10:07:18]OFD Sender: No OFD packet to send [10:07:23]OFD Sender: No OFD packet to send [10:07:28]OFD Sender: No OFD packet to send [10:07:33]OFD Sender: No OFD packet to send [10:07:38]OFD Sender: No OFD packet to send [10:07:43]OFD Sender: No OFD packet to send [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:38]accept exits with 9 [10:09:38]New connection [10:09:38]New thread 3066879332 created [10:09:38]Thread 3067022692 joined [10:09:38]Waiting for new connection... [10:09:38] Sock 9.Parse request [10:09:38]Sock 9.Check first char [10:09:38]Sock 9.First char is OK [10:09:38]request: POST /json_proto HTTP/1.0 [10:09:38]Method: POST [10:09:38]URL: /json_proto [10:09:38]Method is POST - this is cgi request [10:09:38]url: /json_proto [10:09:38]query_string will be loaded in cgi processing [10:09:38]execute_cgi json_proto POST (null) [10:09:38]execute_cgi path=json_proto method=POST [10:09:38]POST find Content-Length [10:09:38]Host: 172.17.46.131:8080 [10:09:38]Content-Length: 678 [10:09:38]Content-Type: application/json [10:09:38] [10:09:38]POST finish read [10:09:38]Found Content-Length = 678 [10:09:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412140", "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" ] } } [10:09:38]execute_script... [10:09:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412140", "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" ] } } [10:09:38]POST & json_proto [10:09:38]process_json_proto [10:09:38]json parsed OK: [10:09:38]protocol is kg_v1.0 [10:09:38]action value=close_receipt [10:09:38]process_action close_receipt [10:09:38]cmd_close_receipt [10:09:38]MH_GetDate [10:09:38]Write to MH i2c: F0 00 00 03 11 03 [10:09:38]Write i2c OK [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: F0 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: F0 09 00 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: F0 09 00 03 11 00 E4 AD B5 67 7E 41 4F 65 2C [10:09:38]GetLastDocTimeStamp 1739959528 [10:09:38]current date 1739959780 [10:09:38]FM_GetShiftState [10:09:38]SAM_PROTO_GetShiftState [10:09:38]wFMCommunicate request_size=4 [10:09:38]MH_SAM_APDU [10:09:38]CAPDU: 80 13 01 00 [10:09:38]Write to MH i2c: E2 08 00 04 11 80 13 01 00 00 00 00 00 92 [10:09:38]Write i2c OK [10:09:38]MH_I2C_Read... [10:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:38]Read from MH i2c: E2 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 0E 00 [10:09:38]MH_I2C_Read... [10:09:38]Read from MH i2c: E2 0E 00 04 11 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 11 [10:09:38]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:09:38]wFMCommunicate OK [10:09:38]SAM_PROTO_GetShiftState done [10:09:38]FM_GetShiftState done [10:09:38]opened in 1739929631 [10:09:38]opened+sec_in_day 1740016031 [10:09:38]quantity*price = 70042 [10:09:38]sum+1 = 70043 [10:09:38]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 СНО: Общий режим Чек 56 19.02.2025 10:09 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186990 ФПД: 130516481403040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T100940&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186990&fm=130516481403040&tin=02508201610067®Number=0000000000091857&sum=70000 [10:09:39]StoreToDocumentArchive [10:09:39]shift 647 fd 186990 [10:09:39]save to /storage/0647/doc_00186990 [10:09:39]save last doc name /storage/0647/doc_00186990 to /storage/kkm_last_doc_name [10:09:39]save OK [10:09:39]Clear old archive folders... [10:09:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:39]tlvbuf is 005EDCC0 [10:09:39]SAM_PROTO_ClearQueue [10:09:39]wFMCommunicate request_size=4 [10:09:39]MH_SAM_APDU [10:09:39]CAPDU: 80 09 00 00 [10:09:39]Write to MH i2c: E2 08 00 11 11 80 09 00 00 00 00 00 00 94 [10:09:39]Write i2c OK [10:09:39]MH_I2C_Read... [10:09:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:39]Read from MH i2c: E2 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 03 00 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 03 00 11 11 00 90 00 96 [10:09:39]RAPDU: 90 00 [10:09:39]wFMCommunicate OK [10:09:39]SAM_PROTO_ClearQueue done [10:09:39]KKMCreateOFDPacket [10:09:39]OFDProtocolAddRootSTLVToBuf [10:09:39]FM_MakeSignedData [10:09:39]FM_MakeSignedData [10:09:39]SAM_PROTO_SignData [10:09:39]wFMCommunicate request_size=4 [10:09:39]MH_SAM_APDU [10:09:39]CAPDU: 80 0D 01 02 [10:09:39]Write to MH i2c: E2 08 00 12 11 80 0D 01 02 00 00 00 00 9C [10:09:39]Write i2c OK [10:09:39]MH_I2C_Read... [10:09:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:39]Read from MH i2c: E2 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 03 00 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 03 00 12 11 00 90 00 97 [10:09:39]RAPDU: 90 00 [10:09:39]wFMCommunicate OK [10:09:39]wFMCommunicate request_size=255 [10:09:39]MH_SAM_APDU [10:09:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 38 00 00 00 F4 03 04 00 E4 AD 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 6E DA 02 00 35 04 06 00 76 [10:09:39]Write to MH i2c: E2 02 01 13 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 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 38 00 00 00 F4 03 04 00 E4 AD 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 6E DA 02 00 35 04 06 00 76 00 00 14 [10:09:39]Write i2c OK [10:09:39]MH_I2C_Read... [10:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:39]Read from MH i2c: E2 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 03 00 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 03 00 13 11 00 90 00 98 [10:09:39]RAPDU: 90 00 [10:09:39]wFMCommunicate OK [10:09:39]wFMCommunicate request_size=10 [10:09:39]MH_SAM_APDU [10:09:39]CAPDU: 80 0D 02 02 05 B4 3C 82 E8 A0 [10:09:39]Write to MH i2c: E2 0D 00 14 11 80 0D 02 02 05 00 B4 3C 82 E8 A0 00 00 A3 [10:09:39]Write i2c OK [10:09:39]MH_I2C_Read... [10:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:39]Read from MH i2c: E2 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 03 00 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 03 00 14 11 00 90 00 99 [10:09:39]RAPDU: 90 00 [10:09:39]wFMCommunicate OK [10:09:39]wFMCommunicate request_size=4 [10:09:39]MH_SAM_APDU [10:09:39]CAPDU: 80 0D 03 02 [10:09:39]Write to MH i2c: E2 08 00 15 11 80 0D 03 02 00 00 00 00 A1 [10:09:39]Write i2c OK [10:09:39]MH_I2C_Read... [10:09:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:39]Read from MH i2c: E2 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 0B 00 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 0B 00 15 11 00 59 FF 25 D1 C1 58 12 63 90 00 7E [10:09:39]RAPDU: 59 FF 25 D1 C1 58 12 63 90 00 [10:09:39]wFMCommunicate OK [10:09:39]SAM_PROTO_SignData done [10:09:39]FM_MakeSignedData done [10:09:39]CreateOFDProtocolMessage [10:09:39]wFMCommunicate request_size=4 [10:09:39]MH_SAM_APDU [10:09:39]CAPDU: 80 11 00 00 [10:09:39]Write to MH i2c: E2 08 00 16 11 80 11 00 00 00 00 00 00 A1 [10:09:39]Write i2c OK [10:09:39]MH_I2C_Read... [10:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:39]Read from MH i2c: E2 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 17 00 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: E2 17 00 16 11 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:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:09:39]wFMCommunicate OK [10:09:39]CreateOFDProtocolMessage done [10:09:39]OFDSenderStorePacket 186990 [10:09:39]StoreOFDPacket docnum=186990 [10:09: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 32 0C 07 01 A5 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 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 38 00 00 00 F4 03 04 00 E4 AD 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 6E DA 02 00 35 04 06 00 76 B4 3C 82 E8 A0 59 FF 25 D1 C1 58 12 63 [10:09:39]CheckFolder [10:09:39]dirname=/storage/ofd_packets [10:09:39]CheckFolder done [10:09:39]ProducePacketName [10:09:39]name=ofd_packets/00186990 [10:09:39]NVStorageSaveData ofd_packets/00186990 [10:09:39]File name is /storage/ofd_packets/00186990 [10:09:39]Write 301 bytes [10:09:39]NVStorageSaveData done [10:09:39]OFDSenderStorePacket done [10:09:39]KKMCreateOFDPacket done [10:09:39]NVStorageSaveData kkm_last_timestamp [10:09:39]File name is /storage/kkm_last_timestamp [10:09:39]Write 4 bytes [10:09:39]NVStorageSaveData done [10:09:39]ExternCall_PrintAddStr [10:09:39]wPrintStart [10:09:39]Write to MH i2c: 01 00 00 17 11 28 [10:09:39]Write i2c OK [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: 01 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: 01 07 00 [10:09:39]MH_I2C_Read... [10:09:39]Read from MH i2c: 01 07 00 17 11 00 00 00 00 00 FF 0F 3D [10:09:39]RasterBufferAndPrint [10:09:39]line Счет N : (1)412140 [10:09:39]line ИНН: 02508201610067 [10:09:39]line Контрольно-Кассовый Чек [10:09:39]line ПРОДАЖА [10:09:39]line ТРК (МРК, ГНК) : 22 [10:09:39]line Товар: 2710124130 [10:09:39]line Аи-92-К-2 [10:09:39]line 10.910 * 64.20 [10:09:39]line = 700.42 [10:09:39]line НДС 12% НСП 1% [10:09:39]line > о реализуемом товаре [10:09:39]line ОКРУГЛЕНИЕ: -0.42 [10:09:39]line ИТОГО: 700.00 [10:09:39]line Внесено: 700.00 [10:09:39]line СДАЧА: 0.00 [10:09:39]line НСП 1% : 6.20 [10:09:39]line НДС 12% : 74.38 [10:09:39]line Наличными: 700.00 [10:09:39]line Безнал.: 0.00 [10:09:39]line Место: АЗС № 92 "Партнер Нефть" [10:09:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:09:39]line СНО: Общий режим [10:09:39]line Чек 56 19.02.2025 10:09 [10:09:39]line Смена: 647 ФФД: 1.0 [10:09:39]line ЗНМ: 0300000118 [10:09:39]line РНМ: 0000000000091857 [10:09:39]line Версия ККМ: 001 [10:09:39]line ФМ: 0000000000871826 [10:09:39]line ФД: 186990 [10:09:39]line ФПД: 130516481403040 [10:09:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T100940&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186990&fm=130516481403040&tin=02508201610067®Number=0000000000091857&sum=70000 [10:09:40]OFD Sender: Processing packet 186990 [packets to send 49, broken 48] [10:09:40]ProducePacketName [10:09:40]name=ofd_packets/00186990 [10:09:40]OFD Sender: To server: pG, [10:09:40]CommunicateWithHost lk.salyk.kg:30040 [10:09:40]ConnectInit lk.salyk.kg [10:09:40]written 0, free lines is 4095 [10:09:40]Connected sock=10 [10:09:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 32 0C 07 01 A5 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 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 38 00 00 00 F4 03 04 00 E4 AD 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 6E DA 02 00 35 04 06 00 76 B4 3C 82 E8 A0 59 FF 25 D1 C1 58 12 63 [10:09:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A8 D8 47 00 C8 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 6E DA 02 00 F4 03 04 00 39 54 B5 67 B6 04 01 00 00 74 2D 24 50 37 70 43 D5 [10:09:40]CommunicateWithHost err = 0 [10:09:40]CheckOFDResponse [10:09:40]1017 (14) - 77093643461234 [10:09:40]1041 (16) - 0000000000871826 [10:09:40]1040 (4) - 186990 [10:09:40]1012 (4) - 19.02.2025 03:47 [10:09:40]1206 (1) - 0 [10:09:40]OFD Sender: Remove packet 186990 [10:09:40]ProducePacketName [10:09:40]name=ofd_packets/00186990 [10:09:40]NVStorageDeleteData [10:09:40]Write to MH i2c: 01 00 00 42 11 53 [10:09:40]Write i2c OK [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: 01 [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: 01 07 00 [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: 01 07 00 42 11 00 00 00 00 00 F7 0C 5D [10:09:40]RasterBufferAndPrint [10:09:40]line [10:09:40]line [10:09:40]line [10:09:40]line [10:09:40]line [10:09:40]written 0, free lines is 3325 [10:09:40]MH_Cut [10:09:40]Write to MH i2c: D1 01 00 49 11 01 2C [10:09:40]Write i2c OK [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: D1 [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: D1 01 00 [10:09:40]MH_I2C_Read... [10:09:40]Read from MH i2c: D1 01 00 49 11 00 2B [10:09:40]Write to MH i2c: 01 00 00 4A 11 5B [10:09:40]Write i2c OK [10:09:40]MH_I2C_Read... [10:09:41]OFD Sender: No OFD packet to send [10:09:41]*** Cut start [10:09:41]*** Partial cut [10:09:41]*** CUTSNS_PIN = 1 [10:09:41]*** CUTSNS_PIN = 0 [10:09:41]*** Brake cut motor [10:09:41]Read from MH i2c: 01 [10:09:41]MH_I2C_Read... [10:09:41]*** Stop cut motor [10:09:41]*** Cut end [10:09:41]Read from MH i2c: 01 07 00 [10:09:41]MH_I2C_Read... [10:09:41]Read from MH i2c: 01 07 00 4A 11 00 00 00 00 00 FF 0F 70 [10:09:41]process_action close_receipt done [10:09:41]requested_data is exist [10:09:41]produce_requested_data [10:09:41]requested_item fm.sn is exist - process it [10:09:41]wFMCommunicate request_size=4 [10:09:41]MH_SAM_APDU [10:09:41]CAPDU: 80 11 00 00 [10:09:41]Write to MH i2c: E2 08 00 4B 11 80 11 00 00 00 00 00 00 D6 [10:09:41]Write i2c OK [10:09:41]MH_I2C_Read... [10:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:42]Read from MH i2c: E2 [10:09:42]MH_I2C_Read... [10:09:42]Read from MH i2c: E2 17 00 [10:09:42]MH_I2C_Read... [10:09:42]Read from MH i2c: E2 17 00 4B 11 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:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:09:42]wFMCommunicate OK [10:09:42]requested_item fd.num is exist - process it [10:09:42]SAM_PROTO_GetFieldsCounters [10:09:42]wFMCommunicate request_size=4 [10:09:42]MH_SAM_APDU [10:09:42]CAPDU: 80 13 00 00 [10:09:42]Write to MH i2c: E2 08 00 4C 11 80 13 00 00 00 00 00 00 D9 [10:09:42]Write i2c OK [10:09:42]MH_I2C_Read... [10:09:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:42]Read from MH i2c: E2 [10:09:42]MH_I2C_Read... [10:09:42]Read from MH i2c: E2 62 00 [10:09:42]MH_I2C_Read... [10:09:42]Read from MH i2c: E2 62 00 4C 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 6E DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [10:09:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:42]wFMCommunicate OK [10:09:42]SAM_PROTO_GetFieldsCounters done [10:09:42]requested_item shift.num is exist - process it [10:09:42]requested_item shift.opened is exist - process it [10:09:42]req_shift_opened [10:09:42]FM_GetShiftState [10:09:42]SAM_PROTO_GetShiftState [10:09:42]wFMCommunicate request_size=4 [10:09:42]MH_SAM_APDU [10:09:42]CAPDU: 80 13 01 00 [10:09:42]Write to MH i2c: E2 08 00 4D 11 80 13 01 00 00 00 00 00 DB [10:09:42]Write i2c OK [10:09:42]MH_I2C_Read... [10:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:42]Read from MH i2c: E2 [10:09:42]MH_I2C_Read... [10:09:42]Read from MH i2c: E2 0E 00 [10:09:42]MH_I2C_Read... [10:09:42]Read from MH i2c: E2 0E 00 4D 11 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 5A [10:09:42]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:09:42]wFMCommunicate OK [10:09:42]SAM_PROTO_GetShiftState done [10:09:42]FM_GetShiftState done [10:09:42]req_shift_opened done [10:09:42]requested_item shift.open_date is exist - process it [10:09:42]req_shift_open_date [10:09:42]req_shift_open_date done [10:09:42]produce_requested_data done [10:09:42]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186990,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [10:09:42]process_action_free close_receipt [10:09:42]json_value_free [10:09:42]json_value_free done [10:09:42]process_json_proto returns [10:09:42]Send response to host [10:09:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186990,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [10:09:42]free response buf [10:09:42]execute_script done [10:09:42]execute_script returns [10:09:42]free content buf [10:09:42]Sock 9.Close socket [10:09:42]Sock 9.Thread stoped [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:29]accept exits with 7 [10:10:29]New connection [10:10:29]New thread 3067022692 created [10:10:29]Thread 3066879332 joined [10:10:29]Waiting for new connection... [10:10:29] Sock 7.Parse request [10:10:29]Sock 7.Check first char [10:10:29]Sock 7.First char is OK [10:10:29]request: POST /json_proto HTTP/1.0 [10:10:29]Method: POST [10:10:29]URL: /json_proto [10:10:29]Method is POST - this is cgi request [10:10:29]url: /json_proto [10:10:29]query_string will be loaded in cgi processing [10:10:29]execute_cgi json_proto POST (null) [10:10:29]execute_cgi path=json_proto method=POST [10:10:29]POST find Content-Length [10:10:29]Host: 172.17.46.131:8080 [10:10:29]Content-Length: 678 [10:10:29]Content-Type: application/json [10:10:29] [10:10:29]POST finish read [10:10:29]Found Content-Length = 678 [10:10:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412141", "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" ] } } [10:10:29]execute_script... [10:10: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)412141", "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" ] } } [10:10:29]POST & json_proto [10:10:29]process_json_proto [10:10:29]json parsed OK: [10:10:29]protocol is kg_v1.0 [10:10:29]action value=close_receipt [10:10:29]process_action close_receipt [10:10:29]cmd_close_receipt [10:10:29]MH_GetDate [10:10:29]Write to MH i2c: F0 00 00 4E 11 4E [10:10:29]Write i2c OK [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: F0 [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: F0 09 00 [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: F0 09 00 4E 11 00 18 AE B5 67 7E 41 4F 65 AC [10:10:29]GetLastDocTimeStamp 1739959780 [10:10:29]current date 1739959832 [10:10:29]FM_GetShiftState [10:10:29]SAM_PROTO_GetShiftState [10:10:29]wFMCommunicate request_size=4 [10:10:29]MH_SAM_APDU [10:10:29]CAPDU: 80 13 01 00 [10:10:29]Write to MH i2c: E2 08 00 4F 11 80 13 01 00 00 00 00 00 DD [10:10:29]Write i2c OK [10:10:29]MH_I2C_Read... [10:10:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:29]Read from MH i2c: E2 [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: E2 0E 00 [10:10:29]MH_I2C_Read... [10:10:29]Read from MH i2c: E2 0E 00 4F 11 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 5C [10:10:29]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:10:29]wFMCommunicate OK [10:10:29]SAM_PROTO_GetShiftState done [10:10:29]FM_GetShiftState done [10:10:29]opened in 1739929631 [10:10:29]opened+sec_in_day 1740016031 [10:10:29]quantity*price = 100042 [10:10:29]sum+1 = 100044 [10:10:29]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 СНО: Общий режим Чек 57 19.02.2025 10:10 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186991 ФПД: 129712182329525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T101032&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186991&fm=129712182329525&tin=02508201610067®Number=0000000000091857&sum=100000 [10:10:30]StoreToDocumentArchive [10:10:30]shift 647 fd 186991 [10:10:30]save to /storage/0647/doc_00186991 [10:10:30]save last doc name /storage/0647/doc_00186991 to /storage/kkm_last_doc_name [10:10:30]save OK [10:10:30]Clear old archive folders... [10:10:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:10:30]tlvbuf is 005D62E0 [10:10:30]SAM_PROTO_ClearQueue [10:10:30]wFMCommunicate request_size=4 [10:10:30]MH_SAM_APDU [10:10:30]CAPDU: 80 09 00 00 [10:10:30]Write to MH i2c: E2 08 00 5C 11 80 09 00 00 00 00 00 00 DF [10:10:30]Write i2c OK [10:10:30]MH_I2C_Read... [10:10:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:30]Read from MH i2c: E2 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 03 00 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 03 00 5C 11 00 90 00 E1 [10:10:30]RAPDU: 90 00 [10:10:30]wFMCommunicate OK [10:10:30]SAM_PROTO_ClearQueue done [10:10:30]KKMCreateOFDPacket [10:10:30]OFDProtocolAddRootSTLVToBuf [10:10:30]FM_MakeSignedData [10:10:30]FM_MakeSignedData [10:10:30]SAM_PROTO_SignData [10:10:30]wFMCommunicate request_size=4 [10:10:30]MH_SAM_APDU [10:10:30]CAPDU: 80 0D 01 02 [10:10:30]Write to MH i2c: E2 08 00 5D 11 80 0D 01 02 00 00 00 00 E7 [10:10:30]Write i2c OK [10:10:30]MH_I2C_Read... [10:10:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:30]Read from MH i2c: E2 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 03 00 [10:10:30]MH_I2C_Read... [10:10:30]Read from MH i2c: E2 03 00 5D 11 00 90 00 E2 [10:10:30]RAPDU: 90 00 [10:10:30]wFMCommunicate OK [10:10:30]wFMCommunicate request_size=255 [10:10:30]MH_SAM_APDU [10:10:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 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 39 00 00 00 F4 03 04 00 18 AE 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 6F DA 02 00 35 04 06 00 75 F8 F8 8D [10:10:30]Write to MH i2c: E2 02 01 5E 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 39 00 00 00 F4 03 04 00 18 AE 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 6F DA 02 00 35 04 06 00 75 F8 F8 8D 00 00 6C [10:10:30]Write i2c OK [10:10:30]MH_I2C_Read... [10:10:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:31]Read from MH i2c: E2 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 03 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 03 00 5E 11 00 90 00 E3 [10:10:31]RAPDU: 90 00 [10:10:31]wFMCommunicate OK [10:10:31]wFMCommunicate request_size=7 [10:10:31]MH_SAM_APDU [10:10:31]CAPDU: 80 0D 02 02 02 00 B5 [10:10:31]Write to MH i2c: E2 0A 00 5F 11 80 0D 02 02 02 00 00 B5 00 00 A3 [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:31]Read from MH i2c: E2 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 03 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 03 00 5F 11 00 90 00 E4 [10:10:31]RAPDU: 90 00 [10:10:31]wFMCommunicate OK [10:10:31]wFMCommunicate request_size=4 [10:10:31]MH_SAM_APDU [10:10:31]CAPDU: 80 0D 03 02 [10:10:31]Write to MH i2c: E2 08 00 60 11 80 0D 03 02 00 00 00 00 EC [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:31]OFD Sender: No OFD packet to send [10:10:31]Read from MH i2c: E2 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 0B 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 0B 00 60 11 00 1D 9B A8 3B 05 00 1F C1 90 00 6D [10:10:31]RAPDU: 1D 9B A8 3B 05 00 1F C1 90 00 [10:10:31]wFMCommunicate OK [10:10:31]SAM_PROTO_SignData done [10:10:31]FM_MakeSignedData done [10:10:31]CreateOFDProtocolMessage [10:10:31]wFMCommunicate request_size=4 [10:10:31]MH_SAM_APDU [10:10:31]CAPDU: 80 11 00 00 [10:10:31]Write to MH i2c: E2 08 00 61 11 80 11 00 00 00 00 00 00 EC [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:31]Read from MH i2c: E2 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 17 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: E2 17 00 61 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3F [10:10:31]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:31]wFMCommunicate OK [10:10:31]CreateOFDProtocolMessage done [10:10:31]OFDSenderStorePacket 186991 [10:10:31]StoreOFDPacket docnum=186991 [10:10: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 31 69 04 01 29 3D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 39 00 00 00 F4 03 04 00 18 AE 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 6F DA 02 00 35 04 06 00 75 F8 F8 8D 00 B5 1D 9B A8 3B 05 00 1F C1 [10:10:31]CheckFolder [10:10:31]dirname=/storage/ofd_packets [10:10:31]CheckFolder done [10:10:31]ProducePacketName [10:10:31]name=ofd_packets/00186991 [10:10:31]NVStorageSaveData ofd_packets/00186991 [10:10:31]File name is /storage/ofd_packets/00186991 [10:10:31]Write 298 bytes [10:10:31]NVStorageSaveData done [10:10:31]OFDSenderStorePacket done [10:10:31]KKMCreateOFDPacket done [10:10:31]NVStorageSaveData kkm_last_timestamp [10:10:31]File name is /storage/kkm_last_timestamp [10:10:31]Write 4 bytes [10:10:31]NVStorageSaveData done [10:10:31]ExternCall_PrintAddStr [10:10:31]wPrintStart [10:10:31]Write to MH i2c: 01 00 00 62 11 73 [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 07 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 07 00 62 11 00 00 00 00 00 FF 0F 88 [10:10:31]RasterBufferAndPrint [10:10:31]line Счет N : (1)412141 [10:10:31]line ИНН: 02508201610067 [10:10:31]line Контрольно-Кассовый Чек [10:10:31]line ПРОДАЖА [10:10:31]line ТРК (МРК, ГНК) : 5 [10:10:31]line Товар: 2710194210 [10:10:31]line ДТ-К-5 [10:10:31]line 13.780 * 72.60 [10:10:31]line = 1000.43 [10:10:31]line НДС 12% НСП 1% [10:10:31]line > о реализуемом товаре [10:10:31]line ОКРУГЛЕНИЕ: -0.43 [10:10:31]line ИТОГО: 1000.00 [10:10:31]line Внесено: 1000.00 [10:10:31]line СДАЧА: 0.00 [10:10:31]line НСП 1% : 8.85 [10:10:31]line НДС 12% : 106.24 [10:10:31]line Наличными: 1000.00 [10:10:31]line Безнал.: 0.00 [10:10:31]line Место: АЗС № 92 "Партнер Нефть" [10:10:31]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:10:31]line СНО: Общий режим [10:10:31]line Чек 57 19.02.2025 10:10 [10:10:31]line Смена: 647 ФФД: 1.0 [10:10:31]line ЗНМ: 0300000118 [10:10:31]line РНМ: 0000000000091857 [10:10:31]line Версия ККМ: 001 [10:10:31]line ФМ: 0000000000871826 [10:10:31]line ФД: 186991 [10:10:31]line ФПД: 129712182329525 [10:10:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T101032&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186991&fm=129712182329525&tin=02508201610067®Number=0000000000091857&sum=100000 [10:10:31]OFD Sender: Processing packet 186991 [packets to send 49, broken 48] [10:10:31]ProducePacketName [10:10:31]name=ofd_packets/00186991 [10:10:31]OFD Sender: To server: pG, [10:10:31]CommunicateWithHost lk.salyk.kg:30040 [10:10:31]ConnectInit lk.salyk.kg [10:10:31]written 0, free lines is 4095 [10:10:31]Connected sock=10 [10:10:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 31 69 04 01 29 3D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 39 00 00 00 F4 03 04 00 18 AE 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 6F DA 02 00 35 04 06 00 75 F8 F8 8D 00 B5 1D 9B A8 3B 05 00 1F C1 [10:10:31]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 50 47 00 2E 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 6F DA 02 00 F4 03 04 00 6C 54 B5 67 B6 04 01 00 00 6B DE 76 8D 3F E1 16 EB [10:10:31]CommunicateWithHost err = 0 [10:10:31]CheckOFDResponse [10:10:31]1017 (14) - 77093643461234 [10:10:31]1041 (16) - 0000000000871826 [10:10:31]1040 (4) - 186991 [10:10:31]1012 (4) - 19.02.2025 03:47 [10:10:31]1206 (1) - 0 [10:10:31]OFD Sender: Remove packet 186991 [10:10:31]ProducePacketName [10:10:31]name=ofd_packets/00186991 [10:10:31]NVStorageDeleteData [10:10:31]Write to MH i2c: 01 00 00 8D 11 9E [10:10:31]Write i2c OK [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 07 00 [10:10:31]MH_I2C_Read... [10:10:31]Read from MH i2c: 01 07 00 8D 11 00 00 00 00 00 EC 0C 9D [10:10:31]RasterBufferAndPrint [10:10:31]line [10:10:31]line [10:10:31]line [10:10:31]line [10:10:31]line [10:10:31]written 0, free lines is 3314 [10:10:32]MH_Cut [10:10:32]Write to MH i2c: D1 01 00 94 11 01 77 [10:10:32]Write i2c OK [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: D1 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: D1 01 00 [10:10:32]MH_I2C_Read... [10:10:32]Read from MH i2c: D1 01 00 94 11 00 76 [10:10:32]Write to MH i2c: 01 00 00 95 11 A6 [10:10:32]Write i2c OK [10:10:32]MH_I2C_Read... [10:10:32]OFD Sender: No OFD packet to send [10:10:32]*** Cut start [10:10:32]*** Partial cut [10:10:32]*** CUTSNS_PIN = 1 [10:10:32]*** CUTSNS_PIN = 0 [10:10:33]*** Brake cut motor [10:10:33]Read from MH i2c: 01 [10:10:33]*** Stop cut motor [10:10:33]*** Cut end [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: 01 07 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: 01 07 00 95 11 00 00 00 00 00 FF 0F BB [10:10:33]process_action close_receipt done [10:10:33]requested_data is exist [10:10:33]produce_requested_data [10:10:33]requested_item fm.sn is exist - process it [10:10:33]wFMCommunicate request_size=4 [10:10:33]MH_SAM_APDU [10:10:33]CAPDU: 80 11 00 00 [10:10:33]Write to MH i2c: E2 08 00 96 11 80 11 00 00 00 00 00 00 21 [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:33]Read from MH i2c: E2 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 17 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 17 00 96 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 74 [10:10:33]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:33]wFMCommunicate OK [10:10:33]requested_item fd.num is exist - process it [10:10:33]SAM_PROTO_GetFieldsCounters [10:10:33]wFMCommunicate request_size=4 [10:10:33]MH_SAM_APDU [10:10:33]CAPDU: 80 13 00 00 [10:10:33]Write to MH i2c: E2 08 00 97 11 80 13 00 00 00 00 00 00 24 [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:33]Read from MH i2c: E2 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 62 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 62 00 97 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 6F DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [10:10: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 6F DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:33]wFMCommunicate OK [10:10:33]SAM_PROTO_GetFieldsCounters done [10:10:33]requested_item shift.num is exist - process it [10:10:33]requested_item shift.opened is exist - process it [10:10:33]req_shift_opened [10:10:33]FM_GetShiftState [10:10:33]SAM_PROTO_GetShiftState [10:10:33]wFMCommunicate request_size=4 [10:10:33]MH_SAM_APDU [10:10:33]CAPDU: 80 13 01 00 [10:10:33]Write to MH i2c: E2 08 00 98 11 80 13 01 00 00 00 00 00 26 [10:10:33]Write i2c OK [10:10:33]MH_I2C_Read... [10:10:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:33]Read from MH i2c: E2 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 0E 00 [10:10:33]MH_I2C_Read... [10:10:33]Read from MH i2c: E2 0E 00 98 11 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A5 [10:10:33]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:10:33]wFMCommunicate OK [10:10:33]SAM_PROTO_GetShiftState done [10:10:33]FM_GetShiftState done [10:10:33]req_shift_opened done [10:10:33]requested_item shift.open_date is exist - process it [10:10:33]req_shift_open_date [10:10:33]req_shift_open_date done [10:10:33]produce_requested_data done [10:10:33]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186991,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [10:10:33]process_action_free close_receipt [10:10:33]json_value_free [10:10:33]json_value_free done [10:10:33]process_json_proto returns [10:10:33]Send response to host [10:10:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186991,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [10:10:33]free response buf [10:10:33]execute_script done [10:10:33]execute_script returns [10:10:33]free content buf [10:10:33]Sock 7.Close socket [10:10:33]Sock 7.Thread stoped [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:32]OFD Sender: No OFD packet to send [10:14:37]OFD Sender: No OFD packet to send [10:14:42]OFD Sender: No OFD packet to send [10:14:47]OFD Sender: No OFD packet to send [10:14:52]OFD Sender: No OFD packet to send [10:14:57]OFD Sender: No OFD packet to send [10:15:02]OFD Sender: No OFD packet to send [10:15:07]OFD Sender: No OFD packet to send [10:15:12]OFD Sender: No OFD packet to send [10:15:17]OFD Sender: No OFD packet to send [10:15:22]OFD Sender: No OFD packet to send [10:15:27]OFD Sender: No OFD packet to send [10:15:32]OFD Sender: No OFD packet to send [10:15:37]OFD Sender: No OFD packet to send [10:15:42]OFD Sender: No OFD packet to send [10:15:47]OFD Sender: No OFD packet to send [10:15:51]accept exits with 9 [10:15:51]New connection [10:15:51]New thread 3066879332 created [10:15:51]Thread 3067022692 joined [10:15:51]Waiting for new connection... [10:15:51] Sock 9.Parse request [10:15:51]Sock 9.Check first char [10:15:51]Sock 9.First char is OK [10:15:51]request: POST /json_proto HTTP/1.0 [10:15:51]Method: POST [10:15:51]URL: /json_proto [10:15:51]Method is POST - this is cgi request [10:15:51]url: /json_proto [10:15:51]query_string will be loaded in cgi processing [10:15:51]execute_cgi json_proto POST (null) [10:15:51]execute_cgi path=json_proto method=POST [10:15:51]POST find Content-Length [10:15:51]Host: 172.17.46.131:8080 [10:15:51]Content-Length: 750 [10:15:51]Content-Type: application/json [10:15:51] [10:15:51]POST finish read [10:15:51]Found Content-Length = 750 [10:15:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412142", "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.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\u000A30107314", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:51]execute_script... [10:15: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)412142", "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.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\u000A30107314", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:51]POST & json_proto [10:15:51]process_json_proto [10:15:51]json parsed OK: [10:15:51]protocol is kg_v1.0 [10:15:51]action value=close_receipt [10:15:51]process_action close_receipt [10:15:51]cmd_close_receipt [10:15:51]MH_GetDate [10:15:51]Write to MH i2c: F0 00 00 99 11 99 [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: F0 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: F0 09 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: F0 09 00 99 11 00 5A AF B5 67 7E 41 4F 65 3A [10:15:51]GetLastDocTimeStamp 1739959832 [10:15:51]current date 1739960154 [10:15:51]FM_GetShiftState [10:15:51]SAM_PROTO_GetShiftState [10:15:51]wFMCommunicate request_size=4 [10:15:51]MH_SAM_APDU [10:15:51]CAPDU: 80 13 01 00 [10:15:51]Write to MH i2c: E2 08 00 9A 11 80 13 01 00 00 00 00 00 28 [10:15:51]Write i2c OK [10:15:51]MH_I2C_Read... [10:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:51]Read from MH i2c: E2 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 0E 00 [10:15:51]MH_I2C_Read... [10:15:51]Read from MH i2c: E2 0E 00 9A 11 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A7 [10:15:51]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:15:51]wFMCommunicate OK [10:15:51]SAM_PROTO_GetShiftState done [10:15:51]FM_GetShiftState done [10:15:51]opened in 1739929631 [10:15:51]opened+sec_in_day 1740016031 [10:15:51]quantity*price = 0 [10:15:51]sum+1 = 1 [10:15: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 СНО: Общий режим Чек 58 19.02.2025 10:15 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30107314 ФМ: 0000000000871826 ФД: 186992 ФПД: 181741794042995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T101554&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186992&fm=181741794042995&tin=02508201610067®Number=0000000000091857&sum=0 [10:15:53]StoreToDocumentArchive [10:15:53]shift 647 fd 186992 [10:15:53]save to /storage/0647/doc_00186992 [10:15:53]save last doc name /storage/0647/doc_00186992 to /storage/kkm_last_doc_name [10:15:53]save OK [10:15:53]Clear old archive folders... [10:15:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:15:53]tlvbuf is 005BA050 [10:15:53]SAM_PROTO_ClearQueue [10:15:53]wFMCommunicate request_size=4 [10:15:53]MH_SAM_APDU [10:15:53]CAPDU: 80 09 00 00 [10:15:53]Write to MH i2c: E2 08 00 A7 11 80 09 00 00 00 00 00 00 2A [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:53]Read from MH i2c: E2 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 03 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 03 00 A7 11 00 90 00 2C [10:15:53]RAPDU: 90 00 [10:15:53]wFMCommunicate OK [10:15:53]SAM_PROTO_ClearQueue done [10:15:53]KKMCreateOFDPacket [10:15:53]OFDProtocolAddRootSTLVToBuf [10:15:53]FM_MakeSignedData [10:15:53]FM_MakeSignedData [10:15:53]SAM_PROTO_SignData [10:15:53]wFMCommunicate request_size=4 [10:15:53]MH_SAM_APDU [10:15:53]CAPDU: 80 0D 01 02 [10:15:53]Write to MH i2c: E2 08 00 A8 11 80 0D 01 02 00 00 00 00 32 [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:53]Read from MH i2c: E2 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 03 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 03 00 A8 11 00 90 00 2D [10:15:53]RAPDU: 90 00 [10:15:53]wFMCommunicate OK [10:15:53]wFMCommunicate request_size=255 [10:15:53]MH_SAM_APDU [10:15:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3A 00 00 00 F4 03 04 00 5A AF 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 70 DA 02 00 35 04 06 00 A5 4B 0F 13 [10:15:53]Write to MH i2c: E2 02 01 A9 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 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 3A 00 00 00 F4 03 04 00 5A AF 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 70 DA 02 00 35 04 06 00 A5 4B 0F 13 00 00 48 [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:53]Read from MH i2c: E2 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 03 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 03 00 A9 11 00 90 00 2E [10:15:53]RAPDU: 90 00 [10:15:53]wFMCommunicate OK [10:15:53]wFMCommunicate request_size=7 [10:15:53]MH_SAM_APDU [10:15:53]CAPDU: 80 0D 02 02 02 24 73 [10:15:53]Write to MH i2c: E2 0A 00 AA 11 80 0D 02 02 02 00 24 73 00 00 D0 [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:53]Read from MH i2c: E2 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 03 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 03 00 AA 11 00 90 00 2F [10:15:53]RAPDU: 90 00 [10:15:53]wFMCommunicate OK [10:15:53]wFMCommunicate request_size=4 [10:15:53]MH_SAM_APDU [10:15:53]CAPDU: 80 0D 03 02 [10:15:53]Write to MH i2c: E2 08 00 AB 11 80 0D 03 02 00 00 00 00 37 [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:53]Read from MH i2c: E2 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 0B 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 0B 00 AB 11 00 DE 5F 96 5D F2 87 AC AA 90 00 37 [10:15:53]RAPDU: DE 5F 96 5D F2 87 AC AA 90 00 [10:15:53]wFMCommunicate OK [10:15:53]SAM_PROTO_SignData done [10:15:53]FM_MakeSignedData done [10:15:53]CreateOFDProtocolMessage [10:15:53]wFMCommunicate request_size=4 [10:15:53]MH_SAM_APDU [10:15:53]CAPDU: 80 11 00 00 [10:15:53]Write to MH i2c: E2 08 00 AC 11 80 11 00 00 00 00 00 00 37 [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:53]Read from MH i2c: E2 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 17 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: E2 17 00 AC 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8A [10:15:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:15:53]wFMCommunicate OK [10:15:53]CreateOFDProtocolMessage done [10:15:53]OFDSenderStorePacket 186992 [10:15:53]StoreOFDPacket docnum=186992 [10:15: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 0C 01 00 00 D0 60 04 01 F6 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3A 00 00 00 F4 03 04 00 5A AF 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 70 DA 02 00 35 04 06 00 A5 4B 0F 13 24 73 DE 5F 96 5D F2 87 AC AA [10:15:53]CheckFolder [10:15:53]dirname=/storage/ofd_packets [10:15:53]CheckFolder done [10:15:53]ProducePacketName [10:15:53]name=ofd_packets/00186992 [10:15:53]NVStorageSaveData ofd_packets/00186992 [10:15:53]File name is /storage/ofd_packets/00186992 [10:15:53]Write 298 bytes [10:15:53]NVStorageSaveData done [10:15:53]OFDSenderStorePacket done [10:15:53]KKMCreateOFDPacket done [10:15:53]NVStorageSaveData kkm_last_timestamp [10:15:53]File name is /storage/kkm_last_timestamp [10:15:53]Write 4 bytes [10:15:53]NVStorageSaveData done [10:15:53]ExternCall_PrintAddStr [10:15:53]wPrintStart [10:15:53]Write to MH i2c: 01 00 00 AD 11 BE [10:15:53]Write i2c OK [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: 01 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: 01 07 00 [10:15:53]MH_I2C_Read... [10:15:53]Read from MH i2c: 01 07 00 AD 11 00 00 00 00 00 FF 0F D3 [10:15:53]RasterBufferAndPrint [10:15:53]line Счет N : (1)412142 [10:15:53]line ИНН: 02508201610067 [10:15:53]line Контрольно-Кассовый Чек [10:15:53]line ПРОДАЖА [10:15:53]line ТРК (МРК, ГНК) : 5 [10:15:53]line Товар: 2710194210 [10:15:53]line ДТ-К-5 [10:15:53]line 20.000 * 0.00 [10:15:53]line = 0.00 [10:15:53]line НДС 12% НСП 1% [10:15:53]line > о реализуемом товаре [10:15:53]line ИТОГО: 0.00 [10:15:53]line НСП 1% : 0.00 [10:15:53]line НДС 12% : 0.00 [10:15:53]line Наличными: 0.00 [10:15:53]line Безнал.: 0.00 [10:15:53]line Место: АЗС № 92 "Партнер Нефть" [10:15:53]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:15:53]line СНО: Общий режим [10:15:53]line Чек 58 19.02.2025 10:15 [10:15:53]line Смена: 647 ФФД: 1.0 [10:15:53]line ЗНМ: 0300000118 [10:15:53]line РНМ: 0000000000091857 [10:15:53]line Версия ККМ: 001 [10:15:53]line Талоны: ТК ГПНА Online [10:15:53]line 30107314 [10:15:53]line ФМ: 0000000000871826 [10:15:53]line ФД: 186992 [10:15:53]line ФПД: 181741794042995 [10:15:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T101554&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186992&fm=181741794042995&tin=02508201610067®Number=0000000000091857&sum=0 [10:15:53]OFD Sender: Processing packet 186992 [packets to send 49, broken 48] [10:15:53]ProducePacketName [10:15:53]name=ofd_packets/00186992 [10:15:53]OFD Sender: To server: pG, [10:15:53]CommunicateWithHost lk.salyk.kg:30040 [10:15:53]ConnectInit lk.salyk.kg [10:15:53]written 0, free lines is 4095 [10:15:54]Connected sock=10 [10:15: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 D0 60 04 01 F6 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3A 00 00 00 F4 03 04 00 5A AF 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 70 DA 02 00 35 04 06 00 A5 4B 0F 13 24 73 DE 5F 96 5D F2 87 AC AA [10:15:54]Write to MH i2c: 01 00 00 D7 11 E8 [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: 01 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: 01 07 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: 01 07 00 D7 11 00 00 00 00 00 F2 0C ED [10:15:54]RasterBufferAndPrint [10:15:54]line [10:15:54]line [10:15:54]line [10:15:54]line [10:15:54]line [10:15: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 E2 A2 47 00 4C 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 70 DA 02 00 F4 03 04 00 AF 55 B5 67 B6 04 01 00 00 96 9B 13 65 B2 09 9E 43 [10:15:54]CommunicateWithHost err = 0 [10:15:54]CheckOFDResponse [10:15:54]1017 (14) - 77093643461234 [10:15:54]1041 (16) - 0000000000871826 [10:15:54]1040 (4) - 186992 [10:15:54]1012 (4) - 19.02.2025 03:53 [10:15:54]1206 (1) - 0 [10:15:54]OFD Sender: Remove packet 186992 [10:15:54]ProducePacketName [10:15:54]name=ofd_packets/00186992 [10:15:54]NVStorageDeleteData [10:15:54]written 0, free lines is 3320 [10:15:54]MH_Cut [10:15:54]Write to MH i2c: D1 01 00 DE 11 01 C1 [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: D1 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: D1 01 00 [10:15:54]MH_I2C_Read... [10:15:54]Read from MH i2c: D1 01 00 DE 11 00 C0 [10:15:54]Write to MH i2c: 01 00 00 DF 11 F0 [10:15:54]Write i2c OK [10:15:54]MH_I2C_Read... [10:15:54]OFD Sender: No OFD packet to send [10:15:54]*** Cut start [10:15:54]*** Partial cut [10:15:54]*** CUTSNS_PIN = 1 [10:15:55]*** CUTSNS_PIN = 0 [10:15:55]*** Brake cut motor [10:15:55]Read from MH i2c: 01 [10:15:55]MH_I2C_Read... [10:15:55]*** Stop cut motor [10:15:55]*** Cut end [10:15:55]Read from MH i2c: 01 07 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: 01 07 00 DF 11 00 00 00 00 00 FF 0F 05 [10:15:55]process_action close_receipt done [10:15:55]requested_data is exist [10:15:55]produce_requested_data [10:15:55]requested_item fm.sn is exist - process it [10:15:55]wFMCommunicate request_size=4 [10:15:55]MH_SAM_APDU [10:15:55]CAPDU: 80 11 00 00 [10:15:55]Write to MH i2c: E2 08 00 E0 11 80 11 00 00 00 00 00 00 6B [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:55]Read from MH i2c: E2 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 17 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 17 00 E0 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BE [10: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 [10:15:55]wFMCommunicate OK [10:15:55]requested_item fd.num is exist - process it [10:15:55]SAM_PROTO_GetFieldsCounters [10:15:55]wFMCommunicate request_size=4 [10:15:55]MH_SAM_APDU [10:15:55]CAPDU: 80 13 00 00 [10:15:55]Write to MH i2c: E2 08 00 E1 11 80 13 00 00 00 00 00 00 6E [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:55]Read from MH i2c: E2 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 62 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 62 00 E1 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 70 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [10:15: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 70 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:55]wFMCommunicate OK [10:15:55]SAM_PROTO_GetFieldsCounters done [10:15:55]requested_item shift.num is exist - process it [10:15:55]requested_item shift.opened is exist - process it [10:15:55]req_shift_opened [10:15:55]FM_GetShiftState [10:15:55]SAM_PROTO_GetShiftState [10:15:55]wFMCommunicate request_size=4 [10:15:55]MH_SAM_APDU [10:15:55]CAPDU: 80 13 01 00 [10:15:55]Write to MH i2c: E2 08 00 E2 11 80 13 01 00 00 00 00 00 70 [10:15:55]Write i2c OK [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 [10:15:55]MH_I2C_Read... [10:15:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:55]Read from MH i2c: E2 0E 00 [10:15:55]MH_I2C_Read... [10:15:55]Read from MH i2c: E2 0E 00 E2 11 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 EF [10:15:55]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:15:55]wFMCommunicate OK [10:15:55]SAM_PROTO_GetShiftState done [10:15:55]FM_GetShiftState done [10:15:55]req_shift_opened done [10:15:55]requested_item shift.open_date is exist - process it [10:15:55]req_shift_open_date [10:15:55]req_shift_open_date done [10:15:55]produce_requested_data done [10:15:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186992,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [10:15:55]process_action_free close_receipt [10:15:55]json_value_free [10:15:55]json_value_free done [10:15:55]process_json_proto returns [10:15:55]Send response to host [10:15:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186992,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [10:15:55]free response buf [10:15:55]execute_script done [10:15:55]execute_script returns [10:15:55]free content buf [10:15:55]Sock 9.Close socket [10:15:55]Sock 9.Thread stoped [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:16]accept exits with 7 [10:19:16]New connection [10:19:16]New thread 3067022692 created [10:19:16]Thread 3066879332 joined [10:19:16]Waiting for new connection... [10:19:16] Sock 7.Parse request [10:19:16]Sock 7.Check first char [10:19:16]Sock 7.First char is OK [10:19:16]request: POST /json_proto HTTP/1.0 [10:19:16]Method: POST [10:19:16]URL: /json_proto [10:19:16]Method is POST - this is cgi request [10:19:16]url: /json_proto [10:19:16]query_string will be loaded in cgi processing [10:19:16]execute_cgi json_proto POST (null) [10:19:16]execute_cgi path=json_proto method=POST [10:19:16]POST find Content-Length [10:19:16]Host: 172.17.46.131:8080 [10:19:16]Content-Length: 678 [10:19:16]Content-Type: application/json [10:19:16] [10:19:16]POST finish read [10:19:16]Found Content-Length = 678 [10:19:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412143", "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" ] } } [10:19:16]execute_script... [10:19:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412143", "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" ] } } [10:19:16]POST & json_proto [10:19:16]process_json_proto [10:19:16]json parsed OK: [10:19:16]protocol is kg_v1.0 [10:19:16]action value=close_receipt [10:19:16]process_action close_receipt [10:19:16]cmd_close_receipt [10:19:16]MH_GetDate [10:19:16]Write to MH i2c: F0 00 00 E3 11 E3 [10:19:16]Write i2c OK [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: F0 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: F0 09 00 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: F0 09 00 E3 11 00 26 B0 B5 67 7E 41 4F 65 51 [10:19:16]GetLastDocTimeStamp 1739960154 [10:19:16]current date 1739960358 [10:19:16]FM_GetShiftState [10:19:16]SAM_PROTO_GetShiftState [10:19:16]wFMCommunicate request_size=4 [10:19:16]MH_SAM_APDU [10:19:16]CAPDU: 80 13 01 00 [10:19:16]Write to MH i2c: E2 08 00 E4 11 80 13 01 00 00 00 00 00 72 [10:19:16]Write i2c OK [10:19:16]MH_I2C_Read... [10:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:16]Read from MH i2c: E2 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: E2 0E 00 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: E2 0E 00 E4 11 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F1 [10:19:16]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:19:16]wFMCommunicate OK [10:19:16]SAM_PROTO_GetShiftState done [10:19:16]FM_GetShiftState done [10:19:16]opened in 1739929631 [10:19:16]opened+sec_in_day 1740016031 [10:19:16]quantity*price = 100042 [10:19:16]sum+1 = 100044 [10:19:16]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 СНО: Общий режим Чек 59 19.02.2025 10:19 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186993 ФПД: 176365306898616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T101918&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186993&fm=176365306898616&tin=02508201610067®Number=0000000000091857&sum=100000 [10:19:17]StoreToDocumentArchive [10:19:17]shift 647 fd 186993 [10:19:17]save to /storage/0647/doc_00186993 [10:19:17]save last doc name /storage/0647/doc_00186993 to /storage/kkm_last_doc_name [10:19:17]save OK [10:19:17]Clear old archive folders... [10:19:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:19:17]tlvbuf is 005BEDB0 [10:19:17]SAM_PROTO_ClearQueue [10:19:17]wFMCommunicate request_size=4 [10:19:17]MH_SAM_APDU [10:19:17]CAPDU: 80 09 00 00 [10:19:17]Write to MH i2c: E2 08 00 F1 11 80 09 00 00 00 00 00 00 74 [10:19:17]Write i2c OK [10:19:17]MH_I2C_Read... [10:19:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:17]Read from MH i2c: E2 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: E2 03 00 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: E2 03 00 F1 11 00 90 00 76 [10:19:17]RAPDU: 90 00 [10:19:17]wFMCommunicate OK [10:19:17]SAM_PROTO_ClearQueue done [10:19:17]KKMCreateOFDPacket [10:19:17]OFDProtocolAddRootSTLVToBuf [10:19:17]FM_MakeSignedData [10:19:17]FM_MakeSignedData [10:19:17]SAM_PROTO_SignData [10:19:17]wFMCommunicate request_size=4 [10:19:17]MH_SAM_APDU [10:19:17]CAPDU: 80 0D 01 02 [10:19:17]Write to MH i2c: E2 08 00 F2 11 80 0D 01 02 00 00 00 00 7C [10:19:17]Write i2c OK [10:19:17]MH_I2C_Read... [10:19:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:17]Read from MH i2c: E2 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: E2 03 00 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: E2 03 00 F2 11 00 90 00 77 [10:19:17]RAPDU: 90 00 [10:19:17]wFMCommunicate OK [10:19:17]wFMCommunicate request_size=255 [10:19:17]MH_SAM_APDU [10:19:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3B 00 00 00 F4 03 04 00 26 B0 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 71 DA 02 00 35 04 06 00 A0 67 3F 77 [10:19:17]Write to MH i2c: E2 02 01 F3 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 3B 00 00 00 F4 03 04 00 26 B0 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 71 DA 02 00 35 04 06 00 A0 67 3F 77 00 00 E0 [10:19:17]Write i2c OK [10:19:17]MH_I2C_Read... [10:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:17]Read from MH i2c: E2 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: E2 03 00 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: E2 03 00 F3 11 00 90 00 78 [10:19:17]RAPDU: 90 00 [10:19:17]wFMCommunicate OK [10:19:17]wFMCommunicate request_size=7 [10:19:17]MH_SAM_APDU [10:19:17]CAPDU: 80 0D 02 02 02 E8 B8 [10:19:17]Write to MH i2c: E2 0A 00 F4 11 80 0D 02 02 02 00 E8 B8 00 00 23 [10:19:17]Write i2c OK [10:19:17]MH_I2C_Read... [10:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:17]Read from MH i2c: E2 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: E2 03 00 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: E2 03 00 F4 11 00 90 00 79 [10:19:17]RAPDU: 90 00 [10:19:17]wFMCommunicate OK [10:19:17]wFMCommunicate request_size=4 [10:19:17]MH_SAM_APDU [10:19:17]CAPDU: 80 0D 03 02 [10:19:17]Write to MH i2c: E2 08 00 F5 11 80 0D 03 02 00 00 00 00 81 [10:19:17]Write i2c OK [10:19:17]MH_I2C_Read... [10:19:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:17]Read from MH i2c: E2 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: E2 0B 00 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: E2 0B 00 F5 11 00 AD CD B0 BD 89 CC D5 1D 90 00 B0 [10:19:17]RAPDU: AD CD B0 BD 89 CC D5 1D 90 00 [10:19:17]wFMCommunicate OK [10:19:17]SAM_PROTO_SignData done [10:19:17]FM_MakeSignedData done [10:19:17]CreateOFDProtocolMessage [10:19:17]wFMCommunicate request_size=4 [10:19:17]MH_SAM_APDU [10:19:17]CAPDU: 80 11 00 00 [10:19:17]Write to MH i2c: E2 08 00 F6 11 80 11 00 00 00 00 00 00 81 [10:19:17]Write i2c OK [10:19:17]MH_I2C_Read... [10:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:17]Read from MH i2c: E2 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: E2 17 00 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: E2 17 00 F6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D4 [10:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:19:17]wFMCommunicate OK [10:19:17]CreateOFDProtocolMessage done [10:19:17]OFDSenderStorePacket 186993 [10:19:17]StoreOFDPacket docnum=186993 [10:19: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 55 40 04 01 66 C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3B 00 00 00 F4 03 04 00 26 B0 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 71 DA 02 00 35 04 06 00 A0 67 3F 77 E8 B8 AD CD B0 BD 89 CC D5 1D [10:19:17]CheckFolder [10:19:17]dirname=/storage/ofd_packets [10:19:17]CheckFolder done [10:19:17]ProducePacketName [10:19:17]name=ofd_packets/00186993 [10:19:17]NVStorageSaveData ofd_packets/00186993 [10:19:17]File name is /storage/ofd_packets/00186993 [10:19:17]Write 298 bytes [10:19:17]NVStorageSaveData done [10:19:17]OFDSenderStorePacket done [10:19:17]KKMCreateOFDPacket done [10:19:17]NVStorageSaveData kkm_last_timestamp [10:19:17]File name is /storage/kkm_last_timestamp [10:19:17]Write 4 bytes [10:19:17]NVStorageSaveData done [10:19:17]ExternCall_PrintAddStr [10:19:17]wPrintStart [10:19:17]Write to MH i2c: 01 00 00 F7 11 08 [10:19:17]Write i2c OK [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: 01 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: 01 07 00 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: 01 07 00 F7 11 00 00 00 00 00 FF 0F 1D [10:19:17]RasterBufferAndPrint [10:19:17]line Счет N : (1)412143 [10:19:17]line ИНН: 02508201610067 [10:19:17]line Контрольно-Кассовый Чек [10:19:17]line ПРОДАЖА [10:19:17]line ТРК (МРК, ГНК) : 5 [10:19:17]line Товар: 2710194210 [10:19:17]line ДТ-К-5 [10:19:17]line 13.780 * 72.60 [10:19:17]line = 1000.43 [10:19:17]line НДС 12% НСП 1% [10:19:17]line > о реализуемом товаре [10:19:17]line ОКРУГЛЕНИЕ: -0.43 [10:19:17]line ИТОГО: 1000.00 [10:19:17]line Внесено: 1000.00 [10:19:17]line СДАЧА: 0.00 [10:19:17]line НСП 1% : 8.85 [10:19:17]line НДС 12% : 106.24 [10:19:17]line Наличными: 1000.00 [10:19:17]line Безнал.: 0.00 [10:19:17]line Место: АЗС № 92 "Партнер Нефть" [10:19:17]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:19:18]line СНО: Общий режим [10:19:18]line Чек 59 19.02.2025 10:19 [10:19:18]line Смена: 647 ФФД: 1.0 [10:19:18]line ЗНМ: 0300000118 [10:19:18]line РНМ: 0000000000091857 [10:19:18]line Версия ККМ: 001 [10:19:18]line ФМ: 0000000000871826 [10:19:18]line ФД: 186993 [10:19:18]line ФПД: 176365306898616 [10:19:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T101918&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186993&fm=176365306898616&tin=02508201610067®Number=0000000000091857&sum=100000 [10:19:18]OFD Sender: Processing packet 186993 [packets to send 49, broken 48] [10:19:18]ProducePacketName [10:19:18]name=ofd_packets/00186993 [10:19:18]OFD Sender: To server: pG, [10:19:18]CommunicateWithHost lk.salyk.kg:30040 [10:19:18]ConnectInit lk.salyk.kg [10:19:18]written 0, free lines is 4095 [10:19:18]Connected sock=10 [10:19:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 55 40 04 01 66 C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 3B 00 00 00 F4 03 04 00 26 B0 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 71 DA 02 00 35 04 06 00 A0 67 3F 77 E8 B8 AD CD B0 BD 89 CC D5 1D [10:19:18]Write to MH i2c: 01 00 00 22 12 34 [10:19:18]Write i2c OK [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: 01 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: 01 07 00 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: 01 07 00 22 12 00 00 00 00 00 EE 0C 35 [10:19:18]RasterBufferAndPrint [10:19:18]line [10:19:18]line [10:19:18]line [10:19:18]line [10:19:18]line [10:19:18]written 0, free lines is 3316 [10:19:18]MH_Cut [10:19:18]Write to MH i2c: D1 01 00 29 12 01 0D [10:19:18]Write i2c OK [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: D1 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: D1 01 00 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: D1 01 00 29 12 00 0C [10:19:18]Write to MH i2c: 01 00 00 2A 12 3C [10:19:18]Write i2c OK [10:19:18]MH_I2C_Read... [10:19:19]*** Cut start [10:19:19]*** Partial cut [10:19:19]*** CUTSNS_PIN = 1 [10:19:19]*** CUTSNS_PIN = 0 [10:19:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E4 8C 47 00 B6 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 71 DA 02 00 F4 03 04 00 7B 56 B5 67 B6 04 01 00 00 FE F4 38 39 BA 86 D5 3E [10:19:19]CommunicateWithHost err = 0 [10:19:19]CheckOFDResponse [10:19:19]1017 (14) - 77093643461234 [10:19:19]1041 (16) - 0000000000871826 [10:19:19]1040 (4) - 186993 [10:19:19]1012 (4) - 19.02.2025 03:56 [10:19:19]1206 (1) - 0 [10:19:19]OFD Sender: Remove packet 186993 [10:19:19]ProducePacketName [10:19:19]name=ofd_packets/00186993 [10:19:19]NVStorageDeleteData [10:19:19]*** Brake cut motor [10:19:19]OFD Sender: No OFD packet to send [10:19:19]Read from MH i2c: 01 [10:19:19]MH_I2C_Read... [10:19:19]*** Stop cut motor [10:19:19]*** Cut end [10:19:19]Read from MH i2c: 01 07 00 [10:19:19]MH_I2C_Read... [10:19:19]Read from MH i2c: 01 07 00 2A 12 00 00 00 00 00 FF 0F 51 [10:19:19]process_action close_receipt done [10:19:19]requested_data is exist [10:19:19]produce_requested_data [10:19:19]requested_item fm.sn is exist - process it [10:19:19]wFMCommunicate request_size=4 [10:19:19]MH_SAM_APDU [10:19:19]CAPDU: 80 11 00 00 [10:19:19]Write to MH i2c: E2 08 00 2B 12 80 11 00 00 00 00 00 00 B7 [10:19:19]Write i2c OK [10:19:19]MH_I2C_Read... [10:19:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:20]Read from MH i2c: E2 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 17 00 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 17 00 2B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0A [10:19:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:19:20]wFMCommunicate OK [10:19:20]requested_item fd.num is exist - process it [10:19:20]SAM_PROTO_GetFieldsCounters [10:19:20]wFMCommunicate request_size=4 [10:19:20]MH_SAM_APDU [10:19:20]CAPDU: 80 13 00 00 [10:19:20]Write to MH i2c: E2 08 00 2C 12 80 13 00 00 00 00 00 00 BA [10:19:20]Write i2c OK [10:19:20]MH_I2C_Read... [10:19:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:20]Read from MH i2c: E2 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 62 00 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 62 00 2C 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 71 DA 02 00 0E 04 04 00 87 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 67 [10:19:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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:19:20]wFMCommunicate OK [10:19:20]SAM_PROTO_GetFieldsCounters done [10:19:20]requested_item shift.num is exist - process it [10:19:20]requested_item shift.opened is exist - process it [10:19:20]req_shift_opened [10:19:20]FM_GetShiftState [10:19:20]SAM_PROTO_GetShiftState [10:19:20]wFMCommunicate request_size=4 [10:19:20]MH_SAM_APDU [10:19:20]CAPDU: 80 13 01 00 [10:19:20]Write to MH i2c: E2 08 00 2D 12 80 13 01 00 00 00 00 00 BC [10:19:20]Write i2c OK [10:19:20]MH_I2C_Read... [10:19:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:20]Read from MH i2c: E2 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 0E 00 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 0E 00 2D 12 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 3B [10:19:20]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:19:20]wFMCommunicate OK [10:19:20]SAM_PROTO_GetShiftState done [10:19:20]FM_GetShiftState done [10:19:20]req_shift_opened done [10:19:20]requested_item shift.open_date is exist - process it [10:19:20]req_shift_open_date [10:19:20]req_shift_open_date done [10:19:20]produce_requested_data done [10:19:20]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186993,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [10:19:20]process_action_free close_receipt [10:19:20]json_value_free [10:19:20]json_value_free done [10:19:20]process_json_proto returns [10:19:20]Send response to host [10:19:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186993,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [10:19:20]free response buf [10:19:20]execute_script done [10:19:20]execute_script returns [10:19:20]free content buf [10:19:20]Sock 7.Close socket [10:19:20]Sock 7.Thread stoped [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:30]accept exits with 9 [10:21:30]New connection [10:21:30]New thread 3066879332 created [10:21:30]Thread 3067022692 joined [10:21:30]Waiting for new connection... [10:21:30] Sock 9.Parse request [10:21:30]Sock 9.Check first char [10:21:30]Sock 9.First char is OK [10:21:30]request: POST /json_proto HTTP/1.0 [10:21:30]Method: POST [10:21:30]URL: /json_proto [10:21:30]Method is POST - this is cgi request [10:21:30]url: /json_proto [10:21:30]query_string will be loaded in cgi processing [10:21:30]execute_cgi json_proto POST (null) [10:21:30]execute_cgi path=json_proto method=POST [10:21:30]POST find Content-Length [10:21:30]Host: 172.17.46.131:8080 [10:21:30]Content-Length: 803 [10:21:30]Content-Type: application/json [10:21:30] [10:21:30]POST finish read [10:21:30]Found Content-Length = 803 [10:21:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412144", "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" : 18.700, "sum" : 1200.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" : 1200.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:30]execute_script... [10:21: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)412144", "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" : 18.700, "sum" : 1200.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" : 1200.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:30]POST & json_proto [10:21:30]process_json_proto [10:21:30]json parsed OK: [10:21:30]protocol is kg_v1.0 [10:21:30]action value=close_receipt [10:21:30]process_action close_receipt [10:21:30]cmd_close_receipt [10:21:30]MH_GetDate [10:21:30]Write to MH i2c: F0 00 00 2E 12 2F [10:21:30]Write i2c OK [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: F0 [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: F0 09 00 [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: F0 09 00 2E 12 00 AD B0 B5 67 7E 41 4F 65 24 [10:21:30]GetLastDocTimeStamp 1739960358 [10:21:30]current date 1739960493 [10:21:30]FM_GetShiftState [10:21:30]SAM_PROTO_GetShiftState [10:21:30]wFMCommunicate request_size=4 [10:21:30]MH_SAM_APDU [10:21:30]CAPDU: 80 13 01 00 [10:21:30]Write to MH i2c: E2 08 00 2F 12 80 13 01 00 00 00 00 00 BE [10:21:30]Write i2c OK [10:21:30]MH_I2C_Read... [10:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:31]Read from MH i2c: E2 [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: E2 0E 00 [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: E2 0E 00 2F 12 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 3D [10:21:31]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:21:31]wFMCommunicate OK [10:21:31]SAM_PROTO_GetShiftState done [10:21:31]FM_GetShiftState done [10:21:31]opened in 1739929631 [10:21:31]opened+sec_in_day 1740016031 [10:21:31]quantity*price = 120054 [10:21:31]sum+1 = 120055 [10:21:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.54 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 0.00 Безнал.: 1200.54 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 60 19.02.2025 10:21 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186994 ФПД: 248214334645829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T102133&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186994&fm=248214334645829&tin=02508201610067®Number=0000000000091857&sum=120054 [10:21:32]StoreToDocumentArchive [10:21:32]shift 647 fd 186994 [10:21:32]save to /storage/0647/doc_00186994 [10:21:32]save last doc name /storage/0647/doc_00186994 to /storage/kkm_last_doc_name [10:21:32]save OK [10:21:32]Clear old archive folders... [10:21:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:32]tlvbuf is 005B3870 [10:21:32]SAM_PROTO_ClearQueue [10:21:32]wFMCommunicate request_size=4 [10:21:32]MH_SAM_APDU [10:21:32]CAPDU: 80 09 00 00 [10:21:32]Write to MH i2c: E2 08 00 3C 12 80 09 00 00 00 00 00 00 C0 [10:21:32]Write i2c OK [10:21:32]MH_I2C_Read... [10:21:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:32]Read from MH i2c: E2 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 03 00 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 03 00 3C 12 00 90 00 C2 [10:21:32]RAPDU: 90 00 [10:21:32]wFMCommunicate OK [10:21:32]SAM_PROTO_ClearQueue done [10:21:32]KKMCreateOFDPacket [10:21:32]OFDProtocolAddRootSTLVToBuf [10:21:32]FM_MakeSignedData [10:21:32]FM_MakeSignedData [10:21:32]SAM_PROTO_SignData [10:21:32]wFMCommunicate request_size=4 [10:21:32]MH_SAM_APDU [10:21:32]CAPDU: 80 0D 01 02 [10:21:32]Write to MH i2c: E2 08 00 3D 12 80 0D 01 02 00 00 00 00 C8 [10:21:32]Write i2c OK [10:21:32]MH_I2C_Read... [10:21:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:32]Read from MH i2c: E2 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 03 00 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 03 00 3D 12 00 90 00 C3 [10:21:32]RAPDU: 90 00 [10:21:32]wFMCommunicate OK [10:21:32]wFMCommunicate request_size=255 [10:21:32]MH_SAM_APDU [10:21: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 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 F6 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AD B0 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 72 DA 02 00 35 04 06 00 E1 [10:21:32]Write to MH i2c: E2 02 01 3E 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 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 F6 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AD B0 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 72 DA 02 00 35 04 06 00 E1 00 00 4C [10:21:32]Write i2c OK [10:21:32]MH_I2C_Read... [10:21:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:32]Read from MH i2c: E2 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 03 00 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 03 00 3E 12 00 90 00 C4 [10:21:32]RAPDU: 90 00 [10:21:32]wFMCommunicate OK [10:21:32]wFMCommunicate request_size=10 [10:21:32]MH_SAM_APDU [10:21:32]CAPDU: 80 0D 02 02 05 BF E7 3E A6 45 [10:21:32]Write to MH i2c: E2 0D 00 3F 12 80 0D 02 02 05 00 BF E7 3E A6 45 00 00 A4 [10:21:32]Write i2c OK [10:21:32]MH_I2C_Read... [10:21:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:32]Read from MH i2c: E2 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 03 00 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 03 00 3F 12 00 90 00 C5 [10:21:32]RAPDU: 90 00 [10:21:32]wFMCommunicate OK [10:21:32]wFMCommunicate request_size=4 [10:21:32]MH_SAM_APDU [10:21:32]CAPDU: 80 0D 03 02 [10:21:32]Write to MH i2c: E2 08 00 40 12 80 0D 03 02 00 00 00 00 CD [10:21:32]Write i2c OK [10:21:32]MH_I2C_Read... [10:21:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:32]Read from MH i2c: E2 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 0B 00 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 0B 00 40 12 00 89 4F C9 91 1B 5F 75 88 90 00 77 [10:21:32]RAPDU: 89 4F C9 91 1B 5F 75 88 90 00 [10:21:32]wFMCommunicate OK [10:21:32]SAM_PROTO_SignData done [10:21:32]FM_MakeSignedData done [10:21:32]CreateOFDProtocolMessage [10:21:32]wFMCommunicate request_size=4 [10:21:32]MH_SAM_APDU [10:21:32]CAPDU: 80 11 00 00 [10:21:32]Write to MH i2c: E2 08 00 41 12 80 11 00 00 00 00 00 00 CD [10:21:32]Write i2c OK [10:21:32]MH_I2C_Read... [10:21:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:32]Read from MH i2c: E2 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 17 00 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 17 00 41 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 20 [10:21:32]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:32]wFMCommunicate OK [10:21:32]CreateOFDProtocolMessage done [10:21:32]OFDSenderStorePacket 186994 [10:21:32]StoreOFDPacket docnum=186994 [10:21: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 F9 1A 07 01 AE 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F6 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AD B0 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 72 DA 02 00 35 04 06 00 E1 BF E7 3E A6 45 89 4F C9 91 1B 5F 75 88 [10:21:32]CheckFolder [10:21:32]dirname=/storage/ofd_packets [10:21:32]CheckFolder done [10:21:32]ProducePacketName [10:21:32]name=ofd_packets/00186994 [10:21:32]NVStorageSaveData ofd_packets/00186994 [10:21:32]File name is /storage/ofd_packets/00186994 [10:21:32]Write 301 bytes [10:21:32]NVStorageSaveData done [10:21:32]OFDSenderStorePacket done [10:21:32]KKMCreateOFDPacket done [10:21:32]NVStorageSaveData kkm_last_timestamp [10:21:32]File name is /storage/kkm_last_timestamp [10:21:32]Write 4 bytes [10:21:32]NVStorageSaveData done [10:21:32]ExternCall_PrintAddStr [10:21:32]wPrintStart [10:21:32]Write to MH i2c: 01 00 00 42 12 54 [10:21:32]Write i2c OK [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: 01 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: 01 07 00 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: 01 07 00 42 12 00 00 00 00 00 FF 0F 69 [10:21:32]RasterBufferAndPrint [10:21:32]line Счет N : (1)412144 [10:21:32]line ИНН: 02508201610067 [10:21:32]line Контрольно-Кассовый Чек [10:21:32]line ПРОДАЖА [10:21:32]line ТРК (МРК, ГНК) : 22 [10:21:32]line Товар: 2710124130 [10:21:32]line Аи-92-К-2 [10:21:32]line 18.700 * 64.20 [10:21:32]line = 1200.54 [10:21:32]line НДС 12% НСП 1% [10:21:32]line > о реализуемом товаре [10:21:32]line ИТОГО: 1200.54 [10:21:32]line НСП 1% : 10.62 [10:21:32]line НДС 12% : 127.49 [10:21:32]line Наличными: 0.00 [10:21:32]line Безнал.: 1200.54 [10:21:32]line Место: АЗС № 92 "Партнер Нефть" [10:21:32]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:21:32]line СНО: Общий режим [10:21:32]line Чек 60 19.02.2025 10:21 [10:21:32]line Смена: 647 ФФД: 1.0 [10:21:32]line ЗНМ: 0300000118 [10:21:32]line РНМ: 0000000000091857 [10:21:32]line Версия ККМ: 001 [10:21:32]line Платежная система: O! деньги [10:21:32]line ФМ: 0000000000871826 [10:21:32]line ФД: 186994 [10:21:32]line ФПД: 248214334645829 [10:21:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T102133&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186994&fm=248214334645829&tin=02508201610067®Number=0000000000091857&sum=120054 [10:21:33]written 0, free lines is 4095 [10:21:33]OFD Sender: Processing packet 186994 [packets to send 49, broken 48] [10:21:33]ProducePacketName [10:21:33]name=ofd_packets/00186994 [10:21:33]OFD Sender: To server: pG, [10:21:33]CommunicateWithHost lk.salyk.kg:30040 [10:21:33]ConnectInit lk.salyk.kg [10:21:33]Connected sock=10 [10:21: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 F9 1A 07 01 AE 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F6 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AD B0 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 72 DA 02 00 35 04 06 00 E1 BF E7 3E A6 45 89 4F C9 91 1B 5F 75 88 [10:21: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 8C 4E 47 00 44 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 72 DA 02 00 F4 03 04 00 02 57 B5 67 B6 04 01 00 00 61 98 4E 00 BC 9B 4C B8 [10:21:33]CommunicateWithHost err = 0 [10:21:33]CheckOFDResponse [10:21:33]1017 (14) - 77093643461234 [10:21:33]1041 (16) - 0000000000871826 [10:21:33]1040 (4) - 186994 [10:21:33]1012 (4) - 19.02.2025 03:58 [10:21:33]1206 (1) - 0 [10:21:33]OFD Sender: Remove packet 186994 [10:21:33]ProducePacketName [10:21:33]name=ofd_packets/00186994 [10:21:33]NVStorageDeleteData [10:21:33]Write to MH i2c: 01 00 00 6C 12 7E [10:21:33]Write i2c OK [10:21:33]MH_I2C_Read... [10:21:33]Read from MH i2c: 01 [10:21:33]MH_I2C_Read... [10:21:33]Read from MH i2c: 01 07 00 [10:21:33]MH_I2C_Read... [10:21:33]Read from MH i2c: 01 07 00 6C 12 00 00 00 00 00 FF 0C 90 [10:21:33]RasterBufferAndPrint [10:21:33]line [10:21:33]line [10:21:33]line [10:21:33]line [10:21:33]line [10:21:33]written 0, free lines is 3333 [10:21:33]MH_Cut [10:21:33]Write to MH i2c: D1 01 00 73 12 01 57 [10:21:33]Write i2c OK [10:21:33]MH_I2C_Read... [10:21:33]Read from MH i2c: D1 [10:21:33]MH_I2C_Read... [10:21:33]Read from MH i2c: D1 01 00 [10:21:33]MH_I2C_Read... [10:21:33]Read from MH i2c: D1 01 00 73 12 00 56 [10:21:33]Write to MH i2c: 01 00 00 74 12 86 [10:21:33]Write i2c OK [10:21:33]MH_I2C_Read... [10:21:33]OFD Sender: No OFD packet to send [10:21:34]*** Cut start [10:21:34]*** Partial cut [10:21:34]*** CUTSNS_PIN = 1 [10:21:34]*** CUTSNS_PIN = 0 [10:21:34]*** Brake cut motor [10:21:34]Read from MH i2c: 01 [10:21:34]MH_I2C_Read... [10:21:34]*** Stop cut motor [10:21:34]*** Cut end [10:21:34]Read from MH i2c: 01 07 00 [10:21:34]MH_I2C_Read... [10:21:34]Read from MH i2c: 01 07 00 74 12 00 00 00 00 00 FF 0F 9B [10:21:34]process_action close_receipt done [10:21:34]requested_data is exist [10:21:34]produce_requested_data [10:21:34]requested_item fm.sn is exist - process it [10:21:34]wFMCommunicate request_size=4 [10:21:34]MH_SAM_APDU [10:21:34]CAPDU: 80 11 00 00 [10:21:34]Write to MH i2c: E2 08 00 75 12 80 11 00 00 00 00 00 00 01 [10:21:34]Write i2c OK [10:21:34]MH_I2C_Read... [10:21:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:34]Read from MH i2c: E2 [10:21:34]MH_I2C_Read... [10:21:34]Read from MH i2c: E2 17 00 [10:21:34]MH_I2C_Read... [10:21:34]Read from MH i2c: E2 17 00 75 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 54 [10:21:34]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:34]wFMCommunicate OK [10:21:34]requested_item fd.num is exist - process it [10:21:34]SAM_PROTO_GetFieldsCounters [10:21:34]wFMCommunicate request_size=4 [10:21:34]MH_SAM_APDU [10:21:34]CAPDU: 80 13 00 00 [10:21:34]Write to MH i2c: E2 08 00 76 12 80 13 00 00 00 00 00 00 04 [10:21:34]Write i2c OK [10:21:34]MH_I2C_Read... [10:21:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:35]Read from MH i2c: E2 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: E2 62 00 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: E2 62 00 76 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 72 DA 02 00 0E 04 04 00 87 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 B5 [10:21: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 72 DA 02 00 0E 04 04 00 87 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:21:35]wFMCommunicate OK [10:21:35]SAM_PROTO_GetFieldsCounters done [10:21:35]requested_item shift.num is exist - process it [10:21:35]requested_item shift.opened is exist - process it [10:21:35]req_shift_opened [10:21:35]FM_GetShiftState [10:21:35]SAM_PROTO_GetShiftState [10:21:35]wFMCommunicate request_size=4 [10:21:35]MH_SAM_APDU [10:21:35]CAPDU: 80 13 01 00 [10:21:35]Write to MH i2c: E2 08 00 77 12 80 13 01 00 00 00 00 00 06 [10:21:35]Write i2c OK [10:21:35]MH_I2C_Read... [10:21:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:35]Read from MH i2c: E2 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: E2 0E 00 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: E2 0E 00 77 12 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 85 [10:21:35]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:21:35]wFMCommunicate OK [10:21:35]SAM_PROTO_GetShiftState done [10:21:35]FM_GetShiftState done [10:21:35]req_shift_opened done [10:21:35]requested_item shift.open_date is exist - process it [10:21:35]req_shift_open_date [10:21:35]req_shift_open_date done [10:21:35]produce_requested_data done [10:21:35]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186994,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [10:21:35]process_action_free close_receipt [10:21:35]json_value_free [10:21:35]json_value_free done [10:21:35]process_json_proto returns [10:21:35]Send response to host [10:21:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186994,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [10:21:35]free response buf [10:21:35]execute_script done [10:21:35]execute_script returns [10:21:35]free content buf [10:21:35]Sock 9.Close socket [10:21:35]Sock 9.Thread stoped [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22: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:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:17]accept exits with 7 [10:26:17]New connection [10:26:17]New thread 3067022692 created [10:26:17]Thread 3066879332 joined [10:26:17]Waiting for new connection... [10:26:17] Sock 7.Parse request [10:26:17]Sock 7.Check first char [10:26:17]Sock 7.First char is OK [10:26:17]request: POST /json_proto HTTP/1.0 [10:26:17]Method: POST [10:26:17]URL: /json_proto [10:26:17]Method is POST - this is cgi request [10:26:17]url: /json_proto [10:26:17]query_string will be loaded in cgi processing [10:26:17]execute_cgi json_proto POST (null) [10:26:17]execute_cgi path=json_proto method=POST [10:26:17]POST find Content-Length [10:26:17]Host: 172.17.46.131:8080 [10:26:17]Content-Length: 751 [10:26:17]Content-Type: application/json [10:26:17] [10:26:17]POST finish read [10:26:17]Found Content-Length = 751 [10:26:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412145", "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" : 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\u000A30107314", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:17]execute_script... [10:26: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)412145", "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" : 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\u000A30107314", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:17]POST & json_proto [10:26:17]process_json_proto [10:26:17]json parsed OK: [10:26:17]protocol is kg_v1.0 [10:26:17]action value=close_receipt [10:26:17]process_action close_receipt [10:26:17]cmd_close_receipt [10:26:17]MH_GetDate [10:26:17]Write to MH i2c: F0 00 00 78 12 79 [10:26:17]Write i2c OK [10:26:17]MH_I2C_Read... [10:26:17]Read from MH i2c: F0 [10:26:17]MH_I2C_Read... [10:26:17]Read from MH i2c: F0 09 00 [10:26:17]MH_I2C_Read... [10:26:17]Read from MH i2c: F0 09 00 78 12 00 CC B1 B5 67 7E 41 4F 65 8E [10:26:17]GetLastDocTimeStamp 1739960493 [10:26:17]current date 1739960780 [10:26:17]FM_GetShiftState [10:26:17]SAM_PROTO_GetShiftState [10:26:17]wFMCommunicate request_size=4 [10:26:17]MH_SAM_APDU [10:26:17]CAPDU: 80 13 01 00 [10:26:17]Write to MH i2c: E2 08 00 79 12 80 13 01 00 00 00 00 00 08 [10:26:17]Write i2c OK [10:26:17]MH_I2C_Read... [10:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:17]Read from MH i2c: E2 [10:26:17]MH_I2C_Read... [10:26:17]Read from MH i2c: E2 0E 00 [10:26:17]MH_I2C_Read... [10:26:17]Read from MH i2c: E2 0E 00 79 12 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 87 [10:26:17]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:26:17]wFMCommunicate OK [10:26:17]SAM_PROTO_GetShiftState done [10:26:17]FM_GetShiftState done [10:26:17]opened in 1739929631 [10:26:17]opened+sec_in_day 1740016031 [10:26:17]quantity*price = 0 [10:26:17]sum+1 = 1 [10:26:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 61 19.02.2025 10:26 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30107314 ФМ: 0000000000871826 ФД: 186995 ФПД: 243455107763750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T102620&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186995&fm=243455107763750&tin=02508201610067®Number=0000000000091857&sum=0 [10:26:18]StoreToDocumentArchive [10:26:18]shift 647 fd 186995 [10:26:18]save to /storage/0647/doc_00186995 [10:26:18]save last doc name /storage/0647/doc_00186995 to /storage/kkm_last_doc_name [10:26:18]save OK [10:26:18]Clear old archive folders... [10:26:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:26:18]tlvbuf is B6DB94D0 [10:26:18]SAM_PROTO_ClearQueue [10:26:18]wFMCommunicate request_size=4 [10:26:18]MH_SAM_APDU [10:26:18]CAPDU: 80 09 00 00 [10:26:18]Write to MH i2c: E2 08 00 86 12 80 09 00 00 00 00 00 00 0A [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 86 12 00 90 00 0C [10:26:18]RAPDU: 90 00 [10:26:18]wFMCommunicate OK [10:26:18]SAM_PROTO_ClearQueue done [10:26:18]KKMCreateOFDPacket [10:26:18]OFDProtocolAddRootSTLVToBuf [10:26:18]FM_MakeSignedData [10:26:18]FM_MakeSignedData [10:26:18]SAM_PROTO_SignData [10:26:18]wFMCommunicate request_size=4 [10:26:18]MH_SAM_APDU [10:26:18]CAPDU: 80 0D 01 02 [10:26:18]Write to MH i2c: E2 08 00 87 12 80 0D 01 02 00 00 00 00 12 [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 03 00 87 12 00 90 00 0D [10:26:18]RAPDU: 90 00 [10:26:18]wFMCommunicate OK [10:26:18]wFMCommunicate request_size=255 [10:26:18]MH_SAM_APDU [10:26:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 3D 00 00 00 F4 03 04 00 CC B1 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 73 DA 02 00 35 04 06 00 DD 6B CF 37 [10:26:18]Write to MH i2c: E2 02 01 88 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 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 3D 00 00 00 F4 03 04 00 CC B1 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 73 DA 02 00 35 04 06 00 DD 6B CF 37 00 00 80 [10:26:18]Write i2c OK [10:26:18]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 88 12 00 90 00 0E [10:26:19]RAPDU: 90 00 [10:26:19]wFMCommunicate OK [10:26:19]wFMCommunicate request_size=7 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 0D 02 02 02 8E 26 [10:26:19]Write to MH i2c: E2 0A 00 89 12 80 0D 02 02 02 00 8E 26 00 00 CD [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 89 12 00 90 00 0F [10:26:19]RAPDU: 90 00 [10:26:19]wFMCommunicate OK [10:26:19]wFMCommunicate request_size=4 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 0D 03 02 [10:26:19]Write to MH i2c: E2 08 00 8A 12 80 0D 03 02 00 00 00 00 17 [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 0B 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 0B 00 8A 12 00 9C F0 78 62 13 3F 19 6E 90 00 57 [10:26:19]RAPDU: 9C F0 78 62 13 3F 19 6E 90 00 [10:26:19]wFMCommunicate OK [10:26:19]SAM_PROTO_SignData done [10:26:19]FM_MakeSignedData done [10:26:19]CreateOFDProtocolMessage [10:26:19]wFMCommunicate request_size=4 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 11 00 00 [10:26:19]Write to MH i2c: E2 08 00 8B 12 80 11 00 00 00 00 00 00 17 [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]OFD Sender: No OFD packet to send [10:26:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 17 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 17 00 8B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6A [10: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 [10:26:19]wFMCommunicate OK [10:26:19]CreateOFDProtocolMessage done [10:26:19]OFDSenderStorePacket 186995 [10:26:19]StoreOFDPacket docnum=186995 [10:26:19]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 5A 23 04 01 5E 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 3D 00 00 00 F4 03 04 00 CC B1 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 73 DA 02 00 35 04 06 00 DD 6B CF 37 8E 26 9C F0 78 62 13 3F 19 6E [10:26:19]CheckFolder [10:26:19]dirname=/storage/ofd_packets [10:26:19]CheckFolder done [10:26:19]ProducePacketName [10:26:19]name=ofd_packets/00186995 [10:26:19]NVStorageSaveData ofd_packets/00186995 [10:26:19]File name is /storage/ofd_packets/00186995 [10:26:19]Write 298 bytes [10:26:19]NVStorageSaveData done [10:26:19]OFDSenderStorePacket done [10:26:19]KKMCreateOFDPacket done [10:26:19]NVStorageSaveData kkm_last_timestamp [10:26:19]File name is /storage/kkm_last_timestamp [10:26:19]Write 4 bytes [10:26:19]NVStorageSaveData done [10:26:19]ExternCall_PrintAddStr [10:26:19]wPrintStart [10:26:19]Write to MH i2c: 01 00 00 8C 12 9E [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: 01 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: 01 07 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: 01 07 00 8C 12 00 00 00 00 00 FF 0F B3 [10:26:19]RasterBufferAndPrint [10:26:19]line Счет N : (1)412145 [10:26:19]line ИНН: 02508201610067 [10:26:19]line Контрольно-Кассовый Чек [10:26:19]line ПРОДАЖА [10:26:19]line ТРК (МРК, ГНК) : 11 [10:26:19]line Товар: 2710194210 [10:26:19]line ДТ-К-2 [10:26:19]line 50.000 * 0.00 [10:26:19]line = 0.00 [10:26:19]line НДС 12% НСП 1% [10:26:19]line > о реализуемом товаре [10:26:19]line ИТОГО: 0.00 [10:26:19]line НСП 1% : 0.00 [10:26:19]line НДС 12% : 0.00 [10:26:19]line Наличными: 0.00 [10:26:19]line Безнал.: 0.00 [10:26:19]line Место: АЗС № 92 "Партнер Нефть" [10:26:19]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:26:19]line СНО: Общий режим [10:26:19]line Чек 61 19.02.2025 10:26 [10:26:19]line Смена: 647 ФФД: 1.0 [10:26:19]line ЗНМ: 0300000118 [10:26:19]line РНМ: 0000000000091857 [10:26:19]line Версия ККМ: 001 [10:26:19]line Талоны: ТК ГПНА Online [10:26:19]line 30107314 [10:26:19]line ФМ: 0000000000871826 [10:26:19]line ФД: 186995 [10:26:19]line ФПД: 243455107763750 [10:26:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T102620&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186995&fm=243455107763750&tin=02508201610067®Number=0000000000091857&sum=0 [10:26:19]OFD Sender: Processing packet 186995 [packets to send 49, broken 48] [10:26:19]ProducePacketName [10:26:19]name=ofd_packets/00186995 [10:26:19]OFD Sender: To server: pG, [10:26:19]CommunicateWithHost lk.salyk.kg:30040 [10:26:19]ConnectInit lk.salyk.kg [10:26:19]written 0, free lines is 4095 [10:26:19]Connected sock=10 [10:26: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 0C 01 00 00 5A 23 04 01 5E 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 3D 00 00 00 F4 03 04 00 CC B1 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 73 DA 02 00 35 04 06 00 DD 6B CF 37 8E 26 9C F0 78 62 13 3F 19 6E [10:26: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 65 C7 47 00 EF 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 73 DA 02 00 F4 03 04 00 20 58 B5 67 B6 04 01 00 00 44 CC A7 8A E5 49 8C 3C [10:26:20]CommunicateWithHost err = 0 [10:26:20]CheckOFDResponse [10:26:20]1017 (14) - 77093643461234 [10:26:20]1041 (16) - 0000000000871826 [10:26:20]1040 (4) - 186995 [10:26:20]1012 (4) - 19.02.2025 04:03 [10:26:20]1206 (1) - 0 [10:26:20]OFD Sender: Remove packet 186995 [10:26:20]ProducePacketName [10:26:20]name=ofd_packets/00186995 [10:26:20]NVStorageDeleteData [10:26:20]Write to MH i2c: 01 00 00 B6 12 C8 [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: 01 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: 01 07 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: 01 07 00 B6 12 00 00 00 00 00 F9 0C D4 [10:26:20]RasterBufferAndPrint [10:26:20]line [10:26:20]line [10:26:20]line [10:26:20]line [10:26:20]line [10:26:20]written 0, free lines is 3327 [10:26:20]MH_Cut [10:26:20]Write to MH i2c: D1 01 00 BD 12 01 A1 [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: D1 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: D1 01 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: D1 01 00 BD 12 00 A0 [10:26:20]Write to MH i2c: 01 00 00 BE 12 D0 [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]OFD Sender: No OFD packet to send [10:26:20]*** Cut start [10:26:20]*** Partial cut [10:26:20]*** CUTSNS_PIN = 1 [10:26:20]*** CUTSNS_PIN = 0 [10:26:21]*** Brake cut motor [10:26:21]Read from MH i2c: 01 [10:26:21]MH_I2C_Read... [10:26:21]*** Stop cut motor [10:26:21]*** Cut end [10:26:21]Read from MH i2c: 01 07 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: 01 07 00 BE 12 00 00 00 00 00 FF 0F E5 [10:26:21]process_action close_receipt done [10:26:21]requested_data is exist [10:26:21]produce_requested_data [10:26:21]requested_item fm.sn is exist - process it [10:26:21]wFMCommunicate request_size=4 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 11 00 00 [10:26:21]Write to MH i2c: E2 08 00 BF 12 80 11 00 00 00 00 00 00 4B [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:21]Read from MH i2c: E2 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 17 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 17 00 BF 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9E [10: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 [10:26:21]wFMCommunicate OK [10:26:21]requested_item fd.num is exist - process it [10:26:21]SAM_PROTO_GetFieldsCounters [10:26:21]wFMCommunicate request_size=4 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 13 00 00 [10:26:21]Write to MH i2c: E2 08 00 C0 12 80 13 00 00 00 00 00 00 4E [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:21]Read from MH i2c: E2 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 62 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 62 00 C0 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 03 [10:26: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 73 DA 02 00 0E 04 04 00 87 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:26:21]wFMCommunicate OK [10:26:21]SAM_PROTO_GetFieldsCounters done [10:26:21]requested_item shift.num is exist - process it [10:26:21]requested_item shift.opened is exist - process it [10:26:21]req_shift_opened [10:26:21]FM_GetShiftState [10:26:21]SAM_PROTO_GetShiftState [10:26:21]wFMCommunicate request_size=4 [10:26:21]MH_SAM_APDU [10:26:21]CAPDU: 80 13 01 00 [10:26:21]Write to MH i2c: E2 08 00 C1 12 80 13 01 00 00 00 00 00 50 [10:26:21]Write i2c OK [10:26:21]MH_I2C_Read... [10:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:21]Read from MH i2c: E2 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 0E 00 [10:26:21]MH_I2C_Read... [10:26:21]Read from MH i2c: E2 0E 00 C1 12 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 CF [10:26:21]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:26:21]wFMCommunicate OK [10:26:21]SAM_PROTO_GetShiftState done [10:26:21]FM_GetShiftState done [10:26:21]req_shift_opened done [10:26:21]requested_item shift.open_date is exist - process it [10:26:21]req_shift_open_date [10:26:21]req_shift_open_date done [10:26:21]produce_requested_data done [10:26:21]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186995,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [10:26:21]process_action_free close_receipt [10:26:21]json_value_free [10:26:21]json_value_free done [10:26:21]process_json_proto returns [10:26:21]Send response to host [10:26:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186995,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [10:26:21]free response buf [10:26:21]execute_script done [10:26:21]execute_script returns [10:26:21]free content buf [10:26:21]Sock 7.Close socket [10:26:21]Sock 7.Thread stoped [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:27:00]OFD Sender: No OFD packet to send [10:27:05]OFD Sender: No OFD packet to send [10:27:10]OFD Sender: No OFD packet to send [10:27:15]OFD Sender: No OFD packet to send [10:27:20]OFD Sender: No OFD packet to send [10:27:25]OFD Sender: No OFD packet to send [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:45]OFD Sender: No OFD packet to send [10:27:50]OFD Sender: No OFD packet to send [10:27:55]OFD Sender: No OFD packet to send [10:28:00]OFD Sender: No OFD packet to send [10:28:05]OFD Sender: No OFD packet to send [10:28:10]OFD Sender: No OFD packet to send [10:28:15]OFD Sender: No OFD packet to send [10:28:20]OFD Sender: No OFD packet to send [10:28:25]OFD Sender: No OFD packet to send [10:28:30]OFD Sender: No OFD packet to send [10:28:35]OFD Sender: No OFD packet to send [10:28:40]OFD Sender: No OFD packet to send [10:28:45]OFD Sender: No OFD packet to send [10:28:50]OFD Sender: No OFD packet to send [10:28:55]OFD Sender: No OFD packet to send [10:29:00]OFD Sender: No OFD packet to send [10:29:05]OFD Sender: No OFD packet to send [10:29:10]OFD Sender: No OFD packet to send [10:29:15]OFD Sender: No OFD packet to send [10:29:20]OFD Sender: No OFD packet to send [10:29:25]OFD Sender: No OFD packet to send [10:29:30]OFD Sender: No OFD packet to send [10:29:35]OFD Sender: No OFD packet to send [10:29:40]OFD Sender: No OFD packet to send [10:29:45]OFD Sender: No OFD packet to send [10:29:50]OFD Sender: No OFD packet to send [10:29:55]OFD Sender: No OFD packet to send [10:30:00]OFD Sender: No OFD packet to send [10:30:05]OFD Sender: No OFD packet to send [10:30:10]OFD Sender: No OFD packet to send [10:30:15]OFD Sender: No OFD packet to send [10:30:20]OFD Sender: No OFD packet to send [10:30:25]OFD Sender: No OFD packet to send [10:30:30]OFD Sender: No OFD packet to send [10:30:35]OFD Sender: No OFD packet to send [10:30:40]OFD Sender: No OFD packet to send [10:30:45]OFD Sender: No OFD packet to send [10:30:50]OFD Sender: No OFD packet to send [10:30:55]OFD Sender: No OFD packet to send [10:31:00]OFD Sender: No OFD packet to send [10:31:05]OFD Sender: No OFD packet to send [10:31:10]OFD Sender: No OFD packet to send [10:31:15]OFD Sender: No OFD packet to send [10:31:20]OFD Sender: No OFD packet to send [10:31:25]OFD Sender: No OFD packet to send [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:01]accept exits with 9 [10:32:01]New connection [10:32:01]New thread 3066879332 created [10:32:01]Thread 3067022692 joined [10:32:01]Waiting for new connection... [10:32:01] Sock 9.Parse request [10:32:01]Sock 9.Check first char [10:32:01]Sock 9.First char is OK [10:32:01]request: POST /json_proto HTTP/1.0 [10:32:01]Method: POST [10:32:01]URL: /json_proto [10:32:01]Method is POST - this is cgi request [10:32:01]url: /json_proto [10:32:01]query_string will be loaded in cgi processing [10:32:01]execute_cgi json_proto POST (null) [10:32:01]execute_cgi path=json_proto method=POST [10:32:01]POST find Content-Length [10:32:01]Host: 172.17.46.131:8080 [10:32:01]Content-Length: 677 [10:32:01]Content-Type: application/json [10:32:01] [10:32:01]POST finish read [10:32:01]Found Content-Length = 677 [10:32:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412147", "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 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:01]execute_script... [10:32: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)412147", "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 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:01]POST & json_proto [10:32:01]process_json_proto [10:32:01]json parsed OK: [10:32:01]protocol is kg_v1.0 [10:32:01]action value=close_receipt [10:32:01]process_action close_receipt [10:32:01]cmd_close_receipt [10:32:01]MH_GetDate [10:32:01]Write to MH i2c: F0 00 00 C2 12 C3 [10:32:01]Write i2c OK [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: F0 [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: F0 09 00 [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: F0 09 00 C2 12 00 23 B3 B5 67 7E 41 4F 65 31 [10:32:01]GetLastDocTimeStamp 1739960780 [10:32:01]current date 1739961123 [10:32:01]FM_GetShiftState [10:32:01]SAM_PROTO_GetShiftState [10:32:01]wFMCommunicate request_size=4 [10:32:01]MH_SAM_APDU [10:32:01]CAPDU: 80 13 01 00 [10:32:01]Write to MH i2c: E2 08 00 C3 12 80 13 01 00 00 00 00 00 52 [10:32:01]Write i2c OK [10:32:01]MH_I2C_Read... [10:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:01]Read from MH i2c: E2 [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: E2 0E 00 [10:32:01]MH_I2C_Read... [10:32:01]Read from MH i2c: E2 0E 00 C3 12 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D1 [10:32:01]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:32:01]wFMCommunicate OK [10:32:01]SAM_PROTO_GetShiftState done [10:32:01]FM_GetShiftState done [10:32:01]opened in 1739929631 [10:32:01]opened+sec_in_day 1740016031 [10:32:01]quantity*price = 20030 [10:32:01]sum+1 = 20031 [10:32: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 СНО: Общий режим Чек 62 19.02.2025 10:32 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186996 ФПД: 106829574854665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T103203&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186996&fm=106829574854665&tin=02508201610067®Number=0000000000091857&sum=20000 [10:32:02]StoreToDocumentArchive [10:32:02]shift 647 fd 186996 [10:32:02]save to /storage/0647/doc_00186996 [10:32:02]save last doc name /storage/0647/doc_00186996 to /storage/kkm_last_doc_name [10:32:02]save OK [10:32:02]Clear old archive folders... [10:32:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:02]tlvbuf is 005D5890 [10:32:02]SAM_PROTO_ClearQueue [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 09 00 00 [10:32:02]Write to MH i2c: E2 08 00 D0 12 80 09 00 00 00 00 00 00 54 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 D0 12 00 90 00 56 [10:32:02]RAPDU: 90 00 [10:32:02]wFMCommunicate OK [10:32:02]SAM_PROTO_ClearQueue done [10:32:02]KKMCreateOFDPacket [10:32:02]OFDProtocolAddRootSTLVToBuf [10:32:02]FM_MakeSignedData [10:32:02]FM_MakeSignedData [10:32:02]SAM_PROTO_SignData [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 0D 01 02 [10:32:02]Write to MH i2c: E2 08 00 D1 12 80 0D 01 02 00 00 00 00 5C [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 D1 12 00 90 00 57 [10:32:02]RAPDU: 90 00 [10:32:02]wFMCommunicate OK [10:32:02]wFMCommunicate request_size=255 [10:32:02]MH_SAM_APDU [10:32: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 3E 00 00 00 F4 03 04 00 23 B3 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 74 DA 02 00 35 04 06 00 61 [10:32:02]Write to MH i2c: E2 02 01 D2 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 3E 00 00 00 F4 03 04 00 23 B3 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 74 DA 02 00 35 04 06 00 61 00 00 AB [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 D2 12 00 90 00 58 [10:32:02]RAPDU: 90 00 [10:32:02]wFMCommunicate OK [10:32:02]wFMCommunicate request_size=10 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 0D 02 02 05 29 32 DC 58 09 [10:32:02]Write to MH i2c: E2 0D 00 D3 12 80 0D 02 02 05 00 29 32 DC 58 09 00 00 01 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 D3 12 00 90 00 59 [10:32:02]RAPDU: 90 00 [10:32:02]wFMCommunicate OK [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 0D 03 02 [10:32:02]Write to MH i2c: E2 08 00 D4 12 80 0D 03 02 00 00 00 00 61 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 0B 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 0B 00 D4 12 00 BD C1 79 9F 91 B6 68 9A 90 00 41 [10:32:02]RAPDU: BD C1 79 9F 91 B6 68 9A 90 00 [10:32:02]wFMCommunicate OK [10:32:02]SAM_PROTO_SignData done [10:32:02]FM_MakeSignedData done [10:32:02]CreateOFDProtocolMessage [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 11 00 00 [10:32:02]Write to MH i2c: E2 08 00 D5 12 80 11 00 00 00 00 00 00 61 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 17 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 17 00 D5 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B4 [10:32: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:32:02]wFMCommunicate OK [10:32:02]CreateOFDProtocolMessage done [10:32:02]OFDSenderStorePacket 186996 [10:32:02]StoreOFDPacket docnum=186996 [10:32: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 0E DD 07 01 76 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 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 3E 00 00 00 F4 03 04 00 23 B3 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 74 DA 02 00 35 04 06 00 61 29 32 DC 58 09 BD C1 79 9F 91 B6 68 9A [10:32:02]CheckFolder [10:32:02]dirname=/storage/ofd_packets [10:32:02]CheckFolder done [10:32:02]ProducePacketName [10:32:02]name=ofd_packets/00186996 [10:32:02]NVStorageSaveData ofd_packets/00186996 [10:32:02]File name is /storage/ofd_packets/00186996 [10:32:02]Write 301 bytes [10:32:02]NVStorageSaveData done [10:32:02]OFDSenderStorePacket done [10:32:02]KKMCreateOFDPacket done [10:32:02]NVStorageSaveData kkm_last_timestamp [10:32:02]File name is /storage/kkm_last_timestamp [10:32:02]Write 4 bytes [10:32:02]NVStorageSaveData done [10:32:02]ExternCall_PrintAddStr [10:32:02]wPrintStart [10:32:02]Write to MH i2c: 01 00 00 D6 12 E8 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: 01 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: 01 07 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: 01 07 00 D6 12 00 00 00 00 00 FF 0F FD [10:32:02]RasterBufferAndPrint [10:32:02]line Счет N : (1)412147 [10:32:02]line ИНН: 02508201610067 [10:32:02]line Контрольно-Кассовый Чек [10:32:02]line ПРОДАЖА [10:32:02]line ТРК (МРК, ГНК) : 32 [10:32:02]line Товар: 2710124130 [10:32:02]line Аи-92-К-2 [10:32:02]line 3.120 * 64.20 [10:32:02]line = 200.30 [10:32:02]line НДС 12% НСП 1% [10:32:02]line > о реализуемом товаре [10:32:02]line ОКРУГЛЕНИЕ: -0.30 [10:32:02]line ИТОГО: 200.00 [10:32:02]line Внесено: 200.00 [10:32:02]line СДАЧА: 0.00 [10:32:02]line НСП 1% : 1.77 [10:32:02]line НДС 12% : 21.27 [10:32:02]line Наличными: 200.00 [10:32:02]line Безнал.: 0.00 [10:32:02]line Место: АЗС № 92 "Партнер Нефть" [10:32:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:32:02]line СНО: Общий режим [10:32:02]line Чек 62 19.02.2025 10:32 [10:32:02]line Смена: 647 ФФД: 1.0 [10:32:02]line ЗНМ: 0300000118 [10:32:02]line РНМ: 0000000000091857 [10:32:02]line Версия ККМ: 001 [10:32:02]line ФМ: 0000000000871826 [10:32:02]line ФД: 186996 [10:32:02]line ФПД: 106829574854665 [10:32:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T103203&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186996&fm=106829574854665&tin=02508201610067®Number=0000000000091857&sum=20000 [10:32:03]written 0, free lines is 4095 [10:32:03]OFD Sender: Processing packet 186996 [packets to send 49, broken 48] [10:32:03]ProducePacketName [10:32:03]name=ofd_packets/00186996 [10:32:03]OFD Sender: To server: pG, [10:32:03]CommunicateWithHost lk.salyk.kg:30040 [10:32:03]ConnectInit lk.salyk.kg [10:32:03]Connected sock=10 [10:32: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 0E DD 07 01 76 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 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 3E 00 00 00 F4 03 04 00 23 B3 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 74 DA 02 00 35 04 06 00 61 29 32 DC 58 09 BD C1 79 9F 91 B6 68 9A [10:32: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 55 1C 47 00 85 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 74 DA 02 00 F4 03 04 00 78 59 B5 67 B6 04 01 00 00 12 3B F8 BD 79 B9 C0 09 [10:32:03]CommunicateWithHost err = 0 [10:32:03]CheckOFDResponse [10:32:03]1017 (14) - 77093643461234 [10:32:03]1041 (16) - 0000000000871826 [10:32:03]1040 (4) - 186996 [10:32:03]1012 (4) - 19.02.2025 04:09 [10:32:03]1206 (1) - 0 [10:32:03]OFD Sender: Remove packet 186996 [10:32:03]ProducePacketName [10:32:03]name=ofd_packets/00186996 [10:32:03]NVStorageDeleteData [10:32:03]Write to MH i2c: 01 00 00 01 13 14 [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: 01 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: 01 07 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: 01 07 00 01 13 00 00 00 00 00 F1 0C 18 [10:32:03]RasterBufferAndPrint [10:32:03]line [10:32:03]line [10:32:03]line [10:32:03]line [10:32:03]line [10:32:03]written 0, free lines is 3319 [10:32:03]MH_Cut [10:32:03]Write to MH i2c: D1 01 00 08 13 01 ED [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: D1 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: D1 01 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: D1 01 00 08 13 00 EC [10:32:03]Write to MH i2c: 01 00 00 09 13 1C [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:04]OFD Sender: No OFD packet to send [10:32:04]*** Cut start [10:32:04]*** Partial cut [10:32:04]*** CUTSNS_PIN = 1 [10:32:04]*** CUTSNS_PIN = 0 [10:32:04]*** Brake cut motor [10:32:04]Read from MH i2c: 01 [10:32:04]MH_I2C_Read... [10:32:05]*** Stop cut motor [10:32:05]*** Cut end [10:32:05]Read from MH i2c: 01 07 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: 01 07 00 09 13 00 00 00 00 00 FF 0F 31 [10:32:05]process_action close_receipt done [10:32:05]requested_data is exist [10:32:05]produce_requested_data [10:32:05]requested_item fm.sn is exist - process it [10:32:05]wFMCommunicate request_size=4 [10:32:05]MH_SAM_APDU [10:32:05]CAPDU: 80 11 00 00 [10:32:05]Write to MH i2c: E2 08 00 0A 13 80 11 00 00 00 00 00 00 97 [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:05]Read from MH i2c: E2 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 17 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 17 00 0A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EA [10:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:32:05]wFMCommunicate OK [10:32:05]requested_item fd.num is exist - process it [10:32:05]SAM_PROTO_GetFieldsCounters [10:32:05]wFMCommunicate request_size=4 [10:32:05]MH_SAM_APDU [10:32:05]CAPDU: 80 13 00 00 [10:32:05]Write to MH i2c: E2 08 00 0B 13 80 13 00 00 00 00 00 00 9A [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:05]Read from MH i2c: E2 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 62 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 62 00 0B 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 74 DA 02 00 0E 04 04 00 87 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 53 [10:32: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 74 DA 02 00 0E 04 04 00 87 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:32:05]wFMCommunicate OK [10:32:05]SAM_PROTO_GetFieldsCounters done [10:32:05]requested_item shift.num is exist - process it [10:32:05]requested_item shift.opened is exist - process it [10:32:05]req_shift_opened [10:32:05]FM_GetShiftState [10:32:05]SAM_PROTO_GetShiftState [10:32:05]wFMCommunicate request_size=4 [10:32:05]MH_SAM_APDU [10:32:05]CAPDU: 80 13 01 00 [10:32:05]Write to MH i2c: E2 08 00 0C 13 80 13 01 00 00 00 00 00 9C [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:05]Read from MH i2c: E2 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 0E 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 0E 00 0C 13 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 1B [10:32:05]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:32:05]wFMCommunicate OK [10:32:05]SAM_PROTO_GetShiftState done [10:32:05]FM_GetShiftState done [10:32:05]req_shift_opened done [10:32:05]requested_item shift.open_date is exist - process it [10:32:05]req_shift_open_date [10:32:05]req_shift_open_date done [10:32:05]produce_requested_data done [10:32:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186996,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [10:32:05]process_action_free close_receipt [10:32:05]json_value_free [10:32:05]json_value_free done [10:32:05]process_json_proto returns [10:32:05]Send response to host [10:32:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186996,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [10:32:05]free response buf [10:32:05]execute_script done [10:32:05]execute_script returns [10:32:05]free content buf [10:32:05]Sock 9.Close socket [10:32:05]Sock 9.Thread stoped [10:32:05]accept exits with 7 [10:32:05]New connection [10:32:05]New thread 3067022692 created [10:32:05]Thread 3066879332 joined [10:32:05]Waiting for new connection... [10:32:05] Sock 7.Parse request [10:32:05]Sock 7.Check first char [10:32:05]Sock 7.First char is OK [10:32:05]request: POST /json_proto HTTP/1.0 [10:32:05]Method: POST [10:32:05]URL: /json_proto [10:32:05]Method is POST - this is cgi request [10:32:05]url: /json_proto [10:32:05]query_string will be loaded in cgi processing [10:32:05]execute_cgi json_proto POST (null) [10:32:05]execute_cgi path=json_proto method=POST [10:32:05]POST find Content-Length [10:32:05]Host: 172.17.46.131:8080 [10:32:05]Content-Length: 754 [10:32:05]Content-Type: application/json [10:32:05] [10:32:05]POST finish read [10:32:05]Found Content-Length = 754 [10:32:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412146", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30150470", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:05]execute_script... [10:32: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)412146", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30150470", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:05]POST & json_proto [10:32:05]process_json_proto [10:32:05]json parsed OK: [10:32:05]protocol is kg_v1.0 [10:32:05]action value=close_receipt [10:32:05]process_action close_receipt [10:32:05]cmd_close_receipt [10:32:05]MH_GetDate [10:32:05]Write to MH i2c: F0 00 00 0D 13 0F [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: F0 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: F0 09 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: F0 09 00 0D 13 00 28 B3 B5 67 7E 41 4F 65 82 [10:32:05]GetLastDocTimeStamp 1739961123 [10:32:05]current date 1739961128 [10:32:05]FM_GetShiftState [10:32:05]SAM_PROTO_GetShiftState [10:32:05]wFMCommunicate request_size=4 [10:32:05]MH_SAM_APDU [10:32:05]CAPDU: 80 13 01 00 [10:32:05]Write to MH i2c: E2 08 00 0E 13 80 13 01 00 00 00 00 00 9E [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:05]Read from MH i2c: E2 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 0E 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 0E 00 0E 13 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 1D [10:32:05]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:32:05]wFMCommunicate OK [10:32:05]SAM_PROTO_GetShiftState done [10:32:05]FM_GetShiftState done [10:32:05]opened in 1739929631 [10:32:05]opened+sec_in_day 1740016031 [10:32:05]quantity*price = 0 [10:32:05]sum+1 = 1 [10:32:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 63 19.02.2025 10:32 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30150470 ФМ: 0000000000871826 ФД: 186997 ФПД: 165266105031551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T103208&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186997&fm=165266105031551&tin=02508201610067®Number=0000000000091857&sum=0 [10:32:06]StoreToDocumentArchive [10:32:06]shift 647 fd 186997 [10:32:06]save to /storage/0647/doc_00186997 [10:32:06]save last doc name /storage/0647/doc_00186997 to /storage/kkm_last_doc_name [10:32:06]save OK [10:32:06]Clear old archive folders... [10:32:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:06]tlvbuf is 00633CE0 [10:32:06]SAM_PROTO_ClearQueue [10:32:06]wFMCommunicate request_size=4 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 09 00 00 [10:32:06]Write to MH i2c: E2 08 00 1B 13 80 09 00 00 00 00 00 00 A0 [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 03 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 03 00 1B 13 00 90 00 A2 [10:32:06]RAPDU: 90 00 [10:32:06]wFMCommunicate OK [10:32:06]SAM_PROTO_ClearQueue done [10:32:06]KKMCreateOFDPacket [10:32:06]OFDProtocolAddRootSTLVToBuf [10:32:06]FM_MakeSignedData [10:32:06]FM_MakeSignedData [10:32:06]SAM_PROTO_SignData [10:32:06]wFMCommunicate request_size=4 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 0D 01 02 [10:32:06]Write to MH i2c: E2 08 00 1C 13 80 0D 01 02 00 00 00 00 A8 [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:07]Read from MH i2c: E2 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 03 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 03 00 1C 13 00 90 00 A3 [10:32:07]RAPDU: 90 00 [10:32:07]wFMCommunicate OK [10:32:07]wFMCommunicate request_size=255 [10:32:07]MH_SAM_APDU [10:32: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 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 3F 00 00 00 F4 03 04 00 28 B3 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 75 DA 02 00 35 04 06 00 96 [10:32:07]Write to MH i2c: E2 02 01 1D 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 3F 00 00 00 F4 03 04 00 28 B3 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 75 DA 02 00 35 04 06 00 96 00 00 C8 [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:07]Read from MH i2c: E2 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 03 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 03 00 1D 13 00 90 00 A4 [10:32:07]RAPDU: 90 00 [10:32:07]wFMCommunicate OK [10:32:07]wFMCommunicate request_size=10 [10:32:07]MH_SAM_APDU [10:32:07]CAPDU: 80 0D 02 02 05 4F 03 7B DB 7F [10:32:07]Write to MH i2c: E2 0D 00 1E 13 80 0D 02 02 05 00 4F 03 7B DB 7F 00 00 DC [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:07]Read from MH i2c: E2 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 03 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 03 00 1E 13 00 90 00 A5 [10:32:07]RAPDU: 90 00 [10:32:07]wFMCommunicate OK [10:32:07]wFMCommunicate request_size=4 [10:32:07]MH_SAM_APDU [10:32:07]CAPDU: 80 0D 03 02 [10:32:07]Write to MH i2c: E2 08 00 1F 13 80 0D 03 02 00 00 00 00 AD [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:07]Read from MH i2c: E2 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 0B 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 0B 00 1F 13 00 25 E2 F2 F0 D3 15 EA CE 90 00 37 [10:32:07]RAPDU: 25 E2 F2 F0 D3 15 EA CE 90 00 [10:32:07]wFMCommunicate OK [10:32:07]SAM_PROTO_SignData done [10:32:07]FM_MakeSignedData done [10:32:07]CreateOFDProtocolMessage [10:32:07]wFMCommunicate request_size=4 [10:32:07]MH_SAM_APDU [10:32:07]CAPDU: 80 11 00 00 [10:32:07]Write to MH i2c: E2 08 00 20 13 80 11 00 00 00 00 00 00 AD [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:07]Read from MH i2c: E2 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 17 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: E2 17 00 20 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 00 [10:32: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:32:07]wFMCommunicate OK [10:32:07]CreateOFDProtocolMessage done [10:32:07]OFDSenderStorePacket 186997 [10:32:07]StoreOFDPacket docnum=186997 [10:32: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 85 71 07 01 6B 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 3F 00 00 00 F4 03 04 00 28 B3 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 75 DA 02 00 35 04 06 00 96 4F 03 7B DB 7F 25 E2 F2 F0 D3 15 EA CE [10:32:07]CheckFolder [10:32:07]dirname=/storage/ofd_packets [10:32:07]CheckFolder done [10:32:07]ProducePacketName [10:32:07]name=ofd_packets/00186997 [10:32:07]NVStorageSaveData ofd_packets/00186997 [10:32:07]File name is /storage/ofd_packets/00186997 [10:32:07]Write 301 bytes [10:32:07]NVStorageSaveData done [10:32:07]OFDSenderStorePacket done [10:32:07]KKMCreateOFDPacket done [10:32:07]NVStorageSaveData kkm_last_timestamp [10:32:07]File name is /storage/kkm_last_timestamp [10:32:07]Write 4 bytes [10:32:07]NVStorageSaveData done [10:32:07]ExternCall_PrintAddStr [10:32:07]wPrintStart [10:32:07]Write to MH i2c: 01 00 00 21 13 34 [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: 01 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: 01 07 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: 01 07 00 21 13 00 00 00 00 00 FF 0F 49 [10:32:07]RasterBufferAndPrint [10:32:07]line Счет N : (1)412146 [10:32:07]line ИНН: 02508201610067 [10:32:07]line Контрольно-Кассовый Чек [10:32:07]line ПРОДАЖА [10:32:07]line ТРК (МРК, ГНК) : 12 [10:32:07]line Товар: 2710124130 [10:32:07]line Аи-92-К-2 [10:32:07]line 20.000 * 0.00 [10:32:07]line = 0.00 [10:32:07]line НДС 12% НСП 1% [10:32:07]line > о реализуемом товаре [10:32:07]line ИТОГО: 0.00 [10:32:07]line НСП 1% : 0.00 [10:32:07]line НДС 12% : 0.00 [10:32:07]line Наличными: 0.00 [10:32:07]line Безнал.: 0.00 [10:32:07]line Место: АЗС № 92 "Партнер Нефть" [10:32:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:32:07]line СНО: Общий режим [10:32:07]line Чек 63 19.02.2025 10:32 [10:32:07]line Смена: 647 ФФД: 1.0 [10:32:07]line ЗНМ: 0300000118 [10:32:07]line РНМ: 0000000000091857 [10:32:07]line Версия ККМ: 001 [10:32:07]line Талоны: ТК ГПНА Online [10:32:07]line 30150470 [10:32:07]line ФМ: 0000000000871826 [10:32:07]line ФД: 186997 [10:32:07]line ФПД: 165266105031551 [10:32:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T103208&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186997&fm=165266105031551&tin=02508201610067®Number=0000000000091857&sum=0 [10:32:07]OFD Sender: Processing packet 186997 [packets to send 49, broken 48] [10:32:07]ProducePacketName [10:32:07]name=ofd_packets/00186997 [10:32:07]OFD Sender: To server: pG, [10:32:07]CommunicateWithHost lk.salyk.kg:30040 [10:32:07]ConnectInit lk.salyk.kg [10:32:07]written 0, free lines is 4095 [10:32:08]Connected sock=10 [10:32:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 85 71 07 01 6B 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 3F 00 00 00 F4 03 04 00 28 B3 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 75 DA 02 00 35 04 06 00 96 4F 03 7B DB 7F 25 E2 F2 F0 D3 15 EA CE [10:32: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 33 20 47 00 07 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 75 DA 02 00 F4 03 04 00 7D 59 B5 67 B6 04 01 00 00 EF D7 74 EB F5 B6 9D B3 [10:32:08]CommunicateWithHost err = 0 [10:32:08]CheckOFDResponse [10:32:08]1017 (14) - 77093643461234 [10:32:08]1041 (16) - 0000000000871826 [10:32:08]1040 (4) - 186997 [10:32:08]1012 (4) - 19.02.2025 04:09 [10:32:08]1206 (1) - 0 [10:32:08]OFD Sender: Remove packet 186997 [10:32:08]ProducePacketName [10:32:08]name=ofd_packets/00186997 [10:32:08]NVStorageDeleteData [10:32:08]Write to MH i2c: 01 00 00 4B 13 5E [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: 01 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: 01 07 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: 01 07 00 4B 13 00 00 00 00 00 2F 0D A1 [10:32:08]RasterBufferAndPrint [10:32:08]line [10:32:08]line [10:32:08]line [10:32:08]line [10:32:08]line [10:32:08]written 0, free lines is 3390 [10:32:08]MH_Cut [10:32:08]Write to MH i2c: D1 01 00 52 13 01 37 [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: D1 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: D1 01 00 [10:32:08]MH_I2C_Read... [10:32:08]Read from MH i2c: D1 01 00 52 13 00 36 [10:32:08]Write to MH i2c: 01 00 00 53 13 66 [10:32:08]Write i2c OK [10:32:08]MH_I2C_Read... [10:32:08]OFD Sender: No OFD packet to send [10:32:09]*** Cut start [10:32:09]*** Partial cut [10:32:09]*** CUTSNS_PIN = 1 [10:32:09]*** CUTSNS_PIN = 0 [10:32:09]*** Brake cut motor [10:32:09]Read from MH i2c: 01 [10:32:09]*** Stop cut motor [10:32:09]MH_I2C_Read... [10:32:09]*** Cut end [10:32:09]Read from MH i2c: 01 07 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: 01 07 00 53 13 00 00 00 00 00 FF 0F 7B [10:32:09]process_action close_receipt done [10:32:09]requested_data is exist [10:32:09]produce_requested_data [10:32:09]requested_item fm.sn is exist - process it [10:32:09]wFMCommunicate request_size=4 [10:32:09]MH_SAM_APDU [10:32:09]CAPDU: 80 11 00 00 [10:32:09]Write to MH i2c: E2 08 00 54 13 80 11 00 00 00 00 00 00 E1 [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:09]Read from MH i2c: E2 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 17 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 17 00 54 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 34 [10:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:32:09]wFMCommunicate OK [10:32:09]requested_item fd.num is exist - process it [10:32:09]SAM_PROTO_GetFieldsCounters [10:32:09]wFMCommunicate request_size=4 [10:32:09]MH_SAM_APDU [10:32:09]CAPDU: 80 13 00 00 [10:32:09]Write to MH i2c: E2 08 00 55 13 80 13 00 00 00 00 00 00 E4 [10:32:09]Write i2c OK [10:32:09]MH_I2C_Read... [10:32:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:09]Read from MH i2c: E2 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 62 00 [10:32:09]MH_I2C_Read... [10:32:09]Read from MH i2c: E2 62 00 55 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 75 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [10:32:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 75 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:10]wFMCommunicate OK [10:32:10]SAM_PROTO_GetFieldsCounters done [10:32:10]requested_item shift.num is exist - process it [10:32:10]requested_item shift.opened is exist - process it [10:32:10]req_shift_opened [10:32:10]FM_GetShiftState [10:32:10]SAM_PROTO_GetShiftState [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 13 01 00 [10:32:10]Write to MH i2c: E2 08 00 56 13 80 13 01 00 00 00 00 00 E6 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 0E 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 0E 00 56 13 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 65 [10:32:10]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:32:10]wFMCommunicate OK [10:32:10]SAM_PROTO_GetShiftState done [10:32:10]FM_GetShiftState done [10:32:10]req_shift_opened done [10:32:10]requested_item shift.open_date is exist - process it [10:32:10]req_shift_open_date [10:32:10]req_shift_open_date done [10:32:10]produce_requested_data done [10:32:10]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186997,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [10:32:10]process_action_free close_receipt [10:32:10]json_value_free [10:32:10]json_value_free done [10:32:10]process_json_proto returns [10:32:10]Send response to host [10:32:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186997,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [10:32:10]free response buf [10:32:10]execute_script done [10:32:10]execute_script returns [10:32:10]free content buf [10:32:10]Sock 7.Close socket [10:32:10]Sock 7.Thread stoped [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:28]accept exits with 9 [10:32:28]New connection [10:32:28]New thread 3066879332 created [10:32:28]Thread 3067022692 joined [10:32:28]Waiting for new connection... [10:32:28] Sock 9.Parse request [10:32:28]Sock 9.Check first char [10:32:28]Sock 9.First char is OK [10:32:28]request: POST /json_proto HTTP/1.0 [10:32:28]Method: POST [10:32:28]URL: /json_proto [10:32:28]Method is POST - this is cgi request [10:32:28]url: /json_proto [10:32:28]query_string will be loaded in cgi processing [10:32:28]execute_cgi json_proto POST (null) [10:32:28]execute_cgi path=json_proto method=POST [10:32:28]POST find Content-Length [10:32:28]Host: 172.17.46.131:8080 [10:32:28]Content-Length: 682 [10:32:28]Content-Type: application/json [10:32:28] [10:32:28]POST finish read [10:32:28]Found Content-Length = 682 [10:32:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412148", "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:32:28]execute_script... [10:32:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412148", "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:32:28]POST & json_proto [10:32:28]process_json_proto [10:32:28]json parsed OK: [10:32:28]protocol is kg_v1.0 [10:32:28]action value=close_receipt [10:32:28]process_action close_receipt [10:32:28]cmd_close_receipt [10:32:28]MH_GetDate [10:32:28]Write to MH i2c: F0 00 00 57 13 59 [10:32:28]Write i2c OK [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: F0 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: F0 09 00 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: F0 09 00 57 13 00 3F B3 B5 67 7E 41 4F 65 E3 [10:32:28]GetLastDocTimeStamp 1739961128 [10:32:28]current date 1739961151 [10:32:28]FM_GetShiftState [10:32:28]SAM_PROTO_GetShiftState [10:32:28]wFMCommunicate request_size=4 [10:32:28]MH_SAM_APDU [10:32:28]CAPDU: 80 13 01 00 [10:32:28]Write to MH i2c: E2 08 00 58 13 80 13 01 00 00 00 00 00 E8 [10:32:28]Write i2c OK [10:32:28]MH_I2C_Read... [10:32:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:28]Read from MH i2c: E2 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 0E 00 [10:32:28]MH_I2C_Read... [10:32:28]Read from MH i2c: E2 0E 00 58 13 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 67 [10:32:28]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:32:28]wFMCommunicate OK [10:32:28]SAM_PROTO_GetShiftState done [10:32:28]FM_GetShiftState done [10:32:28]opened in 1739929631 [10:32:28]opened+sec_in_day 1740016031 [10:32:28]quantity*price = 100023 [10:32:28]sum+1 = 100025 [10:32:28]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 СНО: Общий режим Чек 64 19.02.2025 10:32 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186998 ФПД: 241798461989166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T103231&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186998&fm=241798461989166&tin=02508201610067®Number=0000000000091857&sum=100000 [10:32:29]StoreToDocumentArchive [10:32:29]shift 647 fd 186998 [10:32:29]save to /storage/0647/doc_00186998 [10:32:29]save last doc name /storage/0647/doc_00186998 to /storage/kkm_last_doc_name [10:32:29]save OK [10:32:29]Clear old archive folders... [10:32:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:29]tlvbuf is 00632230 [10:32:29]SAM_PROTO_ClearQueue [10:32:29]wFMCommunicate request_size=4 [10:32:29]MH_SAM_APDU [10:32:29]CAPDU: 80 09 00 00 [10:32:29]Write to MH i2c: E2 08 00 65 13 80 09 00 00 00 00 00 00 EA [10:32:29]Write i2c OK [10:32:29]MH_I2C_Read... [10:32:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:29]Read from MH i2c: E2 [10:32:29]MH_I2C_Read... [10:32:29]Read from MH i2c: E2 03 00 [10:32:29]MH_I2C_Read... [10:32:29]Read from MH i2c: E2 03 00 65 13 00 90 00 EC [10:32:29]RAPDU: 90 00 [10:32:29]wFMCommunicate OK [10:32:29]SAM_PROTO_ClearQueue done [10:32:29]KKMCreateOFDPacket [10:32:29]OFDProtocolAddRootSTLVToBuf [10:32:29]FM_MakeSignedData [10:32:29]FM_MakeSignedData [10:32:29]SAM_PROTO_SignData [10:32:29]wFMCommunicate request_size=4 [10:32:29]MH_SAM_APDU [10:32:29]CAPDU: 80 0D 01 02 [10:32:29]Write to MH i2c: E2 08 00 66 13 80 0D 01 02 00 00 00 00 F2 [10:32:29]Write i2c OK [10:32:29]MH_I2C_Read... [10:32:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:29]Read from MH i2c: E2 [10:32:29]MH_I2C_Read... [10:32:29]Read from MH i2c: E2 03 00 [10:32:29]MH_I2C_Read... [10:32:29]Read from MH i2c: E2 03 00 66 13 00 90 00 ED [10:32:29]RAPDU: 90 00 [10:32:29]wFMCommunicate OK [10:32:29]wFMCommunicate request_size=255 [10:32:29]MH_SAM_APDU [10:32:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 40 00 00 00 F4 03 04 00 3F B3 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 76 DA 02 00 35 04 06 00 DB [10:32:29]Write to MH i2c: E2 02 01 67 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 40 00 00 00 F4 03 04 00 3F B3 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 76 DA 02 00 35 04 06 00 DB 00 00 F3 [10:32:29]Write i2c OK [10:32:29]MH_I2C_Read... [10:32:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:29]Read from MH i2c: E2 [10:32:29]MH_I2C_Read... [10:32:29]Read from MH i2c: E2 03 00 [10:32:29]MH_I2C_Read... [10:32:29]Read from MH i2c: E2 03 00 67 13 00 90 00 EE [10:32:29]RAPDU: 90 00 [10:32:29]wFMCommunicate OK [10:32:29]wFMCommunicate request_size=10 [10:32:29]MH_SAM_APDU [10:32:29]CAPDU: 80 0D 02 02 05 EA 17 6F 21 2E [10:32:29]Write to MH i2c: E2 0D 00 68 13 80 0D 02 02 05 00 EA 17 6F 21 2E 00 00 BE [10:32:29]Write i2c OK [10:32:29]MH_I2C_Read... [10:32:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:30]Read from MH i2c: E2 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: E2 03 00 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: E2 03 00 68 13 00 90 00 EF [10:32:30]RAPDU: 90 00 [10:32:30]wFMCommunicate OK [10:32:30]wFMCommunicate request_size=4 [10:32:30]MH_SAM_APDU [10:32:30]CAPDU: 80 0D 03 02 [10:32:30]Write to MH i2c: E2 08 00 69 13 80 0D 03 02 00 00 00 00 F7 [10:32:30]Write i2c OK [10:32:30]MH_I2C_Read... [10:32:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:30]Read from MH i2c: E2 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: E2 0B 00 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: E2 0B 00 69 13 00 BF 9D 96 DE 70 C7 93 72 90 00 04 [10:32:30]RAPDU: BF 9D 96 DE 70 C7 93 72 90 00 [10:32:30]wFMCommunicate OK [10:32:30]SAM_PROTO_SignData done [10:32:30]FM_MakeSignedData done [10:32:30]CreateOFDProtocolMessage [10:32:30]wFMCommunicate request_size=4 [10:32:30]MH_SAM_APDU [10:32:30]CAPDU: 80 11 00 00 [10:32:30]Write to MH i2c: E2 08 00 6A 13 80 11 00 00 00 00 00 00 F7 [10:32:30]Write i2c OK [10:32:30]MH_I2C_Read... [10:32:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:30]Read from MH i2c: E2 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: E2 17 00 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: E2 17 00 6A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4A [10:32:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:32:30]wFMCommunicate OK [10:32:30]CreateOFDProtocolMessage done [10:32:30]OFDSenderStorePacket 186998 [10:32:30]StoreOFDPacket docnum=186998 [10:32: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 0F 01 00 00 86 CC 07 01 E7 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 40 00 00 00 F4 03 04 00 3F B3 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 76 DA 02 00 35 04 06 00 DB EA 17 6F 21 2E BF 9D 96 DE 70 C7 93 72 [10:32:30]CheckFolder [10:32:30]dirname=/storage/ofd_packets [10:32:30]CheckFolder done [10:32:30]ProducePacketName [10:32:30]name=ofd_packets/00186998 [10:32:30]NVStorageSaveData ofd_packets/00186998 [10:32:30]File name is /storage/ofd_packets/00186998 [10:32:30]Write 301 bytes [10:32:30]NVStorageSaveData done [10:32:30]OFDSenderStorePacket done [10:32:30]KKMCreateOFDPacket done [10:32:30]NVStorageSaveData kkm_last_timestamp [10:32:30]File name is /storage/kkm_last_timestamp [10:32:30]Write 4 bytes [10:32:30]NVStorageSaveData done [10:32:30]ExternCall_PrintAddStr [10:32:30]wPrintStart [10:32:30]Write to MH i2c: 01 00 00 6B 13 7E [10:32:30]Write i2c OK [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: 01 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: 01 07 00 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: 01 07 00 6B 13 00 00 00 00 00 FF 0F 93 [10:32:30]RasterBufferAndPrint [10:32:30]line Счет N : (1)412148 [10:32:30]line ИНН: 02508201610067 [10:32:30]line Контрольно-Кассовый Чек [10:32:30]line ПРОДАЖА [10:32:30]line ТРК (МРК, ГНК) : 22 [10:32:30]line Товар: 2710124130 [10:32:30]line Аи-92-К-2 [10:32:30]line 15.580 * 64.20 [10:32:30]line = 1000.24 [10:32:30]line НДС 12% НСП 1% [10:32:30]line > о реализуемом товаре [10:32:30]line ОКРУГЛЕНИЕ: -0.24 [10:32:30]line ИТОГО: 1000.00 [10:32:30]line Внесено: 1000.00 [10:32:30]line СДАЧА: 0.00 [10:32:30]line НСП 1% : 8.85 [10:32:30]line НДС 12% : 106.22 [10:32:30]line Наличными: 1000.00 [10:32:30]line Безнал.: 0.00 [10:32:30]line Место: АЗС № 92 "Партнер Нефть" [10:32:30]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:32:30]line СНО: Общий режим [10:32:30]line Чек 64 19.02.2025 10:32 [10:32:30]line Смена: 647 ФФД: 1.0 [10:32:30]line ЗНМ: 0300000118 [10:32:30]line РНМ: 0000000000091857 [10:32:30]line Версия ККМ: 001 [10:32:30]line ФМ: 0000000000871826 [10:32:30]line ФД: 186998 [10:32:30]line ФПД: 241798461989166 [10:32:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T103231&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186998&fm=241798461989166&tin=02508201610067®Number=0000000000091857&sum=100000 [10:32:30]written 0, free lines is 4095 [10:32:30]OFD Sender: Processing packet 186998 [packets to send 49, broken 48] [10:32:30]ProducePacketName [10:32:30]name=ofd_packets/00186998 [10:32:30]OFD Sender: To server: pG, [10:32:30]CommunicateWithHost lk.salyk.kg:30040 [10:32:30]ConnectInit lk.salyk.kg [10:32:30]Connected sock=10 [10:32:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 86 CC 07 01 E7 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 40 00 00 00 F4 03 04 00 3F B3 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 76 DA 02 00 35 04 06 00 DB EA 17 6F 21 2E BF 9D 96 DE 70 C7 93 72 [10:32: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 2C 99 47 00 8E 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 76 DA 02 00 F4 03 04 00 93 59 B5 67 B6 04 01 00 00 27 67 80 8F 41 1A 58 92 [10:32:30]CommunicateWithHost err = 0 [10:32:30]CheckOFDResponse [10:32:30]1017 (14) - 77093643461234 [10:32:30]1041 (16) - 0000000000871826 [10:32:30]1040 (4) - 186998 [10:32:30]1012 (4) - 19.02.2025 04:09 [10:32:30]1206 (1) - 0 [10:32:30]OFD Sender: Remove packet 186998 [10:32:30]ProducePacketName [10:32:30]name=ofd_packets/00186998 [10:32:30]NVStorageDeleteData [10:32:30]Write to MH i2c: 01 00 00 96 13 A9 [10:32:30]Write i2c OK [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: 01 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: 01 07 00 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: 01 07 00 96 13 00 00 00 00 00 11 0D CE [10:32:30]RasterBufferAndPrint [10:32:30]line [10:32:30]line [10:32:30]line [10:32:30]line [10:32:30]line [10:32:30]written 0, free lines is 3354 [10:32:30]MH_Cut [10:32:30]Write to MH i2c: D1 01 00 9D 13 01 82 [10:32:30]Write i2c OK [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: D1 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: D1 01 00 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: D1 01 00 9D 13 00 81 [10:32:30]Write to MH i2c: 01 00 00 9E 13 B1 [10:32:30]Write i2c OK [10:32:30]MH_I2C_Read... [10:32:31]OFD Sender: No OFD packet to send [10:32:31]*** Cut start [10:32:31]*** Partial cut [10:32:31]*** CUTSNS_PIN = 1 [10:32:31]*** CUTSNS_PIN = 0 [10:32:31]*** Brake cut motor [10:32:32]Read from MH i2c: 01 [10:32:32]MH_I2C_Read... [10:32:32]*** Stop cut motor [10:32:32]*** Cut end [10:32:32]Read from MH i2c: 01 07 00 [10:32:32]MH_I2C_Read... [10:32:32]Read from MH i2c: 01 07 00 9E 13 00 00 00 00 00 FF 0F C6 [10:32:32]process_action close_receipt done [10:32:32]requested_data is exist [10:32:32]produce_requested_data [10:32:32]requested_item fm.sn is exist - process it [10:32:32]wFMCommunicate request_size=4 [10:32:32]MH_SAM_APDU [10:32:32]CAPDU: 80 11 00 00 [10:32:32]Write to MH i2c: E2 08 00 9F 13 80 11 00 00 00 00 00 00 2C [10:32:32]Write i2c OK [10:32:32]MH_I2C_Read... [10:32:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:32]Read from MH i2c: E2 [10:32:32]MH_I2C_Read... [10:32:32]Read from MH i2c: E2 17 00 [10:32:32]MH_I2C_Read... [10:32:32]Read from MH i2c: E2 17 00 9F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7F [10:32:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:32:32]wFMCommunicate OK [10:32:32]requested_item fd.num is exist - process it [10:32:32]SAM_PROTO_GetFieldsCounters [10:32:32]wFMCommunicate request_size=4 [10:32:32]MH_SAM_APDU [10:32:32]CAPDU: 80 13 00 00 [10:32:32]Write to MH i2c: E2 08 00 A0 13 80 13 00 00 00 00 00 00 2F [10:32:32]Write i2c OK [10:32:32]MH_I2C_Read... [10:32:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:32]Read from MH i2c: E2 [10:32:32]MH_I2C_Read... [10:32:32]Read from MH i2c: E2 62 00 [10:32:32]MH_I2C_Read... [10:32:32]Read from MH i2c: E2 62 00 A0 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 76 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [10:32:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 76 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:32]wFMCommunicate OK [10:32:32]SAM_PROTO_GetFieldsCounters done [10:32:32]requested_item shift.num is exist - process it [10:32:32]requested_item shift.opened is exist - process it [10:32:32]req_shift_opened [10:32:32]FM_GetShiftState [10:32:32]SAM_PROTO_GetShiftState [10:32:32]wFMCommunicate request_size=4 [10:32:32]MH_SAM_APDU [10:32:32]CAPDU: 80 13 01 00 [10:32:32]Write to MH i2c: E2 08 00 A1 13 80 13 01 00 00 00 00 00 31 [10:32:32]Write i2c OK [10:32:32]MH_I2C_Read... [10:32:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:32]Read from MH i2c: E2 [10:32:32]MH_I2C_Read... [10:32:32]Read from MH i2c: E2 0E 00 [10:32:32]MH_I2C_Read... [10:32:32]Read from MH i2c: E2 0E 00 A1 13 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 B0 [10:32:32]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:32:32]wFMCommunicate OK [10:32:32]SAM_PROTO_GetShiftState done [10:32:32]FM_GetShiftState done [10:32:32]req_shift_opened done [10:32:32]requested_item shift.open_date is exist - process it [10:32:32]req_shift_open_date [10:32:32]req_shift_open_date done [10:32:32]produce_requested_data done [10:32:32]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186998,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [10:32:32]process_action_free close_receipt [10:32:32]json_value_free [10:32:32]json_value_free done [10:32:32]process_json_proto returns [10:32:32]Send response to host [10:32:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186998,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [10:32:32]free response buf [10:32:32]execute_script done [10:32:32]execute_script returns [10:32:32]free content buf [10:32:32]Sock 9.Close socket [10:32:32]Sock 9.Thread stoped [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:20]accept exits with 7 [10:42:20]New connection [10:42:20]New thread 3067022692 created [10:42:20]Thread 3066879332 joined [10:42:20]Waiting for new connection... [10:42:20] Sock 7.Parse request [10:42:20]Sock 7.Check first char [10:42:20]Sock 7.First char is OK [10:42:20]request: POST /json_proto HTTP/1.0 [10:42:20]Method: POST [10:42:20]URL: /json_proto [10:42:20]Method is POST - this is cgi request [10:42:20]url: /json_proto [10:42:20]query_string will be loaded in cgi processing [10:42:20]execute_cgi json_proto POST (null) [10:42:20]execute_cgi path=json_proto method=POST [10:42:20]POST find Content-Length [10:42:20]Host: 172.17.46.131:8080 [10:42:20]Content-Length: 791 [10:42:20]Content-Type: application/json [10:42:20] [10:42:20]POST finish read [10:42:20]Found Content-Length = 791 [10:42:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412149", "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" : 3.540, "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\u000A03530", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:20]execute_script... [10:42:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412149", "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" : 3.540, "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\u000A03530", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:20]POST & json_proto [10:42:20]process_json_proto [10:42:20]json parsed OK: [10:42:20]protocol is kg_v1.0 [10:42:20]action value=close_receipt [10:42:20]process_action close_receipt [10:42:20]cmd_close_receipt [10:42:20]MH_GetDate [10:42:20]Write to MH i2c: F0 00 00 A2 13 A4 [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: F0 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: F0 09 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: F0 09 00 A2 13 00 8F B5 B5 67 7E 41 4F 65 80 [10:42:20]GetLastDocTimeStamp 1739961151 [10:42:20]current date 1739961743 [10:42:20]FM_GetShiftState [10:42:20]SAM_PROTO_GetShiftState [10:42:20]wFMCommunicate request_size=4 [10:42:20]MH_SAM_APDU [10:42:20]CAPDU: 80 13 01 00 [10:42:20]Write to MH i2c: E2 08 00 A3 13 80 13 01 00 00 00 00 00 33 [10:42:20]Write i2c OK [10:42:20]MH_I2C_Read... [10:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:20]Read from MH i2c: E2 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 0E 00 [10:42:20]MH_I2C_Read... [10:42:20]Read from MH i2c: E2 0E 00 A3 13 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 B2 [10:42:20]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:42:20]wFMCommunicate OK [10:42:20]SAM_PROTO_GetShiftState done [10:42:20]FM_GetShiftState done [10:42:20]opened in 1739929631 [10:42:20]opened+sec_in_day 1740016031 [10:42:20]quantity*price = 0 [10:42:20]sum+1 = 1 [10:42:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 65 19.02.2025 10:42 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 03530 ФМ: 0000000000871826 ФД: 186999 ФПД: 184389245934235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T104223&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186999&fm=184389245934235&tin=02508201610067®Number=0000000000091857&sum=0 [10:42:21]StoreToDocumentArchive [10:42:21]shift 647 fd 186999 [10:42:21]save to /storage/0647/doc_00186999 [10:42:21]save last doc name /storage/0647/doc_00186999 to /storage/kkm_last_doc_name [10:42:21]save OK [10:42:21]Clear old archive folders... [10:42:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:21]tlvbuf is 005F5E10 [10:42:21]SAM_PROTO_ClearQueue [10:42:21]wFMCommunicate request_size=4 [10:42:21]MH_SAM_APDU [10:42:21]CAPDU: 80 09 00 00 [10:42:21]Write to MH i2c: E2 08 00 B0 13 80 09 00 00 00 00 00 00 35 [10:42:21]Write i2c OK [10:42:21]MH_I2C_Read... [10:42:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:22]Read from MH i2c: E2 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 03 00 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 03 00 B0 13 00 90 00 37 [10:42:22]RAPDU: 90 00 [10:42:22]wFMCommunicate OK [10:42:22]SAM_PROTO_ClearQueue done [10:42:22]KKMCreateOFDPacket [10:42:22]OFDProtocolAddRootSTLVToBuf [10:42:22]FM_MakeSignedData [10:42:22]FM_MakeSignedData [10:42:22]SAM_PROTO_SignData [10:42:22]wFMCommunicate request_size=4 [10:42:22]MH_SAM_APDU [10:42:22]CAPDU: 80 0D 01 02 [10:42:22]Write to MH i2c: E2 08 00 B1 13 80 0D 01 02 00 00 00 00 3D [10:42:22]Write i2c OK [10:42:22]MH_I2C_Read... [10:42:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:22]Read from MH i2c: E2 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 03 00 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 03 00 B1 13 00 90 00 38 [10:42:22]RAPDU: 90 00 [10:42:22]wFMCommunicate OK [10:42:22]wFMCommunicate request_size=255 [10:42:22]MH_SAM_APDU [10:42:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D4 0D 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 41 00 00 00 F4 03 04 00 8F B5 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 77 DA 02 00 35 04 06 00 A7 [10:42:22]Write to MH i2c: E2 02 01 B2 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 D4 0D 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 41 00 00 00 F4 03 04 00 8F B5 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 77 DA 02 00 35 04 06 00 A7 00 00 4E [10:42:22]Write i2c OK [10:42:22]MH_I2C_Read... [10:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:22]Read from MH i2c: E2 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 03 00 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 03 00 B2 13 00 90 00 39 [10:42:22]RAPDU: 90 00 [10:42:22]wFMCommunicate OK [10:42:22]wFMCommunicate request_size=10 [10:42:22]MH_SAM_APDU [10:42:22]CAPDU: 80 0D 02 02 05 B3 77 81 1A 9B [10:42:22]Write to MH i2c: E2 0D 00 B3 13 80 0D 02 02 05 00 B3 77 81 1A 9B 00 00 AA [10:42:22]Write i2c OK [10:42:22]MH_I2C_Read... [10:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:22]Read from MH i2c: E2 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 03 00 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 03 00 B3 13 00 90 00 3A [10:42:22]RAPDU: 90 00 [10:42:22]wFMCommunicate OK [10:42:22]wFMCommunicate request_size=4 [10:42:22]MH_SAM_APDU [10:42:22]CAPDU: 80 0D 03 02 [10:42:22]Write to MH i2c: E2 08 00 B4 13 80 0D 03 02 00 00 00 00 42 [10:42:22]Write i2c OK [10:42:22]MH_I2C_Read... [10:42:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:22]Read from MH i2c: E2 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 0B 00 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 0B 00 B4 13 00 06 2F D3 59 95 38 40 4C 90 00 FD [10:42:22]RAPDU: 06 2F D3 59 95 38 40 4C 90 00 [10:42:22]wFMCommunicate OK [10:42:22]SAM_PROTO_SignData done [10:42:22]FM_MakeSignedData done [10:42:22]CreateOFDProtocolMessage [10:42:22]wFMCommunicate request_size=4 [10:42:22]MH_SAM_APDU [10:42:22]CAPDU: 80 11 00 00 [10:42:22]Write to MH i2c: E2 08 00 B5 13 80 11 00 00 00 00 00 00 42 [10:42:22]Write i2c OK [10:42:22]MH_I2C_Read... [10:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:22]Read from MH i2c: E2 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 17 00 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: E2 17 00 B5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 95 [10:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:42:22]wFMCommunicate OK [10:42:22]CreateOFDProtocolMessage done [10:42:22]OFDSenderStorePacket 186999 [10:42:22]StoreOFDPacket docnum=186999 [10:42: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 0F 01 00 00 20 47 07 01 DA 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 D4 0D 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 41 00 00 00 F4 03 04 00 8F B5 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 77 DA 02 00 35 04 06 00 A7 B3 77 81 1A 9B 06 2F D3 59 95 38 40 4C [10:42:22]CheckFolder [10:42:22]dirname=/storage/ofd_packets [10:42:22]CheckFolder done [10:42:22]ProducePacketName [10:42:22]name=ofd_packets/00186999 [10:42:22]NVStorageSaveData ofd_packets/00186999 [10:42:22]File name is /storage/ofd_packets/00186999 [10:42:22]Write 301 bytes [10:42:22]NVStorageSaveData done [10:42:22]OFDSenderStorePacket done [10:42:22]KKMCreateOFDPacket done [10:42:22]NVStorageSaveData kkm_last_timestamp [10:42:22]File name is /storage/kkm_last_timestamp [10:42:22]Write 4 bytes [10:42:22]NVStorageSaveData done [10:42:22]OFD Sender: Processing packet 186999 [packets to send 49, broken 48] [10:42:22]ProducePacketName [10:42:22]name=ofd_packets/00186999 [10:42:22]OFD Sender: To server: pG, [10:42:22]CommunicateWithHost lk.salyk.kg:30040 [10:42:22]ConnectInit lk.salyk.kg [10:42:22]ExternCall_PrintAddStr [10:42:22]wPrintStart [10:42:22]Write to MH i2c: 01 00 00 B6 13 C9 [10:42:22]Write i2c OK [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: 01 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: 01 07 00 [10:42:22]MH_I2C_Read... [10:42:22]Read from MH i2c: 01 07 00 B6 13 00 00 00 00 00 FF 0F DE [10:42:22]RasterBufferAndPrint [10:42:22]line Счет N : (1)412149 [10:42:22]line ИНН: 02508201610067 [10:42:22]line Контрольно-Кассовый Чек [10:42:22]line ПРОДАЖА [10:42:22]line ТРК (МРК, ГНК) : 22 [10:42:22]line Товар: 2710124130 [10:42:22]line Аи-92-К-2 [10:42:22]line 3.540 * 0.00 [10:42:22]line = 0.00 [10:42:22]line НДС 12% НСП 1% [10:42:22]line > о реализуемом товаре [10:42:22]line ИТОГО: 0.00 [10:42:22]line НСП 1% : 0.00 [10:42:22]line НДС 12% : 0.00 [10:42:22]line Наличными: 0.00 [10:42:22]line Безнал.: 0.00 [10:42:22]line Место: АЗС № 92 "Партнер Нефть" [10:42:22]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:42:22]line СНО: Общий режим [10:42:22]line Чек 65 19.02.2025 10:42 [10:42:22]line Смена: 647 ФФД: 1.0 [10:42:22]line ЗНМ: 0300000118 [10:42:22]line РНМ: 0000000000091857 [10:42:22]line Версия ККМ: 001 [10:42:22]line Талоны: Топливная Карта [10:42:22]line 03530 [10:42:22]line ФМ: 0000000000871826 [10:42:22]line ФД: 186999 [10:42:22]line ФПД: 184389245934235 [10:42:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T104223&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186999&fm=184389245934235&tin=02508201610067®Number=0000000000091857&sum=0 [10:42:22]Connected sock=11 [10:42:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 20 47 07 01 DA 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 D4 0D 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 41 00 00 00 F4 03 04 00 8F B5 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 77 DA 02 00 35 04 06 00 A7 B3 77 81 1A 9B 06 2F D3 59 95 38 40 4C [10:42:22]written 0, free lines is 4095 [10:42:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 31 D4 47 00 70 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 77 DA 02 00 F4 03 04 00 E3 5B B5 67 B6 04 01 00 00 4B 3E 3A A9 27 4E 3B 2A [10:42:23]CommunicateWithHost err = 0 [10:42:23]CheckOFDResponse [10:42:23]1017 (14) - 77093643461234 [10:42:23]1041 (16) - 0000000000871826 [10:42:23]1040 (4) - 186999 [10:42:23]1012 (4) - 19.02.2025 04:19 [10:42:23]1206 (1) - 0 [10:42:23]OFD Sender: Remove packet 186999 [10:42:23]ProducePacketName [10:42:23]name=ofd_packets/00186999 [10:42:23]NVStorageDeleteData [10:42:23]Write to MH i2c: 01 00 00 E0 13 F3 [10:42:23]Write i2c OK [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: 01 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: 01 07 00 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: 01 07 00 E0 13 00 00 00 00 00 FD 0C 03 [10:42:23]RasterBufferAndPrint [10:42:23]line [10:42:23]line [10:42:23]line [10:42:23]line [10:42:23]line [10:42:23]written 0, free lines is 3331 [10:42:23]MH_Cut [10:42:23]Write to MH i2c: D1 01 00 E7 13 01 CC [10:42:23]Write i2c OK [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: D1 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: D1 01 00 [10:42:23]MH_I2C_Read... [10:42:23]Read from MH i2c: D1 01 00 E7 13 00 CB [10:42:23]Write to MH i2c: 01 00 00 E8 13 FB [10:42:23]Write i2c OK [10:42:23]MH_I2C_Read... [10:42:23]OFD Sender: No OFD packet to send [10:42:23]*** Cut start [10:42:23]*** Partial cut [10:42:23]*** CUTSNS_PIN = 1 [10:42:24]*** CUTSNS_PIN = 0 [10:42:24]*** Brake cut motor [10:42:24]Read from MH i2c: 01 [10:42:24]MH_I2C_Read... [10:42:24]*** Stop cut motor [10:42:24]*** Cut end [10:42:24]Read from MH i2c: 01 07 00 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: 01 07 00 E8 13 00 00 00 00 00 FF 0F 10 [10:42:24]process_action close_receipt done [10:42:24]requested_data is exist [10:42:24]produce_requested_data [10:42:24]requested_item fm.sn is exist - process it [10:42:24]wFMCommunicate request_size=4 [10:42:24]MH_SAM_APDU [10:42:24]CAPDU: 80 11 00 00 [10:42:24]Write to MH i2c: E2 08 00 E9 13 80 11 00 00 00 00 00 00 76 [10:42:24]Write i2c OK [10:42:24]MH_I2C_Read... [10:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:24]Read from MH i2c: E2 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 17 00 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 17 00 E9 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C9 [10:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:42:24]wFMCommunicate OK [10:42:24]requested_item fd.num is exist - process it [10:42:24]SAM_PROTO_GetFieldsCounters [10:42:24]wFMCommunicate request_size=4 [10:42:24]MH_SAM_APDU [10:42:24]CAPDU: 80 13 00 00 [10:42:24]Write to MH i2c: E2 08 00 EA 13 80 13 00 00 00 00 00 00 79 [10:42:24]Write i2c OK [10:42:24]MH_I2C_Read... [10:42:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:24]Read from MH i2c: E2 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 62 00 [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 62 00 EA 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 77 DA 02 00 0E 04 04 00 87 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 3E [10:42:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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:42:24]wFMCommunicate OK [10:42:24]SAM_PROTO_GetFieldsCounters done [10:42:24]requested_item shift.num is exist - process it [10:42:24]requested_item shift.opened is exist - process it [10:42:24]req_shift_opened [10:42:24]FM_GetShiftState [10:42:24]SAM_PROTO_GetShiftState [10:42:24]wFMCommunicate request_size=4 [10:42:24]MH_SAM_APDU [10:42:24]CAPDU: 80 13 01 00 [10:42:24]Write to MH i2c: E2 08 00 EB 13 80 13 01 00 00 00 00 00 7B [10:42:24]Write i2c OK [10:42:24]MH_I2C_Read... [10:42:24]Read from MH i2c: E2 [10:42:24]MH_I2C_Read... [10:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:24]Read from MH i2c: E2 0E 00 [10:42:25]MH_I2C_Read... [10:42:25]Read from MH i2c: E2 0E 00 EB 13 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 FA [10:42:25]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:42:25]wFMCommunicate OK [10:42:25]SAM_PROTO_GetShiftState done [10:42:25]FM_GetShiftState done [10:42:25]req_shift_opened done [10:42:25]requested_item shift.open_date is exist - process it [10:42:25]req_shift_open_date [10:42:25]req_shift_open_date done [10:42:25]produce_requested_data done [10:42:25]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186999,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [10:42:25]process_action_free close_receipt [10:42:25]json_value_free [10:42:25]json_value_free done [10:42:25]process_json_proto returns [10:42:25]Send response to host [10:42:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186999,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [10:42:25]free response buf [10:42:25]execute_script done [10:42:25]execute_script returns [10:42:25]free content buf [10:42:25]Sock 7.Close socket [10:42:25]Sock 7.Thread stoped [10:42:28]OFD Sender: No OFD packet to send [10:42:33]OFD Sender: No OFD packet to send [10:42:38]OFD Sender: No OFD packet to send [10:42:43]OFD Sender: No OFD packet to send [10:42:48]OFD Sender: No OFD packet to send [10:42:52]accept exits with 9 [10:42:52]New connection [10:42:52]New thread 3066879332 created [10:42:52]Thread 3067022692 joined [10:42:52]Waiting for new connection... [10:42:52] Sock 9.Parse request [10:42:52]Sock 9.Check first char [10:42:52]Sock 9.First char is OK [10:42:52]request: POST /json_proto HTTP/1.0 [10:42:52]Method: POST [10:42:52]URL: /json_proto [10:42:52]Method is POST - this is cgi request [10:42:52]url: /json_proto [10:42:52]query_string will be loaded in cgi processing [10:42:52]execute_cgi json_proto POST (null) [10:42:52]execute_cgi path=json_proto method=POST [10:42:52]POST find Content-Length [10:42:52]Host: 172.17.46.131:8080 [10:42:52]Content-Length: 792 [10:42:52]Content-Type: application/json [10:42:52] [10:42:52]POST finish read [10:42:52]Found Content-Length = 792 [10:42:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412150", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03530", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:52]execute_script... [10:42: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)412150", "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\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03530", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:52]POST & json_proto [10:42:52]process_json_proto [10:42:52]json parsed OK: [10:42:52]protocol is kg_v1.0 [10:42:52]action value=close_receipt [10:42:52]process_action close_receipt [10:42:52]cmd_close_receipt [10:42:52]MH_GetDate [10:42:52]Write to MH i2c: F0 00 00 EC 13 EE [10:42:52]Write i2c OK [10:42:52]MH_I2C_Read... [10:42:52]Read from MH i2c: F0 [10:42:52]MH_I2C_Read... [10:42:52]Read from MH i2c: F0 09 00 [10:42:52]MH_I2C_Read... [10:42:52]Read from MH i2c: F0 09 00 EC 13 00 AF B5 B5 67 7E 41 4F 65 EA [10:42:52]GetLastDocTimeStamp 1739961743 [10:42:52]current date 1739961775 [10:42:52]FM_GetShiftState [10:42:52]SAM_PROTO_GetShiftState [10:42:52]wFMCommunicate request_size=4 [10:42:52]MH_SAM_APDU [10:42:52]CAPDU: 80 13 01 00 [10:42:52]Write to MH i2c: E2 08 00 ED 13 80 13 01 00 00 00 00 00 7D [10:42:52]Write i2c OK [10:42:52]MH_I2C_Read... [10:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:52]Read from MH i2c: E2 [10:42:52]MH_I2C_Read... [10:42:52]Read from MH i2c: E2 0E 00 [10:42:52]MH_I2C_Read... [10:42:52]Read from MH i2c: E2 0E 00 ED 13 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 FC [10:42:52]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:42:52]wFMCommunicate OK [10:42:52]SAM_PROTO_GetShiftState done [10:42:52]FM_GetShiftState done [10:42:52]opened in 1739929631 [10:42:52]opened+sec_in_day 1740016031 [10:42:52]quantity*price = 0 [10:42:52]sum+1 = 1 [10:42: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 СНО: Общий режим Чек 66 19.02.2025 10:42 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 03530 ФМ: 0000000000871826 ФД: 187000 ФПД: 46877828102286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T104255&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187000&fm=46877828102286&tin=02508201610067®Number=0000000000091857&sum=0 [10:42:53]StoreToDocumentArchive [10:42:53]shift 647 fd 187000 [10:42:53]save to /storage/0647/doc_00187000 [10:42:53]save last doc name /storage/0647/doc_00187000 to /storage/kkm_last_doc_name [10:42:53]save OK [10:42:53]Clear old archive folders... [10:42:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:53]tlvbuf is 00638D50 [10:42:53]SAM_PROTO_ClearQueue [10:42:53]wFMCommunicate request_size=4 [10:42:53]MH_SAM_APDU [10:42:53]CAPDU: 80 09 00 00 [10:42:53]Write to MH i2c: E2 08 00 FA 13 80 09 00 00 00 00 00 00 7F [10:42:53]Write i2c OK [10:42:53]MH_I2C_Read... [10:42:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:53]Read from MH i2c: E2 [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: E2 03 00 [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: E2 03 00 FA 13 00 90 00 81 [10:42:53]RAPDU: 90 00 [10:42:53]wFMCommunicate OK [10:42:53]SAM_PROTO_ClearQueue done [10:42:53]KKMCreateOFDPacket [10:42:53]OFDProtocolAddRootSTLVToBuf [10:42:53]FM_MakeSignedData [10:42:53]FM_MakeSignedData [10:42:53]SAM_PROTO_SignData [10:42:53]wFMCommunicate request_size=4 [10:42:53]MH_SAM_APDU [10:42:53]CAPDU: 80 0D 01 02 [10:42:53]Write to MH i2c: E2 08 00 FB 13 80 0D 01 02 00 00 00 00 87 [10:42:53]Write i2c OK [10:42:53]MH_I2C_Read... [10:42:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:53]Read from MH i2c: E2 [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: E2 03 00 [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: E2 03 00 FB 13 00 90 00 82 [10:42:53]RAPDU: 90 00 [10:42:53]wFMCommunicate OK [10:42:53]wFMCommunicate request_size=255 [10:42:53]MH_SAM_APDU [10:42: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 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 42 00 00 00 F4 03 04 00 AF B5 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 78 DA 02 00 35 04 06 00 2A [10:42:53]Write to MH i2c: E2 02 01 FC 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 42 00 00 00 F4 03 04 00 AF B5 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 78 DA 02 00 35 04 06 00 2A 00 00 CA [10:42:53]Write i2c OK [10:42:53]MH_I2C_Read... [10:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:54]Read from MH i2c: E2 [10:42:54]MH_I2C_Read... [10:42:54]Read from MH i2c: E2 03 00 [10:42:54]MH_I2C_Read... [10:42:54]Read from MH i2c: E2 03 00 FC 13 00 90 00 83 [10:42:54]RAPDU: 90 00 [10:42:54]wFMCommunicate OK [10:42:54]wFMCommunicate request_size=10 [10:42:54]MH_SAM_APDU [10:42:54]CAPDU: 80 0D 02 02 05 A2 98 4A B8 8E [10:42:54]Write to MH i2c: E2 0D 00 FD 13 80 0D 02 02 05 00 A2 98 4A B8 8E 00 00 5E [10:42:54]Write i2c OK [10:42:54]MH_I2C_Read... [10:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:54]Read from MH i2c: E2 [10:42:54]MH_I2C_Read... [10:42:54]Read from MH i2c: E2 03 00 [10:42:54]MH_I2C_Read... [10:42:54]Read from MH i2c: E2 03 00 FD 13 00 90 00 84 [10:42:54]RAPDU: 90 00 [10:42:54]wFMCommunicate OK [10:42:54]wFMCommunicate request_size=4 [10:42:54]MH_SAM_APDU [10:42:54]CAPDU: 80 0D 03 02 [10:42:54]Write to MH i2c: E2 08 00 FE 13 80 0D 03 02 00 00 00 00 8C [10:42:54]Write i2c OK [10:42:54]MH_I2C_Read... [10:42:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:54]Read from MH i2c: E2 [10:42:54]MH_I2C_Read... [10:42:54]Read from MH i2c: E2 0B 00 [10:42:54]MH_I2C_Read... [10:42:54]Read from MH i2c: E2 0B 00 FE 13 00 E4 AD B4 BF 67 37 4C 8E 90 00 09 [10:42:54]RAPDU: E4 AD B4 BF 67 37 4C 8E 90 00 [10:42:54]wFMCommunicate OK [10:42:54]SAM_PROTO_SignData done [10:42:54]FM_MakeSignedData done [10:42:54]CreateOFDProtocolMessage [10:42:54]wFMCommunicate request_size=4 [10:42:54]MH_SAM_APDU [10:42:54]CAPDU: 80 11 00 00 [10:42:54]Write to MH i2c: E2 08 00 FF 13 80 11 00 00 00 00 00 00 8C [10:42:54]Write i2c OK [10:42:54]MH_I2C_Read... [10:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:54]Read from MH i2c: E2 [10:42:54]MH_I2C_Read... [10:42:54]Read from MH i2c: E2 17 00 [10:42:54]MH_I2C_Read... [10:42:54]Read from MH i2c: E2 17 00 FF 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DF [10:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:42:54]wFMCommunicate OK [10:42:54]CreateOFDProtocolMessage done [10:42:54]OFDSenderStorePacket 187000 [10:42:54]StoreOFDPacket docnum=187000 [10:42: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 4B B9 07 01 C2 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 42 00 00 00 F4 03 04 00 AF B5 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 78 DA 02 00 35 04 06 00 2A A2 98 4A B8 8E E4 AD B4 BF 67 37 4C 8E [10:42:54]CheckFolder [10:42:54]dirname=/storage/ofd_packets [10:42:54]CheckFolder done [10:42:54]ProducePacketName [10:42:54]name=ofd_packets/00187000 [10:42:54]NVStorageSaveData ofd_packets/00187000 [10:42:54]File name is /storage/ofd_packets/00187000 [10:42:54]Write 301 bytes [10:42:54]NVStorageSaveData done [10:42:54]OFDSenderStorePacket done [10:42:54]KKMCreateOFDPacket done [10:42:54]NVStorageSaveData kkm_last_timestamp [10:42:54]File name is /storage/kkm_last_timestamp [10:42:54]Write 4 bytes [10:42:54]NVStorageSaveData done [10:42:54]ExternCall_PrintAddStr [10:42:54]wPrintStart [10:42:54]Write to MH i2c: 01 00 00 00 14 14 [10:42:54]Write i2c OK [10:42:54]MH_I2C_Read... [10:42:54]Read from MH i2c: 01 [10:42:54]MH_I2C_Read... [10:42:54]Read from MH i2c: 01 07 00 [10:42:54]MH_I2C_Read... [10:42:54]Read from MH i2c: 01 07 00 00 14 00 00 00 00 00 FF 0F 29 [10:42:54]RasterBufferAndPrint [10:42:54]line Счет N : (1)412150 [10:42:54]line ИНН: 02508201610067 [10:42:54]line Контрольно-Кассовый Чек [10:42:54]line ПРОДАЖА [10:42:54]line ТРК (МРК, ГНК) : 12 [10:42:54]line Товар: 2710124130 [10:42:54]line Аи-92-К-2 [10:42:54]line 20.000 * 0.00 [10:42:54]line = 0.00 [10:42:54]line НДС 12% НСП 1% [10:42:54]line > о реализуемом товаре [10:42:54]line ИТОГО: 0.00 [10:42:54]line НСП 1% : 0.00 [10:42:54]line НДС 12% : 0.00 [10:42:54]line Наличными: 0.00 [10:42:54]line Безнал.: 0.00 [10:42:54]line Место: АЗС № 92 "Партнер Нефть" [10:42:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:42:54]line СНО: Общий режим [10:42:54]line Чек 66 19.02.2025 10:42 [10:42:54]line Смена: 647 ФФД: 1.0 [10:42:54]line ЗНМ: 0300000118 [10:42:54]line РНМ: 0000000000091857 [10:42:54]line Версия ККМ: 001 [10:42:54]line Талоны: Топливная Карта [10:42:54]line 03530 [10:42:54]line ФМ: 0000000000871826 [10:42:54]line ФД: 187000 [10:42:54]line ФПД: 46877828102286 [10:42:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T104255&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187000&fm=46877828102286&tin=02508201610067®Number=0000000000091857&sum=0 [10:42:54]written 0, free lines is 4095 [10:42:54]OFD Sender: Processing packet 187000 [packets to send 49, broken 48] [10:42:54]ProducePacketName [10:42:54]name=ofd_packets/00187000 [10:42:54]OFD Sender: To server: pG, [10:42:54]CommunicateWithHost lk.salyk.kg:30040 [10:42:54]ConnectInit lk.salyk.kg [10:42:54]Connected sock=10 [10:42: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 4B B9 07 01 C2 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 42 00 00 00 F4 03 04 00 AF B5 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 78 DA 02 00 35 04 06 00 2A A2 98 4A B8 8E E4 AD B4 BF 67 37 4C 8E [10:42:54]Write to MH i2c: 01 00 00 2A 14 3E [10:42:54]Write i2c OK [10:42:54]MH_I2C_Read... [10:42:54]Read from MH i2c: 01 [10:42:54]MH_I2C_Read... [10:42:54]Read from MH i2c: 01 07 00 [10:42:54]MH_I2C_Read... [10:42:54]Read from MH i2c: 01 07 00 2A 14 00 00 00 00 00 FA 0C 4B [10:42:54]RasterBufferAndPrint [10:42:54]line [10:42:54]line [10:42:54]line [10:42:54]line [10:42:54]line [10:42: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 AB 42 47 00 B8 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 78 DA 02 00 F4 03 04 00 03 5C B5 67 B6 04 01 00 00 25 A5 A3 AD A9 E0 B2 AF [10:42:54]CommunicateWithHost err = 0 [10:42:54]CheckOFDResponse [10:42:54]1017 (14) - 77093643461234 [10:42:54]1041 (16) - 0000000000871826 [10:42:54]1040 (4) - 187000 [10:42:54]1012 (4) - 19.02.2025 04:20 [10:42:54]1206 (1) - 0 [10:42:54]OFD Sender: Remove packet 187000 [10:42:54]ProducePacketName [10:42:54]name=ofd_packets/00187000 [10:42:54]NVStorageDeleteData [10:42:54]written 0, free lines is 3328 [10:42:54]MH_Cut [10:42:54]Write to MH i2c: D1 01 00 31 14 01 17 [10:42:54]Write i2c OK [10:42:54]MH_I2C_Read... [10:42:54]Read from MH i2c: D1 [10:42:54]MH_I2C_Read... [10:42:54]Read from MH i2c: D1 01 00 [10:42:54]MH_I2C_Read... [10:42:54]Read from MH i2c: D1 01 00 31 14 00 16 [10:42:54]Write to MH i2c: 01 00 00 32 14 46 [10:42:54]Write i2c OK [10:42:54]MH_I2C_Read... [10:42:55]OFD Sender: No OFD packet to send [10:42:55]*** Cut start [10:42:55]*** Partial cut [10:42:55]*** CUTSNS_PIN = 1 [10:42:55]*** CUTSNS_PIN = 0 [10:42:55]*** Brake cut motor [10:42:56]Read from MH i2c: 01 [10:42:56]MH_I2C_Read... [10:42:56]*** Stop cut motor [10:42:56]*** Cut end [10:42:56]Read from MH i2c: 01 07 00 [10:42:56]MH_I2C_Read... [10:42:56]Read from MH i2c: 01 07 00 32 14 00 00 00 00 00 FF 0F 5B [10:42:56]process_action close_receipt done [10:42:56]requested_data is exist [10:42:56]produce_requested_data [10:42:56]requested_item fm.sn is exist - process it [10:42:56]wFMCommunicate request_size=4 [10:42:56]MH_SAM_APDU [10:42:56]CAPDU: 80 11 00 00 [10:42:56]Write to MH i2c: E2 08 00 33 14 80 11 00 00 00 00 00 00 C1 [10:42:56]Write i2c OK [10:42:56]MH_I2C_Read... [10:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:56]Read from MH i2c: E2 [10:42:56]MH_I2C_Read... [10:42:56]Read from MH i2c: E2 17 00 [10:42:56]MH_I2C_Read... [10:42:56]Read from MH i2c: E2 17 00 33 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 14 [10:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:42:56]wFMCommunicate OK [10:42:56]requested_item fd.num is exist - process it [10:42:56]SAM_PROTO_GetFieldsCounters [10:42:56]wFMCommunicate request_size=4 [10:42:56]MH_SAM_APDU [10:42:56]CAPDU: 80 13 00 00 [10:42:56]Write to MH i2c: E2 08 00 34 14 80 13 00 00 00 00 00 00 C4 [10:42:56]Write i2c OK [10:42:56]MH_I2C_Read... [10:42:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:56]Read from MH i2c: E2 [10:42:56]MH_I2C_Read... [10:42:56]Read from MH i2c: E2 62 00 [10:42:56]MH_I2C_Read... [10:42:56]Read from MH i2c: E2 62 00 34 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 78 DA 02 00 0E 04 04 00 87 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 8D [10:42: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 78 DA 02 00 0E 04 04 00 87 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:42:56]wFMCommunicate OK [10:42:56]SAM_PROTO_GetFieldsCounters done [10:42:56]requested_item shift.num is exist - process it [10:42:56]requested_item shift.opened is exist - process it [10:42:56]req_shift_opened [10:42:56]FM_GetShiftState [10:42:56]SAM_PROTO_GetShiftState [10:42:56]wFMCommunicate request_size=4 [10:42:56]MH_SAM_APDU [10:42:56]CAPDU: 80 13 01 00 [10:42:56]Write to MH i2c: E2 08 00 35 14 80 13 01 00 00 00 00 00 C6 [10:42:56]Write i2c OK [10:42:56]MH_I2C_Read... [10:42:56]Read from MH i2c: E2 [10:42:56]MH_I2C_Read... [10:42:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:56]Read from MH i2c: E2 0E 00 [10:42:56]MH_I2C_Read... [10:42:56]Read from MH i2c: E2 0E 00 35 14 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 45 [10:42:56]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:42:56]wFMCommunicate OK [10:42:56]SAM_PROTO_GetShiftState done [10:42:56]FM_GetShiftState done [10:42:56]req_shift_opened done [10:42:56]requested_item shift.open_date is exist - process it [10:42:56]req_shift_open_date [10:42:56]req_shift_open_date done [10:42:56]produce_requested_data done [10:42:56]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187000,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [10:42:56]process_action_free close_receipt [10:42:56]json_value_free [10:42:56]json_value_free done [10:42:56]process_json_proto returns [10:42:56]Send response to host [10:42:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187000,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [10:42:56]free response buf [10:42:56]execute_script done [10:42:56]execute_script returns [10:42:56]free content buf [10:42:56]Sock 9.Close socket [10:42:56]Sock 9.Thread stoped [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:14]accept exits with 7 [10:43:14]New connection [10:43:14]New thread 3067022692 created [10:43:14]Thread 3066879332 joined [10:43:14]Waiting for new connection... [10:43:14] Sock 7.Parse request [10:43:14]Sock 7.Check first char [10:43:14]Sock 7.First char is OK [10:43:14]request: POST /json_proto HTTP/1.0 [10:43:14]Method: POST [10:43:14]URL: /json_proto [10:43:14]Method is POST - this is cgi request [10:43:14]url: /json_proto [10:43:14]query_string will be loaded in cgi processing [10:43:14]execute_cgi json_proto POST (null) [10:43:14]execute_cgi path=json_proto method=POST [10:43:14]POST find Content-Length [10:43:14]Host: 172.17.46.131:8080 [10:43:14]Content-Length: 673 [10:43:14]Content-Type: application/json [10:43:14] [10:43:14]POST finish read [10:43:14]Found Content-Length = 673 [10:43:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412151", "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" ] } } [10:43:14]execute_script... [10:43:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412151", "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" ] } } [10:43:14]POST & json_proto [10:43:14]process_json_proto [10:43:14]json parsed OK: [10:43:14]protocol is kg_v1.0 [10:43:14]action value=close_receipt [10:43:14]process_action close_receipt [10:43:14]cmd_close_receipt [10:43:14]MH_GetDate [10:43:14]Write to MH i2c: F0 00 00 36 14 39 [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: F0 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: F0 09 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: F0 09 00 36 14 00 C5 B5 B5 67 7E 41 4F 65 4B [10:43:14]GetLastDocTimeStamp 1739961775 [10:43:14]current date 1739961797 [10:43:14]FM_GetShiftState [10:43:14]SAM_PROTO_GetShiftState [10:43:14]wFMCommunicate request_size=4 [10:43:14]MH_SAM_APDU [10:43:14]CAPDU: 80 13 01 00 [10:43:14]Write to MH i2c: E2 08 00 37 14 80 13 01 00 00 00 00 00 C8 [10:43:14]Write i2c OK [10:43:14]MH_I2C_Read... [10:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:14]Read from MH i2c: E2 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 0E 00 [10:43:14]MH_I2C_Read... [10:43:14]Read from MH i2c: E2 0E 00 37 14 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 47 [10:43:14]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:43:14]wFMCommunicate OK [10:43:14]SAM_PROTO_GetShiftState done [10:43:14]FM_GetShiftState done [10:43:14]opened in 1739929631 [10:43:14]opened+sec_in_day 1740016031 [10:43:14]quantity*price = 50021 [10:43:14]sum+1 = 50022 [10:43:14]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 СНО: Общий режим Чек 67 19.02.2025 10:43 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187001 ФПД: 214090646775445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T104317&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187001&fm=214090646775445&tin=02508201610067®Number=0000000000091857&sum=50000 [10:43:15]StoreToDocumentArchive [10:43:15]shift 647 fd 187001 [10:43:15]save to /storage/0647/doc_00187001 [10:43:15]save last doc name /storage/0647/doc_00187001 to /storage/kkm_last_doc_name [10:43:15]save OK [10:43:15]Clear old archive folders... [10:43:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:43:15]tlvbuf is B6EB9670 [10:43:15]SAM_PROTO_ClearQueue [10:43:15]wFMCommunicate request_size=4 [10:43:15]MH_SAM_APDU [10:43:15]CAPDU: 80 09 00 00 [10:43:15]Write to MH i2c: E2 08 00 44 14 80 09 00 00 00 00 00 00 CA [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:15]Read from MH i2c: E2 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 03 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 03 00 44 14 00 90 00 CC [10:43:15]RAPDU: 90 00 [10:43:15]wFMCommunicate OK [10:43:15]SAM_PROTO_ClearQueue done [10:43:15]KKMCreateOFDPacket [10:43:15]OFDProtocolAddRootSTLVToBuf [10:43:15]FM_MakeSignedData [10:43:15]FM_MakeSignedData [10:43:15]SAM_PROTO_SignData [10:43:15]wFMCommunicate request_size=4 [10:43:15]MH_SAM_APDU [10:43:15]CAPDU: 80 0D 01 02 [10:43:15]Write to MH i2c: E2 08 00 45 14 80 0D 01 02 00 00 00 00 D2 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:15]Read from MH i2c: E2 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 03 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 03 00 45 14 00 90 00 CD [10:43:15]RAPDU: 90 00 [10:43:15]wFMCommunicate OK [10:43:15]wFMCommunicate request_size=255 [10:43:15]MH_SAM_APDU [10:43:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 43 00 00 00 F4 03 04 00 C5 B5 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 79 DA 02 00 35 04 06 00 C2 B6 DC F3 [10:43:15]Write to MH i2c: E2 02 01 46 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 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 43 00 00 00 F4 03 04 00 C5 B5 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 79 DA 02 00 35 04 06 00 C2 B6 DC F3 00 00 8C [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:15]Read from MH i2c: E2 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 03 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 03 00 46 14 00 90 00 CE [10:43:15]RAPDU: 90 00 [10:43:15]wFMCommunicate OK [10:43:15]wFMCommunicate request_size=7 [10:43:15]MH_SAM_APDU [10:43:15]CAPDU: 80 0D 02 02 02 66 95 [10:43:15]Write to MH i2c: E2 0A 00 47 14 80 0D 02 02 02 00 66 95 00 00 D4 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:15]Read from MH i2c: E2 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 03 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 03 00 47 14 00 90 00 CF [10:43:15]RAPDU: 90 00 [10:43:15]wFMCommunicate OK [10:43:15]wFMCommunicate request_size=4 [10:43:15]MH_SAM_APDU [10:43:15]CAPDU: 80 0D 03 02 [10:43:15]Write to MH i2c: E2 08 00 48 14 80 0D 03 02 00 00 00 00 D7 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:15]Read from MH i2c: E2 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 0B 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 0B 00 48 14 00 C7 63 50 C7 49 88 2D C7 90 00 DE [10:43:15]RAPDU: C7 63 50 C7 49 88 2D C7 90 00 [10:43:15]wFMCommunicate OK [10:43:15]SAM_PROTO_SignData done [10:43:15]FM_MakeSignedData done [10:43:15]CreateOFDProtocolMessage [10:43:15]wFMCommunicate request_size=4 [10:43:15]MH_SAM_APDU [10:43:15]CAPDU: 80 11 00 00 [10:43:15]Write to MH i2c: E2 08 00 49 14 80 11 00 00 00 00 00 00 D7 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:15]Read from MH i2c: E2 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 17 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 17 00 49 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2A [10:43:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:43:15]wFMCommunicate OK [10:43:15]CreateOFDProtocolMessage done [10:43:15]OFDSenderStorePacket 187001 [10:43:15]StoreOFDPacket docnum=187001 [10:43: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 0C 01 00 00 F7 E8 04 01 C8 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 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 43 00 00 00 F4 03 04 00 C5 B5 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 79 DA 02 00 35 04 06 00 C2 B6 DC F3 66 95 C7 63 50 C7 49 88 2D C7 [10:43:15]CheckFolder [10:43:15]dirname=/storage/ofd_packets [10:43:15]CheckFolder done [10:43:15]ProducePacketName [10:43:15]name=ofd_packets/00187001 [10:43:15]NVStorageSaveData ofd_packets/00187001 [10:43:15]File name is /storage/ofd_packets/00187001 [10:43:15]Write 298 bytes [10:43:15]NVStorageSaveData done [10:43:15]OFDSenderStorePacket done [10:43:15]KKMCreateOFDPacket done [10:43:15]NVStorageSaveData kkm_last_timestamp [10:43:15]File name is /storage/kkm_last_timestamp [10:43:15]Write 4 bytes [10:43:15]NVStorageSaveData done [10:43:15]ExternCall_PrintAddStr [10:43:15]wPrintStart [10:43:15]Write to MH i2c: 01 00 00 4A 14 5E [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: 01 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: 01 07 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: 01 07 00 4A 14 00 00 00 00 00 FF 0F 73 [10:43:15]RasterBufferAndPrint [10:43:15]line Счет N : (1)412151 [10:43:15]line ИНН: 02508201610067 [10:43:15]line Контрольно-Кассовый Чек [10:43:15]line ПРОДАЖА [10:43:15]line ТРК (МРК, ГНК) : 5 [10:43:15]line Товар: 2710194210 [10:43:15]line ДТ-К-5 [10:43:15]line 6.890 * 72.60 [10:43:15]line = 500.21 [10:43:15]line НДС 12% НСП 1% [10:43:15]line > о реализуемом товаре [10:43:15]line ОКРУГЛЕНИЕ: -0.21 [10:43:15]line ИТОГО: 500.00 [10:43:15]line Внесено: 500.00 [10:43:15]line СДАЧА: 0.00 [10:43:15]line НСП 1% : 4.43 [10:43:15]line НДС 12% : 53.12 [10:43:15]line Наличными: 500.00 [10:43:15]line Безнал.: 0.00 [10:43:15]line Место: АЗС № 92 "Партнер Нефть" [10:43:15]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:43:15]line СНО: Общий режим [10:43:15]line Чек 67 19.02.2025 10:43 [10:43:15]line Смена: 647 ФФД: 1.0 [10:43:15]line ЗНМ: 0300000118 [10:43:15]line РНМ: 0000000000091857 [10:43:15]line Версия ККМ: 001 [10:43:15]line ФМ: 0000000000871826 [10:43:15]line ФД: 187001 [10:43:15]line ФПД: 214090646775445 [10:43:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T104317&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187001&fm=214090646775445&tin=02508201610067®Number=0000000000091857&sum=50000 [10:43:16]OFD Sender: Processing packet 187001 [packets to send 49, broken 48] [10:43:16]ProducePacketName [10:43:16]name=ofd_packets/00187001 [10:43:16]OFD Sender: To server: pG, [10:43:16]CommunicateWithHost lk.salyk.kg:30040 [10:43:16]ConnectInit lk.salyk.kg [10:43:16]written 0, free lines is 4095 [10:43:16]Connected sock=10 [10:43: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 0C 01 00 00 F7 E8 04 01 C8 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 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 43 00 00 00 F4 03 04 00 C5 B5 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 79 DA 02 00 35 04 06 00 C2 B6 DC F3 66 95 C7 63 50 C7 49 88 2D C7 [10:43:16]Write to MH i2c: 01 00 00 75 14 89 [10:43:16]Write i2c OK [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: 01 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: 01 07 00 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: 01 07 00 75 14 00 00 00 00 00 E4 0C 80 [10:43:16]RasterBufferAndPrint [10:43:16]line [10:43:16]line [10:43:16]line [10:43:16]line [10:43:16]line [10:43: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 43 53 47 00 66 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 79 DA 02 00 F4 03 04 00 19 5C B5 67 B6 04 01 00 00 C9 EC B8 78 95 76 91 77 [10:43:16]CommunicateWithHost err = 0 [10:43:16]CheckOFDResponse [10:43:16]1017 (14) - 77093643461234 [10:43:16]1041 (16) - 0000000000871826 [10:43:16]1040 (4) - 187001 [10:43:16]1012 (4) - 19.02.2025 04:20 [10:43:16]1206 (1) - 0 [10:43:16]OFD Sender: Remove packet 187001 [10:43:16]ProducePacketName [10:43:16]name=ofd_packets/00187001 [10:43:16]NVStorageDeleteData [10:43:16]written 0, free lines is 3306 [10:43:16]MH_Cut [10:43:16]Write to MH i2c: D1 01 00 7C 14 01 62 [10:43:16]Write i2c OK [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: D1 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: D1 01 00 [10:43:16]MH_I2C_Read... [10:43:16]Read from MH i2c: D1 01 00 7C 14 00 61 [10:43:16]Write to MH i2c: 01 00 00 7D 14 91 [10:43:16]Write i2c OK [10:43:16]MH_I2C_Read... [10:43:17]OFD Sender: No OFD packet to send [10:43:17]*** Cut start [10:43:17]*** Partial cut [10:43:17]*** CUTSNS_PIN = 1 [10:43:17]*** CUTSNS_PIN = 0 [10:43:17]*** Brake cut motor [10:43:18]Read from MH i2c: 01 [10:43:18]MH_I2C_Read... [10:43:18]*** Stop cut motor [10:43:18]*** Cut end [10:43:18]Read from MH i2c: 01 07 00 [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: 01 07 00 7D 14 00 00 00 00 00 FF 0F A6 [10:43:18]process_action close_receipt done [10:43:18]requested_data is exist [10:43:18]produce_requested_data [10:43:18]requested_item fm.sn is exist - process it [10:43:18]wFMCommunicate request_size=4 [10:43:18]MH_SAM_APDU [10:43:18]CAPDU: 80 11 00 00 [10:43:18]Write to MH i2c: E2 08 00 7E 14 80 11 00 00 00 00 00 00 0C [10:43:18]Write i2c OK [10:43:18]MH_I2C_Read... [10:43:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:18]Read from MH i2c: E2 [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: E2 17 00 [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: E2 17 00 7E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5F [10:43: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:43:18]wFMCommunicate OK [10:43:18]requested_item fd.num is exist - process it [10:43:18]SAM_PROTO_GetFieldsCounters [10:43:18]wFMCommunicate request_size=4 [10:43:18]MH_SAM_APDU [10:43:18]CAPDU: 80 13 00 00 [10:43:18]Write to MH i2c: E2 08 00 7F 14 80 13 00 00 00 00 00 00 0F [10:43:18]Write i2c OK [10:43:18]MH_I2C_Read... [10:43:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:18]Read from MH i2c: E2 [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: E2 62 00 [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: E2 62 00 7F 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 79 DA 02 00 0E 04 04 00 87 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 DC [10:43:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:18]wFMCommunicate OK [10:43:18]SAM_PROTO_GetFieldsCounters done [10:43:18]requested_item shift.num is exist - process it [10:43:18]requested_item shift.opened is exist - process it [10:43:18]req_shift_opened [10:43:18]FM_GetShiftState [10:43:18]SAM_PROTO_GetShiftState [10:43:18]wFMCommunicate request_size=4 [10:43:18]MH_SAM_APDU [10:43:18]CAPDU: 80 13 01 00 [10:43:18]Write to MH i2c: E2 08 00 80 14 80 13 01 00 00 00 00 00 11 [10:43:18]Write i2c OK [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: E2 [10:43:18]MH_I2C_Read... [10:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:18]Read from MH i2c: E2 0E 00 [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: E2 0E 00 80 14 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 90 [10:43:18]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:43:18]wFMCommunicate OK [10:43:18]SAM_PROTO_GetShiftState done [10:43:18]FM_GetShiftState done [10:43:18]req_shift_opened done [10:43:18]requested_item shift.open_date is exist - process it [10:43:18]req_shift_open_date [10:43:18]req_shift_open_date done [10:43:18]produce_requested_data done [10:43:18]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187001,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [10:43:18]process_action_free close_receipt [10:43:18]json_value_free [10:43:18]json_value_free done [10:43:18]process_json_proto returns [10:43:18]Send response to host [10:43:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187001,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [10:43:18]free response buf [10:43:18]execute_script done [10:43:18]execute_script returns [10:43:18]free content buf [10:43:18]Sock 7.Close socket [10:43:18]Sock 7.Thread stoped [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:53]accept exits with 9 [10:43:53]New connection [10:43:53]New thread 3066879332 created [10:43:53]Thread 3067022692 joined [10:43:53]Waiting for new connection... [10:43:53] Sock 9.Parse request [10:43:53]Sock 9.Check first char [10:43:53]Sock 9.First char is OK [10:43:53]request: POST /json_proto HTTP/1.0 [10:43:53]Method: POST [10:43:53]URL: /json_proto [10:43:53]Method is POST - this is cgi request [10:43:53]url: /json_proto [10:43:53]query_string will be loaded in cgi processing [10:43:53]execute_cgi json_proto POST (null) [10:43:53]execute_cgi path=json_proto method=POST [10:43:53]POST find Content-Length [10:43:53]Host: 172.17.46.131:8080 [10:43:53]Content-Length: 673 [10:43:53]Content-Type: application/json [10:43:53] [10:43:53]POST finish read [10:43:53]Found Content-Length = 673 [10:43:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412153", "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" : 1.140, "sum" : 73.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 73.00, "total" : 73.00, "payments": [ { "type": 0, "sum" : 73.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:53]execute_script... [10:43: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)412153", "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" : 1.140, "sum" : 73.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 73.00, "total" : 73.00, "payments": [ { "type": 0, "sum" : 73.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:53]POST & json_proto [10:43:53]process_json_proto [10:43:53]json parsed OK: [10:43:53]protocol is kg_v1.0 [10:43:53]action value=close_receipt [10:43:53]process_action close_receipt [10:43:53]cmd_close_receipt [10:43:53]MH_GetDate [10:43:53]Write to MH i2c: F0 00 00 81 14 84 [10:43:53]Write i2c OK [10:43:53]MH_I2C_Read... [10:43:53]Read from MH i2c: F0 [10:43:53]MH_I2C_Read... [10:43:53]Read from MH i2c: F0 09 00 [10:43:53]MH_I2C_Read... [10:43:53]Read from MH i2c: F0 09 00 81 14 00 EC B5 B5 67 7E 41 4F 65 BD [10:43:53]GetLastDocTimeStamp 1739961797 [10:43:53]current date 1739961836 [10:43:53]FM_GetShiftState [10:43:53]SAM_PROTO_GetShiftState [10:43:53]wFMCommunicate request_size=4 [10:43:53]MH_SAM_APDU [10:43:53]CAPDU: 80 13 01 00 [10:43:53]Write to MH i2c: E2 08 00 82 14 80 13 01 00 00 00 00 00 13 [10:43:53]Write i2c OK [10:43:53]MH_I2C_Read... [10:43:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:53]Read from MH i2c: E2 [10:43:53]MH_I2C_Read... [10:43:53]Read from MH i2c: E2 0E 00 [10:43:53]MH_I2C_Read... [10:43:53]Read from MH i2c: E2 0E 00 82 14 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 92 [10:43:53]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:43:53]wFMCommunicate OK [10:43:53]SAM_PROTO_GetShiftState done [10:43:53]FM_GetShiftState done [10:43:53]opened in 1739929631 [10:43:53]opened+sec_in_day 1740016031 [10:43:53]quantity*price = 7318 [10:43:53]sum+1 = 7320 [10:43:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 73.00 Внесено: 73.00 СДАЧА: 0.00 НСП 1% : 0.65 НДС 12% : 7.77 Наличными: 73.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 68 19.02.2025 10:43 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187002 ФПД: 25000916222788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T104356&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187002&fm=25000916222788&tin=02508201610067®Number=0000000000091857&sum=7300 [10:43:54]StoreToDocumentArchive [10:43:54]shift 647 fd 187002 [10:43:54]save to /storage/0647/doc_00187002 [10:43:54]save last doc name /storage/0647/doc_00187002 to /storage/kkm_last_doc_name [10:43:54]save OK [10:43:54]Clear old archive folders... [10:43:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:54]tlvbuf is 00638A80 [10:43:54]SAM_PROTO_ClearQueue [10:43:54]wFMCommunicate request_size=4 [10:43:54]MH_SAM_APDU [10:43:54]CAPDU: 80 09 00 00 [10:43:54]Write to MH i2c: E2 08 00 8F 14 80 09 00 00 00 00 00 00 15 [10:43:54]Write i2c OK [10:43:54]MH_I2C_Read... [10:43:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:54]Read from MH i2c: E2 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: E2 03 00 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: E2 03 00 8F 14 00 90 00 17 [10:43:54]RAPDU: 90 00 [10:43:54]wFMCommunicate OK [10:43:54]SAM_PROTO_ClearQueue done [10:43:54]KKMCreateOFDPacket [10:43:54]OFDProtocolAddRootSTLVToBuf [10:43:54]FM_MakeSignedData [10:43:54]FM_MakeSignedData [10:43:54]SAM_PROTO_SignData [10:43:54]wFMCommunicate request_size=4 [10:43:54]MH_SAM_APDU [10:43:54]CAPDU: 80 0D 01 02 [10:43:54]Write to MH i2c: E2 08 00 90 14 80 0D 01 02 00 00 00 00 1D [10:43:54]Write i2c OK [10:43:54]MH_I2C_Read... [10:43:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:54]Read from MH i2c: E2 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: E2 03 00 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: E2 03 00 90 14 00 90 00 18 [10:43:54]RAPDU: 90 00 [10:43:54]wFMCommunicate OK [10:43:54]wFMCommunicate request_size=255 [10:43:54]MH_SAM_APDU [10:43: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 74 04 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 97 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 03 00 00 00 00 07 04 06 00 84 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 EC B5 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 7A DA 02 00 35 04 06 00 16 [10:43:54]Write to MH i2c: E2 02 01 91 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 74 04 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 97 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 03 00 00 00 00 07 04 06 00 84 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 EC B5 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 7A DA 02 00 35 04 06 00 16 00 00 04 [10:43:54]Write i2c OK [10:43:54]MH_I2C_Read... [10:43:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:54]Read from MH i2c: E2 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: E2 03 00 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: E2 03 00 91 14 00 90 00 19 [10:43:54]RAPDU: 90 00 [10:43:54]wFMCommunicate OK [10:43:54]wFMCommunicate request_size=10 [10:43:54]MH_SAM_APDU [10:43:54]CAPDU: 80 0D 02 02 05 BC FA BB 03 44 [10:43:54]Write to MH i2c: E2 0D 00 92 14 80 0D 02 02 05 00 BC FA BB 03 44 00 00 E2 [10:43:54]Write i2c OK [10:43:54]MH_I2C_Read... [10:43:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:54]Read from MH i2c: E2 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: E2 03 00 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: E2 03 00 92 14 00 90 00 1A [10:43:54]RAPDU: 90 00 [10:43:54]wFMCommunicate OK [10:43:54]wFMCommunicate request_size=4 [10:43:54]MH_SAM_APDU [10:43:54]CAPDU: 80 0D 03 02 [10:43:54]Write to MH i2c: E2 08 00 93 14 80 0D 03 02 00 00 00 00 22 [10:43:54]Write i2c OK [10:43:54]MH_I2C_Read... [10:43:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:54]Read from MH i2c: E2 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: E2 0B 00 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: E2 0B 00 93 14 00 FB B4 3F 0F 98 54 5D 2F 90 00 98 [10:43:54]RAPDU: FB B4 3F 0F 98 54 5D 2F 90 00 [10:43:54]wFMCommunicate OK [10:43:54]SAM_PROTO_SignData done [10:43:54]FM_MakeSignedData done [10:43:54]CreateOFDProtocolMessage [10:43:54]wFMCommunicate request_size=4 [10:43:54]MH_SAM_APDU [10:43:54]CAPDU: 80 11 00 00 [10:43:54]Write to MH i2c: E2 08 00 94 14 80 11 00 00 00 00 00 00 22 [10:43:54]Write i2c OK [10:43:54]MH_I2C_Read... [10:43:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:54]Read from MH i2c: E2 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: E2 17 00 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: E2 17 00 94 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 75 [10:43:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:43:54]wFMCommunicate OK [10:43:54]CreateOFDProtocolMessage done [10:43:54]OFDSenderStorePacket 187002 [10:43:54]StoreOFDPacket docnum=187002 [10:43: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 89 12 07 01 43 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 74 04 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 97 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 03 00 00 00 00 07 04 06 00 84 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 EC B5 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 7A DA 02 00 35 04 06 00 16 BC FA BB 03 44 FB B4 3F 0F 98 54 5D 2F [10:43:54]CheckFolder [10:43:54]dirname=/storage/ofd_packets [10:43:54]CheckFolder done [10:43:54]ProducePacketName [10:43:54]name=ofd_packets/00187002 [10:43:54]NVStorageSaveData ofd_packets/00187002 [10:43:54]File name is /storage/ofd_packets/00187002 [10:43:54]Write 301 bytes [10:43:54]NVStorageSaveData done [10:43:54]OFDSenderStorePacket done [10:43:54]KKMCreateOFDPacket done [10:43:54]NVStorageSaveData kkm_last_timestamp [10:43:54]File name is /storage/kkm_last_timestamp [10:43:54]Write 4 bytes [10:43:54]NVStorageSaveData done [10:43:54]ExternCall_PrintAddStr [10:43:54]wPrintStart [10:43:54]Write to MH i2c: 01 00 00 95 14 A9 [10:43:54]Write i2c OK [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: 01 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: 01 07 00 [10:43:54]MH_I2C_Read... [10:43:54]Read from MH i2c: 01 07 00 95 14 00 00 00 00 00 FF 0F BE [10:43:54]RasterBufferAndPrint [10:43:54]line Счет N : (1)412153 [10:43:54]line ИНН: 02508201610067 [10:43:54]line Контрольно-Кассовый Чек [10:43:54]line ПРОДАЖА [10:43:54]line ТРК (МРК, ГНК) : 22 [10:43:54]line Товар: 2710124130 [10:43:54]line Аи-92-К-2 [10:43:54]line 1.140 * 64.20 [10:43:54]line = 73.19 [10:43:54]line НДС 12% НСП 1% [10:43:54]line > о реализуемом товаре [10:43:54]line ОКРУГЛЕНИЕ: -0.19 [10:43:54]line ИТОГО: 73.00 [10:43:54]line Внесено: 73.00 [10:43:54]line СДАЧА: 0.00 [10:43:54]line НСП 1% : 0.65 [10:43:54]line НДС 12% : 7.77 [10:43:54]line Наличными: 73.00 [10:43:54]line Безнал.: 0.00 [10:43:54]line Место: АЗС № 92 "Партнер Нефть" [10:43:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:43:54]line СНО: Общий режим [10:43:54]line Чек 68 19.02.2025 10:43 [10:43:54]line Смена: 647 ФФД: 1.0 [10:43:54]line ЗНМ: 0300000118 [10:43:54]line РНМ: 0000000000091857 [10:43:54]line Версия ККМ: 001 [10:43:54]line ФМ: 0000000000871826 [10:43:54]line ФД: 187002 [10:43:54]line ФПД: 25000916222788 [10:43:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T104356&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187002&fm=25000916222788&tin=02508201610067®Number=0000000000091857&sum=7300 [10:43:55]OFD Sender: Processing packet 187002 [packets to send 49, broken 48] [10:43:55]ProducePacketName [10:43:55]name=ofd_packets/00187002 [10:43:55]OFD Sender: To server: pG, [10:43:55]CommunicateWithHost lk.salyk.kg:30040 [10:43:55]ConnectInit lk.salyk.kg [10:43:55]written 0, free lines is 4095 [10:43:55]Connected sock=10 [10:43: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 89 12 07 01 43 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 74 04 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 97 1C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 1C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 41 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 03 00 00 00 00 07 04 06 00 84 1C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 EC B5 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 7A DA 02 00 35 04 06 00 16 BC FA BB 03 44 FB B4 3F 0F 98 54 5D 2F [10:43:55]Write to MH i2c: 01 00 00 C0 14 D4 [10:43:55]Write i2c OK [10:43:55]MH_I2C_Read... [10:43:55]Read from MH i2c: 01 [10:43:55]MH_I2C_Read... [10:43:55]Read from MH i2c: 01 07 00 [10:43:55]MH_I2C_Read... [10:43:55]Read from MH i2c: 01 07 00 C0 14 00 00 00 00 00 F0 0C D7 [10:43:55]RasterBufferAndPrint [10:43:55]line [10:43:55]line [10:43:55]line [10:43:55]line [10:43:55]line [10:43:55]written 0, free lines is 3321 [10:43:55]MH_Cut [10:43:55]Write to MH i2c: D1 01 00 C7 14 01 AD [10:43:55]Write i2c OK [10:43:55]MH_I2C_Read... [10:43:55]Read from MH i2c: D1 [10:43:55]MH_I2C_Read... [10:43:55]Read from MH i2c: D1 01 00 [10:43:55]MH_I2C_Read... [10:43:55]Read from MH i2c: D1 01 00 C7 14 00 AC [10:43:55]Write to MH i2c: 01 00 00 C8 14 DC [10:43:55]Write i2c OK [10:43:55]MH_I2C_Read... [10:43: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 A1 09 47 00 51 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7A DA 02 00 F4 03 04 00 40 5C B5 67 B6 04 01 00 00 61 AB 7C C5 9D A3 37 F2 [10:43:55]CommunicateWithHost err = 0 [10:43:55]CheckOFDResponse [10:43:55]1017 (14) - 77093643461234 [10:43:55]1041 (16) - 0000000000871826 [10:43:55]1040 (4) - 187002 [10:43:55]1012 (4) - 19.02.2025 04:21 [10:43:55]1206 (1) - 0 [10:43:55]OFD Sender: Remove packet 187002 [10:43:55]ProducePacketName [10:43:55]name=ofd_packets/00187002 [10:43:55]NVStorageDeleteData [10:43:56]OFD Sender: No OFD packet to send [10:43:56]*** Cut start [10:43:56]*** Partial cut [10:43:56]*** CUTSNS_PIN = 1 [10:43:56]*** CUTSNS_PIN = 0 [10:43:56]*** Brake cut motor [10:43:57]Read from MH i2c: 01 [10:43:57]MH_I2C_Read... [10:43:57]*** Stop cut motor [10:43:57]*** Cut end [10:43:57]Read from MH i2c: 01 07 00 [10:43:57]MH_I2C_Read... [10:43:57]Read from MH i2c: 01 07 00 C8 14 00 00 00 00 00 FF 0F F1 [10:43:57]process_action close_receipt done [10:43:57]requested_data is exist [10:43:57]produce_requested_data [10:43:57]requested_item fm.sn is exist - process it [10:43:57]wFMCommunicate request_size=4 [10:43:57]MH_SAM_APDU [10:43:57]CAPDU: 80 11 00 00 [10:43:57]Write to MH i2c: E2 08 00 C9 14 80 11 00 00 00 00 00 00 57 [10:43:57]Write i2c OK [10:43:57]MH_I2C_Read... [10:43:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:57]Read from MH i2c: E2 [10:43:57]MH_I2C_Read... [10:43:57]Read from MH i2c: E2 17 00 [10:43:57]MH_I2C_Read... [10:43:57]Read from MH i2c: E2 17 00 C9 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AA [10:43:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:43:57]wFMCommunicate OK [10:43:57]requested_item fd.num is exist - process it [10:43:57]SAM_PROTO_GetFieldsCounters [10:43:57]wFMCommunicate request_size=4 [10:43:57]MH_SAM_APDU [10:43:57]CAPDU: 80 13 00 00 [10:43:57]Write to MH i2c: E2 08 00 CA 14 80 13 00 00 00 00 00 00 5A [10:43:57]Write i2c OK [10:43:57]MH_I2C_Read... [10:43:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:57]Read from MH i2c: E2 [10:43:57]MH_I2C_Read... [10:43:57]Read from MH i2c: E2 62 00 [10:43:57]MH_I2C_Read... [10:43:57]Read from MH i2c: E2 62 00 CA 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 7A DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [10:43: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 7A DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:57]wFMCommunicate OK [10:43:57]SAM_PROTO_GetFieldsCounters done [10:43:57]requested_item shift.num is exist - process it [10:43:57]requested_item shift.opened is exist - process it [10:43:57]req_shift_opened [10:43:57]FM_GetShiftState [10:43:57]SAM_PROTO_GetShiftState [10:43:57]wFMCommunicate request_size=4 [10:43:57]MH_SAM_APDU [10:43:57]CAPDU: 80 13 01 00 [10:43:57]Write to MH i2c: E2 08 00 CB 14 80 13 01 00 00 00 00 00 5C [10:43:57]Write i2c OK [10:43:57]MH_I2C_Read... [10:43:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:57]Read from MH i2c: E2 [10:43:57]MH_I2C_Read... [10:43:57]Read from MH i2c: E2 0E 00 [10:43:57]MH_I2C_Read... [10:43:57]Read from MH i2c: E2 0E 00 CB 14 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 DB [10:43:57]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:43:57]wFMCommunicate OK [10:43:57]SAM_PROTO_GetShiftState done [10:43:57]FM_GetShiftState done [10:43:57]req_shift_opened done [10:43:57]requested_item shift.open_date is exist - process it [10:43:57]req_shift_open_date [10:43:57]req_shift_open_date done [10:43:57]produce_requested_data done [10:43:57]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187002,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [10:43:57]process_action_free close_receipt [10:43:57]json_value_free [10:43:57]json_value_free done [10:43:57]process_json_proto returns [10:43:57]Send response to host [10:43:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187002,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [10:43:57]free response buf [10:43:57]execute_script done [10:43:57]execute_script returns [10:43:57]free content buf [10:43:57]Sock 9.Close socket [10:43:57]Sock 9.Thread stoped [10:44:01]OFD Sender: No OFD packet to send [10:44:02]accept exits with 7 [10:44:02]New connection [10:44:02]New thread 3067022692 created [10:44:02]Thread 3066879332 joined [10:44:02]Waiting for new connection... [10:44:02] Sock 7.Parse request [10:44:02]Sock 7.Check first char [10:44:02]Sock 7.First char is OK [10:44:02]request: POST /json_proto HTTP/1.0 [10:44:02]Method: POST [10:44:02]URL: /json_proto [10:44:02]Method is POST - this is cgi request [10:44:02]url: /json_proto [10:44:02]query_string will be loaded in cgi processing [10:44:02]execute_cgi json_proto POST (null) [10:44:02]execute_cgi path=json_proto method=POST [10:44:02]POST find Content-Length [10:44:02]Host: 172.17.46.131:8080 [10:44:02]Content-Length: 677 [10:44:02]Content-Type: application/json [10:44:02] [10:44:02]POST finish read [10:44:02]Found Content-Length = 677 [10:44:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412152", "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" ] } } [10:44:02]execute_script... [10:44: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)412152", "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" ] } } [10:44:02]POST & json_proto [10:44:02]process_json_proto [10:44:02]json parsed OK: [10:44:02]protocol is kg_v1.0 [10:44:02]action value=close_receipt [10:44:02]process_action close_receipt [10:44:02]cmd_close_receipt [10:44:02]MH_GetDate [10:44:02]Write to MH i2c: F0 00 00 CC 14 CF [10:44:02]Write i2c OK [10:44:02]MH_I2C_Read... [10:44:02]Read from MH i2c: F0 [10:44:02]MH_I2C_Read... [10:44:02]Read from MH i2c: F0 09 00 [10:44:02]MH_I2C_Read... [10:44:02]Read from MH i2c: F0 09 00 CC 14 00 F5 B5 B5 67 7E 41 4F 65 11 [10:44:02]GetLastDocTimeStamp 1739961836 [10:44:02]current date 1739961845 [10:44:02]FM_GetShiftState [10:44:02]SAM_PROTO_GetShiftState [10:44:02]wFMCommunicate request_size=4 [10:44:02]MH_SAM_APDU [10:44:02]CAPDU: 80 13 01 00 [10:44:02]Write to MH i2c: E2 08 00 CD 14 80 13 01 00 00 00 00 00 5E [10:44:02]Write i2c OK [10:44:02]MH_I2C_Read... [10:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:02]Read from MH i2c: E2 [10:44:02]MH_I2C_Read... [10:44:02]Read from MH i2c: E2 0E 00 [10:44:02]MH_I2C_Read... [10:44:02]Read from MH i2c: E2 0E 00 CD 14 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 DD [10:44:02]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:44:02]wFMCommunicate OK [10:44:02]SAM_PROTO_GetShiftState done [10:44:02]FM_GetShiftState done [10:44:02]opened in 1739929631 [10:44:02]opened+sec_in_day 1740016031 [10:44:02]quantity*price = 50011 [10:44:02]sum+1 = 50013 [10:44:02]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 СНО: Общий режим Чек 69 19.02.2025 10:44 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187003 ФПД: 200134532997285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T104405&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187003&fm=200134532997285&tin=02508201610067®Number=0000000000091857&sum=50000 [10:44:03]StoreToDocumentArchive [10:44:03]shift 647 fd 187003 [10:44:03]save to /storage/0647/doc_00187003 [10:44:03]save last doc name /storage/0647/doc_00187003 to /storage/kkm_last_doc_name [10:44:03]save OK [10:44:03]Clear old archive folders... [10:44:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:03]tlvbuf is B6EB9A20 [10:44:03]SAM_PROTO_ClearQueue [10:44:03]wFMCommunicate request_size=4 [10:44:03]MH_SAM_APDU [10:44:03]CAPDU: 80 09 00 00 [10:44:03]Write to MH i2c: E2 08 00 DA 14 80 09 00 00 00 00 00 00 60 [10:44:03]Write i2c OK [10:44:03]MH_I2C_Read... [10:44:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:03]Read from MH i2c: E2 [10:44:03]MH_I2C_Read... [10:44:03]Read from MH i2c: E2 03 00 [10:44:03]MH_I2C_Read... [10:44:03]Read from MH i2c: E2 03 00 DA 14 00 90 00 62 [10:44:03]RAPDU: 90 00 [10:44:03]wFMCommunicate OK [10:44:03]SAM_PROTO_ClearQueue done [10:44:03]KKMCreateOFDPacket [10:44:03]OFDProtocolAddRootSTLVToBuf [10:44:03]FM_MakeSignedData [10:44:03]FM_MakeSignedData [10:44:03]SAM_PROTO_SignData [10:44:03]wFMCommunicate request_size=4 [10:44:03]MH_SAM_APDU [10:44:03]CAPDU: 80 0D 01 02 [10:44:03]Write to MH i2c: E2 08 00 DB 14 80 0D 01 02 00 00 00 00 68 [10:44:03]Write i2c OK [10:44:03]MH_I2C_Read... [10:44:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:03]Read from MH i2c: E2 [10:44:03]MH_I2C_Read... [10:44:03]Read from MH i2c: E2 03 00 [10:44:03]MH_I2C_Read... [10:44:03]Read from MH i2c: E2 03 00 DB 14 00 90 00 63 [10:44:03]RAPDU: 90 00 [10:44:03]wFMCommunicate OK [10:44:03]wFMCommunicate request_size=255 [10:44:03]MH_SAM_APDU [10:44: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 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 45 00 00 00 F4 03 04 00 F5 B5 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 7B DA 02 00 35 04 06 00 B6 [10:44:03]Write to MH i2c: E2 02 01 DC 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 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 45 00 00 00 F4 03 04 00 F5 B5 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 7B DA 02 00 35 04 06 00 B6 00 00 A2 [10:44:03]Write i2c OK [10:44:03]MH_I2C_Read... [10:44:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:04]Read from MH i2c: E2 [10:44:04]MH_I2C_Read... [10:44:04]Read from MH i2c: E2 03 00 [10:44:04]MH_I2C_Read... [10:44:04]Read from MH i2c: E2 03 00 DC 14 00 90 00 64 [10:44:04]RAPDU: 90 00 [10:44:04]wFMCommunicate OK [10:44:04]wFMCommunicate request_size=10 [10:44:04]MH_SAM_APDU [10:44:04]CAPDU: 80 0D 02 02 05 05 73 BF 20 A5 [10:44:04]Write to MH i2c: E2 0D 00 DD 14 80 0D 02 02 05 00 05 73 BF 20 A5 00 00 71 [10:44:04]Write i2c OK [10:44:04]MH_I2C_Read... [10:44:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:04]Read from MH i2c: E2 [10:44:04]MH_I2C_Read... [10:44:04]Read from MH i2c: E2 03 00 [10:44:04]MH_I2C_Read... [10:44:04]Read from MH i2c: E2 03 00 DD 14 00 90 00 65 [10:44:04]RAPDU: 90 00 [10:44:04]wFMCommunicate OK [10:44:04]wFMCommunicate request_size=4 [10:44:04]MH_SAM_APDU [10:44:04]CAPDU: 80 0D 03 02 [10:44:04]Write to MH i2c: E2 08 00 DE 14 80 0D 03 02 00 00 00 00 6D [10:44:04]Write i2c OK [10:44:04]MH_I2C_Read... [10:44:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:04]Read from MH i2c: E2 [10:44:04]MH_I2C_Read... [10:44:04]Read from MH i2c: E2 0B 00 [10:44:04]MH_I2C_Read... [10:44:04]Read from MH i2c: E2 0B 00 DE 14 00 27 C1 C9 59 63 8E 0F 5F 90 00 D7 [10:44:04]RAPDU: 27 C1 C9 59 63 8E 0F 5F 90 00 [10:44:04]wFMCommunicate OK [10:44:04]SAM_PROTO_SignData done [10:44:04]FM_MakeSignedData done [10:44:04]CreateOFDProtocolMessage [10:44:04]wFMCommunicate request_size=4 [10:44:04]MH_SAM_APDU [10:44:04]CAPDU: 80 11 00 00 [10:44:04]Write to MH i2c: E2 08 00 DF 14 80 11 00 00 00 00 00 00 6D [10:44:04]Write i2c OK [10:44:04]MH_I2C_Read... [10:44:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:04]Read from MH i2c: E2 [10:44:04]MH_I2C_Read... [10:44:04]Read from MH i2c: E2 17 00 [10:44:04]MH_I2C_Read... [10:44:04]Read from MH i2c: E2 17 00 DF 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C0 [10:44: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:44:04]wFMCommunicate OK [10:44:04]CreateOFDProtocolMessage done [10:44:04]OFDSenderStorePacket 187003 [10:44:04]StoreOFDPacket docnum=187003 [10:44: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 4E 40 07 01 F0 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 45 00 00 00 F4 03 04 00 F5 B5 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 7B DA 02 00 35 04 06 00 B6 05 73 BF 20 A5 27 C1 C9 59 63 8E 0F 5F [10:44:04]CheckFolder [10:44:04]dirname=/storage/ofd_packets [10:44:04]CheckFolder done [10:44:04]ProducePacketName [10:44:04]name=ofd_packets/00187003 [10:44:04]NVStorageSaveData ofd_packets/00187003 [10:44:04]File name is /storage/ofd_packets/00187003 [10:44:04]Write 301 bytes [10:44:04]NVStorageSaveData done [10:44:04]OFDSenderStorePacket done [10:44:04]KKMCreateOFDPacket done [10:44:04]NVStorageSaveData kkm_last_timestamp [10:44:04]File name is /storage/kkm_last_timestamp [10:44:04]Write 4 bytes [10:44:04]NVStorageSaveData done [10:44:04]ExternCall_PrintAddStr [10:44:04]wPrintStart [10:44:04]Write to MH i2c: 01 00 00 E0 14 F4 [10:44:04]Write i2c OK [10:44:04]MH_I2C_Read... [10:44:04]Read from MH i2c: 01 [10:44:04]MH_I2C_Read... [10:44:04]Read from MH i2c: 01 07 00 [10:44:04]MH_I2C_Read... [10:44:04]Read from MH i2c: 01 07 00 E0 14 00 00 00 00 00 FF 0F 09 [10:44:04]RasterBufferAndPrint [10:44:04]line Счет N : (1)412152 [10:44:04]line ИНН: 02508201610067 [10:44:04]line Контрольно-Кассовый Чек [10:44:04]line ПРОДАЖА [10:44:04]line ТРК (МРК, ГНК) : 32 [10:44:04]line Товар: 2710124130 [10:44:04]line Аи-92-К-2 [10:44:04]line 7.790 * 64.20 [10:44:04]line = 500.12 [10:44:04]line НДС 12% НСП 1% [10:44:04]line > о реализуемом товаре [10:44:04]line ОКРУГЛЕНИЕ: -0.12 [10:44:04]line ИТОГО: 500.00 [10:44:04]line Внесено: 500.00 [10:44:04]line СДАЧА: 0.00 [10:44:04]line НСП 1% : 4.43 [10:44:04]line НДС 12% : 53.11 [10:44:04]line Наличными: 500.00 [10:44:04]line Безнал.: 0.00 [10:44:04]line Место: АЗС № 92 "Партнер Нефть" [10:44:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:44:04]line СНО: Общий режим [10:44:04]line Чек 69 19.02.2025 10:44 [10:44:04]line Смена: 647 ФФД: 1.0 [10:44:04]line ЗНМ: 0300000118 [10:44:04]line РНМ: 0000000000091857 [10:44:04]line Версия ККМ: 001 [10:44:04]line ФМ: 0000000000871826 [10:44:04]line ФД: 187003 [10:44:04]line ФПД: 200134532997285 [10:44:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T104405&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187003&fm=200134532997285&tin=02508201610067®Number=0000000000091857&sum=50000 [10:44:04]OFD Sender: Processing packet 187003 [packets to send 49, broken 48] [10:44:04]ProducePacketName [10:44:04]name=ofd_packets/00187003 [10:44:04]OFD Sender: To server: pG, [10:44:04]CommunicateWithHost lk.salyk.kg:30040 [10:44:04]ConnectInit lk.salyk.kg [10:44:04]Connected sock=10 [10:44:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 written 0, free lines is 4095 [10:44:04]30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4E 40 07 01 F0 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 45 00 00 00 F4 03 04 00 F5 B5 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 7B DA 02 00 35 04 06 00 B6 05 73 BF 20 A5 27 C1 C9 59 63 8E 0F 5F [10:44: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 EF 5F 47 00 09 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7B DA 02 00 F4 03 04 00 49 5C B5 67 B6 04 01 00 00 46 47 35 DD 6C 3F EC 02 [10:44:04]CommunicateWithHost err = 0 [10:44:04]CheckOFDResponse [10:44:04]1017 (14) - 77093643461234 [10:44:04]1041 (16) - 0000000000871826 [10:44:04]1040 (4) - 187003 [10:44:04]1012 (4) - 19.02.2025 04:21 [10:44:04]1206 (1) - 0 [10:44:04]OFD Sender: Remove packet 187003 [10:44:04]ProducePacketName [10:44:04]name=ofd_packets/00187003 [10:44:04]NVStorageDeleteData [10:44:04]Write to MH i2c: 01 00 00 0B 15 20 [10:44:04]Write i2c OK [10:44:04]MH_I2C_Read... [10:44:04]Read from MH i2c: 01 [10:44:04]MH_I2C_Read... [10:44:04]Read from MH i2c: 01 07 00 [10:44:04]MH_I2C_Read... [10:44:04]Read from MH i2c: 01 07 00 0B 15 00 00 00 00 00 E3 0C 16 [10:44:04]RasterBufferAndPrint [10:44:04]line [10:44:04]line [10:44:04]line [10:44:04]line [10:44:04]line [10:44:04]written 0, free lines is 3311 [10:44:04]MH_Cut [10:44:04]Write to MH i2c: D1 01 00 12 15 01 F9 [10:44:04]Write i2c OK [10:44:04]MH_I2C_Read... [10:44:04]Read from MH i2c: D1 [10:44:04]MH_I2C_Read... [10:44:04]Read from MH i2c: D1 01 00 [10:44:04]MH_I2C_Read... [10:44:04]Read from MH i2c: D1 01 00 12 15 00 F8 [10:44:04]Write to MH i2c: 01 00 00 13 15 28 [10:44:04]Write i2c OK [10:44:04]MH_I2C_Read... [10:44:05]OFD Sender: No OFD packet to send [10:44:05]*** Cut start [10:44:05]*** Partial cut [10:44:05]*** CUTSNS_PIN = 1 [10:44:05]*** CUTSNS_PIN = 0 [10:44:06]*** Brake cut motor [10:44:06]Read from MH i2c: 01 [10:44:06]MH_I2C_Read... [10:44:06]*** Stop cut motor [10:44:06]*** Cut end [10:44:06]Read from MH i2c: 01 07 00 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: 01 07 00 13 15 00 00 00 00 00 FF 0F 3D [10:44:06]process_action close_receipt done [10:44:06]requested_data is exist [10:44:06]produce_requested_data [10:44:06]requested_item fm.sn is exist - process it [10:44:06]wFMCommunicate request_size=4 [10:44:06]MH_SAM_APDU [10:44:06]CAPDU: 80 11 00 00 [10:44:06]Write to MH i2c: E2 08 00 14 15 80 11 00 00 00 00 00 00 A3 [10:44:06]Write i2c OK [10:44:06]MH_I2C_Read... [10:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:06]Read from MH i2c: E2 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: E2 17 00 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: E2 17 00 14 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F6 [10:44: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:44:06]wFMCommunicate OK [10:44:06]requested_item fd.num is exist - process it [10:44:06]SAM_PROTO_GetFieldsCounters [10:44:06]wFMCommunicate request_size=4 [10:44:06]MH_SAM_APDU [10:44:06]CAPDU: 80 13 00 00 [10:44:06]Write to MH i2c: E2 08 00 15 15 80 13 00 00 00 00 00 00 A6 [10:44:06]Write i2c OK [10:44:06]MH_I2C_Read... [10:44:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:06]Read from MH i2c: E2 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: E2 62 00 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: E2 62 00 15 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 7B DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [10:44: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 7B DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:06]wFMCommunicate OK [10:44:06]SAM_PROTO_GetFieldsCounters done [10:44:06]requested_item shift.num is exist - process it [10:44:06]requested_item shift.opened is exist - process it [10:44:06]req_shift_opened [10:44:06]FM_GetShiftState [10:44:06]SAM_PROTO_GetShiftState [10:44:06]wFMCommunicate request_size=4 [10:44:06]MH_SAM_APDU [10:44:06]CAPDU: 80 13 01 00 [10:44:06]Write to MH i2c: E2 08 00 16 15 80 13 01 00 00 00 00 00 A8 [10:44:06]Write i2c OK [10:44:06]MH_I2C_Read... [10:44:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:06]Read from MH i2c: E2 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: E2 0E 00 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: E2 0E 00 16 15 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 27 [10:44:06]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:44:06]wFMCommunicate OK [10:44:06]SAM_PROTO_GetShiftState done [10:44:06]FM_GetShiftState done [10:44:06]req_shift_opened done [10:44:06]requested_item shift.open_date is exist - process it [10:44:06]req_shift_open_date [10:44:06]req_shift_open_date done [10:44:06]produce_requested_data done [10:44:06]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187003,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [10:44:06]process_action_free close_receipt [10:44:06]json_value_free [10:44:06]json_value_free done [10:44:06]process_json_proto returns [10:44:06]Send response to host [10:44:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187003,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [10:44:06]free response buf [10:44:06]execute_script done [10:44:06]execute_script returns [10:44:06]free content buf [10:44:06]Sock 7.Close socket [10:44:06]Sock 7.Thread stoped [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:54]accept exits with 9 [10:48:54]New connection [10:48:54]New thread 3066879332 created [10:48:54]Thread 3067022692 joined [10:48:54]Waiting for new connection... [10:48:54] Sock 9.Parse request [10:48:54]Sock 9.Check first char [10:48:54]Sock 9.First char is OK [10:48:54]request: POST /json_proto HTTP/1.0 [10:48:54]Method: POST [10:48:54]URL: /json_proto [10:48:54]Method is POST - this is cgi request [10:48:54]url: /json_proto [10:48:54]query_string will be loaded in cgi processing [10:48:54]execute_cgi json_proto POST (null) [10:48:54]execute_cgi path=json_proto method=POST [10:48:54]POST find Content-Length [10:48:54]Host: 172.17.46.131:8080 [10:48:54]Content-Length: 792 [10:48:54]Content-Type: application/json [10:48:54] [10:48:54]POST finish read [10:48:54]Found Content-Length = 792 [10:48:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412154", "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" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A92", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:54]execute_script... [10:48: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)412154", "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" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A92", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:54]POST & json_proto [10:48:54]process_json_proto [10:48:54]json parsed OK: [10:48:54]protocol is kg_v1.0 [10:48:54]action value=close_receipt [10:48:54]process_action close_receipt [10:48:54]cmd_close_receipt [10:48:54]MH_GetDate [10:48:54]Write to MH i2c: F0 00 00 17 15 1B [10:48:54]Write i2c OK [10:48:54]MH_I2C_Read... [10:48:54]Read from MH i2c: F0 [10:48:54]MH_I2C_Read... [10:48:54]Read from MH i2c: F0 09 00 [10:48:54]MH_I2C_Read... [10:48:54]Read from MH i2c: F0 09 00 17 15 00 19 B7 B5 67 7E 41 4F 65 83 [10:48:54]GetLastDocTimeStamp 1739961845 [10:48:54]current date 1739962137 [10:48:54]FM_GetShiftState [10:48:54]SAM_PROTO_GetShiftState [10:48:54]wFMCommunicate request_size=4 [10:48:54]MH_SAM_APDU [10:48:54]CAPDU: 80 13 01 00 [10:48:54]Write to MH i2c: E2 08 00 18 15 80 13 01 00 00 00 00 00 AA [10:48:54]Write i2c OK [10:48:54]MH_I2C_Read... [10:48:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:54]Read from MH i2c: E2 [10:48:54]MH_I2C_Read... [10:48:54]Read from MH i2c: E2 0E 00 [10:48:54]MH_I2C_Read... [10:48:54]Read from MH i2c: E2 0E 00 18 15 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 29 [10:48:54]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:48:54]wFMCommunicate OK [10:48:54]SAM_PROTO_GetShiftState done [10:48:54]FM_GetShiftState done [10:48:54]opened in 1739929631 [10:48:54]opened+sec_in_day 1740016031 [10:48:54]quantity*price = 0 [10:48:54]sum+1 = 1 [10:48:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 70 19.02.2025 10:48 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 92 ФМ: 0000000000871826 ФД: 187004 ФПД: 249039959071295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T104857&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187004&fm=249039959071295&tin=02508201610067®Number=0000000000091857&sum=0 [10:48:55]StoreToDocumentArchive [10:48:55]shift 647 fd 187004 [10:48:55]save to /storage/0647/doc_00187004 [10:48:55]save last doc name /storage/0647/doc_00187004 to /storage/kkm_last_doc_name [10:48:55]save OK [10:48:55]Clear old archive folders... [10:48:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:48:55]tlvbuf is 00638D80 [10:48:55]SAM_PROTO_ClearQueue [10:48:55]wFMCommunicate request_size=4 [10:48:55]MH_SAM_APDU [10:48:55]CAPDU: 80 09 00 00 [10:48:55]Write to MH i2c: E2 08 00 25 15 80 09 00 00 00 00 00 00 AC [10:48:55]Write i2c OK [10:48:55]MH_I2C_Read... [10:48:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:55]Read from MH i2c: E2 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: E2 03 00 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: E2 03 00 25 15 00 90 00 AE [10:48:55]RAPDU: 90 00 [10:48:55]wFMCommunicate OK [10:48:55]SAM_PROTO_ClearQueue done [10:48:55]KKMCreateOFDPacket [10:48:55]OFDProtocolAddRootSTLVToBuf [10:48:55]FM_MakeSignedData [10:48:55]FM_MakeSignedData [10:48:55]SAM_PROTO_SignData [10:48:55]wFMCommunicate request_size=4 [10:48:55]MH_SAM_APDU [10:48:55]CAPDU: 80 0D 01 02 [10:48:55]Write to MH i2c: E2 08 00 26 15 80 0D 01 02 00 00 00 00 B4 [10:48:55]Write i2c OK [10:48:55]MH_I2C_Read... [10:48:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:55]Read from MH i2c: E2 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: E2 03 00 [10:48:55]MH_I2C_Read... [10:48:55]Read from MH i2c: E2 03 00 26 15 00 90 00 AF [10:48:55]RAPDU: 90 00 [10:48:55]wFMCommunicate OK [10:48:55]wFMCommunicate request_size=255 [10:48:55]MH_SAM_APDU [10:48: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 32 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 19 B7 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 7C DA 02 00 35 04 06 00 E2 80 22 4B [10:48:55]Write to MH i2c: E2 02 01 27 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 32 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 19 B7 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 7C DA 02 00 35 04 06 00 E2 80 22 4B 00 00 C7 [10:48:55]Write i2c OK [10:48:55]MH_I2C_Read... [10:48:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:56]Read from MH i2c: E2 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: E2 03 00 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: E2 03 00 27 15 00 90 00 B0 [10:48:56]RAPDU: 90 00 [10:48:56]wFMCommunicate OK [10:48:56]wFMCommunicate request_size=7 [10:48:56]MH_SAM_APDU [10:48:56]CAPDU: 80 0D 02 02 02 9A 3F [10:48:56]Write to MH i2c: E2 0A 00 28 15 80 0D 02 02 02 00 9A 3F 00 00 94 [10:48:56]Write i2c OK [10:48:56]MH_I2C_Read... [10:48:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:56]Read from MH i2c: E2 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: E2 03 00 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: E2 03 00 28 15 00 90 00 B1 [10:48:56]RAPDU: 90 00 [10:48:56]wFMCommunicate OK [10:48:56]wFMCommunicate request_size=4 [10:48:56]MH_SAM_APDU [10:48:56]CAPDU: 80 0D 03 02 [10:48:56]Write to MH i2c: E2 08 00 29 15 80 0D 03 02 00 00 00 00 B9 [10:48:56]Write i2c OK [10:48:56]MH_I2C_Read... [10:48:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:56]Read from MH i2c: E2 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: E2 0B 00 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: E2 0B 00 29 15 00 90 73 CE E8 9A D9 7C 1E 90 00 80 [10:48:56]RAPDU: 90 73 CE E8 9A D9 7C 1E 90 00 [10:48:56]wFMCommunicate OK [10:48:56]SAM_PROTO_SignData done [10:48:56]FM_MakeSignedData done [10:48:56]CreateOFDProtocolMessage [10:48:56]wFMCommunicate request_size=4 [10:48:56]MH_SAM_APDU [10:48:56]CAPDU: 80 11 00 00 [10:48:56]Write to MH i2c: E2 08 00 2A 15 80 11 00 00 00 00 00 00 B9 [10:48:56]Write i2c OK [10:48:56]MH_I2C_Read... [10:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:56]Read from MH i2c: E2 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: E2 17 00 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: E2 17 00 2A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0C [10:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:48:56]wFMCommunicate OK [10:48:56]CreateOFDProtocolMessage done [10:48:56]OFDSenderStorePacket 187004 [10:48:56]StoreOFDPacket docnum=187004 [10:48: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 88 3B 04 01 0D D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 19 B7 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 7C DA 02 00 35 04 06 00 E2 80 22 4B 9A 3F 90 73 CE E8 9A D9 7C 1E [10:48:56]CheckFolder [10:48:56]dirname=/storage/ofd_packets [10:48:56]CheckFolder done [10:48:56]ProducePacketName [10:48:56]name=ofd_packets/00187004 [10:48:56]NVStorageSaveData ofd_packets/00187004 [10:48:56]File name is /storage/ofd_packets/00187004 [10:48:56]Write 298 bytes [10:48:56]NVStorageSaveData done [10:48:56]OFDSenderStorePacket done [10:48:56]KKMCreateOFDPacket done [10:48:56]NVStorageSaveData kkm_last_timestamp [10:48:56]File name is /storage/kkm_last_timestamp [10:48:56]Write 4 bytes [10:48:56]NVStorageSaveData done [10:48:56]ExternCall_PrintAddStr [10:48:56]wPrintStart [10:48:56]Write to MH i2c: 01 00 00 2B 15 40 [10:48:56]Write i2c OK [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: 01 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: 01 07 00 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: 01 07 00 2B 15 00 00 00 00 00 FF 0F 55 [10:48:56]RasterBufferAndPrint [10:48:56]line Счет N : (1)412154 [10:48:56]line ИНН: 02508201610067 [10:48:56]line Контрольно-Кассовый Чек [10:48:56]line ПРОДАЖА [10:48:56]line ТРК (МРК, ГНК) : 11 [10:48:56]line Товар: 2710194210 [10:48:56]line ДТ-К-2 [10:48:56]line 15.000 * 0.00 [10:48:56]line = 0.00 [10:48:56]line НДС 12% НСП 1% [10:48:56]line > о реализуемом товаре [10:48:56]line ИТОГО: 0.00 [10:48:56]line НСП 1% : 0.00 [10:48:56]line НДС 12% : 0.00 [10:48:56]line Наличными: 0.00 [10:48:56]line Безнал.: 0.00 [10:48:56]line Место: АЗС № 92 "Партнер Нефть" [10:48:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:48:56]line СНО: Общий режим [10:48:56]line Чек 70 19.02.2025 10:48 [10:48:56]line Смена: 647 ФФД: 1.0 [10:48:56]line ЗНМ: 0300000118 [10:48:56]line РНМ: 0000000000091857 [10:48:56]line Версия ККМ: 001 [10:48:56]line Талоны: Топливные Талоны [10:48:56]line 92 [10:48:56]line ФМ: 0000000000871826 [10:48:56]line ФД: 187004 [10:48:56]line ФПД: 249039959071295 [10:48:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T104857&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187004&fm=249039959071295&tin=02508201610067®Number=0000000000091857&sum=0 [10:48:56]OFD Sender: Processing packet 187004 [packets to send 49, broken 48] [10:48:56]ProducePacketName [10:48:56]name=ofd_packets/00187004 [10:48:56]OFD Sender: To server: pG, [10:48:56]CommunicateWithHost lk.salyk.kg:30040 [10:48:56]ConnectInit lk.salyk.kg [10:48:56]written 0, free lines is 4095 [10:48:56]Connected sock=7 [10:48: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 88 3B 04 01 0D D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 19 B7 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 7C DA 02 00 35 04 06 00 E2 80 22 4B 9A 3F 90 73 CE E8 9A D9 7C 1E [10:48:56]Write to MH i2c: 01 00 00 55 15 6A [10:48:56]Write i2c OK [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: 01 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: 01 07 00 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: 01 07 00 55 15 00 00 00 00 00 EA 0C 67 [10:48:56]RasterBufferAndPrint [10:48:56]line [10:48:56]line [10:48:56]line [10:48:56]line [10:48:56]line [10:48:56]written 0, free lines is 3313 [10:48:56]MH_Cut [10:48:56]Write to MH i2c: D1 01 00 5C 15 01 43 [10:48:56]Write i2c OK [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: D1 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: D1 01 00 [10:48:56]MH_I2C_Read... [10:48:56]Read from MH i2c: D1 01 00 5C 15 00 42 [10:48:56]Write to MH i2c: 01 00 00 5D 15 72 [10:48:56]Write i2c OK [10:48:56]MH_I2C_Read... [10:48: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 51 47 00 53 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7C DA 02 00 F4 03 04 00 6D 5D B5 67 B6 04 01 00 00 07 86 3B 38 B6 07 2D 7A [10:48:57]CommunicateWithHost err = 0 [10:48:57]CheckOFDResponse [10:48:57]1017 (14) - 77093643461234 [10:48:57]1041 (16) - 0000000000871826 [10:48:57]1040 (4) - 187004 [10:48:57]1012 (4) - 19.02.2025 04:26 [10:48:57]1206 (1) - 0 [10:48:57]OFD Sender: Remove packet 187004 [10:48:57]ProducePacketName [10:48:57]name=ofd_packets/00187004 [10:48:57]NVStorageDeleteData [10:48:57]OFD Sender: No OFD packet to send [10:48:57]*** Cut start [10:48:57]*** Partial cut [10:48:57]*** CUTSNS_PIN = 1 [10:48:57]*** CUTSNS_PIN = 0 [10:48:58]*** Brake cut motor [10:48:58]Read from MH i2c: 01 [10:48:58]MH_I2C_Read... [10:48:58]*** Stop cut motor [10:48:58]*** Cut end [10:48:58]Read from MH i2c: 01 07 00 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: 01 07 00 5D 15 00 00 00 00 00 FF 0F 87 [10:48:58]process_action close_receipt done [10:48:58]requested_data is exist [10:48:58]produce_requested_data [10:48:58]requested_item fm.sn is exist - process it [10:48:58]wFMCommunicate request_size=4 [10:48:58]MH_SAM_APDU [10:48:58]CAPDU: 80 11 00 00 [10:48:58]Write to MH i2c: E2 08 00 5E 15 80 11 00 00 00 00 00 00 ED [10:48:58]Write i2c OK [10:48:58]MH_I2C_Read... [10:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:58]Read from MH i2c: E2 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: E2 17 00 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: E2 17 00 5E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 40 [10:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:48:58]wFMCommunicate OK [10:48:58]requested_item fd.num is exist - process it [10:48:58]SAM_PROTO_GetFieldsCounters [10:48:58]wFMCommunicate request_size=4 [10:48:58]MH_SAM_APDU [10:48:58]CAPDU: 80 13 00 00 [10:48:58]Write to MH i2c: E2 08 00 5F 15 80 13 00 00 00 00 00 00 F0 [10:48:58]Write i2c OK [10:48:58]MH_I2C_Read... [10:48:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:58]Read from MH i2c: E2 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: E2 62 00 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: E2 62 00 5F 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 7C DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [10:48: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 7C DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:58]wFMCommunicate OK [10:48:58]SAM_PROTO_GetFieldsCounters done [10:48:58]requested_item shift.num is exist - process it [10:48:58]requested_item shift.opened is exist - process it [10:48:58]req_shift_opened [10:48:58]FM_GetShiftState [10:48:58]SAM_PROTO_GetShiftState [10:48:58]wFMCommunicate request_size=4 [10:48:58]MH_SAM_APDU [10:48:58]CAPDU: 80 13 01 00 [10:48:58]Write to MH i2c: E2 08 00 60 15 80 13 01 00 00 00 00 00 F2 [10:48:58]Write i2c OK [10:48:58]MH_I2C_Read... [10:48:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:58]Read from MH i2c: E2 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: E2 0E 00 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: E2 0E 00 60 15 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 71 [10:48:58]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:48:58]wFMCommunicate OK [10:48:58]SAM_PROTO_GetShiftState done [10:48:58]FM_GetShiftState done [10:48:58]req_shift_opened done [10:48:58]requested_item shift.open_date is exist - process it [10:48:58]req_shift_open_date [10:48:58]req_shift_open_date done [10:48:58]produce_requested_data done [10:48:58]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187004,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [10:48:58]process_action_free close_receipt [10:48:58]json_value_free [10:48:58]json_value_free done [10:48:58]process_json_proto returns [10:48:58]Send response to host [10:48:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187004,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [10:48:58]free response buf [10:48:58]execute_script done [10:48:58]execute_script returns [10:48:58]free content buf [10:48:58]Sock 9.Close socket [10:48:58]Sock 9.Thread stoped [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:55]accept exits with 10 [10:51:55]New connection [10:51:55]New thread 3067022692 created [10:51:55]Thread 3066879332 joined [10:51:55]Waiting for new connection... [10:51:55] Sock 10.Parse request [10:51:55]Sock 10.Check first char [10:51:55]Sock 10.First char is OK [10:51:55]request: POST /json_proto HTTP/1.0 [10:51:55]Method: POST [10:51:55]URL: /json_proto [10:51:55]Method is POST - this is cgi request [10:51:55]url: /json_proto [10:51:55]query_string will be loaded in cgi processing [10:51:55]execute_cgi json_proto POST (null) [10:51:55]execute_cgi path=json_proto method=POST [10:51:55]POST find Content-Length [10:51:55]Host: 172.17.46.131:8080 [10:51:55]Content-Length: 678 [10:51:55]Content-Type: application/json [10:51:55] [10:51:55]POST finish read [10:51:55]Found Content-Length = 678 [10:51:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412155", "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" ] } } [10:51:55]execute_script... [10:51: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)412155", "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" ] } } [10:51:55]POST & json_proto [10:51:55]process_json_proto [10:51:55]json parsed OK: [10:51:55]protocol is kg_v1.0 [10:51:55]action value=close_receipt [10:51:55]process_action close_receipt [10:51:55]cmd_close_receipt [10:51:55]MH_GetDate [10:51:55]Write to MH i2c: F0 00 00 61 15 65 [10:51:55]Write i2c OK [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: F0 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: F0 09 00 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: F0 09 00 61 15 00 CE B7 B5 67 7E 41 4F 65 82 [10:51:55]GetLastDocTimeStamp 1739962137 [10:51:55]current date 1739962318 [10:51:55]FM_GetShiftState [10:51:55]SAM_PROTO_GetShiftState [10:51:55]wFMCommunicate request_size=4 [10:51:55]MH_SAM_APDU [10:51:55]CAPDU: 80 13 01 00 [10:51:55]Write to MH i2c: E2 08 00 62 15 80 13 01 00 00 00 00 00 F4 [10:51:55]Write i2c OK [10:51:55]MH_I2C_Read... [10:51:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:55]Read from MH i2c: E2 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: E2 0E 00 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: E2 0E 00 62 15 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 73 [10:51:55]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:51:55]wFMCommunicate OK [10:51:55]SAM_PROTO_GetShiftState done [10:51:55]FM_GetShiftState done [10:51:55]opened in 1739929631 [10:51:55]opened+sec_in_day 1740016031 [10:51:55]quantity*price = 100042 [10:51:55]sum+1 = 100044 [10:51: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 СНО: Общий режим Чек 71 19.02.2025 10:51 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187005 ФПД: 59434679146153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T105158&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187005&fm=59434679146153&tin=02508201610067®Number=0000000000091857&sum=100000 [10:51:56]StoreToDocumentArchive [10:51:56]shift 647 fd 187005 [10:51:56]save to /storage/0647/doc_00187005 [10:51:56]save last doc name /storage/0647/doc_00187005 to /storage/kkm_last_doc_name [10:51:56]save OK [10:51:56]Clear old archive folders... [10:51:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:51:56]tlvbuf is 00611060 [10:51:56]SAM_PROTO_ClearQueue [10:51:56]wFMCommunicate request_size=4 [10:51:56]MH_SAM_APDU [10:51:56]CAPDU: 80 09 00 00 [10:51:56]Write to MH i2c: E2 08 00 6F 15 80 09 00 00 00 00 00 00 F6 [10:51:56]Write i2c OK [10:51:56]MH_I2C_Read... [10:51:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:56]Read from MH i2c: E2 [10:51:56]MH_I2C_Read... [10:51:56]Read from MH i2c: E2 03 00 [10:51:56]MH_I2C_Read... [10:51:56]Read from MH i2c: E2 03 00 6F 15 00 90 00 F8 [10:51:56]RAPDU: 90 00 [10:51:56]wFMCommunicate OK [10:51:56]SAM_PROTO_ClearQueue done [10:51:56]KKMCreateOFDPacket [10:51:56]OFDProtocolAddRootSTLVToBuf [10:51:56]FM_MakeSignedData [10:51:56]FM_MakeSignedData [10:51:56]SAM_PROTO_SignData [10:51:56]wFMCommunicate request_size=4 [10:51:56]MH_SAM_APDU [10:51:56]CAPDU: 80 0D 01 02 [10:51:56]Write to MH i2c: E2 08 00 70 15 80 0D 01 02 00 00 00 00 FE [10:51:56]Write i2c OK [10:51:56]MH_I2C_Read... [10:51:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:57]Read from MH i2c: E2 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: E2 03 00 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: E2 03 00 70 15 00 90 00 F9 [10:51:57]RAPDU: 90 00 [10:51:57]wFMCommunicate OK [10:51:57]wFMCommunicate request_size=255 [10:51:57]MH_SAM_APDU [10:51: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 47 00 00 00 F4 03 04 00 CE B7 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 7D DA 02 00 35 04 06 00 36 0E 36 F0 [10:51:57]Write to MH i2c: E2 02 01 71 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 47 00 00 00 F4 03 04 00 CE B7 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 7D DA 02 00 35 04 06 00 36 0E 36 F0 00 00 D6 [10:51:57]Write i2c OK [10:51:57]MH_I2C_Read... [10:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:57]Read from MH i2c: E2 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: E2 03 00 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: E2 03 00 71 15 00 90 00 FA [10:51:57]RAPDU: 90 00 [10:51:57]wFMCommunicate OK [10:51:57]wFMCommunicate request_size=7 [10:51:57]MH_SAM_APDU [10:51:57]CAPDU: 80 0D 02 02 02 16 A9 [10:51:57]Write to MH i2c: E2 0A 00 72 15 80 0D 02 02 02 00 16 A9 00 00 C4 [10:51:57]Write i2c OK [10:51:57]MH_I2C_Read... [10:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:57]Read from MH i2c: E2 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: E2 03 00 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: E2 03 00 72 15 00 90 00 FB [10:51:57]RAPDU: 90 00 [10:51:57]wFMCommunicate OK [10:51:57]wFMCommunicate request_size=4 [10:51:57]MH_SAM_APDU [10:51:57]CAPDU: 80 0D 03 02 [10:51:57]Write to MH i2c: E2 08 00 73 15 80 0D 03 02 00 00 00 00 03 [10:51:57]Write i2c OK [10:51:57]MH_I2C_Read... [10:51:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:57]Read from MH i2c: E2 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: E2 0B 00 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: E2 0B 00 73 15 00 66 B5 1E C5 73 B1 33 B7 90 00 10 [10:51:57]RAPDU: 66 B5 1E C5 73 B1 33 B7 90 00 [10:51:57]wFMCommunicate OK [10:51:57]SAM_PROTO_SignData done [10:51:57]FM_MakeSignedData done [10:51:57]CreateOFDProtocolMessage [10:51:57]wFMCommunicate request_size=4 [10:51:57]MH_SAM_APDU [10:51:57]CAPDU: 80 11 00 00 [10:51:57]Write to MH i2c: E2 08 00 74 15 80 11 00 00 00 00 00 00 03 [10:51:57]Write i2c OK [10:51:57]MH_I2C_Read... [10:51:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:57]Read from MH i2c: E2 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: E2 17 00 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: E2 17 00 74 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 56 [10:51:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:51:57]wFMCommunicate OK [10:51:57]CreateOFDProtocolMessage done [10:51:57]OFDSenderStorePacket 187005 [10:51:57]StoreOFDPacket docnum=187005 [10:51: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 20 2B 04 01 61 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 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 47 00 00 00 F4 03 04 00 CE B7 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 7D DA 02 00 35 04 06 00 36 0E 36 F0 16 A9 66 B5 1E C5 73 B1 33 B7 [10:51:57]CheckFolder [10:51:57]dirname=/storage/ofd_packets [10:51:57]CheckFolder done [10:51:57]ProducePacketName [10:51:57]name=ofd_packets/00187005 [10:51:57]NVStorageSaveData ofd_packets/00187005 [10:51:57]File name is /storage/ofd_packets/00187005 [10:51:57]Write 298 bytes [10:51:57]NVStorageSaveData done [10:51:57]OFDSenderStorePacket done [10:51:57]KKMCreateOFDPacket done [10:51:57]NVStorageSaveData kkm_last_timestamp [10:51:57]File name is /storage/kkm_last_timestamp [10:51:57]Write 4 bytes [10:51:57]NVStorageSaveData done [10:51:57]ExternCall_PrintAddStr [10:51:57]wPrintStart [10:51:57]Write to MH i2c: 01 00 00 75 15 8A [10:51:57]Write i2c OK [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: 01 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: 01 07 00 [10:51:57]MH_I2C_Read... [10:51:57]Read from MH i2c: 01 07 00 75 15 00 00 00 00 00 FF 0F 9F [10:51:57]RasterBufferAndPrint [10:51:57]line Счет N : (1)412155 [10:51:57]line ИНН: 02508201610067 [10:51:57]line Контрольно-Кассовый Чек [10:51:57]line ПРОДАЖА [10:51:57]line ТРК (МРК, ГНК) : 5 [10:51:57]line Товар: 2710194210 [10:51:57]line ДТ-К-5 [10:51:57]line 13.780 * 72.60 [10:51:57]line = 1000.43 [10:51:57]line НДС 12% НСП 1% [10:51:57]line > о реализуемом товаре [10:51:57]line ОКРУГЛЕНИЕ: -0.43 [10:51:57]line ИТОГО: 1000.00 [10:51:57]line Внесено: 1000.00 [10:51:57]line СДАЧА: 0.00 [10:51:57]line НСП 1% : 8.85 [10:51:57]line НДС 12% : 106.24 [10:51:57]line Наличными: 1000.00 [10:51:57]line Безнал.: 0.00 [10:51:57]line Место: АЗС № 92 "Партнер Нефть" [10:51:57]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:51:57]line СНО: Общий режим [10:51:57]line Чек 71 19.02.2025 10:51 [10:51:57]line Смена: 647 ФФД: 1.0 [10:51:57]line ЗНМ: 0300000118 [10:51:57]line РНМ: 0000000000091857 [10:51:57]line Версия ККМ: 001 [10:51:57]line ФМ: 0000000000871826 [10:51:57]line ФД: 187005 [10:51:57]line ФПД: 59434679146153 [10:51:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T105158&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187005&fm=59434679146153&tin=02508201610067®Number=0000000000091857&sum=100000 [10:51:57]OFD Sender: Processing packet 187005 [packets to send 49, broken 48] [10:51:57]ProducePacketName [10:51:57]name=ofd_packets/00187005 [10:51:57]OFD Sender: To server: pG, [10:51:57]CommunicateWithHost lk.salyk.kg:30040 [10:51:57]ConnectInit lk.salyk.kg [10:51:57]written 0, free lines is 4095 [10:51:57]Connected sock=9 [10:51: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 20 2B 04 01 61 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 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 47 00 00 00 F4 03 04 00 CE B7 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 7D DA 02 00 35 04 06 00 36 0E 36 F0 16 A9 66 B5 1E C5 73 B1 33 B7 [10:51: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 92 9A 47 00 5B 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 7D DA 02 00 F4 03 04 00 22 5E B5 67 B6 04 01 00 00 DB 26 9B 3B 58 59 40 3B [10:51:58]CommunicateWithHost err = 0 [10:51:58]CheckOFDResponse [10:51:58]1017 (14) - 77093643461234 [10:51:58]1041 (16) - 0000000000871826 [10:51:58]1040 (4) - 187005 [10:51:58]1012 (4) - 19.02.2025 04:29 [10:51:58]1206 (1) - 0 [10:51:58]OFD Sender: Remove packet 187005 [10:51:58]ProducePacketName [10:51:58]name=ofd_packets/00187005 [10:51:58]NVStorageDeleteData [10:51:58]Write to MH i2c: 01 00 00 A0 15 B5 [10:51:58]Write i2c OK [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: 01 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: 01 07 00 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: 01 07 00 A0 15 00 00 00 00 00 E4 0C AC [10:51:58]RasterBufferAndPrint [10:51:58]line [10:51:58]line [10:51:58]line [10:51:58]line [10:51:58]line [10:51:58]written 0, free lines is 3306 [10:51:58]MH_Cut [10:51:58]Write to MH i2c: D1 01 00 A7 15 01 8E [10:51:58]Write i2c OK [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: D1 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: D1 01 00 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: D1 01 00 A7 15 00 8D [10:51:58]Write to MH i2c: 01 00 00 A8 15 BD [10:51:58]Write i2c OK [10:51:58]MH_I2C_Read... [10:51:58]OFD Sender: No OFD packet to send [10:51:58]*** Cut start [10:51:58]*** Partial cut [10:51:58]*** CUTSNS_PIN = 1 [10:51:58]*** CUTSNS_PIN = 0 [10:51:59]*** Brake cut motor [10:51:59]Read from MH i2c: 01 [10:51:59]MH_I2C_Read... [10:51:59]*** Stop cut motor [10:51:59]*** Cut end [10:51:59]Read from MH i2c: 01 07 00 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: 01 07 00 A8 15 00 00 00 00 00 FF 0F D2 [10:51:59]process_action close_receipt done [10:51:59]requested_data is exist [10:51:59]produce_requested_data [10:51:59]requested_item fm.sn is exist - process it [10:51:59]wFMCommunicate request_size=4 [10:51:59]MH_SAM_APDU [10:51:59]CAPDU: 80 11 00 00 [10:51:59]Write to MH i2c: E2 08 00 A9 15 80 11 00 00 00 00 00 00 38 [10:51:59]Write i2c OK [10:51:59]MH_I2C_Read... [10:51:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:59]Read from MH i2c: E2 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: E2 17 00 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: E2 17 00 A9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8B [10:51: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:51:59]wFMCommunicate OK [10:51:59]requested_item fd.num is exist - process it [10:51:59]SAM_PROTO_GetFieldsCounters [10:51:59]wFMCommunicate request_size=4 [10:51:59]MH_SAM_APDU [10:51:59]CAPDU: 80 13 00 00 [10:51:59]Write to MH i2c: E2 08 00 AA 15 80 13 00 00 00 00 00 00 3B [10:51:59]Write i2c OK [10:51:59]MH_I2C_Read... [10:51:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:59]Read from MH i2c: E2 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: E2 62 00 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: E2 62 00 AA 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 7D DA 02 00 0E 04 04 00 87 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 18 [10:51: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 7D DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:59]wFMCommunicate OK [10:51:59]SAM_PROTO_GetFieldsCounters done [10:51:59]requested_item shift.num is exist - process it [10:51:59]requested_item shift.opened is exist - process it [10:51:59]req_shift_opened [10:51:59]FM_GetShiftState [10:51:59]SAM_PROTO_GetShiftState [10:51:59]wFMCommunicate request_size=4 [10:51:59]MH_SAM_APDU [10:51:59]CAPDU: 80 13 01 00 [10:51:59]Write to MH i2c: E2 08 00 AB 15 80 13 01 00 00 00 00 00 3D [10:51:59]Write i2c OK [10:51:59]MH_I2C_Read... [10:51:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:59]Read from MH i2c: E2 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: E2 0E 00 [10:51:59]MH_I2C_Read... [10:51:59]Read from MH i2c: E2 0E 00 AB 15 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 BC [10:51:59]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:51:59]wFMCommunicate OK [10:51:59]SAM_PROTO_GetShiftState done [10:51:59]FM_GetShiftState done [10:51:59]req_shift_opened done [10:51:59]requested_item shift.open_date is exist - process it [10:51:59]req_shift_open_date [10:51:59]req_shift_open_date done [10:51:59]produce_requested_data done [10:51:59]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187005,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [10:51:59]process_action_free close_receipt [10:51:59]json_value_free [10:51:59]json_value_free done [10:51:59]process_json_proto returns [10:51:59]Send response to host [10:51:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187005,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [10:51:59]free response buf [10:51:59]execute_script done [10:51:59]execute_script returns [10:51:59]free content buf [10:51:59]Sock 10.Close socket [10:51:59]Sock 10.Thread stoped [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:08]OFD Sender: No OFD packet to send [10:57:13]OFD Sender: No OFD packet to send [10:57:18]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:14]accept exits with 7 [10:59:14]New connection [10:59:14]New thread 3066879332 created [10:59:14]Thread 3067022692 joined [10:59:14]Waiting for new connection... [10:59:14] Sock 7.Parse request [10:59:14]Sock 7.Check first char [10:59:14]Sock 7.First char is OK [10:59:14]request: POST /json_proto HTTP/1.0 [10:59:14]Method: POST [10:59:14]URL: /json_proto [10:59:14]Method is POST - this is cgi request [10:59:14]url: /json_proto [10:59:14]query_string will be loaded in cgi processing [10:59:14]execute_cgi json_proto POST (null) [10:59:14]execute_cgi path=json_proto method=POST [10:59:14]POST find Content-Length [10:59:14]Host: 172.17.46.131:8080 [10:59:14]Content-Length: 677 [10:59:14]Content-Type: application/json [10:59:14] [10:59:14]POST finish read [10:59:14]Found Content-Length = 677 [10:59:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412156", "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" ] } } [10:59:14]execute_script... [10:59: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)412156", "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" ] } } [10:59:14]POST & json_proto [10:59:14]process_json_proto [10:59:14]json parsed OK: [10:59:14]protocol is kg_v1.0 [10:59:14]action value=close_receipt [10:59:14]process_action close_receipt [10:59:14]cmd_close_receipt [10:59:14]MH_GetDate [10:59:14]Write to MH i2c: F0 00 00 AC 15 B0 [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: F0 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: F0 09 00 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: F0 09 00 AC 15 00 85 B9 B5 67 7E 41 4F 65 86 [10:59:14]GetLastDocTimeStamp 1739962318 [10:59:14]current date 1739962757 [10:59:14]FM_GetShiftState [10:59:14]SAM_PROTO_GetShiftState [10:59:14]wFMCommunicate request_size=4 [10:59:14]MH_SAM_APDU [10:59:14]CAPDU: 80 13 01 00 [10:59:14]Write to MH i2c: E2 08 00 AD 15 80 13 01 00 00 00 00 00 3F [10:59:14]Write i2c OK [10:59:14]MH_I2C_Read... [10:59:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:14]Read from MH i2c: E2 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: E2 0E 00 [10:59:14]MH_I2C_Read... [10:59:14]Read from MH i2c: E2 0E 00 AD 15 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 BE [10:59:14]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:59:14]wFMCommunicate OK [10:59:14]SAM_PROTO_GetShiftState done [10:59:14]FM_GetShiftState done [10:59:14]opened in 1739929631 [10:59:14]opened+sec_in_day 1740016031 [10:59:14]quantity*price = 20030 [10:59:14]sum+1 = 20031 [10:59:14]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 СНО: Общий режим Чек 72 19.02.2025 10:59 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187006 ФПД: 203666555267477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T105917&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187006&fm=203666555267477&tin=02508201610067®Number=0000000000091857&sum=20000 [10:59:15]StoreToDocumentArchive [10:59:15]shift 647 fd 187006 [10:59:15]save to /storage/0647/doc_00187006 [10:59:15]save last doc name /storage/0647/doc_00187006 to /storage/kkm_last_doc_name [10:59:15]save OK [10:59:15]Clear old archive folders... [10:59:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:15]tlvbuf is 00611090 [10:59:15]SAM_PROTO_ClearQueue [10:59:15]wFMCommunicate request_size=4 [10:59:15]MH_SAM_APDU [10:59:15]CAPDU: 80 09 00 00 [10:59:15]Write to MH i2c: E2 08 00 BA 15 80 09 00 00 00 00 00 00 41 [10:59:15]Write i2c OK [10:59:15]MH_I2C_Read... [10:59:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:15]Read from MH i2c: E2 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 03 00 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 03 00 BA 15 00 90 00 43 [10:59:15]RAPDU: 90 00 [10:59:15]wFMCommunicate OK [10:59:15]SAM_PROTO_ClearQueue done [10:59:15]KKMCreateOFDPacket [10:59:15]OFDProtocolAddRootSTLVToBuf [10:59:15]FM_MakeSignedData [10:59:15]FM_MakeSignedData [10:59:15]SAM_PROTO_SignData [10:59:15]wFMCommunicate request_size=4 [10:59:15]MH_SAM_APDU [10:59:15]CAPDU: 80 0D 01 02 [10:59:15]Write to MH i2c: E2 08 00 BB 15 80 0D 01 02 00 00 00 00 49 [10:59:15]Write i2c OK [10:59:15]MH_I2C_Read... [10:59:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:15]Read from MH i2c: E2 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 03 00 [10:59:15]MH_I2C_Read... [10:59:15]Read from MH i2c: E2 03 00 BB 15 00 90 00 44 [10:59:15]RAPDU: 90 00 [10:59:15]wFMCommunicate OK [10:59:15]wFMCommunicate request_size=255 [10:59:15]MH_SAM_APDU [10:59: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 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 48 00 00 00 F4 03 04 00 85 B9 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 7E DA 02 00 35 04 06 00 B9 [10:59:15]Write to MH i2c: E2 02 01 BC 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 48 00 00 00 F4 03 04 00 85 B9 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 7E DA 02 00 35 04 06 00 B9 00 00 6C [10:59:15]Write i2c OK [10:59:15]MH_I2C_Read... [10:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:16]Read from MH i2c: E2 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 03 00 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 03 00 BC 15 00 90 00 45 [10:59:16]RAPDU: 90 00 [10:59:16]wFMCommunicate OK [10:59:16]wFMCommunicate request_size=10 [10:59:16]MH_SAM_APDU [10:59:16]CAPDU: 80 0D 02 02 05 3B D0 AD E9 95 [10:59:16]Write to MH i2c: E2 0D 00 BD 15 80 0D 02 02 05 00 3B D0 AD E9 95 00 00 8C [10:59:16]Write i2c OK [10:59:16]MH_I2C_Read... [10:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:16]Read from MH i2c: E2 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 03 00 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 03 00 BD 15 00 90 00 46 [10:59:16]RAPDU: 90 00 [10:59:16]wFMCommunicate OK [10:59:16]wFMCommunicate request_size=4 [10:59:16]MH_SAM_APDU [10:59:16]CAPDU: 80 0D 03 02 [10:59:16]Write to MH i2c: E2 08 00 BE 15 80 0D 03 02 00 00 00 00 4E [10:59:16]Write i2c OK [10:59:16]MH_I2C_Read... [10:59:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:16]Read from MH i2c: E2 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 0B 00 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 0B 00 BE 15 00 14 19 61 74 69 25 81 D1 90 00 31 [10:59:16]RAPDU: 14 19 61 74 69 25 81 D1 90 00 [10:59:16]wFMCommunicate OK [10:59:16]SAM_PROTO_SignData done [10:59:16]FM_MakeSignedData done [10:59:16]CreateOFDProtocolMessage [10:59:16]wFMCommunicate request_size=4 [10:59:16]MH_SAM_APDU [10:59:16]CAPDU: 80 11 00 00 [10:59:16]Write to MH i2c: E2 08 00 BF 15 80 11 00 00 00 00 00 00 4E [10:59:16]Write i2c OK [10:59:16]MH_I2C_Read... [10:59:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:16]Read from MH i2c: E2 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 17 00 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: E2 17 00 BF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A1 [10:59: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:59:16]wFMCommunicate OK [10:59:16]CreateOFDProtocolMessage done [10:59:16]OFDSenderStorePacket 187006 [10:59:16]StoreOFDPacket docnum=187006 [10:59: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 99 54 07 01 A9 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 48 00 00 00 F4 03 04 00 85 B9 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 7E DA 02 00 35 04 06 00 B9 3B D0 AD E9 95 14 19 61 74 69 25 81 D1 [10:59:16]CheckFolder [10:59:16]dirname=/storage/ofd_packets [10:59:16]CheckFolder done [10:59:16]ProducePacketName [10:59:16]name=ofd_packets/00187006 [10:59:16]NVStorageSaveData ofd_packets/00187006 [10:59:16]File name is /storage/ofd_packets/00187006 [10:59:16]Write 301 bytes [10:59:16]NVStorageSaveData done [10:59:16]OFDSenderStorePacket done [10:59:16]KKMCreateOFDPacket done [10:59:16]NVStorageSaveData kkm_last_timestamp [10:59:16]File name is /storage/kkm_last_timestamp [10:59:16]Write 4 bytes [10:59:16]NVStorageSaveData done [10:59:16]ExternCall_PrintAddStr [10:59:16]wPrintStart [10:59:16]Write to MH i2c: 01 00 00 C0 15 D5 [10:59:16]Write i2c OK [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: 01 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: 01 07 00 [10:59:16]MH_I2C_Read... [10:59:16]Read from MH i2c: 01 07 00 C0 15 00 00 00 00 00 FF 0F EA [10:59:16]RasterBufferAndPrint [10:59:16]line Счет N : (1)412156 [10:59:16]line ИНН: 02508201610067 [10:59:16]line Контрольно-Кассовый Чек [10:59:16]line ПРОДАЖА [10:59:16]line ТРК (МРК, ГНК) : 22 [10:59:16]line Товар: 2710124130 [10:59:16]line Аи-92-К-2 [10:59:16]line 3.120 * 64.20 [10:59:16]line = 200.30 [10:59:16]line НДС 12% НСП 1% [10:59:16]line > о реализуемом товаре [10:59:16]line ОКРУГЛЕНИЕ: -0.30 [10:59:16]line ИТОГО: 200.00 [10:59:16]line Внесено: 200.00 [10:59:16]line СДАЧА: 0.00 [10:59:16]line НСП 1% : 1.77 [10:59:16]line НДС 12% : 21.27 [10:59:16]line Наличными: 200.00 [10:59:16]line Безнал.: 0.00 [10:59:16]line Место: АЗС № 92 "Партнер Нефть" [10:59:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:59:16]line СНО: Общий режим [10:59:16]line Чек 72 19.02.2025 10:59 [10:59:16]line Смена: 647 ФФД: 1.0 [10:59:16]line ЗНМ: 0300000118 [10:59:16]line РНМ: 0000000000091857 [10:59:16]line Версия ККМ: 001 [10:59:16]line ФМ: 0000000000871826 [10:59:16]line ФД: 187006 [10:59:16]line ФПД: 203666555267477 [10:59:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T105917&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187006&fm=203666555267477&tin=02508201610067®Number=0000000000091857&sum=20000 [10:59:16]written 0, free lines is 4095 [10:59:16]OFD Sender: Processing packet 187006 [packets to send 49, broken 48] [10:59:16]ProducePacketName [10:59:16]name=ofd_packets/00187006 [10:59:16]OFD Sender: To server: pG, [10:59:16]CommunicateWithHost lk.salyk.kg:30040 [10:59:16]ConnectInit lk.salyk.kg [10:59:16]Connected sock=10 [10:59: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 99 54 07 01 A9 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 48 00 00 00 F4 03 04 00 85 B9 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 7E DA 02 00 35 04 06 00 B9 3B D0 AD E9 95 14 19 61 74 69 25 81 D1 [10:59: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 3B B4 47 00 14 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7E DA 02 00 F4 03 04 00 D9 5F B5 67 B6 04 01 00 00 44 23 2C 9E 85 36 AE 1B [10:59:17]CommunicateWithHost err = 0 [10:59:17]CheckOFDResponse [10:59:17]1017 (14) - 77093643461234 [10:59:17]1041 (16) - 0000000000871826 [10:59:17]1040 (4) - 187006 [10:59:17]1012 (4) - 19.02.2025 04:36 [10:59:17]1206 (1) - 0 [10:59:17]OFD Sender: Remove packet 187006 [10:59:17]ProducePacketName [10:59:17]name=ofd_packets/00187006 [10:59:17]NVStorageDeleteData [10:59:17]Write to MH i2c: 01 00 00 EB 15 00 [10:59:17]Write i2c OK [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: 01 [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: 01 07 00 [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: 01 07 00 EB 15 00 00 00 00 00 F6 0C 09 [10:59:17]RasterBufferAndPrint [10:59:17]line [10:59:17]line [10:59:17]line [10:59:17]line [10:59:17]line [10:59:17]written 0, free lines is 3324 [10:59:17]MH_Cut [10:59:17]Write to MH i2c: D1 01 00 F2 15 01 D9 [10:59:17]Write i2c OK [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: D1 [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: D1 01 00 [10:59:17]MH_I2C_Read... [10:59:17]Read from MH i2c: D1 01 00 F2 15 00 D8 [10:59:17]Write to MH i2c: 01 00 00 F3 15 08 [10:59:17]Write i2c OK [10:59:17]MH_I2C_Read... [10:59:17]OFD Sender: No OFD packet to send [10:59:17]*** Cut start [10:59:17]*** Partial cut [10:59:17]*** CUTSNS_PIN = 1 [10:59:17]*** CUTSNS_PIN = 0 [10:59:18]*** Brake cut motor [10:59:18]Read from MH i2c: 01 [10:59:18]MH_I2C_Read... [10:59:18]*** Stop cut motor [10:59:18]*** Cut end [10:59:18]Read from MH i2c: 01 07 00 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: 01 07 00 F3 15 00 00 00 00 00 FF 0F 1D [10:59:18]process_action close_receipt done [10:59:18]requested_data is exist [10:59:18]produce_requested_data [10:59:18]requested_item fm.sn is exist - process it [10:59:18]wFMCommunicate request_size=4 [10:59:18]MH_SAM_APDU [10:59:18]CAPDU: 80 11 00 00 [10:59:18]Write to MH i2c: E2 08 00 F4 15 80 11 00 00 00 00 00 00 83 [10:59:18]Write i2c OK [10:59:18]MH_I2C_Read... [10:59:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:18]Read from MH i2c: E2 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 17 00 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 17 00 F4 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D6 [10:59: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:59:18]wFMCommunicate OK [10:59:18]requested_item fd.num is exist - process it [10:59:18]SAM_PROTO_GetFieldsCounters [10:59:18]wFMCommunicate request_size=4 [10:59:18]MH_SAM_APDU [10:59:18]CAPDU: 80 13 00 00 [10:59:18]Write to MH i2c: E2 08 00 F5 15 80 13 00 00 00 00 00 00 86 [10:59:18]Write i2c OK [10:59:18]MH_I2C_Read... [10:59:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:18]Read from MH i2c: E2 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 62 00 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 62 00 F5 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 7E DA 02 00 0E 04 04 00 87 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 67 [10:59: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 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:18]wFMCommunicate OK [10:59:18]SAM_PROTO_GetFieldsCounters done [10:59:18]requested_item shift.num is exist - process it [10:59:18]requested_item shift.opened is exist - process it [10:59:18]req_shift_opened [10:59:18]FM_GetShiftState [10:59:18]SAM_PROTO_GetShiftState [10:59:18]wFMCommunicate request_size=4 [10:59:18]MH_SAM_APDU [10:59:18]CAPDU: 80 13 01 00 [10:59:18]Write to MH i2c: E2 08 00 F6 15 80 13 01 00 00 00 00 00 88 [10:59:18]Write i2c OK [10:59:18]MH_I2C_Read... [10:59:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:18]Read from MH i2c: E2 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 0E 00 [10:59:18]MH_I2C_Read... [10:59:18]Read from MH i2c: E2 0E 00 F6 15 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 07 [10:59:18]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [10:59:18]wFMCommunicate OK [10:59:18]SAM_PROTO_GetShiftState done [10:59:18]FM_GetShiftState done [10:59:18]req_shift_opened done [10:59:18]requested_item shift.open_date is exist - process it [10:59:18]req_shift_open_date [10:59:18]req_shift_open_date done [10:59:18]produce_requested_data done [10:59:18]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187006,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [10:59:18]process_action_free close_receipt [10:59:18]json_value_free [10:59:18]json_value_free done [10:59:18]process_json_proto returns [10:59:18]Send response to host [10:59:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187006,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [10:59:18]free response buf [10:59:18]execute_script done [10:59:18]execute_script returns [10:59:18]free content buf [10:59:18]Sock 7.Close socket [10:59:18]Sock 7.Thread stoped [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:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:37]OFD Sender: No OFD packet to send [11:02:42]OFD Sender: No OFD packet to send [11:02:47]OFD Sender: No OFD packet to send [11:02:52]OFD Sender: No OFD packet to send [11:02:53]accept exits with 9 [11:02:53]New connection [11:02:53]New thread 3067022692 created [11:02:53]Thread 3066879332 joined [11:02:53]Waiting for new connection... [11:02:53] Sock 9.Parse request [11:02:53]Sock 9.Check first char [11:02:53]Sock 9.First char is OK [11:02:53]request: POST /json_proto HTTP/1.0 [11:02:53]Method: POST [11:02:53]URL: /json_proto [11:02:53]Method is POST - this is cgi request [11:02:53]url: /json_proto [11:02:53]query_string will be loaded in cgi processing [11:02:53]execute_cgi json_proto POST (null) [11:02:53]execute_cgi path=json_proto method=POST [11:02:53]POST find Content-Length [11:02:53]Host: 172.17.46.131:8080 [11:02:53]Content-Length: 792 [11:02:53]Content-Type: application/json [11:02:53] [11:02:53]POST finish read [11:02:53]Found Content-Length = 792 [11:02:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412157", "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" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99975", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:53]execute_script... [11:02: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)412157", "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" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99975", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:53]POST & json_proto [11:02:53]process_json_proto [11:02:53]json parsed OK: [11:02:53]protocol is kg_v1.0 [11:02:53]action value=close_receipt [11:02:53]process_action close_receipt [11:02:53]cmd_close_receipt [11:02:53]MH_GetDate [11:02:53]Write to MH i2c: F0 00 00 F7 15 FB [11:02:53]Write i2c OK [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: F0 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: F0 09 00 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: F0 09 00 F7 15 00 60 BA B5 67 7E 41 4F 65 AD [11:02:53]GetLastDocTimeStamp 1739962757 [11:02:53]current date 1739962976 [11:02:53]FM_GetShiftState [11:02:53]SAM_PROTO_GetShiftState [11:02:53]wFMCommunicate request_size=4 [11:02:53]MH_SAM_APDU [11:02:53]CAPDU: 80 13 01 00 [11:02:53]Write to MH i2c: E2 08 00 F8 15 80 13 01 00 00 00 00 00 8A [11:02:53]Write i2c OK [11:02:53]MH_I2C_Read... [11:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:53]Read from MH i2c: E2 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 0E 00 [11:02:53]MH_I2C_Read... [11:02:53]Read from MH i2c: E2 0E 00 F8 15 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 09 [11:02:53]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:02:53]wFMCommunicate OK [11:02:53]SAM_PROTO_GetShiftState done [11:02:53]FM_GetShiftState done [11:02:53]opened in 1739929631 [11:02:53]opened+sec_in_day 1740016031 [11:02:53]quantity*price = 0 [11:02:53]sum+1 = 1 [11:02:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 73 19.02.2025 11:02 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 99975 ФМ: 0000000000871826 ФД: 187007 ФПД: 3050681567723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T110256&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187007&fm=3050681567723&tin=02508201610067®Number=0000000000091857&sum=0 [11:02:54]StoreToDocumentArchive [11:02:54]shift 647 fd 187007 [11:02:54]save to /storage/0647/doc_00187007 [11:02:54]save last doc name /storage/0647/doc_00187007 to /storage/kkm_last_doc_name [11:02:54]save OK [11:02:54]Clear old archive folders... [11:02:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:54]tlvbuf is 00611690 [11:02:54]SAM_PROTO_ClearQueue [11:02:54]wFMCommunicate request_size=4 [11:02:54]MH_SAM_APDU [11:02:54]CAPDU: 80 09 00 00 [11:02:54]Write to MH i2c: E2 08 00 05 16 80 09 00 00 00 00 00 00 8D [11:02:54]Write i2c OK [11:02:54]MH_I2C_Read... [11:02:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:54]Read from MH i2c: E2 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 03 00 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 03 00 05 16 00 90 00 8F [11:02:54]RAPDU: 90 00 [11:02:54]wFMCommunicate OK [11:02:54]SAM_PROTO_ClearQueue done [11:02:54]KKMCreateOFDPacket [11:02:54]OFDProtocolAddRootSTLVToBuf [11:02:54]FM_MakeSignedData [11:02:54]FM_MakeSignedData [11:02:54]SAM_PROTO_SignData [11:02:54]wFMCommunicate request_size=4 [11:02:54]MH_SAM_APDU [11:02:54]CAPDU: 80 0D 01 02 [11:02:54]Write to MH i2c: E2 08 00 06 16 80 0D 01 02 00 00 00 00 95 [11:02:54]Write i2c OK [11:02:54]MH_I2C_Read... [11:02:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:54]Read from MH i2c: E2 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 03 00 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 03 00 06 16 00 90 00 90 [11:02:54]RAPDU: 90 00 [11:02:54]wFMCommunicate OK [11:02:54]wFMCommunicate request_size=255 [11:02:54]MH_SAM_APDU [11:02: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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 60 BA 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 7F DA 02 00 35 04 06 00 02 [11:02:54]Write to MH i2c: E2 02 01 07 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 60 BA 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 7F DA 02 00 35 04 06 00 02 00 00 D8 [11:02:54]Write i2c OK [11:02:54]MH_I2C_Read... [11:02:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:54]Read from MH i2c: E2 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 03 00 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 03 00 07 16 00 90 00 91 [11:02:54]RAPDU: 90 00 [11:02:54]wFMCommunicate OK [11:02:54]wFMCommunicate request_size=10 [11:02:54]MH_SAM_APDU [11:02:54]CAPDU: 80 0D 02 02 05 C6 4A CA 89 EB [11:02:54]Write to MH i2c: E2 0D 00 08 16 80 0D 02 02 05 00 C6 4A CA 89 EB 00 00 F0 [11:02:54]Write i2c OK [11:02:54]MH_I2C_Read... [11:02:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:54]Read from MH i2c: E2 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 03 00 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 03 00 08 16 00 90 00 92 [11:02:54]RAPDU: 90 00 [11:02:54]wFMCommunicate OK [11:02:54]wFMCommunicate request_size=4 [11:02:54]MH_SAM_APDU [11:02:54]CAPDU: 80 0D 03 02 [11:02:54]Write to MH i2c: E2 08 00 09 16 80 0D 03 02 00 00 00 00 9A [11:02:54]Write i2c OK [11:02:54]MH_I2C_Read... [11:02:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:54]Read from MH i2c: E2 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 0B 00 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 0B 00 09 16 00 2D 6C 75 ED B3 02 69 D1 90 00 85 [11:02:54]RAPDU: 2D 6C 75 ED B3 02 69 D1 90 00 [11:02:54]wFMCommunicate OK [11:02:54]SAM_PROTO_SignData done [11:02:54]FM_MakeSignedData done [11:02:54]CreateOFDProtocolMessage [11:02:54]wFMCommunicate request_size=4 [11:02:54]MH_SAM_APDU [11:02:54]CAPDU: 80 11 00 00 [11:02:54]Write to MH i2c: E2 08 00 0A 16 80 11 00 00 00 00 00 00 9A [11:02:54]Write i2c OK [11:02:54]MH_I2C_Read... [11:02:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:54]Read from MH i2c: E2 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 17 00 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: E2 17 00 0A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 ED [11:02: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:02:54]wFMCommunicate OK [11:02:54]CreateOFDProtocolMessage done [11:02:54]OFDSenderStorePacket 187007 [11:02:54]StoreOFDPacket docnum=187007 [11:02: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 9B 84 07 01 83 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 60 BA 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 7F DA 02 00 35 04 06 00 02 C6 4A CA 89 EB 2D 6C 75 ED B3 02 69 D1 [11:02:54]CheckFolder [11:02:54]dirname=/storage/ofd_packets [11:02:54]CheckFolder done [11:02:54]ProducePacketName [11:02:54]name=ofd_packets/00187007 [11:02:54]NVStorageSaveData ofd_packets/00187007 [11:02:54]File name is /storage/ofd_packets/00187007 [11:02:54]Write 301 bytes [11:02:54]NVStorageSaveData done [11:02:54]OFDSenderStorePacket done [11:02:54]KKMCreateOFDPacket done [11:02:54]NVStorageSaveData kkm_last_timestamp [11:02:54]File name is /storage/kkm_last_timestamp [11:02:54]Write 4 bytes [11:02:54]NVStorageSaveData done [11:02:54]ExternCall_PrintAddStr [11:02:54]wPrintStart [11:02:54]Write to MH i2c: 01 00 00 0B 16 21 [11:02:54]Write i2c OK [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: 01 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: 01 07 00 [11:02:54]MH_I2C_Read... [11:02:54]Read from MH i2c: 01 07 00 0B 16 00 00 00 00 00 FF 0F 36 [11:02:54]RasterBufferAndPrint [11:02:54]line Счет N : (1)412157 [11:02:54]line ИНН: 02508201610067 [11:02:54]line Контрольно-Кассовый Чек [11:02:54]line ПРОДАЖА [11:02:54]line ТРК (МРК, ГНК) : 32 [11:02:54]line Товар: 2710124130 [11:02:54]line Аи-92-К-2 [11:02:54]line 15.000 * 0.00 [11:02:54]line = 0.00 [11:02:54]line НДС 12% НСП 1% [11:02:54]line > о реализуемом товаре [11:02:54]line ИТОГО: 0.00 [11:02:54]line НСП 1% : 0.00 [11:02:54]line НДС 12% : 0.00 [11:02:54]line Наличными: 0.00 [11:02:54]line Безнал.: 0.00 [11:02:54]line Место: АЗС № 92 "Партнер Нефть" [11:02:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:02:54]line СНО: Общий режим [11:02:54]line Чек 73 19.02.2025 11:02 [11:02:54]line Смена: 647 ФФД: 1.0 [11:02:54]line ЗНМ: 0300000118 [11:02:54]line РНМ: 0000000000091857 [11:02:54]line Версия ККМ: 001 [11:02:54]line Талоны: Топливная Карта [11:02:54]line 99975 [11:02:54]line ФМ: 0000000000871826 [11:02:54]line ФД: 187007 [11:02:54]line ФПД: 3050681567723 [11:02:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T110256&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187007&fm=3050681567723&tin=02508201610067®Number=0000000000091857&sum=0 [11:02:55]OFD Sender: Processing packet 187007 [packets to send 49, broken 48] [11:02:55]ProducePacketName [11:02:55]name=ofd_packets/00187007 [11:02:55]OFD Sender: To server: pG, [11:02:55]CommunicateWithHost lk.salyk.kg:30040 [11:02:55]ConnectInit lk.salyk.kg [11:02:55]written 0, free lines is 4095 [11:02:55]Connected sock=10 [11:02: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 9B 84 07 01 83 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 60 BA 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 7F DA 02 00 35 04 06 00 02 C6 4A CA 89 EB 2D 6C 75 ED B3 02 69 D1 [11:02: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 F0 07 47 00 2B FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7F DA 02 00 F4 03 04 00 B4 60 B5 67 B6 04 01 00 00 88 5A 9F D3 B8 DE D4 FE [11:02:55]CommunicateWithHost err = 0 [11:02:55]CheckOFDResponse [11:02:55]1017 (14) - 77093643461234 [11:02:55]1041 (16) - 0000000000871826 [11:02:55]1040 (4) - 187007 [11:02:55]1012 (4) - 19.02.2025 04:40 [11:02:55]1206 (1) - 0 [11:02:55]OFD Sender: Remove packet 187007 [11:02:55]ProducePacketName [11:02:55]name=ofd_packets/00187007 [11:02:55]NVStorageDeleteData [11:02:55]Write to MH i2c: 01 00 00 35 16 4B [11:02:55]Write i2c OK [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: 01 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: 01 07 00 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: 01 07 00 35 16 00 00 00 00 00 06 0D 65 [11:02:55]RasterBufferAndPrint [11:02:55]line [11:02:55]line [11:02:55]line [11:02:55]line [11:02:55]line [11:02:55]written 0, free lines is 3340 [11:02:55]MH_Cut [11:02:55]Write to MH i2c: D1 01 00 3C 16 01 24 [11:02:55]Write i2c OK [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: D1 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: D1 01 00 [11:02:55]MH_I2C_Read... [11:02:55]Read from MH i2c: D1 01 00 3C 16 00 23 [11:02:55]Write to MH i2c: 01 00 00 3D 16 53 [11:02:55]Write i2c OK [11:02:55]MH_I2C_Read... [11:02:56]OFD Sender: No OFD packet to send [11:02:56]*** Cut start [11:02:56]*** Partial cut [11:02:56]*** CUTSNS_PIN = 1 [11:02:56]*** CUTSNS_PIN = 0 [11:02:56]*** Brake cut motor [11:02:57]Read from MH i2c: 01 [11:02:57]MH_I2C_Read... [11:02:57]*** Stop cut motor [11:02:57]*** Cut end [11:02:57]Read from MH i2c: 01 07 00 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: 01 07 00 3D 16 00 00 00 00 00 FF 0F 68 [11:02:57]process_action close_receipt done [11:02:57]requested_data is exist [11:02:57]produce_requested_data [11:02:57]requested_item fm.sn is exist - process it [11:02:57]wFMCommunicate request_size=4 [11:02:57]MH_SAM_APDU [11:02:57]CAPDU: 80 11 00 00 [11:02:57]Write to MH i2c: E2 08 00 3E 16 80 11 00 00 00 00 00 00 CE [11:02:57]Write i2c OK [11:02:57]MH_I2C_Read... [11:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:57]Read from MH i2c: E2 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 17 00 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 17 00 3E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 21 [11: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 [11:02:57]wFMCommunicate OK [11:02:57]requested_item fd.num is exist - process it [11:02:57]SAM_PROTO_GetFieldsCounters [11:02:57]wFMCommunicate request_size=4 [11:02:57]MH_SAM_APDU [11:02:57]CAPDU: 80 13 00 00 [11:02:57]Write to MH i2c: E2 08 00 3F 16 80 13 00 00 00 00 00 00 D1 [11:02:57]Write i2c OK [11:02:57]MH_I2C_Read... [11:02:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:57]Read from MH i2c: E2 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 62 00 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 62 00 3F 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 7F DA 02 00 0E 04 04 00 87 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 B6 [11:02: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 7F DA 02 00 0E 04 04 00 87 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:02:57]wFMCommunicate OK [11:02:57]SAM_PROTO_GetFieldsCounters done [11:02:57]requested_item shift.num is exist - process it [11:02:57]requested_item shift.opened is exist - process it [11:02:57]req_shift_opened [11:02:57]FM_GetShiftState [11:02:57]SAM_PROTO_GetShiftState [11:02:57]wFMCommunicate request_size=4 [11:02:57]MH_SAM_APDU [11:02:57]CAPDU: 80 13 01 00 [11:02:57]Write to MH i2c: E2 08 00 40 16 80 13 01 00 00 00 00 00 D3 [11:02:57]Write i2c OK [11:02:57]MH_I2C_Read... [11:02:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:57]Read from MH i2c: E2 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 0E 00 [11:02:57]MH_I2C_Read... [11:02:57]Read from MH i2c: E2 0E 00 40 16 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 52 [11:02:57]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:02:57]wFMCommunicate OK [11:02:57]SAM_PROTO_GetShiftState done [11:02:57]FM_GetShiftState done [11:02:57]req_shift_opened done [11:02:57]requested_item shift.open_date is exist - process it [11:02:57]req_shift_open_date [11:02:57]req_shift_open_date done [11:02:57]produce_requested_data done [11:02:57]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187007,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [11:02:57]process_action_free close_receipt [11:02:57]json_value_free [11:02:57]json_value_free done [11:02:57]process_json_proto returns [11:02:57]Send response to host [11:02:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187007,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [11:02:57]free response buf [11:02:57]execute_script done [11:02:57]execute_script returns [11:02:57]free content buf [11:02:57]Sock 9.Close socket [11:02:57]Sock 9.Thread stoped [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:09]accept exits with 7 [11:03:09]New connection [11:03:09]New thread 3066879332 created [11:03:09]Thread 3067022692 joined [11:03:09]Waiting for new connection... [11:03:09] Sock 7.Parse request [11:03:09]Sock 7.Check first char [11:03:09]Sock 7.First char is OK [11:03:09]request: POST /json_proto HTTP/1.0 [11:03:09]Method: POST [11:03:09]URL: /json_proto [11:03:09]Method is POST - this is cgi request [11:03:09]url: /json_proto [11:03:09]query_string will be loaded in cgi processing [11:03:09]execute_cgi json_proto POST (null) [11:03:09]execute_cgi path=json_proto method=POST [11:03:09]POST find Content-Length [11:03:09]Host: 172.17.46.131:8080 [11:03:09]Content-Length: 792 [11:03:09]Content-Type: application/json [11:03:09] [11:03:09]POST finish read [11:03:09]Found Content-Length = 792 [11:03:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412158", "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" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99975", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:09]execute_script... [11:03: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)412158", "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" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99975", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:09]POST & json_proto [11:03:09]process_json_proto [11:03:09]json parsed OK: [11:03:09]protocol is kg_v1.0 [11:03:09]action value=close_receipt [11:03:09]process_action close_receipt [11:03:09]cmd_close_receipt [11:03:09]MH_GetDate [11:03:09]Write to MH i2c: F0 00 00 41 16 46 [11:03:09]Write i2c OK [11:03:09]MH_I2C_Read... [11:03:09]Read from MH i2c: F0 [11:03:09]MH_I2C_Read... [11:03:09]Read from MH i2c: F0 09 00 [11:03:09]MH_I2C_Read... [11:03:09]Read from MH i2c: F0 09 00 41 16 00 70 BA B5 67 7E 41 4F 65 08 [11:03:09]GetLastDocTimeStamp 1739962976 [11:03:09]current date 1739962992 [11:03:09]FM_GetShiftState [11:03:09]SAM_PROTO_GetShiftState [11:03:09]wFMCommunicate request_size=4 [11:03:09]MH_SAM_APDU [11:03:09]CAPDU: 80 13 01 00 [11:03:09]Write to MH i2c: E2 08 00 42 16 80 13 01 00 00 00 00 00 D5 [11:03:09]Write i2c OK [11:03:09]MH_I2C_Read... [11:03:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:09]Read from MH i2c: E2 [11:03:09]MH_I2C_Read... [11:03:09]Read from MH i2c: E2 0E 00 [11:03:09]MH_I2C_Read... [11:03:09]Read from MH i2c: E2 0E 00 42 16 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 54 [11:03:09]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:03:09]wFMCommunicate OK [11:03:09]SAM_PROTO_GetShiftState done [11:03:09]FM_GetShiftState done [11:03:09]opened in 1739929631 [11:03:09]opened+sec_in_day 1740016031 [11:03:09]quantity*price = 0 [11:03:09]sum+1 = 1 [11:03:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 74 19.02.2025 11:03 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 99975 ФМ: 0000000000871826 ФД: 187008 ФПД: 37655582649035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T110312&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187008&fm=37655582649035&tin=02508201610067®Number=0000000000091857&sum=0 [11:03:10]StoreToDocumentArchive [11:03:10]shift 647 fd 187008 [11:03:10]save to /storage/0647/doc_00187008 [11:03:10]save last doc name /storage/0647/doc_00187008 to /storage/kkm_last_doc_name [11:03:10]save OK [11:03:10]Clear old archive folders... [11:03:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:03:10]tlvbuf is B6ED2DA0 [11:03:10]SAM_PROTO_ClearQueue [11:03:10]wFMCommunicate request_size=4 [11:03:10]MH_SAM_APDU [11:03:10]CAPDU: 80 09 00 00 [11:03:10]Write to MH i2c: E2 08 00 4F 16 80 09 00 00 00 00 00 00 D7 [11:03:10]Write i2c OK [11:03:10]MH_I2C_Read... [11:03:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:10]Read from MH i2c: E2 [11:03:10]MH_I2C_Read... [11:03:10]Read from MH i2c: E2 03 00 [11:03:10]MH_I2C_Read... [11:03:10]Read from MH i2c: E2 03 00 4F 16 00 90 00 D9 [11:03:10]RAPDU: 90 00 [11:03:10]wFMCommunicate OK [11:03:10]SAM_PROTO_ClearQueue done [11:03:10]KKMCreateOFDPacket [11:03:10]OFDProtocolAddRootSTLVToBuf [11:03:10]FM_MakeSignedData [11:03:10]FM_MakeSignedData [11:03:10]SAM_PROTO_SignData [11:03:10]wFMCommunicate request_size=4 [11:03:10]MH_SAM_APDU [11:03:10]CAPDU: 80 0D 01 02 [11:03:10]Write to MH i2c: E2 08 00 50 16 80 0D 01 02 00 00 00 00 DF [11:03:10]Write i2c OK [11:03:10]MH_I2C_Read... [11:03:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:10]Read from MH i2c: E2 [11:03:10]MH_I2C_Read... [11:03:10]Read from MH i2c: E2 03 00 [11:03:10]MH_I2C_Read... [11:03:10]Read from MH i2c: E2 03 00 50 16 00 90 00 DA [11:03:10]RAPDU: 90 00 [11:03:10]wFMCommunicate OK [11:03:10]wFMCommunicate request_size=255 [11:03:10]MH_SAM_APDU [11:03: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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 70 BA 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 80 DA 02 00 35 04 06 00 22 [11:03:10]Write to MH i2c: E2 02 01 51 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 70 BA 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 80 DA 02 00 35 04 06 00 22 00 00 54 [11:03:10]Write i2c OK [11:03:10]MH_I2C_Read... [11:03:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:10]Read from MH i2c: E2 [11:03:10]MH_I2C_Read... [11:03:10]Read from MH i2c: E2 03 00 [11:03:10]MH_I2C_Read... [11:03:10]Read from MH i2c: E2 03 00 51 16 00 90 00 DB [11:03:10]RAPDU: 90 00 [11:03:10]wFMCommunicate OK [11:03:10]wFMCommunicate request_size=10 [11:03:10]MH_SAM_APDU [11:03:10]CAPDU: 80 0D 02 02 05 3F 5F A0 AA CB [11:03:10]Write to MH i2c: E2 0D 00 52 16 80 0D 02 02 05 00 3F 5F A0 AA CB 00 00 9F [11:03:10]Write i2c OK [11:03:10]MH_I2C_Read... [11:03:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:10]Read from MH i2c: E2 [11:03:10]MH_I2C_Read... [11:03:10]Read from MH i2c: E2 03 00 [11:03:10]MH_I2C_Read... [11:03:10]Read from MH i2c: E2 03 00 52 16 00 90 00 DC [11:03:10]RAPDU: 90 00 [11:03:10]wFMCommunicate OK [11:03:10]wFMCommunicate request_size=4 [11:03:10]MH_SAM_APDU [11:03:10]CAPDU: 80 0D 03 02 [11:03:10]Write to MH i2c: E2 08 00 53 16 80 0D 03 02 00 00 00 00 E4 [11:03:10]Write i2c OK [11:03:10]MH_I2C_Read... [11:03:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:10]Read from MH i2c: E2 [11:03:10]MH_I2C_Read... [11:03:10]Read from MH i2c: E2 0B 00 [11:03:10]MH_I2C_Read... [11:03:10]Read from MH i2c: E2 0B 00 53 16 00 17 B5 27 47 59 1B EF F1 90 00 73 [11:03:10]RAPDU: 17 B5 27 47 59 1B EF F1 90 00 [11:03:10]wFMCommunicate OK [11:03:10]SAM_PROTO_SignData done [11:03:10]FM_MakeSignedData done [11:03:10]CreateOFDProtocolMessage [11:03:10]wFMCommunicate request_size=4 [11:03:10]MH_SAM_APDU [11:03:10]CAPDU: 80 11 00 00 [11:03:10]Write to MH i2c: E2 08 00 54 16 80 11 00 00 00 00 00 00 E4 [11:03:10]Write i2c OK [11:03:10]MH_I2C_Read... [11:03:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:11]Read from MH i2c: E2 [11:03:11]MH_I2C_Read... [11:03:11]Read from MH i2c: E2 17 00 [11:03:11]MH_I2C_Read... [11:03:11]Read from MH i2c: E2 17 00 54 16 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:03: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:03:11]wFMCommunicate OK [11:03:11]CreateOFDProtocolMessage done [11:03:11]OFDSenderStorePacket 187008 [11:03:11]StoreOFDPacket docnum=187008 [11:03: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 7B A4 07 01 09 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 70 BA 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 80 DA 02 00 35 04 06 00 22 3F 5F A0 AA CB 17 B5 27 47 59 1B EF F1 [11:03:11]CheckFolder [11:03:11]dirname=/storage/ofd_packets [11:03:11]CheckFolder done [11:03:11]ProducePacketName [11:03:11]name=ofd_packets/00187008 [11:03:11]NVStorageSaveData ofd_packets/00187008 [11:03:11]File name is /storage/ofd_packets/00187008 [11:03:11]Write 301 bytes [11:03:11]NVStorageSaveData done [11:03:11]OFDSenderStorePacket done [11:03:11]KKMCreateOFDPacket done [11:03:11]NVStorageSaveData kkm_last_timestamp [11:03:11]File name is /storage/kkm_last_timestamp [11:03:11]Write 4 bytes [11:03:11]NVStorageSaveData done [11:03:11]ExternCall_PrintAddStr [11:03:11]wPrintStart [11:03:11]Write to MH i2c: 01 00 00 55 16 6B [11:03:11]Write i2c OK [11:03:11]MH_I2C_Read... [11:03:11]Read from MH i2c: 01 [11:03:11]MH_I2C_Read... [11:03:11]Read from MH i2c: 01 07 00 [11:03:11]MH_I2C_Read... [11:03:11]Read from MH i2c: 01 07 00 55 16 00 00 00 00 00 FF 0F 80 [11:03:11]RasterBufferAndPrint [11:03:11]line Счет N : (1)412158 [11:03:11]line ИНН: 02508201610067 [11:03:11]line Контрольно-Кассовый Чек [11:03:11]line ПРОДАЖА [11:03:11]line ТРК (МРК, ГНК) : 42 [11:03:11]line Товар: 2710124130 [11:03:11]line Аи-92-К-2 [11:03:11]line 15.000 * 0.00 [11:03:11]line = 0.00 [11:03:11]line НДС 12% НСП 1% [11:03:11]line > о реализуемом товаре [11:03:11]line ИТОГО: 0.00 [11:03:11]line НСП 1% : 0.00 [11:03:11]line НДС 12% : 0.00 [11:03:11]line Наличными: 0.00 [11:03:11]line Безнал.: 0.00 [11:03:11]line Место: АЗС № 92 "Партнер Нефть" [11:03:11]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:03:11]line СНО: Общий режим [11:03:11]line Чек 74 19.02.2025 11:03 [11:03:11]line Смена: 647 ФФД: 1.0 [11:03:11]line ЗНМ: 0300000118 [11:03:11]line РНМ: 0000000000091857 [11:03:11]line Версия ККМ: 001 [11:03:11]line Талоны: Топливная Карта [11:03:11]line 99975 [11:03:11]line ФМ: 0000000000871826 [11:03:11]line ФД: 187008 [11:03:11]line ФПД: 37655582649035 [11:03:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T110312&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187008&fm=37655582649035&tin=02508201610067®Number=0000000000091857&sum=0 [11:03:11]written 0, free lines is 4095 [11:03:11]OFD Sender: Processing packet 187008 [packets to send 49, broken 48] [11:03:11]ProducePacketName [11:03:11]name=ofd_packets/00187008 [11:03:11]OFD Sender: To server: pG, [11:03:11]CommunicateWithHost lk.salyk.kg:30040 [11:03:11]ConnectInit lk.salyk.kg [11:03:11]Connected sock=10 [11:03: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 7B A4 07 01 09 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 70 BA 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 80 DA 02 00 35 04 06 00 22 3F 5F A0 AA CB 17 B5 27 47 59 1B EF F1 [11:03:11]Write to MH i2c: 01 00 00 7F 16 95 [11:03:11]Write i2c OK [11:03:11]MH_I2C_Read... [11:03:11]Read from MH i2c: 01 [11:03:11]MH_I2C_Read... [11:03:11]Read from MH i2c: 01 07 00 [11:03:11]MH_I2C_Read... [11:03:11]Read from MH i2c: 01 07 00 7F 16 00 00 00 00 00 09 0D B2 [11:03:11]RasterBufferAndPrint [11:03:11]line [11:03:11]line [11:03:11]line [11:03:11]line [11:03:11]line [11:03:11]written 0, free lines is 3343 [11:03: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 FB 41 47 00 CA 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 80 DA 02 00 F4 03 04 00 C4 60 B5 67 B6 04 01 00 00 B0 85 49 66 66 24 15 53 [11:03:11]CommunicateWithHost err = 0 [11:03:11]CheckOFDResponse [11:03:11]1017 (14) - 77093643461234 [11:03:11]1041 (16) - 0000000000871826 [11:03:11]1040 (4) - 187008 [11:03:11]1012 (4) - 19.02.2025 04:40 [11:03:11]1206 (1) - 0 [11:03:11]OFD Sender: Remove packet 187008 [11:03:11]ProducePacketName [11:03:11]name=ofd_packets/00187008 [11:03:11]NVStorageDeleteData [11:03:11]MH_Cut [11:03:11]Write to MH i2c: D1 01 00 86 16 01 6E [11:03:11]Write i2c OK [11:03:11]MH_I2C_Read... [11:03:11]Read from MH i2c: D1 [11:03:11]MH_I2C_Read... [11:03:11]Read from MH i2c: D1 01 00 [11:03:11]MH_I2C_Read... [11:03:11]Read from MH i2c: D1 01 00 86 16 00 6D [11:03:11]Write to MH i2c: 01 00 00 87 16 9D [11:03:11]Write i2c OK [11:03:11]MH_I2C_Read... [11:03:12]OFD Sender: No OFD packet to send [11:03:12]*** Cut start [11:03:12]*** Partial cut [11:03:12]*** CUTSNS_PIN = 1 [11:03:12]*** CUTSNS_PIN = 0 [11:03:12]*** Brake cut motor [11:03:12]Read from MH i2c: 01 [11:03:12]MH_I2C_Read... [11:03:12]*** Stop cut motor [11:03:12]*** Cut end [11:03:12]Read from MH i2c: 01 07 00 [11:03:12]MH_I2C_Read... [11:03:12]Read from MH i2c: 01 07 00 87 16 00 00 00 00 00 FF 0F B2 [11:03:12]process_action close_receipt done [11:03:12]requested_data is exist [11:03:12]produce_requested_data [11:03:12]requested_item fm.sn is exist - process it [11:03:12]wFMCommunicate request_size=4 [11:03:12]MH_SAM_APDU [11:03:12]CAPDU: 80 11 00 00 [11:03:12]Write to MH i2c: E2 08 00 88 16 80 11 00 00 00 00 00 00 18 [11:03:12]Write i2c OK [11:03:12]MH_I2C_Read... [11:03:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:12]Read from MH i2c: E2 [11:03:12]MH_I2C_Read... [11:03:12]Read from MH i2c: E2 17 00 [11:03:12]MH_I2C_Read... [11:03:12]Read from MH i2c: E2 17 00 88 16 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:03:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:03:12]wFMCommunicate OK [11:03:12]requested_item fd.num is exist - process it [11:03:12]SAM_PROTO_GetFieldsCounters [11:03:12]wFMCommunicate request_size=4 [11:03:12]MH_SAM_APDU [11:03:12]CAPDU: 80 13 00 00 [11:03:12]Write to MH i2c: E2 08 00 89 16 80 13 00 00 00 00 00 00 1B [11:03:12]Write i2c OK [11:03:12]MH_I2C_Read... [11:03:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:13]Read from MH i2c: E2 [11:03:13]MH_I2C_Read... [11:03:13]Read from MH i2c: E2 62 00 [11:03:13]MH_I2C_Read... [11:03:13]Read from MH i2c: E2 62 00 89 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 80 DA 02 00 0E 04 04 00 87 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 04 [11:03: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 80 DA 02 00 0E 04 04 00 87 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:03:13]wFMCommunicate OK [11:03:13]SAM_PROTO_GetFieldsCounters done [11:03:13]requested_item shift.num is exist - process it [11:03:13]requested_item shift.opened is exist - process it [11:03:13]req_shift_opened [11:03:13]FM_GetShiftState [11:03:13]SAM_PROTO_GetShiftState [11:03:13]wFMCommunicate request_size=4 [11:03:13]MH_SAM_APDU [11:03:13]CAPDU: 80 13 01 00 [11:03:13]Write to MH i2c: E2 08 00 8A 16 80 13 01 00 00 00 00 00 1D [11:03:13]Write i2c OK [11:03:13]MH_I2C_Read... [11:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:13]Read from MH i2c: E2 [11:03:13]MH_I2C_Read... [11:03:13]Read from MH i2c: E2 0E 00 [11:03:13]MH_I2C_Read... [11:03:13]Read from MH i2c: E2 0E 00 8A 16 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 9C [11:03:13]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:03:13]wFMCommunicate OK [11:03:13]SAM_PROTO_GetShiftState done [11:03:13]FM_GetShiftState done [11:03:13]req_shift_opened done [11:03:13]requested_item shift.open_date is exist - process it [11:03:13]req_shift_open_date [11:03:13]req_shift_open_date done [11:03:13]produce_requested_data done [11:03:13]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187008,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [11:03:13]process_action_free close_receipt [11:03:13]json_value_free [11:03:13]json_value_free done [11:03:13]process_json_proto returns [11:03:13]Send response to host [11:03:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187008,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [11:03:13]free response buf [11:03:13]execute_script done [11:03:13]execute_script returns [11:03:13]free content buf [11:03:13]Sock 7.Close socket [11:03:13]Sock 7.Thread stoped [11:03:17]OFD Sender: No OFD packet to send [11:03:22]OFD Sender: No OFD packet to send [11:03:27]OFD Sender: No OFD packet to send [11:03:32]OFD Sender: No OFD packet to send [11:03:37]OFD Sender: No OFD packet to send [11:03:42]OFD Sender: No OFD packet to send [11:03:47]OFD Sender: No OFD packet to send [11:03:52]OFD Sender: No OFD packet to send [11:03:57]OFD Sender: No OFD packet to send [11:04:02]OFD Sender: No OFD packet to send [11:04:07]OFD Sender: No OFD packet to send [11:04:12]OFD Sender: No OFD packet to send [11:04:17]OFD Sender: No OFD packet to send [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:29]accept exits with 9 [11:05:29]New connection [11:05:29]New thread 3067022692 created [11:05:29]Thread 3066879332 joined [11:05:29]Waiting for new connection... [11:05:29] Sock 9.Parse request [11:05:29]Sock 9.Check first char [11:05:29]Sock 9.First char is OK [11:05:29]request: POST /json_proto HTTP/1.0 [11:05:29]Method: POST [11:05:29]URL: /json_proto [11:05:29]Method is POST - this is cgi request [11:05:29]url: /json_proto [11:05:29]query_string will be loaded in cgi processing [11:05:29]execute_cgi json_proto POST (null) [11:05:29]execute_cgi path=json_proto method=POST [11:05:29]POST find Content-Length [11:05:29]Host: 172.17.46.131:8080 [11:05:29]Content-Length: 682 [11:05:29]Content-Type: application/json [11:05:29] [11:05:29]POST finish read [11:05:29]Found Content-Length = 682 [11:05:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412160", "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" : 16.360, "sum" : 1050.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1050.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:29]execute_script... [11:05: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)412160", "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" : 16.360, "sum" : 1050.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1050.00, "total" : 1050.00, "payments": [ { "type": 0, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:29]POST & json_proto [11:05:29]process_json_proto [11:05:29]json parsed OK: [11:05:29]protocol is kg_v1.0 [11:05:29]action value=close_receipt [11:05:29]process_action close_receipt [11:05:29]cmd_close_receipt [11:05:29]MH_GetDate [11:05:29]Write to MH i2c: F0 00 00 8B 16 90 [11:05:29]Write i2c OK [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: F0 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: F0 09 00 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: F0 09 00 8B 16 00 FC BA B5 67 7E 41 4F 65 DE [11:05:29]GetLastDocTimeStamp 1739962992 [11:05:29]current date 1739963132 [11:05:29]FM_GetShiftState [11:05:29]SAM_PROTO_GetShiftState [11:05:29]wFMCommunicate request_size=4 [11:05:29]MH_SAM_APDU [11:05:29]CAPDU: 80 13 01 00 [11:05:29]Write to MH i2c: E2 08 00 8C 16 80 13 01 00 00 00 00 00 1F [11:05:29]Write i2c OK [11:05:29]MH_I2C_Read... [11:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:29]Read from MH i2c: E2 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 0E 00 [11:05:29]MH_I2C_Read... [11:05:29]Read from MH i2c: E2 0E 00 8C 16 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 9E [11:05:29]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:05:29]wFMCommunicate OK [11:05:29]SAM_PROTO_GetShiftState done [11:05:29]FM_GetShiftState done [11:05:29]opened in 1739929631 [11:05:29]opened+sec_in_day 1740016031 [11:05:29]quantity*price = 105031 [11:05:29]sum+1 = 105032 [11:05:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 1050.00 Внесено: 1050.00 СДАЧА: 0.00 НСП 1% : 9.29 НДС 12% : 111.54 Наличными: 1050.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 75 19.02.2025 11:05 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187009 ФПД: 98860521885448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T110532&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187009&fm=98860521885448&tin=02508201610067®Number=0000000000091857&sum=105000 [11:05:30]StoreToDocumentArchive [11:05:30]shift 647 fd 187009 [11:05:30]save to /storage/0647/doc_00187009 [11:05:30]save last doc name /storage/0647/doc_00187009 to /storage/kkm_last_doc_name [11:05:30]save OK [11:05:30]Clear old archive folders... [11:05:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:30]tlvbuf is B6EEB790 [11:05:30]SAM_PROTO_ClearQueue [11:05:30]wFMCommunicate request_size=4 [11:05:30]MH_SAM_APDU [11:05:30]CAPDU: 80 09 00 00 [11:05:30]Write to MH i2c: E2 08 00 99 16 80 09 00 00 00 00 00 00 21 [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:30]Read from MH i2c: E2 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 03 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 03 00 99 16 00 90 00 23 [11:05:30]RAPDU: 90 00 [11:05:30]wFMCommunicate OK [11:05:30]SAM_PROTO_ClearQueue done [11:05:30]KKMCreateOFDPacket [11:05:30]OFDProtocolAddRootSTLVToBuf [11:05:30]FM_MakeSignedData [11:05:30]FM_MakeSignedData [11:05:30]SAM_PROTO_SignData [11:05:30]wFMCommunicate request_size=4 [11:05:30]MH_SAM_APDU [11:05:30]CAPDU: 80 0D 01 02 [11:05:30]Write to MH i2c: E2 08 00 9A 16 80 0D 01 02 00 00 00 00 29 [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:30]Read from MH i2c: E2 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 03 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 03 00 9A 16 00 90 00 24 [11:05:30]RAPDU: 90 00 [11:05:30]wFMCommunicate OK [11:05:30]wFMCommunicate request_size=255 [11:05:30]MH_SAM_APDU [11:05:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E8 3F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 47 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FC BA 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 81 DA 02 00 35 04 06 00 59 [11:05:30]Write to MH i2c: E2 02 01 9B 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E8 3F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 47 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FC BA 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 81 DA 02 00 35 04 06 00 59 00 00 AE [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:30]Read from MH i2c: E2 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 03 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 03 00 9B 16 00 90 00 25 [11:05:30]RAPDU: 90 00 [11:05:30]wFMCommunicate OK [11:05:30]wFMCommunicate request_size=10 [11:05:30]MH_SAM_APDU [11:05:30]CAPDU: 80 0D 02 02 05 E9 C2 4A 0F 08 [11:05:30]Write to MH i2c: E2 0D 00 9C 16 80 0D 02 02 05 00 E9 C2 4A 0F 08 00 00 42 [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:30]Read from MH i2c: E2 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 03 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 03 00 9C 16 00 90 00 26 [11:05:30]RAPDU: 90 00 [11:05:30]wFMCommunicate OK [11:05:30]wFMCommunicate request_size=4 [11:05:30]MH_SAM_APDU [11:05:30]CAPDU: 80 0D 03 02 [11:05:30]Write to MH i2c: E2 08 00 9D 16 80 0D 03 02 00 00 00 00 2E [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:30]Read from MH i2c: E2 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 0B 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 0B 00 9D 16 00 A0 98 B1 0D 65 E6 54 78 90 00 3C [11:05:30]RAPDU: A0 98 B1 0D 65 E6 54 78 90 00 [11:05:30]wFMCommunicate OK [11:05:30]SAM_PROTO_SignData done [11:05:30]FM_MakeSignedData done [11:05:30]CreateOFDProtocolMessage [11:05:30]wFMCommunicate request_size=4 [11:05:30]MH_SAM_APDU [11:05:30]CAPDU: 80 11 00 00 [11:05:30]Write to MH i2c: E2 08 00 9E 16 80 11 00 00 00 00 00 00 2E [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:30]Read from MH i2c: E2 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 17 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: E2 17 00 9E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 81 [11:05: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:05:30]wFMCommunicate OK [11:05:30]CreateOFDProtocolMessage done [11:05:30]OFDSenderStorePacket 187009 [11:05:30]StoreOFDPacket docnum=187009 [11:05: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 0F 01 00 00 9B BD 07 01 87 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 E8 3F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 47 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FC BA 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 81 DA 02 00 35 04 06 00 59 E9 C2 4A 0F 08 A0 98 B1 0D 65 E6 54 78 [11:05:30]CheckFolder [11:05:30]dirname=/storage/ofd_packets [11:05:30]CheckFolder done [11:05:30]ProducePacketName [11:05:30]name=ofd_packets/00187009 [11:05:30]NVStorageSaveData ofd_packets/00187009 [11:05:30]File name is /storage/ofd_packets/00187009 [11:05:30]Write 301 bytes [11:05:30]NVStorageSaveData done [11:05:30]OFDSenderStorePacket done [11:05:30]KKMCreateOFDPacket done [11:05:30]NVStorageSaveData kkm_last_timestamp [11:05:30]File name is /storage/kkm_last_timestamp [11:05:30]Write 4 bytes [11:05:30]NVStorageSaveData done [11:05:30]ExternCall_PrintAddStr [11:05:30]wPrintStart [11:05:30]Write to MH i2c: 01 00 00 9F 16 B5 [11:05:30]Write i2c OK [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: 01 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: 01 07 00 [11:05:30]MH_I2C_Read... [11:05:30]Read from MH i2c: 01 07 00 9F 16 00 00 00 00 00 FF 0F CA [11:05:30]RasterBufferAndPrint [11:05:30]line Счет N : (1)412160 [11:05:30]line ИНН: 02508201610067 [11:05:30]line Контрольно-Кассовый Чек [11:05:30]line ПРОДАЖА [11:05:30]line ТРК (МРК, ГНК) : 12 [11:05:30]line Товар: 2710124130 [11:05:30]line Аи-92-К-2 [11:05:30]line 16.360 * 64.20 [11:05:30]line = 1050.31 [11:05:30]line НДС 12% НСП 1% [11:05:30]line > о реализуемом товаре [11:05:30]line ОКРУГЛЕНИЕ: -0.31 [11:05:30]line ИТОГО: 1050.00 [11:05:30]line Внесено: 1050.00 [11:05:30]line СДАЧА: 0.00 [11:05:30]line НСП 1% : 9.29 [11:05:30]line НДС 12% : 111.54 [11:05:30]line Наличными: 1050.00 [11:05:30]line Безнал.: 0.00 [11:05:30]line Место: АЗС № 92 "Партнер Нефть" [11:05:30]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:05:30]line СНО: Общий режим [11:05:30]line Чек 75 19.02.2025 11:05 [11:05:30]line Смена: 647 ФФД: 1.0 [11:05:30]line ЗНМ: 0300000118 [11:05:30]line РНМ: 0000000000091857 [11:05:30]line Версия ККМ: 001 [11:05:30]line ФМ: 0000000000871826 [11:05:30]line ФД: 187009 [11:05:30]line ФПД: 98860521885448 [11:05:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T110532&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187009&fm=98860521885448&tin=02508201610067®Number=0000000000091857&sum=105000 [11:05:31]OFD Sender: Processing packet 187009 [packets to send 49, broken 48] [11:05:31]ProducePacketName [11:05:31]name=ofd_packets/00187009 [11:05:31]OFD Sender: To server: pG, [11:05:31]CommunicateWithHost lk.salyk.kg:30040 [11:05:31]ConnectInit lk.salyk.kg [11:05:31]written 0, free lines is 4095 [11:05:31]Connected sock=10 [11:05:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9B BD 07 01 87 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 E8 3F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 47 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 2B 00 00 00 00 07 04 06 00 28 9A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FC BA 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 81 DA 02 00 35 04 06 00 59 E9 C2 4A 0F 08 A0 98 B1 0D 65 E6 54 78 [11:05:31]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 E5 47 00 65 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 81 DA 02 00 F4 03 04 00 50 61 B5 67 B6 04 01 00 00 15 D0 75 67 9C 01 7C 74 [11:05:31]CommunicateWithHost err = 0 [11:05:31]CheckOFDResponse [11:05:31]1017 (14) - 77093643461234 [11:05:31]1041 (16) - 0000000000871826 [11:05:31]1040 (4) - 187009 [11:05:31]1012 (4) - 19.02.2025 04:42 [11:05:31]1206 (1) - 0 [11:05:31]OFD Sender: Remove packet 187009 [11:05:31]ProducePacketName [11:05:31]name=ofd_packets/00187009 [11:05:31]NVStorageDeleteData [11:05:31]Write to MH i2c: 01 00 00 CA 16 E0 [11:05:31]Write i2c OK [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: 01 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: 01 07 00 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: 01 07 00 CA 16 00 00 00 00 00 FA 0C ED [11:05:31]RasterBufferAndPrint [11:05:31]line [11:05:31]line [11:05:31]line [11:05:31]line [11:05:31]line [11:05:31]written 0, free lines is 3328 [11:05:31]MH_Cut [11:05:31]Write to MH i2c: D1 01 00 D1 16 01 B9 [11:05:31]Write i2c OK [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: D1 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: D1 01 00 [11:05:31]MH_I2C_Read... [11:05:31]Read from MH i2c: D1 01 00 D1 16 00 B8 [11:05:31]Write to MH i2c: 01 00 00 D2 16 E8 [11:05:31]Write i2c OK [11:05:31]MH_I2C_Read... [11:05:32]OFD Sender: No OFD packet to send [11:05:32]*** Cut start [11:05:32]*** Partial cut [11:05:32]*** CUTSNS_PIN = 1 [11:05:32]*** CUTSNS_PIN = 0 [11:05:32]*** Brake cut motor [11:05:33]Read from MH i2c: 01 [11:05:33]MH_I2C_Read... [11:05:33]*** Stop cut motor [11:05:33]*** Cut end [11:05:33]Read from MH i2c: 01 07 00 [11:05:33]MH_I2C_Read... [11:05:33]Read from MH i2c: 01 07 00 D2 16 00 00 00 00 00 FF 0F FD [11:05:33]process_action close_receipt done [11:05:33]requested_data is exist [11:05:33]produce_requested_data [11:05:33]requested_item fm.sn is exist - process it [11:05:33]wFMCommunicate request_size=4 [11:05:33]MH_SAM_APDU [11:05:33]CAPDU: 80 11 00 00 [11:05:33]Write to MH i2c: E2 08 00 D3 16 80 11 00 00 00 00 00 00 63 [11:05:33]Write i2c OK [11:05:33]MH_I2C_Read... [11:05:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:33]Read from MH i2c: E2 [11:05:33]MH_I2C_Read... [11:05:33]Read from MH i2c: E2 17 00 [11:05:33]MH_I2C_Read... [11:05:33]Read from MH i2c: E2 17 00 D3 16 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:05:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:05:33]wFMCommunicate OK [11:05:33]requested_item fd.num is exist - process it [11:05:33]SAM_PROTO_GetFieldsCounters [11:05:33]wFMCommunicate request_size=4 [11:05:33]MH_SAM_APDU [11:05:33]CAPDU: 80 13 00 00 [11:05:33]Write to MH i2c: E2 08 00 D4 16 80 13 00 00 00 00 00 00 66 [11:05:33]Write i2c OK [11:05:33]MH_I2C_Read... [11:05:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:33]Read from MH i2c: E2 [11:05:33]MH_I2C_Read... [11:05:33]Read from MH i2c: E2 62 00 [11:05:33]MH_I2C_Read... [11:05:33]Read from MH i2c: E2 62 00 D4 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 81 DA 02 00 0E 04 04 00 87 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 53 [11:05: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 81 DA 02 00 0E 04 04 00 87 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:05:33]wFMCommunicate OK [11:05:33]SAM_PROTO_GetFieldsCounters done [11:05:33]requested_item shift.num is exist - process it [11:05:33]requested_item shift.opened is exist - process it [11:05:33]req_shift_opened [11:05:33]FM_GetShiftState [11:05:33]SAM_PROTO_GetShiftState [11:05:33]wFMCommunicate request_size=4 [11:05:33]MH_SAM_APDU [11:05:33]CAPDU: 80 13 01 00 [11:05:33]Write to MH i2c: E2 08 00 D5 16 80 13 01 00 00 00 00 00 68 [11:05:33]Write i2c OK [11:05:33]MH_I2C_Read... [11:05:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:33]Read from MH i2c: E2 [11:05:33]MH_I2C_Read... [11:05:33]Read from MH i2c: E2 0E 00 [11:05:33]MH_I2C_Read... [11:05:33]Read from MH i2c: E2 0E 00 D5 16 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E7 [11:05:33]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:05:33]wFMCommunicate OK [11:05:33]SAM_PROTO_GetShiftState done [11:05:33]FM_GetShiftState done [11:05:33]req_shift_opened done [11:05:33]requested_item shift.open_date is exist - process it [11:05:33]req_shift_open_date [11:05:33]req_shift_open_date done [11:05:33]produce_requested_data done [11:05:33]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187009,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [11:05:33]process_action_free close_receipt [11:05:33]json_value_free [11:05:33]json_value_free done [11:05:33]process_json_proto returns [11:05:33]Send response to host [11:05:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187009,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [11:05:33]free response buf [11:05:33]execute_script done [11:05:33]execute_script returns [11:05:33]free content buf [11:05:33]Sock 9.Close socket [11:05:33]Sock 9.Thread stoped [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:37]accept exits with 7 [11:06:37]New connection [11:06:37]New thread 3066879332 created [11:06:37]Thread 3067022692 joined [11:06:37]Waiting for new connection... [11:06:37] Sock 7.Parse request [11:06:37]Sock 7.Check first char [11:06:37]Sock 7.First char is OK [11:06:37]request: POST /json_proto HTTP/1.0 [11:06:37]Method: POST [11:06:37]URL: /json_proto [11:06:37]Method is POST - this is cgi request [11:06:37]url: /json_proto [11:06:37]query_string will be loaded in cgi processing [11:06:37]execute_cgi json_proto POST (null) [11:06:37]execute_cgi path=json_proto method=POST [11:06:37]POST find Content-Length [11:06:37]Host: 172.17.46.131:8080 [11:06:37]Content-Length: 682 [11:06:37]Content-Type: application/json [11:06:37] [11:06:37]POST finish read [11:06:37]Found Content-Length = 682 [11:06:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412159", "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" ] } } [11:06:37]execute_script... [11: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)412159", "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" ] } } [11:06:37]POST & json_proto [11:06:37]process_json_proto [11:06:37]json parsed OK: [11:06:37]protocol is kg_v1.0 [11:06:37]action value=close_receipt [11:06:37]process_action close_receipt [11:06:37]cmd_close_receipt [11:06:37]MH_GetDate [11:06:37]Write to MH i2c: F0 00 00 D6 16 DB [11:06:37]Write i2c OK [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: F0 [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: F0 09 00 [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: F0 09 00 D6 16 00 40 BB B5 67 7E 41 4F 65 6E [11:06:37]GetLastDocTimeStamp 1739963132 [11:06:37]current date 1739963200 [11:06:37]FM_GetShiftState [11:06:37]SAM_PROTO_GetShiftState [11:06:37]wFMCommunicate request_size=4 [11:06:37]MH_SAM_APDU [11:06:37]CAPDU: 80 13 01 00 [11:06:37]Write to MH i2c: E2 08 00 D7 16 80 13 01 00 00 00 00 00 6A [11:06:37]Write i2c OK [11:06:37]MH_I2C_Read... [11:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:37]Read from MH i2c: E2 [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: E2 0E 00 [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: E2 0E 00 D7 16 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E9 [11:06:37]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:06:37]wFMCommunicate OK [11:06:37]SAM_PROTO_GetShiftState done [11:06:37]FM_GetShiftState done [11:06:37]opened in 1739929631 [11:06:37]opened+sec_in_day 1740016031 [11:06:37]quantity*price = 150035 [11:06:37]sum+1 = 150036 [11:06:37]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 СНО: Общий режим Чек 76 19.02.2025 11:06 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187010 ФПД: 70072562754177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T110640&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187010&fm=70072562754177&tin=02508201610067®Number=0000000000091857&sum=150000 [11:06:39]StoreToDocumentArchive [11:06:39]shift 647 fd 187010 [11:06:39]save to /storage/0647/doc_00187010 [11:06:39]save last doc name /storage/0647/doc_00187010 to /storage/kkm_last_doc_name [11:06:39]save OK [11:06:39]Clear old archive folders... [11:06:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:39]tlvbuf is 0061F470 [11:06:39]SAM_PROTO_ClearQueue [11:06:39]wFMCommunicate request_size=4 [11:06:39]MH_SAM_APDU [11:06:39]CAPDU: 80 09 00 00 [11:06:39]Write to MH i2c: E2 08 00 E4 16 80 09 00 00 00 00 00 00 6C [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:39]Read from MH i2c: E2 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 03 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 03 00 E4 16 00 90 00 6E [11:06:39]RAPDU: 90 00 [11:06:39]wFMCommunicate OK [11:06:39]SAM_PROTO_ClearQueue done [11:06:39]KKMCreateOFDPacket [11:06:39]OFDProtocolAddRootSTLVToBuf [11:06:39]FM_MakeSignedData [11:06:39]FM_MakeSignedData [11:06:39]SAM_PROTO_SignData [11:06:39]wFMCommunicate request_size=4 [11:06:39]MH_SAM_APDU [11:06:39]CAPDU: 80 0D 01 02 [11:06:39]Write to MH i2c: E2 08 00 E5 16 80 0D 01 02 00 00 00 00 74 [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:39]Read from MH i2c: E2 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 03 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 03 00 E5 16 00 90 00 6F [11:06:39]RAPDU: 90 00 [11:06:39]wFMCommunicate OK [11:06:39]wFMCommunicate request_size=255 [11:06:39]MH_SAM_APDU [11:06: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 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 4C 00 00 00 F4 03 04 00 40 BB 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 82 DA 02 00 35 04 06 00 3F [11:06:39]Write to MH i2c: E2 02 01 E6 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4C 00 00 00 F4 03 04 00 40 BB 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 82 DA 02 00 35 04 06 00 3F 00 00 60 [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:39]Read from MH i2c: E2 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 03 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 03 00 E6 16 00 90 00 70 [11:06:39]RAPDU: 90 00 [11:06:39]wFMCommunicate OK [11:06:39]wFMCommunicate request_size=10 [11:06:39]MH_SAM_APDU [11:06:39]CAPDU: 80 0D 02 02 05 BB 0A 36 22 81 [11:06:39]Write to MH i2c: E2 0D 00 E7 16 80 0D 02 02 05 00 BB 0A 36 22 81 00 00 1F [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:39]Read from MH i2c: E2 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 03 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 03 00 E7 16 00 90 00 71 [11:06:39]RAPDU: 90 00 [11:06:39]wFMCommunicate OK [11:06:39]wFMCommunicate request_size=4 [11:06:39]MH_SAM_APDU [11:06:39]CAPDU: 80 0D 03 02 [11:06:39]Write to MH i2c: E2 08 00 E8 16 80 0D 03 02 00 00 00 00 79 [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:39]Read from MH i2c: E2 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 0B 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 0B 00 E8 16 00 D3 B3 00 88 D6 85 5C 73 90 00 B2 [11:06:39]RAPDU: D3 B3 00 88 D6 85 5C 73 90 00 [11:06:39]wFMCommunicate OK [11:06:39]SAM_PROTO_SignData done [11:06:39]FM_MakeSignedData done [11:06:39]CreateOFDProtocolMessage [11:06:39]wFMCommunicate request_size=4 [11:06:39]MH_SAM_APDU [11:06:39]CAPDU: 80 11 00 00 [11:06:39]Write to MH i2c: E2 08 00 E9 16 80 11 00 00 00 00 00 00 79 [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:39]Read from MH i2c: E2 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 17 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 17 00 E9 16 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: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 [11:06:39]wFMCommunicate OK [11:06:39]CreateOFDProtocolMessage done [11:06:39]OFDSenderStorePacket 187010 [11:06:39]StoreOFDPacket docnum=187010 [11: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 C1 3F 07 01 21 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4C 00 00 00 F4 03 04 00 40 BB 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 82 DA 02 00 35 04 06 00 3F BB 0A 36 22 81 D3 B3 00 88 D6 85 5C 73 [11:06:39]CheckFolder [11:06:39]dirname=/storage/ofd_packets [11:06:39]CheckFolder done [11:06:39]ProducePacketName [11:06:39]name=ofd_packets/00187010 [11:06:39]NVStorageSaveData ofd_packets/00187010 [11:06:39]File name is /storage/ofd_packets/00187010 [11:06:39]Write 301 bytes [11:06:39]NVStorageSaveData done [11:06:39]OFDSenderStorePacket done [11:06:39]KKMCreateOFDPacket done [11:06:39]NVStorageSaveData kkm_last_timestamp [11:06:39]File name is /storage/kkm_last_timestamp [11:06:39]Write 4 bytes [11:06:39]NVStorageSaveData done [11:06:39]ExternCall_PrintAddStr [11:06:39]wPrintStart [11:06:39]Write to MH i2c: 01 00 00 EA 16 00 [11:06:39]OFD Sender: Processing packet 187010 [packets to send 49, broken 48] [11:06:39]ProducePacketName [11:06:39]name=ofd_packets/00187010 [11:06:39]OFD Sender: To server: pG, [11:06:39]CommunicateWithHost lk.salyk.kg:30040 [11:06:39]ConnectInit lk.salyk.kg [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: 01 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: 01 07 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: 01 07 00 EA 16 00 00 00 00 00 FF 0F 15 [11:06:39]RasterBufferAndPrint [11:06:39]line Счет N : (1)412159 [11:06:39]line ИНН: 02508201610067 [11:06:39]line Контрольно-Кассовый Чек [11:06:39]line ПРОДАЖА [11:06:39]line ТРК (МРК, ГНК) : 42 [11:06:39]line Товар: 2710124130 [11:06:39]line Аи-92-К-2 [11:06:39]line 23.370 * 64.20 [11:06:39]line = 1500.35 [11:06:39]line НДС 12% НСП 1% [11:06:39]line > о реализуемом товаре [11:06:39]line ОКРУГЛЕНИЕ: -0.35 [11:06:39]line ИТОГО: 1500.00 [11:06:39]line Внесено: 1500.00 [11:06:39]line СДАЧА: 0.00 [11:06:39]line НСП 1% : 13.28 [11:06:39]line НДС 12% : 159.33 [11:06:39]line Наличными: 1500.00 [11:06:39]line Безнал.: 0.00 [11:06:39]line Место: АЗС № 92 "Партнер Нефть" [11:06:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:06:39]line СНО: Общий режим [11:06:39]line Чек 76 19.02.2025 11:06 [11:06:39]line Смена: 647 ФФД: 1.0 [11:06:39]line ЗНМ: 0300000118 [11:06:39]line РНМ: 0000000000091857 [11:06:39]line Версия ККМ: 001 [11:06:39]line ФМ: 0000000000871826 [11:06:39]line ФД: 187010 [11:06:39]line ФПД: 70072562754177 [11:06:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T110640&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187010&fm=70072562754177&tin=02508201610067®Number=0000000000091857&sum=150000 [11:06:39]Connected sock=10 [11: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 C1 3F 07 01 21 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4C 00 00 00 F4 03 04 00 40 BB 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 82 DA 02 00 35 04 06 00 3F BB 0A 36 22 81 D3 B3 00 88 D6 85 5C 73 [11:06:39]written 0, free lines is 4095 [11:06: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 9D B8 47 00 E4 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 82 DA 02 00 F4 03 04 00 94 61 B5 67 B6 04 01 00 00 12 DD A0 0E CA 97 09 1B [11:06:40]CommunicateWithHost err = 0 [11:06:40]CheckOFDResponse [11:06:40]1017 (14) - 77093643461234 [11:06:40]1041 (16) - 0000000000871826 [11:06:40]1040 (4) - 187010 [11:06:40]1012 (4) - 19.02.2025 04:44 [11:06:40]1206 (1) - 0 [11:06:40]OFD Sender: Remove packet 187010 [11:06:40]ProducePacketName [11:06:40]name=ofd_packets/00187010 [11:06:40]NVStorageDeleteData [11:06:40]Write to MH i2c: 01 00 00 15 17 2C [11:06:40]Write i2c OK [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: 01 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: 01 07 00 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: 01 07 00 15 17 00 00 00 00 00 EC 0C 2B [11:06:40]RasterBufferAndPrint [11:06:40]line [11:06:40]line [11:06:40]line [11:06:40]line [11:06:40]line [11:06:40]written 0, free lines is 3314 [11:06:40]MH_Cut [11:06:40]Write to MH i2c: D1 01 00 1C 17 01 05 [11:06:40]Write i2c OK [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: D1 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: D1 01 00 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: D1 01 00 1C 17 00 04 [11:06:40]Write to MH i2c: 01 00 00 1D 17 34 [11:06:40]Write i2c OK [11:06:40]MH_I2C_Read... [11:06:40]OFD Sender: No OFD packet to send [11:06:41]*** Cut start [11:06:41]*** Partial cut [11:06:41]*** CUTSNS_PIN = 1 [11:06:41]*** CUTSNS_PIN = 0 [11:06:41]*** Brake cut motor [11:06:41]Read from MH i2c: 01 [11:06:41]MH_I2C_Read... [11:06:41]*** Stop cut motor [11:06:41]*** Cut end [11:06:41]Read from MH i2c: 01 07 00 [11:06:41]MH_I2C_Read... [11:06:41]Read from MH i2c: 01 07 00 1D 17 00 00 00 00 00 FF 0F 49 [11:06:41]process_action close_receipt done [11:06:41]requested_data is exist [11:06:41]produce_requested_data [11:06:41]requested_item fm.sn is exist - process it [11:06:41]wFMCommunicate request_size=4 [11:06:41]MH_SAM_APDU [11:06:41]CAPDU: 80 11 00 00 [11:06:41]Write to MH i2c: E2 08 00 1E 17 80 11 00 00 00 00 00 00 AF [11:06:41]Write i2c OK [11:06:41]MH_I2C_Read... [11:06:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:41]Read from MH i2c: E2 [11:06:41]MH_I2C_Read... [11:06:41]Read from MH i2c: E2 17 00 [11:06:41]MH_I2C_Read... [11:06:41]Read from MH i2c: E2 17 00 1E 17 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: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 [11:06:41]wFMCommunicate OK [11:06:41]requested_item fd.num is exist - process it [11:06:41]SAM_PROTO_GetFieldsCounters [11:06:41]wFMCommunicate request_size=4 [11:06:41]MH_SAM_APDU [11:06:41]CAPDU: 80 13 00 00 [11:06:41]Write to MH i2c: E2 08 00 1F 17 80 13 00 00 00 00 00 00 B2 [11:06:41]Write i2c OK [11:06:41]MH_I2C_Read... [11:06:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:41]Read from MH i2c: E2 [11:06:41]MH_I2C_Read... [11:06:41]Read from MH i2c: E2 62 00 [11:06:41]MH_I2C_Read... [11:06:41]Read from MH i2c: E2 62 00 1F 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 82 DA 02 00 0E 04 04 00 87 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 A3 [11: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 82 DA 02 00 0E 04 04 00 87 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:06:41]wFMCommunicate OK [11:06:41]SAM_PROTO_GetFieldsCounters done [11:06:41]requested_item shift.num is exist - process it [11:06:41]requested_item shift.opened is exist - process it [11:06:41]req_shift_opened [11:06:41]FM_GetShiftState [11:06:41]SAM_PROTO_GetShiftState [11:06:41]wFMCommunicate request_size=4 [11:06:41]MH_SAM_APDU [11:06:41]CAPDU: 80 13 01 00 [11:06:41]Write to MH i2c: E2 08 00 20 17 80 13 01 00 00 00 00 00 B4 [11:06:41]Write i2c OK [11:06:41]MH_I2C_Read... [11:06:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:42]Read from MH i2c: E2 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 0E 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 0E 00 20 17 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 33 [11:06:42]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:06:42]wFMCommunicate OK [11:06:42]SAM_PROTO_GetShiftState done [11:06:42]FM_GetShiftState done [11:06:42]req_shift_opened done [11:06:42]requested_item shift.open_date is exist - process it [11:06:42]req_shift_open_date [11:06:42]req_shift_open_date done [11:06:42]produce_requested_data done [11:06:42]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187010,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [11:06:42]process_action_free close_receipt [11:06:42]json_value_free [11:06:42]json_value_free done [11:06:42]process_json_proto returns [11:06:42]Send response to host [11:06:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187010,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [11:06:42]free response buf [11:06:42]execute_script done [11:06:42]execute_script returns [11:06:42]free content buf [11:06:42]Sock 7.Close socket [11:06:42]Sock 7.Thread stoped [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:30]OFD Sender: No OFD packet to send [11:08:35]OFD Sender: No OFD packet to send [11:08:40]OFD Sender: No OFD packet to send [11:08:45]OFD Sender: No OFD packet to send [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:24]accept exits with 9 [11:11:24]New connection [11:11:24]New thread 3067022692 created [11:11:24]Thread 3066879332 joined [11:11:24]Waiting for new connection... [11:11:24] Sock 9.Parse request [11:11:24]Sock 9.Check first char [11:11:24]Sock 9.First char is OK [11:11:24]request: POST /json_proto HTTP/1.0 [11:11:24]Method: POST [11:11:24]URL: /json_proto [11:11:24]Method is POST - this is cgi request [11:11:24]url: /json_proto [11:11:24]query_string will be loaded in cgi processing [11:11:24]execute_cgi json_proto POST (null) [11:11:24]execute_cgi path=json_proto method=POST [11:11:24]POST find Content-Length [11:11:24]Host: 172.17.46.131:8080 [11:11:24]Content-Length: 799 [11:11:24]Content-Type: application/json [11:11:24] [11:11:24]POST finish read [11:11:24]Found Content-Length = 799 [11:11:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412161", "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" : 15.160, "sum" : 1100.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" : 1100.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:24]execute_script... [11:11: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)412161", "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" : 15.160, "sum" : 1100.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" : 1100.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:24]POST & json_proto [11:11:24]process_json_proto [11:11:24]json parsed OK: [11:11:24]protocol is kg_v1.0 [11:11:24]action value=close_receipt [11:11:24]process_action close_receipt [11:11:24]cmd_close_receipt [11:11:24]MH_GetDate [11:11:24]Write to MH i2c: F0 00 00 21 17 27 [11:11:24]Write i2c OK [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: F0 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: F0 09 00 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: F0 09 00 21 17 00 5F BC B5 67 7E 41 4F 65 DA [11:11:24]GetLastDocTimeStamp 1739963200 [11:11:24]current date 1739963487 [11:11:24]FM_GetShiftState [11:11:24]SAM_PROTO_GetShiftState [11:11:24]wFMCommunicate request_size=4 [11:11:24]MH_SAM_APDU [11:11:24]CAPDU: 80 13 01 00 [11:11:24]Write to MH i2c: E2 08 00 22 17 80 13 01 00 00 00 00 00 B6 [11:11:24]Write i2c OK [11:11:24]MH_I2C_Read... [11:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:24]Read from MH i2c: E2 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 0E 00 [11:11:24]MH_I2C_Read... [11:11:24]Read from MH i2c: E2 0E 00 22 17 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 35 [11:11:24]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:11:24]wFMCommunicate OK [11:11:24]SAM_PROTO_GetShiftState done [11:11:24]FM_GetShiftState done [11:11:24]opened in 1739929631 [11:11:24]opened+sec_in_day 1740016031 [11:11:24]quantity*price = 110061 [11:11:24]sum+1 = 110063 [11:11:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1100.62 НСП 1% : 9.74 НДС 12% : 116.88 Наличными: 0.00 Безнал.: 1100.62 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 77 19.02.2025 11:11 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187011 ФПД: 176525975037841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T111127&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187011&fm=176525975037841&tin=02508201610067®Number=0000000000091857&sum=110062 [11:11:25]StoreToDocumentArchive [11:11:25]shift 647 fd 187011 [11:11:25]save to /storage/0647/doc_00187011 [11:11:25]save last doc name /storage/0647/doc_00187011 to /storage/kkm_last_doc_name [11:11:25]save OK [11:11:25]Clear old archive folders... [11:11:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:11:25]tlvbuf is 00611240 [11:11:25]SAM_PROTO_ClearQueue [11:11:25]wFMCommunicate request_size=4 [11:11:25]MH_SAM_APDU [11:11:25]CAPDU: 80 09 00 00 [11:11:25]Write to MH i2c: E2 08 00 2F 17 80 09 00 00 00 00 00 00 B8 [11:11:25]Write i2c OK [11:11:25]MH_I2C_Read... [11:11:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:25]Read from MH i2c: E2 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 03 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 03 00 2F 17 00 90 00 BA [11:11:25]RAPDU: 90 00 [11:11:25]wFMCommunicate OK [11:11:25]SAM_PROTO_ClearQueue done [11:11:25]KKMCreateOFDPacket [11:11:25]OFDProtocolAddRootSTLVToBuf [11:11:25]FM_MakeSignedData [11:11:25]FM_MakeSignedData [11:11:25]SAM_PROTO_SignData [11:11:25]wFMCommunicate request_size=4 [11:11:25]MH_SAM_APDU [11:11:25]CAPDU: 80 0D 01 02 [11:11:25]Write to MH i2c: E2 08 00 30 17 80 0D 01 02 00 00 00 00 C0 [11:11:25]Write i2c OK [11:11:25]MH_I2C_Read... [11:11:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:25]Read from MH i2c: E2 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 03 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 03 00 30 17 00 90 00 BB [11:11:25]RAPDU: 90 00 [11:11:25]wFMCommunicate OK [11:11:25]wFMCommunicate request_size=255 [11:11:25]MH_SAM_APDU [11:11: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 38 3B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EE AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EE AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 5F BC 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 83 DA 02 00 35 04 06 00 A0 8C A8 09 [11:11:25]Write to MH i2c: E2 02 01 31 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 38 3B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EE AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EE AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 5F BC 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 83 DA 02 00 35 04 06 00 A0 8C A8 09 00 00 D0 [11:11:25]Write i2c OK [11:11:25]MH_I2C_Read... [11:11:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:25]Read from MH i2c: E2 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 03 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 03 00 31 17 00 90 00 BC [11:11:25]RAPDU: 90 00 [11:11:25]wFMCommunicate OK [11:11:25]wFMCommunicate request_size=7 [11:11:25]MH_SAM_APDU [11:11:25]CAPDU: 80 0D 02 02 02 27 91 [11:11:25]Write to MH i2c: E2 0A 00 32 17 80 0D 02 02 02 00 27 91 00 00 7F [11:11:25]Write i2c OK [11:11:25]MH_I2C_Read... [11:11:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:25]Read from MH i2c: E2 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 03 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 03 00 32 17 00 90 00 BD [11:11:25]RAPDU: 90 00 [11:11:25]wFMCommunicate OK [11:11:25]wFMCommunicate request_size=4 [11:11:25]MH_SAM_APDU [11:11:25]CAPDU: 80 0D 03 02 [11:11:25]Write to MH i2c: E2 08 00 33 17 80 0D 03 02 00 00 00 00 C5 [11:11:25]Write i2c OK [11:11:25]MH_I2C_Read... [11:11:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:25]Read from MH i2c: E2 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 0B 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 0B 00 33 17 00 33 14 47 D0 CA 89 D5 DC 90 00 28 [11:11:25]RAPDU: 33 14 47 D0 CA 89 D5 DC 90 00 [11:11:25]wFMCommunicate OK [11:11:25]SAM_PROTO_SignData done [11:11:25]FM_MakeSignedData done [11:11:25]CreateOFDProtocolMessage [11:11:25]wFMCommunicate request_size=4 [11:11:25]MH_SAM_APDU [11:11:25]CAPDU: 80 11 00 00 [11:11:25]Write to MH i2c: E2 08 00 34 17 80 11 00 00 00 00 00 00 C5 [11:11:25]Write i2c OK [11:11:25]MH_I2C_Read... [11:11:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:25]Read from MH i2c: E2 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 17 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: E2 17 00 34 17 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:11:25]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:25]wFMCommunicate OK [11:11:25]CreateOFDProtocolMessage done [11:11:25]OFDSenderStorePacket 187011 [11:11:25]StoreOFDPacket docnum=187011 [11:11: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 4A F5 04 01 E3 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 38 3B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EE AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EE AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 5F BC 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 83 DA 02 00 35 04 06 00 A0 8C A8 09 27 91 33 14 47 D0 CA 89 D5 DC [11:11:25]CheckFolder [11:11:25]dirname=/storage/ofd_packets [11:11:25]CheckFolder done [11:11:25]ProducePacketName [11:11:25]name=ofd_packets/00187011 [11:11:25]NVStorageSaveData ofd_packets/00187011 [11:11:25]File name is /storage/ofd_packets/00187011 [11:11:25]Write 298 bytes [11:11:25]NVStorageSaveData done [11:11:25]OFDSenderStorePacket done [11:11:25]KKMCreateOFDPacket done [11:11:25]NVStorageSaveData kkm_last_timestamp [11:11:25]File name is /storage/kkm_last_timestamp [11:11:25]Write 4 bytes [11:11:25]NVStorageSaveData done [11:11:25]ExternCall_PrintAddStr [11:11:25]wPrintStart [11:11:25]Write to MH i2c: 01 00 00 35 17 4C [11:11:25]Write i2c OK [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: 01 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: 01 07 00 [11:11:25]MH_I2C_Read... [11:11:25]Read from MH i2c: 01 07 00 35 17 00 00 00 00 00 FF 0F 61 [11:11:25]RasterBufferAndPrint [11:11:25]line Счет N : (1)412161 [11:11:25]line ИНН: 02508201610067 [11:11:25]line Контрольно-Кассовый Чек [11:11:25]line ПРОДАЖА [11:11:25]line ТРК (МРК, ГНК) : 6 [11:11:25]line Товар: 2710194210 [11:11:25]line ДТ-К-5 [11:11:25]line 15.160 * 72.60 [11:11:25]line = 1100.62 [11:11:25]line НДС 12% НСП 1% [11:11:25]line > о реализуемом товаре [11:11:25]line ИТОГО: 1100.62 [11:11:25]line НСП 1% : 9.74 [11:11:25]line НДС 12% : 116.88 [11:11:25]line Наличными: 0.00 [11:11:25]line Безнал.: 1100.62 [11:11:25]line Место: АЗС № 92 "Партнер Нефть" [11:11:25]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:11:25]line СНО: Общий режим [11:11:25]line Чек 77 19.02.2025 11:11 [11:11:25]line Смена: 647 ФФД: 1.0 [11:11:25]line ЗНМ: 0300000118 [11:11:25]line РНМ: 0000000000091857 [11:11:25]line Версия ККМ: 001 [11:11:25]line Платежная система: O! деньги [11:11:25]line ФМ: 0000000000871826 [11:11:25]line ФД: 187011 [11:11:25]line ФПД: 176525975037841 [11:11:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T111127&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187011&fm=176525975037841&tin=02508201610067®Number=0000000000091857&sum=110062 [11:11:26]OFD Sender: Processing packet 187011 [packets to send 49, broken 48] [11:11:26]ProducePacketName [11:11:26]name=ofd_packets/00187011 [11:11:26]OFD Sender: To server: pG, [11:11:26]CommunicateWithHost lk.salyk.kg:30040 [11:11:26]ConnectInit lk.salyk.kg [11:11:26]written 0, free lines is 4095 [11:11:26]Connected sock=10 [11:11: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 4A F5 04 01 E3 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 38 3B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EE AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 2D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EE AD 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 5F BC 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 83 DA 02 00 35 04 06 00 A0 8C A8 09 27 91 33 14 47 D0 CA 89 D5 DC [11:11: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 CE 05 47 00 A7 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 83 DA 02 00 F4 03 04 00 B3 62 B5 67 B6 04 01 00 00 EE B6 D8 DB CF CD 4F 08 [11:11:26]CommunicateWithHost err = 0 [11:11:26]CheckOFDResponse [11:11:26]1017 (14) - 77093643461234 [11:11:26]1041 (16) - 0000000000871826 [11:11:26]1040 (4) - 187011 [11:11:26]1012 (4) - 19.02.2025 04:48 [11:11:26]1206 (1) - 0 [11:11:26]OFD Sender: Remove packet 187011 [11:11:26]ProducePacketName [11:11:26]name=ofd_packets/00187011 [11:11:26]NVStorageDeleteData [11:11:26]Write to MH i2c: 01 00 00 5F 17 76 [11:11:26]Write i2c OK [11:11:26]MH_I2C_Read... [11:11:26]Read from MH i2c: 01 [11:11:26]MH_I2C_Read... [11:11:26]Read from MH i2c: 01 07 00 [11:11:26]MH_I2C_Read... [11:11:26]Read from MH i2c: 01 07 00 5F 17 00 00 00 00 00 0E 0D 98 [11:11:26]RasterBufferAndPrint [11:11:26]line [11:11:26]line [11:11:26]line [11:11:26]line [11:11:26]line [11:11:26]written 0, free lines is 3348 [11:11:26]MH_Cut [11:11:26]Write to MH i2c: D1 01 00 66 17 01 4F [11:11:26]Write i2c OK [11:11:26]MH_I2C_Read... [11:11:26]Read from MH i2c: D1 [11:11:26]MH_I2C_Read... [11:11:26]Read from MH i2c: D1 01 00 [11:11:26]MH_I2C_Read... [11:11:26]Read from MH i2c: D1 01 00 66 17 00 4E [11:11:26]Write to MH i2c: 01 00 00 67 17 7E [11:11:26]Write i2c OK [11:11:26]MH_I2C_Read... [11:11:27]OFD Sender: No OFD packet to send [11:11:27]*** Cut start [11:11:27]*** Partial cut [11:11:27]*** CUTSNS_PIN = 1 [11:11:27]*** CUTSNS_PIN = 0 [11:11:27]*** Brake cut motor [11:11:27]Read from MH i2c: 01 [11:11:27]MH_I2C_Read... [11:11:27]*** Stop cut motor [11:11:27]*** Cut end [11:11:27]Read from MH i2c: 01 07 00 [11:11:27]MH_I2C_Read... [11:11:27]Read from MH i2c: 01 07 00 67 17 00 00 00 00 00 FF 0F 93 [11:11:27]process_action close_receipt done [11:11:27]requested_data is exist [11:11:27]produce_requested_data [11:11:27]requested_item fm.sn is exist - process it [11:11:27]wFMCommunicate request_size=4 [11:11:27]MH_SAM_APDU [11:11:27]CAPDU: 80 11 00 00 [11:11:27]Write to MH i2c: E2 08 00 68 17 80 11 00 00 00 00 00 00 F9 [11:11:27]Write i2c OK [11:11:27]MH_I2C_Read... [11:11:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:27]Read from MH i2c: E2 [11:11:27]MH_I2C_Read... [11:11:27]Read from MH i2c: E2 17 00 [11:11:27]MH_I2C_Read... [11:11:27]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 [11:11:27]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:27]wFMCommunicate OK [11:11:27]requested_item fd.num is exist - process it [11:11:27]SAM_PROTO_GetFieldsCounters [11:11:27]wFMCommunicate request_size=4 [11:11:27]MH_SAM_APDU [11:11:27]CAPDU: 80 13 00 00 [11:11:27]Write to MH i2c: E2 08 00 69 17 80 13 00 00 00 00 00 00 FC [11:11:27]Write i2c OK [11:11:27]MH_I2C_Read... [11:11:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:28]Read from MH i2c: E2 [11:11:28]MH_I2C_Read... [11:11:28]Read from MH i2c: E2 62 00 [11:11:28]MH_I2C_Read... [11:11:28]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 83 DA 02 00 0E 04 04 00 87 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 F1 [11:11: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 83 DA 02 00 0E 04 04 00 87 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:11:28]wFMCommunicate OK [11:11:28]SAM_PROTO_GetFieldsCounters done [11:11:28]requested_item shift.num is exist - process it [11:11:28]requested_item shift.opened is exist - process it [11:11:28]req_shift_opened [11:11:28]FM_GetShiftState [11:11:28]SAM_PROTO_GetShiftState [11:11:28]wFMCommunicate request_size=4 [11:11:28]MH_SAM_APDU [11:11:28]CAPDU: 80 13 01 00 [11:11:28]Write to MH i2c: E2 08 00 6A 17 80 13 01 00 00 00 00 00 FE [11:11:28]Write i2c OK [11:11:28]MH_I2C_Read... [11:11:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:28]Read from MH i2c: E2 [11:11:28]MH_I2C_Read... [11:11:28]Read from MH i2c: E2 0E 00 [11:11:28]MH_I2C_Read... [11:11:28]Read from MH i2c: E2 0E 00 6A 17 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 7D [11:11:28]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:11:28]wFMCommunicate OK [11:11:28]SAM_PROTO_GetShiftState done [11:11:28]FM_GetShiftState done [11:11:28]req_shift_opened done [11:11:28]requested_item shift.open_date is exist - process it [11:11:28]req_shift_open_date [11:11:28]req_shift_open_date done [11:11:28]produce_requested_data done [11:11:28]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187011,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [11:11:28]process_action_free close_receipt [11:11:28]json_value_free [11:11:28]json_value_free done [11:11:28]process_json_proto returns [11:11:28]Send response to host [11:11:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187011,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [11:11:28]free response buf [11:11:28]execute_script done [11:11:28]execute_script returns [11:11:28]free content buf [11:11:28]Sock 9.Close socket [11:11:28]Sock 9.Thread stoped [11:11:32]OFD Sender: No OFD packet to send [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]OFD Sender: No OFD packet to send [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:12]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:24]accept exits with 7 [11:13:24]New connection [11:13:24]New thread 3066879332 created [11:13:24]Thread 3067022692 joined [11:13:24]Waiting for new connection... [11:13:24] Sock 7.Parse request [11:13:24]Sock 7.Check first char [11:13:24]Sock 7.First char is OK [11:13:24]request: POST /json_proto HTTP/1.0 [11:13:24]Method: POST [11:13:24]URL: /json_proto [11:13:24]Method is POST - this is cgi request [11:13:24]url: /json_proto [11:13:24]query_string will be loaded in cgi processing [11:13:24]execute_cgi json_proto POST (null) [11:13:24]execute_cgi path=json_proto method=POST [11:13:24]POST find Content-Length [11:13:24]Host: 172.17.46.131:8080 [11:13:24]Content-Length: 788 [11:13:24]Content-Type: application/json [11:13:24] [11:13:24]POST finish read [11:13:24]Found Content-Length = 788 [11:13:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412162", "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" : 19.630, "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\u000A40780", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:24]execute_script... [11:13: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)412162", "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" : 19.630, "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\u000A40780", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:24]POST & json_proto [11:13:24]process_json_proto [11:13:24]json parsed OK: [11:13:24]protocol is kg_v1.0 [11:13:24]action value=close_receipt [11:13:24]process_action close_receipt [11:13:24]cmd_close_receipt [11:13:24]MH_GetDate [11:13:24]Write to MH i2c: F0 00 00 6B 17 71 [11:13:24]Write i2c OK [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: F0 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: F0 09 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: F0 09 00 6B 17 00 D7 BC B5 67 7E 41 4F 65 9C [11:13:24]GetLastDocTimeStamp 1739963487 [11:13:24]current date 1739963607 [11:13:24]FM_GetShiftState [11:13:24]SAM_PROTO_GetShiftState [11:13:24]wFMCommunicate request_size=4 [11:13:24]MH_SAM_APDU [11:13:24]CAPDU: 80 13 01 00 [11:13:24]Write to MH i2c: E2 08 00 6C 17 80 13 01 00 00 00 00 00 00 [11:13:24]Write i2c OK [11:13:24]MH_I2C_Read... [11:13:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:24]Read from MH i2c: E2 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 0E 00 [11:13:24]MH_I2C_Read... [11:13:24]Read from MH i2c: E2 0E 00 6C 17 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 7F [11:13:24]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:13:24]wFMCommunicate OK [11:13:24]SAM_PROTO_GetShiftState done [11:13:24]FM_GetShiftState done [11:13:24]opened in 1739929631 [11:13:24]opened+sec_in_day 1740016031 [11:13:24]quantity*price = 0 [11:13:24]sum+1 = 1 [11:13: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 СНО: Общий режим Чек 78 19.02.2025 11:13 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 40780 ФМ: 0000000000871826 ФД: 187012 ФПД: 153834915992430 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T111327&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187012&fm=153834915992430&tin=02508201610067®Number=0000000000091857&sum=0 [11:13:25]StoreToDocumentArchive [11:13:25]shift 647 fd 187012 [11:13:25]save to /storage/0647/doc_00187012 [11:13:25]save last doc name /storage/0647/doc_00187012 to /storage/kkm_last_doc_name [11:13:25]save OK [11:13:25]Clear old archive folders... [11:13:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:13:25]tlvbuf is 005BA080 [11:13:25]SAM_PROTO_ClearQueue [11:13:25]wFMCommunicate request_size=4 [11:13:25]MH_SAM_APDU [11:13:25]CAPDU: 80 09 00 00 [11:13:25]Write to MH i2c: E2 08 00 79 17 80 09 00 00 00 00 00 00 02 [11:13:25]Write i2c OK [11:13:25]MH_I2C_Read... [11:13:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:25]Read from MH i2c: E2 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: E2 03 00 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: E2 03 00 79 17 00 90 00 04 [11:13:25]RAPDU: 90 00 [11:13:25]wFMCommunicate OK [11:13:25]SAM_PROTO_ClearQueue done [11:13:25]KKMCreateOFDPacket [11:13:25]OFDProtocolAddRootSTLVToBuf [11:13:25]FM_MakeSignedData [11:13:25]FM_MakeSignedData [11:13:25]SAM_PROTO_SignData [11:13:25]wFMCommunicate request_size=4 [11:13:25]MH_SAM_APDU [11:13:25]CAPDU: 80 0D 01 02 [11:13:25]Write to MH i2c: E2 08 00 7A 17 80 0D 01 02 00 00 00 00 0A [11:13:25]Write i2c OK [11:13:25]MH_I2C_Read... [11:13:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:25]Read from MH i2c: E2 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: E2 03 00 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: E2 03 00 7A 17 00 90 00 05 [11:13:25]RAPDU: 90 00 [11:13:25]wFMCommunicate OK [11:13:25]wFMCommunicate request_size=255 [11:13:25]MH_SAM_APDU [11:13: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 AE 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 D7 BC 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 84 DA 02 00 35 04 06 00 8B E9 7B 85 [11:13:25]Write to MH i2c: E2 02 01 7B 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 AE 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 D7 BC 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 84 DA 02 00 35 04 06 00 8B E9 7B 85 00 00 C0 [11:13:25]Write i2c OK [11:13:25]MH_I2C_Read... [11:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:26]Read from MH i2c: E2 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 03 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 03 00 7B 17 00 90 00 06 [11:13:26]RAPDU: 90 00 [11:13:26]wFMCommunicate OK [11:13:26]wFMCommunicate request_size=7 [11:13:26]MH_SAM_APDU [11:13:26]CAPDU: 80 0D 02 02 02 93 6E [11:13:26]Write to MH i2c: E2 0A 00 7C 17 80 0D 02 02 02 00 93 6E 00 00 12 [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:26]Read from MH i2c: E2 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 03 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 03 00 7C 17 00 90 00 07 [11:13:26]RAPDU: 90 00 [11:13:26]wFMCommunicate OK [11:13:26]wFMCommunicate request_size=4 [11:13:26]MH_SAM_APDU [11:13:26]CAPDU: 80 0D 03 02 [11:13:26]Write to MH i2c: E2 08 00 7D 17 80 0D 03 02 00 00 00 00 0F [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:26]Read from MH i2c: E2 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 0B 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 0B 00 7D 17 00 E6 17 E9 8C 5B 64 C6 D4 90 00 DB [11:13:26]RAPDU: E6 17 E9 8C 5B 64 C6 D4 90 00 [11:13:26]wFMCommunicate OK [11:13:26]SAM_PROTO_SignData done [11:13:26]FM_MakeSignedData done [11:13:26]CreateOFDProtocolMessage [11:13:26]wFMCommunicate request_size=4 [11:13:26]MH_SAM_APDU [11:13:26]CAPDU: 80 11 00 00 [11:13:26]Write to MH i2c: E2 08 00 7E 17 80 11 00 00 00 00 00 00 0F [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:26]Read from MH i2c: E2 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: E2 17 00 [11:13:26]MH_I2C_Read... [11:13:26]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 [11:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:13:26]wFMCommunicate OK [11:13:26]CreateOFDProtocolMessage done [11:13:26]OFDSenderStorePacket 187012 [11:13:26]StoreOFDPacket docnum=187012 [11:13: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 0C 01 00 00 15 A9 04 01 28 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 D7 BC 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 84 DA 02 00 35 04 06 00 8B E9 7B 85 93 6E E6 17 E9 8C 5B 64 C6 D4 [11:13:26]CheckFolder [11:13:26]dirname=/storage/ofd_packets [11:13:26]CheckFolder done [11:13:26]ProducePacketName [11:13:26]name=ofd_packets/00187012 [11:13:26]NVStorageSaveData ofd_packets/00187012 [11:13:26]File name is /storage/ofd_packets/00187012 [11:13:26]Write 298 bytes [11:13:26]NVStorageSaveData done [11:13:26]OFDSenderStorePacket done [11:13:26]KKMCreateOFDPacket done [11:13:26]NVStorageSaveData kkm_last_timestamp [11:13:26]File name is /storage/kkm_last_timestamp [11:13:26]Write 4 bytes [11:13:26]NVStorageSaveData done [11:13:26]ExternCall_PrintAddStr [11:13:26]wPrintStart [11:13:26]Write to MH i2c: 01 00 00 7F 17 96 [11:13:26]Write i2c OK [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: 01 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: 01 07 00 [11:13:26]MH_I2C_Read... [11:13:26]Read from MH i2c: 01 07 00 7F 17 00 00 00 00 00 FF 0F AB [11:13:26]RasterBufferAndPrint [11:13:26]line Счет N : (1)412162 [11:13:26]line ИНН: 02508201610067 [11:13:26]line Контрольно-Кассовый Чек [11:13:26]line ПРОДАЖА [11:13:26]line ТРК (МРК, ГНК) : 5 [11:13:26]line Товар: 2710194210 [11:13:26]line ДТ-К-5 [11:13:26]line 19.630 * 0.00 [11:13:26]line = 0.00 [11:13:26]line НДС 12% НСП 1% [11:13:26]line > о реализуемом товаре [11:13:26]line ИТОГО: 0.00 [11:13:26]line НСП 1% : 0.00 [11:13:26]line НДС 12% : 0.00 [11:13:26]line Наличными: 0.00 [11:13:26]line Безнал.: 0.00 [11:13:26]line Место: АЗС № 92 "Партнер Нефть" [11:13:26]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:13:26]line СНО: Общий режим [11:13:26]line Чек 78 19.02.2025 11:13 [11:13:26]line Смена: 647 ФФД: 1.0 [11:13:26]line ЗНМ: 0300000118 [11:13:26]line РНМ: 0000000000091857 [11:13:26]line Версия ККМ: 001 [11:13:26]line Талоны: Топливная Карта [11:13:26]line 40780 [11:13:26]line ФМ: 0000000000871826 [11:13:26]line ФД: 187012 [11:13:26]line ФПД: 153834915992430 [11:13:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T111327&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187012&fm=153834915992430&tin=02508201610067®Number=0000000000091857&sum=0 [11:13:26]OFD Sender: Processing packet 187012 [packets to send 49, broken 48] [11:13:26]ProducePacketName [11:13:26]name=ofd_packets/00187012 [11:13:26]OFD Sender: To server: pG, [11:13:26]CommunicateWithHost lk.salyk.kg:30040 [11:13:26]ConnectInit lk.salyk.kg [11:13:26]written 0, free lines is 4095 [11:13:26]Connected sock=11 [11:13: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 15 A9 04 01 28 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AE 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 D7 BC 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 84 DA 02 00 35 04 06 00 8B E9 7B 85 93 6E E6 17 E9 8C 5B 64 C6 D4 [11:13:27]Write to MH i2c: 01 00 00 A9 17 C0 [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: 01 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: 01 07 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: 01 07 00 A9 17 00 00 00 00 00 FA 0C CD [11:13:27]RasterBufferAndPrint [11:13:27]line [11:13:27]line [11:13:27]line [11:13:27]line [11:13:27]line [11:13:27]written 0, free lines is 3328 [11:13:27]MH_Cut [11:13:27]Write to MH i2c: D1 01 00 B0 17 01 99 [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: D1 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: D1 01 00 [11:13:27]MH_I2C_Read... [11:13:27]Read from MH i2c: D1 01 00 B0 17 00 98 [11:13:27]Write to MH i2c: 01 00 00 B1 17 C8 [11:13:27]Write i2c OK [11:13:27]MH_I2C_Read... [11:13: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 4B 19 47 00 7E 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 84 DA 02 00 F4 03 04 00 2B 63 B5 67 B6 04 01 00 00 55 93 C4 AA 06 66 D8 11 [11:13:27]CommunicateWithHost err = 0 [11:13:27]CheckOFDResponse [11:13:27]1017 (14) - 77093643461234 [11:13:27]1041 (16) - 0000000000871826 [11:13:27]1040 (4) - 187012 [11:13:27]1012 (4) - 19.02.2025 04:50 [11:13:27]1206 (1) - 0 [11:13:27]OFD Sender: Remove packet 187012 [11:13:27]ProducePacketName [11:13:27]name=ofd_packets/00187012 [11:13:27]NVStorageDeleteData [11:13:27]OFD Sender: No OFD packet to send [11:13:27]*** Cut start [11:13:27]*** Partial cut [11:13:27]*** CUTSNS_PIN = 1 [11:13:27]*** CUTSNS_PIN = 0 [11:13:28]*** Brake cut motor [11:13:28]Read from MH i2c: 01 [11:13:28]*** Stop cut motor [11:13:28]*** Cut end [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: 01 07 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: 01 07 00 B1 17 00 00 00 00 00 FF 0F DD [11:13:28]process_action close_receipt done [11:13:28]requested_data is exist [11:13:28]produce_requested_data [11:13:28]requested_item fm.sn is exist - process it [11:13:28]wFMCommunicate request_size=4 [11:13:28]MH_SAM_APDU [11:13:28]CAPDU: 80 11 00 00 [11:13:28]Write to MH i2c: E2 08 00 B2 17 80 11 00 00 00 00 00 00 43 [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:28]Read from MH i2c: E2 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 17 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 17 00 B2 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 96 [11:13: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:13:28]wFMCommunicate OK [11:13:28]requested_item fd.num is exist - process it [11:13:28]SAM_PROTO_GetFieldsCounters [11:13:28]wFMCommunicate request_size=4 [11:13:28]MH_SAM_APDU [11:13:28]CAPDU: 80 13 00 00 [11:13:28]Write to MH i2c: E2 08 00 B3 17 80 13 00 00 00 00 00 00 46 [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:28]Read from MH i2c: E2 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 62 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 62 00 B3 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 84 DA 02 00 0E 04 04 00 87 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 3F [11:13: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 84 DA 02 00 0E 04 04 00 87 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:13:28]wFMCommunicate OK [11:13:28]SAM_PROTO_GetFieldsCounters done [11:13:28]requested_item shift.num is exist - process it [11:13:28]requested_item shift.opened is exist - process it [11:13:28]req_shift_opened [11:13:28]FM_GetShiftState [11:13:28]SAM_PROTO_GetShiftState [11:13:28]wFMCommunicate request_size=4 [11:13:28]MH_SAM_APDU [11:13:28]CAPDU: 80 13 01 00 [11:13:28]Write to MH i2c: E2 08 00 B4 17 80 13 01 00 00 00 00 00 48 [11:13:28]Write i2c OK [11:13:28]MH_I2C_Read... [11:13:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:28]Read from MH i2c: E2 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 0E 00 [11:13:28]MH_I2C_Read... [11:13:28]Read from MH i2c: E2 0E 00 B4 17 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C7 [11:13:28]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:13:28]wFMCommunicate OK [11:13:28]SAM_PROTO_GetShiftState done [11:13:28]FM_GetShiftState done [11:13:28]req_shift_opened done [11:13:28]requested_item shift.open_date is exist - process it [11:13:28]req_shift_open_date [11:13:28]req_shift_open_date done [11:13:28]produce_requested_data done [11:13:28]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187012,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [11:13:28]process_action_free close_receipt [11:13:28]json_value_free [11:13:28]json_value_free done [11:13:28]process_json_proto returns [11:13:28]Send response to host [11:13:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187012,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [11:13:28]free response buf [11:13:28]execute_script done [11:13:28]execute_script returns [11:13:28]free content buf [11:13:28]Sock 7.Close socket [11:13:28]Sock 7.Thread stoped [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]accept exits with 9 [11:13:47]New connection [11:13:47]New thread 3067022692 created [11:13:47]Thread 3066879332 joined [11:13:47]Waiting for new connection... [11:13:47] Sock 9.Parse request [11:13:47]Sock 9.Check first char [11:13:47]Sock 9.First char is OK [11:13:47]request: POST /json_proto HTTP/1.0 [11:13:47]Method: POST [11:13:47]URL: /json_proto [11:13:47]Method is POST - this is cgi request [11:13:47]url: /json_proto [11:13:47]query_string will be loaded in cgi processing [11:13:47]execute_cgi json_proto POST (null) [11:13:47]execute_cgi path=json_proto method=POST [11:13:47]POST find Content-Length [11:13:47]Host: 172.17.46.131:8080 [11:13:47]Content-Length: 677 [11:13:47]Content-Type: application/json [11:13:47] [11:13:47]POST finish read [11:13:47]Found Content-Length = 677 [11:13:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412163", "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:13:47]execute_script... [11:13: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)412163", "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:13:47]POST & json_proto [11:13:47]process_json_proto [11:13:47]json parsed OK: [11:13:47]protocol is kg_v1.0 [11:13:47]action value=close_receipt [11:13:47]process_action close_receipt [11:13:47]cmd_close_receipt [11:13:47]MH_GetDate [11:13:47]Write to MH i2c: F0 00 00 B5 17 BB [11:13:47]Write i2c OK [11:13:47]MH_I2C_Read... [11:13:47]Read from MH i2c: F0 [11:13:47]MH_I2C_Read... [11:13:47]Read from MH i2c: F0 09 00 [11:13:47]MH_I2C_Read... [11:13:47]Read from MH i2c: F0 09 00 B5 17 00 EE BC B5 67 7E 41 4F 65 FD [11:13:47]GetLastDocTimeStamp 1739963607 [11:13:47]current date 1739963630 [11:13:47]FM_GetShiftState [11:13:47]SAM_PROTO_GetShiftState [11:13:47]wFMCommunicate request_size=4 [11:13:47]MH_SAM_APDU [11:13:47]CAPDU: 80 13 01 00 [11:13:47]Write to MH i2c: E2 08 00 B6 17 80 13 01 00 00 00 00 00 4A [11:13:47]Write i2c OK [11:13:47]MH_I2C_Read... [11:13:47]OFD Sender: No OFD packet to send [11:13:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:47]Read from MH i2c: E2 [11:13:47]MH_I2C_Read... [11:13:47]Read from MH i2c: E2 0E 00 [11:13:47]MH_I2C_Read... [11:13:47]Read from MH i2c: E2 0E 00 B6 17 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C9 [11:13:47]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:13:47]wFMCommunicate OK [11:13:47]SAM_PROTO_GetShiftState done [11:13:47]FM_GetShiftState done [11:13:47]opened in 1739929631 [11:13:47]opened+sec_in_day 1740016031 [11:13:47]quantity*price = 50011 [11:13:47]sum+1 = 50013 [11:13: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 СНО: Общий режим Чек 79 19.02.2025 11:13 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187013 ФПД: 240043878783855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T111350&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187013&fm=240043878783855&tin=02508201610067®Number=0000000000091857&sum=50000 [11:13:48]StoreToDocumentArchive [11:13:48]shift 647 fd 187013 [11:13:48]save to /storage/0647/doc_00187013 [11:13:48]save last doc name /storage/0647/doc_00187013 to /storage/kkm_last_doc_name [11:13:48]save OK [11:13:48]Clear old archive folders... [11:13:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:48]tlvbuf is 00638DF0 [11:13:48]SAM_PROTO_ClearQueue [11:13:48]wFMCommunicate request_size=4 [11:13:48]MH_SAM_APDU [11:13:48]CAPDU: 80 09 00 00 [11:13:48]Write to MH i2c: E2 08 00 C3 17 80 09 00 00 00 00 00 00 4C [11:13:48]Write i2c OK [11:13:48]MH_I2C_Read... [11:13:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:48]Read from MH i2c: E2 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: E2 03 00 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: E2 03 00 C3 17 00 90 00 4E [11:13:48]RAPDU: 90 00 [11:13:48]wFMCommunicate OK [11:13:48]SAM_PROTO_ClearQueue done [11:13:48]KKMCreateOFDPacket [11:13:48]OFDProtocolAddRootSTLVToBuf [11:13:48]FM_MakeSignedData [11:13:48]FM_MakeSignedData [11:13:48]SAM_PROTO_SignData [11:13:48]wFMCommunicate request_size=4 [11:13:48]MH_SAM_APDU [11:13:48]CAPDU: 80 0D 01 02 [11:13:48]Write to MH i2c: E2 08 00 C4 17 80 0D 01 02 00 00 00 00 54 [11:13:48]Write i2c OK [11:13:48]MH_I2C_Read... [11:13:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:48]Read from MH i2c: E2 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: E2 03 00 [11:13:48]MH_I2C_Read... [11:13:48]Read from MH i2c: E2 03 00 C4 17 00 90 00 4F [11:13:48]RAPDU: 90 00 [11:13:48]wFMCommunicate OK [11:13:48]wFMCommunicate request_size=255 [11:13:48]MH_SAM_APDU [11:13: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 4F 00 00 00 F4 03 04 00 EE BC 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 85 DA 02 00 35 04 06 00 DA [11:13:48]Write to MH i2c: E2 02 01 C5 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4F 00 00 00 F4 03 04 00 EE BC 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 85 DA 02 00 35 04 06 00 DA 00 00 C6 [11:13:48]Write i2c OK [11:13:48]MH_I2C_Read... [11:13:49]Read from MH i2c: E2 [11:13:49]MH_I2C_Read... [11:13:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:49]Read from MH i2c: E2 03 00 [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: E2 03 00 C5 17 00 90 00 50 [11:13:49]RAPDU: 90 00 [11:13:49]wFMCommunicate OK [11:13:49]wFMCommunicate request_size=10 [11:13:49]MH_SAM_APDU [11:13:49]CAPDU: 80 0D 02 02 05 51 92 20 1B 6F [11:13:49]Write to MH i2c: E2 0D 00 C6 17 80 0D 02 02 05 00 51 92 20 1B 6F 00 00 EE [11:13:49]Write i2c OK [11:13:49]MH_I2C_Read... [11:13:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:49]Read from MH i2c: E2 [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: E2 03 00 [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: E2 03 00 C6 17 00 90 00 51 [11:13:49]RAPDU: 90 00 [11:13:49]wFMCommunicate OK [11:13:49]wFMCommunicate request_size=4 [11:13:49]MH_SAM_APDU [11:13:49]CAPDU: 80 0D 03 02 [11:13:49]Write to MH i2c: E2 08 00 C7 17 80 0D 03 02 00 00 00 00 59 [11:13:49]Write i2c OK [11:13:49]MH_I2C_Read... [11:13:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:49]Read from MH i2c: E2 [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: E2 0B 00 [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: E2 0B 00 C7 17 00 B5 B1 20 49 8F 55 21 9B 90 00 C9 [11:13:49]RAPDU: B5 B1 20 49 8F 55 21 9B 90 00 [11:13:49]wFMCommunicate OK [11:13:49]SAM_PROTO_SignData done [11:13:49]FM_MakeSignedData done [11:13:49]CreateOFDProtocolMessage [11:13:49]wFMCommunicate request_size=4 [11:13:49]MH_SAM_APDU [11:13:49]CAPDU: 80 11 00 00 [11:13:49]Write to MH i2c: E2 08 00 C8 17 80 11 00 00 00 00 00 00 59 [11:13:49]Write i2c OK [11:13:49]MH_I2C_Read... [11:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:49]Read from MH i2c: E2 [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: E2 17 00 [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: E2 17 00 C8 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AC [11:13: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:13:49]wFMCommunicate OK [11:13:49]CreateOFDProtocolMessage done [11:13:49]OFDSenderStorePacket 187013 [11:13:49]StoreOFDPacket docnum=187013 [11:13: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 75 07 01 0E 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4F 00 00 00 F4 03 04 00 EE BC 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 85 DA 02 00 35 04 06 00 DA 51 92 20 1B 6F B5 B1 20 49 8F 55 21 9B [11:13:49]CheckFolder [11:13:49]dirname=/storage/ofd_packets [11:13:49]CheckFolder done [11:13:49]ProducePacketName [11:13:49]name=ofd_packets/00187013 [11:13:49]NVStorageSaveData ofd_packets/00187013 [11:13:49]File name is /storage/ofd_packets/00187013 [11:13:49]Write 301 bytes [11:13:49]NVStorageSaveData done [11:13:49]OFDSenderStorePacket done [11:13:49]KKMCreateOFDPacket done [11:13:49]NVStorageSaveData kkm_last_timestamp [11:13:49]File name is /storage/kkm_last_timestamp [11:13:49]Write 4 bytes [11:13:49]NVStorageSaveData done [11:13:49]ExternCall_PrintAddStr [11:13:49]wPrintStart [11:13:49]Write to MH i2c: 01 00 00 C9 17 E0 [11:13:49]Write i2c OK [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: 01 [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: 01 07 00 [11:13:49]MH_I2C_Read... [11:13:49]Read from MH i2c: 01 07 00 C9 17 00 00 00 00 00 FF 0F F5 [11:13:49]RasterBufferAndPrint [11:13:49]line Счет N : (1)412163 [11:13:49]line ИНН: 02508201610067 [11:13:49]line Контрольно-Кассовый Чек [11:13:49]line ПРОДАЖА [11:13:49]line ТРК (МРК, ГНК) : 12 [11:13:49]line Товар: 2710124130 [11:13:49]line Аи-92-К-2 [11:13:49]line 7.790 * 64.20 [11:13:49]line = 500.12 [11:13:49]line НДС 12% НСП 1% [11:13:49]line > о реализуемом товаре [11:13:49]line ОКРУГЛЕНИЕ: -0.12 [11:13:49]line ИТОГО: 500.00 [11:13:49]line Внесено: 500.00 [11:13:49]line СДАЧА: 0.00 [11:13:49]line НСП 1% : 4.43 [11:13:49]line НДС 12% : 53.11 [11:13:49]line Наличными: 500.00 [11:13:49]line Безнал.: 0.00 [11:13:49]line Место: АЗС № 92 "Партнер Нефть" [11:13:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:13:49]line СНО: Общий режим [11:13:49]line Чек 79 19.02.2025 11:13 [11:13:49]line Смена: 647 ФФД: 1.0 [11:13:49]line ЗНМ: 0300000118 [11:13:49]line РНМ: 0000000000091857 [11:13:49]line Версия ККМ: 001 [11:13:49]line ФМ: 0000000000871826 [11:13:49]line ФД: 187013 [11:13:49]line ФПД: 240043878783855 [11:13:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T111350&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187013&fm=240043878783855&tin=02508201610067®Number=0000000000091857&sum=50000 [11:13:49]written 0, free lines is 4095 [11:13:49]OFD Sender: Processing packet 187013 [packets to send 49, broken 48] [11:13:49]ProducePacketName [11:13:49]name=ofd_packets/00187013 [11:13:49]OFD Sender: To server: pG, [11:13:49]CommunicateWithHost lk.salyk.kg:30040 [11:13:49]ConnectInit lk.salyk.kg [11:13:49]Connected sock=10 [11:13: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 75 07 01 0E 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4F 00 00 00 F4 03 04 00 EE BC 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 85 DA 02 00 35 04 06 00 DA 51 92 20 1B 6F B5 B1 20 49 8F 55 21 9B [11:13:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B9 1D 47 00 F0 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 85 DA 02 00 F4 03 04 00 42 63 B5 67 B6 04 01 00 00 32 57 3D D0 55 21 B6 AE [11:13:50]CommunicateWithHost err = 0 [11:13:50]CheckOFDResponse [11:13:50]1017 (14) - 77093643461234 [11:13:50]1041 (16) - 0000000000871826 [11:13:50]1040 (4) - 187013 [11:13:50]1012 (4) - 19.02.2025 04:51 [11:13:50]1206 (1) - 0 [11:13:50]OFD Sender: Remove packet 187013 [11:13:50]ProducePacketName [11:13:50]name=ofd_packets/00187013 [11:13:50]NVStorageDeleteData [11:13:50]Write to MH i2c: 01 00 00 F4 17 0B [11:13:50]Write i2c OK [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: 01 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: 01 07 00 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: 01 07 00 F4 17 00 00 00 00 00 FE 0C 1C [11:13:50]RasterBufferAndPrint [11:13:50]line [11:13:50]line [11:13:50]line [11:13:50]line [11:13:50]line [11:13:50]written 0, free lines is 3331 [11:13:50]MH_Cut [11:13:50]Write to MH i2c: D1 01 00 FB 17 01 E4 [11:13:50]Write i2c OK [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: D1 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: D1 01 00 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: D1 01 00 FB 17 00 E3 [11:13:50]Write to MH i2c: 01 00 00 FC 17 13 [11:13:50]Write i2c OK [11:13:50]MH_I2C_Read... [11:13:50]OFD Sender: No OFD packet to send [11:13:50]*** Cut start [11:13:50]*** Partial cut [11:13:50]*** CUTSNS_PIN = 1 [11:13:50]*** CUTSNS_PIN = 0 [11:13:51]*** Brake cut motor [11:13:51]Read from MH i2c: 01 [11:13:51]MH_I2C_Read... [11:13:51]*** Stop cut motor [11:13:51]*** Cut end [11:13:51]Read from MH i2c: 01 07 00 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: 01 07 00 FC 17 00 00 00 00 00 FF 0F 28 [11:13:51]process_action close_receipt done [11:13:51]requested_data is exist [11:13:51]produce_requested_data [11:13:51]requested_item fm.sn is exist - process it [11:13:51]wFMCommunicate request_size=4 [11:13:51]MH_SAM_APDU [11:13:51]CAPDU: 80 11 00 00 [11:13:51]Write to MH i2c: E2 08 00 FD 17 80 11 00 00 00 00 00 00 8E [11:13:51]Write i2c OK [11:13:51]MH_I2C_Read... [11:13:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:51]Read from MH i2c: E2 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 17 00 [11:13:51]MH_I2C_Read... [11:13:51]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 [11:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:13:51]wFMCommunicate OK [11:13:51]requested_item fd.num is exist - process it [11:13:51]SAM_PROTO_GetFieldsCounters [11:13:51]wFMCommunicate request_size=4 [11:13:51]MH_SAM_APDU [11:13:51]CAPDU: 80 13 00 00 [11:13:51]Write to MH i2c: E2 08 00 FE 17 80 13 00 00 00 00 00 00 91 [11:13:51]Write i2c OK [11:13:51]MH_I2C_Read... [11:13:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:51]Read from MH i2c: E2 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 62 00 [11:13:51]MH_I2C_Read... [11:13:51]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 85 DA 02 00 0E 04 04 00 87 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 8E [11:13: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 85 DA 02 00 0E 04 04 00 87 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:13:51]wFMCommunicate OK [11:13:51]SAM_PROTO_GetFieldsCounters done [11:13:51]requested_item shift.num is exist - process it [11:13:51]requested_item shift.opened is exist - process it [11:13:51]req_shift_opened [11:13:51]FM_GetShiftState [11:13:51]SAM_PROTO_GetShiftState [11:13:51]wFMCommunicate request_size=4 [11:13:51]MH_SAM_APDU [11:13:51]CAPDU: 80 13 01 00 [11:13:51]Write to MH i2c: E2 08 00 FF 17 80 13 01 00 00 00 00 00 93 [11:13:51]Write i2c OK [11:13:51]MH_I2C_Read... [11:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:51]Read from MH i2c: E2 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 0E 00 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 0E 00 FF 17 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 12 [11:13:51]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:13:51]wFMCommunicate OK [11:13:51]SAM_PROTO_GetShiftState done [11:13:51]FM_GetShiftState done [11:13:51]req_shift_opened done [11:13:51]requested_item shift.open_date is exist - process it [11:13:51]req_shift_open_date [11:13:51]req_shift_open_date done [11:13:51]produce_requested_data done [11:13:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187013,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [11:13:51]process_action_free close_receipt [11:13:51]json_value_free [11:13:51]json_value_free done [11:13:51]process_json_proto returns [11:13:51]Send response to host [11:13:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187013,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [11:13:51]free response buf [11:13:51]execute_script done [11:13:51]execute_script returns [11:13:51]free content buf [11:13:51]Sock 9.Close socket [11:13:51]Sock 9.Thread stoped [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:45]accept exits with 7 [11:21:45]New connection [11:21:45]New thread 3066879332 created [11:21:45]Thread 3067022692 joined [11:21:45]Waiting for new connection... [11:21:45] Sock 7.Parse request [11:21:45]Sock 7.Check first char [11:21:45]Sock 7.First char is OK [11:21:45]request: POST /json_proto HTTP/1.0 [11:21:45]Method: POST [11:21:45]URL: /json_proto [11:21:45]Method is POST - this is cgi request [11:21:45]url: /json_proto [11:21:45]query_string will be loaded in cgi processing [11:21:45]execute_cgi json_proto POST (null) [11:21:45]execute_cgi path=json_proto method=POST [11:21:45]POST find Content-Length [11:21:45]Host: 172.17.46.131:8080 [11:21:45]Content-Length: 799 [11:21:45]Content-Type: application/json [11:21:45] [11:21:45]POST finish read [11:21:45]Found Content-Length = 799 [11:21:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412164", "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" : 24.800, "sum" : 1800.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1800.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:45]execute_script... [11:21: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)412164", "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" : 24.800, "sum" : 1800.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1800.48 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:45]POST & json_proto [11:21:45]process_json_proto [11:21:45]json parsed OK: [11:21:45]protocol is kg_v1.0 [11:21:45]action value=close_receipt [11:21:45]process_action close_receipt [11:21:45]cmd_close_receipt [11:21:45]MH_GetDate [11:21:45]Write to MH i2c: F0 00 00 00 18 07 [11:21:45]Write i2c OK [11:21:45]MH_I2C_Read... [11:21:45]Read from MH i2c: F0 [11:21:45]MH_I2C_Read... [11:21:45]Read from MH i2c: F0 09 00 [11:21:45]MH_I2C_Read... [11:21:45]Read from MH i2c: F0 09 00 00 18 00 CC BE B5 67 7E 41 4F 65 29 [11:21:45]GetLastDocTimeStamp 1739963630 [11:21:45]current date 1739964108 [11:21:45]FM_GetShiftState [11:21:45]SAM_PROTO_GetShiftState [11:21:45]wFMCommunicate request_size=4 [11:21:45]MH_SAM_APDU [11:21:45]CAPDU: 80 13 01 00 [11:21:45]Write to MH i2c: E2 08 00 01 18 80 13 01 00 00 00 00 00 96 [11:21:45]Write i2c OK [11:21:45]MH_I2C_Read... [11:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:45]Read from MH i2c: E2 [11:21:45]MH_I2C_Read... [11:21:45]Read from MH i2c: E2 0E 00 [11:21:45]MH_I2C_Read... [11:21:45]Read from MH i2c: E2 0E 00 01 18 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 15 [11:21:45]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:21:45]wFMCommunicate OK [11:21:45]SAM_PROTO_GetShiftState done [11:21:45]FM_GetShiftState done [11:21:45]opened in 1739929631 [11:21:45]opened+sec_in_day 1740016031 [11:21:45]quantity*price = 180048 [11:21:45]sum+1 = 180049 [11:21:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1800.48 НСП 1% : 15.93 НДС 12% : 191.20 Наличными: 0.00 Безнал.: 1800.48 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 80 19.02.2025 11:21 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187014 ФПД: 50669309619398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T112148&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187014&fm=50669309619398&tin=02508201610067®Number=0000000000091857&sum=180048 [11:21:46]StoreToDocumentArchive [11:21:46]shift 647 fd 187014 [11:21:46]save to /storage/0647/doc_00187014 [11:21:46]save last doc name /storage/0647/doc_00187014 to /storage/kkm_last_doc_name [11:21:46]save OK [11:21:46]Clear old archive folders... [11:21:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:21:46]tlvbuf is 005BA250 [11:21:46]SAM_PROTO_ClearQueue [11:21:46]wFMCommunicate request_size=4 [11:21:46]MH_SAM_APDU [11:21:46]CAPDU: 80 09 00 00 [11:21:46]Write to MH i2c: E2 08 00 0E 18 80 09 00 00 00 00 00 00 98 [11:21:46]Write i2c OK [11:21:46]MH_I2C_Read... [11:21:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:47]Read from MH i2c: E2 [11:21:47]MH_I2C_Read... [11:21:47]Read from MH i2c: E2 03 00 [11:21:47]MH_I2C_Read... [11:21:47]Read from MH i2c: E2 03 00 0E 18 00 90 00 9A [11:21:47]RAPDU: 90 00 [11:21:47]wFMCommunicate OK [11:21:47]SAM_PROTO_ClearQueue done [11:21:47]KKMCreateOFDPacket [11:21:47]OFDProtocolAddRootSTLVToBuf [11:21:47]FM_MakeSignedData [11:21:47]FM_MakeSignedData [11:21:47]SAM_PROTO_SignData [11:21:47]wFMCommunicate request_size=4 [11:21:47]MH_SAM_APDU [11:21:47]CAPDU: 80 0D 01 02 [11:21:47]Write to MH i2c: E2 08 00 0F 18 80 0D 01 02 00 00 00 00 A0 [11:21:47]Write i2c OK [11:21:47]MH_I2C_Read... [11:21:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:47]Read from MH i2c: E2 [11:21:47]MH_I2C_Read... [11:21:47]Read from MH i2c: E2 03 00 [11:21:47]MH_I2C_Read... [11:21:47]Read from MH i2c: E2 03 00 0F 18 00 90 00 9B [11:21:47]RAPDU: 90 00 [11:21:47]wFMCommunicate OK [11:21:47]wFMCommunicate request_size=255 [11:21:47]MH_SAM_APDU [11:21:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 60 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 50 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 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 B0 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 CC BE 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 86 DA 02 00 35 04 06 00 2E 15 5E 33 [11:21:47]Write to MH i2c: E2 02 01 10 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 60 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 50 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 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 B0 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 CC BE 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 86 DA 02 00 35 04 06 00 2E 15 5E 33 00 00 DB [11:21:47]Write i2c OK [11:21:47]MH_I2C_Read... [11:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:47]Read from MH i2c: E2 [11:21:47]MH_I2C_Read... [11:21:47]Read from MH i2c: E2 03 00 [11:21:47]MH_I2C_Read... [11:21:47]Read from MH i2c: E2 03 00 10 18 00 90 00 9C [11:21:47]RAPDU: 90 00 [11:21:47]wFMCommunicate OK [11:21:47]wFMCommunicate request_size=7 [11:21:47]MH_SAM_APDU [11:21:47]CAPDU: 80 0D 02 02 02 6C C6 [11:21:47]Write to MH i2c: E2 0A 00 11 18 80 0D 02 02 02 00 6C C6 00 00 D9 [11:21:47]Write i2c OK [11:21:47]MH_I2C_Read... [11:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:47]Read from MH i2c: E2 [11:21:47]MH_I2C_Read... [11:21:47]Read from MH i2c: E2 03 00 [11:21:47]MH_I2C_Read... [11:21:47]Read from MH i2c: E2 03 00 11 18 00 90 00 9D [11:21:47]RAPDU: 90 00 [11:21:47]wFMCommunicate OK [11:21:47]wFMCommunicate request_size=4 [11:21:47]MH_SAM_APDU [11:21:47]CAPDU: 80 0D 03 02 [11:21:47]Write to MH i2c: E2 08 00 12 18 80 0D 03 02 00 00 00 00 A5 [11:21:47]Write i2c OK [11:21:47]MH_I2C_Read... [11:21:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:47]Read from MH i2c: E2 [11:21:47]MH_I2C_Read... [11:21:47]Read from MH i2c: E2 0B 00 [11:21:47]MH_I2C_Read... [11:21:47]Read from MH i2c: E2 0B 00 12 18 00 91 8F 28 57 16 A8 D8 0E 90 00 E9 [11:21:47]RAPDU: 91 8F 28 57 16 A8 D8 0E 90 00 [11:21:47]wFMCommunicate OK [11:21:47]SAM_PROTO_SignData done [11:21:47]FM_MakeSignedData done [11:21:47]CreateOFDProtocolMessage [11:21:47]wFMCommunicate request_size=4 [11:21:47]MH_SAM_APDU [11:21:47]CAPDU: 80 11 00 00 [11:21:47]Write to MH i2c: E2 08 00 13 18 80 11 00 00 00 00 00 00 A5 [11:21:47]Write i2c OK [11:21:47]MH_I2C_Read... [11:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:47]Read from MH i2c: E2 [11:21:47]MH_I2C_Read... [11:21:47]Read from MH i2c: E2 17 00 [11:21:47]MH_I2C_Read... [11:21:47]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 [11:21: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:21:47]wFMCommunicate OK [11:21:47]CreateOFDProtocolMessage done [11:21:47]OFDSenderStorePacket 187014 [11:21:47]StoreOFDPacket docnum=187014 [11:21: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 0C 01 00 00 E3 0F 04 01 CA 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 60 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 50 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 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 B0 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 CC BE 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 86 DA 02 00 35 04 06 00 2E 15 5E 33 6C C6 91 8F 28 57 16 A8 D8 0E [11:21:47]CheckFolder [11:21:47]dirname=/storage/ofd_packets [11:21:47]CheckFolder done [11:21:47]ProducePacketName [11:21:47]name=ofd_packets/00187014 [11:21:47]NVStorageSaveData ofd_packets/00187014 [11:21:47]File name is /storage/ofd_packets/00187014 [11:21:47]Write 298 bytes [11:21:47]NVStorageSaveData done [11:21:47]OFDSenderStorePacket done [11:21:47]KKMCreateOFDPacket done [11:21:47]NVStorageSaveData kkm_last_timestamp [11:21:47]File name is /storage/kkm_last_timestamp [11:21:47]Write 4 bytes [11:21:47]NVStorageSaveData done [11:21:47]ExternCall_PrintAddStr [11:21:47]wPrintStart [11:21:47]Write to MH i2c: 01 00 00 14 18 2C [11:21:47]Write i2c OK [11:21:47]MH_I2C_Read... [11:21:47]Read from MH i2c: 01 [11:21:47]MH_I2C_Read... [11:21:47]Read from MH i2c: 01 07 00 [11:21:47]MH_I2C_Read... [11:21:47]Read from MH i2c: 01 07 00 14 18 00 00 00 00 00 FF 0F 41 [11:21:47]RasterBufferAndPrint [11:21:47]line Счет N : (1)412164 [11:21:47]line ИНН: 02508201610067 [11:21:47]line Контрольно-Кассовый Чек [11:21:47]line ПРОДАЖА [11:21:47]line ТРК (МРК, ГНК) : 5 [11:21:47]line Товар: 2710194210 [11:21:47]line ДТ-К-5 [11:21:47]line 24.800 * 72.60 [11:21:47]line = 1800.48 [11:21:47]line НДС 12% НСП 1% [11:21:47]line > о реализуемом товаре [11:21:47]line ИТОГО: 1800.48 [11:21:47]line НСП 1% : 15.93 [11:21:47]line НДС 12% : 191.20 [11:21:47]line Наличными: 0.00 [11:21:47]line Безнал.: 1800.48 [11:21:47]line Место: АЗС № 92 "Партнер Нефть" [11:21:47]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:21:47]line СНО: Общий режим [11:21:47]line Чек 80 19.02.2025 11:21 [11:21:47]line Смена: 647 ФФД: 1.0 [11:21:47]line ЗНМ: 0300000118 [11:21:47]line РНМ: 0000000000091857 [11:21:47]line Версия ККМ: 001 [11:21:47]line Платежная система: O! деньги [11:21:47]line ФМ: 0000000000871826 [11:21:47]line ФД: 187014 [11:21:47]line ФПД: 50669309619398 [11:21:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T112148&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187014&fm=50669309619398&tin=02508201610067®Number=0000000000091857&sum=180048 [11:21:47]OFD Sender: Processing packet 187014 [packets to send 49, broken 48] [11:21:47]ProducePacketName [11:21:47]name=ofd_packets/00187014 [11:21:47]OFD Sender: To server: pG, [11:21:47]CommunicateWithHost lk.salyk.kg:30040 [11:21:47]ConnectInit lk.salyk.kg [11:21:47]written 0, free lines is 4095 [11:21:47]Connected sock=10 [11:21: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 E3 0F 04 01 CA 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 60 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 50 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 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 B0 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 CC BE 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 86 DA 02 00 35 04 06 00 2E 15 5E 33 6C C6 91 8F 28 57 16 A8 D8 0E [11:21: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 EE 8C 47 00 29 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 86 DA 02 00 F4 03 04 00 21 65 B5 67 B6 04 01 00 00 EC EE 13 4B DD 22 2C CF [11:21:48]CommunicateWithHost err = 0 [11:21:48]CheckOFDResponse [11:21:48]1017 (14) - 77093643461234 [11:21:48]1041 (16) - 0000000000871826 [11:21:48]1040 (4) - 187014 [11:21:48]1012 (4) - 19.02.2025 04:59 [11:21:48]1206 (1) - 0 [11:21:48]OFD Sender: Remove packet 187014 [11:21:48]ProducePacketName [11:21:48]name=ofd_packets/00187014 [11:21:48]NVStorageDeleteData [11:21:48]Write to MH i2c: 01 00 00 3E 18 56 [11:21:48]Write i2c OK [11:21:48]MH_I2C_Read... [11:21:48]Read from MH i2c: 01 [11:21:48]MH_I2C_Read... [11:21:48]Read from MH i2c: 01 07 00 [11:21:48]MH_I2C_Read... [11:21:48]Read from MH i2c: 01 07 00 3E 18 00 00 00 00 00 10 0D 7A [11:21:48]RasterBufferAndPrint [11:21:48]line [11:21:48]line [11:21:48]line [11:21:48]line [11:21:48]line [11:21:48]written 0, free lines is 3351 [11:21:48]MH_Cut [11:21:48]Write to MH i2c: D1 01 00 45 18 01 2F [11:21:48]Write i2c OK [11:21:48]MH_I2C_Read... [11:21:48]Read from MH i2c: D1 [11:21:48]MH_I2C_Read... [11:21:48]Read from MH i2c: D1 01 00 [11:21:48]MH_I2C_Read... [11:21:48]Read from MH i2c: D1 01 00 45 18 00 2E [11:21:48]Write to MH i2c: 01 00 00 46 18 5E [11:21:48]Write i2c OK [11:21:48]MH_I2C_Read... [11:21:48]OFD Sender: No OFD packet to send [11:21:48]*** Cut start [11:21:48]*** Partial cut [11:21:48]*** CUTSNS_PIN = 1 [11:21:49]*** CUTSNS_PIN = 0 [11:21:49]*** Brake cut motor [11:21:49]Read from MH i2c: 01 [11:21:49]MH_I2C_Read... [11:21:49]*** Stop cut motor [11:21:49]*** Cut end [11:21:49]Read from MH i2c: 01 07 00 [11:21:49]MH_I2C_Read... [11:21:49]Read from MH i2c: 01 07 00 46 18 00 00 00 00 00 FF 0F 73 [11:21:49]process_action close_receipt done [11:21:49]requested_data is exist [11:21:49]produce_requested_data [11:21:49]requested_item fm.sn is exist - process it [11:21:49]wFMCommunicate request_size=4 [11:21:49]MH_SAM_APDU [11:21:49]CAPDU: 80 11 00 00 [11:21:49]Write to MH i2c: E2 08 00 47 18 80 11 00 00 00 00 00 00 D9 [11:21:49]Write i2c OK [11:21:49]MH_I2C_Read... [11:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:49]Read from MH i2c: E2 [11:21:49]MH_I2C_Read... [11:21:49]Read from MH i2c: E2 17 00 [11:21:49]MH_I2C_Read... [11:21:49]Read from MH i2c: E2 17 00 47 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2C [11:21: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:21:49]wFMCommunicate OK [11:21:49]requested_item fd.num is exist - process it [11:21:49]SAM_PROTO_GetFieldsCounters [11:21:49]wFMCommunicate request_size=4 [11:21:49]MH_SAM_APDU [11:21:49]CAPDU: 80 13 00 00 [11:21:49]Write to MH i2c: E2 08 00 48 18 80 13 00 00 00 00 00 00 DC [11:21:49]Write i2c OK [11:21:49]MH_I2C_Read... [11:21:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:49]Read from MH i2c: E2 [11:21:49]MH_I2C_Read... [11:21:49]Read from MH i2c: E2 62 00 [11:21:49]MH_I2C_Read... [11:21:49]Read from MH i2c: E2 62 00 48 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 86 DA 02 00 0E 04 04 00 87 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 DD [11:21: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 86 DA 02 00 0E 04 04 00 87 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:21:49]wFMCommunicate OK [11:21:49]SAM_PROTO_GetFieldsCounters done [11:21:49]requested_item shift.num is exist - process it [11:21:49]requested_item shift.opened is exist - process it [11:21:49]req_shift_opened [11:21:49]FM_GetShiftState [11:21:49]SAM_PROTO_GetShiftState [11:21:49]wFMCommunicate request_size=4 [11:21:49]MH_SAM_APDU [11:21:49]CAPDU: 80 13 01 00 [11:21:49]Write to MH i2c: E2 08 00 49 18 80 13 01 00 00 00 00 00 DE [11:21:49]Write i2c OK [11:21:49]MH_I2C_Read... [11:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:49]Read from MH i2c: E2 [11:21:49]MH_I2C_Read... [11:21:49]Read from MH i2c: E2 0E 00 [11:21:49]MH_I2C_Read... [11:21:49]Read from MH i2c: E2 0E 00 49 18 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 5D [11:21:49]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:21:49]wFMCommunicate OK [11:21:49]SAM_PROTO_GetShiftState done [11:21:49]FM_GetShiftState done [11:21:49]req_shift_opened done [11:21:49]requested_item shift.open_date is exist - process it [11:21:49]req_shift_open_date [11:21:49]req_shift_open_date done [11:21:49]produce_requested_data done [11:21:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187014,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [11:21:49]process_action_free close_receipt [11:21:49]json_value_free [11:21:49]json_value_free done [11:21:49]process_json_proto returns [11:21:49]Send response to host [11:21:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187014,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [11:21:49]free response buf [11:21:49]execute_script done [11:21:49]execute_script returns [11:21:49]free content buf [11:21:49]Sock 7.Close socket [11:21:49]Sock 7.Thread stoped [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:10]accept exits with 9 [11:25:10]New connection [11:25:10]New thread 3067022692 created [11:25:10]Thread 3066879332 joined [11:25:10]Waiting for new connection... [11:25:10] Sock 9.Parse request [11:25:10]Sock 9.Check first char [11:25:10]Sock 9.First char is OK [11:25:10]request: POST /json_proto HTTP/1.0 [11:25:10]Method: POST [11:25:10]URL: /json_proto [11:25:10]Method is POST - this is cgi request [11:25:10]url: /json_proto [11:25:10]query_string will be loaded in cgi processing [11:25:10]execute_cgi json_proto POST (null) [11:25:10]execute_cgi path=json_proto method=POST [11:25:10]POST find Content-Length [11:25:10]Host: 172.17.46.131:8080 [11:25:10]Content-Length: 682 [11:25:10]Content-Type: application/json [11:25:10] [11:25:10]POST finish read [11:25:10]Found Content-Length = 682 [11:25:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412165", "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:25:10]execute_script... [11:25: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)412165", "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:25:10]POST & json_proto [11:25:10]process_json_proto [11:25:10]json parsed OK: [11:25:10]protocol is kg_v1.0 [11:25:10]action value=close_receipt [11:25:10]process_action close_receipt [11:25:10]cmd_close_receipt [11:25:10]MH_GetDate [11:25:10]Write to MH i2c: F0 00 00 4A 18 51 [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: F0 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: F0 09 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: F0 09 00 4A 18 00 99 BF B5 67 7E 41 4F 65 41 [11:25:10]GetLastDocTimeStamp 1739964108 [11:25:10]current date 1739964313 [11:25:10]FM_GetShiftState [11:25:10]SAM_PROTO_GetShiftState [11:25:10]wFMCommunicate request_size=4 [11:25:10]MH_SAM_APDU [11:25:10]CAPDU: 80 13 01 00 [11:25:10]Write to MH i2c: E2 08 00 4B 18 80 13 01 00 00 00 00 00 E0 [11:25:10]Write i2c OK [11:25:10]MH_I2C_Read... [11:25:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:10]Read from MH i2c: E2 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 0E 00 [11:25:10]MH_I2C_Read... [11:25:10]Read from MH i2c: E2 0E 00 4B 18 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 5F [11:25:10]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:25:10]wFMCommunicate OK [11:25:10]SAM_PROTO_GetShiftState done [11:25:10]FM_GetShiftState done [11:25:10]opened in 1739929631 [11:25:10]opened+sec_in_day 1740016031 [11:25:10]quantity*price = 100023 [11:25:10]sum+1 = 100025 [11:25:10]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 СНО: Общий режим Чек 81 19.02.2025 11:25 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187015 ФПД: 165119544898655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T112513&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187015&fm=165119544898655&tin=02508201610067®Number=0000000000091857&sum=100000 [11:25:11]StoreToDocumentArchive [11:25:11]shift 647 fd 187015 [11:25:11]save to /storage/0647/doc_00187015 [11:25:11]save last doc name /storage/0647/doc_00187015 to /storage/kkm_last_doc_name [11:25:11]save OK [11:25:11]Clear old archive folders... [11:25:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:11]tlvbuf is B6EB9350 [11:25:11]SAM_PROTO_ClearQueue [11:25:11]wFMCommunicate request_size=4 [11:25:11]MH_SAM_APDU [11:25:11]CAPDU: 80 09 00 00 [11:25:11]Write to MH i2c: E2 08 00 58 18 80 09 00 00 00 00 00 00 E2 [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:11]Read from MH i2c: E2 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 03 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 03 00 58 18 00 90 00 E4 [11:25:11]RAPDU: 90 00 [11:25:11]wFMCommunicate OK [11:25:11]SAM_PROTO_ClearQueue done [11:25:11]KKMCreateOFDPacket [11:25:11]OFDProtocolAddRootSTLVToBuf [11:25:11]FM_MakeSignedData [11:25:11]FM_MakeSignedData [11:25:11]SAM_PROTO_SignData [11:25:11]wFMCommunicate request_size=4 [11:25:11]MH_SAM_APDU [11:25:11]CAPDU: 80 0D 01 02 [11:25:11]Write to MH i2c: E2 08 00 59 18 80 0D 01 02 00 00 00 00 EA [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:11]Read from MH i2c: E2 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 03 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 03 00 59 18 00 90 00 E5 [11:25:11]RAPDU: 90 00 [11:25:11]wFMCommunicate OK [11:25:11]wFMCommunicate request_size=255 [11:25:11]MH_SAM_APDU [11:25: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 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 51 00 00 00 F4 03 04 00 99 BF 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 87 DA 02 00 35 04 06 00 96 [11:25:11]Write to MH i2c: E2 02 01 5A 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 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 51 00 00 00 F4 03 04 00 99 BF 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 87 DA 02 00 35 04 06 00 96 00 00 2E [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:11]Read from MH i2c: E2 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 03 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 03 00 5A 18 00 90 00 E6 [11:25:11]RAPDU: 90 00 [11:25:11]wFMCommunicate OK [11:25:11]wFMCommunicate request_size=10 [11:25:11]MH_SAM_APDU [11:25:11]CAPDU: 80 0D 02 02 05 2C E3 D1 B4 5F [11:25:11]Write to MH i2c: E2 0D 00 5B 18 80 0D 02 02 05 00 2C E3 D1 B4 5F 00 00 EA [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:11]Read from MH i2c: E2 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 03 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 03 00 5B 18 00 90 00 E7 [11:25:11]RAPDU: 90 00 [11:25:11]wFMCommunicate OK [11:25:11]wFMCommunicate request_size=4 [11:25:11]MH_SAM_APDU [11:25:11]CAPDU: 80 0D 03 02 [11:25:11]Write to MH i2c: E2 08 00 5C 18 80 0D 03 02 00 00 00 00 EF [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:12]Read from MH i2c: E2 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: E2 0B 00 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: E2 0B 00 5C 18 00 D0 80 43 92 3D 93 16 FA 90 00 F5 [11:25:12]RAPDU: D0 80 43 92 3D 93 16 FA 90 00 [11:25:12]wFMCommunicate OK [11:25:12]SAM_PROTO_SignData done [11:25:12]FM_MakeSignedData done [11:25:12]CreateOFDProtocolMessage [11:25:12]wFMCommunicate request_size=4 [11:25:12]MH_SAM_APDU [11:25:12]CAPDU: 80 11 00 00 [11:25:12]Write to MH i2c: E2 08 00 5D 18 80 11 00 00 00 00 00 00 EF [11:25:12]Write i2c OK [11:25:12]MH_I2C_Read... [11:25:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:12]Read from MH i2c: E2 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: E2 17 00 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: E2 17 00 5D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 42 [11:25:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:25:12]wFMCommunicate OK [11:25:12]CreateOFDProtocolMessage done [11:25:12]OFDSenderStorePacket 187015 [11:25:12]StoreOFDPacket docnum=187015 [11:25: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 0F 01 00 00 DA E4 07 01 AB E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 51 00 00 00 F4 03 04 00 99 BF 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 87 DA 02 00 35 04 06 00 96 2C E3 D1 B4 5F D0 80 43 92 3D 93 16 FA [11:25:12]CheckFolder [11:25:12]dirname=/storage/ofd_packets [11:25:12]CheckFolder done [11:25:12]ProducePacketName [11:25:12]name=ofd_packets/00187015 [11:25:12]NVStorageSaveData ofd_packets/00187015 [11:25:12]File name is /storage/ofd_packets/00187015 [11:25:12]Write 301 bytes [11:25:12]NVStorageSaveData done [11:25:12]OFDSenderStorePacket done [11:25:12]KKMCreateOFDPacket done [11:25:12]NVStorageSaveData kkm_last_timestamp [11:25:12]File name is /storage/kkm_last_timestamp [11:25:12]Write 4 bytes [11:25:12]NVStorageSaveData done [11:25:12]ExternCall_PrintAddStr [11:25:12]wPrintStart [11:25:12]Write to MH i2c: 01 00 00 5E 18 76 [11:25:12]Write i2c OK [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: 01 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: 01 07 00 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: 01 07 00 5E 18 00 00 00 00 00 FF 0F 8B [11:25:12]RasterBufferAndPrint [11:25:12]line Счет N : (1)412165 [11:25:12]line ИНН: 02508201610067 [11:25:12]line Контрольно-Кассовый Чек [11:25:12]line ПРОДАЖА [11:25:12]line ТРК (МРК, ГНК) : 22 [11:25:12]line Товар: 2710124130 [11:25:12]line Аи-92-К-2 [11:25:12]line 15.580 * 64.20 [11:25:12]line = 1000.24 [11:25:12]line НДС 12% НСП 1% [11:25:12]line > о реализуемом товаре [11:25:12]line ОКРУГЛЕНИЕ: -0.24 [11:25:12]line ИТОГО: 1000.00 [11:25:12]line Внесено: 1000.00 [11:25:12]line СДАЧА: 0.00 [11:25:12]line НСП 1% : 8.85 [11:25:12]line НДС 12% : 106.22 [11:25:12]line Наличными: 1000.00 [11:25:12]line Безнал.: 0.00 [11:25:12]line Место: АЗС № 92 "Партнер Нефть" [11:25:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:25:12]line СНО: Общий режим [11:25:12]line Чек 81 19.02.2025 11:25 [11:25:12]line Смена: 647 ФФД: 1.0 [11:25:12]line ЗНМ: 0300000118 [11:25:12]line РНМ: 0000000000091857 [11:25:12]line Версия ККМ: 001 [11:25:12]line ФМ: 0000000000871826 [11:25:12]line ФД: 187015 [11:25:12]line ФПД: 165119544898655 [11:25:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T112513&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187015&fm=165119544898655&tin=02508201610067®Number=0000000000091857&sum=100000 [11:25:12]OFD Sender: Processing packet 187015 [packets to send 49, broken 48] [11:25:12]ProducePacketName [11:25:12]name=ofd_packets/00187015 [11:25:12]OFD Sender: To server: pG, [11:25:12]CommunicateWithHost lk.salyk.kg:30040 [11:25:12]ConnectInit lk.salyk.kg [11:25:12]written 0, free lines is 4095 [11:25:12]Connected sock=10 [11:25: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 DA E4 07 01 AB E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 51 00 00 00 F4 03 04 00 99 BF 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 87 DA 02 00 35 04 06 00 96 2C E3 D1 B4 5F D0 80 43 92 3D 93 16 FA [11:25:12]Write to MH i2c: 01 00 00 89 18 A1 [11:25:12]Write i2c OK [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: 01 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: 01 07 00 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: 01 07 00 89 18 00 00 00 00 00 FB 0C AF [11:25:12]RasterBufferAndPrint [11:25:12]line [11:25:12]line [11:25:12]line [11:25:12]line [11:25:12]line [11:25:12]written 0, free lines is 3329 [11:25: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 30 07 47 00 50 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 87 DA 02 00 F4 03 04 00 ED 65 B5 67 B6 04 01 00 00 34 D8 A8 AA B1 71 B3 36 [11:25:12]CommunicateWithHost err = 0 [11:25:12]CheckOFDResponse [11:25:12]1017 (14) - 77093643461234 [11:25:12]1041 (16) - 0000000000871826 [11:25:12]1040 (4) - 187015 [11:25:12]1012 (4) - 19.02.2025 05:02 [11:25:12]1206 (1) - 0 [11:25:12]OFD Sender: Remove packet 187015 [11:25:12]ProducePacketName [11:25:12]name=ofd_packets/00187015 [11:25:12]NVStorageDeleteData [11:25:12]MH_Cut [11:25:12]Write to MH i2c: D1 01 00 90 18 01 7A [11:25:12]Write i2c OK [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: D1 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: D1 01 00 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: D1 01 00 90 18 00 79 [11:25:12]Write to MH i2c: 01 00 00 91 18 A9 [11:25:12]Write i2c OK [11:25:12]MH_I2C_Read... [11:25:13]OFD Sender: No OFD packet to send [11:25:13]*** Cut start [11:25:13]*** Partial cut [11:25:13]*** CUTSNS_PIN = 1 [11:25:13]*** CUTSNS_PIN = 0 [11:25:13]*** Brake cut motor [11:25:14]Read from MH i2c: 01 [11:25:14]MH_I2C_Read... [11:25:14]*** Stop cut motor [11:25:14]*** Cut end [11:25:14]Read from MH i2c: 01 07 00 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: 01 07 00 91 18 00 00 00 00 00 FF 0F BE [11:25:14]process_action close_receipt done [11:25:14]requested_data is exist [11:25:14]produce_requested_data [11:25:14]requested_item fm.sn is exist - process it [11:25:14]wFMCommunicate request_size=4 [11:25:14]MH_SAM_APDU [11:25:14]CAPDU: 80 11 00 00 [11:25:14]Write to MH i2c: E2 08 00 92 18 80 11 00 00 00 00 00 00 24 [11:25:14]Write i2c OK [11:25:14]MH_I2C_Read... [11:25:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:14]Read from MH i2c: E2 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 17 00 [11:25:14]MH_I2C_Read... [11:25:14]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 [11:25: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:25:14]wFMCommunicate OK [11:25:14]requested_item fd.num is exist - process it [11:25:14]SAM_PROTO_GetFieldsCounters [11:25:14]wFMCommunicate request_size=4 [11:25:14]MH_SAM_APDU [11:25:14]CAPDU: 80 13 00 00 [11:25:14]Write to MH i2c: E2 08 00 93 18 80 13 00 00 00 00 00 00 27 [11:25:14]Write i2c OK [11:25:14]MH_I2C_Read... [11:25:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:14]Read from MH i2c: E2 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 62 00 [11:25:14]MH_I2C_Read... [11:25:14]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 87 DA 02 00 0E 04 04 00 87 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 2C [11:25: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 87 DA 02 00 0E 04 04 00 87 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:25:14]wFMCommunicate OK [11:25:14]SAM_PROTO_GetFieldsCounters done [11:25:14]requested_item shift.num is exist - process it [11:25:14]requested_item shift.opened is exist - process it [11:25:14]req_shift_opened [11:25:14]FM_GetShiftState [11:25:14]SAM_PROTO_GetShiftState [11:25:14]wFMCommunicate request_size=4 [11:25:14]MH_SAM_APDU [11:25:14]CAPDU: 80 13 01 00 [11:25:14]Write to MH i2c: E2 08 00 94 18 80 13 01 00 00 00 00 00 29 [11:25:14]Write i2c OK [11:25:14]MH_I2C_Read... [11:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:14]Read from MH i2c: E2 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 0E 00 [11:25:14]MH_I2C_Read... [11:25:14]Read from MH i2c: E2 0E 00 94 18 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A8 [11:25:14]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:25:14]wFMCommunicate OK [11:25:14]SAM_PROTO_GetShiftState done [11:25:14]FM_GetShiftState done [11:25:14]req_shift_opened done [11:25:14]requested_item shift.open_date is exist - process it [11:25:14]req_shift_open_date [11:25:14]req_shift_open_date done [11:25:14]produce_requested_data done [11:25:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187015,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [11:25:14]process_action_free close_receipt [11:25:14]json_value_free [11:25:14]json_value_free done [11:25:14]process_json_proto returns [11:25:14]Send response to host [11:25:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187015,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [11:25:14]free response buf [11:25:14]execute_script done [11:25:14]execute_script returns [11:25:14]free content buf [11:25:14]Sock 9.Close socket [11:25:14]Sock 9.Thread stoped [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [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:48]accept exits with 7 [11:26:48]New connection [11:26:48]New thread 3066879332 created [11:26:48]Thread 3067022692 joined [11:26:48]Waiting for new connection... [11:26:48] Sock 7.Parse request [11:26:48]Sock 7.Check first char [11:26:48]Sock 7.First char is OK [11:26:48]request: POST /json_proto HTTP/1.0 [11:26:48]Method: POST [11:26:48]URL: /json_proto [11:26:48]Method is POST - this is cgi request [11:26:48]url: /json_proto [11:26:48]query_string will be loaded in cgi processing [11:26:48]execute_cgi json_proto POST (null) [11:26:48]execute_cgi path=json_proto method=POST [11:26:48]POST find Content-Length [11:26:48]Host: 172.17.46.131:8080 [11:26:48]Content-Length: 677 [11:26:48]Content-Type: application/json [11:26:48] [11:26:48]POST finish read [11:26:48]Found Content-Length = 677 [11:26:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412167", "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.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:26:48]execute_script... [11: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)412167", "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.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:26:48]POST & json_proto [11:26:48]process_json_proto [11:26:48]json parsed OK: [11:26:48]protocol is kg_v1.0 [11:26:48]action value=close_receipt [11:26:48]process_action close_receipt [11:26:48]cmd_close_receipt [11:26:48]MH_GetDate [11:26:48]Write to MH i2c: F0 00 00 95 18 9C [11:26:48]Write i2c OK [11:26:48]MH_I2C_Read... [11:26:48]Read from MH i2c: F0 [11:26:48]MH_I2C_Read... [11:26:48]Read from MH i2c: F0 09 00 [11:26:48]MH_I2C_Read... [11:26:48]Read from MH i2c: F0 09 00 95 18 00 FB BF B5 67 7E 41 4F 65 EE [11:26:48]GetLastDocTimeStamp 1739964313 [11:26:48]current date 1739964411 [11:26:48]FM_GetShiftState [11:26:48]SAM_PROTO_GetShiftState [11:26:48]wFMCommunicate request_size=4 [11:26:48]MH_SAM_APDU [11:26:48]CAPDU: 80 13 01 00 [11:26:48]Write to MH i2c: E2 08 00 96 18 80 13 01 00 00 00 00 00 2B [11:26:48]Write i2c OK [11:26:48]MH_I2C_Read... [11:26:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:48]Read from MH i2c: E2 [11:26:48]MH_I2C_Read... [11:26:48]Read from MH i2c: E2 0E 00 [11:26:48]MH_I2C_Read... [11:26:48]Read from MH i2c: E2 0E 00 96 18 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 AA [11:26:48]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:26:48]wFMCommunicate OK [11:26:48]SAM_PROTO_GetShiftState done [11:26:48]FM_GetShiftState done [11:26:48]opened in 1739929631 [11:26:48]opened+sec_in_day 1740016031 [11:26:48]quantity*price = 25038 [11:26:48]sum+1 = 25039 [11:26:48]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 СНО: Общий режим Чек 82 19.02.2025 11:26 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187016 ФПД: 239263663842738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T112651&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187016&fm=239263663842738&tin=02508201610067®Number=0000000000091857&sum=25000 [11:26:50]StoreToDocumentArchive [11:26:50]shift 647 fd 187016 [11:26:50]save to /storage/0647/doc_00187016 [11:26:50]save last doc name /storage/0647/doc_00187016 to /storage/kkm_last_doc_name [11:26:50]save OK [11:26:50]Clear old archive folders... [11:26:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:50]tlvbuf is 005E2A50 [11:26:50]SAM_PROTO_ClearQueue [11:26:50]wFMCommunicate request_size=4 [11:26:50]MH_SAM_APDU [11:26:50]CAPDU: 80 09 00 00 [11:26:50]Write to MH i2c: E2 08 00 A3 18 80 09 00 00 00 00 00 00 2D [11:26:50]Write i2c OK [11:26:50]MH_I2C_Read... [11:26:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:50]Read from MH i2c: E2 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: E2 03 00 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: E2 03 00 A3 18 00 90 00 2F [11:26:50]RAPDU: 90 00 [11:26:50]wFMCommunicate OK [11:26:50]SAM_PROTO_ClearQueue done [11:26:50]KKMCreateOFDPacket [11:26:50]OFDProtocolAddRootSTLVToBuf [11:26:50]FM_MakeSignedData [11:26:50]FM_MakeSignedData [11:26:50]SAM_PROTO_SignData [11:26:50]wFMCommunicate request_size=4 [11:26:50]MH_SAM_APDU [11:26:50]CAPDU: 80 0D 01 02 [11:26:50]Write to MH i2c: E2 08 00 A4 18 80 0D 01 02 00 00 00 00 35 [11:26:50]Write i2c OK [11:26:50]MH_I2C_Read... [11:26:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:50]Read from MH i2c: E2 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: E2 03 00 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: E2 03 00 A4 18 00 90 00 30 [11:26:50]RAPDU: 90 00 [11:26:50]wFMCommunicate OK [11:26:50]wFMCommunicate request_size=255 [11:26:50]MH_SAM_APDU [11: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 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 52 00 00 00 F4 03 04 00 FB BF 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 88 DA 02 00 35 04 06 00 D9 [11:26:50]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 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 52 00 00 00 F4 03 04 00 FB BF 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 88 DA 02 00 35 04 06 00 D9 00 00 33 [11:26:50]Write i2c OK [11:26:50]MH_I2C_Read... [11:26:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:50]Read from MH i2c: E2 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: E2 03 00 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: E2 03 00 A5 18 00 90 00 31 [11:26:50]RAPDU: 90 00 [11:26:50]wFMCommunicate OK [11:26:50]wFMCommunicate request_size=10 [11:26:50]MH_SAM_APDU [11:26:50]CAPDU: 80 0D 02 02 05 9B E9 B0 E5 B2 [11:26:50]Write to MH i2c: E2 0D 00 A6 18 80 0D 02 02 05 00 9B E9 B0 E5 B2 00 00 0D [11:26:50]Write i2c OK [11:26:50]MH_I2C_Read... [11:26:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:50]Read from MH i2c: E2 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: E2 03 00 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: E2 03 00 A6 18 00 90 00 32 [11:26:50]RAPDU: 90 00 [11:26:50]wFMCommunicate OK [11:26:50]wFMCommunicate request_size=4 [11:26:50]MH_SAM_APDU [11:26:50]CAPDU: 80 0D 03 02 [11:26:50]Write to MH i2c: E2 08 00 A7 18 80 0D 03 02 00 00 00 00 3A [11:26:50]Write i2c OK [11:26:50]MH_I2C_Read... [11:26:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:50]Read from MH i2c: E2 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: E2 0B 00 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: E2 0B 00 A7 18 00 32 3B 63 7D 3F AA B8 B3 90 00 DC [11:26:50]RAPDU: 32 3B 63 7D 3F AA B8 B3 90 00 [11:26:50]wFMCommunicate OK [11:26:50]SAM_PROTO_SignData done [11:26:50]FM_MakeSignedData done [11:26:50]CreateOFDProtocolMessage [11:26:50]wFMCommunicate request_size=4 [11:26:50]MH_SAM_APDU [11:26:50]CAPDU: 80 11 00 00 [11:26:50]Write to MH i2c: E2 08 00 A8 18 80 11 00 00 00 00 00 00 3A [11:26:50]Write i2c OK [11:26:50]MH_I2C_Read... [11:26:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:50]Read from MH i2c: E2 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: E2 17 00 [11:26:50]MH_I2C_Read... [11:26:50]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 [11: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 [11:26:50]wFMCommunicate OK [11:26:50]CreateOFDProtocolMessage done [11:26:50]OFDSenderStorePacket 187016 [11:26:50]StoreOFDPacket docnum=187016 [11: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 BA 47 07 01 E6 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 52 00 00 00 F4 03 04 00 FB BF 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 88 DA 02 00 35 04 06 00 D9 9B E9 B0 E5 B2 32 3B 63 7D 3F AA B8 B3 [11:26:50]CheckFolder [11:26:50]dirname=/storage/ofd_packets [11:26:50]CheckFolder done [11:26:50]ProducePacketName [11:26:50]name=ofd_packets/00187016 [11:26:50]NVStorageSaveData ofd_packets/00187016 [11:26:50]File name is /storage/ofd_packets/00187016 [11:26:50]Write 301 bytes [11:26:50]NVStorageSaveData done [11:26:50]OFDSenderStorePacket done [11:26:50]KKMCreateOFDPacket done [11:26:50]NVStorageSaveData kkm_last_timestamp [11:26:50]File name is /storage/kkm_last_timestamp [11:26:50]Write 4 bytes [11:26:50]NVStorageSaveData done [11:26:50]ExternCall_PrintAddStr [11:26:50]wPrintStart [11:26:50]Write to MH i2c: 01 00 00 A9 18 C1 [11:26:50]Write i2c OK [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: 01 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: 01 07 00 [11:26:50]MH_I2C_Read... [11:26:50]Read from MH i2c: 01 07 00 A9 18 00 00 00 00 00 FF 0F D6 [11:26:50]RasterBufferAndPrint [11:26:50]line Счет N : (1)412167 [11:26:50]line ИНН: 02508201610067 [11:26:50]line Контрольно-Кассовый Чек [11:26:50]line ПРОДАЖА [11:26:50]line ТРК (МРК, ГНК) : 42 [11:26:50]line Товар: 2710124130 [11:26:50]line Аи-92-К-2 [11:26:50]line 3.900 * 64.20 [11:26:50]line = 250.38 [11:26:50]line НДС 12% НСП 1% [11:26:50]line > о реализуемом товаре [11:26:50]line ОКРУГЛЕНИЕ: -0.38 [11:26:50]line ИТОГО: 250.00 [11:26:50]line Внесено: 250.00 [11:26:50]line СДАЧА: 0.00 [11:26:50]line НСП 1% : 2.22 [11:26:50]line НДС 12% : 26.59 [11:26:50]line Наличными: 250.00 [11:26:50]line Безнал.: 0.00 [11:26:50]line Место: АЗС № 92 "Партнер Нефть" [11:26:50]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:26:50]line СНО: Общий режим [11:26:50]line Чек 82 19.02.2025 11:26 [11:26:50]line Смена: 647 ФФД: 1.0 [11:26:50]line ЗНМ: 0300000118 [11:26:50]line РНМ: 0000000000091857 [11:26:50]line Версия ККМ: 001 [11:26:50]line ФМ: 0000000000871826 [11:26:50]line ФД: 187016 [11:26:50]line ФПД: 239263663842738 [11:26:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T112651&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187016&fm=239263663842738&tin=02508201610067®Number=0000000000091857&sum=25000 [11:26:50]written 0, free lines is 4095 [11:26:50]OFD Sender: Processing packet 187016 [packets to send 49, broken 48] [11:26:50]ProducePacketName [11:26:50]name=ofd_packets/00187016 [11:26:50]OFD Sender: To server: pG, [11:26:50]CommunicateWithHost lk.salyk.kg:30040 [11:26:50]ConnectInit lk.salyk.kg [11:26:51]Connected sock=10 [11:26:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BA 47 07 01 E6 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 52 00 00 00 F4 03 04 00 FB BF 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 88 DA 02 00 35 04 06 00 D9 9B E9 B0 E5 B2 32 3B 63 7D 3F AA B8 B3 [11: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 98 FA 47 00 3F 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 88 DA 02 00 F4 03 04 00 50 66 B5 67 B6 04 01 00 00 E9 52 9F 52 B7 F1 D8 D7 [11:26:51]CommunicateWithHost err = 0 [11:26:51]CheckOFDResponse [11:26:51]1017 (14) - 77093643461234 [11:26:51]1041 (16) - 0000000000871826 [11:26:51]1040 (4) - 187016 [11:26:51]1012 (4) - 19.02.2025 05:04 [11:26:51]1206 (1) - 0 [11:26:51]OFD Sender: Remove packet 187016 [11:26:51]ProducePacketName [11:26:51]name=ofd_packets/00187016 [11:26:51]NVStorageDeleteData [11:26:51]Write to MH i2c: 01 00 00 D4 18 EC [11:26:51]Write i2c OK [11:26:51]MH_I2C_Read... [11:26:51]Read from MH i2c: 01 [11:26:51]MH_I2C_Read... [11:26:51]Read from MH i2c: 01 07 00 [11:26:51]MH_I2C_Read... [11:26:51]Read from MH i2c: 01 07 00 D4 18 00 00 00 00 00 FC 0C FB [11:26:51]RasterBufferAndPrint [11:26:51]line [11:26:51]line [11:26:51]line [11:26:51]line [11:26:51]line [11:26:51]written 0, free lines is 3333 [11:26:51]MH_Cut [11:26:51]Write to MH i2c: D1 01 00 DB 18 01 C5 [11:26:51]Write i2c OK [11:26:51]MH_I2C_Read... [11:26:51]Read from MH i2c: D1 [11:26:51]MH_I2C_Read... [11:26:51]Read from MH i2c: D1 01 00 [11:26:51]MH_I2C_Read... [11:26:51]Read from MH i2c: D1 01 00 DB 18 00 C4 [11:26:51]Write to MH i2c: 01 00 00 DC 18 F4 [11:26:51]Write i2c OK [11:26:51]MH_I2C_Read... [11:26:51]OFD Sender: No OFD packet to send [11:26:51]*** Cut start [11:26:51]*** Partial cut [11:26:51]*** CUTSNS_PIN = 1 [11:26:52]*** CUTSNS_PIN = 0 [11:26:52]*** Brake cut motor [11:26:52]Read from MH i2c: 01 [11:26:52]MH_I2C_Read... [11:26:52]*** Stop cut motor [11:26:52]*** Cut end [11:26:52]Read from MH i2c: 01 07 00 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: 01 07 00 DC 18 00 00 00 00 00 FF 0F 09 [11:26:52]process_action close_receipt done [11:26:52]requested_data is exist [11:26:52]produce_requested_data [11:26:52]requested_item fm.sn is exist - process it [11:26:52]wFMCommunicate request_size=4 [11:26:52]MH_SAM_APDU [11:26:52]CAPDU: 80 11 00 00 [11:26:52]Write to MH i2c: E2 08 00 DD 18 80 11 00 00 00 00 00 00 6F [11:26:52]Write i2c OK [11:26:52]MH_I2C_Read... [11:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:52]Read from MH i2c: E2 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 17 00 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 17 00 DD 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C2 [11: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 [11:26:52]wFMCommunicate OK [11:26:52]requested_item fd.num is exist - process it [11:26:52]SAM_PROTO_GetFieldsCounters [11:26:52]wFMCommunicate request_size=4 [11:26:52]MH_SAM_APDU [11:26:52]CAPDU: 80 13 00 00 [11:26:52]Write to MH i2c: E2 08 00 DE 18 80 13 00 00 00 00 00 00 72 [11:26:52]Write i2c OK [11:26:52]MH_I2C_Read... [11:26:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:52]Read from MH i2c: E2 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 62 00 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 62 00 DE 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 88 DA 02 00 0E 04 04 00 87 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 7B [11: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 88 DA 02 00 0E 04 04 00 87 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:26:52]wFMCommunicate OK [11:26:52]SAM_PROTO_GetFieldsCounters done [11:26:52]requested_item shift.num is exist - process it [11:26:52]requested_item shift.opened is exist - process it [11:26:52]req_shift_opened [11:26:52]FM_GetShiftState [11:26:52]SAM_PROTO_GetShiftState [11:26:52]wFMCommunicate request_size=4 [11:26:52]MH_SAM_APDU [11:26:52]CAPDU: 80 13 01 00 [11:26:52]Write to MH i2c: E2 08 00 DF 18 80 13 01 00 00 00 00 00 74 [11:26:52]Write i2c OK [11:26:52]MH_I2C_Read... [11:26:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:52]Read from MH i2c: E2 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 0E 00 [11:26:52]MH_I2C_Read... [11:26:52]Read from MH i2c: E2 0E 00 DF 18 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F3 [11:26:52]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:26:52]wFMCommunicate OK [11:26:52]SAM_PROTO_GetShiftState done [11:26:52]FM_GetShiftState done [11:26:52]req_shift_opened done [11:26:52]requested_item shift.open_date is exist - process it [11:26:52]req_shift_open_date [11:26:52]req_shift_open_date done [11:26:52]produce_requested_data done [11:26:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187016,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [11:26:52]process_action_free close_receipt [11:26:53]json_value_free [11:26:53]json_value_free done [11:26:53]process_json_proto returns [11:26:53]Send response to host [11:26:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187016,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [11:26:53]free response buf [11:26:53]execute_script done [11:26:53]execute_script returns [11:26:53]free content buf [11:26:53]Sock 7.Close socket [11:26:53]Sock 7.Thread stoped [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:46]OFD Sender: No OFD packet to send [11:27:51]OFD Sender: No OFD packet to send [11:27:56]OFD Sender: No OFD packet to send [11:28:01]OFD Sender: No OFD packet to send [11:28:06]OFD Sender: No OFD packet to send [11:28:11]OFD Sender: No OFD packet to send [11:28:16]OFD Sender: No OFD packet to send [11:28:21]OFD Sender: No OFD packet to send [11:28:26]OFD Sender: No OFD packet to send [11:28:31]OFD Sender: No OFD packet to send [11:28:36]OFD Sender: No OFD packet to send [11:28:41]OFD Sender: No OFD packet to send [11:28:44]accept exits with 9 [11:28:44]New connection [11:28:44]New thread 3067022692 created [11:28:44]Thread 3066879332 joined [11:28:44]Waiting for new connection... [11:28:44] Sock 9.Parse request [11:28:44]Sock 9.Check first char [11:28:44]Sock 9.First char is OK [11:28:44]request: POST /json_proto HTTP/1.0 [11:28:44]Method: POST [11:28:44]URL: /json_proto [11:28:44]Method is POST - this is cgi request [11:28:44]url: /json_proto [11:28:44]query_string will be loaded in cgi processing [11:28:44]execute_cgi json_proto POST (null) [11:28:44]execute_cgi path=json_proto method=POST [11:28:44]POST find Content-Length [11:28:44]Host: 172.17.46.131:8080 [11:28:44]Content-Length: 678 [11:28:44]Content-Type: application/json [11:28:44] [11:28:44]POST finish read [11:28:44]Found Content-Length = 678 [11:28:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412166", "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" ] } } [11:28:44]execute_script... [11:28: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)412166", "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" ] } } [11:28:44]POST & json_proto [11:28:44]process_json_proto [11:28:44]json parsed OK: [11:28:44]protocol is kg_v1.0 [11:28:44]action value=close_receipt [11:28:44]process_action close_receipt [11:28:44]cmd_close_receipt [11:28:44]MH_GetDate [11:28:44]Write to MH i2c: F0 00 00 E0 18 E7 [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: F0 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: F0 09 00 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: F0 09 00 E0 18 00 70 C0 B5 67 7E 41 4F 65 AF [11:28:44]GetLastDocTimeStamp 1739964411 [11:28:44]current date 1739964528 [11:28:44]FM_GetShiftState [11:28:44]SAM_PROTO_GetShiftState [11:28:44]wFMCommunicate request_size=4 [11:28:44]MH_SAM_APDU [11:28:44]CAPDU: 80 13 01 00 [11:28:44]Write to MH i2c: E2 08 00 E1 18 80 13 01 00 00 00 00 00 76 [11:28:44]Write i2c OK [11:28:44]MH_I2C_Read... [11:28:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:44]Read from MH i2c: E2 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: E2 0E 00 [11:28:44]MH_I2C_Read... [11:28:44]Read from MH i2c: E2 0E 00 E1 18 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F5 [11:28:44]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:28:44]wFMCommunicate OK [11:28:44]SAM_PROTO_GetShiftState done [11:28:44]FM_GetShiftState done [11:28:44]opened in 1739929631 [11:28:44]opened+sec_in_day 1740016031 [11:28:44]quantity*price = 200013 [11:28:44]sum+1 = 200014 [11:28:44]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 СНО: Общий режим Чек 83 19.02.2025 11:28 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187017 ФПД: 243999573030786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T112848&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187017&fm=243999573030786&tin=02508201610067®Number=0000000000091857&sum=200000 [11:28:46]StoreToDocumentArchive [11:28:46]shift 647 fd 187017 [11:28:46]save to /storage/0647/doc_00187017 [11:28:46]save last doc name /storage/0647/doc_00187017 to /storage/kkm_last_doc_name [11:28:46]save OK [11:28:46]Clear old archive folders... [11:28:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:28:46]tlvbuf is B6EB94D0 [11:28:46]SAM_PROTO_ClearQueue [11:28:46]wFMCommunicate request_size=4 [11:28:46]MH_SAM_APDU [11:28:46]CAPDU: 80 09 00 00 [11:28:46]Write to MH i2c: E2 08 00 EE 18 80 09 00 00 00 00 00 00 78 [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:46]Read from MH i2c: E2 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 03 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 03 00 EE 18 00 90 00 7A [11:28:46]RAPDU: 90 00 [11:28:46]wFMCommunicate OK [11:28:46]SAM_PROTO_ClearQueue done [11:28:46]KKMCreateOFDPacket [11:28:46]OFDProtocolAddRootSTLVToBuf [11:28:46]FM_MakeSignedData [11:28:46]FM_MakeSignedData [11:28:46]SAM_PROTO_SignData [11:28:46]wFMCommunicate request_size=4 [11:28:46]MH_SAM_APDU [11:28:46]CAPDU: 80 0D 01 02 [11:28:46]Write to MH i2c: E2 08 00 EF 18 80 0D 01 02 00 00 00 00 80 [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:46]Read from MH i2c: E2 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 03 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 03 00 EF 18 00 90 00 7B [11:28:46]RAPDU: 90 00 [11:28:46]wFMCommunicate OK [11:28:46]wFMCommunicate request_size=255 [11:28:46]MH_SAM_APDU [11:28: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 53 00 00 00 F4 03 04 00 70 C0 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 89 DA 02 00 35 04 06 00 DD EA 93 E0 [11:28:46]Write to MH i2c: E2 02 01 F0 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 53 00 00 00 F4 03 04 00 70 C0 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 89 DA 02 00 35 04 06 00 DD EA 93 E0 00 00 61 [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:46]Read from MH i2c: E2 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 03 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 03 00 F0 18 00 90 00 7C [11:28:46]RAPDU: 90 00 [11:28:46]wFMCommunicate OK [11:28:46]wFMCommunicate request_size=7 [11:28:46]MH_SAM_APDU [11:28:46]CAPDU: 80 0D 02 02 02 37 82 [11:28:46]Write to MH i2c: E2 0A 00 F1 18 80 0D 02 02 02 00 37 82 00 00 40 [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:46]Read from MH i2c: E2 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 03 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 03 00 F1 18 00 90 00 7D [11:28:46]RAPDU: 90 00 [11:28:46]wFMCommunicate OK [11:28:46]wFMCommunicate request_size=4 [11:28:46]MH_SAM_APDU [11:28:46]CAPDU: 80 0D 03 02 [11:28:46]Write to MH i2c: E2 08 00 F2 18 80 0D 03 02 00 00 00 00 85 [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:46]Read from MH i2c: E2 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 0B 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 0B 00 F2 18 00 D0 4E 95 B0 C2 8A 28 16 90 00 73 [11:28:46]RAPDU: D0 4E 95 B0 C2 8A 28 16 90 00 [11:28:46]wFMCommunicate OK [11:28:46]SAM_PROTO_SignData done [11:28:46]FM_MakeSignedData done [11:28:46]CreateOFDProtocolMessage [11:28:46]wFMCommunicate request_size=4 [11:28:46]MH_SAM_APDU [11:28:46]CAPDU: 80 11 00 00 [11:28:46]Write to MH i2c: E2 08 00 F3 18 80 11 00 00 00 00 00 00 85 [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:46]Read from MH i2c: E2 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 17 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: E2 17 00 F3 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D8 [11:28:46]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:46]wFMCommunicate OK [11:28:46]CreateOFDProtocolMessage done [11:28:46]OFDSenderStorePacket 187017 [11:28:46]StoreOFDPacket docnum=187017 [11:28: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 14 51 04 01 F1 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 70 C0 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 89 DA 02 00 35 04 06 00 DD EA 93 E0 37 82 D0 4E 95 B0 C2 8A 28 16 [11:28:46]CheckFolder [11:28:46]dirname=/storage/ofd_packets [11:28:46]CheckFolder done [11:28:46]ProducePacketName [11:28:46]name=ofd_packets/00187017 [11:28:46]NVStorageSaveData ofd_packets/00187017 [11:28:46]File name is /storage/ofd_packets/00187017 [11:28:46]Write 298 bytes [11:28:46]NVStorageSaveData done [11:28:46]OFDSenderStorePacket done [11:28:46]KKMCreateOFDPacket done [11:28:46]NVStorageSaveData kkm_last_timestamp [11:28:46]File name is /storage/kkm_last_timestamp [11:28:46]Write 4 bytes [11:28:46]NVStorageSaveData done [11:28:46]ExternCall_PrintAddStr [11:28:46]wPrintStart [11:28:46]Write to MH i2c: 01 00 00 F4 18 0C [11:28:46]Write i2c OK [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: 01 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: 01 07 00 [11:28:46]MH_I2C_Read... [11:28:46]Read from MH i2c: 01 07 00 F4 18 00 00 00 00 00 FF 0F 21 [11:28:46]RasterBufferAndPrint [11:28:46]line Счет N : (1)412166 [11:28:46]line ИНН: 02508201610067 [11:28:46]line Контрольно-Кассовый Чек [11:28:46]line ПРОДАЖА [11:28:46]line ТРК (МРК, ГНК) : 6 [11:28:46]line Товар: 2710194210 [11:28:46]line ДТ-К-5 [11:28:46]line 27.550 * 72.60 [11:28:46]line = 2000.13 [11:28:46]line НДС 12% НСП 1% [11:28:46]line > о реализуемом товаре [11:28:46]line ОКРУГЛЕНИЕ: -0.13 [11:28:46]line ИТОГО: 2000.00 [11:28:46]line Внесено: 2000.00 [11:28:46]line СДАЧА: 0.00 [11:28:46]line НСП 1% : 17.70 [11:28:46]line НДС 12% : 212.40 [11:28:46]line Наличными: 2000.00 [11:28:46]line Безнал.: 0.00 [11:28:46]line Место: АЗС № 92 "Партнер Нефть" [11:28:46]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:28:46]line СНО: Общий режим [11:28:46]line Чек 83 19.02.2025 11:28 [11:28:46]line Смена: 647 ФФД: 1.0 [11:28:46]line ЗНМ: 0300000118 [11:28:46]line РНМ: 0000000000091857 [11:28:46]line Версия ККМ: 001 [11:28:46]line ФМ: 0000000000871826 [11:28:46]line ФД: 187017 [11:28:46]line ФПД: 243999573030786 [11:28:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T112848&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187017&fm=243999573030786&tin=02508201610067®Number=0000000000091857&sum=200000 [11:28:46]OFD Sender: Processing packet 187017 [packets to send 49, broken 48] [11:28:46]ProducePacketName [11:28:46]name=ofd_packets/00187017 [11:28:46]OFD Sender: To server: pG, [11:28:46]CommunicateWithHost lk.salyk.kg:30040 [11:28:46]ConnectInit lk.salyk.kg [11:28:46]written 0, free lines is 4095 [11:28:47]Connected sock=10 [11:28: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 14 51 04 01 F1 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 70 C0 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 89 DA 02 00 35 04 06 00 DD EA 93 E0 37 82 D0 4E 95 B0 C2 8A 28 16 [11:28: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 71 EA 47 00 97 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 89 DA 02 00 F4 03 04 00 C4 66 B5 67 B6 04 01 00 00 FA 2D 39 64 DA C0 25 BB [11:28:47]CommunicateWithHost err = 0 [11:28:47]CheckOFDResponse [11:28:47]1017 (14) - 77093643461234 [11:28:47]1041 (16) - 0000000000871826 [11:28:47]1040 (4) - 187017 [11:28:47]1012 (4) - 19.02.2025 05:06 [11:28:47]1206 (1) - 0 [11:28:47]OFD Sender: Remove packet 187017 [11:28:47]ProducePacketName [11:28:47]name=ofd_packets/00187017 [11:28:47]NVStorageDeleteData [11:28:47]Write to MH i2c: 01 00 00 1F 19 38 [11:28:47]Write i2c OK [11:28:47]MH_I2C_Read... [11:28:47]Read from MH i2c: 01 [11:28:47]MH_I2C_Read... [11:28:47]Read from MH i2c: 01 07 00 [11:28:47]MH_I2C_Read... [11:28:47]Read from MH i2c: 01 07 00 1F 19 00 00 00 00 00 00 0D 4C [11:28:47]RasterBufferAndPrint [11:28:47]line [11:28:47]line [11:28:47]line [11:28:47]line [11:28:47]line [11:28:47]written 0, free lines is 3334 [11:28:47]MH_Cut [11:28:47]Write to MH i2c: D1 01 00 26 19 01 11 [11:28:47]Write i2c OK [11:28:47]MH_I2C_Read... [11:28:47]Read from MH i2c: D1 [11:28:47]MH_I2C_Read... [11:28:47]Read from MH i2c: D1 01 00 [11:28:47]MH_I2C_Read... [11:28:47]Read from MH i2c: D1 01 00 26 19 00 10 [11:28:47]Write to MH i2c: 01 00 00 27 19 40 [11:28:47]Write i2c OK [11:28:47]MH_I2C_Read... [11:28:47]OFD Sender: No OFD packet to send [11:28:48]*** Cut start [11:28:48]*** Partial cut [11:28:48]*** CUTSNS_PIN = 1 [11:28:48]*** CUTSNS_PIN = 0 [11:28:48]*** Brake cut motor [11:28:48]Read from MH i2c: 01 [11:28:48]MH_I2C_Read... [11:28:48]*** Stop cut motor [11:28:48]*** Cut end [11:28:48]Read from MH i2c: 01 07 00 [11:28:48]MH_I2C_Read... [11:28:48]Read from MH i2c: 01 07 00 27 19 00 00 00 00 00 FF 0F 55 [11:28:48]process_action close_receipt done [11:28:48]requested_data is exist [11:28:48]produce_requested_data [11:28:48]requested_item fm.sn is exist - process it [11:28:48]wFMCommunicate request_size=4 [11:28:48]MH_SAM_APDU [11:28:48]CAPDU: 80 11 00 00 [11:28:48]Write to MH i2c: E2 08 00 28 19 80 11 00 00 00 00 00 00 BB [11:28:48]Write i2c OK [11:28:48]MH_I2C_Read... [11:28:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:48]Read from MH i2c: E2 [11:28:48]MH_I2C_Read... [11:28:48]Read from MH i2c: E2 17 00 [11:28:48]MH_I2C_Read... [11:28:48]Read from MH i2c: E2 17 00 28 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0E [11: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 [11:28:48]wFMCommunicate OK [11:28:48]requested_item fd.num is exist - process it [11:28:48]SAM_PROTO_GetFieldsCounters [11:28:48]wFMCommunicate request_size=4 [11:28:48]MH_SAM_APDU [11:28:48]CAPDU: 80 13 00 00 [11:28:48]Write to MH i2c: E2 08 00 29 19 80 13 00 00 00 00 00 00 BE [11:28:48]Write i2c OK [11:28:48]MH_I2C_Read... [11:28:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:49]Read from MH i2c: E2 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 62 00 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 62 00 29 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 89 DA 02 00 0E 04 04 00 87 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 CB [11:28: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 89 DA 02 00 0E 04 04 00 87 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:28:49]wFMCommunicate OK [11:28:49]SAM_PROTO_GetFieldsCounters done [11:28:49]requested_item shift.num is exist - process it [11:28:49]requested_item shift.opened is exist - process it [11:28:49]req_shift_opened [11:28:49]FM_GetShiftState [11:28:49]SAM_PROTO_GetShiftState [11:28:49]wFMCommunicate request_size=4 [11:28:49]MH_SAM_APDU [11:28:49]CAPDU: 80 13 01 00 [11:28:49]Write to MH i2c: E2 08 00 2A 19 80 13 01 00 00 00 00 00 C0 [11:28:49]Write i2c OK [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 [11:28:49]MH_I2C_Read... [11:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:49]Read from MH i2c: E2 0E 00 [11:28:49]MH_I2C_Read... [11:28:49]Read from MH i2c: E2 0E 00 2A 19 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 3F [11:28:49]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:28:49]wFMCommunicate OK [11:28:49]SAM_PROTO_GetShiftState done [11:28:49]FM_GetShiftState done [11:28:49]req_shift_opened done [11:28:49]requested_item shift.open_date is exist - process it [11:28:49]req_shift_open_date [11:28:49]req_shift_open_date done [11:28:49]produce_requested_data done [11:28:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187017,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [11:28:49]process_action_free close_receipt [11:28:49]json_value_free [11:28:49]json_value_free done [11:28:49]process_json_proto returns [11:28:49]Send response to host [11:28:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187017,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [11:28:49]free response buf [11:28:49]execute_script done [11:28:49]execute_script returns [11:28:49]free content buf [11:28:49]Sock 9.Close socket [11:28:49]Sock 9.Thread stoped [11:28:52]OFD Sender: No OFD packet to send [11:28:57]OFD Sender: No OFD packet to send [11:29:02]OFD Sender: No OFD packet to send [11:29:07]accept exits with 7 [11:29:07]New connection [11:29:07]New thread 3066879332 created [11:29:07]Thread 3067022692 joined [11:29:07]Waiting for new connection... [11:29:07] Sock 7.Parse request [11:29:07]Sock 7.Check first char [11:29:07]Sock 7.First char is OK [11:29:07]request: POST /json_proto HTTP/1.0 [11:29:07]Method: POST [11:29:07]URL: /json_proto [11:29:07]Method is POST - this is cgi request [11:29:07]url: /json_proto [11:29:07]query_string will be loaded in cgi processing [11:29:07]execute_cgi json_proto POST (null) [11:29:07]execute_cgi path=json_proto method=POST [11:29:07]POST find Content-Length [11:29:07]Host: 172.17.46.131:8080 [11:29:07]Content-Length: 677 [11:29:07]Content-Type: application/json [11:29:07] [11:29:07]POST finish read [11:29:07]Found Content-Length = 677 [11:29:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412168", "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.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:29:07]execute_script... [11: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)412168", "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.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:29:07]POST & json_proto [11:29:07]process_json_proto [11:29:07]json parsed OK: [11:29:07]protocol is kg_v1.0 [11:29:07]action value=close_receipt [11:29:07]process_action close_receipt [11:29:07]cmd_close_receipt [11:29:07]MH_GetDate [11:29:07]Write to MH i2c: F0 00 00 2B 19 33 [11:29:07]Write i2c OK [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: F0 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: F0 09 00 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: F0 09 00 2B 19 00 86 C0 B5 67 7E 41 4F 65 11 [11:29:07]GetLastDocTimeStamp 1739964528 [11:29:07]current date 1739964550 [11:29:07]FM_GetShiftState [11:29:07]SAM_PROTO_GetShiftState [11:29:07]wFMCommunicate request_size=4 [11:29:07]MH_SAM_APDU [11:29:07]CAPDU: 80 13 01 00 [11:29:07]Write to MH i2c: E2 08 00 2C 19 80 13 01 00 00 00 00 00 C2 [11:29:07]Write i2c OK [11:29:07]MH_I2C_Read... [11:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:07]Read from MH i2c: E2 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: E2 0E 00 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: E2 0E 00 2C 19 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 41 [11:29:07]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:29:07]wFMCommunicate OK [11:29:07]SAM_PROTO_GetShiftState done [11:29:07]FM_GetShiftState done [11:29:07]opened in 1739929631 [11:29:07]opened+sec_in_day 1740016031 [11:29:07]quantity*price = 25038 [11:29:07]sum+1 = 25039 [11:29:07]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 СНО: Общий режим Чек 84 19.02.2025 11:29 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187018 ФПД: 239330592626250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T112910&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187018&fm=239330592626250&tin=02508201610067®Number=0000000000091857&sum=25000 [11:29:08]StoreToDocumentArchive [11:29:08]shift 647 fd 187018 [11:29:08]save to /storage/0647/doc_00187018 [11:29:08]save last doc name /storage/0647/doc_00187018 to /storage/kkm_last_doc_name [11:29:08]save OK [11:29:08]Clear old archive folders... [11:29:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:08]tlvbuf is 00639050 [11:29:08]SAM_PROTO_ClearQueue [11:29:08]wFMCommunicate request_size=4 [11:29:08]MH_SAM_APDU [11:29:08]CAPDU: 80 09 00 00 [11:29:08]Write to MH i2c: E2 08 00 39 19 80 09 00 00 00 00 00 00 C4 [11:29:08]Write i2c OK [11:29:08]MH_I2C_Read... [11:29:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:08]Read from MH i2c: E2 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: E2 03 00 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: E2 03 00 39 19 00 90 00 C6 [11:29:08]RAPDU: 90 00 [11:29:08]wFMCommunicate OK [11:29:08]SAM_PROTO_ClearQueue done [11:29:08]KKMCreateOFDPacket [11:29:08]OFDProtocolAddRootSTLVToBuf [11:29:08]FM_MakeSignedData [11:29:08]FM_MakeSignedData [11:29:08]SAM_PROTO_SignData [11:29:08]wFMCommunicate request_size=4 [11:29:08]MH_SAM_APDU [11:29:08]CAPDU: 80 0D 01 02 [11:29:08]Write to MH i2c: E2 08 00 3A 19 80 0D 01 02 00 00 00 00 CC [11:29:08]Write i2c OK [11:29:08]MH_I2C_Read... [11:29:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:08]Read from MH i2c: E2 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: E2 03 00 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: E2 03 00 3A 19 00 90 00 C7 [11:29:08]RAPDU: 90 00 [11:29:08]wFMCommunicate OK [11:29:08]wFMCommunicate request_size=255 [11:29:08]MH_SAM_APDU [11:29:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 54 00 00 00 F4 03 04 00 86 C0 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 8A DA 02 00 35 04 06 00 D9 [11:29:08]Write to MH i2c: E2 02 01 3B 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 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 54 00 00 00 F4 03 04 00 86 C0 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 8A DA 02 00 35 04 06 00 D9 00 00 5A [11:29:08]Write i2c OK [11:29:08]MH_I2C_Read... [11:29:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:08]Read from MH i2c: E2 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: E2 03 00 [11:29:08]MH_I2C_Read... [11:29:08]Read from MH i2c: E2 03 00 3B 19 00 90 00 C8 [11:29:08]RAPDU: 90 00 [11:29:08]wFMCommunicate OK [11:29:08]wFMCommunicate request_size=10 [11:29:08]MH_SAM_APDU [11:29:08]CAPDU: 80 0D 02 02 05 AB 7E F5 16 4A [11:29:08]Write to MH i2c: E2 0D 00 3C 19 80 0D 02 02 05 00 AB 7E F5 16 4A 00 00 57 [11:29:08]Write i2c OK [11:29:08]MH_I2C_Read... [11:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:09]Read from MH i2c: E2 [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: E2 03 00 [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: E2 03 00 3C 19 00 90 00 C9 [11:29:09]RAPDU: 90 00 [11:29:09]wFMCommunicate OK [11:29:09]wFMCommunicate request_size=4 [11:29:09]MH_SAM_APDU [11:29:09]CAPDU: 80 0D 03 02 [11:29:09]Write to MH i2c: E2 08 00 3D 19 80 0D 03 02 00 00 00 00 D1 [11:29:09]Write i2c OK [11:29:09]MH_I2C_Read... [11:29:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:09]Read from MH i2c: E2 [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: E2 0B 00 [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: E2 0B 00 3D 19 00 8D 85 EE 80 93 E8 5E B4 90 00 DF [11:29:09]RAPDU: 8D 85 EE 80 93 E8 5E B4 90 00 [11:29:09]wFMCommunicate OK [11:29:09]SAM_PROTO_SignData done [11:29:09]FM_MakeSignedData done [11:29:09]CreateOFDProtocolMessage [11:29:09]wFMCommunicate request_size=4 [11:29:09]MH_SAM_APDU [11:29:09]CAPDU: 80 11 00 00 [11:29:09]Write to MH i2c: E2 08 00 3E 19 80 11 00 00 00 00 00 00 D1 [11:29:09]Write i2c OK [11:29:09]MH_I2C_Read... [11:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:09]Read from MH i2c: E2 [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: E2 17 00 [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: E2 17 00 3E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 24 [11: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 [11:29:09]wFMCommunicate OK [11:29:09]CreateOFDProtocolMessage done [11:29:09]OFDSenderStorePacket 187018 [11:29:09]StoreOFDPacket docnum=187018 [11: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 0F 01 00 00 75 B8 07 01 3B 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 54 00 00 00 F4 03 04 00 86 C0 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 8A DA 02 00 35 04 06 00 D9 AB 7E F5 16 4A 8D 85 EE 80 93 E8 5E B4 [11:29:09]CheckFolder [11:29:09]dirname=/storage/ofd_packets [11:29:09]CheckFolder done [11:29:09]ProducePacketName [11:29:09]name=ofd_packets/00187018 [11:29:09]NVStorageSaveData ofd_packets/00187018 [11:29:09]File name is /storage/ofd_packets/00187018 [11:29:09]Write 301 bytes [11:29:09]NVStorageSaveData done [11:29:09]OFDSenderStorePacket done [11:29:09]KKMCreateOFDPacket done [11:29:09]NVStorageSaveData kkm_last_timestamp [11:29:09]File name is /storage/kkm_last_timestamp [11:29:09]Write 4 bytes [11:29:09]NVStorageSaveData done [11:29:09]ExternCall_PrintAddStr [11:29:09]wPrintStart [11:29:09]Write to MH i2c: 01 00 00 3F 19 58 [11:29:09]Write i2c OK [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: 01 [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: 01 07 00 [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: 01 07 00 3F 19 00 00 00 00 00 FF 0F 6D [11:29:09]RasterBufferAndPrint [11:29:09]line Счет N : (1)412168 [11:29:09]line ИНН: 02508201610067 [11:29:09]line Контрольно-Кассовый Чек [11:29:09]line ПРОДАЖА [11:29:09]line ТРК (МРК, ГНК) : 32 [11:29:09]line Товар: 2710124130 [11:29:09]line Аи-92-К-2 [11:29:09]line 3.900 * 64.20 [11:29:09]line = 250.38 [11:29:09]line НДС 12% НСП 1% [11:29:09]line > о реализуемом товаре [11:29:09]line ОКРУГЛЕНИЕ: -0.38 [11:29:09]line ИТОГО: 250.00 [11:29:09]line Внесено: 250.00 [11:29:09]line СДАЧА: 0.00 [11:29:09]line НСП 1% : 2.22 [11:29:09]line НДС 12% : 26.59 [11:29:09]line Наличными: 250.00 [11:29:09]line Безнал.: 0.00 [11:29:09]line Место: АЗС № 92 "Партнер Нефть" [11:29:09]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:29:09]line СНО: Общий режим [11:29:09]line Чек 84 19.02.2025 11:29 [11:29:09]line Смена: 647 ФФД: 1.0 [11:29:09]line ЗНМ: 0300000118 [11:29:09]line РНМ: 0000000000091857 [11:29:09]line Версия ККМ: 001 [11:29:09]line ФМ: 0000000000871826 [11:29:09]line ФД: 187018 [11:29:09]line ФПД: 239330592626250 [11:29:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T112910&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187018&fm=239330592626250&tin=02508201610067®Number=0000000000091857&sum=25000 [11:29:09]written 0, free lines is 4095 [11:29:09]OFD Sender: Processing packet 187018 [packets to send 49, broken 48] [11:29:09]ProducePacketName [11:29:09]name=ofd_packets/00187018 [11:29:09]OFD Sender: To server: pG, [11:29:09]CommunicateWithHost lk.salyk.kg:30040 [11:29:09]ConnectInit lk.salyk.kg [11:29:09]Connected sock=10 [11: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 0F 01 00 00 75 B8 07 01 3B 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 54 00 00 00 F4 03 04 00 86 C0 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 8A DA 02 00 35 04 06 00 D9 AB 7E F5 16 4A 8D 85 EE 80 93 E8 5E B4 [11:29: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 EB F1 47 00 37 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 8A DA 02 00 F4 03 04 00 DA 66 B5 67 B6 04 01 00 00 7A CD EA AE 3F 29 AC 79 [11:29:09]CommunicateWithHost err = 0 [11:29:09]CheckOFDResponse [11:29:09]1017 (14) - 77093643461234 [11:29:09]1041 (16) - 0000000000871826 [11:29:09]1040 (4) - 187018 [11:29:09]1012 (4) - 19.02.2025 05:06 [11:29:09]1206 (1) - 0 [11:29:09]OFD Sender: Remove packet 187018 [11:29:09]ProducePacketName [11:29:09]name=ofd_packets/00187018 [11:29:09]NVStorageDeleteData [11:29:09]Write to MH i2c: 01 00 00 6A 19 83 [11:29:09]Write i2c OK [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: 01 [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: 01 07 00 [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: 01 07 00 6A 19 00 00 00 00 00 0B 0D A2 [11:29:09]RasterBufferAndPrint [11:29:09]line [11:29:09]line [11:29:09]line [11:29:09]line [11:29:09]line [11:29:09]written 0, free lines is 3345 [11:29:09]MH_Cut [11:29:09]Write to MH i2c: D1 01 00 71 19 01 5C [11:29:09]Write i2c OK [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: D1 [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: D1 01 00 [11:29:09]MH_I2C_Read... [11:29:09]Read from MH i2c: D1 01 00 71 19 00 5B [11:29:09]Write to MH i2c: 01 00 00 72 19 8B [11:29:09]Write i2c OK [11:29:09]MH_I2C_Read... [11:29:10]OFD Sender: No OFD packet to send [11:29:10]*** Cut start [11:29:10]*** Partial cut [11:29:10]*** CUTSNS_PIN = 1 [11:29:10]*** CUTSNS_PIN = 0 [11:29:10]*** Brake cut motor [11:29:11]Read from MH i2c: 01 [11:29:11]MH_I2C_Read... [11:29:11]*** Stop cut motor [11:29:11]*** Cut end [11:29:11]Read from MH i2c: 01 07 00 [11:29:11]MH_I2C_Read... [11:29:11]Read from MH i2c: 01 07 00 72 19 00 00 00 00 00 FF 0F A0 [11:29:11]process_action close_receipt done [11:29:11]requested_data is exist [11:29:11]produce_requested_data [11:29:11]requested_item fm.sn is exist - process it [11:29:11]wFMCommunicate request_size=4 [11:29:11]MH_SAM_APDU [11:29:11]CAPDU: 80 11 00 00 [11:29:11]Write to MH i2c: E2 08 00 73 19 80 11 00 00 00 00 00 00 06 [11:29:11]Write i2c OK [11:29:11]MH_I2C_Read... [11:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:11]Read from MH i2c: E2 [11:29:11]MH_I2C_Read... [11:29:11]Read from MH i2c: E2 17 00 [11:29:11]MH_I2C_Read... [11:29:11]Read from MH i2c: E2 17 00 73 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 59 [11: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 [11:29:11]wFMCommunicate OK [11:29:11]requested_item fd.num is exist - process it [11:29:11]SAM_PROTO_GetFieldsCounters [11:29:11]wFMCommunicate request_size=4 [11:29:11]MH_SAM_APDU [11:29:11]CAPDU: 80 13 00 00 [11:29:11]Write to MH i2c: E2 08 00 74 19 80 13 00 00 00 00 00 00 09 [11:29:11]Write i2c OK [11:29:11]MH_I2C_Read... [11:29:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:11]Read from MH i2c: E2 [11:29:11]MH_I2C_Read... [11:29:11]Read from MH i2c: E2 62 00 [11:29:11]MH_I2C_Read... [11:29:11]Read from MH i2c: E2 62 00 74 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 8A DA 02 00 0E 04 04 00 87 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 1A [11: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 8A DA 02 00 0E 04 04 00 87 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:29:11]wFMCommunicate OK [11:29:11]SAM_PROTO_GetFieldsCounters done [11:29:11]requested_item shift.num is exist - process it [11:29:11]requested_item shift.opened is exist - process it [11:29:11]req_shift_opened [11:29:11]FM_GetShiftState [11:29:11]SAM_PROTO_GetShiftState [11:29:11]wFMCommunicate request_size=4 [11:29:11]MH_SAM_APDU [11:29:11]CAPDU: 80 13 01 00 [11:29:11]Write to MH i2c: E2 08 00 75 19 80 13 01 00 00 00 00 00 0B [11:29:11]Write i2c OK [11:29:11]MH_I2C_Read... [11:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:11]Read from MH i2c: E2 [11:29:11]MH_I2C_Read... [11:29:11]Read from MH i2c: E2 0E 00 [11:29:11]MH_I2C_Read... [11:29:11]Read from MH i2c: E2 0E 00 75 19 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 8A [11:29:11]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:29:11]wFMCommunicate OK [11:29:11]SAM_PROTO_GetShiftState done [11:29:11]FM_GetShiftState done [11:29:11]req_shift_opened done [11:29:11]requested_item shift.open_date is exist - process it [11:29:11]req_shift_open_date [11:29:11]req_shift_open_date done [11:29:11]produce_requested_data done [11:29:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187018,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [11:29:11]process_action_free close_receipt [11:29:11]json_value_free [11:29:11]json_value_free done [11:29:11]process_json_proto returns [11:29:11]Send response to host [11:29:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187018,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [11:29:11]free response buf [11:29:11]execute_script done [11:29:11]execute_script returns [11:29:11]free content buf [11:29:11]Sock 7.Close socket [11:29:11]Sock 7.Thread stoped [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:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:50]OFD Sender: No OFD packet to send [11:38:55]OFD Sender: No OFD packet to send [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:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:26]OFD Sender: No OFD packet to send [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:21]accept exits with 9 [11:41:21]New connection [11:41:21]New thread 3067022692 created [11:41:21]Thread 3066879332 joined [11:41:21]Waiting for new connection... [11:41:21] Sock 9.Parse request [11:41:21]Sock 9.Check first char [11:41:21]Sock 9.First char is OK [11:41:21]request: POST /json_proto HTTP/1.0 [11:41:21]Method: POST [11:41:21]URL: /json_proto [11:41:21]Method is POST - this is cgi request [11:41:21]url: /json_proto [11:41:21]query_string will be loaded in cgi processing [11:41:21]execute_cgi json_proto POST (null) [11:41:21]execute_cgi path=json_proto method=POST [11:41:21]POST find Content-Length [11:41:21]Host: 172.17.46.131:8080 [11:41:21]Content-Length: 800 [11:41:21]Content-Type: application/json [11:41:21] [11:41:21]POST finish read [11:41:21]Found Content-Length = 800 [11:41:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412169", "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" ] } } [11:41:21]execute_script... [11:41: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)412169", "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" ] } } [11:41:21]POST & json_proto [11:41:21]process_json_proto [11:41:21]json parsed OK: [11:41:21]protocol is kg_v1.0 [11:41:21]action value=close_receipt [11:41:21]process_action close_receipt [11:41:21]cmd_close_receipt [11:41:21]MH_GetDate [11:41:21]Write to MH i2c: F0 00 00 76 19 7E [11:41:21]Write i2c OK [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: F0 [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: F0 09 00 [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: F0 09 00 76 19 00 64 C3 B5 67 7E 41 4F 65 3D [11:41:21]GetLastDocTimeStamp 1739964550 [11:41:21]current date 1739965284 [11:41:21]FM_GetShiftState [11:41:21]SAM_PROTO_GetShiftState [11:41:21]wFMCommunicate request_size=4 [11:41:21]MH_SAM_APDU [11:41:21]CAPDU: 80 13 01 00 [11:41:21]Write to MH i2c: E2 08 00 77 19 80 13 01 00 00 00 00 00 0D [11:41:21]Write i2c OK [11:41:21]MH_I2C_Read... [11:41:21]OFD Sender: No OFD packet to send [11:41:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:21]Read from MH i2c: E2 [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: E2 0E 00 [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: E2 0E 00 77 19 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 8C [11:41:21]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:41:21]wFMCommunicate OK [11:41:21]SAM_PROTO_GetShiftState done [11:41:21]FM_GetShiftState done [11:41:21]opened in 1739929631 [11:41:21]opened+sec_in_day 1740016031 [11:41:21]quantity*price = 50011 [11:41:21]sum+1 = 50013 [11:41:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.12 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.12 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 85 19.02.2025 11:41 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187019 ФПД: 132324351384041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T114124&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187019&fm=132324351384041&tin=02508201610067®Number=0000000000091857&sum=50012 [11:41:22]StoreToDocumentArchive [11:41:22]shift 647 fd 187019 [11:41:22]save to /storage/0647/doc_00187019 [11:41:22]save last doc name /storage/0647/doc_00187019 to /storage/kkm_last_doc_name [11:41:22]save OK [11:41:22]Clear old archive folders... [11:41:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:22]tlvbuf is 00649420 [11:41:22]SAM_PROTO_ClearQueue [11:41:22]wFMCommunicate request_size=4 [11:41:22]MH_SAM_APDU [11:41:22]CAPDU: 80 09 00 00 [11:41:22]Write to MH i2c: E2 08 00 84 19 80 09 00 00 00 00 00 00 0F [11:41:22]Write i2c OK [11:41:22]MH_I2C_Read... [11:41:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:22]Read from MH i2c: E2 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: E2 03 00 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: E2 03 00 84 19 00 90 00 11 [11:41:22]RAPDU: 90 00 [11:41:22]wFMCommunicate OK [11:41:22]SAM_PROTO_ClearQueue done [11:41:22]KKMCreateOFDPacket [11:41:22]OFDProtocolAddRootSTLVToBuf [11:41:22]FM_MakeSignedData [11:41:22]FM_MakeSignedData [11:41:22]SAM_PROTO_SignData [11:41:22]wFMCommunicate request_size=4 [11:41:22]MH_SAM_APDU [11:41:22]CAPDU: 80 0D 01 02 [11:41:22]Write to MH i2c: E2 08 00 85 19 80 0D 01 02 00 00 00 00 17 [11:41:22]Write i2c OK [11:41:22]MH_I2C_Read... [11:41:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:22]Read from MH i2c: E2 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: E2 03 00 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: E2 03 00 85 19 00 90 00 12 [11:41:22]RAPDU: 90 00 [11:41:22]wFMCommunicate OK [11:41:22]wFMCommunicate request_size=255 [11:41:22]MH_SAM_APDU [11:41:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 55 00 00 00 F4 03 04 00 64 C3 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 8B DA 02 00 35 04 06 00 78 [11:41:22]Write to MH i2c: E2 02 01 86 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 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 55 00 00 00 F4 03 04 00 64 C3 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 8B DA 02 00 35 04 06 00 78 00 00 C8 [11:41:22]Write i2c OK [11:41:22]MH_I2C_Read... [11:41:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:22]Read from MH i2c: E2 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: E2 03 00 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: E2 03 00 86 19 00 90 00 13 [11:41:22]RAPDU: 90 00 [11:41:22]wFMCommunicate OK [11:41:22]wFMCommunicate request_size=10 [11:41:22]MH_SAM_APDU [11:41:22]CAPDU: 80 0D 02 02 05 59 29 F5 99 E9 [11:41:22]Write to MH i2c: E2 0D 00 87 19 80 0D 02 02 05 00 59 29 F5 99 E9 00 00 1D [11:41:22]Write i2c OK [11:41:22]MH_I2C_Read... [11:41:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:22]Read from MH i2c: E2 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: E2 03 00 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: E2 03 00 87 19 00 90 00 14 [11:41:22]RAPDU: 90 00 [11:41:22]wFMCommunicate OK [11:41:22]wFMCommunicate request_size=4 [11:41:22]MH_SAM_APDU [11:41:22]CAPDU: 80 0D 03 02 [11:41:22]Write to MH i2c: E2 08 00 88 19 80 0D 03 02 00 00 00 00 1C [11:41:22]Write i2c OK [11:41:22]MH_I2C_Read... [11:41:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:22]Read from MH i2c: E2 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: E2 0B 00 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: E2 0B 00 88 19 00 4F 1B AA 90 33 54 F3 98 90 00 D3 [11:41:22]RAPDU: 4F 1B AA 90 33 54 F3 98 90 00 [11:41:22]wFMCommunicate OK [11:41:22]SAM_PROTO_SignData done [11:41:22]FM_MakeSignedData done [11:41:22]CreateOFDProtocolMessage [11:41:22]wFMCommunicate request_size=4 [11:41:22]MH_SAM_APDU [11:41:22]CAPDU: 80 11 00 00 [11:41:22]Write to MH i2c: E2 08 00 89 19 80 11 00 00 00 00 00 00 1C [11:41:22]Write i2c OK [11:41:22]MH_I2C_Read... [11:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:22]Read from MH i2c: E2 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: E2 17 00 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: E2 17 00 89 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6F [11:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:41:22]wFMCommunicate OK [11:41:22]CreateOFDProtocolMessage done [11:41:22]OFDSenderStorePacket 187019 [11:41:22]StoreOFDPacket docnum=187019 [11:41: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 0F 01 00 00 57 FA 07 01 73 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 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 55 00 00 00 F4 03 04 00 64 C3 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 8B DA 02 00 35 04 06 00 78 59 29 F5 99 E9 4F 1B AA 90 33 54 F3 98 [11:41:22]CheckFolder [11:41:22]dirname=/storage/ofd_packets [11:41:22]CheckFolder done [11:41:22]ProducePacketName [11:41:22]name=ofd_packets/00187019 [11:41:22]NVStorageSaveData ofd_packets/00187019 [11:41:22]File name is /storage/ofd_packets/00187019 [11:41:22]Write 301 bytes [11:41:22]NVStorageSaveData done [11:41:22]OFDSenderStorePacket done [11:41:22]KKMCreateOFDPacket done [11:41:22]NVStorageSaveData kkm_last_timestamp [11:41:22]File name is /storage/kkm_last_timestamp [11:41:22]Write 4 bytes [11:41:22]NVStorageSaveData done [11:41:22]ExternCall_PrintAddStr [11:41:22]wPrintStart [11:41:22]Write to MH i2c: 01 00 00 8A 19 A3 [11:41:22]Write i2c OK [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: 01 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: 01 07 00 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: 01 07 00 8A 19 00 00 00 00 00 FF 0F B8 [11:41:22]RasterBufferAndPrint [11:41:22]line Счет N : (1)412169 [11:41:22]line ИНН: 02508201610067 [11:41:22]line Контрольно-Кассовый Чек [11:41:22]line ПРОДАЖА [11:41:22]line ТРК (МРК, ГНК) : 32 [11:41:22]line Товар: 2710124130 [11:41:22]line Аи-92-К-2 [11:41:22]line 7.790 * 64.20 [11:41:22]line = 500.12 [11:41:22]line НДС 12% НСП 1% [11:41:22]line > о реализуемом товаре [11:41:22]line ИТОГО: 500.12 [11:41:22]line НСП 1% : 4.43 [11:41:22]line НДС 12% : 53.11 [11:41:22]line Наличными: 0.00 [11:41:22]line Безнал.: 500.12 [11:41:22]line Место: АЗС № 92 "Партнер Нефть" [11:41:22]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:41:22]line СНО: Общий режим [11:41:22]line Чек 85 19.02.2025 11:41 [11:41:22]line Смена: 647 ФФД: 1.0 [11:41:22]line ЗНМ: 0300000118 [11:41:22]line РНМ: 0000000000091857 [11:41:22]line Версия ККМ: 001 [11:41:22]line Платежная система: O! деньги [11:41:22]line ФМ: 0000000000871826 [11:41:22]line ФД: 187019 [11:41:22]line ФПД: 132324351384041 [11:41:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T114124&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187019&fm=132324351384041&tin=02508201610067®Number=0000000000091857&sum=50012 [11:41:22]written 0, free lines is 4095 [11:41:22]OFD Sender: Processing packet 187019 [packets to send 49, broken 48] [11:41:22]ProducePacketName [11:41:22]name=ofd_packets/00187019 [11:41:22]OFD Sender: To server: pG, [11:41:22]CommunicateWithHost lk.salyk.kg:30040 [11:41:22]ConnectInit lk.salyk.kg [11:41:23]Connected sock=10 [11:41: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 57 FA 07 01 73 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 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 55 00 00 00 F4 03 04 00 64 C3 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 8B DA 02 00 35 04 06 00 78 59 29 F5 99 E9 4F 1B AA 90 33 54 F3 98 [11:41:23]Write to MH i2c: 01 00 00 B4 19 CD [11:41:23]Write i2c OK [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: 01 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: 01 07 00 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: 01 07 00 B4 19 00 00 00 00 00 10 0D F1 [11:41:23]RasterBufferAndPrint [11:41:23]line [11:41:23]line [11:41:23]line [11:41:23]line [11:41:23]line [11:41:23]written 0, free lines is 3352 [11:41:23]MH_Cut [11:41:23]Write to MH i2c: D1 01 00 BB 19 01 A6 [11:41:23]Write i2c OK [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: D1 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: D1 01 00 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: D1 01 00 BB 19 00 A5 [11:41:23]Write to MH i2c: 01 00 00 BC 19 D5 [11:41:23]Write i2c OK [11:41:23]MH_I2C_Read... [11:41: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 12 01 47 00 D6 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8B DA 02 00 F4 03 04 00 B8 69 B5 67 B6 04 01 00 00 F3 05 21 C2 1C 52 A3 56 [11:41:23]CommunicateWithHost err = 0 [11:41:23]CheckOFDResponse [11:41:23]1017 (14) - 77093643461234 [11:41:23]1041 (16) - 0000000000871826 [11:41:23]1040 (4) - 187019 [11:41:23]1012 (4) - 19.02.2025 05:18 [11:41:23]1206 (1) - 0 [11:41:23]OFD Sender: Remove packet 187019 [11:41:23]ProducePacketName [11:41:23]name=ofd_packets/00187019 [11:41:23]NVStorageDeleteData [11:41:23]OFD Sender: No OFD packet to send [11:41:23]*** Cut start [11:41:23]*** Partial cut [11:41:23]*** CUTSNS_PIN = 1 [11:41:23]*** CUTSNS_PIN = 0 [11:41:24]*** Brake cut motor [11:41:24]Read from MH i2c: 01 [11:41:24]MH_I2C_Read... [11:41:24]*** Stop cut motor [11:41:24]*** Cut end [11:41:24]Read from MH i2c: 01 07 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 BC 19 00 00 00 00 00 FF 0F EA [11:41:24]process_action close_receipt done [11:41:24]requested_data is exist [11:41:24]produce_requested_data [11:41:24]requested_item fm.sn is exist - process it [11:41:24]wFMCommunicate request_size=4 [11:41:24]MH_SAM_APDU [11:41:24]CAPDU: 80 11 00 00 [11:41:24]Write to MH i2c: E2 08 00 BD 19 80 11 00 00 00 00 00 00 50 [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:24]Read from MH i2c: E2 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: E2 17 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: E2 17 00 BD 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A3 [11:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:41:24]wFMCommunicate OK [11:41:24]requested_item fd.num is exist - process it [11:41:24]SAM_PROTO_GetFieldsCounters [11:41:24]wFMCommunicate request_size=4 [11:41:24]MH_SAM_APDU [11:41:24]CAPDU: 80 13 00 00 [11:41:24]Write to MH i2c: E2 08 00 BE 19 80 13 00 00 00 00 00 00 53 [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:24]Read from MH i2c: E2 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: E2 62 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: E2 62 00 BE 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 8B DA 02 00 0E 04 04 00 87 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 68 [11:41: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 8B DA 02 00 0E 04 04 00 87 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:41:24]wFMCommunicate OK [11:41:24]SAM_PROTO_GetFieldsCounters done [11:41:24]requested_item shift.num is exist - process it [11:41:24]requested_item shift.opened is exist - process it [11:41:24]req_shift_opened [11:41:24]FM_GetShiftState [11:41:24]SAM_PROTO_GetShiftState [11:41:24]wFMCommunicate request_size=4 [11:41:24]MH_SAM_APDU [11:41:24]CAPDU: 80 13 01 00 [11:41:24]Write to MH i2c: E2 08 00 BF 19 80 13 01 00 00 00 00 00 55 [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:24]Read from MH i2c: E2 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: E2 0E 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: E2 0E 00 BF 19 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D4 [11:41:24]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:41:24]wFMCommunicate OK [11:41:24]SAM_PROTO_GetShiftState done [11:41:24]FM_GetShiftState done [11:41:24]req_shift_opened done [11:41:24]requested_item shift.open_date is exist - process it [11:41:24]req_shift_open_date [11:41:24]req_shift_open_date done [11:41:24]produce_requested_data done [11:41:24]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187019,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [11:41:24]process_action_free close_receipt [11:41:24]json_value_free [11:41:24]json_value_free done [11:41:24]process_json_proto returns [11:41:24]Send response to host [11:41:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187019,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [11:41:24]free response buf [11:41:24]execute_script done [11:41:24]execute_script returns [11:41:24]free content buf [11:41:24]Sock 9.Close socket [11:41:24]Sock 9.Thread stoped [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]accept exits with 7 [11:44:43]New connection [11:44:43]New thread 3066879332 created [11:44:43]Thread 3067022692 joined [11:44:43]Waiting for new connection... [11:44:43] Sock 7.Parse request [11:44:43]Sock 7.Check first char [11:44:43]Sock 7.First char is OK [11:44:43]request: POST /json_proto HTTP/1.0 [11:44:43]Method: POST [11:44:43]URL: /json_proto [11:44:43]Method is POST - this is cgi request [11:44:43]url: /json_proto [11:44:43]query_string will be loaded in cgi processing [11:44:43]execute_cgi json_proto POST (null) [11:44:43]execute_cgi path=json_proto method=POST [11:44:43]POST find Content-Length [11:44:43]Host: 172.17.46.131:8080 [11:44:43]Content-Length: 677 [11:44:43]Content-Type: application/json [11:44:43] [11:44:43]POST finish read [11:44:43]Found Content-Length = 677 [11:44:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412170", "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" ] } } [11:44:43]execute_script... [11:44: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)412170", "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" ] } } [11:44:43]POST & json_proto [11:44:43]process_json_proto [11:44:43]json parsed OK: [11:44:43]protocol is kg_v1.0 [11:44:43]action value=close_receipt [11:44:43]process_action close_receipt [11:44:43]cmd_close_receipt [11:44:43]MH_GetDate [11:44:43]Write to MH i2c: F0 00 00 C0 19 C8 [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: F0 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: F0 09 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: F0 09 00 C0 19 00 2F C4 B5 67 7E 41 4F 65 53 [11:44:43]GetLastDocTimeStamp 1739965284 [11:44:43]current date 1739965487 [11:44:43]FM_GetShiftState [11:44:43]SAM_PROTO_GetShiftState [11:44:43]wFMCommunicate request_size=4 [11:44:43]MH_SAM_APDU [11:44:43]CAPDU: 80 13 01 00 [11:44:43]Write to MH i2c: E2 08 00 C1 19 80 13 01 00 00 00 00 00 57 [11:44:43]Write i2c OK [11:44:43]MH_I2C_Read... [11:44:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:43]Read from MH i2c: E2 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 0E 00 [11:44:43]MH_I2C_Read... [11:44:43]Read from MH i2c: E2 0E 00 C1 19 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D6 [11:44:43]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:44:43]wFMCommunicate OK [11:44:43]SAM_PROTO_GetShiftState done [11:44:43]FM_GetShiftState done [11:44:43]opened in 1739929631 [11:44:43]opened+sec_in_day 1740016031 [11:44:43]quantity*price = 30045 [11:44:43]sum+1 = 30047 [11:44:43]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 СНО: Общий режим Чек 86 19.02.2025 11:44 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187020 ФПД: 81506701540791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T114447&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187020&fm=81506701540791&tin=02508201610067®Number=0000000000091857&sum=30000 [11:44:45]StoreToDocumentArchive [11:44:45]shift 647 fd 187020 [11:44:45]save to /storage/0647/doc_00187020 [11:44:45]save last doc name /storage/0647/doc_00187020 to /storage/kkm_last_doc_name [11:44:45]save OK [11:44:45]Clear old archive folders... [11:44:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:45]tlvbuf is 006490C0 [11:44:45]SAM_PROTO_ClearQueue [11:44:45]wFMCommunicate request_size=4 [11:44:45]MH_SAM_APDU [11:44:45]CAPDU: 80 09 00 00 [11:44:45]Write to MH i2c: E2 08 00 CE 19 80 09 00 00 00 00 00 00 59 [11:44:45]Write i2c OK [11:44:45]MH_I2C_Read... [11:44:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:45]Read from MH i2c: E2 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 03 00 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 03 00 CE 19 00 90 00 5B [11:44:45]RAPDU: 90 00 [11:44:45]wFMCommunicate OK [11:44:45]SAM_PROTO_ClearQueue done [11:44:45]KKMCreateOFDPacket [11:44:45]OFDProtocolAddRootSTLVToBuf [11:44:45]FM_MakeSignedData [11:44:45]FM_MakeSignedData [11:44:45]SAM_PROTO_SignData [11:44:45]wFMCommunicate request_size=4 [11:44:45]MH_SAM_APDU [11:44:45]CAPDU: 80 0D 01 02 [11:44:45]Write to MH i2c: E2 08 00 CF 19 80 0D 01 02 00 00 00 00 61 [11:44:45]Write i2c OK [11:44:45]MH_I2C_Read... [11:44:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:45]Read from MH i2c: E2 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 03 00 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 03 00 CF 19 00 90 00 5C [11:44:45]RAPDU: 90 00 [11:44:45]wFMCommunicate OK [11:44:45]wFMCommunicate request_size=255 [11:44:45]MH_SAM_APDU [11:44:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 56 00 00 00 F4 03 04 00 2F C4 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 8C DA 02 00 35 04 06 00 4A [11:44:45]Write to MH i2c: E2 02 01 D0 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 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 56 00 00 00 F4 03 04 00 2F C4 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 8C DA 02 00 35 04 06 00 4A 00 00 3F [11:44:45]Write i2c OK [11:44:45]MH_I2C_Read... [11:44:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:45]Read from MH i2c: E2 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 03 00 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 03 00 D0 19 00 90 00 5D [11:44:45]RAPDU: 90 00 [11:44:45]wFMCommunicate OK [11:44:45]wFMCommunicate request_size=10 [11:44:45]MH_SAM_APDU [11:44:45]CAPDU: 80 0D 02 02 05 21 41 FD FD B7 [11:44:45]Write to MH i2c: E2 0D 00 D1 19 80 0D 02 02 05 00 21 41 FD FD B7 00 00 81 [11:44:45]Write i2c OK [11:44:45]MH_I2C_Read... [11:44:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:45]Read from MH i2c: E2 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 03 00 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 03 00 D1 19 00 90 00 5E [11:44:45]RAPDU: 90 00 [11:44:45]wFMCommunicate OK [11:44:45]wFMCommunicate request_size=4 [11:44:45]MH_SAM_APDU [11:44:45]CAPDU: 80 0D 03 02 [11:44:45]Write to MH i2c: E2 08 00 D2 19 80 0D 03 02 00 00 00 00 66 [11:44:45]Write i2c OK [11:44:45]MH_I2C_Read... [11:44:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:45]Read from MH i2c: E2 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 0B 00 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 0B 00 D2 19 00 41 87 73 93 75 F1 FC CD 90 00 64 [11:44:45]RAPDU: 41 87 73 93 75 F1 FC CD 90 00 [11:44:45]wFMCommunicate OK [11:44:45]SAM_PROTO_SignData done [11:44:45]FM_MakeSignedData done [11:44:45]CreateOFDProtocolMessage [11:44:45]wFMCommunicate request_size=4 [11:44:45]MH_SAM_APDU [11:44:45]CAPDU: 80 11 00 00 [11:44:45]Write to MH i2c: E2 08 00 D3 19 80 11 00 00 00 00 00 00 66 [11:44:45]Write i2c OK [11:44:45]MH_I2C_Read... [11:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:45]Read from MH i2c: E2 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 17 00 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: E2 17 00 D3 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B9 [11:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:44:45]wFMCommunicate OK [11:44:45]CreateOFDProtocolMessage done [11:44:45]OFDSenderStorePacket 187020 [11:44:45]StoreOFDPacket docnum=187020 [11:44: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 47 4C 07 01 DE 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 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 56 00 00 00 F4 03 04 00 2F C4 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 8C DA 02 00 35 04 06 00 4A 21 41 FD FD B7 41 87 73 93 75 F1 FC CD [11:44:45]CheckFolder [11:44:45]dirname=/storage/ofd_packets [11:44:45]CheckFolder done [11:44:45]ProducePacketName [11:44:45]name=ofd_packets/00187020 [11:44:45]NVStorageSaveData ofd_packets/00187020 [11:44:45]File name is /storage/ofd_packets/00187020 [11:44:45]Write 301 bytes [11:44:45]NVStorageSaveData done [11:44:45]OFDSenderStorePacket done [11:44:45]KKMCreateOFDPacket done [11:44:45]NVStorageSaveData kkm_last_timestamp [11:44:45]File name is /storage/kkm_last_timestamp [11:44:45]Write 4 bytes [11:44:45]NVStorageSaveData done [11:44:45]ExternCall_PrintAddStr [11:44:45]wPrintStart [11:44:45]Write to MH i2c: 01 00 00 D4 19 ED [11:44:45]Write i2c OK [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: 01 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: 01 07 00 [11:44:45]MH_I2C_Read... [11:44:45]Read from MH i2c: 01 07 00 D4 19 00 00 00 00 00 FF 0F 02 [11:44:45]RasterBufferAndPrint [11:44:45]line Счет N : (1)412170 [11:44:45]line ИНН: 02508201610067 [11:44:45]line Контрольно-Кассовый Чек [11:44:45]line ПРОДАЖА [11:44:45]line ТРК (МРК, ГНК) : 22 [11:44:45]line Товар: 2710124130 [11:44:45]line Аи-92-К-2 [11:44:45]line 4.680 * 64.20 [11:44:45]line = 300.46 [11:44:45]line НДС 12% НСП 1% [11:44:45]line > о реализуемом товаре [11:44:45]line ОКРУГЛЕНИЕ: -0.46 [11:44:45]line ИТОГО: 300.00 [11:44:45]line Внесено: 300.00 [11:44:45]line СДАЧА: 0.00 [11:44:45]line НСП 1% : 2.66 [11:44:45]line НДС 12% : 31.91 [11:44:45]line Наличными: 300.00 [11:44:45]line Безнал.: 0.00 [11:44:45]line Место: АЗС № 92 "Партнер Нефть" [11:44:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:44:45]line СНО: Общий режим [11:44:45]line Чек 86 19.02.2025 11:44 [11:44:45]line Смена: 647 ФФД: 1.0 [11:44:45]line ЗНМ: 0300000118 [11:44:45]line РНМ: 0000000000091857 [11:44:45]line Версия ККМ: 001 [11:44:45]line ФМ: 0000000000871826 [11:44:45]line ФД: 187020 [11:44:45]line ФПД: 81506701540791 [11:44:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T114447&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187020&fm=81506701540791&tin=02508201610067®Number=0000000000091857&sum=30000 [11:44:45]written 0, free lines is 4095 [11:44:45]OFD Sender: Processing packet 187020 [packets to send 49, broken 48] [11:44:45]ProducePacketName [11:44:45]name=ofd_packets/00187020 [11:44:45]OFD Sender: To server: pG, [11:44:45]CommunicateWithHost lk.salyk.kg:30040 [11:44:45]ConnectInit lk.salyk.kg [11:44:45]Connected sock=10 [11:44: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 47 4C 07 01 DE 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 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 56 00 00 00 F4 03 04 00 2F C4 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 8C DA 02 00 35 04 06 00 4A 21 41 FD FD B7 41 87 73 93 75 F1 FC CD [11:44: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 25 A6 47 00 36 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 8C DA 02 00 F4 03 04 00 82 6A B5 67 B6 04 01 00 00 A7 CC 44 FB D8 F0 4B 2F [11:44:46]CommunicateWithHost err = 0 [11:44:46]CheckOFDResponse [11:44:46]1017 (14) - 77093643461234 [11:44:46]1041 (16) - 0000000000871826 [11:44:46]1040 (4) - 187020 [11:44:46]1012 (4) - 19.02.2025 05:22 [11:44:46]1206 (1) - 0 [11:44:46]OFD Sender: Remove packet 187020 [11:44:46]ProducePacketName [11:44:46]name=ofd_packets/00187020 [11:44:46]NVStorageDeleteData [11:44:46]Write to MH i2c: 01 00 00 FF 19 18 [11:44:46]Write i2c OK [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: 01 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: 01 07 00 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: 01 07 00 FF 19 00 00 00 00 00 F5 0C 20 [11:44:46]RasterBufferAndPrint [11:44:46]line [11:44:46]line [11:44:46]line [11:44:46]line [11:44:46]line [11:44:46]written 0, free lines is 3323 [11:44:46]MH_Cut [11:44:46]Write to MH i2c: D1 01 00 06 1A 01 F2 [11:44:46]Write i2c OK [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: D1 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: D1 01 00 [11:44:46]MH_I2C_Read... [11:44:46]Read from MH i2c: D1 01 00 06 1A 00 F1 [11:44:46]Write to MH i2c: 01 00 00 07 1A 21 [11:44:46]Write i2c OK [11:44:46]MH_I2C_Read... [11:44:46]OFD Sender: No OFD packet to send [11:44:46]*** Cut start [11:44:46]*** Partial cut [11:44:46]*** CUTSNS_PIN = 1 [11:44:46]*** CUTSNS_PIN = 0 [11:44:47]*** Brake cut motor [11:44:47]Read from MH i2c: 01 [11:44:47]MH_I2C_Read... [11:44:47]*** Stop cut motor [11:44:47]*** Cut end [11:44:47]Read from MH i2c: 01 07 00 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: 01 07 00 07 1A 00 00 00 00 00 FF 0F 36 [11:44:47]process_action close_receipt done [11:44:47]requested_data is exist [11:44:47]produce_requested_data [11:44:47]requested_item fm.sn is exist - process it [11:44:47]wFMCommunicate request_size=4 [11:44:47]MH_SAM_APDU [11:44:47]CAPDU: 80 11 00 00 [11:44:47]Write to MH i2c: E2 08 00 08 1A 80 11 00 00 00 00 00 00 9C [11:44:47]Write i2c OK [11:44:47]MH_I2C_Read... [11:44:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:47]Read from MH i2c: E2 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 17 00 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 17 00 08 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EF [11: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 [11:44:47]wFMCommunicate OK [11:44:47]requested_item fd.num is exist - process it [11:44:47]SAM_PROTO_GetFieldsCounters [11:44:47]wFMCommunicate request_size=4 [11:44:47]MH_SAM_APDU [11:44:47]CAPDU: 80 13 00 00 [11:44:47]Write to MH i2c: E2 08 00 09 1A 80 13 00 00 00 00 00 00 9F [11:44:47]Write i2c OK [11:44:47]MH_I2C_Read... [11:44:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:47]Read from MH i2c: E2 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 62 00 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 62 00 09 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 8C DA 02 00 0E 04 04 00 87 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 B8 [11:44: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 8C DA 02 00 0E 04 04 00 87 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:44:47]wFMCommunicate OK [11:44:47]SAM_PROTO_GetFieldsCounters done [11:44:47]requested_item shift.num is exist - process it [11:44:47]requested_item shift.opened is exist - process it [11:44:47]req_shift_opened [11:44:47]FM_GetShiftState [11:44:47]SAM_PROTO_GetShiftState [11:44:47]wFMCommunicate request_size=4 [11:44:47]MH_SAM_APDU [11:44:47]CAPDU: 80 13 01 00 [11:44:47]Write to MH i2c: E2 08 00 0A 1A 80 13 01 00 00 00 00 00 A1 [11:44:47]Write i2c OK [11:44:47]MH_I2C_Read... [11:44:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:47]Read from MH i2c: E2 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 0E 00 [11:44:47]MH_I2C_Read... [11:44:47]Read from MH i2c: E2 0E 00 0A 1A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 20 [11:44:47]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:44:47]wFMCommunicate OK [11:44:47]SAM_PROTO_GetShiftState done [11:44:47]FM_GetShiftState done [11:44:47]req_shift_opened done [11:44:47]requested_item shift.open_date is exist - process it [11:44:47]req_shift_open_date [11:44:47]req_shift_open_date done [11:44:47]produce_requested_data done [11:44:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187020,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [11:44:47]process_action_free close_receipt [11:44:47]json_value_free [11:44:47]json_value_free done [11:44:47]process_json_proto returns [11:44:47]Send response to host [11:44:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187020,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [11:44:47]free response buf [11:44:47]execute_script done [11:44:47]execute_script returns [11:44:47]free content buf [11:44:47]Sock 7.Close socket [11:44:47]Sock 7.Thread stoped [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:51]OFD Sender: No OFD packet to send [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:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:56]OFD Sender: No OFD packet to send [11:51:01]OFD Sender: No OFD packet to send [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:41]accept exits with 9 [11:53:41]New connection [11:53:41]New thread 3067022692 created [11:53:41]Thread 3066879332 joined [11:53:41]Waiting for new connection... [11:53:41] Sock 9.Parse request [11:53:41]Sock 9.Check first char [11:53:41]Sock 9.First char is OK [11:53:41]request: POST /json_proto HTTP/1.0 [11:53:41]Method: POST [11:53:41]URL: /json_proto [11:53:41]Method is POST - this is cgi request [11:53:41]url: /json_proto [11:53:41]query_string will be loaded in cgi processing [11:53:41]execute_cgi json_proto POST (null) [11:53:41]execute_cgi path=json_proto method=POST [11:53:41]POST find Content-Length [11:53:41]Host: 172.17.46.131:8080 [11:53:41]Content-Length: 678 [11:53:41]Content-Type: application/json [11:53:41] [11:53:41]POST finish read [11:53:41]Found Content-Length = 678 [11:53:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412171", "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" ] } } [11:53:41]execute_script... [11: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)412171", "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" ] } } [11:53:41]POST & json_proto [11:53:41]process_json_proto [11:53:41]json parsed OK: [11:53:41]protocol is kg_v1.0 [11:53:41]action value=close_receipt [11:53:41]process_action close_receipt [11:53:41]cmd_close_receipt [11:53:41]MH_GetDate [11:53:41]Write to MH i2c: F0 00 00 0B 1A 14 [11:53:41]Write i2c OK [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: F0 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: F0 09 00 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: F0 09 00 0B 1A 00 48 C6 B5 67 7E 41 4F 65 BA [11:53:41]GetLastDocTimeStamp 1739965487 [11:53:41]current date 1739966024 [11:53:41]FM_GetShiftState [11:53:41]SAM_PROTO_GetShiftState [11:53:41]wFMCommunicate request_size=4 [11:53:41]MH_SAM_APDU [11:53:41]CAPDU: 80 13 01 00 [11:53:41]Write to MH i2c: E2 08 00 0C 1A 80 13 01 00 00 00 00 00 A3 [11:53:41]Write i2c OK [11:53:41]MH_I2C_Read... [11:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:41]Read from MH i2c: E2 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: E2 0E 00 [11:53:41]MH_I2C_Read... [11:53:41]Read from MH i2c: E2 0E 00 0C 1A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 22 [11:53:41]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:53:41]wFMCommunicate OK [11:53:41]SAM_PROTO_GetShiftState done [11:53:41]FM_GetShiftState done [11:53:41]opened in 1739929631 [11:53:41]opened+sec_in_day 1740016031 [11:53:41]quantity*price = 100042 [11:53:41]sum+1 = 100044 [11:53:41]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 СНО: Общий режим Чек 87 19.02.2025 11:53 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187021 ФПД: 86571850646001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T115344&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187021&fm=86571850646001&tin=02508201610067®Number=0000000000091857&sum=100000 [11:53:42]StoreToDocumentArchive [11:53:42]shift 647 fd 187021 [11:53:42]save to /storage/0647/doc_00187021 [11:53:42]save last doc name /storage/0647/doc_00187021 to /storage/kkm_last_doc_name [11:53:42]save OK [11:53:42]Clear old archive folders... [11:53:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:53:42]tlvbuf is 005E2570 [11:53:42]SAM_PROTO_ClearQueue [11:53:42]wFMCommunicate request_size=4 [11:53:42]MH_SAM_APDU [11:53:42]CAPDU: 80 09 00 00 [11:53:42]Write to MH i2c: E2 08 00 19 1A 80 09 00 00 00 00 00 00 A5 [11:53:42]Write i2c OK [11:53:42]MH_I2C_Read... [11:53:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:42]Read from MH i2c: E2 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 03 00 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 03 00 19 1A 00 90 00 A7 [11:53:42]RAPDU: 90 00 [11:53:42]wFMCommunicate OK [11:53:42]SAM_PROTO_ClearQueue done [11:53:42]KKMCreateOFDPacket [11:53:42]OFDProtocolAddRootSTLVToBuf [11:53:42]FM_MakeSignedData [11:53:42]FM_MakeSignedData [11:53:42]SAM_PROTO_SignData [11:53:42]wFMCommunicate request_size=4 [11:53:42]MH_SAM_APDU [11:53:42]CAPDU: 80 0D 01 02 [11:53:42]Write to MH i2c: E2 08 00 1A 1A 80 0D 01 02 00 00 00 00 AD [11:53:42]Write i2c OK [11:53:42]MH_I2C_Read... [11:53:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:42]Read from MH i2c: E2 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 03 00 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 03 00 1A 1A 00 90 00 A8 [11:53:42]RAPDU: 90 00 [11:53:42]wFMCommunicate OK [11:53:42]wFMCommunicate request_size=255 [11:53:42]MH_SAM_APDU [11:53:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 57 00 00 00 F4 03 04 00 48 C6 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 8D DA 02 00 35 04 06 00 4E BC 94 67 [11:53:42]Write to MH i2c: E2 02 01 1B 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 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 57 00 00 00 F4 03 04 00 48 C6 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 8D DA 02 00 35 04 06 00 4E BC 94 67 00 00 C9 [11:53:42]Write i2c OK [11:53:42]MH_I2C_Read... [11:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:42]Read from MH i2c: E2 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 03 00 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 03 00 1B 1A 00 90 00 A9 [11:53:42]RAPDU: 90 00 [11:53:42]wFMCommunicate OK [11:53:42]wFMCommunicate request_size=7 [11:53:42]MH_SAM_APDU [11:53:42]CAPDU: 80 0D 02 02 02 C1 F1 [11:53:42]Write to MH i2c: E2 0A 00 1C 1A 80 0D 02 02 02 00 C1 F1 00 00 66 [11:53:42]Write i2c OK [11:53:42]MH_I2C_Read... [11:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:42]Read from MH i2c: E2 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 03 00 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 03 00 1C 1A 00 90 00 AA [11:53:42]RAPDU: 90 00 [11:53:42]wFMCommunicate OK [11:53:42]wFMCommunicate request_size=4 [11:53:42]MH_SAM_APDU [11:53:42]CAPDU: 80 0D 03 02 [11:53:42]Write to MH i2c: E2 08 00 1D 1A 80 0D 03 02 00 00 00 00 B2 [11:53:42]Write i2c OK [11:53:42]MH_I2C_Read... [11:53:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:42]Read from MH i2c: E2 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 0B 00 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 0B 00 1D 1A 00 DF 50 E7 06 61 16 39 15 90 00 94 [11:53:42]RAPDU: DF 50 E7 06 61 16 39 15 90 00 [11:53:42]wFMCommunicate OK [11:53:42]SAM_PROTO_SignData done [11:53:42]FM_MakeSignedData done [11:53:42]CreateOFDProtocolMessage [11:53:42]wFMCommunicate request_size=4 [11:53:42]MH_SAM_APDU [11:53:42]CAPDU: 80 11 00 00 [11:53:42]Write to MH i2c: E2 08 00 1E 1A 80 11 00 00 00 00 00 00 B2 [11:53:42]Write i2c OK [11:53:42]MH_I2C_Read... [11:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:42]Read from MH i2c: E2 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 17 00 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 17 00 1E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 05 [11:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:53:42]wFMCommunicate OK [11:53:42]CreateOFDProtocolMessage done [11:53:42]OFDSenderStorePacket 187021 [11:53:42]StoreOFDPacket docnum=187021 [11:53: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 95 AE 04 01 2E C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 57 00 00 00 F4 03 04 00 48 C6 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 8D DA 02 00 35 04 06 00 4E BC 94 67 C1 F1 DF 50 E7 06 61 16 39 15 [11:53:42]CheckFolder [11:53:42]dirname=/storage/ofd_packets [11:53:42]CheckFolder done [11:53:42]ProducePacketName [11:53:42]name=ofd_packets/00187021 [11:53:42]NVStorageSaveData ofd_packets/00187021 [11:53:42]File name is /storage/ofd_packets/00187021 [11:53:42]Write 298 bytes [11:53:42]NVStorageSaveData done [11:53:42]OFDSenderStorePacket done [11:53:42]KKMCreateOFDPacket done [11:53:42]NVStorageSaveData kkm_last_timestamp [11:53:42]File name is /storage/kkm_last_timestamp [11:53:42]Write 4 bytes [11:53:42]NVStorageSaveData done [11:53:42]ExternCall_PrintAddStr [11:53:42]wPrintStart [11:53:42]Write to MH i2c: 01 00 00 1F 1A 39 [11:53:42]Write i2c OK [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: 01 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: 01 07 00 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: 01 07 00 1F 1A 00 00 00 00 00 FF 0F 4E [11:53:42]RasterBufferAndPrint [11:53:42]line Счет N : (1)412171 [11:53:42]line ИНН: 02508201610067 [11:53:42]line Контрольно-Кассовый Чек [11:53:42]line ПРОДАЖА [11:53:42]line ТРК (МРК, ГНК) : 5 [11:53:42]line Товар: 2710194210 [11:53:42]line ДТ-К-5 [11:53:42]line 13.780 * 72.60 [11:53:42]line = 1000.43 [11:53:42]line НДС 12% НСП 1% [11:53:42]line > о реализуемом товаре [11:53:42]line ОКРУГЛЕНИЕ: -0.43 [11:53:42]line ИТОГО: 1000.00 [11:53:42]line Внесено: 1000.00 [11:53:42]line СДАЧА: 0.00 [11:53:42]line НСП 1% : 8.85 [11:53:42]line НДС 12% : 106.24 [11:53:42]line Наличными: 1000.00 [11:53:42]line Безнал.: 0.00 [11:53:42]line Место: АЗС № 92 "Партнер Нефть" [11:53:42]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:53:42]line СНО: Общий режим [11:53:42]line Чек 87 19.02.2025 11:53 [11:53:42]line Смена: 647 ФФД: 1.0 [11:53:42]line ЗНМ: 0300000118 [11:53:42]line РНМ: 0000000000091857 [11:53:42]line Версия ККМ: 001 [11:53:42]line ФМ: 0000000000871826 [11:53:42]line ФД: 187021 [11:53:42]line ФПД: 86571850646001 [11:53:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T115344&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187021&fm=86571850646001&tin=02508201610067®Number=0000000000091857&sum=100000 [11:53:43]OFD Sender: Processing packet 187021 [packets to send 49, broken 48] [11:53:43]ProducePacketName [11:53:43]name=ofd_packets/00187021 [11:53:43]OFD Sender: To server: pG, [11:53:43]CommunicateWithHost lk.salyk.kg:30040 [11:53:43]ConnectInit lk.salyk.kg [11:53:43]written 0, free lines is 4095 [11:53:43]Connected sock=10 [11: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 0C 01 00 00 95 AE 04 01 2E C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 57 00 00 00 F4 03 04 00 48 C6 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 8D DA 02 00 35 04 06 00 4E BC 94 67 C1 F1 DF 50 E7 06 61 16 39 15 [11:53:43]Write to MH i2c: 01 00 00 4A 1A 64 [11:53:43]Write i2c OK [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: 01 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: 01 07 00 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: 01 07 00 4A 1A 00 00 00 00 00 F1 0C 68 [11:53:43]RasterBufferAndPrint [11:53:43]line [11:53:43]line [11:53:43]line [11:53:43]line [11:53:43]line [11:53:43]written 0, free lines is 3319 [11:53:43]MH_Cut [11:53:43]Write to MH i2c: D1 01 00 51 1A 01 3D [11:53:43]Write i2c OK [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: D1 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: D1 01 00 [11:53:43]MH_I2C_Read... [11:53:43]Read from MH i2c: D1 01 00 51 1A 00 3C [11:53:43]Write to MH i2c: 01 00 00 52 1A 6C [11:53:43]Write i2c OK [11:53:43]MH_I2C_Read... [11: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 01 50 47 00 07 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8D DA 02 00 F4 03 04 00 9C 6C B5 67 B6 04 01 00 00 8A B6 1F C1 67 6E 67 DA [11:53:43]CommunicateWithHost err = 0 [11:53:43]CheckOFDResponse [11:53:43]1017 (14) - 77093643461234 [11:53:43]1041 (16) - 0000000000871826 [11:53:43]1040 (4) - 187021 [11:53:43]1012 (4) - 19.02.2025 05:31 [11:53:43]1206 (1) - 0 [11:53:43]OFD Sender: Remove packet 187021 [11:53:43]ProducePacketName [11:53:43]name=ofd_packets/00187021 [11:53:43]NVStorageDeleteData [11:53:44]OFD Sender: No OFD packet to send [11:53:44]*** Cut start [11:53:44]*** Partial cut [11:53:44]*** CUTSNS_PIN = 1 [11:53:44]*** CUTSNS_PIN = 0 [11:53:44]*** Brake cut motor [11:53:44]Read from MH i2c: 01 [11:53:44]MH_I2C_Read... [11:53:44]*** Stop cut motor [11:53:44]*** Cut end [11:53:44]Read from MH i2c: 01 07 00 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: 01 07 00 52 1A 00 00 00 00 00 FF 0F 81 [11:53:44]process_action close_receipt done [11:53:44]requested_data is exist [11:53:44]produce_requested_data [11:53:44]requested_item fm.sn is exist - process it [11:53:44]wFMCommunicate request_size=4 [11:53:44]MH_SAM_APDU [11:53:44]CAPDU: 80 11 00 00 [11:53:44]Write to MH i2c: E2 08 00 53 1A 80 11 00 00 00 00 00 00 E7 [11:53:44]Write i2c OK [11:53:44]MH_I2C_Read... [11:53:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:44]Read from MH i2c: E2 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: E2 17 00 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: E2 17 00 53 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3A [11:53:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:53:44]wFMCommunicate OK [11:53:44]requested_item fd.num is exist - process it [11:53:44]SAM_PROTO_GetFieldsCounters [11:53:44]wFMCommunicate request_size=4 [11:53:44]MH_SAM_APDU [11:53:44]CAPDU: 80 13 00 00 [11:53:44]Write to MH i2c: E2 08 00 54 1A 80 13 00 00 00 00 00 00 EA [11:53:44]Write i2c OK [11:53:44]MH_I2C_Read... [11:53:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:45]Read from MH i2c: E2 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 62 00 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 62 00 54 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 8D DA 02 00 0E 04 04 00 87 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 07 [11: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 8D DA 02 00 0E 04 04 00 87 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:53:45]wFMCommunicate OK [11:53:45]SAM_PROTO_GetFieldsCounters done [11:53:45]requested_item shift.num is exist - process it [11:53:45]requested_item shift.opened is exist - process it [11:53:45]req_shift_opened [11:53:45]FM_GetShiftState [11:53:45]SAM_PROTO_GetShiftState [11:53:45]wFMCommunicate request_size=4 [11:53:45]MH_SAM_APDU [11:53:45]CAPDU: 80 13 01 00 [11:53:45]Write to MH i2c: E2 08 00 55 1A 80 13 01 00 00 00 00 00 EC [11:53:45]Write i2c OK [11:53:45]MH_I2C_Read... [11:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:45]Read from MH i2c: E2 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 0E 00 [11:53:45]MH_I2C_Read... [11:53:45]Read from MH i2c: E2 0E 00 55 1A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 6B [11:53:45]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [11:53:45]wFMCommunicate OK [11:53:45]SAM_PROTO_GetShiftState done [11:53:45]FM_GetShiftState done [11:53:45]req_shift_opened done [11:53:45]requested_item shift.open_date is exist - process it [11:53:45]req_shift_open_date [11:53:45]req_shift_open_date done [11:53:45]produce_requested_data done [11:53:45]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187021,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [11:53:45]process_action_free close_receipt [11:53:45]json_value_free [11:53:45]json_value_free done [11:53:45]process_json_proto returns [11:53:45]Send response to host [11:53:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187021,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [11:53:45]free response buf [11:53:45]execute_script done [11:53:45]execute_script returns [11:53:45]free content buf [11:53:45]Sock 9.Close socket [11:53:45]Sock 9.Thread stoped [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:04]OFD Sender: No OFD packet to send [11:57:09]OFD Sender: No OFD packet to send [11:57:14]OFD Sender: No OFD packet to send [11:57:19]OFD Sender: No OFD packet to send [11:57:24]OFD Sender: No OFD packet to send [11:57:29]OFD Sender: No OFD packet to send [11:57:34]OFD Sender: No OFD packet to send [11:57:39]OFD Sender: No OFD packet to send [11:57:44]OFD Sender: No OFD packet to send [11:57:49]OFD Sender: No OFD packet to send [11:57:54]OFD Sender: No OFD packet to send [11:57:59]OFD Sender: No OFD packet to send [11:58:04]OFD Sender: No OFD packet to send [11:58:09]OFD Sender: No OFD packet to send [11:58:14]OFD Sender: No OFD packet to send [11:58:19]OFD Sender: No OFD packet to send [11:58:24]OFD Sender: No OFD packet to send [11:58:29]OFD Sender: No OFD packet to send [11:58:34]OFD Sender: No OFD packet to send [11:58:39]OFD Sender: No OFD packet to send [11:58:44]OFD Sender: No OFD packet to send [11:58:49]OFD Sender: No OFD packet to send [11:58:54]OFD Sender: No OFD packet to send [11:58:59]OFD Sender: No OFD packet to send [11:59:04]OFD Sender: No OFD packet to send [11:59:09]OFD Sender: No OFD packet to send [11:59:14]OFD Sender: No OFD packet to send [11:59:19]OFD Sender: No OFD packet to send [11:59:24]OFD Sender: No OFD packet to send [11:59:29]OFD Sender: No OFD packet to send [11:59:34]OFD Sender: No OFD packet to send [11:59:39]OFD Sender: No OFD packet to send [11:59:44]OFD Sender: No OFD packet to send [11:59:49]OFD Sender: No OFD packet to send [11:59:54]OFD Sender: No OFD packet to send [11:59:59]OFD Sender: No OFD packet to send [12:00:04]OFD Sender: No OFD packet to send [12:00:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:03]accept exits with 7 [12:01:03]New connection [12:01:03]New thread 3066879332 created [12:01:03]Thread 3067022692 joined [12:01:03]Waiting for new connection... [12:01:03] Sock 7.Parse request [12:01:03]Sock 7.Check first char [12:01:03]Sock 7.First char is OK [12:01:03]request: POST /json_proto HTTP/1.0 [12:01:03]Method: POST [12:01:03]URL: /json_proto [12:01:03]Method is POST - this is cgi request [12:01:03]url: /json_proto [12:01:03]query_string will be loaded in cgi processing [12:01:03]execute_cgi json_proto POST (null) [12:01:03]execute_cgi path=json_proto method=POST [12:01:03]POST find Content-Length [12:01:03]Host: 172.17.46.131:8080 [12:01:03]Content-Length: 677 [12:01:03]Content-Type: application/json [12:01:03] [12:01:03]POST finish read [12:01:03]Found Content-Length = 677 [12:01:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412173", "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" ] } } [12:01:03]execute_script... [12:01: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)412173", "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" ] } } [12:01:03]POST & json_proto [12:01:03]process_json_proto [12:01:03]json parsed OK: [12:01:03]protocol is kg_v1.0 [12:01:03]action value=close_receipt [12:01:03]process_action close_receipt [12:01:03]cmd_close_receipt [12:01:03]MH_GetDate [12:01:03]Write to MH i2c: F0 00 00 56 1A 5F [12:01:03]Write i2c OK [12:01:03]MH_I2C_Read... [12:01:03]Read from MH i2c: F0 [12:01:03]MH_I2C_Read... [12:01:03]Read from MH i2c: F0 09 00 [12:01:03]MH_I2C_Read... [12:01:03]Read from MH i2c: F0 09 00 56 1A 00 02 C8 B5 67 7E 41 4F 65 C1 [12:01:03]GetLastDocTimeStamp 1739966024 [12:01:03]current date 1739966466 [12:01:03]FM_GetShiftState [12:01:03]SAM_PROTO_GetShiftState [12:01:03]wFMCommunicate request_size=4 [12:01:03]MH_SAM_APDU [12:01:03]CAPDU: 80 13 01 00 [12:01:03]Write to MH i2c: E2 08 00 57 1A 80 13 01 00 00 00 00 00 EE [12:01:03]Write i2c OK [12:01:03]MH_I2C_Read... [12:01:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:03]Read from MH i2c: E2 [12:01:03]MH_I2C_Read... [12:01:03]Read from MH i2c: E2 0E 00 [12:01:03]MH_I2C_Read... [12:01:03]Read from MH i2c: E2 0E 00 57 1A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 6D [12:01:03]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:01:03]wFMCommunicate OK [12:01:03]SAM_PROTO_GetShiftState done [12:01:03]FM_GetShiftState done [12:01:03]opened in 1739929631 [12:01:03]opened+sec_in_day 1740016031 [12:01:03]quantity*price = 50011 [12:01:03]sum+1 = 50013 [12:01: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 СНО: Общий режим Чек 88 19.02.2025 12:01 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187022 ФПД: 150852034607603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T120106&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187022&fm=150852034607603&tin=02508201610067®Number=0000000000091857&sum=50000 [12:01:04]StoreToDocumentArchive [12:01:04]shift 647 fd 187022 [12:01:04]save to /storage/0647/doc_00187022 [12:01:04]save last doc name /storage/0647/doc_00187022 to /storage/kkm_last_doc_name [12:01:04]save OK [12:01:04]Clear old archive folders... [12:01:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:04]tlvbuf is 005E4DB0 [12:01:04]SAM_PROTO_ClearQueue [12:01:04]wFMCommunicate request_size=4 [12:01:04]MH_SAM_APDU [12:01:04]CAPDU: 80 09 00 00 [12:01:04]Write to MH i2c: E2 08 00 64 1A 80 09 00 00 00 00 00 00 F0 [12:01:04]Write i2c OK [12:01:04]MH_I2C_Read... [12:01:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:04]Read from MH i2c: E2 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 03 00 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 03 00 64 1A 00 90 00 F2 [12:01:04]RAPDU: 90 00 [12:01:04]wFMCommunicate OK [12:01:04]SAM_PROTO_ClearQueue done [12:01:04]KKMCreateOFDPacket [12:01:04]OFDProtocolAddRootSTLVToBuf [12:01:04]FM_MakeSignedData [12:01:04]FM_MakeSignedData [12:01:04]SAM_PROTO_SignData [12:01:04]wFMCommunicate request_size=4 [12:01:04]MH_SAM_APDU [12:01:04]CAPDU: 80 0D 01 02 [12:01:04]Write to MH i2c: E2 08 00 65 1A 80 0D 01 02 00 00 00 00 F8 [12:01:04]Write i2c OK [12:01:04]MH_I2C_Read... [12:01:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:04]Read from MH i2c: E2 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 03 00 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 03 00 65 1A 00 90 00 F3 [12:01:04]RAPDU: 90 00 [12:01:04]wFMCommunicate OK [12:01:04]wFMCommunicate request_size=255 [12:01:04]MH_SAM_APDU [12:01: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 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 58 00 00 00 F4 03 04 00 02 C8 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 8E DA 02 00 35 04 06 00 89 [12:01:04]Write to MH i2c: E2 02 01 66 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 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 58 00 00 00 F4 03 04 00 02 C8 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 8E DA 02 00 35 04 06 00 89 00 00 4B [12:01:04]Write i2c OK [12:01:04]MH_I2C_Read... [12:01:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:05]Read from MH i2c: E2 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 03 00 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 03 00 66 1A 00 90 00 F4 [12:01:05]RAPDU: 90 00 [12:01:05]wFMCommunicate OK [12:01:05]wFMCommunicate request_size=10 [12:01:05]MH_SAM_APDU [12:01:05]CAPDU: 80 0D 02 02 05 32 F9 EF B9 F3 [12:01:05]Write to MH i2c: E2 0D 00 67 1A 80 0D 02 02 05 00 32 F9 EF B9 F3 00 00 CB [12:01:05]Write i2c OK [12:01:05]MH_I2C_Read... [12:01:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:05]Read from MH i2c: E2 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 03 00 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 03 00 67 1A 00 90 00 F5 [12:01:05]RAPDU: 90 00 [12:01:05]wFMCommunicate OK [12:01:05]wFMCommunicate request_size=4 [12:01:05]MH_SAM_APDU [12:01:05]CAPDU: 80 0D 03 02 [12:01:05]Write to MH i2c: E2 08 00 68 1A 80 0D 03 02 00 00 00 00 FD [12:01:05]Write i2c OK [12:01:05]MH_I2C_Read... [12:01:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:05]Read from MH i2c: E2 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 0B 00 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 0B 00 68 1A 00 68 BB E4 03 75 5A 1D B7 90 00 AB [12:01:05]RAPDU: 68 BB E4 03 75 5A 1D B7 90 00 [12:01:05]wFMCommunicate OK [12:01:05]SAM_PROTO_SignData done [12:01:05]FM_MakeSignedData done [12:01:05]CreateOFDProtocolMessage [12:01:05]wFMCommunicate request_size=4 [12:01:05]MH_SAM_APDU [12:01:05]CAPDU: 80 11 00 00 [12:01:05]Write to MH i2c: E2 08 00 69 1A 80 11 00 00 00 00 00 00 FD [12:01:05]Write i2c OK [12:01:05]MH_I2C_Read... [12:01:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:05]Read from MH i2c: E2 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 17 00 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: E2 17 00 69 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 50 [12:01:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:01:05]wFMCommunicate OK [12:01:05]CreateOFDProtocolMessage done [12:01:05]OFDSenderStorePacket 187022 [12:01:05]StoreOFDPacket docnum=187022 [12:01: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 3F 3E 07 01 8A 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 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 58 00 00 00 F4 03 04 00 02 C8 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 8E DA 02 00 35 04 06 00 89 32 F9 EF B9 F3 68 BB E4 03 75 5A 1D B7 [12:01:05]CheckFolder [12:01:05]dirname=/storage/ofd_packets [12:01:05]CheckFolder done [12:01:05]ProducePacketName [12:01:05]name=ofd_packets/00187022 [12:01:05]NVStorageSaveData ofd_packets/00187022 [12:01:05]File name is /storage/ofd_packets/00187022 [12:01:05]Write 301 bytes [12:01:05]NVStorageSaveData done [12:01:05]OFDSenderStorePacket done [12:01:05]KKMCreateOFDPacket done [12:01:05]NVStorageSaveData kkm_last_timestamp [12:01:05]File name is /storage/kkm_last_timestamp [12:01:05]Write 4 bytes [12:01:05]NVStorageSaveData done [12:01:05]ExternCall_PrintAddStr [12:01:05]wPrintStart [12:01:05]Write to MH i2c: 01 00 00 6A 1A 84 [12:01:05]Write i2c OK [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: 01 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: 01 07 00 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: 01 07 00 6A 1A 00 00 00 00 00 FF 0F 99 [12:01:05]RasterBufferAndPrint [12:01:05]line Счет N : (1)412173 [12:01:05]line ИНН: 02508201610067 [12:01:05]line Контрольно-Кассовый Чек [12:01:05]line ПРОДАЖА [12:01:05]line ТРК (МРК, ГНК) : 12 [12:01:05]line Товар: 2710124130 [12:01:05]line Аи-92-К-2 [12:01:05]line 7.790 * 64.20 [12:01:05]line = 500.12 [12:01:05]line НДС 12% НСП 1% [12:01:05]line > о реализуемом товаре [12:01:05]line ОКРУГЛЕНИЕ: -0.12 [12:01:05]line ИТОГО: 500.00 [12:01:05]line Внесено: 500.00 [12:01:05]line СДАЧА: 0.00 [12:01:05]line НСП 1% : 4.43 [12:01:05]line НДС 12% : 53.11 [12:01:05]line Наличными: 500.00 [12:01:05]line Безнал.: 0.00 [12:01:05]line Место: АЗС № 92 "Партнер Нефть" [12:01:05]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:01:05]line СНО: Общий режим [12:01:05]line Чек 88 19.02.2025 12:01 [12:01:05]line Смена: 647 ФФД: 1.0 [12:01:05]line ЗНМ: 0300000118 [12:01:05]line РНМ: 0000000000091857 [12:01:05]line Версия ККМ: 001 [12:01:05]line ФМ: 0000000000871826 [12:01:05]line ФД: 187022 [12:01:05]line ФПД: 150852034607603 [12:01:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T120106&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187022&fm=150852034607603&tin=02508201610067®Number=0000000000091857&sum=50000 [12:01:05]written 0, free lines is 4095 [12:01:05]OFD Sender: Processing packet 187022 [packets to send 49, broken 48] [12:01:05]ProducePacketName [12:01:05]name=ofd_packets/00187022 [12:01:05]OFD Sender: To server: pG, [12:01:05]CommunicateWithHost lk.salyk.kg:30040 [12:01:05]ConnectInit lk.salyk.kg [12:01:05]Connected sock=10 [12:01: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 3F 3E 07 01 8A 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 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 58 00 00 00 F4 03 04 00 02 C8 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 8E DA 02 00 35 04 06 00 89 32 F9 EF B9 F3 68 BB E4 03 75 5A 1D B7 [12:01: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 A2 B7 47 00 05 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 8E DA 02 00 F4 03 04 00 56 6E B5 67 B6 04 01 00 00 B6 93 D1 8E B8 A7 F3 40 [12:01:05]CommunicateWithHost err = 0 [12:01:05]CheckOFDResponse [12:01:05]1017 (14) - 77093643461234 [12:01:05]1041 (16) - 0000000000871826 [12:01:05]1040 (4) - 187022 [12:01:05]1012 (4) - 19.02.2025 05:38 [12:01:05]1206 (1) - 0 [12:01:05]OFD Sender: Remove packet 187022 [12:01:05]ProducePacketName [12:01:05]name=ofd_packets/00187022 [12:01:05]NVStorageDeleteData [12:01:05]Write to MH i2c: 01 00 00 95 1A AF [12:01:05]Write i2c OK [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: 01 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: 01 07 00 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: 01 07 00 95 1A 00 00 00 00 00 F2 0C B4 [12:01:05]RasterBufferAndPrint [12:01:05]line [12:01:05]line [12:01:05]line [12:01:05]line [12:01:05]line [12:01:05]written 0, free lines is 3320 [12:01:05]MH_Cut [12:01:05]Write to MH i2c: D1 01 00 9C 1A 01 88 [12:01:05]Write i2c OK [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: D1 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: D1 01 00 [12:01:05]MH_I2C_Read... [12:01:05]Read from MH i2c: D1 01 00 9C 1A 00 87 [12:01:05]Write to MH i2c: 01 00 00 9D 1A B7 [12:01:05]Write i2c OK [12:01:05]MH_I2C_Read... [12:01:06]OFD Sender: No OFD packet to send [12:01:06]*** Cut start [12:01:06]*** Partial cut [12:01:06]*** CUTSNS_PIN = 1 [12:01:06]*** CUTSNS_PIN = 0 [12:01:07]*** Brake cut motor [12:01:07]Read from MH i2c: 01 [12:01:07]MH_I2C_Read... [12:01:07]*** Stop cut motor [12:01:07]*** Cut end [12:01:07]Read from MH i2c: 01 07 00 [12:01:07]MH_I2C_Read... [12:01:07]Read from MH i2c: 01 07 00 9D 1A 00 00 00 00 00 FF 0F CC [12:01:07]process_action close_receipt done [12:01:07]requested_data is exist [12:01:07]produce_requested_data [12:01:07]requested_item fm.sn is exist - process it [12:01:07]wFMCommunicate request_size=4 [12:01:07]MH_SAM_APDU [12:01:07]CAPDU: 80 11 00 00 [12:01:07]Write to MH i2c: E2 08 00 9E 1A 80 11 00 00 00 00 00 00 32 [12:01:07]Write i2c OK [12:01:07]MH_I2C_Read... [12:01:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:07]Read from MH i2c: E2 [12:01:07]MH_I2C_Read... [12:01:07]Read from MH i2c: E2 17 00 [12:01:07]MH_I2C_Read... [12:01:07]Read from MH i2c: E2 17 00 9E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 85 [12:01:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:01:07]wFMCommunicate OK [12:01:07]requested_item fd.num is exist - process it [12:01:07]SAM_PROTO_GetFieldsCounters [12:01:07]wFMCommunicate request_size=4 [12:01:07]MH_SAM_APDU [12:01:07]CAPDU: 80 13 00 00 [12:01:07]Write to MH i2c: E2 08 00 9F 1A 80 13 00 00 00 00 00 00 35 [12:01:07]Write i2c OK [12:01:07]MH_I2C_Read... [12:01:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:07]Read from MH i2c: E2 [12:01:07]MH_I2C_Read... [12:01:07]Read from MH i2c: E2 62 00 [12:01:07]MH_I2C_Read... [12:01:07]Read from MH i2c: E2 62 00 9F 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 8E DA 02 00 0E 04 04 00 87 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 56 [12:01: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 8E DA 02 00 0E 04 04 00 87 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 [12:01:07]wFMCommunicate OK [12:01:07]SAM_PROTO_GetFieldsCounters done [12:01:07]requested_item shift.num is exist - process it [12:01:07]requested_item shift.opened is exist - process it [12:01:07]req_shift_opened [12:01:07]FM_GetShiftState [12:01:07]SAM_PROTO_GetShiftState [12:01:07]wFMCommunicate request_size=4 [12:01:07]MH_SAM_APDU [12:01:07]CAPDU: 80 13 01 00 [12:01:07]Write to MH i2c: E2 08 00 A0 1A 80 13 01 00 00 00 00 00 37 [12:01:07]Write i2c OK [12:01:07]MH_I2C_Read... [12:01:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:07]Read from MH i2c: E2 [12:01:07]MH_I2C_Read... [12:01:07]Read from MH i2c: E2 0E 00 [12:01:07]MH_I2C_Read... [12:01:07]Read from MH i2c: E2 0E 00 A0 1A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 B6 [12:01:07]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:01:07]wFMCommunicate OK [12:01:07]SAM_PROTO_GetShiftState done [12:01:07]FM_GetShiftState done [12:01:07]req_shift_opened done [12:01:07]requested_item shift.open_date is exist - process it [12:01:07]req_shift_open_date [12:01:07]req_shift_open_date done [12:01:07]produce_requested_data done [12:01:07]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187022,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [12:01:07]process_action_free close_receipt [12:01:07]json_value_free [12:01:07]json_value_free done [12:01:07]process_json_proto returns [12:01:07]Send response to host [12:01:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187022,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [12:01:07]free response buf [12:01:07]execute_script done [12:01:07]execute_script returns [12:01:07]free content buf [12:01:07]Sock 7.Close socket [12:01:07]Sock 7.Thread stoped [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:16]accept exits with 9 [12:01:16]New connection [12:01:16]New thread 3067022692 created [12:01:16]Thread 3066879332 joined [12:01:16]Waiting for new connection... [12:01:16] Sock 9.Parse request [12:01:16]Sock 9.Check first char [12:01:16]Sock 9.First char is OK [12:01:16]request: POST /json_proto HTTP/1.0 [12:01:16]Method: POST [12:01:16]URL: /json_proto [12:01:16]Method is POST - this is cgi request [12:01:16]url: /json_proto [12:01:16]query_string will be loaded in cgi processing [12:01:16]execute_cgi json_proto POST (null) [12:01:16]execute_cgi path=json_proto method=POST [12:01:16]POST find Content-Length [12:01:16]Host: 172.17.46.131:8080 [12:01:16]Content-Length: 682 [12:01:16]Content-Type: application/json [12:01:16] [12:01:16]POST finish read [12:01:16]Found Content-Length = 682 [12:01:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412172", "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:01:16]execute_script... [12:01: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)412172", "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:01:16]POST & json_proto [12:01:16]process_json_proto [12:01:16]json parsed OK: [12:01:16]protocol is kg_v1.0 [12:01:16]action value=close_receipt [12:01:16]process_action close_receipt [12:01:16]cmd_close_receipt [12:01:16]MH_GetDate [12:01:16]Write to MH i2c: F0 00 00 A1 1A AA [12:01:16]Write i2c OK [12:01:16]MH_I2C_Read... [12:01:16]Read from MH i2c: F0 [12:01:16]MH_I2C_Read... [12:01:16]Read from MH i2c: F0 09 00 [12:01:16]MH_I2C_Read... [12:01:16]Read from MH i2c: F0 09 00 A1 1A 00 10 C8 B5 67 7E 41 4F 65 1A [12:01:16]GetLastDocTimeStamp 1739966466 [12:01:16]current date 1739966480 [12:01:16]FM_GetShiftState [12:01:16]SAM_PROTO_GetShiftState [12:01:16]wFMCommunicate request_size=4 [12:01:16]MH_SAM_APDU [12:01:16]CAPDU: 80 13 01 00 [12:01:16]Write to MH i2c: E2 08 00 A2 1A 80 13 01 00 00 00 00 00 39 [12:01:16]Write i2c OK [12:01:16]MH_I2C_Read... [12:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:16]Read from MH i2c: E2 [12:01:16]MH_I2C_Read... [12:01:16]Read from MH i2c: E2 0E 00 [12:01:16]MH_I2C_Read... [12:01:16]Read from MH i2c: E2 0E 00 A2 1A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 B8 [12:01:16]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:01:16]wFMCommunicate OK [12:01:16]SAM_PROTO_GetShiftState done [12:01:16]FM_GetShiftState done [12:01:16]opened in 1739929631 [12:01:16]opened+sec_in_day 1740016031 [12:01:16]quantity*price = 100023 [12:01:16]sum+1 = 100025 [12:01:16]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 19.02.2025 12:01 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187023 ФПД: 36970350345677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T120120&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187023&fm=36970350345677&tin=02508201610067®Number=0000000000091857&sum=100000 [12:01:18]StoreToDocumentArchive [12:01:18]shift 647 fd 187023 [12:01:18]save to /storage/0647/doc_00187023 [12:01:18]save last doc name /storage/0647/doc_00187023 to /storage/kkm_last_doc_name [12:01:18]save OK [12:01:18]Clear old archive folders... [12:01:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:18]tlvbuf is 005EDC10 [12:01:18]SAM_PROTO_ClearQueue [12:01:18]wFMCommunicate request_size=4 [12:01:18]MH_SAM_APDU [12:01:18]CAPDU: 80 09 00 00 [12:01:18]Write to MH i2c: E2 08 00 AF 1A 80 09 00 00 00 00 00 00 3B [12:01:18]Write i2c OK [12:01:18]MH_I2C_Read... [12:01:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:18]Read from MH i2c: E2 [12:01:18]MH_I2C_Read... [12:01:18]Read from MH i2c: E2 03 00 [12:01:18]MH_I2C_Read... [12:01:18]Read from MH i2c: E2 03 00 AF 1A 00 90 00 3D [12:01:18]RAPDU: 90 00 [12:01:18]wFMCommunicate OK [12:01:18]SAM_PROTO_ClearQueue done [12:01:18]KKMCreateOFDPacket [12:01:18]OFDProtocolAddRootSTLVToBuf [12:01:18]FM_MakeSignedData [12:01:18]FM_MakeSignedData [12:01:18]SAM_PROTO_SignData [12:01:18]wFMCommunicate request_size=4 [12:01:18]MH_SAM_APDU [12:01:18]CAPDU: 80 0D 01 02 [12:01:18]Write to MH i2c: E2 08 00 B0 1A 80 0D 01 02 00 00 00 00 43 [12:01:18]Write i2c OK [12:01:18]MH_I2C_Read... [12:01:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:18]Read from MH i2c: E2 [12:01:18]MH_I2C_Read... [12:01:18]Read from MH i2c: E2 03 00 [12:01:18]MH_I2C_Read... [12:01:18]Read from MH i2c: E2 03 00 B0 1A 00 90 00 3E [12:01:18]RAPDU: 90 00 [12:01:18]wFMCommunicate OK [12:01:18]wFMCommunicate request_size=255 [12:01:18]MH_SAM_APDU [12:01: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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 10 C8 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 8F DA 02 00 35 04 06 00 21 [12:01:18]Write to MH i2c: E2 02 01 B1 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 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 10 C8 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 8F DA 02 00 35 04 06 00 21 00 00 A2 [12:01:18]Write i2c OK [12:01:18]MH_I2C_Read... [12:01:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:18]Read from MH i2c: E2 [12:01:18]MH_I2C_Read... [12:01:18]Read from MH i2c: E2 03 00 [12:01:18]MH_I2C_Read... [12:01:18]Read from MH i2c: E2 03 00 B1 1A 00 90 00 3F [12:01:18]RAPDU: 90 00 [12:01:18]wFMCommunicate OK [12:01:18]wFMCommunicate request_size=10 [12:01:18]MH_SAM_APDU [12:01:18]CAPDU: 80 0D 02 02 05 9F D4 99 7D CD [12:01:18]Write to MH i2c: E2 0D 00 B2 1A 80 0D 02 02 05 00 9F D4 99 7D CD 00 00 A6 [12:01:18]Write i2c OK [12:01:18]MH_I2C_Read... [12:01:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:18]Read from MH i2c: E2 [12:01:18]MH_I2C_Read... [12:01:18]Read from MH i2c: E2 03 00 [12:01:18]MH_I2C_Read... [12:01:18]Read from MH i2c: E2 03 00 B2 1A 00 90 00 40 [12:01:18]RAPDU: 90 00 [12:01:18]wFMCommunicate OK [12:01:18]wFMCommunicate request_size=4 [12:01:18]MH_SAM_APDU [12:01:18]CAPDU: 80 0D 03 02 [12:01:18]Write to MH i2c: E2 08 00 B3 1A 80 0D 03 02 00 00 00 00 48 [12:01:18]Write i2c OK [12:01:18]MH_I2C_Read... [12:01:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:18]Read from MH i2c: E2 [12:01:18]MH_I2C_Read... [12:01:18]Read from MH i2c: E2 0B 00 [12:01:18]MH_I2C_Read... [12:01:18]Read from MH i2c: E2 0B 00 B3 1A 00 9C BD 1B E0 DD AF C1 2A 90 00 14 [12:01:18]RAPDU: 9C BD 1B E0 DD AF C1 2A 90 00 [12:01:18]wFMCommunicate OK [12:01:18]SAM_PROTO_SignData done [12:01:18]FM_MakeSignedData done [12:01:18]CreateOFDProtocolMessage [12:01:18]wFMCommunicate request_size=4 [12:01:18]MH_SAM_APDU [12:01:18]CAPDU: 80 11 00 00 [12:01:18]Write to MH i2c: E2 08 00 B4 1A 80 11 00 00 00 00 00 00 48 [12:01:18]Write i2c OK [12:01:18]MH_I2C_Read... [12:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:18]Read from MH i2c: E2 [12:01:18]MH_I2C_Read... [12:01:18]Read from MH i2c: E2 17 00 [12:01:18]MH_I2C_Read... [12:01:18]Read from MH i2c: E2 17 00 B4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9B [12:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:01:18]wFMCommunicate OK [12:01:18]CreateOFDProtocolMessage done [12:01:18]OFDSenderStorePacket 187023 [12:01:18]StoreOFDPacket docnum=187023 [12:01: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 B7 E3 07 01 7A FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 10 C8 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 8F DA 02 00 35 04 06 00 21 9F D4 99 7D CD 9C BD 1B E0 DD AF C1 2A [12:01:18]CheckFolder [12:01:18]dirname=/storage/ofd_packets [12:01:18]CheckFolder done [12:01:18]ProducePacketName [12:01:18]name=ofd_packets/00187023 [12:01:18]NVStorageSaveData ofd_packets/00187023 [12:01:18]File name is /storage/ofd_packets/00187023 [12:01:18]Write 301 bytes [12:01:18]NVStorageSaveData done [12:01:18]OFDSenderStorePacket done [12:01:18]KKMCreateOFDPacket done [12:01:18]NVStorageSaveData kkm_last_timestamp [12:01:18]File name is /storage/kkm_last_timestamp [12:01:18]Write 4 bytes [12:01:18]NVStorageSaveData done [12:01:18]ExternCall_PrintAddStr [12:01:18]wPrintStart [12:01:18]Write to MH i2c: 01 00 00 B5 1A CF [12:01:18]Write i2c OK [12:01:18]MH_I2C_Read... [12:01:18]Read from MH i2c: 01 [12:01:18]MH_I2C_Read... [12:01:18]Read from MH i2c: 01 07 00 [12:01:18]MH_I2C_Read... [12:01:18]Read from MH i2c: 01 07 00 B5 1A 00 00 00 00 00 FF 0F E4 [12:01:18]RasterBufferAndPrint [12:01:18]line Счет N : (1)412172 [12:01:18]line ИНН: 02508201610067 [12:01:18]line Контрольно-Кассовый Чек [12:01:18]line ПРОДАЖА [12:01:18]line ТРК (МРК, ГНК) : 22 [12:01:18]line Товар: 2710124130 [12:01:18]line Аи-92-К-2 [12:01:18]line 15.580 * 64.20 [12:01:18]line = 1000.24 [12:01:18]line НДС 12% НСП 1% [12:01:18]line > о реализуемом товаре [12:01:18]line ОКРУГЛЕНИЕ: -0.24 [12:01:18]line ИТОГО: 1000.00 [12:01:18]line Внесено: 1000.00 [12:01:18]line СДАЧА: 0.00 [12:01:18]line НСП 1% : 8.85 [12:01:18]line НДС 12% : 106.22 [12:01:18]line Наличными: 1000.00 [12:01:18]line Безнал.: 0.00 [12:01:18]line Место: АЗС № 92 "Партнер Нефть" [12:01:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:01:18]line СНО: Общий режим [12:01:18]line Чек 89 19.02.2025 12:01 [12:01:18]line Смена: 647 ФФД: 1.0 [12:01:18]line ЗНМ: 0300000118 [12:01:18]line РНМ: 0000000000091857 [12:01:18]line Версия ККМ: 001 [12:01:18]line ФМ: 0000000000871826 [12:01:18]line ФД: 187023 [12:01:18]line ФПД: 36970350345677 [12:01:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T120120&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187023&fm=36970350345677&tin=02508201610067®Number=0000000000091857&sum=100000 [12:01:18]written 0, free lines is 4095 [12:01:18]OFD Sender: Processing packet 187023 [packets to send 49, broken 48] [12:01:18]ProducePacketName [12:01:18]name=ofd_packets/00187023 [12:01:18]OFD Sender: To server: pG, [12:01:18]CommunicateWithHost lk.salyk.kg:30040 [12:01:18]ConnectInit lk.salyk.kg [12:01:19]Connected sock=10 [12:01: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 B7 E3 07 01 7A FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 10 C8 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 8F DA 02 00 35 04 06 00 21 9F D4 99 7D CD 9C BD 1B E0 DD AF C1 2A [12:01: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 97 E7 47 00 03 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 8F DA 02 00 F4 03 04 00 64 6E B5 67 B6 04 01 00 00 23 AD 96 F4 5A 4B 61 B6 [12:01:19]CommunicateWithHost err = 0 [12:01:19]CheckOFDResponse [12:01:19]1017 (14) - 77093643461234 [12:01:19]1041 (16) - 0000000000871826 [12:01:19]1040 (4) - 187023 [12:01:19]1012 (4) - 19.02.2025 05:38 [12:01:19]1206 (1) - 0 [12:01:19]OFD Sender: Remove packet 187023 [12:01:19]ProducePacketName [12:01:19]name=ofd_packets/00187023 [12:01:19]NVStorageDeleteData [12:01:19]Write to MH i2c: 01 00 00 E0 1A FA [12:01:19]Write i2c OK [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: 01 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: 01 07 00 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: 01 07 00 E0 1A 00 00 00 00 00 F5 0C 02 [12:01:19]RasterBufferAndPrint [12:01:19]line [12:01:19]line [12:01:19]line [12:01:19]line [12:01:19]line [12:01:19]written 0, free lines is 3327 [12:01:19]MH_Cut [12:01:19]Write to MH i2c: D1 01 00 E7 1A 01 D3 [12:01:19]Write i2c OK [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: D1 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: D1 01 00 [12:01:19]MH_I2C_Read... [12:01:19]Read from MH i2c: D1 01 00 E7 1A 00 D2 [12:01:19]Write to MH i2c: 01 00 00 E8 1A 02 [12:01:19]Write i2c OK [12:01:19]MH_I2C_Read... [12:01:19]OFD Sender: No OFD packet to send [12:01:20]*** Cut start [12:01:20]*** Partial cut [12:01:20]*** CUTSNS_PIN = 1 [12:01:20]*** CUTSNS_PIN = 0 [12:01:20]*** Brake cut motor [12:01:20]Read from MH i2c: 01 [12:01:20]MH_I2C_Read... [12:01:20]*** Stop cut motor [12:01:20]*** Cut end [12:01:20]Read from MH i2c: 01 07 00 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: 01 07 00 E8 1A 00 00 00 00 00 FF 0F 17 [12:01:20]process_action close_receipt done [12:01:20]requested_data is exist [12:01:20]produce_requested_data [12:01:20]requested_item fm.sn is exist - process it [12:01:20]wFMCommunicate request_size=4 [12:01:20]MH_SAM_APDU [12:01:20]CAPDU: 80 11 00 00 [12:01:20]Write to MH i2c: E2 08 00 E9 1A 80 11 00 00 00 00 00 00 7D [12:01:20]Write i2c OK [12:01:20]MH_I2C_Read... [12:01:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:20]Read from MH i2c: E2 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: E2 17 00 [12:01:20]MH_I2C_Read... [12:01:20]Read from MH i2c: E2 17 00 E9 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D0 [12:01:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:01:20]wFMCommunicate OK [12:01:20]requested_item fd.num is exist - process it [12:01:20]SAM_PROTO_GetFieldsCounters [12:01:20]wFMCommunicate request_size=4 [12:01:20]MH_SAM_APDU [12:01:20]CAPDU: 80 13 00 00 [12:01:20]Write to MH i2c: E2 08 00 EA 1A 80 13 00 00 00 00 00 00 80 [12:01:20]Write i2c OK [12:01:20]MH_I2C_Read... [12:01:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:21]Read from MH i2c: E2 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 62 00 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 62 00 EA 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 8F DA 02 00 0E 04 04 00 87 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 A5 [12:01: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 8F DA 02 00 0E 04 04 00 87 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 [12:01:21]wFMCommunicate OK [12:01:21]SAM_PROTO_GetFieldsCounters done [12:01:21]requested_item shift.num is exist - process it [12:01:21]requested_item shift.opened is exist - process it [12:01:21]req_shift_opened [12:01:21]FM_GetShiftState [12:01:21]SAM_PROTO_GetShiftState [12:01:21]wFMCommunicate request_size=4 [12:01:21]MH_SAM_APDU [12:01:21]CAPDU: 80 13 01 00 [12:01:21]Write to MH i2c: E2 08 00 EB 1A 80 13 01 00 00 00 00 00 82 [12:01:21]Write i2c OK [12:01:21]MH_I2C_Read... [12:01:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:21]Read from MH i2c: E2 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 0E 00 [12:01:21]MH_I2C_Read... [12:01:21]Read from MH i2c: E2 0E 00 EB 1A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 01 [12:01:21]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:01:21]wFMCommunicate OK [12:01:21]SAM_PROTO_GetShiftState done [12:01:21]FM_GetShiftState done [12:01:21]req_shift_opened done [12:01:21]requested_item shift.open_date is exist - process it [12:01:21]req_shift_open_date [12:01:21]req_shift_open_date done [12:01:21]produce_requested_data done [12:01:21]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187023,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [12:01:21]process_action_free close_receipt [12:01:21]json_value_free [12:01:21]json_value_free done [12:01:21]process_json_proto returns [12:01:21]Send response to host [12:01:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187023,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [12:01:21]free response buf [12:01:21]execute_script done [12:01:21]execute_script returns [12:01:21]free content buf [12:01:21]Sock 9.Close socket [12:01:21]Sock 9.Thread stoped [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:47]accept exits with 7 [12:01:47]New connection [12:01:47]New thread 3066879332 created [12:01:47]Thread 3067022692 joined [12:01:47]Waiting for new connection... [12:01:47] Sock 7.Parse request [12:01:47]Sock 7.Check first char [12:01:47]Sock 7.First char is OK [12:01:47]request: POST /json_proto HTTP/1.0 [12:01:47]Method: POST [12:01:47]URL: /json_proto [12:01:47]Method is POST - this is cgi request [12:01:47]url: /json_proto [12:01:47]query_string will be loaded in cgi processing [12:01:47]execute_cgi json_proto POST (null) [12:01:47]execute_cgi path=json_proto method=POST [12:01:47]POST find Content-Length [12:01:47]Host: 172.17.46.131:8080 [12:01:47]Content-Length: 682 [12:01:47]Content-Type: application/json [12:01:47] [12:01:47]POST finish read [12:01:47]Found Content-Length = 682 [12:01:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412174", "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" ] } } [12:01:47]execute_script... [12:01:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412174", "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" ] } } [12:01:47]POST & json_proto [12:01:47]process_json_proto [12:01:47]json parsed OK: [12:01:47]protocol is kg_v1.0 [12:01:47]action value=close_receipt [12:01:47]process_action close_receipt [12:01:47]cmd_close_receipt [12:01:47]MH_GetDate [12:01:47]Write to MH i2c: F0 00 00 EC 1A F5 [12:01:47]Write i2c OK [12:01:47]MH_I2C_Read... [12:01:47]Read from MH i2c: F0 [12:01:47]MH_I2C_Read... [12:01:47]Read from MH i2c: F0 09 00 [12:01:47]MH_I2C_Read... [12:01:47]Read from MH i2c: F0 09 00 EC 1A 00 2F C8 B5 67 7E 41 4F 65 84 [12:01:47]GetLastDocTimeStamp 1739966480 [12:01:47]current date 1739966511 [12:01:47]FM_GetShiftState [12:01:47]SAM_PROTO_GetShiftState [12:01:47]wFMCommunicate request_size=4 [12:01:47]MH_SAM_APDU [12:01:47]CAPDU: 80 13 01 00 [12:01:47]Write to MH i2c: E2 08 00 ED 1A 80 13 01 00 00 00 00 00 84 [12:01:47]Write i2c OK [12:01:47]MH_I2C_Read... [12:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:48]Read from MH i2c: E2 [12:01:48]MH_I2C_Read... [12:01:48]Read from MH i2c: E2 0E 00 [12:01:48]MH_I2C_Read... [12:01:48]Read from MH i2c: E2 0E 00 ED 1A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 03 [12:01:48]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:01:48]wFMCommunicate OK [12:01:48]SAM_PROTO_GetShiftState done [12:01:48]FM_GetShiftState done [12:01:48]opened in 1739929631 [12:01:48]opened+sec_in_day 1740016031 [12:01:48]quantity*price = 100023 [12:01:48]sum+1 = 100025 [12:01:48]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 СНО: Общий режим Чек 90 19.02.2025 12:01 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187024 ФПД: 270222828174846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T120151&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187024&fm=270222828174846&tin=02508201610067®Number=0000000000091857&sum=100000 [12:01:49]StoreToDocumentArchive [12:01:49]shift 647 fd 187024 [12:01:49]save to /storage/0647/doc_00187024 [12:01:49]save last doc name /storage/0647/doc_00187024 to /storage/kkm_last_doc_name [12:01:49]save OK [12:01:49]Clear old archive folders... [12:01:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:49]tlvbuf is 0061EF80 [12:01:49]SAM_PROTO_ClearQueue [12:01:49]wFMCommunicate request_size=4 [12:01:49]MH_SAM_APDU [12:01:49]CAPDU: 80 09 00 00 [12:01:49]Write to MH i2c: E2 08 00 FA 1A 80 09 00 00 00 00 00 00 86 [12:01:49]Write i2c OK [12:01:49]MH_I2C_Read... [12:01:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:49]Read from MH i2c: E2 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 03 00 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 03 00 FA 1A 00 90 00 88 [12:01:49]RAPDU: 90 00 [12:01:49]wFMCommunicate OK [12:01:49]SAM_PROTO_ClearQueue done [12:01:49]KKMCreateOFDPacket [12:01:49]OFDProtocolAddRootSTLVToBuf [12:01:49]FM_MakeSignedData [12:01:49]FM_MakeSignedData [12:01:49]SAM_PROTO_SignData [12:01:49]wFMCommunicate request_size=4 [12:01:49]MH_SAM_APDU [12:01:49]CAPDU: 80 0D 01 02 [12:01:49]Write to MH i2c: E2 08 00 FB 1A 80 0D 01 02 00 00 00 00 8E [12:01:49]Write i2c OK [12:01:49]MH_I2C_Read... [12:01:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:49]Read from MH i2c: E2 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 03 00 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 03 00 FB 1A 00 90 00 89 [12:01:49]RAPDU: 90 00 [12:01:49]wFMCommunicate OK [12:01:49]wFMCommunicate request_size=255 [12:01:49]MH_SAM_APDU [12:01: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 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 5A 00 00 00 F4 03 04 00 2F C8 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 90 DA 02 00 35 04 06 00 F5 [12:01:49]Write to MH i2c: E2 02 01 FC 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 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 5A 00 00 00 F4 03 04 00 2F C8 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 90 DA 02 00 35 04 06 00 F5 00 00 E2 [12:01:49]Write i2c OK [12:01:49]MH_I2C_Read... [12:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:49]Read from MH i2c: E2 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 03 00 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 03 00 FC 1A 00 90 00 8A [12:01:49]RAPDU: 90 00 [12:01:49]wFMCommunicate OK [12:01:49]wFMCommunicate request_size=10 [12:01:49]MH_SAM_APDU [12:01:49]CAPDU: 80 0D 02 02 05 C4 27 AE FD FE [12:01:49]Write to MH i2c: E2 0D 00 FD 1A 80 0D 02 02 05 00 C4 27 AE FD FE 00 00 2F [12:01:49]Write i2c OK [12:01:49]MH_I2C_Read... [12:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:49]Read from MH i2c: E2 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 03 00 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 03 00 FD 1A 00 90 00 8B [12:01:49]RAPDU: 90 00 [12:01:49]wFMCommunicate OK [12:01:49]wFMCommunicate request_size=4 [12:01:49]MH_SAM_APDU [12:01:49]CAPDU: 80 0D 03 02 [12:01:49]Write to MH i2c: E2 08 00 FE 1A 80 0D 03 02 00 00 00 00 93 [12:01:49]Write i2c OK [12:01:49]MH_I2C_Read... [12:01:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:49]Read from MH i2c: E2 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 0B 00 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 0B 00 FE 1A 00 A3 AE 7D 22 45 8D 00 8F 90 00 E5 [12:01:49]RAPDU: A3 AE 7D 22 45 8D 00 8F 90 00 [12:01:49]wFMCommunicate OK [12:01:49]SAM_PROTO_SignData done [12:01:49]FM_MakeSignedData done [12:01:49]CreateOFDProtocolMessage [12:01:49]wFMCommunicate request_size=4 [12:01:49]MH_SAM_APDU [12:01:49]CAPDU: 80 11 00 00 [12:01:49]Write to MH i2c: E2 08 00 FF 1A 80 11 00 00 00 00 00 00 93 [12:01:49]Write i2c OK [12:01:49]MH_I2C_Read... [12:01:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:49]Read from MH i2c: E2 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 17 00 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: E2 17 00 FF 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E6 [12:01:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:01:49]wFMCommunicate OK [12:01:49]CreateOFDProtocolMessage done [12:01:49]OFDSenderStorePacket 187024 [12:01:49]StoreOFDPacket docnum=187024 [12:01: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 80 CC 07 01 1F 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 5A 00 00 00 F4 03 04 00 2F C8 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 90 DA 02 00 35 04 06 00 F5 C4 27 AE FD FE A3 AE 7D 22 45 8D 00 8F [12:01:49]CheckFolder [12:01:49]dirname=/storage/ofd_packets [12:01:49]CheckFolder done [12:01:49]ProducePacketName [12:01:49]name=ofd_packets/00187024 [12:01:49]NVStorageSaveData ofd_packets/00187024 [12:01:49]File name is /storage/ofd_packets/00187024 [12:01:49]Write 301 bytes [12:01:49]NVStorageSaveData done [12:01:49]OFDSenderStorePacket done [12:01:49]KKMCreateOFDPacket done [12:01:49]NVStorageSaveData kkm_last_timestamp [12:01:49]File name is /storage/kkm_last_timestamp [12:01:49]Write 4 bytes [12:01:49]NVStorageSaveData done [12:01:49]OFD Sender: Processing packet 187024 [packets to send 49, broken 48] [12:01:49]ProducePacketName [12:01:49]name=ofd_packets/00187024 [12:01:49]OFD Sender: To server: pG, [12:01:49]CommunicateWithHost lk.salyk.kg:30040 [12:01:49]ConnectInit lk.salyk.kg [12:01:49]ExternCall_PrintAddStr [12:01:49]wPrintStart [12:01:49]Write to MH i2c: 01 00 00 00 1B 1B [12:01:49]Write i2c OK [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: 01 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: 01 07 00 [12:01:49]MH_I2C_Read... [12:01:49]Read from MH i2c: 01 07 00 00 1B 00 00 00 00 00 FF 0F 30 [12:01:49]RasterBufferAndPrint [12:01:49]line Счет N : (1)412174 [12:01:49]line ИНН: 02508201610067 [12:01:49]line Контрольно-Кассовый Чек [12:01:49]line ПРОДАЖА [12:01:49]line ТРК (МРК, ГНК) : 42 [12:01:49]line Товар: 2710124130 [12:01:49]line Аи-92-К-2 [12:01:49]line 15.580 * 64.20 [12:01:49]line = 1000.24 [12:01:49]line НДС 12% НСП 1% [12:01:49]line > о реализуемом товаре [12:01:49]line ОКРУГЛЕНИЕ: -0.24 [12:01:49]line ИТОГО: 1000.00 [12:01:49]line Внесено: 1000.00 [12:01:49]line СДАЧА: 0.00 [12:01:49]line НСП 1% : 8.85 [12:01:49]line НДС 12% : 106.22 [12:01:49]line Наличными: 1000.00 [12:01:49]line Безнал.: 0.00 [12:01:49]line Место: АЗС № 92 "Партнер Нефть" [12:01:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:01:49]line СНО: Общий режим [12:01:49]line Чек 90 19.02.2025 12:01 [12:01:49]line Смена: 647 ФФД: 1.0 [12:01:49]line ЗНМ: 0300000118 [12:01:49]line РНМ: 0000000000091857 [12:01:49]line Версия ККМ: 001 [12:01:49]line ФМ: 0000000000871826 [12:01:49]line ФД: 187024 [12:01:49]line ФПД: 270222828174846 [12:01:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T120151&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187024&fm=270222828174846&tin=02508201610067®Number=0000000000091857&sum=100000 [12:01:50]Connected sock=11 [12:01: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 80 CC 07 01 1F 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 5A 00 00 00 F4 03 04 00 2F C8 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 90 DA 02 00 35 04 06 00 F5 C4 27 AE FD FE A3 AE 7D 22 45 8D 00 8F [12:01:50]written 0, free lines is 4095 [12:01: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 20 4D 47 00 C4 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 90 DA 02 00 F4 03 04 00 83 6E B5 67 B6 04 01 00 00 7C D3 82 49 CE B3 39 51 [12:01:50]CommunicateWithHost err = 0 [12:01:50]CheckOFDResponse [12:01:50]1017 (14) - 77093643461234 [12:01:50]1041 (16) - 0000000000871826 [12:01:50]1040 (4) - 187024 [12:01:50]1012 (4) - 19.02.2025 05:39 [12:01:50]1206 (1) - 0 [12:01:50]OFD Sender: Remove packet 187024 [12:01:50]ProducePacketName [12:01:50]name=ofd_packets/00187024 [12:01:50]NVStorageDeleteData [12:01:50]Write to MH i2c: 01 00 00 2B 1B 46 [12:01:50]Write i2c OK [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: 01 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: 01 07 00 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: 01 07 00 2B 1B 00 00 00 00 00 EC 0C 45 [12:01:50]RasterBufferAndPrint [12:01:50]line [12:01:50]line [12:01:50]line [12:01:50]line [12:01:50]line [12:01:50]written 0, free lines is 3314 [12:01:50]MH_Cut [12:01:50]Write to MH i2c: D1 01 00 32 1B 01 1F [12:01:50]Write i2c OK [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: D1 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: D1 01 00 [12:01:50]MH_I2C_Read... [12:01:50]Read from MH i2c: D1 01 00 32 1B 00 1E [12:01:50]Write to MH i2c: 01 00 00 33 1B 4E [12:01:50]Write i2c OK [12:01:50]MH_I2C_Read... [12:01:50]OFD Sender: No OFD packet to send [12:01:51]*** Cut start [12:01:51]*** Partial cut [12:01:51]*** CUTSNS_PIN = 1 [12:01:51]*** CUTSNS_PIN = 0 [12:01:51]*** Brake cut motor [12:01:51]Read from MH i2c: 01 [12:01:51]MH_I2C_Read... [12:01:51]*** Stop cut motor [12:01:51]*** Cut end [12:01:51]Read from MH i2c: 01 07 00 [12:01:51]MH_I2C_Read... [12:01:51]Read from MH i2c: 01 07 00 33 1B 00 00 00 00 00 FF 0F 63 [12:01:51]process_action close_receipt done [12:01:51]requested_data is exist [12:01:51]produce_requested_data [12:01:51]requested_item fm.sn is exist - process it [12:01:51]wFMCommunicate request_size=4 [12:01:51]MH_SAM_APDU [12:01:51]CAPDU: 80 11 00 00 [12:01:51]Write to MH i2c: E2 08 00 34 1B 80 11 00 00 00 00 00 00 C9 [12:01:51]Write i2c OK [12:01:51]MH_I2C_Read... [12:01:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 17 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 17 00 34 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1C [12:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:01:52]wFMCommunicate OK [12:01:52]requested_item fd.num is exist - process it [12:01:52]SAM_PROTO_GetFieldsCounters [12:01:52]wFMCommunicate request_size=4 [12:01:52]MH_SAM_APDU [12:01:52]CAPDU: 80 13 00 00 [12:01:52]Write to MH i2c: E2 08 00 35 1B 80 13 00 00 00 00 00 00 CC [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 62 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 62 00 35 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 90 DA 02 00 0E 04 04 00 87 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 F5 [12:01: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 90 DA 02 00 0E 04 04 00 87 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:01:52]wFMCommunicate OK [12:01:52]SAM_PROTO_GetFieldsCounters done [12:01:52]requested_item shift.num is exist - process it [12:01:52]requested_item shift.opened is exist - process it [12:01:52]req_shift_opened [12:01:52]FM_GetShiftState [12:01:52]SAM_PROTO_GetShiftState [12:01:52]wFMCommunicate request_size=4 [12:01:52]MH_SAM_APDU [12:01:52]CAPDU: 80 13 01 00 [12:01:52]Write to MH i2c: E2 08 00 36 1B 80 13 01 00 00 00 00 00 CE [12:01:52]Write i2c OK [12:01:52]MH_I2C_Read... [12:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:52]Read from MH i2c: E2 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 0E 00 [12:01:52]MH_I2C_Read... [12:01:52]Read from MH i2c: E2 0E 00 36 1B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 4D [12:01:52]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:01:52]wFMCommunicate OK [12:01:52]SAM_PROTO_GetShiftState done [12:01:52]FM_GetShiftState done [12:01:52]req_shift_opened done [12:01:52]requested_item shift.open_date is exist - process it [12:01:52]req_shift_open_date [12:01:52]req_shift_open_date done [12:01:52]produce_requested_data done [12:01:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187024,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [12:01:52]process_action_free close_receipt [12:01:52]json_value_free [12:01:52]json_value_free done [12:01:52]process_json_proto returns [12:01:52]Send response to host [12:01:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187024,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [12:01:52]free response buf [12:01:52]execute_script done [12:01:52]execute_script returns [12:01:52]free content buf [12:01:52]Sock 7.Close socket [12:01:52]Sock 7.Thread stoped [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:26]accept exits with 9 [12:04:26]New connection [12:04:26]New thread 3067022692 created [12:04:26]Thread 3066879332 joined [12:04:26]Waiting for new connection... [12:04:26] Sock 9.Parse request [12:04:26]Sock 9.Check first char [12:04:26]Sock 9.First char is OK [12:04:26]request: POST /json_proto HTTP/1.0 [12:04:26]Method: POST [12:04:26]URL: /json_proto [12:04:26]Method is POST - this is cgi request [12:04:26]url: /json_proto [12:04:26]query_string will be loaded in cgi processing [12:04:26]execute_cgi json_proto POST (null) [12:04:26]execute_cgi path=json_proto method=POST [12:04:26]POST find Content-Length [12:04:26]Host: 172.17.46.131:8080 [12:04:26]Content-Length: 801 [12:04:26]Content-Type: application/json [12:04:26] [12:04:26]POST finish read [12:04:26]Found Content-Length = 801 [12:04:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412176", "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" : 13.240, "sum" : 850.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" : 850.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:26]execute_script... [12:04: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)412176", "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" : 13.240, "sum" : 850.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" : 850.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:26]POST & json_proto [12:04:26]process_json_proto [12:04:26]json parsed OK: [12:04:26]protocol is kg_v1.0 [12:04:26]action value=close_receipt [12:04:26]process_action close_receipt [12:04:26]cmd_close_receipt [12:04:26]MH_GetDate [12:04:26]Write to MH i2c: F0 00 00 37 1B 41 [12:04:26]Write i2c OK [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: F0 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: F0 09 00 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: F0 09 00 37 1B 00 CE C8 B5 67 7E 41 4F 65 6F [12:04:26]GetLastDocTimeStamp 1739966511 [12:04:26]current date 1739966670 [12:04:26]FM_GetShiftState [12:04:26]SAM_PROTO_GetShiftState [12:04:26]wFMCommunicate request_size=4 [12:04:26]MH_SAM_APDU [12:04:26]CAPDU: 80 13 01 00 [12:04:26]Write to MH i2c: E2 08 00 38 1B 80 13 01 00 00 00 00 00 D0 [12:04:26]Write i2c OK [12:04:26]MH_I2C_Read... [12:04:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:26]Read from MH i2c: E2 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: E2 0E 00 [12:04:26]MH_I2C_Read... [12:04:26]Read from MH i2c: E2 0E 00 38 1B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 4F [12:04:26]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:04:26]wFMCommunicate OK [12:04:26]SAM_PROTO_GetShiftState done [12:04:26]FM_GetShiftState done [12:04:26]opened in 1739929631 [12:04:26]opened+sec_in_day 1740016031 [12:04:26]quantity*price = 85000 [12:04:26]sum+1 = 85002 [12:04:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 850.01 НСП 1% : 7.52 НДС 12% : 90.27 Наличными: 0.00 Безнал.: 850.01 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 91 19.02.2025 12:04 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187025 ФПД: 63393843035851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T120430&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187025&fm=63393843035851&tin=02508201610067®Number=0000000000091857&sum=85001 [12:04:28]StoreToDocumentArchive [12:04:28]shift 647 fd 187025 [12:04:28]save to /storage/0647/doc_00187025 [12:04:28]save last doc name /storage/0647/doc_00187025 to /storage/kkm_last_doc_name [12:04:28]save OK [12:04:28]Clear old archive folders... [12:04:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:28]tlvbuf is 005C6870 [12:04:28]SAM_PROTO_ClearQueue [12:04:28]wFMCommunicate request_size=4 [12:04:28]MH_SAM_APDU [12:04:28]CAPDU: 80 09 00 00 [12:04:28]Write to MH i2c: E2 08 00 45 1B 80 09 00 00 00 00 00 00 D2 [12:04:28]Write i2c OK [12:04:28]MH_I2C_Read... [12:04:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:28]Read from MH i2c: E2 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: E2 03 00 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: E2 03 00 45 1B 00 90 00 D4 [12:04:28]RAPDU: 90 00 [12:04:28]wFMCommunicate OK [12:04:28]SAM_PROTO_ClearQueue done [12:04:28]KKMCreateOFDPacket [12:04:28]OFDProtocolAddRootSTLVToBuf [12:04:28]FM_MakeSignedData [12:04:28]FM_MakeSignedData [12:04:28]SAM_PROTO_SignData [12:04:28]wFMCommunicate request_size=4 [12:04:28]MH_SAM_APDU [12:04:28]CAPDU: 80 0D 01 02 [12:04:28]Write to MH i2c: E2 08 00 46 1B 80 0D 01 02 00 00 00 00 DA [12:04:28]Write i2c OK [12:04:28]MH_I2C_Read... [12:04:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:28]Read from MH i2c: E2 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: E2 03 00 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: E2 03 00 46 1B 00 90 00 D5 [12:04:28]RAPDU: 90 00 [12:04:28]wFMCommunicate OK [12:04:28]wFMCommunicate request_size=255 [12:04:28]MH_SAM_APDU [12:04:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 33 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 09 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 CE C8 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 91 DA 02 00 35 04 06 00 39 [12:04:28]Write to MH i2c: E2 02 01 47 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 B8 33 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 09 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 CE C8 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 91 DA 02 00 35 04 06 00 39 00 00 94 [12:04:28]Write i2c OK [12:04:28]MH_I2C_Read... [12:04:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:28]Read from MH i2c: E2 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: E2 03 00 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: E2 03 00 47 1B 00 90 00 D6 [12:04:28]RAPDU: 90 00 [12:04:28]wFMCommunicate OK [12:04:28]wFMCommunicate request_size=10 [12:04:28]MH_SAM_APDU [12:04:28]CAPDU: 80 0D 02 02 05 A8 07 7E BE CB [12:04:28]Write to MH i2c: E2 0D 00 48 1B 80 0D 02 02 05 00 A8 07 7E BE CB 00 00 9D [12:04:28]Write i2c OK [12:04:28]MH_I2C_Read... [12:04:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:28]Read from MH i2c: E2 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: E2 03 00 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: E2 03 00 48 1B 00 90 00 D7 [12:04:28]RAPDU: 90 00 [12:04:28]wFMCommunicate OK [12:04:28]wFMCommunicate request_size=4 [12:04:28]MH_SAM_APDU [12:04:28]CAPDU: 80 0D 03 02 [12:04:28]Write to MH i2c: E2 08 00 49 1B 80 0D 03 02 00 00 00 00 DF [12:04:28]Write i2c OK [12:04:28]MH_I2C_Read... [12:04:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:28]Read from MH i2c: E2 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: E2 0B 00 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: E2 0B 00 49 1B 00 B1 04 2D CB 99 27 DA 5F 90 00 86 [12:04:28]RAPDU: B1 04 2D CB 99 27 DA 5F 90 00 [12:04:28]wFMCommunicate OK [12:04:28]SAM_PROTO_SignData done [12:04:28]FM_MakeSignedData done [12:04:28]CreateOFDProtocolMessage [12:04:28]wFMCommunicate request_size=4 [12:04:28]MH_SAM_APDU [12:04:28]CAPDU: 80 11 00 00 [12:04:28]Write to MH i2c: E2 08 00 4A 1B 80 11 00 00 00 00 00 00 DF [12:04:28]Write i2c OK [12:04:28]MH_I2C_Read... [12:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:28]Read from MH i2c: E2 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: E2 17 00 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: E2 17 00 4A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 32 [12:04: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:04:28]wFMCommunicate OK [12:04:28]CreateOFDProtocolMessage done [12:04:28]OFDSenderStorePacket 187025 [12:04:28]StoreOFDPacket docnum=187025 [12:04: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 0F 01 00 00 D8 4C 07 01 66 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 B8 33 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 09 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 CE C8 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 91 DA 02 00 35 04 06 00 39 A8 07 7E BE CB B1 04 2D CB 99 27 DA 5F [12:04:28]CheckFolder [12:04:28]dirname=/storage/ofd_packets [12:04:28]CheckFolder done [12:04:28]ProducePacketName [12:04:28]name=ofd_packets/00187025 [12:04:28]NVStorageSaveData ofd_packets/00187025 [12:04:28]File name is /storage/ofd_packets/00187025 [12:04:28]Write 301 bytes [12:04:28]NVStorageSaveData done [12:04:28]OFDSenderStorePacket done [12:04:28]KKMCreateOFDPacket done [12:04:28]NVStorageSaveData kkm_last_timestamp [12:04:28]File name is /storage/kkm_last_timestamp [12:04:28]Write 4 bytes [12:04:28]NVStorageSaveData done [12:04:28]ExternCall_PrintAddStr [12:04:28]wPrintStart [12:04:28]Write to MH i2c: 01 00 00 4B 1B 66 [12:04:28]Write i2c OK [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: 01 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: 01 07 00 [12:04:28]MH_I2C_Read... [12:04:28]Read from MH i2c: 01 07 00 4B 1B 00 00 00 00 00 FF 0F 7B [12:04:28]RasterBufferAndPrint [12:04:28]line Счет N : (1)412176 [12:04:28]line ИНН: 02508201610067 [12:04:28]line Контрольно-Кассовый Чек [12:04:28]line ПРОДАЖА [12:04:28]line ТРК (МРК, ГНК) : 22 [12:04:28]line Товар: 2710124130 [12:04:28]line Аи-92-К-2 [12:04:28]line 13.240 * 64.20 [12:04:28]line = 850.01 [12:04:28]line НДС 12% НСП 1% [12:04:28]line > о реализуемом товаре [12:04:28]line ИТОГО: 850.01 [12:04:28]line НСП 1% : 7.52 [12:04:28]line НДС 12% : 90.27 [12:04:28]line Наличными: 0.00 [12:04:28]line Безнал.: 850.01 [12:04:28]line Место: АЗС № 92 "Партнер Нефть" [12:04:28]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:04:28]line СНО: Общий режим [12:04:28]line Чек 91 19.02.2025 12:04 [12:04:28]line Смена: 647 ФФД: 1.0 [12:04:28]line ЗНМ: 0300000118 [12:04:28]line РНМ: 0000000000091857 [12:04:28]line Версия ККМ: 001 [12:04:28]line Платежная система: O! деньги [12:04:28]line ФМ: 0000000000871826 [12:04:28]line ФД: 187025 [12:04:28]line ФПД: 63393843035851 [12:04:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T120430&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187025&fm=63393843035851&tin=02508201610067®Number=0000000000091857&sum=85001 [12:04:28]written 0, free lines is 4095 [12:04:28]OFD Sender: Processing packet 187025 [packets to send 49, broken 48] [12:04:28]ProducePacketName [12:04:28]name=ofd_packets/00187025 [12:04:29]OFD Sender: To server: pG, [12:04:29]CommunicateWithHost lk.salyk.kg:30040 [12:04:29]ConnectInit lk.salyk.kg [12:04:29]Write to MH i2c: 01 00 00 75 1B 90 [12:04:29]Write i2c OK [12:04:29]MH_I2C_Read... [12:04:29]Read from MH i2c: 01 [12:04:29]MH_I2C_Read... [12:04:29]Read from MH i2c: 01 07 00 [12:04:29]MH_I2C_Read... [12:04:29]Read from MH i2c: 01 07 00 75 1B 00 00 00 00 00 FE 0C A1 [12:04:29]RasterBufferAndPrint [12:04:29]line [12:04:29]line [12:04:29]line [12:04:29]line [12:04:29]line [12:04:29]written 0, free lines is 3331 [12:04:29]MH_Cut [12:04:29]Write to MH i2c: D1 01 00 7C 1B 01 69 [12:04:29]Write i2c OK [12:04:29]MH_I2C_Read... [12:04:29]Read from MH i2c: D1 [12:04:29]MH_I2C_Read... [12:04:29]Read from MH i2c: D1 01 00 [12:04:29]MH_I2C_Read... [12:04:29]Read from MH i2c: D1 01 00 7C 1B 00 68 [12:04:29]Write to MH i2c: 01 00 00 7D 1B 98 [12:04:29]Write i2c OK [12:04:29]MH_I2C_Read... [12:04:29]Connected sock=7 [12:04: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 D8 4C 07 01 66 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 B8 33 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 09 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 CE C8 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 91 DA 02 00 35 04 06 00 39 A8 07 7E BE CB B1 04 2D CB 99 27 DA 5F [12:04: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 01 1B 47 00 71 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 91 DA 02 00 F4 03 04 00 22 6F B5 67 B6 04 01 00 00 E9 83 5B 1A 2B 47 BB FB [12:04:29]CommunicateWithHost err = 0 [12:04:29]CheckOFDResponse [12:04:29]1017 (14) - 77093643461234 [12:04:29]1041 (16) - 0000000000871826 [12:04:29]1040 (4) - 187025 [12:04:29]1012 (4) - 19.02.2025 05:41 [12:04:29]1206 (1) - 0 [12:04:29]OFD Sender: Remove packet 187025 [12:04:29]ProducePacketName [12:04:29]name=ofd_packets/00187025 [12:04:29]NVStorageDeleteData [12:04:29]*** Cut start [12:04:29]*** Partial cut [12:04:29]*** CUTSNS_PIN = 1 [12:04:29]*** CUTSNS_PIN = 0 [12:04:29]OFD Sender: No OFD packet to send [12:04:30]*** Brake cut motor [12:04:30]Read from MH i2c: 01 [12:04:30]MH_I2C_Read... [12:04:30]*** Stop cut motor [12:04:30]*** Cut end [12:04:30]Read from MH i2c: 01 07 00 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: 01 07 00 7D 1B 00 00 00 00 00 FF 0F AD [12:04:30]process_action close_receipt done [12:04:30]requested_data is exist [12:04:30]produce_requested_data [12:04:30]requested_item fm.sn is exist - process it [12:04:30]wFMCommunicate request_size=4 [12:04:30]MH_SAM_APDU [12:04:30]CAPDU: 80 11 00 00 [12:04:30]Write to MH i2c: E2 08 00 7E 1B 80 11 00 00 00 00 00 00 13 [12:04:30]Write i2c OK [12:04:30]MH_I2C_Read... [12:04:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:30]Read from MH i2c: E2 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 17 00 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 17 00 7E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 66 [12:04:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:04:30]wFMCommunicate OK [12:04:30]requested_item fd.num is exist - process it [12:04:30]SAM_PROTO_GetFieldsCounters [12:04:30]wFMCommunicate request_size=4 [12:04:30]MH_SAM_APDU [12:04:30]CAPDU: 80 13 00 00 [12:04:30]Write to MH i2c: E2 08 00 7F 1B 80 13 00 00 00 00 00 00 16 [12:04:30]Write i2c OK [12:04:30]MH_I2C_Read... [12:04:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:30]Read from MH i2c: E2 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 62 00 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 62 00 7F 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 91 DA 02 00 0E 04 04 00 87 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 43 [12:04: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 91 DA 02 00 0E 04 04 00 87 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:04:30]wFMCommunicate OK [12:04:30]SAM_PROTO_GetFieldsCounters done [12:04:30]requested_item shift.num is exist - process it [12:04:30]requested_item shift.opened is exist - process it [12:04:30]req_shift_opened [12:04:30]FM_GetShiftState [12:04:30]SAM_PROTO_GetShiftState [12:04:30]wFMCommunicate request_size=4 [12:04:30]MH_SAM_APDU [12:04:30]CAPDU: 80 13 01 00 [12:04:30]Write to MH i2c: E2 08 00 80 1B 80 13 01 00 00 00 00 00 18 [12:04:30]Write i2c OK [12:04:30]MH_I2C_Read... [12:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:30]Read from MH i2c: E2 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 0E 00 [12:04:30]MH_I2C_Read... [12:04:30]Read from MH i2c: E2 0E 00 80 1B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 97 [12:04:30]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:04:30]wFMCommunicate OK [12:04:30]SAM_PROTO_GetShiftState done [12:04:30]FM_GetShiftState done [12:04:30]req_shift_opened done [12:04:30]requested_item shift.open_date is exist - process it [12:04:30]req_shift_open_date [12:04:30]req_shift_open_date done [12:04:30]produce_requested_data done [12:04:30]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187025,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [12:04:30]process_action_free close_receipt [12:04:30]json_value_free [12:04:30]json_value_free done [12:04:30]process_json_proto returns [12:04:30]Send response to host [12:04:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187025,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [12:04:30]free response buf [12:04:30]execute_script done [12:04:30]execute_script returns [12:04:30]free content buf [12:04:30]Sock 9.Close socket [12:04:30]Sock 9.Thread stoped [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]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]accept exits with 10 [12:08:50]New connection [12:08:50]New thread 3066879332 created [12:08:50]Thread 3067022692 joined [12:08:50]Waiting for new connection... [12:08:50] Sock 10.Parse request [12:08:50]Sock 10.Check first char [12:08:50]Sock 10.First char is OK [12:08:50]request: POST /json_proto HTTP/1.0 [12:08:50]Method: POST [12:08:50]URL: /json_proto [12:08:50]Method is POST - this is cgi request [12:08:50]url: /json_proto [12:08:50]query_string will be loaded in cgi processing [12:08:50]execute_cgi json_proto POST (null) [12:08:50]execute_cgi path=json_proto method=POST [12:08:50]POST find Content-Length [12:08:50]Host: 172.17.46.131:8080 [12:08:50]Content-Length: 677 [12:08:50]Content-Type: application/json [12:08:50] [12:08:50]POST finish read [12:08:50]Found Content-Length = 677 [12:08:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412177", "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" ] } } [12:08:50]execute_script... [12:08:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412177", "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" ] } } [12:08:50]POST & json_proto [12:08:50]process_json_proto [12:08:50]json parsed OK: [12:08:50]protocol is kg_v1.0 [12:08:50]action value=close_receipt [12:08:50]process_action close_receipt [12:08:50]cmd_close_receipt [12:08:50]MH_GetDate [12:08:50]Write to MH i2c: F0 00 00 81 1B 8B [12:08:50]Write i2c OK [12:08:50]MH_I2C_Read... [12:08:50]Read from MH i2c: F0 [12:08:50]MH_I2C_Read... [12:08:50]Read from MH i2c: F0 09 00 [12:08:50]MH_I2C_Read... [12:08:50]Read from MH i2c: F0 09 00 81 1B 00 D5 C9 B5 67 7E 41 4F 65 C1 [12:08:50]GetLastDocTimeStamp 1739966670 [12:08:50]current date 1739966933 [12:08:50]FM_GetShiftState [12:08:50]SAM_PROTO_GetShiftState [12:08:50]wFMCommunicate request_size=4 [12:08:50]MH_SAM_APDU [12:08:50]CAPDU: 80 13 01 00 [12:08:50]Write to MH i2c: E2 08 00 82 1B 80 13 01 00 00 00 00 00 1A [12:08:50]Write i2c OK [12:08:50]MH_I2C_Read... [12:08:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:50]Read from MH i2c: E2 [12:08:50]MH_I2C_Read... [12:08:50]Read from MH i2c: E2 0E 00 [12:08:50]MH_I2C_Read... [12:08:50]Read from MH i2c: E2 0E 00 82 1B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 99 [12:08:50]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:08:50]wFMCommunicate OK [12:08:50]SAM_PROTO_GetShiftState done [12:08:50]FM_GetShiftState done [12:08:50]opened in 1739929631 [12:08:50]opened+sec_in_day 1740016031 [12:08:50]quantity*price = 20030 [12:08:50]sum+1 = 20031 [12:08: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 СНО: Общий режим Чек 92 19.02.2025 12:08 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187026 ФПД: 14645812681990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T120853&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187026&fm=14645812681990&tin=02508201610067®Number=0000000000091857&sum=20000 [12:08:51]StoreToDocumentArchive [12:08:51]shift 647 fd 187026 [12:08:51]save to /storage/0647/doc_00187026 [12:08:51]save last doc name /storage/0647/doc_00187026 to /storage/kkm_last_doc_name [12:08:51]save OK [12:08:51]Clear old archive folders... [12:08:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:08:51]tlvbuf is 0060E990 [12:08:51]SAM_PROTO_ClearQueue [12:08:51]wFMCommunicate request_size=4 [12:08:51]MH_SAM_APDU [12:08:51]CAPDU: 80 09 00 00 [12:08:51]Write to MH i2c: E2 08 00 8F 1B 80 09 00 00 00 00 00 00 1C [12:08:51]Write i2c OK [12:08:51]MH_I2C_Read... [12:08:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:51]Read from MH i2c: E2 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 03 00 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 03 00 8F 1B 00 90 00 1E [12:08:51]RAPDU: 90 00 [12:08:51]wFMCommunicate OK [12:08:51]SAM_PROTO_ClearQueue done [12:08:51]KKMCreateOFDPacket [12:08:51]OFDProtocolAddRootSTLVToBuf [12:08:51]FM_MakeSignedData [12:08:51]FM_MakeSignedData [12:08:51]SAM_PROTO_SignData [12:08:51]wFMCommunicate request_size=4 [12:08:51]MH_SAM_APDU [12:08:51]CAPDU: 80 0D 01 02 [12:08:51]Write to MH i2c: E2 08 00 90 1B 80 0D 01 02 00 00 00 00 24 [12:08:51]Write i2c OK [12:08:51]MH_I2C_Read... [12:08:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:51]Read from MH i2c: E2 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 03 00 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 03 00 90 1B 00 90 00 1F [12:08:51]RAPDU: 90 00 [12:08:51]wFMCommunicate OK [12:08:51]wFMCommunicate request_size=255 [12:08:51]MH_SAM_APDU [12:08:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 5C 00 00 00 F4 03 04 00 D5 C9 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 92 DA 02 00 35 04 06 00 0D [12:08:51]Write to MH i2c: E2 02 01 91 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 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 5C 00 00 00 F4 03 04 00 D5 C9 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 92 DA 02 00 35 04 06 00 0D 00 00 23 [12:08:51]Write i2c OK [12:08:51]MH_I2C_Read... [12:08:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:51]Read from MH i2c: E2 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 03 00 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 03 00 91 1B 00 90 00 20 [12:08:51]RAPDU: 90 00 [12:08:51]wFMCommunicate OK [12:08:51]wFMCommunicate request_size=10 [12:08:51]MH_SAM_APDU [12:08:51]CAPDU: 80 0D 02 02 05 51 FE 76 5D 06 [12:08:51]Write to MH i2c: E2 0D 00 92 1B 80 0D 02 02 05 00 51 FE 76 5D 06 00 00 59 [12:08:51]Write i2c OK [12:08:51]MH_I2C_Read... [12:08:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:51]Read from MH i2c: E2 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 03 00 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 03 00 92 1B 00 90 00 21 [12:08:51]RAPDU: 90 00 [12:08:51]wFMCommunicate OK [12:08:51]wFMCommunicate request_size=4 [12:08:51]MH_SAM_APDU [12:08:51]CAPDU: 80 0D 03 02 [12:08:51]Write to MH i2c: E2 08 00 93 1B 80 0D 03 02 00 00 00 00 29 [12:08:51]Write i2c OK [12:08:51]MH_I2C_Read... [12:08:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:51]Read from MH i2c: E2 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 0B 00 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 0B 00 93 1B 00 B2 B3 02 90 AE B4 AD A7 90 00 D7 [12:08:51]RAPDU: B2 B3 02 90 AE B4 AD A7 90 00 [12:08:51]wFMCommunicate OK [12:08:51]SAM_PROTO_SignData done [12:08:51]FM_MakeSignedData done [12:08:51]CreateOFDProtocolMessage [12:08:51]wFMCommunicate request_size=4 [12:08:51]MH_SAM_APDU [12:08:51]CAPDU: 80 11 00 00 [12:08:51]Write to MH i2c: E2 08 00 94 1B 80 11 00 00 00 00 00 00 29 [12:08:51]Write i2c OK [12:08:51]MH_I2C_Read... [12:08:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:51]Read from MH i2c: E2 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 17 00 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: E2 17 00 94 1B 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:08: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:08:51]wFMCommunicate OK [12:08:51]CreateOFDProtocolMessage done [12:08:51]OFDSenderStorePacket 187026 [12:08:51]StoreOFDPacket docnum=187026 [12:08: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 6A A8 07 01 52 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 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 5C 00 00 00 F4 03 04 00 D5 C9 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 92 DA 02 00 35 04 06 00 0D 51 FE 76 5D 06 B2 B3 02 90 AE B4 AD A7 [12:08:51]CheckFolder [12:08:51]dirname=/storage/ofd_packets [12:08:51]CheckFolder done [12:08:51]ProducePacketName [12:08:51]name=ofd_packets/00187026 [12:08:51]NVStorageSaveData ofd_packets/00187026 [12:08:51]File name is /storage/ofd_packets/00187026 [12:08:51]Write 301 bytes [12:08:51]NVStorageSaveData done [12:08:51]OFDSenderStorePacket done [12:08:51]KKMCreateOFDPacket done [12:08:51]NVStorageSaveData kkm_last_timestamp [12:08:51]File name is /storage/kkm_last_timestamp [12:08:51]Write 4 bytes [12:08:51]NVStorageSaveData done [12:08:51]ExternCall_PrintAddStr [12:08:51]wPrintStart [12:08:51]Write to MH i2c: 01 00 00 95 1B B0 [12:08:51]Write i2c OK [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: 01 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: 01 07 00 [12:08:51]MH_I2C_Read... [12:08:51]Read from MH i2c: 01 07 00 95 1B 00 00 00 00 00 FF 0F C5 [12:08:51]RasterBufferAndPrint [12:08:51]line Счет N : (1)412177 [12:08:51]line ИНН: 02508201610067 [12:08:51]line Контрольно-Кассовый Чек [12:08:51]line ПРОДАЖА [12:08:51]line ТРК (МРК, ГНК) : 22 [12:08:51]line Товар: 2710124130 [12:08:51]line Аи-92-К-2 [12:08:51]line 3.120 * 64.20 [12:08:51]line = 200.30 [12:08:51]line НДС 12% НСП 1% [12:08:51]line > о реализуемом товаре [12:08:51]line ОКРУГЛЕНИЕ: -0.30 [12:08:51]line ИТОГО: 200.00 [12:08:51]line Внесено: 200.00 [12:08:51]line СДАЧА: 0.00 [12:08:51]line НСП 1% : 1.77 [12:08:51]line НДС 12% : 21.27 [12:08:51]line Наличными: 200.00 [12:08:51]line Безнал.: 0.00 [12:08:51]line Место: АЗС № 92 "Партнер Нефть" [12:08:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:08:51]line СНО: Общий режим [12:08:51]line Чек 92 19.02.2025 12:08 [12:08:51]line Смена: 647 ФФД: 1.0 [12:08:51]line ЗНМ: 0300000118 [12:08:51]line РНМ: 0000000000091857 [12:08:51]line Версия ККМ: 001 [12:08:51]line ФМ: 0000000000871826 [12:08:51]line ФД: 187026 [12:08:51]line ФПД: 14645812681990 [12:08:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T120853&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187026&fm=14645812681990&tin=02508201610067®Number=0000000000091857&sum=20000 [12:08:51]OFD Sender: Processing packet 187026 [packets to send 49, broken 48] [12:08:51]ProducePacketName [12:08:51]name=ofd_packets/00187026 [12:08:51]OFD Sender: To server: pG, [12:08:51]CommunicateWithHost lk.salyk.kg:30040 [12:08:51]ConnectInit lk.salyk.kg [12:08:52]Connected sock=11 [12:08:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6A A8 07 01 52 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 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 5C 00 00 00 F4 03 04 00 D5 C9 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 92 DA 02 00 35 04 06 00 0D 51 FE 76 5D 06 B2 B3 02 90 AE B4 AD A7 [12:08:52]written 0, free lines is 4095 [12:08:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D3 BD 47 00 99 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 92 DA 02 00 F4 03 04 00 29 70 B5 67 B6 04 01 00 00 2C 3C E2 9B 7F DB 7B B6 [12:08:52]CommunicateWithHost err = 0 [12:08:52]CheckOFDResponse [12:08:52]1017 (14) - 77093643461234 [12:08:52]1041 (16) - 0000000000871826 [12:08:52]1040 (4) - 187026 [12:08:52]1012 (4) - 19.02.2025 05:46 [12:08:52]1206 (1) - 0 [12:08:52]OFD Sender: Remove packet 187026 [12:08:52]ProducePacketName [12:08:52]name=ofd_packets/00187026 [12:08:52]NVStorageDeleteData [12:08:52]Write to MH i2c: 01 00 00 C0 1B DB [12:08:52]Write i2c OK [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: 01 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: 01 07 00 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: 01 07 00 C0 1B 00 00 00 00 00 E4 0C D2 [12:08:52]RasterBufferAndPrint [12:08:52]line [12:08:52]line [12:08:52]line [12:08:52]line [12:08:52]line [12:08:52]written 0, free lines is 3306 [12:08:52]MH_Cut [12:08:52]Write to MH i2c: D1 01 00 C7 1B 01 B4 [12:08:52]Write i2c OK [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: D1 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: D1 01 00 [12:08:52]MH_I2C_Read... [12:08:52]Read from MH i2c: D1 01 00 C7 1B 00 B3 [12:08:52]Write to MH i2c: 01 00 00 C8 1B E3 [12:08:52]Write i2c OK [12:08:52]MH_I2C_Read... [12:08:52]OFD Sender: No OFD packet to send [12:08:53]*** Cut start [12:08:53]*** Partial cut [12:08:53]*** CUTSNS_PIN = 1 [12:08:53]*** CUTSNS_PIN = 0 [12:08:53]*** Brake cut motor [12:08:53]Read from MH i2c: 01 [12:08:53]MH_I2C_Read... [12:08:53]*** Stop cut motor [12:08:53]*** Cut end [12:08:53]Read from MH i2c: 01 07 00 [12:08:53]MH_I2C_Read... [12:08:53]Read from MH i2c: 01 07 00 C8 1B 00 00 00 00 00 FF 0F F8 [12:08:53]process_action close_receipt done [12:08:53]requested_data is exist [12:08:53]produce_requested_data [12:08:53]requested_item fm.sn is exist - process it [12:08:53]wFMCommunicate request_size=4 [12:08:53]MH_SAM_APDU [12:08:53]CAPDU: 80 11 00 00 [12:08:54]Write to MH i2c: E2 08 00 C9 1B 80 11 00 00 00 00 00 00 5E [12:08:54]Write i2c OK [12:08:54]MH_I2C_Read... [12:08:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:54]Read from MH i2c: E2 [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: E2 17 00 [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: E2 17 00 C9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B1 [12:08: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:08:54]wFMCommunicate OK [12:08:54]requested_item fd.num is exist - process it [12:08:54]SAM_PROTO_GetFieldsCounters [12:08:54]wFMCommunicate request_size=4 [12:08:54]MH_SAM_APDU [12:08:54]CAPDU: 80 13 00 00 [12:08:54]Write to MH i2c: E2 08 00 CA 1B 80 13 00 00 00 00 00 00 61 [12:08:54]Write i2c OK [12:08:54]MH_I2C_Read... [12:08:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:54]Read from MH i2c: E2 [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: E2 62 00 [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: E2 62 00 CA 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 92 DA 02 00 0E 04 04 00 87 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 92 [12:08:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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:08:54]wFMCommunicate OK [12:08:54]SAM_PROTO_GetFieldsCounters done [12:08:54]requested_item shift.num is exist - process it [12:08:54]requested_item shift.opened is exist - process it [12:08:54]req_shift_opened [12:08:54]FM_GetShiftState [12:08:54]SAM_PROTO_GetShiftState [12:08:54]wFMCommunicate request_size=4 [12:08:54]MH_SAM_APDU [12:08:54]CAPDU: 80 13 01 00 [12:08:54]Write to MH i2c: E2 08 00 CB 1B 80 13 01 00 00 00 00 00 63 [12:08:54]Write i2c OK [12:08:54]MH_I2C_Read... [12:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:54]Read from MH i2c: E2 [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: E2 0E 00 [12:08:54]MH_I2C_Read... [12:08:54]Read from MH i2c: E2 0E 00 CB 1B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E2 [12:08:54]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:08:54]wFMCommunicate OK [12:08:54]SAM_PROTO_GetShiftState done [12:08:54]FM_GetShiftState done [12:08:54]req_shift_opened done [12:08:54]requested_item shift.open_date is exist - process it [12:08:54]req_shift_open_date [12:08:54]req_shift_open_date done [12:08:54]produce_requested_data done [12:08:54]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187026,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [12:08:54]process_action_free close_receipt [12:08:54]json_value_free [12:08:54]json_value_free done [12:08:54]process_json_proto returns [12:08:54]Send response to host [12:08:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187026,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [12:08:54]free response buf [12:08:54]execute_script done [12:08:54]execute_script returns [12:08:54]free content buf [12:08:54]Sock 10.Close socket [12:08:54]Sock 10.Thread stoped [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:13]accept exits with 7 [12:09:13]New connection [12:09:13]New thread 3067022692 created [12:09:13]Thread 3066879332 joined [12:09:13]Waiting for new connection... [12:09:13] Sock 7.Parse request [12:09:13]Sock 7.Check first char [12:09:13]Sock 7.First char is OK [12:09:13]request: POST /json_proto HTTP/1.0 [12:09:13]Method: POST [12:09:13]URL: /json_proto [12:09:13]Method is POST - this is cgi request [12:09:13]url: /json_proto [12:09:13]query_string will be loaded in cgi processing [12:09:13]execute_cgi json_proto POST (null) [12:09:13]execute_cgi path=json_proto method=POST [12:09:13]POST find Content-Length [12:09:13]Host: 172.17.46.131:8080 [12:09:13]Content-Length: 677 [12:09:13]Content-Type: application/json [12:09:13] [12:09:13]POST finish read [12:09:13]Found Content-Length = 677 [12:09:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412178", "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" ] } } [12:09:13]execute_script... [12:09: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)412178", "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" ] } } [12:09:13]POST & json_proto [12:09:13]process_json_proto [12:09:13]json parsed OK: [12:09:13]protocol is kg_v1.0 [12:09:13]action value=close_receipt [12:09:13]process_action close_receipt [12:09:13]cmd_close_receipt [12:09:13]MH_GetDate [12:09:13]Write to MH i2c: F0 00 00 CC 1B D6 [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: F0 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: F0 09 00 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: F0 09 00 CC 1B 00 EC C9 B5 67 7E 41 4F 65 23 [12:09:13]GetLastDocTimeStamp 1739966933 [12:09:13]current date 1739966956 [12:09:13]FM_GetShiftState [12:09:13]SAM_PROTO_GetShiftState [12:09:13]wFMCommunicate request_size=4 [12:09:13]MH_SAM_APDU [12:09:13]CAPDU: 80 13 01 00 [12:09:13]Write to MH i2c: E2 08 00 CD 1B 80 13 01 00 00 00 00 00 65 [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:13]Read from MH i2c: E2 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 0E 00 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: E2 0E 00 CD 1B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E4 [12:09:13]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:09:13]wFMCommunicate OK [12:09:13]SAM_PROTO_GetShiftState done [12:09:13]FM_GetShiftState done [12:09:13]opened in 1739929631 [12:09:13]opened+sec_in_day 1740016031 [12:09:13]quantity*price = 50011 [12:09:13]sum+1 = 50013 [12:09:13]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 СНО: Общий режим Чек 93 19.02.2025 12:09 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187027 ФПД: 41222527079924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T120916&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187027&fm=41222527079924&tin=02508201610067®Number=0000000000091857&sum=50000 [12:09:14]StoreToDocumentArchive [12:09:14]shift 647 fd 187027 [12:09:14]save to /storage/0647/doc_00187027 [12:09:14]save last doc name /storage/0647/doc_00187027 to /storage/kkm_last_doc_name [12:09:14]save OK [12:09:14]Clear old archive folders... [12:09:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:14]tlvbuf is 005E4FC0 [12:09:14]SAM_PROTO_ClearQueue [12:09:14]wFMCommunicate request_size=4 [12:09:14]MH_SAM_APDU [12:09:14]CAPDU: 80 09 00 00 [12:09:14]Write to MH i2c: E2 08 00 DA 1B 80 09 00 00 00 00 00 00 67 [12:09:14]Write i2c OK [12:09:14]MH_I2C_Read... [12:09:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:14]Read from MH i2c: E2 [12:09:14]MH_I2C_Read... [12:09:14]Read from MH i2c: E2 03 00 [12:09:14]MH_I2C_Read... [12:09:14]Read from MH i2c: E2 03 00 DA 1B 00 90 00 69 [12:09:14]RAPDU: 90 00 [12:09:14]wFMCommunicate OK [12:09:14]SAM_PROTO_ClearQueue done [12:09:14]KKMCreateOFDPacket [12:09:14]OFDProtocolAddRootSTLVToBuf [12:09:14]FM_MakeSignedData [12:09:14]FM_MakeSignedData [12:09:14]SAM_PROTO_SignData [12:09:14]wFMCommunicate request_size=4 [12:09:14]MH_SAM_APDU [12:09:14]CAPDU: 80 0D 01 02 [12:09:14]Write to MH i2c: E2 08 00 DB 1B 80 0D 01 02 00 00 00 00 6F [12:09:14]Write i2c OK [12:09:14]MH_I2C_Read... [12:09:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:14]Read from MH i2c: E2 [12:09:14]MH_I2C_Read... [12:09:14]Read from MH i2c: E2 03 00 [12:09:14]MH_I2C_Read... [12:09:14]Read from MH i2c: E2 03 00 DB 1B 00 90 00 6A [12:09:14]RAPDU: 90 00 [12:09:14]wFMCommunicate OK [12:09:14]wFMCommunicate request_size=255 [12:09:14]MH_SAM_APDU [12:09: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 5D 00 00 00 F4 03 04 00 EC C9 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 93 DA 02 00 35 04 06 00 25 [12:09:14]Write to MH i2c: E2 02 01 DC 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 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 5D 00 00 00 F4 03 04 00 EC C9 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 93 DA 02 00 35 04 06 00 25 00 00 53 [12:09:14]Write i2c OK [12:09:14]MH_I2C_Read... [12:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:15]Read from MH i2c: E2 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 03 00 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 03 00 DC 1B 00 90 00 6B [12:09:15]RAPDU: 90 00 [12:09:15]wFMCommunicate OK [12:09:15]wFMCommunicate request_size=10 [12:09:15]MH_SAM_APDU [12:09:15]CAPDU: 80 0D 02 02 05 7D DE 15 55 F4 [12:09:15]Write to MH i2c: E2 0D 00 DD 1B 80 0D 02 02 05 00 7D DE 15 55 F4 00 00 35 [12:09:15]Write i2c OK [12:09:15]MH_I2C_Read... [12:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:15]Read from MH i2c: E2 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 03 00 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 03 00 DD 1B 00 90 00 6C [12:09:15]RAPDU: 90 00 [12:09:15]wFMCommunicate OK [12:09:15]wFMCommunicate request_size=4 [12:09:15]MH_SAM_APDU [12:09:15]CAPDU: 80 0D 03 02 [12:09:15]Write to MH i2c: E2 08 00 DE 1B 80 0D 03 02 00 00 00 00 74 [12:09:15]Write i2c OK [12:09:15]MH_I2C_Read... [12:09:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:15]Read from MH i2c: E2 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 0B 00 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 0B 00 DE 1B 00 57 10 72 2C 9A 86 38 A0 90 00 72 [12:09:15]RAPDU: 57 10 72 2C 9A 86 38 A0 90 00 [12:09:15]wFMCommunicate OK [12:09:15]SAM_PROTO_SignData done [12:09:15]FM_MakeSignedData done [12:09:15]CreateOFDProtocolMessage [12:09:15]wFMCommunicate request_size=4 [12:09:15]MH_SAM_APDU [12:09:15]CAPDU: 80 11 00 00 [12:09:15]Write to MH i2c: E2 08 00 DF 1B 80 11 00 00 00 00 00 00 74 [12:09:15]Write i2c OK [12:09:15]MH_I2C_Read... [12:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:15]Read from MH i2c: E2 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 17 00 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 17 00 DF 1B 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:09:15]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:15]wFMCommunicate OK [12:09:15]CreateOFDProtocolMessage done [12:09:15]OFDSenderStorePacket 187027 [12:09:15]StoreOFDPacket docnum=187027 [12:09: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 33 0E 07 01 81 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 5D 00 00 00 F4 03 04 00 EC C9 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 93 DA 02 00 35 04 06 00 25 7D DE 15 55 F4 57 10 72 2C 9A 86 38 A0 [12:09:15]CheckFolder [12:09:15]dirname=/storage/ofd_packets [12:09:15]CheckFolder done [12:09:15]ProducePacketName [12:09:15]name=ofd_packets/00187027 [12:09:15]NVStorageSaveData ofd_packets/00187027 [12:09:15]File name is /storage/ofd_packets/00187027 [12:09:15]Write 301 bytes [12:09:15]NVStorageSaveData done [12:09:15]OFDSenderStorePacket done [12:09:15]KKMCreateOFDPacket done [12:09:15]NVStorageSaveData kkm_last_timestamp [12:09:15]File name is /storage/kkm_last_timestamp [12:09:15]Write 4 bytes [12:09:15]NVStorageSaveData done [12:09:15]ExternCall_PrintAddStr [12:09:15]wPrintStart [12:09:15]Write to MH i2c: 01 00 00 E0 1B FB [12:09:15]Write i2c OK [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: 01 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: 01 07 00 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: 01 07 00 E0 1B 00 00 00 00 00 FF 0F 10 [12:09:15]RasterBufferAndPrint [12:09:15]line Счет N : (1)412178 [12:09:15]line ИНН: 02508201610067 [12:09:15]line Контрольно-Кассовый Чек [12:09:15]line ПРОДАЖА [12:09:15]line ТРК (МРК, ГНК) : 32 [12:09:15]line Товар: 2710124130 [12:09:15]line Аи-92-К-2 [12:09:15]line 7.790 * 64.20 [12:09:15]line = 500.12 [12:09:15]line НДС 12% НСП 1% [12:09:15]line > о реализуемом товаре [12:09:15]line ОКРУГЛЕНИЕ: -0.12 [12:09:15]line ИТОГО: 500.00 [12:09:15]line Внесено: 500.00 [12:09:15]line СДАЧА: 0.00 [12:09:15]line НСП 1% : 4.43 [12:09:15]line НДС 12% : 53.11 [12:09:15]line Наличными: 500.00 [12:09:15]line Безнал.: 0.00 [12:09:15]line Место: АЗС № 92 "Партнер Нефть" [12:09:15]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:09:15]line СНО: Общий режим [12:09:15]line Чек 93 19.02.2025 12:09 [12:09:15]line Смена: 647 ФФД: 1.0 [12:09:15]line ЗНМ: 0300000118 [12:09:15]line РНМ: 0000000000091857 [12:09:15]line Версия ККМ: 001 [12:09:15]line ФМ: 0000000000871826 [12:09:15]line ФД: 187027 [12:09:15]line ФПД: 41222527079924 [12:09:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T120916&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187027&fm=41222527079924&tin=02508201610067®Number=0000000000091857&sum=50000 [12:09:15]written 0, free lines is 4095 [12:09:15]OFD Sender: Processing packet 187027 [packets to send 49, broken 48] [12:09:15]ProducePacketName [12:09:15]name=ofd_packets/00187027 [12:09:15]OFD Sender: To server: pG, [12:09:15]CommunicateWithHost lk.salyk.kg:30040 [12:09:15]ConnectInit lk.salyk.kg [12:09:15]Connected sock=9 [12:09: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 33 0E 07 01 81 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 5D 00 00 00 F4 03 04 00 EC C9 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 93 DA 02 00 35 04 06 00 25 7D DE 15 55 F4 57 10 72 2C 9A 86 38 A0 [12:09:15]Write to MH i2c: 01 00 00 0B 1C 27 [12:09:15]Write i2c OK [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: 01 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: 01 07 00 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: 01 07 00 0B 1C 00 00 00 00 00 E6 0C 20 [12:09:15]RasterBufferAndPrint [12:09:15]line [12:09:15]line [12:09:15]line [12:09:15]line [12:09:15]line [12:09:15]written 0, free lines is 3308 [12:09:15]MH_Cut [12:09:15]Write to MH i2c: D1 01 00 12 1C 01 00 [12:09:15]Write i2c OK [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: D1 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: D1 01 00 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: D1 01 00 12 1C 00 FF [12:09:15]Write to MH i2c: 01 00 00 13 1C 2F [12:09:15]Write i2c OK [12:09:15]MH_I2C_Read... [12:09: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 A9 04 47 00 62 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 93 DA 02 00 F4 03 04 00 40 70 B5 67 B6 04 01 00 00 A7 F4 39 F2 BA 53 2E 17 [12:09:15]CommunicateWithHost err = 0 [12:09:15]CheckOFDResponse [12:09:15]1017 (14) - 77093643461234 [12:09:15]1041 (16) - 0000000000871826 [12:09:15]1040 (4) - 187027 [12:09:15]1012 (4) - 19.02.2025 05:46 [12:09:15]1206 (1) - 0 [12:09:15]OFD Sender: Remove packet 187027 [12:09:15]ProducePacketName [12:09:15]name=ofd_packets/00187027 [12:09:15]NVStorageDeleteData [12:09:16]OFD Sender: No OFD packet to send [12:09:16]*** Cut start [12:09:16]*** Partial cut [12:09:16]*** CUTSNS_PIN = 1 [12:09:16]*** CUTSNS_PIN = 0 [12:09:16]*** Brake cut motor [12:09:17]Read from MH i2c: 01 [12:09:17]MH_I2C_Read... [12:09:17]*** Stop cut motor [12:09:17]*** Cut end [12:09:17]Read from MH i2c: 01 07 00 [12:09:17]MH_I2C_Read... [12:09:17]Read from MH i2c: 01 07 00 13 1C 00 00 00 00 00 FF 0F 44 [12:09:17]process_action close_receipt done [12:09:17]requested_data is exist [12:09:17]produce_requested_data [12:09:17]requested_item fm.sn is exist - process it [12:09:17]wFMCommunicate request_size=4 [12:09:17]MH_SAM_APDU [12:09:17]CAPDU: 80 11 00 00 [12:09:17]Write to MH i2c: E2 08 00 14 1C 80 11 00 00 00 00 00 00 AA [12:09:17]Write i2c OK [12:09:17]MH_I2C_Read... [12:09:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:17]Read from MH i2c: E2 [12:09:17]MH_I2C_Read... [12:09:17]Read from MH i2c: E2 17 00 [12:09:17]MH_I2C_Read... [12:09:17]Read from MH i2c: E2 17 00 14 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FD [12: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 [12:09:17]wFMCommunicate OK [12:09:17]requested_item fd.num is exist - process it [12:09:17]SAM_PROTO_GetFieldsCounters [12:09:17]wFMCommunicate request_size=4 [12:09:17]MH_SAM_APDU [12:09:17]CAPDU: 80 13 00 00 [12:09:17]Write to MH i2c: E2 08 00 15 1C 80 13 00 00 00 00 00 00 AD [12:09:17]Write i2c OK [12:09:17]MH_I2C_Read... [12:09:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:17]Read from MH i2c: E2 [12:09:17]MH_I2C_Read... [12:09:17]Read from MH i2c: E2 62 00 [12:09:17]MH_I2C_Read... [12:09:17]Read from MH i2c: E2 62 00 15 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 93 DA 02 00 0E 04 04 00 87 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 E2 [12:09: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 93 DA 02 00 0E 04 04 00 87 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:09:17]wFMCommunicate OK [12:09:17]SAM_PROTO_GetFieldsCounters done [12:09:17]requested_item shift.num is exist - process it [12:09:17]requested_item shift.opened is exist - process it [12:09:17]req_shift_opened [12:09:17]FM_GetShiftState [12:09:17]SAM_PROTO_GetShiftState [12:09:17]wFMCommunicate request_size=4 [12:09:17]MH_SAM_APDU [12:09:17]CAPDU: 80 13 01 00 [12:09:17]Write to MH i2c: E2 08 00 16 1C 80 13 01 00 00 00 00 00 AF [12:09:17]Write i2c OK [12:09:17]MH_I2C_Read... [12:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:17]Read from MH i2c: E2 [12:09:17]MH_I2C_Read... [12:09:17]Read from MH i2c: E2 0E 00 [12:09:17]MH_I2C_Read... [12:09:17]Read from MH i2c: E2 0E 00 16 1C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 2E [12:09:17]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:09:17]wFMCommunicate OK [12:09:17]SAM_PROTO_GetShiftState done [12:09:17]FM_GetShiftState done [12:09:17]req_shift_opened done [12:09:17]requested_item shift.open_date is exist - process it [12:09:17]req_shift_open_date [12:09:17]req_shift_open_date done [12:09:17]produce_requested_data done [12:09:17]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187027,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [12:09:17]process_action_free close_receipt [12:09:17]json_value_free [12:09:17]json_value_free done [12:09:17]process_json_proto returns [12:09:17]Send response to host [12:09:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187027,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [12:09:17]free response buf [12:09:17]execute_script done [12:09:17]execute_script returns [12:09:17]free content buf [12:09:17]Sock 7.Close socket [12:09:17]Sock 7.Thread stoped [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:25]accept exits with 10 [12:10:25]New connection [12:10:25]New thread 3066879332 created [12:10:25]Thread 3067022692 joined [12:10:25]Waiting for new connection... [12:10:25] Sock 10.Parse request [12:10:25]Sock 10.Check first char [12:10:25]Sock 10.First char is OK [12:10:25]request: POST /json_proto HTTP/1.0 [12:10:25]Method: POST [12:10:25]URL: /json_proto [12:10:25]Method is POST - this is cgi request [12:10:25]url: /json_proto [12:10:25]query_string will be loaded in cgi processing [12:10:25]execute_cgi json_proto POST (null) [12:10:25]execute_cgi path=json_proto method=POST [12:10:25]POST find Content-Length [12:10:25]Host: 172.17.46.131:8080 [12:10:25]Content-Length: 678 [12:10:25]Content-Type: application/json [12:10:25] [12:10:25]POST finish read [12:10:25]Found Content-Length = 678 [12:10:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412179", "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" ] } } [12:10:25]execute_script... [12: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)412179", "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" ] } } [12:10:25]POST & json_proto [12:10:25]process_json_proto [12:10:25]json parsed OK: [12:10:25]protocol is kg_v1.0 [12:10:25]action value=close_receipt [12:10:25]process_action close_receipt [12:10:25]cmd_close_receipt [12:10:25]MH_GetDate [12:10:25]Write to MH i2c: F0 00 00 17 1C 22 [12:10:25]Write i2c OK [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: F0 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: F0 09 00 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: F0 09 00 17 1C 00 34 CA B5 67 7E 41 4F 65 B8 [12:10:25]GetLastDocTimeStamp 1739966956 [12:10:25]current date 1739967028 [12:10:25]FM_GetShiftState [12:10:25]SAM_PROTO_GetShiftState [12:10:25]wFMCommunicate request_size=4 [12:10:25]MH_SAM_APDU [12:10:25]CAPDU: 80 13 01 00 [12:10:25]Write to MH i2c: E2 08 00 18 1C 80 13 01 00 00 00 00 00 B1 [12:10:25]Write i2c OK [12:10:25]MH_I2C_Read... [12:10:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:25]Read from MH i2c: E2 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 0E 00 [12:10:25]MH_I2C_Read... [12:10:25]Read from MH i2c: E2 0E 00 18 1C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 30 [12:10:25]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:10:25]wFMCommunicate OK [12:10:25]SAM_PROTO_GetShiftState done [12:10:25]FM_GetShiftState done [12:10:25]opened in 1739929631 [12:10:25]opened+sec_in_day 1740016031 [12:10:25]quantity*price = 100042 [12:10:25]sum+1 = 100044 [12:10:25]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 СНО: Общий режим Чек 94 19.02.2025 12:10 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187028 ФПД: 188187681198089 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T121028&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187028&fm=188187681198089&tin=02508201610067®Number=0000000000091857&sum=100000 [12:10:26]StoreToDocumentArchive [12:10:26]shift 647 fd 187028 [12:10:26]save to /storage/0647/doc_00187028 [12:10:26]save last doc name /storage/0647/doc_00187028 to /storage/kkm_last_doc_name [12:10:26]save OK [12:10:26]Clear old archive folders... [12:10:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:10:26]tlvbuf is 00679460 [12:10:26]SAM_PROTO_ClearQueue [12:10:26]wFMCommunicate request_size=4 [12:10:26]MH_SAM_APDU [12:10:26]CAPDU: 80 09 00 00 [12:10:26]Write to MH i2c: E2 08 00 25 1C 80 09 00 00 00 00 00 00 B3 [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:26]Read from MH i2c: E2 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 03 00 [12:10:26]MH_I2C_Read... [12:10:26]OFD Sender: No OFD packet to send [12:10:26]Read from MH i2c: E2 03 00 25 1C 00 90 00 B5 [12:10:26]RAPDU: 90 00 [12:10:26]wFMCommunicate OK [12:10:26]SAM_PROTO_ClearQueue done [12:10:26]KKMCreateOFDPacket [12:10:26]OFDProtocolAddRootSTLVToBuf [12:10:26]FM_MakeSignedData [12:10:26]FM_MakeSignedData [12:10:26]SAM_PROTO_SignData [12:10:26]wFMCommunicate request_size=4 [12:10:26]MH_SAM_APDU [12:10:26]CAPDU: 80 0D 01 02 [12:10:26]Write to MH i2c: E2 08 00 26 1C 80 0D 01 02 00 00 00 00 BB [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:26]Read from MH i2c: E2 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 03 00 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 03 00 26 1C 00 90 00 B6 [12:10:26]RAPDU: 90 00 [12:10:26]wFMCommunicate OK [12:10:26]wFMCommunicate request_size=255 [12:10:26]MH_SAM_APDU [12:10:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 5E 00 00 00 F4 03 04 00 34 CA 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 94 DA 02 00 35 04 06 00 AB 27 DB E3 [12:10:26]Write to MH i2c: E2 02 01 27 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 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 5E 00 00 00 F4 03 04 00 34 CA 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 94 DA 02 00 35 04 06 00 AB 27 DB E3 00 00 60 [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:26]Read from MH i2c: E2 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 03 00 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 03 00 27 1C 00 90 00 B7 [12:10:26]RAPDU: 90 00 [12:10:26]wFMCommunicate OK [12:10:26]wFMCommunicate request_size=7 [12:10:26]MH_SAM_APDU [12:10:26]CAPDU: 80 0D 02 02 02 90 09 [12:10:26]Write to MH i2c: E2 0A 00 28 1C 80 0D 02 02 02 00 90 09 00 00 5B [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:26]Read from MH i2c: E2 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 03 00 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 03 00 28 1C 00 90 00 B8 [12:10:26]RAPDU: 90 00 [12:10:26]wFMCommunicate OK [12:10:26]wFMCommunicate request_size=4 [12:10:26]MH_SAM_APDU [12:10:26]CAPDU: 80 0D 03 02 [12:10:26]Write to MH i2c: E2 08 00 29 1C 80 0D 03 02 00 00 00 00 C0 [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:26]Read from MH i2c: E2 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 0B 00 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 0B 00 29 1C 00 8E FE 5D B3 33 85 D3 27 90 00 0F [12:10:26]RAPDU: 8E FE 5D B3 33 85 D3 27 90 00 [12:10:26]wFMCommunicate OK [12:10:26]SAM_PROTO_SignData done [12:10:26]FM_MakeSignedData done [12:10:26]CreateOFDProtocolMessage [12:10:26]wFMCommunicate request_size=4 [12:10:26]MH_SAM_APDU [12:10:26]CAPDU: 80 11 00 00 [12:10:26]Write to MH i2c: E2 08 00 2A 1C 80 11 00 00 00 00 00 00 C0 [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:26]Read from MH i2c: E2 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 17 00 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: E2 17 00 2A 1C 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:10: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:10:26]wFMCommunicate OK [12:10:26]CreateOFDProtocolMessage done [12:10:26]OFDSenderStorePacket 187028 [12:10:26]StoreOFDPacket docnum=187028 [12:10: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 0C 01 00 00 84 02 04 01 10 E0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 5E 00 00 00 F4 03 04 00 34 CA 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 94 DA 02 00 35 04 06 00 AB 27 DB E3 90 09 8E FE 5D B3 33 85 D3 27 [12:10:26]CheckFolder [12:10:26]dirname=/storage/ofd_packets [12:10:26]CheckFolder done [12:10:26]ProducePacketName [12:10:26]name=ofd_packets/00187028 [12:10:26]NVStorageSaveData ofd_packets/00187028 [12:10:26]File name is /storage/ofd_packets/00187028 [12:10:26]Write 298 bytes [12:10:26]NVStorageSaveData done [12:10:26]OFDSenderStorePacket done [12:10:26]KKMCreateOFDPacket done [12:10:26]NVStorageSaveData kkm_last_timestamp [12:10:26]File name is /storage/kkm_last_timestamp [12:10:26]Write 4 bytes [12:10:26]NVStorageSaveData done [12:10:26]ExternCall_PrintAddStr [12:10:26]wPrintStart [12:10:26]Write to MH i2c: 01 00 00 2B 1C 47 [12:10:26]Write i2c OK [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: 01 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: 01 07 00 [12:10:26]MH_I2C_Read... [12:10:26]Read from MH i2c: 01 07 00 2B 1C 00 00 00 00 00 FF 0F 5C [12:10:26]RasterBufferAndPrint [12:10:26]line Счет N : (1)412179 [12:10:26]line ИНН: 02508201610067 [12:10:26]line Контрольно-Кассовый Чек [12:10:26]line ПРОДАЖА [12:10:26]line ТРК (МРК, ГНК) : 5 [12:10:26]line Товар: 2710194210 [12:10:26]line ДТ-К-5 [12:10:26]line 13.780 * 72.60 [12:10:26]line = 1000.43 [12:10:26]line НДС 12% НСП 1% [12:10:26]line > о реализуемом товаре [12:10:26]line ОКРУГЛЕНИЕ: -0.43 [12:10:26]line ИТОГО: 1000.00 [12:10:26]line Внесено: 1000.00 [12:10:26]line СДАЧА: 0.00 [12:10:26]line НСП 1% : 8.85 [12:10:26]line НДС 12% : 106.24 [12:10:26]line Наличными: 1000.00 [12:10:26]line Безнал.: 0.00 [12:10:26]line Место: АЗС № 92 "Партнер Нефть" [12:10:26]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:10:26]line СНО: Общий режим [12:10:26]line Чек 94 19.02.2025 12:10 [12:10:26]line Смена: 647 ФФД: 1.0 [12:10:26]line ЗНМ: 0300000118 [12:10:26]line РНМ: 0000000000091857 [12:10:26]line Версия ККМ: 001 [12:10:26]line ФМ: 0000000000871826 [12:10:26]line ФД: 187028 [12:10:26]line ФПД: 188187681198089 [12:10:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T121028&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187028&fm=188187681198089&tin=02508201610067®Number=0000000000091857&sum=100000 [12:10:27]OFD Sender: Processing packet 187028 [packets to send 49, broken 48] [12:10:27]ProducePacketName [12:10:27]name=ofd_packets/00187028 [12:10:27]OFD Sender: To server: pG, [12:10:27]CommunicateWithHost lk.salyk.kg:30040 [12:10:27]ConnectInit lk.salyk.kg [12:10:27]written 0, free lines is 4095 [12:10:27]Connected sock=9 [12: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 0C 01 00 00 84 02 04 01 10 E0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 5E 00 00 00 F4 03 04 00 34 CA 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 94 DA 02 00 35 04 06 00 AB 27 DB E3 90 09 8E FE 5D B3 33 85 D3 27 [12:10: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 51 96 47 00 D9 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 94 DA 02 00 F4 03 04 00 88 70 B5 67 B6 04 01 00 00 5B A1 29 E9 99 1D AC DE [12:10:27]CommunicateWithHost err = 0 [12:10:27]CheckOFDResponse [12:10:27]1017 (14) - 77093643461234 [12:10:27]1041 (16) - 0000000000871826 [12:10:27]1040 (4) - 187028 [12:10:27]1012 (4) - 19.02.2025 05:47 [12:10:27]1206 (1) - 0 [12:10:27]OFD Sender: Remove packet 187028 [12:10:27]ProducePacketName [12:10:27]name=ofd_packets/00187028 [12:10:27]NVStorageDeleteData [12:10:27]Write to MH i2c: 01 00 00 56 1C 72 [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: 01 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: 01 07 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: 01 07 00 56 1C 00 00 00 00 00 F2 0C 77 [12:10:27]RasterBufferAndPrint [12:10:27]line [12:10:27]line [12:10:27]line [12:10:27]line [12:10:27]line [12:10:27]written 0, free lines is 3320 [12:10:27]MH_Cut [12:10:27]Write to MH i2c: D1 01 00 5D 1C 01 4B [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: D1 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: D1 01 00 [12:10:27]MH_I2C_Read... [12:10:27]Read from MH i2c: D1 01 00 5D 1C 00 4A [12:10:27]Write to MH i2c: 01 00 00 5E 1C 7A [12:10:27]Write i2c OK [12:10:27]MH_I2C_Read... [12:10:28]OFD Sender: No OFD packet to send [12:10:28]*** Cut start [12:10:28]*** Partial cut [12:10:28]*** CUTSNS_PIN = 1 [12:10:28]*** CUTSNS_PIN = 0 [12:10:28]*** Brake cut motor [12:10:29]Read from MH i2c: 01 [12:10:29]MH_I2C_Read... [12:10:29]*** Stop cut motor [12:10:29]*** Cut end [12:10:29]Read from MH i2c: 01 07 00 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: 01 07 00 5E 1C 00 00 00 00 00 FF 0F 8F [12:10:29]process_action close_receipt done [12:10:29]requested_data is exist [12:10:29]produce_requested_data [12:10:29]requested_item fm.sn is exist - process it [12:10:29]wFMCommunicate request_size=4 [12:10:29]MH_SAM_APDU [12:10:29]CAPDU: 80 11 00 00 [12:10:29]Write to MH i2c: E2 08 00 5F 1C 80 11 00 00 00 00 00 00 F5 [12:10:29]Write i2c OK [12:10:29]MH_I2C_Read... [12:10:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:29]Read from MH i2c: E2 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 17 00 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 17 00 5F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 48 [12: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 [12:10:29]wFMCommunicate OK [12:10:29]requested_item fd.num is exist - process it [12:10:29]SAM_PROTO_GetFieldsCounters [12:10:29]wFMCommunicate request_size=4 [12:10:29]MH_SAM_APDU [12:10:29]CAPDU: 80 13 00 00 [12:10:29]Write to MH i2c: E2 08 00 60 1C 80 13 00 00 00 00 00 00 F8 [12:10:29]Write i2c OK [12:10:29]MH_I2C_Read... [12:10:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:29]Read from MH i2c: E2 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 62 00 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 62 00 60 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 94 DA 02 00 0E 04 04 00 87 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 31 [12: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 94 DA 02 00 0E 04 04 00 87 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:10:29]wFMCommunicate OK [12:10:29]SAM_PROTO_GetFieldsCounters done [12:10:29]requested_item shift.num is exist - process it [12:10:29]requested_item shift.opened is exist - process it [12:10:29]req_shift_opened [12:10:29]FM_GetShiftState [12:10:29]SAM_PROTO_GetShiftState [12:10:29]wFMCommunicate request_size=4 [12:10:29]MH_SAM_APDU [12:10:29]CAPDU: 80 13 01 00 [12:10:29]Write to MH i2c: E2 08 00 61 1C 80 13 01 00 00 00 00 00 FA [12:10:29]Write i2c OK [12:10:29]MH_I2C_Read... [12:10:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:29]Read from MH i2c: E2 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 0E 00 [12:10:29]MH_I2C_Read... [12:10:29]Read from MH i2c: E2 0E 00 61 1C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 79 [12:10:29]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:10:29]wFMCommunicate OK [12:10:29]SAM_PROTO_GetShiftState done [12:10:29]FM_GetShiftState done [12:10:29]req_shift_opened done [12:10:29]requested_item shift.open_date is exist - process it [12:10:29]req_shift_open_date [12:10:29]req_shift_open_date done [12:10:29]produce_requested_data done [12:10:29]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187028,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [12:10:29]process_action_free close_receipt [12:10:29]json_value_free [12:10:29]json_value_free done [12:10:29]process_json_proto returns [12:10:29]Send response to host [12:10:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187028,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [12:10:29]free response buf [12:10:29]execute_script done [12:10:29]execute_script returns [12:10:29]free content buf [12:10:29]Sock 10.Close socket [12:10:29]Sock 10.Thread stoped [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:58]OFD Sender: No OFD packet to send [12:11:03]OFD Sender: No OFD packet to send [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:14]accept exits with 7 [12:11:14]New connection [12:11:14]New thread 3067022692 created [12:11:14]Thread 3066879332 joined [12:11:14]Waiting for new connection... [12:11:14] Sock 7.Parse request [12:11:14]Sock 7.Check first char [12:11:14]Sock 7.First char is OK [12:11:14]request: POST /json_proto HTTP/1.0 [12:11:14]Method: POST [12:11:14]URL: /json_proto [12:11:14]Method is POST - this is cgi request [12:11:14]url: /json_proto [12:11:14]query_string will be loaded in cgi processing [12:11:14]execute_cgi json_proto POST (null) [12:11:14]execute_cgi path=json_proto method=POST [12:11:14]POST find Content-Length [12:11:14]Host: 172.17.46.131:8080 [12:11:14]Content-Length: 678 [12:11:14]Content-Type: application/json [12:11:14] [12:11:14]POST finish read [12:11:14]Found Content-Length = 678 [12:11:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412180", "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" ] } } [12:11:14]execute_script... [12:11:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412180", "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" ] } } [12:11:14]POST & json_proto [12:11:14]process_json_proto [12:11:14]json parsed OK: [12:11:14]protocol is kg_v1.0 [12:11:14]action value=close_receipt [12:11:14]process_action close_receipt [12:11:14]cmd_close_receipt [12:11:14]MH_GetDate [12:11:14]Write to MH i2c: F0 00 00 62 1C 6D [12:11:14]Write i2c OK [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: F0 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: F0 09 00 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: F0 09 00 62 1C 00 66 CA B5 67 7E 41 4F 65 35 [12:11:14]GetLastDocTimeStamp 1739967028 [12:11:14]current date 1739967078 [12:11:14]FM_GetShiftState [12:11:14]SAM_PROTO_GetShiftState [12:11:14]wFMCommunicate request_size=4 [12:11:14]MH_SAM_APDU [12:11:14]CAPDU: 80 13 01 00 [12:11:14]Write to MH i2c: E2 08 00 63 1C 80 13 01 00 00 00 00 00 FC [12:11:14]Write i2c OK [12:11:14]MH_I2C_Read... [12:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:14]Read from MH i2c: E2 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 0E 00 [12:11:14]MH_I2C_Read... [12:11:14]Read from MH i2c: E2 0E 00 63 1C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 7B [12:11:14]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:11:14]wFMCommunicate OK [12:11:14]SAM_PROTO_GetShiftState done [12:11:14]FM_GetShiftState done [12:11:14]opened in 1739929631 [12:11:14]opened+sec_in_day 1740016031 [12:11:14]quantity*price = 100042 [12:11:14]sum+1 = 100044 [12:11:14]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 СНО: Общий режим Чек 95 19.02.2025 12:11 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187029 ФПД: 96323487912562 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T121118&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187029&fm=96323487912562&tin=02508201610067®Number=0000000000091857&sum=100000 [12:11:16]StoreToDocumentArchive [12:11:16]shift 647 fd 187029 [12:11:16]save to /storage/0647/doc_00187029 [12:11:16]save last doc name /storage/0647/doc_00187029 to /storage/kkm_last_doc_name [12:11:16]save OK [12:11:16]Clear old archive folders... [12:11:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:11:16]tlvbuf is 006795D0 [12:11:16]SAM_PROTO_ClearQueue [12:11:16]wFMCommunicate request_size=4 [12:11:16]MH_SAM_APDU [12:11:16]CAPDU: 80 09 00 00 [12:11:16]Write to MH i2c: E2 08 00 70 1C 80 09 00 00 00 00 00 00 FE [12:11:16]Write i2c OK [12:11:16]MH_I2C_Read... [12:11:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:16]Read from MH i2c: E2 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 03 00 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 03 00 70 1C 00 90 00 00 [12:11:16]RAPDU: 90 00 [12:11:16]wFMCommunicate OK [12:11:16]SAM_PROTO_ClearQueue done [12:11:16]KKMCreateOFDPacket [12:11:16]OFDProtocolAddRootSTLVToBuf [12:11:16]FM_MakeSignedData [12:11:16]FM_MakeSignedData [12:11:16]SAM_PROTO_SignData [12:11:16]wFMCommunicate request_size=4 [12:11:16]MH_SAM_APDU [12:11:16]CAPDU: 80 0D 01 02 [12:11:16]Write to MH i2c: E2 08 00 71 1C 80 0D 01 02 00 00 00 00 06 [12:11:16]Write i2c OK [12:11:16]MH_I2C_Read... [12:11:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:16]Read from MH i2c: E2 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 03 00 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 03 00 71 1C 00 90 00 01 [12:11:16]RAPDU: 90 00 [12:11:16]wFMCommunicate OK [12:11:16]wFMCommunicate request_size=255 [12:11:16]MH_SAM_APDU [12:11: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 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 5F 00 00 00 F4 03 04 00 66 CA 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 95 DA 02 00 35 04 06 00 57 9B 0F 47 [12:11:16]Write to MH i2c: E2 02 01 72 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 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 5F 00 00 00 F4 03 04 00 66 CA 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 95 DA 02 00 35 04 06 00 57 9B 0F 47 00 00 97 [12:11:16]Write i2c OK [12:11:16]MH_I2C_Read... [12:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:16]Read from MH i2c: E2 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 03 00 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 03 00 72 1C 00 90 00 02 [12:11:16]RAPDU: 90 00 [12:11:16]wFMCommunicate OK [12:11:16]wFMCommunicate request_size=7 [12:11:16]MH_SAM_APDU [12:11:16]CAPDU: 80 0D 02 02 02 D2 72 [12:11:16]Write to MH i2c: E2 0A 00 73 1C 80 0D 02 02 02 00 D2 72 00 00 51 [12:11:16]Write i2c OK [12:11:16]MH_I2C_Read... [12:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:16]Read from MH i2c: E2 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 03 00 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 03 00 73 1C 00 90 00 03 [12:11:16]RAPDU: 90 00 [12:11:16]wFMCommunicate OK [12:11:16]wFMCommunicate request_size=4 [12:11:16]MH_SAM_APDU [12:11:16]CAPDU: 80 0D 03 02 [12:11:16]Write to MH i2c: E2 08 00 74 1C 80 0D 03 02 00 00 00 00 0B [12:11:16]Write i2c OK [12:11:16]MH_I2C_Read... [12:11:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:16]Read from MH i2c: E2 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 0B 00 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 0B 00 74 1C 00 4A DF 0C 5F 38 BF DB 49 90 00 BB [12:11:16]RAPDU: 4A DF 0C 5F 38 BF DB 49 90 00 [12:11:16]wFMCommunicate OK [12:11:16]SAM_PROTO_SignData done [12:11:16]FM_MakeSignedData done [12:11:16]CreateOFDProtocolMessage [12:11:16]wFMCommunicate request_size=4 [12:11:16]MH_SAM_APDU [12:11:16]CAPDU: 80 11 00 00 [12:11:16]Write to MH i2c: E2 08 00 75 1C 80 11 00 00 00 00 00 00 0B [12:11:16]Write i2c OK [12:11:16]MH_I2C_Read... [12:11:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:16]Read from MH i2c: E2 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 17 00 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: E2 17 00 75 1C 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:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:11:16]wFMCommunicate OK [12:11:16]CreateOFDProtocolMessage done [12:11:16]OFDSenderStorePacket 187029 [12:11:16]StoreOFDPacket docnum=187029 [12:11: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 69 23 04 01 73 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 5F 00 00 00 F4 03 04 00 66 CA 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 95 DA 02 00 35 04 06 00 57 9B 0F 47 D2 72 4A DF 0C 5F 38 BF DB 49 [12:11:16]CheckFolder [12:11:16]dirname=/storage/ofd_packets [12:11:16]CheckFolder done [12:11:16]ProducePacketName [12:11:16]name=ofd_packets/00187029 [12:11:16]NVStorageSaveData ofd_packets/00187029 [12:11:16]File name is /storage/ofd_packets/00187029 [12:11:16]Write 298 bytes [12:11:16]NVStorageSaveData done [12:11:16]OFDSenderStorePacket done [12:11:16]KKMCreateOFDPacket done [12:11:16]NVStorageSaveData kkm_last_timestamp [12:11:16]File name is /storage/kkm_last_timestamp [12:11:16]Write 4 bytes [12:11:16]NVStorageSaveData done [12:11:16]ExternCall_PrintAddStr [12:11:16]wPrintStart [12:11:16]Write to MH i2c: 01 00 00 76 1C 92 [12:11:16]Write i2c OK [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: 01 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: 01 07 00 [12:11:16]MH_I2C_Read... [12:11:16]Read from MH i2c: 01 07 00 76 1C 00 00 00 00 00 FF 0F A7 [12:11:16]RasterBufferAndPrint [12:11:16]line Счет N : (1)412180 [12:11:16]line ИНН: 02508201610067 [12:11:16]line Контрольно-Кассовый Чек [12:11:16]line ПРОДАЖА [12:11:16]line ТРК (МРК, ГНК) : 6 [12:11:16]line Товар: 2710194210 [12:11:16]line ДТ-К-5 [12:11:16]line 13.780 * 72.60 [12:11:16]line = 1000.43 [12:11:16]line НДС 12% НСП 1% [12:11:16]line > о реализуемом товаре [12:11:16]line ОКРУГЛЕНИЕ: -0.43 [12:11:16]line ИТОГО: 1000.00 [12:11:16]line Внесено: 1000.00 [12:11:16]line СДАЧА: 0.00 [12:11:16]line НСП 1% : 8.85 [12:11:16]line НДС 12% : 106.24 [12:11:16]line Наличными: 1000.00 [12:11:16]line Безнал.: 0.00 [12:11:16]line Место: АЗС № 92 "Партнер Нефть" [12:11:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:11:16]line СНО: Общий режим [12:11:16]line Чек 95 19.02.2025 12:11 [12:11:16]line Смена: 647 ФФД: 1.0 [12:11:16]line ЗНМ: 0300000118 [12:11:16]line РНМ: 0000000000091857 [12:11:16]line Версия ККМ: 001 [12:11:16]line ФМ: 0000000000871826 [12:11:16]line ФД: 187029 [12:11:16]line ФПД: 96323487912562 [12:11:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T121118&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187029&fm=96323487912562&tin=02508201610067®Number=0000000000091857&sum=100000 [12:11:16]OFD Sender: Processing packet 187029 [packets to send 49, broken 48] [12:11:16]ProducePacketName [12:11:16]name=ofd_packets/00187029 [12:11:16]OFD Sender: To server: pG, [12:11:16]CommunicateWithHost lk.salyk.kg:30040 [12:11:16]ConnectInit lk.salyk.kg [12:11:16]written 0, free lines is 4095 [12:11:17]Connected sock=10 [12: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 0C 01 00 00 69 23 04 01 73 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 5F 00 00 00 F4 03 04 00 66 CA 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 95 DA 02 00 35 04 06 00 57 9B 0F 47 D2 72 4A DF 0C 5F 38 BF DB 49 [12: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 18 E0 47 00 A4 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 95 DA 02 00 F4 03 04 00 BA 70 B5 67 B6 04 01 00 00 49 8A 41 53 6A 2D 93 47 [12:11:17]CommunicateWithHost err = 0 [12:11:17]CheckOFDResponse [12:11:17]1017 (14) - 77093643461234 [12:11:17]1041 (16) - 0000000000871826 [12:11:17]1040 (4) - 187029 [12:11:17]1012 (4) - 19.02.2025 05:48 [12:11:17]1206 (1) - 0 [12:11:17]OFD Sender: Remove packet 187029 [12:11:17]ProducePacketName [12:11:17]name=ofd_packets/00187029 [12:11:17]NVStorageDeleteData [12:11:17]Write to MH i2c: 01 00 00 A1 1C BD [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: 01 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: 01 07 00 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: 01 07 00 A1 1C 00 00 00 00 00 FE 0C CE [12:11:17]RasterBufferAndPrint [12:11:17]line [12:11:17]line [12:11:17]line [12:11:17]line [12:11:17]line [12:11:17]written 0, free lines is 3332 [12:11:17]MH_Cut [12:11:17]Write to MH i2c: D1 01 00 A8 1C 01 96 [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: D1 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: D1 01 00 [12:11:17]MH_I2C_Read... [12:11:17]Read from MH i2c: D1 01 00 A8 1C 00 95 [12:11:17]Write to MH i2c: 01 00 00 A9 1C C5 [12:11:17]Write i2c OK [12:11:17]MH_I2C_Read... [12:11:17]OFD Sender: No OFD packet to send [12:11:18]*** Cut start [12:11:18]*** Partial cut [12:11:18]*** CUTSNS_PIN = 1 [12:11:18]*** CUTSNS_PIN = 0 [12:11:18]*** Brake cut motor [12:11:18]Read from MH i2c: 01 [12:11:18]MH_I2C_Read... [12:11:18]*** Stop cut motor [12:11:18]*** Cut end [12:11:18]Read from MH i2c: 01 07 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: 01 07 00 A9 1C 00 00 00 00 00 FF 0F DA [12:11:18]process_action close_receipt done [12:11:18]requested_data is exist [12:11:18]produce_requested_data [12:11:18]requested_item fm.sn is exist - process it [12:11:18]wFMCommunicate request_size=4 [12:11:18]MH_SAM_APDU [12:11:18]CAPDU: 80 11 00 00 [12:11:18]Write to MH i2c: E2 08 00 AA 1C 80 11 00 00 00 00 00 00 40 [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:18]Read from MH i2c: E2 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 17 00 [12:11:18]MH_I2C_Read... [12:11:18]Read from MH i2c: E2 17 00 AA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 93 [12:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:11:18]wFMCommunicate OK [12:11:18]requested_item fd.num is exist - process it [12:11:18]SAM_PROTO_GetFieldsCounters [12:11:18]wFMCommunicate request_size=4 [12:11:18]MH_SAM_APDU [12:11:18]CAPDU: 80 13 00 00 [12:11:18]Write to MH i2c: E2 08 00 AB 1C 80 13 00 00 00 00 00 00 43 [12:11:18]Write i2c OK [12:11:18]MH_I2C_Read... [12:11:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:19]Read from MH i2c: E2 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: E2 62 00 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: E2 62 00 AB 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 95 DA 02 00 0E 04 04 00 87 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 80 [12: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 95 DA 02 00 0E 04 04 00 87 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:11:19]wFMCommunicate OK [12:11:19]SAM_PROTO_GetFieldsCounters done [12:11:19]requested_item shift.num is exist - process it [12:11:19]requested_item shift.opened is exist - process it [12:11:19]req_shift_opened [12:11:19]FM_GetShiftState [12:11:19]SAM_PROTO_GetShiftState [12:11:19]wFMCommunicate request_size=4 [12:11:19]MH_SAM_APDU [12:11:19]CAPDU: 80 13 01 00 [12:11:19]Write to MH i2c: E2 08 00 AC 1C 80 13 01 00 00 00 00 00 45 [12:11:19]Write i2c OK [12:11:19]MH_I2C_Read... [12:11:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:19]Read from MH i2c: E2 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: E2 0E 00 [12:11:19]MH_I2C_Read... [12:11:19]Read from MH i2c: E2 0E 00 AC 1C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C4 [12:11:19]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:11:19]wFMCommunicate OK [12:11:19]SAM_PROTO_GetShiftState done [12:11:19]FM_GetShiftState done [12:11:19]req_shift_opened done [12:11:19]requested_item shift.open_date is exist - process it [12:11:19]req_shift_open_date [12:11:19]req_shift_open_date done [12:11:19]produce_requested_data done [12:11:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187029,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [12:11:19]process_action_free close_receipt [12:11:19]json_value_free [12:11:19]json_value_free done [12:11:19]process_json_proto returns [12:11:19]Send response to host [12:11:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187029,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [12:11:19]free response buf [12:11:19]execute_script done [12:11:19]execute_script returns [12:11:19]free content buf [12:11:19]Sock 7.Close socket [12:11:19]Sock 7.Thread stoped [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13: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:15:02]accept exits with 9 [12:15:02]New connection [12:15:02]New thread 3066879332 created [12:15:02]Thread 3067022692 joined [12:15:02]Waiting for new connection... [12:15:02] Sock 9.Parse request [12:15:02]Sock 9.Check first char [12:15:02]Sock 9.First char is OK [12:15:02]request: POST /json_proto HTTP/1.0 [12:15:02]Method: POST [12:15:02]URL: /json_proto [12:15:02]Method is POST - this is cgi request [12:15:02]url: /json_proto [12:15:02]query_string will be loaded in cgi processing [12:15:02]execute_cgi json_proto POST (null) [12:15:02]execute_cgi path=json_proto method=POST [12:15:02]POST find Content-Length [12:15:02]Host: 172.17.46.131:8080 [12:15:02]Content-Length: 677 [12:15:02]Content-Type: application/json [12:15:02] [12:15:02]POST finish read [12:15:02]Found Content-Length = 677 [12:15:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412181", "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" ] } } [12:15:02]execute_script... [12:15: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)412181", "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" ] } } [12:15:02]POST & json_proto [12:15:02]process_json_proto [12:15:02]json parsed OK: [12:15:02]protocol is kg_v1.0 [12:15:02]action value=close_receipt [12:15:02]process_action close_receipt [12:15:02]cmd_close_receipt [12:15:02]MH_GetDate [12:15:02]Write to MH i2c: F0 00 00 AD 1C B8 [12:15:02]Write i2c OK [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: F0 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: F0 09 00 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: F0 09 00 AD 1C 00 49 CB B5 67 7E 41 4F 65 64 [12:15:02]GetLastDocTimeStamp 1739967078 [12:15:02]current date 1739967305 [12:15:02]FM_GetShiftState [12:15:02]SAM_PROTO_GetShiftState [12:15:02]wFMCommunicate request_size=4 [12:15:02]MH_SAM_APDU [12:15:02]CAPDU: 80 13 01 00 [12:15:02]Write to MH i2c: E2 08 00 AE 1C 80 13 01 00 00 00 00 00 47 [12:15:02]Write i2c OK [12:15:02]MH_I2C_Read... [12:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:02]Read from MH i2c: E2 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: E2 0E 00 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: E2 0E 00 AE 1C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C6 [12:15:02]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:15:02]wFMCommunicate OK [12:15:02]SAM_PROTO_GetShiftState done [12:15:02]FM_GetShiftState done [12:15:02]opened in 1739929631 [12:15:02]opened+sec_in_day 1740016031 [12:15:02]quantity*price = 50011 [12:15:02]sum+1 = 50013 [12:15:02]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 СНО: Общий режим Чек 96 19.02.2025 12:15 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187030 ФПД: 14143454401486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T121505&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187030&fm=14143454401486&tin=02508201610067®Number=0000000000091857&sum=50000 [12:15:03]StoreToDocumentArchive [12:15:03]shift 647 fd 187030 [12:15:03]save to /storage/0647/doc_00187030 [12:15:03]save last doc name /storage/0647/doc_00187030 to /storage/kkm_last_doc_name [12:15:03]save OK [12:15:03]Clear old archive folders... [12:15:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:03]tlvbuf is 005E4E10 [12:15:03]SAM_PROTO_ClearQueue [12:15:03]wFMCommunicate request_size=4 [12:15:03]MH_SAM_APDU [12:15:03]CAPDU: 80 09 00 00 [12:15:03]Write to MH i2c: E2 08 00 BB 1C 80 09 00 00 00 00 00 00 49 [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:03]Read from MH i2c: E2 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 03 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 03 00 BB 1C 00 90 00 4B [12:15:03]RAPDU: 90 00 [12:15:03]wFMCommunicate OK [12:15:03]SAM_PROTO_ClearQueue done [12:15:03]KKMCreateOFDPacket [12:15:03]OFDProtocolAddRootSTLVToBuf [12:15:03]FM_MakeSignedData [12:15:03]FM_MakeSignedData [12:15:03]SAM_PROTO_SignData [12:15:03]wFMCommunicate request_size=4 [12:15:03]MH_SAM_APDU [12:15:03]CAPDU: 80 0D 01 02 [12:15:03]Write to MH i2c: E2 08 00 BC 1C 80 0D 01 02 00 00 00 00 51 [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:03]Read from MH i2c: E2 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 03 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 03 00 BC 1C 00 90 00 4C [12:15:03]RAPDU: 90 00 [12:15:03]wFMCommunicate OK [12:15:03]wFMCommunicate request_size=255 [12:15:03]MH_SAM_APDU [12:15: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 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 60 00 00 00 F4 03 04 00 49 CB 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 96 DA 02 00 35 04 06 00 0C [12:15:03]Write to MH i2c: E2 02 01 BD 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 60 00 00 00 F4 03 04 00 49 CB 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 96 DA 02 00 35 04 06 00 0C 00 00 81 [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:03]Read from MH i2c: E2 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 03 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 03 00 BD 1C 00 90 00 4D [12:15:03]RAPDU: 90 00 [12:15:03]wFMCommunicate OK [12:15:03]wFMCommunicate request_size=10 [12:15:03]MH_SAM_APDU [12:15:03]CAPDU: 80 0D 02 02 05 DD 07 93 53 CE [12:15:03]Write to MH i2c: E2 0D 00 BE 1C 80 0D 02 02 05 00 DD 07 93 53 CE 00 00 F6 [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:03]Read from MH i2c: E2 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 03 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 03 00 BE 1C 00 90 00 4E [12:15:03]RAPDU: 90 00 [12:15:03]wFMCommunicate OK [12:15:03]wFMCommunicate request_size=4 [12:15:03]MH_SAM_APDU [12:15:03]CAPDU: 80 0D 03 02 [12:15:03]Write to MH i2c: E2 08 00 BF 1C 80 0D 03 02 00 00 00 00 56 [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:03]Read from MH i2c: E2 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 0B 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 0B 00 BF 1C 00 DE 63 9C E3 AD 5F DA 0F 90 00 0C [12:15:03]RAPDU: DE 63 9C E3 AD 5F DA 0F 90 00 [12:15:03]wFMCommunicate OK [12:15:03]SAM_PROTO_SignData done [12:15:03]FM_MakeSignedData done [12:15:03]CreateOFDProtocolMessage [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 C0 1C 80 11 00 00 00 00 00 00 56 [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 C0 1C 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: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]CreateOFDProtocolMessage done [12:15:03]OFDSenderStorePacket 187030 [12:15:03]StoreOFDPacket docnum=187030 [12:15: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 3E F0 07 01 CF D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 60 00 00 00 F4 03 04 00 49 CB 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 96 DA 02 00 35 04 06 00 0C DD 07 93 53 CE DE 63 9C E3 AD 5F DA 0F [12:15:03]CheckFolder [12:15:03]dirname=/storage/ofd_packets [12:15:03]CheckFolder done [12:15:03]ProducePacketName [12:15:03]name=ofd_packets/00187030 [12:15:03]NVStorageSaveData ofd_packets/00187030 [12:15:03]File name is /storage/ofd_packets/00187030 [12:15:03]Write 301 bytes [12:15:03]NVStorageSaveData done [12:15:03]OFDSenderStorePacket done [12:15:03]KKMCreateOFDPacket done [12:15:03]NVStorageSaveData kkm_last_timestamp [12:15:03]File name is /storage/kkm_last_timestamp [12:15:03]Write 4 bytes [12:15:03]NVStorageSaveData done [12:15:03]ExternCall_PrintAddStr [12:15:03]wPrintStart [12:15:03]Write to MH i2c: 01 00 00 C1 1C DD [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: 01 [12:15:03]MH_I2C_Read... [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 C1 1C 00 00 00 00 00 FF 0F F2 [12:15:03]RasterBufferAndPrint [12:15:03]line Счет N : (1)412181 [12:15:03]line ИНН: 02508201610067 [12:15:03]line Контрольно-Кассовый Чек [12:15:03]line ПРОДАЖА [12:15:03]line ТРК (МРК, ГНК) : 22 [12:15:03]line Товар: 2710124130 [12:15:03]line Аи-92-К-2 [12:15:03]line 7.790 * 64.20 [12:15:03]line = 500.12 [12:15:03]line НДС 12% НСП 1% [12:15:03]line > о реализуемом товаре [12:15:03]line ОКРУГЛЕНИЕ: -0.12 [12:15:03]line ИТОГО: 500.00 [12:15:03]line Внесено: 500.00 [12:15:03]line СДАЧА: 0.00 [12:15:03]line НСП 1% : 4.43 [12:15:03]line НДС 12% : 53.11 [12:15:03]line Наличными: 500.00 [12:15:03]line Безнал.: 0.00 [12:15:03]line Место: АЗС № 92 "Партнер Нефть" [12:15:03]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:15:03]line СНО: Общий режим [12:15:03]line Чек 96 19.02.2025 12:15 [12:15:03]line Смена: 647 ФФД: 1.0 [12:15:03]line ЗНМ: 0300000118 [12:15:03]line РНМ: 0000000000091857 [12:15:03]line Версия ККМ: 001 [12:15:03]line ФМ: 0000000000871826 [12:15:03]line ФД: 187030 [12:15:03]line ФПД: 14143454401486 [12:15:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T121505&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187030&fm=14143454401486&tin=02508201610067®Number=0000000000091857&sum=50000 [12:15:04]written 0, free lines is 4095 [12:15:04]OFD Sender: Processing packet 187030 [packets to send 49, broken 48] [12:15:04]ProducePacketName [12:15:04]name=ofd_packets/00187030 [12:15:04]OFD Sender: To server: pG, [12:15:04]CommunicateWithHost lk.salyk.kg:30040 [12:15:04]ConnectInit lk.salyk.kg [12:15:04]Connected sock=10 [12:15: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 3E F0 07 01 CF D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 60 00 00 00 F4 03 04 00 49 CB 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 96 DA 02 00 35 04 06 00 0C DD 07 93 53 CE DE 63 9C E3 AD 5F DA 0F [12:15:04]Write to MH i2c: 01 00 00 EC 1C 08 [12:15:04]Write i2c OK [12:15:04]MH_I2C_Read... [12:15:04]Read from MH i2c: 01 [12:15:04]MH_I2C_Read... [12:15:04]Read from MH i2c: 01 07 00 [12:15:04]MH_I2C_Read... [12:15:04]Read from MH i2c: 01 07 00 EC 1C 00 00 00 00 00 EB 0C 06 [12:15:04]RasterBufferAndPrint [12:15:04]line [12:15:04]line [12:15:04]line [12:15:04]line [12:15:04]line [12:15:04]written 0, free lines is 3314 [12:15: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 69 67 47 00 73 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 96 DA 02 00 F4 03 04 00 9D 71 B5 67 B6 04 01 00 00 57 60 42 28 65 97 19 FD [12:15:04]CommunicateWithHost err = 0 [12:15:04]CheckOFDResponse [12:15:04]1017 (14) - 77093643461234 [12:15:04]1041 (16) - 0000000000871826 [12:15:04]1040 (4) - 187030 [12:15:04]1012 (4) - 19.02.2025 05:52 [12:15:04]1206 (1) - 0 [12:15:04]OFD Sender: Remove packet 187030 [12:15:04]ProducePacketName [12:15:04]name=ofd_packets/00187030 [12:15:04]NVStorageDeleteData [12:15:04]MH_Cut [12:15:04]Write to MH i2c: D1 01 00 F3 1C 01 E1 [12:15:04]Write i2c OK [12:15:04]MH_I2C_Read... [12:15:04]Read from MH i2c: D1 [12:15:04]MH_I2C_Read... [12:15:04]Read from MH i2c: D1 01 00 [12:15:04]MH_I2C_Read... [12:15:04]Read from MH i2c: D1 01 00 F3 1C 00 E0 [12:15:04]Write to MH i2c: 01 00 00 F4 1C 10 [12:15:04]Write i2c OK [12:15:04]MH_I2C_Read... [12:15:05]OFD Sender: No OFD packet to send [12:15:05]*** Cut start [12:15:05]*** Partial cut [12:15:05]*** CUTSNS_PIN = 1 [12:15:05]*** CUTSNS_PIN = 0 [12:15:05]*** Brake cut motor [12:15:06]Read from MH i2c: 01 [12:15:06]MH_I2C_Read... [12:15:06]*** Stop cut motor [12:15:06]*** Cut end [12:15:06]Read from MH i2c: 01 07 00 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: 01 07 00 F4 1C 00 00 00 00 00 FF 0F 25 [12:15:06]process_action close_receipt done [12:15:06]requested_data is exist [12:15:06]produce_requested_data [12:15:06]requested_item fm.sn is exist - process it [12:15:06]wFMCommunicate request_size=4 [12:15:06]MH_SAM_APDU [12:15:06]CAPDU: 80 11 00 00 [12:15:06]Write to MH i2c: E2 08 00 F5 1C 80 11 00 00 00 00 00 00 8B [12:15:06]Write i2c OK [12:15:06]MH_I2C_Read... [12:15:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:06]Read from MH i2c: E2 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: E2 17 00 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: E2 17 00 F5 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DE [12:15:06]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:06]wFMCommunicate OK [12:15:06]requested_item fd.num is exist - process it [12:15:06]SAM_PROTO_GetFieldsCounters [12:15:06]wFMCommunicate request_size=4 [12:15:06]MH_SAM_APDU [12:15:06]CAPDU: 80 13 00 00 [12:15:06]Write to MH i2c: E2 08 00 F6 1C 80 13 00 00 00 00 00 00 8E [12:15:06]Write i2c OK [12:15:06]MH_I2C_Read... [12:15:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:06]Read from MH i2c: E2 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: E2 62 00 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: E2 62 00 F6 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 96 DA 02 00 0E 04 04 00 87 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 CF [12:15: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 96 DA 02 00 0E 04 04 00 87 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:15:06]wFMCommunicate OK [12:15:06]SAM_PROTO_GetFieldsCounters done [12:15:06]requested_item shift.num is exist - process it [12:15:06]requested_item shift.opened is exist - process it [12:15:06]req_shift_opened [12:15:06]FM_GetShiftState [12:15:06]SAM_PROTO_GetShiftState [12:15:06]wFMCommunicate request_size=4 [12:15:06]MH_SAM_APDU [12:15:06]CAPDU: 80 13 01 00 [12:15:06]Write to MH i2c: E2 08 00 F7 1C 80 13 01 00 00 00 00 00 90 [12:15:06]Write i2c OK [12:15:06]MH_I2C_Read... [12:15:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:06]Read from MH i2c: E2 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: E2 0E 00 [12:15:06]MH_I2C_Read... [12:15:06]Read from MH i2c: E2 0E 00 F7 1C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 0F [12:15:06]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:15:06]wFMCommunicate OK [12:15:06]SAM_PROTO_GetShiftState done [12:15:06]FM_GetShiftState done [12:15:06]req_shift_opened done [12:15:06]requested_item shift.open_date is exist - process it [12:15:06]req_shift_open_date [12:15:06]req_shift_open_date done [12:15:06]produce_requested_data done [12:15:06]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187030,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [12:15:06]process_action_free close_receipt [12:15:06]json_value_free [12:15:06]json_value_free done [12:15:06]process_json_proto returns [12:15:06]Send response to host [12:15:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187030,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [12:15:06]free response buf [12:15:06]execute_script done [12:15:06]execute_script returns [12:15:06]free content buf [12:15:06]Sock 9.Close socket [12:15:06]Sock 9.Thread stoped [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:47]accept exits with 7 [12:15:47]New connection [12:15:47]New thread 3067022692 created [12:15:47]Thread 3066879332 joined [12:15:47]Waiting for new connection... [12:15:47] Sock 7.Parse request [12:15:47]Sock 7.Check first char [12:15:47]Sock 7.First char is OK [12:15:47]request: POST /json_proto HTTP/1.0 [12:15:47]Method: POST [12:15:47]URL: /json_proto [12:15:47]Method is POST - this is cgi request [12:15:47]url: /json_proto [12:15:47]query_string will be loaded in cgi processing [12:15:47]execute_cgi json_proto POST (null) [12:15:47]execute_cgi path=json_proto method=POST [12:15:47]POST find Content-Length [12:15:47]Host: 172.17.46.131:8080 [12:15:47]Content-Length: 682 [12:15:47]Content-Type: application/json [12:15:47] [12:15:47]POST finish read [12:15:47]Found Content-Length = 682 [12:15:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412182", "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" : 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" ] } } [12:15:47]execute_script... [12:15: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)412182", "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" : 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" ] } } [12:15:47]POST & json_proto [12:15:47]process_json_proto [12:15:47]json parsed OK: [12:15:47]protocol is kg_v1.0 [12:15:47]action value=close_receipt [12:15:47]process_action close_receipt [12:15:47]cmd_close_receipt [12:15:47]MH_GetDate [12:15:47]Write to MH i2c: F0 00 00 F8 1C 03 [12:15:47]Write i2c OK [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: F0 [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: F0 09 00 [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: F0 09 00 F8 1C 00 76 CB B5 67 7E 41 4F 65 DC [12:15:47]GetLastDocTimeStamp 1739967305 [12:15:47]current date 1739967350 [12:15:47]FM_GetShiftState [12:15:47]SAM_PROTO_GetShiftState [12:15:47]wFMCommunicate request_size=4 [12:15:47]MH_SAM_APDU [12:15:47]CAPDU: 80 13 01 00 [12:15:47]Write to MH i2c: E2 08 00 F9 1C 80 13 01 00 00 00 00 00 92 [12:15:47]Write i2c OK [12:15:47]MH_I2C_Read... [12:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:47]Read from MH i2c: E2 [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: E2 0E 00 [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: E2 0E 00 F9 1C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 11 [12:15:47]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:15:47]wFMCommunicate OK [12:15:47]SAM_PROTO_GetShiftState done [12:15:47]FM_GetShiftState done [12:15:47]opened in 1739929631 [12:15:47]opened+sec_in_day 1740016031 [12:15:47]quantity*price = 150035 [12:15:47]sum+1 = 150036 [12:15:47]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 СНО: Общий режим Чек 97 19.02.2025 12:15 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187031 ФПД: 235526904669966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T121550&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187031&fm=235526904669966&tin=02508201610067®Number=0000000000091857&sum=150000 [12:15:48]StoreToDocumentArchive [12:15:48]shift 647 fd 187031 [12:15:48]save to /storage/0647/doc_00187031 [12:15:48]save last doc name /storage/0647/doc_00187031 to /storage/kkm_last_doc_name [12:15:48]save OK [12:15:48]Clear old archive folders... [12:15:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:48]tlvbuf is B6F66560 [12:15:48]SAM_PROTO_ClearQueue [12:15:48]wFMCommunicate request_size=4 [12:15:48]MH_SAM_APDU [12:15:48]CAPDU: 80 09 00 00 [12:15:48]Write to MH i2c: E2 08 00 06 1D 80 09 00 00 00 00 00 00 95 [12:15:48]Write i2c OK [12:15:48]MH_I2C_Read... [12:15:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:48]Read from MH i2c: E2 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 03 00 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 03 00 06 1D 00 90 00 97 [12:15:48]RAPDU: 90 00 [12:15:48]wFMCommunicate OK [12:15:48]SAM_PROTO_ClearQueue done [12:15:48]KKMCreateOFDPacket [12:15:48]OFDProtocolAddRootSTLVToBuf [12:15:48]FM_MakeSignedData [12:15:48]FM_MakeSignedData [12:15:48]SAM_PROTO_SignData [12:15:48]wFMCommunicate request_size=4 [12:15:48]MH_SAM_APDU [12:15:48]CAPDU: 80 0D 01 02 [12:15:48]Write to MH i2c: E2 08 00 07 1D 80 0D 01 02 00 00 00 00 9D [12:15:48]Write i2c OK [12:15:48]MH_I2C_Read... [12:15:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:48]Read from MH i2c: E2 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 03 00 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 03 00 07 1D 00 90 00 98 [12:15:48]RAPDU: 90 00 [12:15:48]wFMCommunicate OK [12:15:48]wFMCommunicate request_size=255 [12:15:48]MH_SAM_APDU [12:15: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 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 61 00 00 00 F4 03 04 00 76 CB 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 97 DA 02 00 35 04 06 00 D6 [12:15:48]Write to MH i2c: E2 02 01 08 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 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 61 00 00 00 F4 03 04 00 76 CB 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 97 DA 02 00 35 04 06 00 D6 00 00 90 [12:15:48]Write i2c OK [12:15:48]MH_I2C_Read... [12:15:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:48]Read from MH i2c: E2 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 03 00 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 03 00 08 1D 00 90 00 99 [12:15:48]RAPDU: 90 00 [12:15:48]wFMCommunicate OK [12:15:48]wFMCommunicate request_size=10 [12:15:48]MH_SAM_APDU [12:15:48]CAPDU: 80 0D 02 02 05 35 E1 7C E7 0E [12:15:48]Write to MH i2c: E2 0D 00 09 1D 80 0D 02 02 05 00 35 E1 7C E7 0E 00 00 31 [12:15:48]Write i2c OK [12:15:48]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 03 00 09 1D 00 90 00 9A [12:15:49]RAPDU: 90 00 [12:15:49]wFMCommunicate OK [12:15:49]wFMCommunicate request_size=4 [12:15:49]MH_SAM_APDU [12:15:49]CAPDU: 80 0D 03 02 [12:15:49]Write to MH i2c: E2 08 00 0A 1D 80 0D 03 02 00 00 00 00 A2 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 0B 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 0B 00 0A 1D 00 81 59 3E DD 90 D7 C7 94 90 00 5A [12:15:49]RAPDU: 81 59 3E DD 90 D7 C7 94 90 00 [12:15:49]wFMCommunicate OK [12:15:49]SAM_PROTO_SignData done [12:15:49]FM_MakeSignedData done [12:15:49]CreateOFDProtocolMessage [12:15:49]wFMCommunicate request_size=4 [12:15:49]MH_SAM_APDU [12:15:49]CAPDU: 80 11 00 00 [12:15:49]Write to MH i2c: E2 08 00 0B 1D 80 11 00 00 00 00 00 00 A2 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:49]Read from MH i2c: E2 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 17 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: E2 17 00 0B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F5 [12:15:49]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:49]wFMCommunicate OK [12:15:49]CreateOFDProtocolMessage done [12:15:49]OFDSenderStorePacket 187031 [12:15:49]StoreOFDPacket docnum=187031 [12:15: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 70 35 07 01 BA E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 61 00 00 00 F4 03 04 00 76 CB 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 97 DA 02 00 35 04 06 00 D6 35 E1 7C E7 0E 81 59 3E DD 90 D7 C7 94 [12:15:49]CheckFolder [12:15:49]dirname=/storage/ofd_packets [12:15:49]CheckFolder done [12:15:49]ProducePacketName [12:15:49]name=ofd_packets/00187031 [12:15:49]NVStorageSaveData ofd_packets/00187031 [12:15:49]File name is /storage/ofd_packets/00187031 [12:15:49]Write 301 bytes [12:15:49]NVStorageSaveData done [12:15:49]OFDSenderStorePacket done [12:15:49]KKMCreateOFDPacket done [12:15:49]NVStorageSaveData kkm_last_timestamp [12:15:49]File name is /storage/kkm_last_timestamp [12:15:49]Write 4 bytes [12:15:49]NVStorageSaveData done [12:15:49]ExternCall_PrintAddStr [12:15:49]wPrintStart [12:15:49]Write to MH i2c: 01 00 00 0C 1D 29 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: 01 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: 01 07 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: 01 07 00 0C 1D 00 00 00 00 00 FF 0F 3E [12:15:49]RasterBufferAndPrint [12:15:49]line Счет N : (1)412182 [12:15:49]line ИНН: 02508201610067 [12:15:49]line Контрольно-Кассовый Чек [12:15:49]line ПРОДАЖА [12:15:49]line ТРК (МРК, ГНК) : 12 [12:15:49]line Товар: 2710124130 [12:15:49]line Аи-92-К-2 [12:15:49]line 23.370 * 64.20 [12:15:49]line = 1500.35 [12:15:49]line НДС 12% НСП 1% [12:15:49]line > о реализуемом товаре [12:15:49]line ОКРУГЛЕНИЕ: -0.35 [12:15:49]line ИТОГО: 1500.00 [12:15:49]line Внесено: 1500.00 [12:15:49]line СДАЧА: 0.00 [12:15:49]line НСП 1% : 13.28 [12:15:49]line НДС 12% : 159.33 [12:15:49]line Наличными: 1500.00 [12:15:49]line Безнал.: 0.00 [12:15:49]line Место: АЗС № 92 "Партнер Нефть" [12:15:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:15:49]line СНО: Общий режим [12:15:49]line Чек 97 19.02.2025 12:15 [12:15:49]line Смена: 647 ФФД: 1.0 [12:15:49]line ЗНМ: 0300000118 [12:15:49]line РНМ: 0000000000091857 [12:15:49]line Версия ККМ: 001 [12:15:49]line ФМ: 0000000000871826 [12:15:49]line ФД: 187031 [12:15:49]line ФПД: 235526904669966 [12:15:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T121550&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187031&fm=235526904669966&tin=02508201610067®Number=0000000000091857&sum=150000 [12:15:49]OFD Sender: Processing packet 187031 [packets to send 49, broken 48] [12:15:49]ProducePacketName [12:15:49]name=ofd_packets/00187031 [12:15:49]OFD Sender: To server: pG, [12:15:49]CommunicateWithHost lk.salyk.kg:30040 [12:15:49]ConnectInit lk.salyk.kg [12:15:49]written 0, free lines is 4095 [12:15:49]Connected sock=10 [12:15: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 70 35 07 01 BA E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 61 00 00 00 F4 03 04 00 76 CB 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 97 DA 02 00 35 04 06 00 D6 35 E1 7C E7 0E 81 59 3E DD 90 D7 C7 94 [12:15: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 D8 A8 47 00 38 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 97 DA 02 00 F4 03 04 00 CA 71 B5 67 B6 04 01 00 00 88 B2 73 A1 34 84 D6 5F [12:15:49]CommunicateWithHost err = 0 [12:15:49]CheckOFDResponse [12:15:49]1017 (14) - 77093643461234 [12:15:49]1041 (16) - 0000000000871826 [12:15:49]1040 (4) - 187031 [12:15:49]1012 (4) - 19.02.2025 05:53 [12:15:49]1206 (1) - 0 [12:15:49]OFD Sender: Remove packet 187031 [12:15:49]ProducePacketName [12:15:49]name=ofd_packets/00187031 [12:15:49]NVStorageDeleteData [12:15:49]Write to MH i2c: 01 00 00 37 1D 54 [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: 01 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: 01 07 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: 01 07 00 37 1D 00 00 00 00 00 F4 0C 5B [12:15:49]RasterBufferAndPrint [12:15:49]line [12:15:49]line [12:15:49]line [12:15:49]line [12:15:49]line [12:15:49]written 0, free lines is 3322 [12:15:49]MH_Cut [12:15:49]Write to MH i2c: D1 01 00 3E 1D 01 2D [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: D1 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: D1 01 00 [12:15:49]MH_I2C_Read... [12:15:49]Read from MH i2c: D1 01 00 3E 1D 00 2C [12:15:49]Write to MH i2c: 01 00 00 3F 1D 5C [12:15:49]Write i2c OK [12:15:49]MH_I2C_Read... [12:15:50]OFD Sender: No OFD packet to send [12:15:50]*** Cut start [12:15:50]*** Partial cut [12:15:50]*** CUTSNS_PIN = 1 [12:15:50]*** CUTSNS_PIN = 0 [12:15:50]*** Brake cut motor [12:15:51]Read from MH i2c: 01 [12:15:51]MH_I2C_Read... [12:15:51]*** Stop cut motor [12:15:51]*** Cut end [12:15:51]Read from MH i2c: 01 07 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: 01 07 00 3F 1D 00 00 00 00 00 FF 0F 71 [12:15:51]process_action close_receipt done [12:15:51]requested_data is exist [12:15:51]produce_requested_data [12:15:51]requested_item fm.sn is exist - process it [12:15:51]wFMCommunicate request_size=4 [12:15:51]MH_SAM_APDU [12:15:51]CAPDU: 80 11 00 00 [12:15:51]Write to MH i2c: E2 08 00 40 1D 80 11 00 00 00 00 00 00 D7 [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:51]Read from MH i2c: E2 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 17 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 17 00 40 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2A [12:15: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:15:51]wFMCommunicate OK [12:15:51]requested_item fd.num is exist - process it [12:15:51]SAM_PROTO_GetFieldsCounters [12:15:51]wFMCommunicate request_size=4 [12:15:51]MH_SAM_APDU [12:15:51]CAPDU: 80 13 00 00 [12:15:51]Write to MH i2c: E2 08 00 41 1D 80 13 00 00 00 00 00 00 DA [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:51]Read from MH i2c: E2 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 62 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 62 00 41 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 97 DA 02 00 0E 04 04 00 87 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 1F [12:15: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 97 DA 02 00 0E 04 04 00 87 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:15:51]wFMCommunicate OK [12:15:51]SAM_PROTO_GetFieldsCounters done [12:15:51]requested_item shift.num is exist - process it [12:15:51]requested_item shift.opened is exist - process it [12:15:51]req_shift_opened [12:15:51]FM_GetShiftState [12:15:51]SAM_PROTO_GetShiftState [12:15:51]wFMCommunicate request_size=4 [12:15:51]MH_SAM_APDU [12:15:51]CAPDU: 80 13 01 00 [12:15:51]Write to MH i2c: E2 08 00 42 1D 80 13 01 00 00 00 00 00 DC [12:15:51]Write i2c OK [12:15:51]MH_I2C_Read... [12:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:51]Read from MH i2c: E2 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 0E 00 [12:15:51]MH_I2C_Read... [12:15:51]Read from MH i2c: E2 0E 00 42 1D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 5B [12:15:51]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:15:51]wFMCommunicate OK [12:15:51]SAM_PROTO_GetShiftState done [12:15:51]FM_GetShiftState done [12:15:51]req_shift_opened done [12:15:51]requested_item shift.open_date is exist - process it [12:15:51]req_shift_open_date [12:15:51]req_shift_open_date done [12:15:51]produce_requested_data done [12:15:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187031,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [12:15:51]process_action_free close_receipt [12:15:51]json_value_free [12:15:51]json_value_free done [12:15:51]process_json_proto returns [12:15:51]Send response to host [12:15:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187031,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [12:15:51]free response buf [12:15:51]execute_script done [12:15:51]execute_script returns [12:15:51]free content buf [12:15:51]Sock 7.Close socket [12:15:51]Sock 7.Thread stoped [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:45]OFD Sender: No OFD packet to send [12:16:50]OFD Sender: No OFD packet to send [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:15]OFD Sender: No OFD packet to send [12:17:20]OFD Sender: No OFD packet to send [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:55]OFD Sender: No OFD packet to send [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:10]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:20]OFD Sender: No OFD packet to send [12:18:25]OFD Sender: No OFD packet to send [12:18:30]OFD Sender: No OFD packet to send [12:18:35]OFD Sender: No OFD packet to send [12:18:40]OFD Sender: No OFD packet to send [12:18:45]OFD Sender: No OFD packet to send [12:18:50]OFD Sender: No OFD packet to send [12:18:55]OFD Sender: No OFD packet to send [12:19:00]OFD Sender: No OFD packet to send [12:19:05]OFD Sender: No OFD packet to send [12:19:10]OFD Sender: No OFD packet to send [12:19:15]OFD Sender: No OFD packet to send [12:19:20]OFD Sender: No OFD packet to send [12:19:25]OFD Sender: No OFD packet to send [12:19:30]OFD Sender: No OFD packet to send [12:19:35]OFD Sender: No OFD packet to send [12:19:40]OFD Sender: No OFD packet to send [12:19:45]OFD Sender: No OFD packet to send [12:19:50]OFD Sender: No OFD packet to send [12:19:55]OFD Sender: No OFD packet to send [12:20:00]OFD Sender: No OFD packet to send [12:20:05]OFD Sender: No OFD packet to send [12:20:10]OFD Sender: No OFD packet to send [12:20:15]OFD Sender: No OFD packet to send [12:20:20]OFD Sender: No OFD packet to send [12:20:25]OFD Sender: No OFD packet to send [12:20:30]OFD Sender: No OFD packet to send [12:20:35]OFD Sender: No OFD packet to send [12:20:40]OFD Sender: No OFD packet to send [12:20:45]OFD Sender: No OFD packet to send [12:20:50]OFD Sender: No OFD packet to send [12:20:55]OFD Sender: No OFD packet to send [12:21:00]OFD Sender: No OFD packet to send [12:21:05]OFD Sender: No OFD packet to send [12:21:10]OFD Sender: No OFD packet to send [12:21:15]OFD Sender: No OFD packet to send [12:21:20]OFD Sender: No OFD packet to send [12:21:25]OFD Sender: No OFD packet to send [12:21:30]OFD Sender: No OFD packet to send [12:21:35]OFD Sender: No OFD packet to send [12:21:40]OFD Sender: No OFD packet to send [12:21:45]OFD Sender: No OFD packet to send [12:21:50]OFD Sender: No OFD packet to send [12:21:55]OFD Sender: No OFD packet to send [12:22:00]OFD Sender: No OFD packet to send [12:22:05]OFD Sender: No OFD packet to send [12:22:10]OFD Sender: No OFD packet to send [12:22:15]OFD Sender: No OFD packet to send [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:45]OFD Sender: No OFD packet to send [12:22:50]OFD Sender: No OFD packet to send [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:30]OFD Sender: No OFD packet to send [12:23:35]OFD Sender: No OFD packet to send [12:23:40]OFD Sender: No OFD packet to send [12:23:45]OFD Sender: No OFD packet to send [12:23:50]OFD Sender: No OFD packet to send [12:23:55]OFD Sender: No OFD packet to send [12:24:00]OFD Sender: No OFD packet to send [12:24:05]OFD Sender: No OFD packet to send [12:24:10]OFD Sender: No OFD packet to send [12:24:15]OFD Sender: No OFD packet to send [12:24:20]OFD Sender: No OFD packet to send [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:25:25]OFD Sender: No OFD packet to send [12:25:30]OFD Sender: No OFD packet to send [12:25:35]OFD Sender: No OFD packet to send [12:25:40]OFD Sender: No OFD packet to send [12:25:45]OFD Sender: No OFD packet to send [12:25:50]OFD Sender: No OFD packet to send [12:25:55]OFD Sender: No OFD packet to send [12:26:00]OFD Sender: No OFD packet to send [12:26:05]OFD Sender: No OFD packet to send [12:26:10]OFD Sender: No OFD packet to send [12:26:15]OFD Sender: No OFD packet to send [12:26:20]OFD Sender: No OFD packet to send [12:26:25]OFD Sender: No OFD packet to send [12:26:30]OFD Sender: No OFD packet to send [12:26:35]OFD Sender: No OFD packet to send [12:26:40]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:06]OFD Sender: No OFD packet to send [12:29:11]OFD Sender: No OFD packet to send [12:29:16]OFD Sender: No OFD packet to send [12:29:21]OFD Sender: No OFD packet to send [12:29:26]OFD Sender: No OFD packet to send [12:29:31]OFD Sender: No OFD packet to send [12:29:36]OFD Sender: No OFD packet to send [12:29:41]OFD Sender: No OFD packet to send [12:29:46]OFD Sender: No OFD packet to send [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:48]accept exits with 9 [12:30:48]New connection [12:30:48]New thread 3066879332 created [12:30:48]Thread 3067022692 joined [12:30:48]Waiting for new connection... [12:30:48] Sock 9.Parse request [12:30:48]Sock 9.Check first char [12:30:48]Sock 9.First char is OK [12:30:48]request: POST /json_proto HTTP/1.0 [12:30:48]Method: POST [12:30:48]URL: /json_proto [12:30:48]Method is POST - this is cgi request [12:30:48]url: /json_proto [12:30:48]query_string will be loaded in cgi processing [12:30:48]execute_cgi json_proto POST (null) [12:30:48]execute_cgi path=json_proto method=POST [12:30:48]POST find Content-Length [12:30:48]Host: 172.17.46.131:8080 [12:30:48]Content-Length: 800 [12:30:48]Content-Type: application/json [12:30:48] [12:30:48]POST finish read [12:30:48]Found Content-Length = 800 [12:30:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412183", "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" : 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" ] } } [12:30:48]execute_script... [12:30:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412183", "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" : 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" ] } } [12:30:48]POST & json_proto [12:30:48]process_json_proto [12:30:48]json parsed OK: [12:30:48]protocol is kg_v1.0 [12:30:48]action value=close_receipt [12:30:48]process_action close_receipt [12:30:48]cmd_close_receipt [12:30:48]MH_GetDate [12:30:48]Write to MH i2c: F0 00 00 43 1D 4F [12:30:48]Write i2c OK [12:30:48]MH_I2C_Read... [12:30:48]Read from MH i2c: F0 [12:30:48]MH_I2C_Read... [12:30:48]Read from MH i2c: F0 09 00 [12:30:48]MH_I2C_Read... [12:30:48]Read from MH i2c: F0 09 00 43 1D 00 FB CE B5 67 7E 41 4F 65 B0 [12:30:48]GetLastDocTimeStamp 1739967350 [12:30:48]current date 1739968251 [12:30:48]FM_GetShiftState [12:30:48]SAM_PROTO_GetShiftState [12:30:48]wFMCommunicate request_size=4 [12:30:48]MH_SAM_APDU [12:30:48]CAPDU: 80 13 01 00 [12:30:48]Write to MH i2c: E2 08 00 44 1D 80 13 01 00 00 00 00 00 DE [12:30:48]Write i2c OK [12:30:48]MH_I2C_Read... [12:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:48]Read from MH i2c: E2 [12:30:48]MH_I2C_Read... [12:30:48]Read from MH i2c: E2 0E 00 [12:30:48]MH_I2C_Read... [12:30:48]Read from MH i2c: E2 0E 00 44 1D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 5D [12:30:48]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:30:48]wFMCommunicate OK [12:30:48]SAM_PROTO_GetShiftState done [12:30:48]FM_GetShiftState done [12:30:48]opened in 1739929631 [12:30:48]opened+sec_in_day 1740016031 [12:30:48]quantity*price = 150064 [12:30:48]sum+1 = 150065 [12:30:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.64 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 0.00 Безнал.: 1500.64 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 98 19.02.2025 12:30 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187032 ФПД: 75080174038747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T123051&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187032&fm=75080174038747&tin=02508201610067®Number=0000000000091857&sum=150064 [12:30:49]StoreToDocumentArchive [12:30:49]shift 647 fd 187032 [12:30:49]save to /storage/0647/doc_00187032 [12:30:49]save last doc name /storage/0647/doc_00187032 to /storage/kkm_last_doc_name [12:30:49]save OK [12:30:49]Clear old archive folders... [12:30:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:30:49]tlvbuf is 005C6DE0 [12:30:49]SAM_PROTO_ClearQueue [12:30:49]wFMCommunicate request_size=4 [12:30:49]MH_SAM_APDU [12:30:49]CAPDU: 80 09 00 00 [12:30:49]Write to MH i2c: E2 08 00 51 1D 80 09 00 00 00 00 00 00 E0 [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:49]Read from MH i2c: E2 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 51 1D 00 90 00 E2 [12:30:49]RAPDU: 90 00 [12:30:49]wFMCommunicate OK [12:30:49]SAM_PROTO_ClearQueue done [12:30:49]KKMCreateOFDPacket [12:30:49]OFDProtocolAddRootSTLVToBuf [12:30:49]FM_MakeSignedData [12:30:49]FM_MakeSignedData [12:30:49]SAM_PROTO_SignData [12:30:49]wFMCommunicate request_size=4 [12:30:49]MH_SAM_APDU [12:30:49]CAPDU: 80 0D 01 02 [12:30:49]Write to MH i2c: E2 08 00 52 1D 80 0D 01 02 00 00 00 00 E8 [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:49]Read from MH i2c: E2 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 52 1D 00 90 00 E3 [12:30:49]RAPDU: 90 00 [12:30:49]wFMCommunicate OK [12:30:49]wFMCommunicate request_size=255 [12:30:49]MH_SAM_APDU [12:30:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 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 62 00 00 00 F4 03 04 00 FB CE 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 98 DA 02 00 35 04 06 00 44 48 F7 1A [12:30:49]Write to MH i2c: E2 02 01 53 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 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 62 00 00 00 F4 03 04 00 FB CE 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 98 DA 02 00 35 04 06 00 44 48 F7 1A 00 00 D5 [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:49]Read from MH i2c: E2 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 53 1D 00 90 00 E4 [12:30:49]RAPDU: 90 00 [12:30:49]wFMCommunicate OK [12:30:49]wFMCommunicate request_size=7 [12:30:49]MH_SAM_APDU [12:30:49]CAPDU: 80 0D 02 02 02 6E DB [12:30:49]Write to MH i2c: E2 0A 00 54 1D 80 0D 02 02 02 00 6E DB 00 00 38 [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:49]Read from MH i2c: E2 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 03 00 54 1D 00 90 00 E5 [12:30:49]RAPDU: 90 00 [12:30:49]wFMCommunicate OK [12:30:49]wFMCommunicate request_size=4 [12:30:49]MH_SAM_APDU [12:30:49]CAPDU: 80 0D 03 02 [12:30:49]Write to MH i2c: E2 08 00 55 1D 80 0D 03 02 00 00 00 00 ED [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:49]Read from MH i2c: E2 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 0B 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 0B 00 55 1D 00 0E 48 C8 1E 76 42 E0 F2 90 00 B4 [12:30:49]RAPDU: 0E 48 C8 1E 76 42 E0 F2 90 00 [12:30:49]wFMCommunicate OK [12:30:49]SAM_PROTO_SignData done [12:30:49]FM_MakeSignedData done [12:30:49]CreateOFDProtocolMessage [12:30:49]wFMCommunicate request_size=4 [12:30:49]MH_SAM_APDU [12:30:49]CAPDU: 80 11 00 00 [12:30:49]Write to MH i2c: E2 08 00 56 1D 80 11 00 00 00 00 00 00 ED [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:49]Read from MH i2c: E2 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 17 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 17 00 56 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 40 [12:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:30:49]wFMCommunicate OK [12:30:49]CreateOFDProtocolMessage done [12:30:49]OFDSenderStorePacket 187032 [12:30:49]StoreOFDPacket docnum=187032 [12:30: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 0C 01 00 00 E3 A6 04 01 2E 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 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 62 00 00 00 F4 03 04 00 FB CE 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 98 DA 02 00 35 04 06 00 44 48 F7 1A 6E DB 0E 48 C8 1E 76 42 E0 F2 [12:30:49]CheckFolder [12:30:49]dirname=/storage/ofd_packets [12:30:49]CheckFolder done [12:30:49]ProducePacketName [12:30:49]name=ofd_packets/00187032 [12:30:49]NVStorageSaveData ofd_packets/00187032 [12:30:49]File name is /storage/ofd_packets/00187032 [12:30:49]Write 298 bytes [12:30:49]NVStorageSaveData done [12:30:49]OFDSenderStorePacket done [12:30:49]KKMCreateOFDPacket done [12:30:49]NVStorageSaveData kkm_last_timestamp [12:30:49]File name is /storage/kkm_last_timestamp [12:30:49]Write 4 bytes [12:30:49]NVStorageSaveData done [12:30:49]ExternCall_PrintAddStr [12:30:49]wPrintStart [12:30:49]Write to MH i2c: 01 00 00 57 1D 74 [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: 01 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: 01 07 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: 01 07 00 57 1D 00 00 00 00 00 FF 0F 89 [12:30:49]RasterBufferAndPrint [12:30:49]line Счет N : (1)412183 [12:30:49]line ИНН: 02508201610067 [12:30:49]line Контрольно-Кассовый Чек [12:30:49]line ПРОДАЖА [12:30:49]line ТРК (МРК, ГНК) : 11 [12:30:49]line Товар: 2710194210 [12:30:49]line ДТ-К-2 [12:30:49]line 20.670 * 72.60 [12:30:49]line = 1500.64 [12:30:49]line НДС 12% НСП 1% [12:30:49]line > о реализуемом товаре [12:30:49]line ИТОГО: 1500.64 [12:30:49]line НСП 1% : 13.28 [12:30:49]line НДС 12% : 159.36 [12:30:49]line Наличными: 0.00 [12:30:49]line Безнал.: 1500.64 [12:30:49]line Место: АЗС № 92 "Партнер Нефть" [12:30:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:30:49]line СНО: Общий режим [12:30:49]line Чек 98 19.02.2025 12:30 [12:30:49]line Смена: 647 ФФД: 1.0 [12:30:49]line ЗНМ: 0300000118 [12:30:49]line РНМ: 0000000000091857 [12:30:49]line Версия ККМ: 001 [12:30:49]line Платежная система: O! деньги [12:30:49]line ФМ: 0000000000871826 [12:30:49]line ФД: 187032 [12:30:49]line ФПД: 75080174038747 [12:30:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T123051&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187032&fm=75080174038747&tin=02508201610067®Number=0000000000091857&sum=150064 [12:30:50]OFD Sender: Processing packet 187032 [packets to send 49, broken 48] [12:30:50]ProducePacketName [12:30:50]name=ofd_packets/00187032 [12:30:50]OFD Sender: To server: pG, [12:30:50]CommunicateWithHost lk.salyk.kg:30040 [12:30:50]ConnectInit lk.salyk.kg [12:30:50]written 0, free lines is 4095 [12:30:50]Connected sock=11 [12:30:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E3 A6 04 01 2E 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 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 62 00 00 00 F4 03 04 00 FB CE 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 98 DA 02 00 35 04 06 00 44 48 F7 1A 6E DB 0E 48 C8 1E 76 42 E0 F2 [12:30:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 21 F2 47 00 61 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 98 DA 02 00 F4 03 04 00 4F 75 B5 67 B6 04 01 00 00 B1 83 BC 97 6E E0 61 7B [12:30:50]CommunicateWithHost err = 0 [12:30:50]CheckOFDResponse [12:30:50]1017 (14) - 77093643461234 [12:30:50]1041 (16) - 0000000000871826 [12:30:50]1040 (4) - 187032 [12:30:50]1012 (4) - 19.02.2025 06:08 [12:30:50]1206 (1) - 0 [12:30:50]OFD Sender: Remove packet 187032 [12:30:50]ProducePacketName [12:30:50]name=ofd_packets/00187032 [12:30:50]NVStorageDeleteData [12:30:50]Write to MH i2c: 01 00 00 81 1D 9E [12:30:50]Write i2c OK [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: 01 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: 01 07 00 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: 01 07 00 81 1D 00 00 00 00 00 0B 0D BD [12:30:50]RasterBufferAndPrint [12:30:50]line [12:30:50]line [12:30:50]line [12:30:50]line [12:30:50]line [12:30:50]written 0, free lines is 3345 [12:30:50]MH_Cut [12:30:50]Write to MH i2c: D1 01 00 88 1D 01 77 [12:30:50]Write i2c OK [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: D1 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: D1 01 00 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: D1 01 00 88 1D 00 76 [12:30:50]Write to MH i2c: 01 00 00 89 1D A6 [12:30:50]Write i2c OK [12:30:50]MH_I2C_Read... [12:30:51]OFD Sender: No OFD packet to send [12:30:51]*** Cut start [12:30:51]*** Partial cut [12:30:51]*** CUTSNS_PIN = 1 [12:30:51]*** CUTSNS_PIN = 0 [12:30:51]*** Brake cut motor [12:30:52]Read from MH i2c: 01 [12:30:52]MH_I2C_Read... [12:30:52]*** Stop cut motor [12:30:52]*** Cut end [12:30:52]Read from MH i2c: 01 07 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: 01 07 00 89 1D 00 00 00 00 00 FF 0F BB [12:30:52]process_action close_receipt done [12:30:52]requested_data is exist [12:30:52]produce_requested_data [12:30:52]requested_item fm.sn is exist - process it [12:30:52]wFMCommunicate request_size=4 [12:30:52]MH_SAM_APDU [12:30:52]CAPDU: 80 11 00 00 [12:30:52]Write to MH i2c: E2 08 00 8A 1D 80 11 00 00 00 00 00 00 21 [12:30:52]Write i2c OK [12:30:52]MH_I2C_Read... [12:30:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:52]Read from MH i2c: E2 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 17 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 17 00 8A 1D 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:30:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:30:52]wFMCommunicate OK [12:30:52]requested_item fd.num is exist - process it [12:30:52]SAM_PROTO_GetFieldsCounters [12:30:52]wFMCommunicate request_size=4 [12:30:52]MH_SAM_APDU [12:30:52]CAPDU: 80 13 00 00 [12:30:52]Write to MH i2c: E2 08 00 8B 1D 80 13 00 00 00 00 00 00 24 [12:30:52]Write i2c OK [12:30:52]MH_I2C_Read... [12:30:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:52]Read from MH i2c: E2 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 62 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 62 00 8B 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 98 DA 02 00 0E 04 04 00 87 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 6D [12:30:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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:30:52]wFMCommunicate OK [12:30:52]SAM_PROTO_GetFieldsCounters done [12:30:52]requested_item shift.num is exist - process it [12:30:52]requested_item shift.opened is exist - process it [12:30:52]req_shift_opened [12:30:52]FM_GetShiftState [12:30:52]SAM_PROTO_GetShiftState [12:30:52]wFMCommunicate request_size=4 [12:30:52]MH_SAM_APDU [12:30:52]CAPDU: 80 13 01 00 [12:30:52]Write to MH i2c: E2 08 00 8C 1D 80 13 01 00 00 00 00 00 26 [12:30:52]Write i2c OK [12:30:52]MH_I2C_Read... [12:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:52]Read from MH i2c: E2 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 0E 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 0E 00 8C 1D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A5 [12:30:52]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:30:52]wFMCommunicate OK [12:30:52]SAM_PROTO_GetShiftState done [12:30:52]FM_GetShiftState done [12:30:52]req_shift_opened done [12:30:52]requested_item shift.open_date is exist - process it [12:30:52]req_shift_open_date [12:30:52]req_shift_open_date done [12:30:52]produce_requested_data done [12:30:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187032,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [12:30:52]process_action_free close_receipt [12:30:52]json_value_free [12:30:52]json_value_free done [12:30:52]process_json_proto returns [12:30:52]Send response to host [12:30:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187032,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [12:30:52]free response buf [12:30:52]execute_script done [12:30:52]execute_script returns [12:30:52]free content buf [12:30:52]Sock 9.Close socket [12:30:52]Sock 9.Thread stoped [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:03]accept exits with 7 [12:34:03]New connection [12:34:03]New thread 3067022692 created [12:34:03]Thread 3066879332 joined [12:34:03]Waiting for new connection... [12:34:03] Sock 7.Parse request [12:34:03]Sock 7.Check first char [12:34:03]Sock 7.First char is OK [12:34:03]request: POST /json_proto HTTP/1.0 [12:34:03]Method: POST [12:34:03]URL: /json_proto [12:34:03]Method is POST - this is cgi request [12:34:03]url: /json_proto [12:34:03]query_string will be loaded in cgi processing [12:34:03]execute_cgi json_proto POST (null) [12:34:03]execute_cgi path=json_proto method=POST [12:34:03]POST find Content-Length [12:34:03]Host: 172.17.46.131:8080 [12:34:03]Content-Length: 754 [12:34:03]Content-Type: application/json [12:34:03] [12:34:03]POST finish read [12:34:03]Found Content-Length = 754 [12:34:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412184", "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" : 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30026266", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:03]execute_script... [12:34: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)412184", "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" : 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30026266", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:03]POST & json_proto [12:34:03]process_json_proto [12:34:03]json parsed OK: [12:34:03]protocol is kg_v1.0 [12:34:03]action value=close_receipt [12:34:03]process_action close_receipt [12:34:03]cmd_close_receipt [12:34:03]MH_GetDate [12:34:03]Write to MH i2c: F0 00 00 8D 1D 99 [12:34:03]Write i2c OK [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: F0 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: F0 09 00 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: F0 09 00 8D 1D 00 BF CF B5 67 7E 41 4F 65 BF [12:34:03]GetLastDocTimeStamp 1739968251 [12:34:03]current date 1739968447 [12:34:03]FM_GetShiftState [12:34:03]SAM_PROTO_GetShiftState [12:34:03]wFMCommunicate request_size=4 [12:34:03]MH_SAM_APDU [12:34:03]CAPDU: 80 13 01 00 [12:34:03]Write to MH i2c: E2 08 00 8E 1D 80 13 01 00 00 00 00 00 28 [12:34:03]Write i2c OK [12:34:03]MH_I2C_Read... [12:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:04]Read from MH i2c: E2 [12:34:04]MH_I2C_Read... [12:34:04]Read from MH i2c: E2 0E 00 [12:34:04]MH_I2C_Read... [12:34:04]Read from MH i2c: E2 0E 00 8E 1D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A7 [12:34:04]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:34:04]wFMCommunicate OK [12:34:04]SAM_PROTO_GetShiftState done [12:34:04]FM_GetShiftState done [12:34:04]opened in 1739929631 [12:34:04]opened+sec_in_day 1740016031 [12:34:04]quantity*price = 0 [12:34:04]sum+1 = 1 [12:34:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 99 19.02.2025 12:34 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30026266 ФМ: 0000000000871826 ФД: 187033 ФПД: 277154537154297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T123407&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187033&fm=277154537154297&tin=02508201610067®Number=0000000000091857&sum=0 [12:34:05]StoreToDocumentArchive [12:34:05]shift 647 fd 187033 [12:34:05]save to /storage/0647/doc_00187033 [12:34:05]save last doc name /storage/0647/doc_00187033 to /storage/kkm_last_doc_name [12:34:05]save OK [12:34:05]Clear old archive folders... [12:34:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:05]tlvbuf is B6F66060 [12:34:05]SAM_PROTO_ClearQueue [12:34:05]wFMCommunicate request_size=4 [12:34:05]MH_SAM_APDU [12:34:05]CAPDU: 80 09 00 00 [12:34:05]Write to MH i2c: E2 08 00 9B 1D 80 09 00 00 00 00 00 00 2A [12:34:05]Write i2c OK [12:34:05]MH_I2C_Read... [12:34:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:05]Read from MH i2c: E2 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 03 00 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 03 00 9B 1D 00 90 00 2C [12:34:05]RAPDU: 90 00 [12:34:05]wFMCommunicate OK [12:34:05]SAM_PROTO_ClearQueue done [12:34:05]KKMCreateOFDPacket [12:34:05]OFDProtocolAddRootSTLVToBuf [12:34:05]FM_MakeSignedData [12:34:05]FM_MakeSignedData [12:34:05]SAM_PROTO_SignData [12:34:05]wFMCommunicate request_size=4 [12:34:05]MH_SAM_APDU [12:34:05]CAPDU: 80 0D 01 02 [12:34:05]Write to MH i2c: E2 08 00 9C 1D 80 0D 01 02 00 00 00 00 32 [12:34:05]Write i2c OK [12:34:05]MH_I2C_Read... [12:34:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:05]Read from MH i2c: E2 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 03 00 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 03 00 9C 1D 00 90 00 2D [12:34:05]RAPDU: 90 00 [12:34:05]wFMCommunicate OK [12:34:05]wFMCommunicate request_size=255 [12:34:05]MH_SAM_APDU [12:34: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 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 63 00 00 00 F4 03 04 00 BF CF 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 99 DA 02 00 35 04 06 00 FC [12:34:05]Write to MH i2c: E2 02 01 9D 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 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 63 00 00 00 F4 03 04 00 BF CF 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 99 DA 02 00 35 04 06 00 FC 00 00 85 [12:34:05]Write i2c OK [12:34:05]MH_I2C_Read... [12:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:05]Read from MH i2c: E2 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 03 00 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 03 00 9D 1D 00 90 00 2E [12:34:05]RAPDU: 90 00 [12:34:05]wFMCommunicate OK [12:34:05]wFMCommunicate request_size=10 [12:34:05]MH_SAM_APDU [12:34:05]CAPDU: 80 0D 02 02 05 12 11 BC 26 F9 [12:34:05]Write to MH i2c: E2 0D 00 9E 1D 80 0D 02 02 05 00 12 11 BC 26 F9 00 00 3D [12:34:05]Write i2c OK [12:34:05]MH_I2C_Read... [12:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:05]Read from MH i2c: E2 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 03 00 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 03 00 9E 1D 00 90 00 2F [12:34:05]RAPDU: 90 00 [12:34:05]wFMCommunicate OK [12:34:05]wFMCommunicate request_size=4 [12:34:05]MH_SAM_APDU [12:34:05]CAPDU: 80 0D 03 02 [12:34:05]Write to MH i2c: E2 08 00 9F 1D 80 0D 03 02 00 00 00 00 37 [12:34:05]Write i2c OK [12:34:05]MH_I2C_Read... [12:34:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:05]Read from MH i2c: E2 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 0B 00 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 0B 00 9F 1D 00 09 AC 3F 41 0F 81 85 10 90 00 92 [12:34:05]RAPDU: 09 AC 3F 41 0F 81 85 10 90 00 [12:34:05]wFMCommunicate OK [12:34:05]SAM_PROTO_SignData done [12:34:05]FM_MakeSignedData done [12:34:05]CreateOFDProtocolMessage [12:34:05]wFMCommunicate request_size=4 [12:34:05]MH_SAM_APDU [12:34:05]CAPDU: 80 11 00 00 [12:34:05]Write to MH i2c: E2 08 00 A0 1D 80 11 00 00 00 00 00 00 37 [12:34:05]Write i2c OK [12:34:05]MH_I2C_Read... [12:34:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:05]Read from MH i2c: E2 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 17 00 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: E2 17 00 A0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8A [12:34:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:34:05]wFMCommunicate OK [12:34:05]CreateOFDProtocolMessage done [12:34:05]OFDSenderStorePacket 187033 [12:34:05]StoreOFDPacket docnum=187033 [12:34: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 31 5A 07 01 5F 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 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 63 00 00 00 F4 03 04 00 BF CF 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 99 DA 02 00 35 04 06 00 FC 12 11 BC 26 F9 09 AC 3F 41 0F 81 85 10 [12:34:05]CheckFolder [12:34:05]dirname=/storage/ofd_packets [12:34:05]CheckFolder done [12:34:05]ProducePacketName [12:34:05]name=ofd_packets/00187033 [12:34:05]NVStorageSaveData ofd_packets/00187033 [12:34:05]File name is /storage/ofd_packets/00187033 [12:34:05]Write 301 bytes [12:34:05]NVStorageSaveData done [12:34:05]OFDSenderStorePacket done [12:34:05]KKMCreateOFDPacket done [12:34:05]NVStorageSaveData kkm_last_timestamp [12:34:05]File name is /storage/kkm_last_timestamp [12:34:05]Write 4 bytes [12:34:05]NVStorageSaveData done [12:34:05]ExternCall_PrintAddStr [12:34:05]wPrintStart [12:34:05]Write to MH i2c: 01 00 00 A1 1D BE [12:34:05]Write i2c OK [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: 01 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: 01 07 00 [12:34:05]MH_I2C_Read... [12:34:05]Read from MH i2c: 01 07 00 A1 1D 00 00 00 00 00 FF 0F D3 [12:34:05]RasterBufferAndPrint [12:34:05]line Счет N : (1)412184 [12:34:05]line ИНН: 02508201610067 [12:34:05]line Контрольно-Кассовый Чек [12:34:05]line ПРОДАЖА [12:34:05]line ТРК (МРК, ГНК) : 32 [12:34:05]line Товар: 2710124130 [12:34:05]line Аи-92-К-2 [12:34:05]line 35.000 * 0.00 [12:34:05]line = 0.00 [12:34:05]line НДС 12% НСП 1% [12:34:05]line > о реализуемом товаре [12:34:05]line ИТОГО: 0.00 [12:34:05]line НСП 1% : 0.00 [12:34:05]line НДС 12% : 0.00 [12:34:05]line Наличными: 0.00 [12:34:05]line Безнал.: 0.00 [12:34:05]line Место: АЗС № 92 "Партнер Нефть" [12:34:05]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:34:05]line СНО: Общий режим [12:34:05]line Чек 99 19.02.2025 12:34 [12:34:05]line Смена: 647 ФФД: 1.0 [12:34:05]line ЗНМ: 0300000118 [12:34:05]line РНМ: 0000000000091857 [12:34:05]line Версия ККМ: 001 [12:34:05]line Талоны: ТК ГПНА Online [12:34:05]line 30026266 [12:34:05]line ФМ: 0000000000871826 [12:34:05]line ФД: 187033 [12:34:05]line ФПД: 277154537154297 [12:34:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T123407&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187033&fm=277154537154297&tin=02508201610067®Number=0000000000091857&sum=0 [12:34:05]written 0, free lines is 4095 [12:34:05]OFD Sender: Processing packet 187033 [packets to send 49, broken 48] [12:34:05]ProducePacketName [12:34:05]name=ofd_packets/00187033 [12:34:05]OFD Sender: To server: pG, [12:34:05]CommunicateWithHost lk.salyk.kg:30040 [12:34:05]ConnectInit lk.salyk.kg [12:34:05]Connected sock=10 [12:34: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 31 5A 07 01 5F 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 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 63 00 00 00 F4 03 04 00 BF CF 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 99 DA 02 00 35 04 06 00 FC 12 11 BC 26 F9 09 AC 3F 41 0F 81 85 10 [12:34:06]Write to MH i2c: 01 00 00 CB 1D E8 [12:34:06]Write i2c OK [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: 01 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: 01 07 00 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: 01 07 00 CB 1D 00 00 00 00 00 0A 0D 06 [12:34:06]RasterBufferAndPrint [12:34:06]line [12:34:06]line [12:34:06]line [12:34:06]line [12:34:06]line [12:34:06]written 0, free lines is 3345 [12:34:06]MH_Cut [12:34:06]Write to MH i2c: D1 01 00 D2 1D 01 C1 [12:34:06]Write i2c OK [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: D1 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: D1 01 00 [12:34:06]MH_I2C_Read... [12:34:06]Read from MH i2c: D1 01 00 D2 1D 00 C0 [12:34:06]Write to MH i2c: 01 00 00 D3 1D F0 [12:34:06]Write i2c OK [12:34:06]MH_I2C_Read... [12:34: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 51 F9 47 00 EE 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 99 DA 02 00 F4 03 04 00 13 76 B5 67 B6 04 01 00 00 AB C2 46 17 94 5C A6 61 [12:34:06]CommunicateWithHost err = 0 [12:34:06]CheckOFDResponse [12:34:06]1017 (14) - 77093643461234 [12:34:06]1041 (16) - 0000000000871826 [12:34:06]1040 (4) - 187033 [12:34:06]1012 (4) - 19.02.2025 06:11 [12:34:06]1206 (1) - 0 [12:34:06]OFD Sender: Remove packet 187033 [12:34:06]ProducePacketName [12:34:06]name=ofd_packets/00187033 [12:34:06]NVStorageDeleteData [12:34:06]OFD Sender: No OFD packet to send [12:34:06]*** Cut start [12:34:06]*** Partial cut [12:34:06]*** CUTSNS_PIN = 1 [12:34:06]*** CUTSNS_PIN = 0 [12:34:07]*** Brake cut motor [12:34:07]Read from MH i2c: 01 [12:34:07]MH_I2C_Read... [12:34:07]*** Stop cut motor [12:34:07]*** Cut end [12:34:07]Read from MH i2c: 01 07 00 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: 01 07 00 D3 1D 00 00 00 00 00 FF 0F 05 [12:34:07]process_action close_receipt done [12:34:07]requested_data is exist [12:34:07]produce_requested_data [12:34:07]requested_item fm.sn is exist - process it [12:34:07]wFMCommunicate request_size=4 [12:34:07]MH_SAM_APDU [12:34:07]CAPDU: 80 11 00 00 [12:34:07]Write to MH i2c: E2 08 00 D4 1D 80 11 00 00 00 00 00 00 6B [12:34:07]Write i2c OK [12:34:07]MH_I2C_Read... [12:34:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:07]Read from MH i2c: E2 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: E2 17 00 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: E2 17 00 D4 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BE [12:34:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:34:07]wFMCommunicate OK [12:34:07]requested_item fd.num is exist - process it [12:34:07]SAM_PROTO_GetFieldsCounters [12:34:07]wFMCommunicate request_size=4 [12:34:07]MH_SAM_APDU [12:34:07]CAPDU: 80 13 00 00 [12:34:07]Write to MH i2c: E2 08 00 D5 1D 80 13 00 00 00 00 00 00 6E [12:34:07]Write i2c OK [12:34:07]MH_I2C_Read... [12:34:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:07]Read from MH i2c: E2 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: E2 62 00 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: E2 62 00 D5 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 99 DA 02 00 0E 04 04 00 87 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 BB [12:34: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 99 DA 02 00 0E 04 04 00 87 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 [12:34:07]wFMCommunicate OK [12:34:07]SAM_PROTO_GetFieldsCounters done [12:34:07]requested_item shift.num is exist - process it [12:34:07]requested_item shift.opened is exist - process it [12:34:07]req_shift_opened [12:34:07]FM_GetShiftState [12:34:07]SAM_PROTO_GetShiftState [12:34:07]wFMCommunicate request_size=4 [12:34:07]MH_SAM_APDU [12:34:07]CAPDU: 80 13 01 00 [12:34:07]Write to MH i2c: E2 08 00 D6 1D 80 13 01 00 00 00 00 00 70 [12:34:07]Write i2c OK [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: E2 [12:34:07]MH_I2C_Read... [12:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:07]Read from MH i2c: E2 0E 00 [12:34:07]MH_I2C_Read... [12:34:07]Read from MH i2c: E2 0E 00 D6 1D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 EF [12:34:07]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:34:07]wFMCommunicate OK [12:34:07]SAM_PROTO_GetShiftState done [12:34:07]FM_GetShiftState done [12:34:07]req_shift_opened done [12:34:07]requested_item shift.open_date is exist - process it [12:34:07]req_shift_open_date [12:34:07]req_shift_open_date done [12:34:07]produce_requested_data done [12:34:07]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187033,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [12:34:07]process_action_free close_receipt [12:34:07]json_value_free [12:34:07]json_value_free done [12:34:07]process_json_proto returns [12:34:07]Send response to host [12:34:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187033,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [12:34:07]free response buf [12:34:07]execute_script done [12:34:07]execute_script returns [12:34:07]free content buf [12:34:07]Sock 7.Close socket [12:34:07]Sock 7.Thread stoped [12:34:11]OFD Sender: No OFD packet to send [12:34:16]OFD Sender: No OFD packet to send [12:34:21]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:49]accept exits with 9 [12:34:49]New connection [12:34:49]New thread 3066879332 created [12:34:49]Thread 3067022692 joined [12:34:49]Waiting for new connection... [12:34:49] Sock 9.Parse request [12:34:49]Sock 9.Check first char [12:34:49]Sock 9.First char is OK [12:34:49]request: POST /json_proto HTTP/1.0 [12:34:49]Method: POST [12:34:49]URL: /json_proto [12:34:49]Method is POST - this is cgi request [12:34:49]url: /json_proto [12:34:49]query_string will be loaded in cgi processing [12:34:49]execute_cgi json_proto POST (null) [12:34:49]execute_cgi path=json_proto method=POST [12:34:49]POST find Content-Length [12:34:49]Host: 172.17.46.131:8080 [12:34:49]Content-Length: 678 [12:34:49]Content-Type: application/json [12:34:49] [12:34:49]POST finish read [12:34:49]Found Content-Length = 678 [12:34:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412185", "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" ] } } [12:34:49]execute_script... [12:34: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)412185", "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" ] } } [12:34:49]POST & json_proto [12:34:49]process_json_proto [12:34:49]json parsed OK: [12:34:49]protocol is kg_v1.0 [12:34:49]action value=close_receipt [12:34:49]process_action close_receipt [12:34:49]cmd_close_receipt [12:34:49]MH_GetDate [12:34:49]Write to MH i2c: F0 00 00 D7 1D E3 [12:34:49]Write i2c OK [12:34:49]MH_I2C_Read... [12:34:49]Read from MH i2c: F0 [12:34:49]MH_I2C_Read... [12:34:49]Read from MH i2c: F0 09 00 [12:34:49]MH_I2C_Read... [12:34:49]Read from MH i2c: F0 09 00 D7 1D 00 EC CF B5 67 7E 41 4F 65 36 [12:34:49]GetLastDocTimeStamp 1739968447 [12:34:49]current date 1739968492 [12:34:49]FM_GetShiftState [12:34:49]SAM_PROTO_GetShiftState [12:34:49]wFMCommunicate request_size=4 [12:34:49]MH_SAM_APDU [12:34:49]CAPDU: 80 13 01 00 [12:34:49]Write to MH i2c: E2 08 00 D8 1D 80 13 01 00 00 00 00 00 72 [12:34:49]Write i2c OK [12:34:49]MH_I2C_Read... [12:34:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:49]Read from MH i2c: E2 [12:34:49]MH_I2C_Read... [12:34:49]Read from MH i2c: E2 0E 00 [12:34:49]MH_I2C_Read... [12:34:49]Read from MH i2c: E2 0E 00 D8 1D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F1 [12:34:49]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:34:49]wFMCommunicate OK [12:34:49]SAM_PROTO_GetShiftState done [12:34:49]FM_GetShiftState done [12:34:49]opened in 1739929631 [12:34:49]opened+sec_in_day 1740016031 [12:34:49]quantity*price = 150064 [12:34:49]sum+1 = 150065 [12:34:49]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 СНО: Общий режим Чек 100 19.02.2025 12:34 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187034 ФПД: 229030378440317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T123452&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187034&fm=229030378440317&tin=02508201610067®Number=0000000000091857&sum=150000 [12:34:50]StoreToDocumentArchive [12:34:50]shift 647 fd 187034 [12:34:50]save to /storage/0647/doc_00187034 [12:34:50]save last doc name /storage/0647/doc_00187034 to /storage/kkm_last_doc_name [12:34:50]save OK [12:34:50]Clear old archive folders... [12:34:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:34:50]tlvbuf is 00679200 [12:34:50]SAM_PROTO_ClearQueue [12:34:50]wFMCommunicate request_size=4 [12:34:50]MH_SAM_APDU [12:34:50]CAPDU: 80 09 00 00 [12:34:50]Write to MH i2c: E2 08 00 E5 1D 80 09 00 00 00 00 00 00 74 [12:34:50]Write i2c OK [12:34:50]MH_I2C_Read... [12:34:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:50]Read from MH i2c: E2 [12:34:50]MH_I2C_Read... [12:34:50]Read from MH i2c: E2 03 00 [12:34:50]MH_I2C_Read... [12:34:50]Read from MH i2c: E2 03 00 E5 1D 00 90 00 76 [12:34:50]RAPDU: 90 00 [12:34:50]wFMCommunicate OK [12:34:50]SAM_PROTO_ClearQueue done [12:34:50]KKMCreateOFDPacket [12:34:50]OFDProtocolAddRootSTLVToBuf [12:34:50]FM_MakeSignedData [12:34:50]FM_MakeSignedData [12:34:50]SAM_PROTO_SignData [12:34:50]wFMCommunicate request_size=4 [12:34:50]MH_SAM_APDU [12:34:50]CAPDU: 80 0D 01 02 [12:34:50]Write to MH i2c: E2 08 00 E6 1D 80 0D 01 02 00 00 00 00 7C [12:34:50]Write i2c OK [12:34:50]MH_I2C_Read... [12:34:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:50]Read from MH i2c: E2 [12:34:50]MH_I2C_Read... [12:34:50]Read from MH i2c: E2 03 00 [12:34:50]MH_I2C_Read... [12:34:50]Read from MH i2c: E2 03 00 E6 1D 00 90 00 77 [12:34:50]RAPDU: 90 00 [12:34:50]wFMCommunicate OK [12:34:50]wFMCommunicate request_size=255 [12:34:50]MH_SAM_APDU [12:34: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 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 64 00 00 00 F4 03 04 00 EC CF 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 9A DA 02 00 35 04 06 00 D0 4D 4A 59 [12:34:50]Write to MH i2c: E2 02 01 E7 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 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 64 00 00 00 F4 03 04 00 EC CF 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 9A DA 02 00 35 04 06 00 D0 4D 4A 59 00 00 03 [12:34:50]Write i2c OK [12:34:50]MH_I2C_Read... [12:34:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:50]Read from MH i2c: E2 [12:34:50]MH_I2C_Read... [12:34:50]Read from MH i2c: E2 03 00 [12:34:50]MH_I2C_Read... [12:34:50]Read from MH i2c: E2 03 00 E7 1D 00 90 00 78 [12:34:50]RAPDU: 90 00 [12:34:50]wFMCommunicate OK [12:34:50]wFMCommunicate request_size=7 [12:34:50]MH_SAM_APDU [12:34:50]CAPDU: 80 0D 02 02 02 86 7D [12:34:50]Write to MH i2c: E2 0A 00 E8 1D 80 0D 02 02 02 00 86 7D 00 00 86 [12:34:50]Write i2c OK [12:34:50]MH_I2C_Read... [12:34:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:50]Read from MH i2c: E2 [12:34:50]MH_I2C_Read... [12:34:50]Read from MH i2c: E2 03 00 [12:34:50]MH_I2C_Read... [12:34:50]Read from MH i2c: E2 03 00 E8 1D 00 90 00 79 [12:34:50]RAPDU: 90 00 [12:34:50]wFMCommunicate OK [12:34:50]wFMCommunicate request_size=4 [12:34:50]MH_SAM_APDU [12:34:50]CAPDU: 80 0D 03 02 [12:34:50]Write to MH i2c: E2 08 00 E9 1D 80 0D 03 02 00 00 00 00 81 [12:34:50]Write i2c OK [12:34:50]MH_I2C_Read... [12:34:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:50]Read from MH i2c: E2 [12:34:50]MH_I2C_Read... [12:34:50]Read from MH i2c: E2 0B 00 [12:34:50]MH_I2C_Read... [12:34:50]Read from MH i2c: E2 0B 00 E9 1D 00 72 D6 38 2A BD 19 2F 7C 90 00 AD [12:34:50]RAPDU: 72 D6 38 2A BD 19 2F 7C 90 00 [12:34:50]wFMCommunicate OK [12:34:50]SAM_PROTO_SignData done [12:34:50]FM_MakeSignedData done [12:34:50]CreateOFDProtocolMessage [12:34:50]wFMCommunicate request_size=4 [12:34:50]MH_SAM_APDU [12:34:50]CAPDU: 80 11 00 00 [12:34:50]Write to MH i2c: E2 08 00 EA 1D 80 11 00 00 00 00 00 00 81 [12:34:50]Write i2c OK [12:34:50]MH_I2C_Read... [12:34:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:51]Read from MH i2c: E2 [12:34:51]MH_I2C_Read... [12:34:51]Read from MH i2c: E2 17 00 [12:34:51]MH_I2C_Read... [12:34:51]Read from MH i2c: E2 17 00 EA 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D4 [12:34: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:34:51]wFMCommunicate OK [12:34:51]CreateOFDProtocolMessage done [12:34:51]OFDSenderStorePacket 187034 [12:34:51]StoreOFDPacket docnum=187034 [12:34: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 CF 13 04 01 86 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 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 64 00 00 00 F4 03 04 00 EC CF 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 9A DA 02 00 35 04 06 00 D0 4D 4A 59 86 7D 72 D6 38 2A BD 19 2F 7C [12:34:51]CheckFolder [12:34:51]dirname=/storage/ofd_packets [12:34:51]CheckFolder done [12:34:51]ProducePacketName [12:34:51]name=ofd_packets/00187034 [12:34:51]NVStorageSaveData ofd_packets/00187034 [12:34:51]File name is /storage/ofd_packets/00187034 [12:34:51]Write 298 bytes [12:34:51]NVStorageSaveData done [12:34:51]OFDSenderStorePacket done [12:34:51]KKMCreateOFDPacket done [12:34:51]NVStorageSaveData kkm_last_timestamp [12:34:51]File name is /storage/kkm_last_timestamp [12:34:51]Write 4 bytes [12:34:51]NVStorageSaveData done [12:34:51]ExternCall_PrintAddStr [12:34:51]wPrintStart [12:34:51]Write to MH i2c: 01 00 00 EB 1D 08 [12:34:51]Write i2c OK [12:34:51]MH_I2C_Read... [12:34:51]Read from MH i2c: 01 [12:34:51]MH_I2C_Read... [12:34:51]Read from MH i2c: 01 07 00 [12:34:51]MH_I2C_Read... [12:34:51]Read from MH i2c: 01 07 00 EB 1D 00 00 00 00 00 FF 0F 1D [12:34:51]RasterBufferAndPrint [12:34:51]line Счет N : (1)412185 [12:34:51]line ИНН: 02508201610067 [12:34:51]line Контрольно-Кассовый Чек [12:34:51]line ПРОДАЖА [12:34:51]line ТРК (МРК, ГНК) : 5 [12:34:51]line Товар: 2710194210 [12:34:51]line ДТ-К-5 [12:34:51]line 20.670 * 72.60 [12:34:51]line = 1500.64 [12:34:51]line НДС 12% НСП 1% [12:34:51]line > о реализуемом товаре [12:34:51]line ОКРУГЛЕНИЕ: -0.64 [12:34:51]line ИТОГО: 1500.00 [12:34:51]line Внесено: 1500.00 [12:34:51]line СДАЧА: 0.00 [12:34:51]line НСП 1% : 13.28 [12:34:51]line НДС 12% : 159.36 [12:34:51]line Наличными: 1500.00 [12:34:51]line Безнал.: 0.00 [12:34:51]line Место: АЗС № 92 "Партнер Нефть" [12:34:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:34:51]line СНО: Общий режим [12:34:51]line Чек 100 19.02.2025 12:34 [12:34:51]line Смена: 647 ФФД: 1.0 [12:34:51]line ЗНМ: 0300000118 [12:34:51]line РНМ: 0000000000091857 [12:34:51]line Версия ККМ: 001 [12:34:51]line ФМ: 0000000000871826 [12:34:51]line ФД: 187034 [12:34:51]line ФПД: 229030378440317 [12:34:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T123452&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187034&fm=229030378440317&tin=02508201610067®Number=0000000000091857&sum=150000 [12:34:51]OFD Sender: Processing packet 187034 [packets to send 49, broken 48] [12:34:51]ProducePacketName [12:34:51]name=ofd_packets/00187034 [12:34:51]OFD Sender: To server: pG, [12:34:51]CommunicateWithHost lk.salyk.kg:30040 [12:34:51]ConnectInit lk.salyk.kg [12:34:51]written 0, free lines is 4095 [12:34:51]Connected sock=10 [12:34: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 CF 13 04 01 86 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 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 64 00 00 00 F4 03 04 00 EC CF 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 9A DA 02 00 35 04 06 00 D0 4D 4A 59 86 7D 72 D6 38 2A BD 19 2F 7C [12:34: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 DC FC 47 00 4C 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 9A DA 02 00 F4 03 04 00 40 76 B5 67 B6 04 01 00 00 5E 4A E6 3F 43 59 12 7C [12:34:51]CommunicateWithHost err = 0 [12:34:51]CheckOFDResponse [12:34:51]1017 (14) - 77093643461234 [12:34:51]1041 (16) - 0000000000871826 [12:34:51]1040 (4) - 187034 [12:34:51]1012 (4) - 19.02.2025 06:12 [12:34:51]1206 (1) - 0 [12:34:51]OFD Sender: Remove packet 187034 [12:34:51]ProducePacketName [12:34:51]name=ofd_packets/00187034 [12:34:51]NVStorageDeleteData [12:34:51]Write to MH i2c: 01 00 00 16 1E 34 [12:34:51]Write i2c OK [12:34:51]MH_I2C_Read... [12:34:51]Read from MH i2c: 01 [12:34:51]MH_I2C_Read... [12:34:51]Read from MH i2c: 01 07 00 [12:34:51]MH_I2C_Read... [12:34:51]Read from MH i2c: 01 07 00 16 1E 00 00 00 00 00 02 0D 4A [12:34:51]RasterBufferAndPrint [12:34:51]line [12:34:51]line [12:34:51]line [12:34:51]line [12:34:51]line [12:34:51]written 0, free lines is 3336 [12:34:51]MH_Cut [12:34:51]Write to MH i2c: D1 01 00 1D 1E 01 0D [12:34:51]Write i2c OK [12:34:51]MH_I2C_Read... [12:34:51]Read from MH i2c: D1 [12:34:51]MH_I2C_Read... [12:34:51]Read from MH i2c: D1 01 00 [12:34:51]MH_I2C_Read... [12:34:51]Read from MH i2c: D1 01 00 1D 1E 00 0C [12:34:51]Write to MH i2c: 01 00 00 1E 1E 3C [12:34:51]Write i2c OK [12:34:51]MH_I2C_Read... [12:34:52]OFD Sender: No OFD packet to send [12:34:52]*** Cut start [12:34:52]*** Partial cut [12:34:52]*** CUTSNS_PIN = 1 [12:34:52]*** CUTSNS_PIN = 0 [12:34:52]*** Brake cut motor [12:34:53]Read from MH i2c: 01 [12:34:53]MH_I2C_Read... [12:34:53]*** Stop cut motor [12:34:53]*** Cut end [12:34:53]Read from MH i2c: 01 07 00 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: 01 07 00 1E 1E 00 00 00 00 00 FF 0F 51 [12:34:53]process_action close_receipt done [12:34:53]requested_data is exist [12:34:53]produce_requested_data [12:34:53]requested_item fm.sn is exist - process it [12:34:53]wFMCommunicate request_size=4 [12:34:53]MH_SAM_APDU [12:34:53]CAPDU: 80 11 00 00 [12:34:53]Write to MH i2c: E2 08 00 1F 1E 80 11 00 00 00 00 00 00 B7 [12:34:53]Write i2c OK [12:34:53]MH_I2C_Read... [12:34:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:53]Read from MH i2c: E2 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 17 00 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 17 00 1F 1E 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:34:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:34:53]wFMCommunicate OK [12:34:53]requested_item fd.num is exist - process it [12:34:53]SAM_PROTO_GetFieldsCounters [12:34:53]wFMCommunicate request_size=4 [12:34:53]MH_SAM_APDU [12:34:53]CAPDU: 80 13 00 00 [12:34:53]Write to MH i2c: E2 08 00 20 1E 80 13 00 00 00 00 00 00 BA [12:34:53]Write i2c OK [12:34:53]MH_I2C_Read... [12:34:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:53]Read from MH i2c: E2 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 62 00 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 62 00 20 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 9A DA 02 00 0E 04 04 00 87 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 0B [12:34: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 9A DA 02 00 0E 04 04 00 87 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 [12:34:53]wFMCommunicate OK [12:34:53]SAM_PROTO_GetFieldsCounters done [12:34:53]requested_item shift.num is exist - process it [12:34:53]requested_item shift.opened is exist - process it [12:34:53]req_shift_opened [12:34:53]FM_GetShiftState [12:34:53]SAM_PROTO_GetShiftState [12:34:53]wFMCommunicate request_size=4 [12:34:53]MH_SAM_APDU [12:34:53]CAPDU: 80 13 01 00 [12:34:53]Write to MH i2c: E2 08 00 21 1E 80 13 01 00 00 00 00 00 BC [12:34:53]Write i2c OK [12:34:53]MH_I2C_Read... [12:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:53]Read from MH i2c: E2 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 0E 00 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 0E 00 21 1E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 3B [12:34:53]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:34:53]wFMCommunicate OK [12:34:53]SAM_PROTO_GetShiftState done [12:34:53]FM_GetShiftState done [12:34:53]req_shift_opened done [12:34:53]requested_item shift.open_date is exist - process it [12:34:53]req_shift_open_date [12:34:53]req_shift_open_date done [12:34:53]produce_requested_data done [12:34:53]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187034,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [12:34:53]process_action_free close_receipt [12:34:53]json_value_free [12:34:53]json_value_free done [12:34:53]process_json_proto returns [12:34:53]Send response to host [12:34:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187034,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [12:34:53]free response buf [12:34:53]execute_script done [12:34:53]execute_script returns [12:34:53]free content buf [12:34:53]Sock 9.Close socket [12:34:53]Sock 9.Thread stoped [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:36]accept exits with 7 [12:35:36]New connection [12:35:36]New thread 3067022692 created [12:35:36]Thread 3066879332 joined [12:35:36]Waiting for new connection... [12:35:36] Sock 7.Parse request [12:35:36]Sock 7.Check first char [12:35:36]Sock 7.First char is OK [12:35:36]request: POST /json_proto HTTP/1.0 [12:35:36]Method: POST [12:35:36]URL: /json_proto [12:35:36]Method is POST - this is cgi request [12:35:36]url: /json_proto [12:35:36]query_string will be loaded in cgi processing [12:35:36]execute_cgi json_proto POST (null) [12:35:36]execute_cgi path=json_proto method=POST [12:35:36]POST find Content-Length [12:35:36]Host: 172.17.46.131:8080 [12:35:36]Content-Length: 677 [12:35:36]Content-Type: application/json [12:35:36] [12:35:36]POST finish read [12:35:36]Found Content-Length = 677 [12:35:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412186", "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" : 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" ] } } [12:35:36]execute_script... [12:35: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)412186", "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" : 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" ] } } [12:35:36]POST & json_proto [12:35:36]process_json_proto [12:35:36]json parsed OK: [12:35:36]protocol is kg_v1.0 [12:35:36]action value=close_receipt [12:35:36]process_action close_receipt [12:35:36]cmd_close_receipt [12:35:36]MH_GetDate [12:35:36]Write to MH i2c: F0 00 00 22 1E 2F [12:35:36]Write i2c OK [12:35:36]MH_I2C_Read... [12:35:36]Read from MH i2c: F0 [12:35:36]MH_I2C_Read... [12:35:36]Read from MH i2c: F0 09 00 [12:35:36]MH_I2C_Read... [12:35:36]Read from MH i2c: F0 09 00 22 1E 00 1B D0 B5 67 7E 41 4F 65 B2 [12:35:36]GetLastDocTimeStamp 1739968492 [12:35:36]current date 1739968539 [12:35:36]FM_GetShiftState [12:35:36]SAM_PROTO_GetShiftState [12:35:36]wFMCommunicate request_size=4 [12:35:36]MH_SAM_APDU [12:35:36]CAPDU: 80 13 01 00 [12:35:36]Write to MH i2c: E2 08 00 23 1E 80 13 01 00 00 00 00 00 BE [12:35:36]Write i2c OK [12:35:36]MH_I2C_Read... [12:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:36]Read from MH i2c: E2 [12:35:36]MH_I2C_Read... [12:35:36]Read from MH i2c: E2 0E 00 [12:35:36]MH_I2C_Read... [12:35:36]Read from MH i2c: E2 0E 00 23 1E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 3D [12:35:36]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:35:36]wFMCommunicate OK [12:35:36]SAM_PROTO_GetShiftState done [12:35:36]FM_GetShiftState done [12:35:36]opened in 1739929631 [12:35:36]opened+sec_in_day 1740016031 [12:35:36]quantity*price = 40048 [12:35:36]sum+1 = 40049 [12:35: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 СНО: Общий режим Чек 101 19.02.2025 12:35 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187035 ФПД: 35959026325993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T123539&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187035&fm=35959026325993&tin=02508201610067®Number=0000000000091857&sum=40000 [12:35:37]StoreToDocumentArchive [12:35:37]shift 647 fd 187035 [12:35:37]save to /storage/0647/doc_00187035 [12:35:37]save last doc name /storage/0647/doc_00187035 to /storage/kkm_last_doc_name [12:35:37]save OK [12:35:37]Clear old archive folders... [12:35:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:35:37]tlvbuf is 006423F0 [12:35:37]SAM_PROTO_ClearQueue [12:35:37]wFMCommunicate request_size=4 [12:35:37]MH_SAM_APDU [12:35:37]CAPDU: 80 09 00 00 [12:35:37]Write to MH i2c: E2 08 00 30 1E 80 09 00 00 00 00 00 00 C0 [12:35:37]Write i2c OK [12:35:37]MH_I2C_Read... [12:35:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:37]Read from MH i2c: E2 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: E2 03 00 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: E2 03 00 30 1E 00 90 00 C2 [12:35:37]RAPDU: 90 00 [12:35:37]wFMCommunicate OK [12:35:37]SAM_PROTO_ClearQueue done [12:35:37]KKMCreateOFDPacket [12:35:37]OFDProtocolAddRootSTLVToBuf [12:35:37]FM_MakeSignedData [12:35:37]FM_MakeSignedData [12:35:37]SAM_PROTO_SignData [12:35:37]wFMCommunicate request_size=4 [12:35:37]MH_SAM_APDU [12:35:37]CAPDU: 80 0D 01 02 [12:35:37]Write to MH i2c: E2 08 00 31 1E 80 0D 01 02 00 00 00 00 C8 [12:35:37]Write i2c OK [12:35:37]MH_I2C_Read... [12:35:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:37]Read from MH i2c: E2 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: E2 03 00 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: E2 03 00 31 1E 00 90 00 C3 [12:35:37]RAPDU: 90 00 [12:35:37]wFMCommunicate OK [12:35:37]wFMCommunicate request_size=255 [12:35:37]MH_SAM_APDU [12: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 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 65 00 00 00 F4 03 04 00 1B D0 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 9B DA 02 00 35 04 06 00 20 [12:35:37]Write to MH i2c: E2 02 01 32 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 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 65 00 00 00 F4 03 04 00 1B D0 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 9B DA 02 00 35 04 06 00 20 00 00 44 [12:35:37]Write i2c OK [12:35:37]MH_I2C_Read... [12:35:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:37]Read from MH i2c: E2 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: E2 03 00 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: E2 03 00 32 1E 00 90 00 C4 [12:35:37]RAPDU: 90 00 [12:35:37]wFMCommunicate OK [12:35:37]wFMCommunicate request_size=10 [12:35:37]MH_SAM_APDU [12:35:37]CAPDU: 80 0D 02 02 05 B4 5C FD 99 E9 [12:35:37]Write to MH i2c: E2 0D 00 33 1E 80 0D 02 02 05 00 B4 5C FD 99 E9 00 00 64 [12:35:37]Write i2c OK [12:35:37]MH_I2C_Read... [12:35:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:37]Read from MH i2c: E2 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: E2 03 00 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: E2 03 00 33 1E 00 90 00 C5 [12:35:37]RAPDU: 90 00 [12:35:37]wFMCommunicate OK [12:35:37]wFMCommunicate request_size=4 [12:35:37]MH_SAM_APDU [12:35:37]CAPDU: 80 0D 03 02 [12:35:37]Write to MH i2c: E2 08 00 34 1E 80 0D 03 02 00 00 00 00 CD [12:35:37]Write i2c OK [12:35:37]MH_I2C_Read... [12:35:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:38]Read from MH i2c: E2 [12:35:38]MH_I2C_Read... [12:35:38]Read from MH i2c: E2 0B 00 [12:35:38]MH_I2C_Read... [12:35:38]Read from MH i2c: E2 0B 00 34 1E 00 0C 63 BC B3 11 BE 3D 6C 90 00 24 [12:35:38]RAPDU: 0C 63 BC B3 11 BE 3D 6C 90 00 [12:35:38]wFMCommunicate OK [12:35:38]SAM_PROTO_SignData done [12:35:38]FM_MakeSignedData done [12:35:38]CreateOFDProtocolMessage [12:35:38]wFMCommunicate request_size=4 [12:35:38]MH_SAM_APDU [12:35:38]CAPDU: 80 11 00 00 [12:35:38]Write to MH i2c: E2 08 00 35 1E 80 11 00 00 00 00 00 00 CD [12:35:38]Write i2c OK [12:35:38]MH_I2C_Read... [12:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:38]Read from MH i2c: E2 [12:35:38]MH_I2C_Read... [12:35:38]Read from MH i2c: E2 17 00 [12:35:38]MH_I2C_Read... [12:35:38]Read from MH i2c: E2 17 00 35 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 20 [12:35: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:35:38]wFMCommunicate OK [12:35:38]CreateOFDProtocolMessage done [12:35:38]OFDSenderStorePacket 187035 [12:35:38]StoreOFDPacket docnum=187035 [12:35: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 CA DF 07 01 84 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 65 00 00 00 F4 03 04 00 1B D0 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 9B DA 02 00 35 04 06 00 20 B4 5C FD 99 E9 0C 63 BC B3 11 BE 3D 6C [12:35:38]CheckFolder [12:35:38]dirname=/storage/ofd_packets [12:35:38]CheckFolder done [12:35:38]ProducePacketName [12:35:38]name=ofd_packets/00187035 [12:35:38]NVStorageSaveData ofd_packets/00187035 [12:35:38]File name is /storage/ofd_packets/00187035 [12:35:38]Write 301 bytes [12:35:38]NVStorageSaveData done [12:35:38]OFDSenderStorePacket done [12:35:38]KKMCreateOFDPacket done [12:35:38]NVStorageSaveData kkm_last_timestamp [12:35:38]File name is /storage/kkm_last_timestamp [12:35:38]Write 4 bytes [12:35:38]NVStorageSaveData done [12:35:38]ExternCall_PrintAddStr [12:35:38]wPrintStart [12:35:38]Write to MH i2c: 01 00 00 36 1E 54 [12:35:38]Write i2c OK [12:35:38]MH_I2C_Read... [12:35:38]Read from MH i2c: 01 [12:35:38]MH_I2C_Read... [12:35:38]Read from MH i2c: 01 07 00 [12:35:38]MH_I2C_Read... [12:35:38]Read from MH i2c: 01 07 00 36 1E 00 00 00 00 00 FF 0F 69 [12:35:38]RasterBufferAndPrint [12:35:38]line Счет N : (1)412186 [12:35:38]line ИНН: 02508201610067 [12:35:38]line Контрольно-Кассовый Чек [12:35:38]line ПРОДАЖА [12:35:38]line ТРК (МРК, ГНК) : 43 [12:35:38]line Товар: 2710124500 [12:35:38]line Аи-95-К-5 [12:35:38]line 5.570 * 71.90 [12:35:38]line = 400.48 [12:35:38]line НДС 12% НСП 1% [12:35:38]line > о реализуемом товаре [12:35:38]line ОКРУГЛЕНИЕ: -0.48 [12:35:38]line ИТОГО: 400.00 [12:35:38]line Внесено: 400.00 [12:35:38]line СДАЧА: 0.00 [12:35:38]line НСП 1% : 3.54 [12:35:38]line НДС 12% : 42.53 [12:35:38]line Наличными: 400.00 [12:35:38]line Безнал.: 0.00 [12:35:38]line Место: АЗС № 92 "Партнер Нефть" [12:35:38]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:35:38]line СНО: Общий режим [12:35:38]line Чек 101 19.02.2025 12:35 [12:35:38]line Смена: 647 ФФД: 1.0 [12:35:38]line ЗНМ: 0300000118 [12:35:38]line РНМ: 0000000000091857 [12:35:38]line Версия ККМ: 001 [12:35:38]line ФМ: 0000000000871826 [12:35:38]line ФД: 187035 [12:35:38]line ФПД: 35959026325993 [12:35:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T123539&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187035&fm=35959026325993&tin=02508201610067®Number=0000000000091857&sum=40000 [12:35:38]written 0, free lines is 4095 [12:35:38]OFD Sender: Processing packet 187035 [packets to send 49, broken 48] [12:35:38]ProducePacketName [12:35:38]name=ofd_packets/00187035 [12:35:38]OFD Sender: To server: pG, [12:35:38]CommunicateWithHost lk.salyk.kg:30040 [12:35:38]ConnectInit lk.salyk.kg [12:35:38]Connected sock=10 [12:35: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 CA DF 07 01 84 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 65 00 00 00 F4 03 04 00 1B D0 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 9B DA 02 00 35 04 06 00 20 B4 5C FD 99 E9 0C 63 BC B3 11 BE 3D 6C [12:35: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 72 FE 47 00 58 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9B DA 02 00 F4 03 04 00 6F 76 B5 67 B6 04 01 00 00 A8 27 EA CB 0F 17 5E 67 [12:35:38]CommunicateWithHost err = 0 [12:35:38]CheckOFDResponse [12:35:38]1017 (14) - 77093643461234 [12:35:38]1041 (16) - 0000000000871826 [12:35:38]1040 (4) - 187035 [12:35:38]1012 (4) - 19.02.2025 06:13 [12:35:38]1206 (1) - 0 [12:35:38]OFD Sender: Remove packet 187035 [12:35:38]ProducePacketName [12:35:38]name=ofd_packets/00187035 [12:35:38]NVStorageDeleteData [12:35:38]Write to MH i2c: 01 00 00 61 1E 7F [12:35:38]Write i2c OK [12:35:38]MH_I2C_Read... [12:35:38]Read from MH i2c: 01 [12:35:38]MH_I2C_Read... [12:35:38]Read from MH i2c: 01 07 00 [12:35:38]MH_I2C_Read... [12:35:38]Read from MH i2c: 01 07 00 61 1E 00 00 00 00 00 FE 0C 90 [12:35:38]RasterBufferAndPrint [12:35:38]line [12:35:38]line [12:35:38]line [12:35:38]line [12:35:38]line [12:35:38]written 0, free lines is 3332 [12:35:38]MH_Cut [12:35:38]Write to MH i2c: D1 01 00 68 1E 01 58 [12:35:38]Write i2c OK [12:35:38]MH_I2C_Read... [12:35:38]Read from MH i2c: D1 [12:35:38]MH_I2C_Read... [12:35:38]Read from MH i2c: D1 01 00 [12:35:38]MH_I2C_Read... [12:35:38]Read from MH i2c: D1 01 00 68 1E 00 57 [12:35:38]Write to MH i2c: 01 00 00 69 1E 87 [12:35:38]Write i2c OK [12:35:38]MH_I2C_Read... [12:35:39]OFD Sender: No OFD packet to send [12:35:39]*** Cut start [12:35:39]*** Partial cut [12:35:39]*** CUTSNS_PIN = 1 [12:35:39]*** CUTSNS_PIN = 0 [12:35:39]*** Brake cut motor [12:35:40]Read from MH i2c: 01 [12:35:40]MH_I2C_Read... [12:35:40]*** Stop cut motor [12:35:40]*** Cut end [12:35:40]Read from MH i2c: 01 07 00 [12:35:40]MH_I2C_Read... [12:35:40]Read from MH i2c: 01 07 00 69 1E 00 00 00 00 00 FF 0F 9C [12:35:40]process_action close_receipt done [12:35:40]requested_data is exist [12:35:40]produce_requested_data [12:35:40]requested_item fm.sn is exist - process it [12:35:40]wFMCommunicate request_size=4 [12:35:40]MH_SAM_APDU [12:35:40]CAPDU: 80 11 00 00 [12:35:40]Write to MH i2c: E2 08 00 6A 1E 80 11 00 00 00 00 00 00 02 [12:35:40]Write i2c OK [12:35:40]MH_I2C_Read... [12:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:40]Read from MH i2c: E2 [12:35:40]MH_I2C_Read... [12:35:40]Read from MH i2c: E2 17 00 [12:35:40]MH_I2C_Read... [12:35:40]Read from MH i2c: E2 17 00 6A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 55 [12:35: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:35:40]wFMCommunicate OK [12:35:40]requested_item fd.num is exist - process it [12:35:40]SAM_PROTO_GetFieldsCounters [12:35:40]wFMCommunicate request_size=4 [12:35:40]MH_SAM_APDU [12:35:40]CAPDU: 80 13 00 00 [12:35:40]Write to MH i2c: E2 08 00 6B 1E 80 13 00 00 00 00 00 00 05 [12:35:40]Write i2c OK [12:35:40]MH_I2C_Read... [12:35:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:40]Read from MH i2c: E2 [12:35:40]MH_I2C_Read... [12:35:40]Read from MH i2c: E2 62 00 [12:35:40]MH_I2C_Read... [12:35:40]Read from MH i2c: E2 62 00 6B 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 9B DA 02 00 0E 04 04 00 87 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 5A [12:35: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 DA 02 00 0E 04 04 00 87 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 [12:35:40]wFMCommunicate OK [12:35:40]SAM_PROTO_GetFieldsCounters done [12:35:40]requested_item shift.num is exist - process it [12:35:40]requested_item shift.opened is exist - process it [12:35:40]req_shift_opened [12:35:40]FM_GetShiftState [12:35:40]SAM_PROTO_GetShiftState [12:35:40]wFMCommunicate request_size=4 [12:35:40]MH_SAM_APDU [12:35:40]CAPDU: 80 13 01 00 [12:35:40]Write to MH i2c: E2 08 00 6C 1E 80 13 01 00 00 00 00 00 07 [12:35:40]Write i2c OK [12:35:40]MH_I2C_Read... [12:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:40]Read from MH i2c: E2 [12:35:40]MH_I2C_Read... [12:35:40]Read from MH i2c: E2 0E 00 [12:35:40]MH_I2C_Read... [12:35:40]Read from MH i2c: E2 0E 00 6C 1E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 86 [12:35:40]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:35:40]wFMCommunicate OK [12:35:40]SAM_PROTO_GetShiftState done [12:35:40]FM_GetShiftState done [12:35:40]req_shift_opened done [12:35:40]requested_item shift.open_date is exist - process it [12:35:40]req_shift_open_date [12:35:40]req_shift_open_date done [12:35:40]produce_requested_data done [12:35:40]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187035,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [12:35:40]process_action_free close_receipt [12:35:40]json_value_free [12:35:40]json_value_free done [12:35:40]process_json_proto returns [12:35:40]Send response to host [12:35:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187035,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [12:35:40]free response buf [12:35:40]execute_script done [12:35:40]execute_script returns [12:35:40]free content buf [12:35:40]Sock 7.Close socket [12:35:40]Sock 7.Thread stoped [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:56]accept exits with 9 [12:35:56]New connection [12:35:56]New thread 3066879332 created [12:35:56]Thread 3067022692 joined [12:35:56]Waiting for new connection... [12:35:56] Sock 9.Parse request [12:35:56]Sock 9.Check first char [12:35:56]Sock 9.First char is OK [12:35:56]request: POST /json_proto HTTP/1.0 [12:35:56]Method: POST [12:35:56]URL: /json_proto [12:35:56]Method is POST - this is cgi request [12:35:56]url: /json_proto [12:35:56]query_string will be loaded in cgi processing [12:35:56]execute_cgi json_proto POST (null) [12:35:56]execute_cgi path=json_proto method=POST [12:35:56]POST find Content-Length [12:35:56]Host: 172.17.46.131:8080 [12:35:56]Content-Length: 675 [12:35:56]Content-Type: application/json [12:35:56] [12:35:56]POST finish read [12:35:56]Found Content-Length = 675 [12:35:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412187", "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" : 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:35:56]execute_script... [12:35:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412187", "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" : 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:35:56]POST & json_proto [12:35:56]process_json_proto [12:35:56]json parsed OK: [12:35:56]protocol is kg_v1.0 [12:35:56]action value=close_receipt [12:35:56]process_action close_receipt [12:35:56]cmd_close_receipt [12:35:56]MH_GetDate [12:35:56]Write to MH i2c: F0 00 00 6D 1E 7A [12:35:56]Write i2c OK [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: F0 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: F0 09 00 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: F0 09 00 6D 1E 00 2F D0 B5 67 7E 41 4F 65 11 [12:35:56]GetLastDocTimeStamp 1739968539 [12:35:56]current date 1739968559 [12:35:56]FM_GetShiftState [12:35:56]SAM_PROTO_GetShiftState [12:35:56]wFMCommunicate request_size=4 [12:35:56]MH_SAM_APDU [12:35:56]CAPDU: 80 13 01 00 [12:35:56]Write to MH i2c: E2 08 00 6E 1E 80 13 01 00 00 00 00 00 09 [12:35:56]Write i2c OK [12:35:56]MH_I2C_Read... [12:35:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:56]Read from MH i2c: E2 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: E2 0E 00 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: E2 0E 00 6E 1E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 88 [12:35:56]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:35:56]wFMCommunicate OK [12:35:56]SAM_PROTO_GetShiftState done [12:35:56]FM_GetShiftState done [12:35:56]opened in 1739929631 [12:35:56]opened+sec_in_day 1740016031 [12:35:56]quantity*price = 80005 [12:35:56]sum+1 = 80006 [12:35: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 СНО: Общий режим Чек 102 19.02.2025 12:35 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187036 ФПД: 35110412042919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T123559&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187036&fm=35110412042919&tin=02508201610067®Number=0000000000091857&sum=80000 [12:35:57]StoreToDocumentArchive [12:35:57]shift 647 fd 187036 [12:35:57]save to /storage/0647/doc_00187036 [12:35:57]save last doc name /storage/0647/doc_00187036 to /storage/kkm_last_doc_name [12:35:57]save OK [12:35:57]Clear old archive folders... [12:35:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:35:57]tlvbuf is B6F66460 [12:35:57]SAM_PROTO_ClearQueue [12:35:57]wFMCommunicate request_size=4 [12:35:57]MH_SAM_APDU [12:35:57]CAPDU: 80 09 00 00 [12:35:57]Write to MH i2c: E2 08 00 7B 1E 80 09 00 00 00 00 00 00 0B [12:35:57]Write i2c OK [12:35:57]MH_I2C_Read... [12:35:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:57]Read from MH i2c: E2 [12:35:57]MH_I2C_Read... [12:35:57]Read from MH i2c: E2 03 00 [12:35:57]MH_I2C_Read... [12:35:57]Read from MH i2c: E2 03 00 7B 1E 00 90 00 0D [12:35:57]RAPDU: 90 00 [12:35:57]wFMCommunicate OK [12:35:57]SAM_PROTO_ClearQueue done [12:35:57]KKMCreateOFDPacket [12:35:57]OFDProtocolAddRootSTLVToBuf [12:35:57]FM_MakeSignedData [12:35:57]FM_MakeSignedData [12:35:57]SAM_PROTO_SignData [12:35:57]wFMCommunicate request_size=4 [12:35:57]MH_SAM_APDU [12:35:57]CAPDU: 80 0D 01 02 [12:35:57]Write to MH i2c: E2 08 00 7C 1E 80 0D 01 02 00 00 00 00 13 [12:35:57]Write i2c OK [12:35:57]MH_I2C_Read... [12:35:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:57]Read from MH i2c: E2 [12:35:57]MH_I2C_Read... [12:35:57]Read from MH i2c: E2 03 00 [12:35:57]MH_I2C_Read... [12:35:57]Read from MH i2c: E2 03 00 7C 1E 00 90 00 0E [12:35:57]RAPDU: 90 00 [12:35:57]wFMCommunicate OK [12:35:57]wFMCommunicate request_size=255 [12:35:57]MH_SAM_APDU [12:35: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 32 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 66 00 00 00 F4 03 04 00 2F D0 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 9C DA 02 00 35 04 06 00 1F EE C7 A3 [12:35:57]Write to MH i2c: E2 02 01 7D 1E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 66 00 00 00 F4 03 04 00 2F D0 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 9C DA 02 00 35 04 06 00 1F EE C7 A3 00 00 61 [12:35:57]Write i2c OK [12:35:57]MH_I2C_Read... [12:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:58]Read from MH i2c: E2 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: E2 03 00 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: E2 03 00 7D 1E 00 90 00 0F [12:35:58]RAPDU: 90 00 [12:35:58]wFMCommunicate OK [12:35:58]wFMCommunicate request_size=7 [12:35:58]MH_SAM_APDU [12:35:58]CAPDU: 80 0D 02 02 02 42 A7 [12:35:58]Write to MH i2c: E2 0A 00 7E 1E 80 0D 02 02 02 00 42 A7 00 00 03 [12:35:58]Write i2c OK [12:35:58]MH_I2C_Read... [12:35:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:58]Read from MH i2c: E2 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: E2 03 00 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: E2 03 00 7E 1E 00 90 00 10 [12:35:58]RAPDU: 90 00 [12:35:58]wFMCommunicate OK [12:35:58]wFMCommunicate request_size=4 [12:35:58]MH_SAM_APDU [12:35:58]CAPDU: 80 0D 03 02 [12:35:58]Write to MH i2c: E2 08 00 7F 1E 80 0D 03 02 00 00 00 00 18 [12:35:58]Write i2c OK [12:35:58]MH_I2C_Read... [12:35:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:58]Read from MH i2c: E2 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: E2 0B 00 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: E2 0B 00 7F 1E 00 2D CF 42 65 3F 97 40 A5 90 00 77 [12:35:58]RAPDU: 2D CF 42 65 3F 97 40 A5 90 00 [12:35:58]wFMCommunicate OK [12:35:58]SAM_PROTO_SignData done [12:35:58]FM_MakeSignedData done [12:35:58]CreateOFDProtocolMessage [12:35:58]wFMCommunicate request_size=4 [12:35:58]MH_SAM_APDU [12:35:58]CAPDU: 80 11 00 00 [12:35:58]Write to MH i2c: E2 08 00 80 1E 80 11 00 00 00 00 00 00 18 [12:35:58]Write i2c OK [12:35:58]MH_I2C_Read... [12:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:58]Read from MH i2c: E2 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: E2 17 00 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: E2 17 00 80 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6B [12:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:35:58]wFMCommunicate OK [12:35:58]CreateOFDProtocolMessage done [12:35:58]OFDSenderStorePacket 187036 [12:35:58]StoreOFDPacket docnum=187036 [12:35: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 0C 01 00 00 02 7E 04 01 59 E0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 66 00 00 00 F4 03 04 00 2F D0 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 9C DA 02 00 35 04 06 00 1F EE C7 A3 42 A7 2D CF 42 65 3F 97 40 A5 [12:35:58]CheckFolder [12:35:58]dirname=/storage/ofd_packets [12:35:58]CheckFolder done [12:35:58]ProducePacketName [12:35:58]name=ofd_packets/00187036 [12:35:58]NVStorageSaveData ofd_packets/00187036 [12:35:58]File name is /storage/ofd_packets/00187036 [12:35:58]Write 298 bytes [12:35:58]NVStorageSaveData done [12:35:58]OFDSenderStorePacket done [12:35:58]KKMCreateOFDPacket done [12:35:58]NVStorageSaveData kkm_last_timestamp [12:35:58]File name is /storage/kkm_last_timestamp [12:35:58]Write 4 bytes [12:35:58]NVStorageSaveData done [12:35:58]ExternCall_PrintAddStr [12:35:58]wPrintStart [12:35:58]Write to MH i2c: 01 00 00 81 1E 9F [12:35:58]Write i2c OK [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: 01 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: 01 07 00 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: 01 07 00 81 1E 00 00 00 00 00 FF 0F B4 [12:35:58]RasterBufferAndPrint [12:35:58]line Счет N : (1)412187 [12:35:58]line ИНН: 02508201610067 [12:35:58]line Контрольно-Кассовый Чек [12:35:58]line ПРОДАЖА [12:35:58]line ТРК (МРК, ГНК) : 11 [12:35:58]line Товар: 2710194210 [12:35:58]line ДТ-К-2 [12:35:58]line 11.020 * 72.60 [12:35:58]line = 800.05 [12:35:58]line НДС 12% НСП 1% [12:35:58]line > о реализуемом товаре [12:35:58]line ОКРУГЛЕНИЕ: -0.05 [12:35:58]line ИТОГО: 800.00 [12:35:58]line Внесено: 800.00 [12:35:58]line СДАЧА: 0.00 [12:35:58]line НСП 1% : 7.08 [12:35:58]line НДС 12% : 84.96 [12:35:58]line Наличными: 800.00 [12:35:58]line Безнал.: 0.00 [12:35:58]line Место: АЗС № 92 "Партнер Нефть" [12:35:58]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:35:58]line СНО: Общий режим [12:35:58]line Чек 102 19.02.2025 12:35 [12:35:58]line Смена: 647 ФФД: 1.0 [12:35:58]line ЗНМ: 0300000118 [12:35:58]line РНМ: 0000000000091857 [12:35:58]line Версия ККМ: 001 [12:35:58]line ФМ: 0000000000871826 [12:35:58]line ФД: 187036 [12:35:58]line ФПД: 35110412042919 [12:35:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T123559&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187036&fm=35110412042919&tin=02508201610067®Number=0000000000091857&sum=80000 [12:35:58]written 0, free lines is 4095 [12:35:58]OFD Sender: Processing packet 187036 [packets to send 49, broken 48] [12:35:58]ProducePacketName [12:35:58]name=ofd_packets/00187036 [12:35:58]OFD Sender: To server: pG, [12:35:58]CommunicateWithHost lk.salyk.kg:30040 [12:35:58]ConnectInit lk.salyk.kg [12:35:58]Connected sock=11 [12:35:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 02 7E 04 01 59 E0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 66 00 00 00 F4 03 04 00 2F D0 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 9C DA 02 00 35 04 06 00 1F EE C7 A3 42 A7 2D CF 42 65 3F 97 40 A5 [12:35:58]Write to MH i2c: 01 00 00 AC 1E CA [12:35:58]Write i2c OK [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: 01 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: 01 07 00 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: 01 07 00 AC 1E 00 00 00 00 00 ED 0C CA [12:35:58]RasterBufferAndPrint [12:35:58]line [12:35:58]line [12:35:58]line [12:35:58]line [12:35:58]line [12:35:58]written 0, free lines is 3315 [12:35:58]MH_Cut [12:35:58]Write to MH i2c: D1 01 00 B3 1E 01 A3 [12:35:58]Write i2c OK [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: D1 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: D1 01 00 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: D1 01 00 B3 1E 00 A2 [12:35:58]Write to MH i2c: 01 00 00 B4 1E D2 [12:35:58]Write i2c OK [12:35:58]MH_I2C_Read... [12:35: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 D2 80 47 00 FD 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9C DA 02 00 F4 03 04 00 83 76 B5 67 B6 04 01 00 00 C5 15 29 08 56 A8 E7 44 [12:35:58]CommunicateWithHost err = 0 [12:35:58]CheckOFDResponse [12:35:58]1017 (14) - 77093643461234 [12:35:58]1041 (16) - 0000000000871826 [12:35:58]1040 (4) - 187036 [12:35:58]1012 (4) - 19.02.2025 06:13 [12:35:58]1206 (1) - 0 [12:35:58]OFD Sender: Remove packet 187036 [12:35:58]ProducePacketName [12:35:58]name=ofd_packets/00187036 [12:35:58]NVStorageDeleteData [12:35:59]*** Cut start [12:35:59]*** Partial cut [12:35:59]*** CUTSNS_PIN = 1 [12:35:59]OFD Sender: No OFD packet to send [12:35:59]*** CUTSNS_PIN = 0 [12:35:59]*** Brake cut motor [12:36:00]Read from MH i2c: 01 [12:36:00]MH_I2C_Read... [12:36:00]*** Stop cut motor [12:36:00]*** Cut end [12:36:00]Read from MH i2c: 01 07 00 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: 01 07 00 B4 1E 00 00 00 00 00 FF 0F E7 [12:36:00]process_action close_receipt done [12:36:00]requested_data is exist [12:36:00]produce_requested_data [12:36:00]requested_item fm.sn is exist - process it [12:36:00]wFMCommunicate request_size=4 [12:36:00]MH_SAM_APDU [12:36:00]CAPDU: 80 11 00 00 [12:36:00]Write to MH i2c: E2 08 00 B5 1E 80 11 00 00 00 00 00 00 4D [12:36:00]Write i2c OK [12:36:00]MH_I2C_Read... [12:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:00]Read from MH i2c: E2 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 17 00 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 17 00 B5 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A0 [12:36: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:36:00]wFMCommunicate OK [12:36:00]requested_item fd.num is exist - process it [12:36:00]SAM_PROTO_GetFieldsCounters [12:36:00]wFMCommunicate request_size=4 [12:36:00]MH_SAM_APDU [12:36:00]CAPDU: 80 13 00 00 [12:36:00]Write to MH i2c: E2 08 00 B6 1E 80 13 00 00 00 00 00 00 50 [12:36:00]Write i2c OK [12:36:00]MH_I2C_Read... [12:36:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:00]Read from MH i2c: E2 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 62 00 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 62 00 B6 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 9C DA 02 00 0E 04 04 00 87 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 A9 [12:36: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 9C DA 02 00 0E 04 04 00 87 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 [12:36:00]wFMCommunicate OK [12:36:00]SAM_PROTO_GetFieldsCounters done [12:36:00]requested_item shift.num is exist - process it [12:36:00]requested_item shift.opened is exist - process it [12:36:00]req_shift_opened [12:36:00]FM_GetShiftState [12:36:00]SAM_PROTO_GetShiftState [12:36:00]wFMCommunicate request_size=4 [12:36:00]MH_SAM_APDU [12:36:00]CAPDU: 80 13 01 00 [12:36:00]Write to MH i2c: E2 08 00 B7 1E 80 13 01 00 00 00 00 00 52 [12:36:00]Write i2c OK [12:36:00]MH_I2C_Read... [12:36:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:00]Read from MH i2c: E2 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 0E 00 [12:36:00]MH_I2C_Read... [12:36:00]Read from MH i2c: E2 0E 00 B7 1E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D1 [12:36:00]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:36:00]wFMCommunicate OK [12:36:00]SAM_PROTO_GetShiftState done [12:36:00]FM_GetShiftState done [12:36:00]req_shift_opened done [12:36:00]requested_item shift.open_date is exist - process it [12:36:00]req_shift_open_date [12:36:00]req_shift_open_date done [12:36:00]produce_requested_data done [12:36:00]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187036,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [12:36:00]process_action_free close_receipt [12:36:00]json_value_free [12:36:00]json_value_free done [12:36:00]process_json_proto returns [12:36:00]Send response to host [12:36:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187036,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [12:36:00]free response buf [12:36:00]execute_script done [12:36:00]execute_script returns [12:36:00]free content buf [12:36:00]Sock 9.Close socket [12:36:00]Sock 9.Thread stoped [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:14]accept exits with 7 [12:38:14]New connection [12:38:14]New thread 3067022692 created [12:38:14]Thread 3066879332 joined [12:38:14]Waiting for new connection... [12:38:14] Sock 7.Parse request [12:38:14]Sock 7.Check first char [12:38:14]Sock 7.First char is OK [12:38:14]request: POST /json_proto HTTP/1.0 [12:38:14]Method: POST [12:38:14]URL: /json_proto [12:38:14]Method is POST - this is cgi request [12:38:14]url: /json_proto [12:38:14]query_string will be loaded in cgi processing [12:38:14]execute_cgi json_proto POST (null) [12:38:14]execute_cgi path=json_proto method=POST [12:38:14]POST find Content-Length [12:38:14]Host: 172.17.46.131:8080 [12:38:14]Content-Length: 801 [12:38:14]Content-Type: application/json [12:38:14] [12:38:14]POST finish read [12:38:14]Found Content-Length = 801 [12:38:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412188", "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.000, "sum" : 642.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 642.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:14]execute_script... [12:38: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)412188", "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.000, "sum" : 642.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 642.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:14]POST & json_proto [12:38:14]process_json_proto [12:38:14]json parsed OK: [12:38:14]protocol is kg_v1.0 [12:38:14]action value=close_receipt [12:38:14]process_action close_receipt [12:38:14]cmd_close_receipt [12:38:14]MH_GetDate [12:38:14]Write to MH i2c: F0 00 00 B8 1E C5 [12:38:14]Write i2c OK [12:38:14]MH_I2C_Read... [12:38:14]Read from MH i2c: F0 [12:38:14]MH_I2C_Read... [12:38:14]Read from MH i2c: F0 09 00 [12:38:14]MH_I2C_Read... [12:38:14]Read from MH i2c: F0 09 00 B8 1E 00 B9 D0 B5 67 7E 41 4F 65 E6 [12:38:14]GetLastDocTimeStamp 1739968559 [12:38:14]current date 1739968697 [12:38:14]FM_GetShiftState [12:38:14]SAM_PROTO_GetShiftState [12:38:14]wFMCommunicate request_size=4 [12:38:14]MH_SAM_APDU [12:38:14]CAPDU: 80 13 01 00 [12:38:14]Write to MH i2c: E2 08 00 B9 1E 80 13 01 00 00 00 00 00 54 [12:38:14]Write i2c OK [12:38:14]MH_I2C_Read... [12:38:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:14]Read from MH i2c: E2 [12:38:14]MH_I2C_Read... [12:38:14]Read from MH i2c: E2 0E 00 [12:38:14]MH_I2C_Read... [12:38:14]Read from MH i2c: E2 0E 00 B9 1E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D3 [12:38:14]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:38:14]wFMCommunicate OK [12:38:14]SAM_PROTO_GetShiftState done [12:38:14]FM_GetShiftState done [12:38:14]opened in 1739929631 [12:38:14]opened+sec_in_day 1740016031 [12:38:14]quantity*price = 64200 [12:38:14]sum+1 = 64201 [12:38:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 642.00 НСП 1% : 5.68 НДС 12% : 68.18 Наличными: 0.00 Безнал.: 642.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 103 19.02.2025 12:38 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187037 ФПД: 10542717403182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T123817&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187037&fm=10542717403182&tin=02508201610067®Number=0000000000091857&sum=64200 [12:38:15]StoreToDocumentArchive [12:38:15]shift 647 fd 187037 [12:38:15]save to /storage/0647/doc_00187037 [12:38:15]save last doc name /storage/0647/doc_00187037 to /storage/kkm_last_doc_name [12:38:15]save OK [12:38:15]Clear old archive folders... [12:38:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:15]tlvbuf is 00641FA0 [12:38:15]SAM_PROTO_ClearQueue [12:38:15]wFMCommunicate request_size=4 [12:38:15]MH_SAM_APDU [12:38:15]CAPDU: 80 09 00 00 [12:38:15]Write to MH i2c: E2 08 00 C6 1E 80 09 00 00 00 00 00 00 56 [12:38:15]Write i2c OK [12:38:15]MH_I2C_Read... [12:38:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:15]Read from MH i2c: E2 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 03 00 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 03 00 C6 1E 00 90 00 58 [12:38:15]RAPDU: 90 00 [12:38:15]wFMCommunicate OK [12:38:15]SAM_PROTO_ClearQueue done [12:38:15]KKMCreateOFDPacket [12:38:15]OFDProtocolAddRootSTLVToBuf [12:38:15]FM_MakeSignedData [12:38:15]FM_MakeSignedData [12:38:15]SAM_PROTO_SignData [12:38:15]wFMCommunicate request_size=4 [12:38:15]MH_SAM_APDU [12:38:15]CAPDU: 80 0D 01 02 [12:38:15]Write to MH i2c: E2 08 00 C7 1E 80 0D 01 02 00 00 00 00 5E [12:38:15]Write i2c OK [12:38:15]MH_I2C_Read... [12:38:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:15]Read from MH i2c: E2 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 03 00 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 03 00 C7 1E 00 90 00 59 [12:38:15]RAPDU: 90 00 [12:38:15]wFMCommunicate OK [12:38:15]wFMCommunicate request_size=255 [12:38:15]MH_SAM_APDU [12:38: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 10 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 C8 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 FA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B9 D0 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 9D DA 02 00 35 04 06 00 09 [12:38:15]Write to MH i2c: E2 02 01 C8 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 10 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 C8 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 FA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B9 D0 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 9D DA 02 00 35 04 06 00 09 00 00 21 [12:38:15]Write i2c OK [12:38:15]MH_I2C_Read... [12:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:15]Read from MH i2c: E2 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 03 00 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 03 00 C8 1E 00 90 00 5A [12:38:15]RAPDU: 90 00 [12:38:15]wFMCommunicate OK [12:38:15]wFMCommunicate request_size=10 [12:38:15]MH_SAM_APDU [12:38:15]CAPDU: 80 0D 02 02 05 96 AA ED 00 2E [12:38:15]Write to MH i2c: E2 0D 00 C9 1E 80 0D 02 02 05 00 96 AA ED 00 2E 00 00 C6 [12:38:15]Write i2c OK [12:38:15]MH_I2C_Read... [12:38:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:15]Read from MH i2c: E2 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 03 00 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 03 00 C9 1E 00 90 00 5B [12:38:15]RAPDU: 90 00 [12:38:15]wFMCommunicate OK [12:38:15]wFMCommunicate request_size=4 [12:38:15]MH_SAM_APDU [12:38:15]CAPDU: 80 0D 03 02 [12:38:15]Write to MH i2c: E2 08 00 CA 1E 80 0D 03 02 00 00 00 00 63 [12:38:15]Write i2c OK [12:38:15]MH_I2C_Read... [12:38:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:15]Read from MH i2c: E2 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 0B 00 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 0B 00 CA 1E 00 4C AC 07 F6 D8 6C AA E5 90 00 2C [12:38:15]RAPDU: 4C AC 07 F6 D8 6C AA E5 90 00 [12:38:15]wFMCommunicate OK [12:38:15]SAM_PROTO_SignData done [12:38:15]FM_MakeSignedData done [12:38:15]CreateOFDProtocolMessage [12:38:15]wFMCommunicate request_size=4 [12:38:15]MH_SAM_APDU [12:38:15]CAPDU: 80 11 00 00 [12:38:15]Write to MH i2c: E2 08 00 CB 1E 80 11 00 00 00 00 00 00 63 [12:38:15]Write i2c OK [12:38:15]MH_I2C_Read... [12:38:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:15]Read from MH i2c: E2 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 17 00 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: E2 17 00 CB 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B6 [12:38:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:38:15]wFMCommunicate OK [12:38:15]CreateOFDProtocolMessage done [12:38:15]OFDSenderStorePacket 187037 [12:38:15]StoreOFDPacket docnum=187037 [12:38: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 42 A4 07 01 32 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 C8 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 FA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B9 D0 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 9D DA 02 00 35 04 06 00 09 96 AA ED 00 2E 4C AC 07 F6 D8 6C AA E5 [12:38:15]CheckFolder [12:38:15]dirname=/storage/ofd_packets [12:38:15]CheckFolder done [12:38:15]ProducePacketName [12:38:15]name=ofd_packets/00187037 [12:38:15]NVStorageSaveData ofd_packets/00187037 [12:38:15]File name is /storage/ofd_packets/00187037 [12:38:15]Write 301 bytes [12:38:15]NVStorageSaveData done [12:38:15]OFDSenderStorePacket done [12:38:15]KKMCreateOFDPacket done [12:38:15]NVStorageSaveData kkm_last_timestamp [12:38:15]File name is /storage/kkm_last_timestamp [12:38:15]Write 4 bytes [12:38:15]NVStorageSaveData done [12:38:15]ExternCall_PrintAddStr [12:38:15]wPrintStart [12:38:15]Write to MH i2c: 01 00 00 CC 1E EA [12:38:15]OFD Sender: Processing packet 187037 [packets to send 49, broken 48] [12:38:15]ProducePacketName [12:38:15]name=ofd_packets/00187037 [12:38:15]OFD Sender: To server: pG, [12:38:15]CommunicateWithHost lk.salyk.kg:30040 [12:38:15]ConnectInit lk.salyk.kg [12:38:15]Write i2c OK [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: 01 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: 01 07 00 [12:38:15]MH_I2C_Read... [12:38:15]Read from MH i2c: 01 07 00 CC 1E 00 00 00 00 00 FF 0F FF [12:38:15]RasterBufferAndPrint [12:38:15]line Счет N : (1)412188 [12:38:15]line ИНН: 02508201610067 [12:38:15]line Контрольно-Кассовый Чек [12:38:15]line ПРОДАЖА [12:38:15]line ТРК (МРК, ГНК) : 22 [12:38:15]line Товар: 2710124130 [12:38:15]line Аи-92-К-2 [12:38:15]line 10.000 * 64.20 [12:38:15]line = 642.00 [12:38:15]line НДС 12% НСП 1% [12:38:15]line > о реализуемом товаре [12:38:15]line ИТОГО: 642.00 [12:38:15]line НСП 1% : 5.68 [12:38:15]line НДС 12% : 68.18 [12:38:15]line Наличными: 0.00 [12:38:15]line Безнал.: 642.00 [12:38:15]line Место: АЗС № 92 "Партнер Нефть" [12:38:15]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:38:15]line СНО: Общий режим [12:38:15]line Чек 103 19.02.2025 12:38 [12:38:15]line Смена: 647 ФФД: 1.0 [12:38:15]line ЗНМ: 0300000118 [12:38:15]line РНМ: 0000000000091857 [12:38:15]line Версия ККМ: 001 [12:38:15]line Платежная система: O! деньги [12:38:15]line ФМ: 0000000000871826 [12:38:15]line ФД: 187037 [12:38:15]line ФПД: 10542717403182 [12:38:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T123817&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187037&fm=10542717403182&tin=02508201610067®Number=0000000000091857&sum=64200 [12:38:16]Connected sock=10 [12:38: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 42 A4 07 01 32 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 C8 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 FA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B9 D0 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 9D DA 02 00 35 04 06 00 09 96 AA ED 00 2E 4C AC 07 F6 D8 6C AA E5 [12:38:16]written 0, free lines is 4095 [12:38: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 B5 C6 47 00 55 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 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 DA 02 00 F4 03 04 00 0D 77 B5 67 B6 04 01 00 00 45 DC E3 93 7F B5 AA A2 [12:38:16]CommunicateWithHost err = 0 [12:38:16]CheckOFDResponse [12:38:16]1017 (14) - 77093643461234 [12:38:16]1041 (16) - 0000000000871826 [12:38:16]1040 (4) - 187037 [12:38:16]1012 (4) - 19.02.2025 06:15 [12:38:16]1206 (1) - 0 [12:38:16]OFD Sender: Remove packet 187037 [12:38:16]ProducePacketName [12:38:16]name=ofd_packets/00187037 [12:38:16]NVStorageDeleteData [12:38:16]Write to MH i2c: 01 00 00 F6 1E 14 [12:38:16]Write i2c OK [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: 01 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: 01 07 00 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: 01 07 00 F6 1E 00 00 00 00 00 02 0D 2A [12:38:16]RasterBufferAndPrint [12:38:16]line [12:38:16]line [12:38:16]line [12:38:16]line [12:38:16]line [12:38:16]written 0, free lines is 3339 [12:38:16]MH_Cut [12:38:16]Write to MH i2c: D1 01 00 FD 1E 01 ED [12:38:16]Write i2c OK [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: D1 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: D1 01 00 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: D1 01 00 FD 1E 00 EC [12:38:16]Write to MH i2c: 01 00 00 FE 1E 1C [12:38:16]Write i2c OK [12:38:16]MH_I2C_Read... [12:38:16]OFD Sender: No OFD packet to send [12:38:17]*** Cut start [12:38:17]*** Partial cut [12:38:17]*** CUTSNS_PIN = 1 [12:38:17]*** CUTSNS_PIN = 0 [12:38:17]*** Brake cut motor [12:38:17]Read from MH i2c: 01 [12:38:17]MH_I2C_Read... [12:38:17]*** Stop cut motor [12:38:17]*** Cut end [12:38:17]Read from MH i2c: 01 07 00 [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: 01 07 00 FE 1E 00 00 00 00 00 FF 0F 31 [12:38:17]process_action close_receipt done [12:38:17]requested_data is exist [12:38:17]produce_requested_data [12:38:17]requested_item fm.sn is exist - process it [12:38:17]wFMCommunicate request_size=4 [12:38:17]MH_SAM_APDU [12:38:17]CAPDU: 80 11 00 00 [12:38:17]Write to MH i2c: E2 08 00 FF 1E 80 11 00 00 00 00 00 00 97 [12:38:18]Write i2c OK [12:38:18]MH_I2C_Read... [12:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:18]Read from MH i2c: E2 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: E2 17 00 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: E2 17 00 FF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EA [12:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:38:18]wFMCommunicate OK [12:38:18]requested_item fd.num is exist - process it [12:38:18]SAM_PROTO_GetFieldsCounters [12:38:18]wFMCommunicate request_size=4 [12:38:18]MH_SAM_APDU [12:38:18]CAPDU: 80 13 00 00 [12:38:18]Write to MH i2c: E2 08 00 00 1F 80 13 00 00 00 00 00 00 9B [12:38:18]Write i2c OK [12:38:18]MH_I2C_Read... [12:38:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:18]Read from MH i2c: E2 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: E2 62 00 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: E2 62 00 00 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 9D DA 02 00 0E 04 04 00 87 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 F8 [12:38: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 9D DA 02 00 0E 04 04 00 87 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 [12:38:18]wFMCommunicate OK [12:38:18]SAM_PROTO_GetFieldsCounters done [12:38:18]requested_item shift.num is exist - process it [12:38:18]requested_item shift.opened is exist - process it [12:38:18]req_shift_opened [12:38:18]FM_GetShiftState [12:38:18]SAM_PROTO_GetShiftState [12:38:18]wFMCommunicate request_size=4 [12:38:18]MH_SAM_APDU [12:38:18]CAPDU: 80 13 01 00 [12:38:18]Write to MH i2c: E2 08 00 01 1F 80 13 01 00 00 00 00 00 9D [12:38:18]Write i2c OK [12:38:18]MH_I2C_Read... [12:38:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:18]Read from MH i2c: E2 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: E2 0E 00 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: E2 0E 00 01 1F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 1C [12:38:18]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:38:18]wFMCommunicate OK [12:38:18]SAM_PROTO_GetShiftState done [12:38:18]FM_GetShiftState done [12:38:18]req_shift_opened done [12:38:18]requested_item shift.open_date is exist - process it [12:38:18]req_shift_open_date [12:38:18]req_shift_open_date done [12:38:18]produce_requested_data done [12:38:18]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187037,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [12:38:18]process_action_free close_receipt [12:38:18]json_value_free [12:38:18]json_value_free done [12:38:18]process_json_proto returns [12:38:18]Send response to host [12:38:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187037,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [12:38:18]free response buf [12:38:18]execute_script done [12:38:18]execute_script returns [12:38:18]free content buf [12:38:18]Sock 7.Close socket [12:38:18]Sock 7.Thread stoped [12:38:21]OFD Sender: No OFD packet to send [12:38:26]OFD Sender: No OFD packet to send [12:38:31]OFD Sender: No OFD packet to send [12:38:36]OFD Sender: No OFD packet to send [12:38:41]OFD Sender: No OFD packet to send [12:38:46]OFD Sender: No OFD packet to send [12:38:51]OFD Sender: No OFD packet to send [12:38:56]OFD Sender: No OFD packet to send [12:39:01]OFD Sender: No OFD packet to send [12:39:06]OFD Sender: No OFD packet to send [12:39:11]OFD Sender: No OFD packet to send [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]OFD Sender: No OFD packet to send [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:23]accept exits with 9 [12:40:23]New connection [12:40:23]New thread 3066879332 created [12:40:23]Thread 3067022692 joined [12:40:23]Waiting for new connection... [12:40:23] Sock 9.Parse request [12:40:23]Sock 9.Check first char [12:40:23]Sock 9.First char is OK [12:40:23]request: POST /json_proto HTTP/1.0 [12:40:23]Method: POST [12:40:23]URL: /json_proto [12:40:23]Method is POST - this is cgi request [12:40:23]url: /json_proto [12:40:23]query_string will be loaded in cgi processing [12:40:23]execute_cgi json_proto POST (null) [12:40:23]execute_cgi path=json_proto method=POST [12:40:23]POST find Content-Length [12:40:23]Host: 172.17.46.131:8080 [12:40:23]Content-Length: 754 [12:40:23]Content-Type: application/json [12:40:23] [12:40:23]POST finish read [12:40:23]Found Content-Length = 754 [12:40:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412189", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30107306", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:23]execute_script... [12:40:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412189", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30107306", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:23]POST & json_proto [12:40:23]process_json_proto [12:40:23]json parsed OK: [12:40:23]protocol is kg_v1.0 [12:40:23]action value=close_receipt [12:40:23]process_action close_receipt [12:40:23]cmd_close_receipt [12:40:23]MH_GetDate [12:40:23]Write to MH i2c: F0 00 00 02 1F 10 [12:40:23]Write i2c OK [12:40:23]MH_I2C_Read... [12:40:23]Read from MH i2c: F0 [12:40:23]MH_I2C_Read... [12:40:23]Read from MH i2c: F0 09 00 [12:40:23]MH_I2C_Read... [12:40:23]Read from MH i2c: F0 09 00 02 1F 00 3A D1 B5 67 7E 41 4F 65 B3 [12:40:23]GetLastDocTimeStamp 1739968697 [12:40:23]current date 1739968826 [12:40:23]FM_GetShiftState [12:40:23]SAM_PROTO_GetShiftState [12:40:23]wFMCommunicate request_size=4 [12:40:23]MH_SAM_APDU [12:40:23]CAPDU: 80 13 01 00 [12:40:23]Write to MH i2c: E2 08 00 03 1F 80 13 01 00 00 00 00 00 9F [12:40:23]Write i2c OK [12:40:23]MH_I2C_Read... [12:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:23]Read from MH i2c: E2 [12:40:23]MH_I2C_Read... [12:40:23]Read from MH i2c: E2 0E 00 [12:40:23]MH_I2C_Read... [12:40:23]Read from MH i2c: E2 0E 00 03 1F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 1E [12:40:23]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:40:23]wFMCommunicate OK [12:40:23]SAM_PROTO_GetShiftState done [12:40:23]FM_GetShiftState done [12:40:23]opened in 1739929631 [12:40:23]opened+sec_in_day 1740016031 [12:40:23]quantity*price = 0 [12:40:23]sum+1 = 1 [12:40: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 СНО: Общий режим Чек 104 19.02.2025 12:40 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30107306 ФМ: 0000000000871826 ФД: 187038 ФПД: 67410177463105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T124026&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187038&fm=67410177463105&tin=02508201610067®Number=0000000000091857&sum=0 [12:40:24]StoreToDocumentArchive [12:40:24]shift 647 fd 187038 [12:40:24]save to /storage/0647/doc_00187038 [12:40:24]save last doc name /storage/0647/doc_00187038 to /storage/kkm_last_doc_name [12:40:24]save OK [12:40:24]Clear old archive folders... [12:40:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:24]tlvbuf is 00641C70 [12:40:24]SAM_PROTO_ClearQueue [12:40:24]wFMCommunicate request_size=4 [12:40:24]MH_SAM_APDU [12:40:24]CAPDU: 80 09 00 00 [12:40:24]Write to MH i2c: E2 08 00 10 1F 80 09 00 00 00 00 00 00 A1 [12:40:24]Write i2c OK [12:40:24]MH_I2C_Read... [12:40:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:24]Read from MH i2c: E2 [12:40:24]MH_I2C_Read... [12:40:24]Read from MH i2c: E2 03 00 [12:40:24]MH_I2C_Read... [12:40:24]Read from MH i2c: E2 03 00 10 1F 00 90 00 A3 [12:40:24]RAPDU: 90 00 [12:40:24]wFMCommunicate OK [12:40:24]SAM_PROTO_ClearQueue done [12:40:24]KKMCreateOFDPacket [12:40:24]OFDProtocolAddRootSTLVToBuf [12:40:24]FM_MakeSignedData [12:40:24]FM_MakeSignedData [12:40:24]SAM_PROTO_SignData [12:40:24]wFMCommunicate request_size=4 [12:40:24]MH_SAM_APDU [12:40:24]CAPDU: 80 0D 01 02 [12:40:24]Write to MH i2c: E2 08 00 11 1F 80 0D 01 02 00 00 00 00 A9 [12:40:24]Write i2c OK [12:40:24]MH_I2C_Read... [12:40:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:24]Read from MH i2c: E2 [12:40:24]MH_I2C_Read... [12:40:24]Read from MH i2c: E2 03 00 [12:40:24]MH_I2C_Read... [12:40:24]Read from MH i2c: E2 03 00 11 1F 00 90 00 A4 [12:40:24]RAPDU: 90 00 [12:40:24]wFMCommunicate OK [12:40:24]wFMCommunicate request_size=255 [12:40:24]MH_SAM_APDU [12:40:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 68 00 00 00 F4 03 04 00 3A D1 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 9E DA 02 00 35 04 06 00 3D [12:40:24]Write to MH i2c: E2 02 01 12 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 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 68 00 00 00 F4 03 04 00 3A D1 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 9E DA 02 00 35 04 06 00 3D 00 00 F2 [12:40:24]Write i2c OK [12:40:24]MH_I2C_Read... [12:40:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:24]Read from MH i2c: E2 [12:40:24]MH_I2C_Read... [12:40:24]Read from MH i2c: E2 03 00 [12:40:24]MH_I2C_Read... [12:40:24]Read from MH i2c: E2 03 00 12 1F 00 90 00 A5 [12:40:24]RAPDU: 90 00 [12:40:24]wFMCommunicate OK [12:40:24]wFMCommunicate request_size=10 [12:40:24]MH_SAM_APDU [12:40:24]CAPDU: 80 0D 02 02 05 4F 27 AE 93 41 [12:40:24]Write to MH i2c: E2 0D 00 13 1F 80 0D 02 02 05 00 4F 27 AE 93 41 00 00 AE [12:40:24]Write i2c OK [12:40:24]MH_I2C_Read... [12:40:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:25]Read from MH i2c: E2 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: E2 03 00 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: E2 03 00 13 1F 00 90 00 A6 [12:40:25]RAPDU: 90 00 [12:40:25]wFMCommunicate OK [12:40:25]wFMCommunicate request_size=4 [12:40:25]MH_SAM_APDU [12:40:25]CAPDU: 80 0D 03 02 [12:40:25]Write to MH i2c: E2 08 00 14 1F 80 0D 03 02 00 00 00 00 AE [12:40:25]Write i2c OK [12:40:25]MH_I2C_Read... [12:40:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:25]Read from MH i2c: E2 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: E2 0B 00 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: E2 0B 00 14 1F 00 7E B8 B3 60 F3 48 3E 79 90 00 EA [12:40:25]RAPDU: 7E B8 B3 60 F3 48 3E 79 90 00 [12:40:25]wFMCommunicate OK [12:40:25]SAM_PROTO_SignData done [12:40:25]FM_MakeSignedData done [12:40:25]CreateOFDProtocolMessage [12:40:25]wFMCommunicate request_size=4 [12:40:25]MH_SAM_APDU [12:40:25]CAPDU: 80 11 00 00 [12:40:25]Write to MH i2c: E2 08 00 15 1F 80 11 00 00 00 00 00 00 AE [12:40:25]Write i2c OK [12:40:25]MH_I2C_Read... [12:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:25]Read from MH i2c: E2 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: E2 17 00 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: E2 17 00 15 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 01 [12:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:40:25]wFMCommunicate OK [12:40:25]CreateOFDProtocolMessage done [12:40:25]OFDSenderStorePacket 187038 [12:40:25]StoreOFDPacket docnum=187038 [12:40: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 20 11 07 01 5C 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 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 68 00 00 00 F4 03 04 00 3A D1 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 9E DA 02 00 35 04 06 00 3D 4F 27 AE 93 41 7E B8 B3 60 F3 48 3E 79 [12:40:25]CheckFolder [12:40:25]dirname=/storage/ofd_packets [12:40:25]CheckFolder done [12:40:25]ProducePacketName [12:40:25]name=ofd_packets/00187038 [12:40:25]NVStorageSaveData ofd_packets/00187038 [12:40:25]File name is /storage/ofd_packets/00187038 [12:40:25]Write 301 bytes [12:40:25]NVStorageSaveData done [12:40:25]OFDSenderStorePacket done [12:40:25]KKMCreateOFDPacket done [12:40:25]NVStorageSaveData kkm_last_timestamp [12:40:25]File name is /storage/kkm_last_timestamp [12:40:25]Write 4 bytes [12:40:25]NVStorageSaveData done [12:40:25]ExternCall_PrintAddStr [12:40:25]wPrintStart [12:40:25]Write to MH i2c: 01 00 00 16 1F 35 [12:40:25]Write i2c OK [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: 01 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: 01 07 00 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: 01 07 00 16 1F 00 00 00 00 00 FF 0F 4A [12:40:25]RasterBufferAndPrint [12:40:25]line Счет N : (1)412189 [12:40:25]line ИНН: 02508201610067 [12:40:25]line Контрольно-Кассовый Чек [12:40:25]line ПРОДАЖА [12:40:25]line ТРК (МРК, ГНК) : 32 [12:40:25]line Товар: 2710124130 [12:40:25]line Аи-92-К-2 [12:40:25]line 20.000 * 0.00 [12:40:25]line = 0.00 [12:40:25]line НДС 12% НСП 1% [12:40:25]line > о реализуемом товаре [12:40:25]line ИТОГО: 0.00 [12:40:25]line НСП 1% : 0.00 [12:40:25]line НДС 12% : 0.00 [12:40:25]line Наличными: 0.00 [12:40:25]line Безнал.: 0.00 [12:40:25]line Место: АЗС № 92 "Партнер Нефть" [12:40:25]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:40:25]line СНО: Общий режим [12:40:25]line Чек 104 19.02.2025 12:40 [12:40:25]line Смена: 647 ФФД: 1.0 [12:40:25]line ЗНМ: 0300000118 [12:40:25]line РНМ: 0000000000091857 [12:40:25]line Версия ККМ: 001 [12:40:25]line Талоны: ТК ГПНА Online [12:40:25]line 30107306 [12:40:25]line ФМ: 0000000000871826 [12:40:25]line ФД: 187038 [12:40:25]line ФПД: 67410177463105 [12:40:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T124026&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187038&fm=67410177463105&tin=02508201610067®Number=0000000000091857&sum=0 [12:40:25]written 0, free lines is 4095 [12:40:25]OFD Sender: Processing packet 187038 [packets to send 49, broken 48] [12:40:25]ProducePacketName [12:40:25]name=ofd_packets/00187038 [12:40:25]OFD Sender: To server: pG, [12:40:25]CommunicateWithHost lk.salyk.kg:30040 [12:40:25]ConnectInit lk.salyk.kg [12:40:25]Write to MH i2c: 01 00 00 40 1F 5F [12:40:25]Write i2c OK [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: 01 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: 01 07 00 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: 01 07 00 40 1F 00 00 00 00 00 F7 0C 69 [12:40:25]RasterBufferAndPrint [12:40:25]line [12:40:25]line [12:40:25]line [12:40:25]line [12:40:25]line [12:40:25]written 0, free lines is 3325 [12:40:25]MH_Cut [12:40:25]Write to MH i2c: D1 01 00 47 1F 01 38 [12:40:25]Write i2c OK [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: D1 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: D1 01 00 [12:40:25]MH_I2C_Read... [12:40:25]Read from MH i2c: D1 01 00 47 1F 00 37 [12:40:25]Write to MH i2c: 01 00 00 48 1F 67 [12:40:25]Write i2c OK [12:40:25]MH_I2C_Read... [12:40:25]Connected sock=10 [12:40:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 20 11 07 01 5C 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 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 68 00 00 00 F4 03 04 00 3A D1 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 9E DA 02 00 35 04 06 00 3D 4F 27 AE 93 41 7E B8 B3 60 F3 48 3E 79 [12:40:25]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 1A 47 00 97 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 9E DA 02 00 F4 03 04 00 8E 77 B5 67 B6 04 01 00 00 CD 72 BB 9C F3 E3 DE DF [12:40:25]CommunicateWithHost err = 0 [12:40:25]CheckOFDResponse [12:40:25]1017 (14) - 77093643461234 [12:40:25]1041 (16) - 0000000000871826 [12:40:25]1040 (4) - 187038 [12:40:25]1012 (4) - 19.02.2025 06:17 [12:40:25]1206 (1) - 0 [12:40:25]OFD Sender: Remove packet 187038 [12:40:25]ProducePacketName [12:40:25]name=ofd_packets/00187038 [12:40:25]NVStorageDeleteData [12:40:26]*** Cut start [12:40:26]*** Partial cut [12:40:26]*** CUTSNS_PIN = 1 [12:40:26]*** CUTSNS_PIN = 0 [12:40:26]OFD Sender: No OFD packet to send [12:40:26]*** Brake cut motor [12:40:26]Read from MH i2c: 01 [12:40:26]MH_I2C_Read... [12:40:26]*** Stop cut motor [12:40:26]*** Cut end [12:40:26]Read from MH i2c: 01 07 00 [12:40:26]MH_I2C_Read... [12:40:26]Read from MH i2c: 01 07 00 48 1F 00 00 00 00 00 FF 0F 7C [12:40:26]process_action close_receipt done [12:40:26]requested_data is exist [12:40:26]produce_requested_data [12:40:26]requested_item fm.sn is exist - process it [12:40:26]wFMCommunicate request_size=4 [12:40:26]MH_SAM_APDU [12:40:26]CAPDU: 80 11 00 00 [12:40:26]Write to MH i2c: E2 08 00 49 1F 80 11 00 00 00 00 00 00 E2 [12:40:26]Write i2c OK [12:40:26]MH_I2C_Read... [12:40:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:26]Read from MH i2c: E2 [12:40:26]MH_I2C_Read... [12:40:26]Read from MH i2c: E2 17 00 [12:40:26]MH_I2C_Read... [12:40:26]Read from MH i2c: E2 17 00 49 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 35 [12: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 [12:40:26]wFMCommunicate OK [12:40:26]requested_item fd.num is exist - process it [12:40:26]SAM_PROTO_GetFieldsCounters [12:40:26]wFMCommunicate request_size=4 [12:40:26]MH_SAM_APDU [12:40:26]CAPDU: 80 13 00 00 [12:40:26]Write to MH i2c: E2 08 00 4A 1F 80 13 00 00 00 00 00 00 E5 [12:40:26]Write i2c OK [12:40:26]MH_I2C_Read... [12:40:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:27]Read from MH i2c: E2 [12:40:27]MH_I2C_Read... [12:40:27]Read from MH i2c: E2 62 00 [12:40:27]MH_I2C_Read... [12:40:27]Read from MH i2c: E2 62 00 4A 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 9E DA 02 00 0E 04 04 00 87 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 46 [12:40:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:27]wFMCommunicate OK [12:40:27]SAM_PROTO_GetFieldsCounters done [12:40:27]requested_item shift.num is exist - process it [12:40:27]requested_item shift.opened is exist - process it [12:40:27]req_shift_opened [12:40:27]FM_GetShiftState [12:40:27]SAM_PROTO_GetShiftState [12:40:27]wFMCommunicate request_size=4 [12:40:27]MH_SAM_APDU [12:40:27]CAPDU: 80 13 01 00 [12:40:27]Write to MH i2c: E2 08 00 4B 1F 80 13 01 00 00 00 00 00 E7 [12:40:27]Write i2c OK [12:40:27]MH_I2C_Read... [12:40:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:27]Read from MH i2c: E2 [12:40:27]MH_I2C_Read... [12:40:27]Read from MH i2c: E2 0E 00 [12:40:27]MH_I2C_Read... [12:40:27]Read from MH i2c: E2 0E 00 4B 1F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 66 [12:40:27]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:40:27]wFMCommunicate OK [12:40:27]SAM_PROTO_GetShiftState done [12:40:27]FM_GetShiftState done [12:40:27]req_shift_opened done [12:40:27]requested_item shift.open_date is exist - process it [12:40:27]req_shift_open_date [12:40:27]req_shift_open_date done [12:40:27]produce_requested_data done [12:40:27]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187038,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [12:40:27]process_action_free close_receipt [12:40:27]json_value_free [12:40:27]json_value_free done [12:40:27]process_json_proto returns [12:40:27]Send response to host [12:40:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187038,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [12:40:27]free response buf [12:40:27]execute_script done [12:40:27]execute_script returns [12:40:27]free content buf [12:40:27]Sock 9.Close socket [12:40:27]Sock 9.Thread stoped [12:40:31]OFD Sender: No OFD packet to send [12:40:36]OFD Sender: No OFD packet to send [12:40:41]OFD Sender: No OFD packet to send [12:40:46]OFD Sender: No OFD packet to send [12:40:51]OFD Sender: No OFD packet to send [12:40:56]OFD Sender: No OFD packet to send [12:41:01]OFD Sender: No OFD packet to send [12:41:06]OFD Sender: No OFD packet to send [12:41:11]OFD Sender: No OFD packet to send [12:41:16]OFD Sender: No OFD packet to send [12:41:21]OFD Sender: No OFD packet to send [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:51]OFD Sender: No OFD packet to send [12:42:56]OFD Sender: No OFD packet to send [12:43:01]OFD Sender: No OFD packet to send [12:43:06]OFD Sender: No OFD packet to send [12:43:11]OFD Sender: No OFD packet to send [12:43:16]OFD Sender: No OFD packet to send [12:43:21]OFD Sender: No OFD packet to send [12:43:26]OFD Sender: No OFD packet to send [12:43:31]OFD Sender: No OFD packet to send [12:43:36]OFD Sender: No OFD packet to send [12:43:41]OFD Sender: No OFD packet to send [12:43:46]OFD Sender: No OFD packet to send [12:43:51]OFD Sender: No OFD packet to send [12:43:56]OFD Sender: No OFD packet to send [12:44:01]OFD Sender: No OFD packet to send [12:44:06]OFD Sender: No OFD packet to send [12:44:11]OFD Sender: No OFD packet to send [12:44:16]OFD Sender: No OFD packet to send [12:44:21]OFD Sender: No OFD packet to send [12:44:26]OFD Sender: No OFD packet to send [12:44:31]OFD Sender: No OFD packet to send [12:44:36]OFD Sender: No OFD packet to send [12:44:41]OFD Sender: No OFD packet to send [12:44:46]OFD Sender: No OFD packet to send [12:44:51]OFD Sender: No OFD packet to send [12:44:56]OFD Sender: No OFD packet to send [12:45:01]OFD Sender: No OFD packet to send [12:45:06]OFD Sender: No OFD packet to send [12:45:11]OFD Sender: No OFD packet to send [12:45:16]OFD Sender: No OFD packet to send [12:45:21]OFD Sender: No OFD packet to send [12:45:22]accept exits with 7 [12:45:22]New connection [12:45:22]New thread 3067022692 created [12:45:22]Thread 3066879332 joined [12:45:22]Waiting for new connection... [12:45:22] Sock 7.Parse request [12:45:22]Sock 7.Check first char [12:45:22]Sock 7.First char is OK [12:45:22]request: POST /json_proto HTTP/1.0 [12:45:22]Method: POST [12:45:22]URL: /json_proto [12:45:22]Method is POST - this is cgi request [12:45:22]url: /json_proto [12:45:22]query_string will be loaded in cgi processing [12:45:22]execute_cgi json_proto POST (null) [12:45:22]execute_cgi path=json_proto method=POST [12:45:22]POST find Content-Length [12:45:22]Host: 172.17.46.131:8080 [12:45:22]Content-Length: 677 [12:45:22]Content-Type: application/json [12:45:22] [12:45:22]POST finish read [12:45:22]Found Content-Length = 677 [12:45:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412190", "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" ] } } [12:45:22]execute_script... [12:45: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)412190", "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" ] } } [12:45:22]POST & json_proto [12:45:22]process_json_proto [12:45:22]json parsed OK: [12:45:22]protocol is kg_v1.0 [12:45:22]action value=close_receipt [12:45:22]process_action close_receipt [12:45:22]cmd_close_receipt [12:45:22]MH_GetDate [12:45:22]Write to MH i2c: F0 00 00 4C 1F 5A [12:45:22]Write i2c OK [12:45:22]MH_I2C_Read... [12:45:22]Read from MH i2c: F0 [12:45:22]MH_I2C_Read... [12:45:22]Read from MH i2c: F0 09 00 [12:45:22]MH_I2C_Read... [12:45:22]Read from MH i2c: F0 09 00 4C 1F 00 65 D2 B5 67 7E 41 4F 65 29 [12:45:22]GetLastDocTimeStamp 1739968826 [12:45:22]current date 1739969125 [12:45:22]FM_GetShiftState [12:45:22]SAM_PROTO_GetShiftState [12:45:22]wFMCommunicate request_size=4 [12:45:22]MH_SAM_APDU [12:45:22]CAPDU: 80 13 01 00 [12:45:22]Write to MH i2c: E2 08 00 4D 1F 80 13 01 00 00 00 00 00 E9 [12:45:22]Write i2c OK [12:45:22]MH_I2C_Read... [12:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:22]Read from MH i2c: E2 [12:45:22]MH_I2C_Read... [12:45:22]Read from MH i2c: E2 0E 00 [12:45:22]MH_I2C_Read... [12:45:22]Read from MH i2c: E2 0E 00 4D 1F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 68 [12:45:22]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:45:22]wFMCommunicate OK [12:45:22]SAM_PROTO_GetShiftState done [12:45:22]FM_GetShiftState done [12:45:22]opened in 1739929631 [12:45:22]opened+sec_in_day 1740016031 [12:45:22]quantity*price = 50011 [12:45:22]sum+1 = 50013 [12:45:22]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 СНО: Общий режим Чек 105 19.02.2025 12:45 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187039 ФПД: 188350472120102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T124525&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187039&fm=188350472120102&tin=02508201610067®Number=0000000000091857&sum=50000 [12:45:23]StoreToDocumentArchive [12:45:23]shift 647 fd 187039 [12:45:23]save to /storage/0647/doc_00187039 [12:45:23]save last doc name /storage/0647/doc_00187039 to /storage/kkm_last_doc_name [12:45:23]save OK [12:45:23]Clear old archive folders... [12:45:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:45:23]tlvbuf is 00672AD0 [12:45:23]SAM_PROTO_ClearQueue [12:45:23]wFMCommunicate request_size=4 [12:45:23]MH_SAM_APDU [12:45:23]CAPDU: 80 09 00 00 [12:45:23]Write to MH i2c: E2 08 00 5A 1F 80 09 00 00 00 00 00 00 EB [12:45:23]Write i2c OK [12:45:23]MH_I2C_Read... [12:45:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:23]Read from MH i2c: E2 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: E2 03 00 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: E2 03 00 5A 1F 00 90 00 ED [12:45:23]RAPDU: 90 00 [12:45:23]wFMCommunicate OK [12:45:23]SAM_PROTO_ClearQueue done [12:45:23]KKMCreateOFDPacket [12:45:23]OFDProtocolAddRootSTLVToBuf [12:45:23]FM_MakeSignedData [12:45:23]FM_MakeSignedData [12:45:23]SAM_PROTO_SignData [12:45:23]wFMCommunicate request_size=4 [12:45:23]MH_SAM_APDU [12:45:23]CAPDU: 80 0D 01 02 [12:45:23]Write to MH i2c: E2 08 00 5B 1F 80 0D 01 02 00 00 00 00 F3 [12:45:23]Write i2c OK [12:45:23]MH_I2C_Read... [12:45:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:23]Read from MH i2c: E2 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: E2 03 00 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: E2 03 00 5B 1F 00 90 00 EE [12:45:23]RAPDU: 90 00 [12:45:23]wFMCommunicate OK [12:45:23]wFMCommunicate request_size=255 [12:45:23]MH_SAM_APDU [12:45: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 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 69 00 00 00 F4 03 04 00 65 D2 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 9F DA 02 00 35 04 06 00 AB [12:45:23]Write to MH i2c: E2 02 01 5C 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 69 00 00 00 F4 03 04 00 65 D2 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 9F DA 02 00 35 04 06 00 AB 00 00 F7 [12:45:23]Write i2c OK [12:45:23]MH_I2C_Read... [12:45:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:23]Read from MH i2c: E2 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: E2 03 00 [12:45:23]MH_I2C_Read... [12:45:23]Read from MH i2c: E2 03 00 5C 1F 00 90 00 EF [12:45:23]RAPDU: 90 00 [12:45:23]wFMCommunicate OK [12:45:23]wFMCommunicate request_size=10 [12:45:23]MH_SAM_APDU [12:45:23]CAPDU: 80 0D 02 02 05 4D C2 FB E7 26 [12:45:23]Write to MH i2c: E2 0D 00 5D 1F 80 0D 02 02 05 00 4D C2 FB E7 26 00 00 17 [12:45:23]Write i2c OK [12:45:23]MH_I2C_Read... [12:45:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:24]Read from MH i2c: E2 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: E2 03 00 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: E2 03 00 5D 1F 00 90 00 F0 [12:45:24]RAPDU: 90 00 [12:45:24]wFMCommunicate OK [12:45:24]wFMCommunicate request_size=4 [12:45:24]MH_SAM_APDU [12:45:24]CAPDU: 80 0D 03 02 [12:45:24]Write to MH i2c: E2 08 00 5E 1F 80 0D 03 02 00 00 00 00 F8 [12:45:24]Write i2c OK [12:45:24]MH_I2C_Read... [12:45:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:24]Read from MH i2c: E2 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: E2 0B 00 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: E2 0B 00 5E 1F 00 38 66 46 7D A6 DA 3C 82 90 00 98 [12:45:24]RAPDU: 38 66 46 7D A6 DA 3C 82 90 00 [12:45:24]wFMCommunicate OK [12:45:24]SAM_PROTO_SignData done [12:45:24]FM_MakeSignedData done [12:45:24]CreateOFDProtocolMessage [12:45:24]wFMCommunicate request_size=4 [12:45:24]MH_SAM_APDU [12:45:24]CAPDU: 80 11 00 00 [12:45:24]Write to MH i2c: E2 08 00 5F 1F 80 11 00 00 00 00 00 00 F8 [12:45:24]Write i2c OK [12:45:24]MH_I2C_Read... [12:45:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:24]Read from MH i2c: E2 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: E2 17 00 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: E2 17 00 5F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4B [12:45:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:45:24]wFMCommunicate OK [12:45:24]CreateOFDProtocolMessage done [12:45:24]OFDSenderStorePacket 187039 [12:45:24]StoreOFDPacket docnum=187039 [12:45: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 1E 2C 07 01 04 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 69 00 00 00 F4 03 04 00 65 D2 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 9F DA 02 00 35 04 06 00 AB 4D C2 FB E7 26 38 66 46 7D A6 DA 3C 82 [12:45:24]CheckFolder [12:45:24]dirname=/storage/ofd_packets [12:45:24]CheckFolder done [12:45:24]ProducePacketName [12:45:24]name=ofd_packets/00187039 [12:45:24]NVStorageSaveData ofd_packets/00187039 [12:45:24]File name is /storage/ofd_packets/00187039 [12:45:24]Write 301 bytes [12:45:24]NVStorageSaveData done [12:45:24]OFDSenderStorePacket done [12:45:24]KKMCreateOFDPacket done [12:45:24]NVStorageSaveData kkm_last_timestamp [12:45:24]File name is /storage/kkm_last_timestamp [12:45:24]Write 4 bytes [12:45:24]OFD Sender: Processing packet 187039 [packets to send 49, broken 48] [12:45:24]ProducePacketName [12:45:24]name=ofd_packets/00187039 [12:45:24]OFD Sender: To server: pG, [12:45:24]CommunicateWithHost lk.salyk.kg:30040 [12:45:24]ConnectInit lk.salyk.kg [12:45:24]NVStorageSaveData done [12:45:24]ExternCall_PrintAddStr [12:45:24]wPrintStart [12:45:24]Write to MH i2c: 01 00 00 60 1F 7F [12:45:24]Write i2c OK [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: 01 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: 01 07 00 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: 01 07 00 60 1F 00 00 00 00 00 FF 0F 94 [12:45:24]RasterBufferAndPrint [12:45:24]line Счет N : (1)412190 [12:45:24]line ИНН: 02508201610067 [12:45:24]line Контрольно-Кассовый Чек [12:45:24]line ПРОДАЖА [12:45:24]line ТРК (МРК, ГНК) : 32 [12:45:24]line Товар: 2710124130 [12:45:24]line Аи-92-К-2 [12:45:24]line 7.790 * 64.20 [12:45:24]line = 500.12 [12:45:24]line НДС 12% НСП 1% [12:45:24]line > о реализуемом товаре [12:45:24]line ОКРУГЛЕНИЕ: -0.12 [12:45:24]line ИТОГО: 500.00 [12:45:24]line Внесено: 500.00 [12:45:24]line СДАЧА: 0.00 [12:45:24]line НСП 1% : 4.43 [12:45:24]line НДС 12% : 53.11 [12:45:24]line Наличными: 500.00 [12:45:24]line Безнал.: 0.00 [12:45:24]line Место: АЗС № 92 "Партнер Нефть" [12:45:24]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:45:24]line СНО: Общий режим [12:45:24]line Чек 105 19.02.2025 12:45 [12:45:24]line Смена: 647 ФФД: 1.0 [12:45:24]line ЗНМ: 0300000118 [12:45:24]line РНМ: 0000000000091857 [12:45:24]line Версия ККМ: 001 [12:45:24]line ФМ: 0000000000871826 [12:45:24]line ФД: 187039 [12:45:24]line ФПД: 188350472120102 [12:45:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T124525&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187039&fm=188350472120102&tin=02508201610067®Number=0000000000091857&sum=50000 [12:45:24]Connected sock=11 [12:45: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 1E 2C 07 01 04 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 69 00 00 00 F4 03 04 00 65 D2 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 9F DA 02 00 35 04 06 00 AB 4D C2 FB E7 26 38 66 46 7D A6 DA 3C 82 [12:45:24]written 0, free lines is 4095 [12:45: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 E9 2D 47 00 7F 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9F DA 02 00 F4 03 04 00 B9 78 B5 67 B6 04 01 00 00 87 79 80 BD 55 16 5C 42 [12:45:24]CommunicateWithHost err = 0 [12:45:24]CheckOFDResponse [12:45:24]1017 (14) - 77093643461234 [12:45:24]1041 (16) - 0000000000871826 [12:45:24]1040 (4) - 187039 [12:45:24]1012 (4) - 19.02.2025 06:22 [12:45:24]1206 (1) - 0 [12:45:24]OFD Sender: Remove packet 187039 [12:45:24]ProducePacketName [12:45:24]name=ofd_packets/00187039 [12:45:24]NVStorageDeleteData [12:45:24]Write to MH i2c: 01 00 00 8B 1F AA [12:45:24]Write i2c OK [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: 01 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: 01 07 00 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: 01 07 00 8B 1F 00 00 00 00 00 F1 0C AE [12:45:24]RasterBufferAndPrint [12:45:24]line [12:45:24]line [12:45:24]line [12:45:24]line [12:45:24]line [12:45:24]written 0, free lines is 3322 [12:45:24]MH_Cut [12:45:24]Write to MH i2c: D1 01 00 92 1F 01 83 [12:45:24]Write i2c OK [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: D1 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: D1 01 00 [12:45:24]MH_I2C_Read... [12:45:24]Read from MH i2c: D1 01 00 92 1F 00 82 [12:45:24]Write to MH i2c: 01 00 00 93 1F B2 [12:45:24]Write i2c OK [12:45:24]MH_I2C_Read... [12:45:25]OFD Sender: No OFD packet to send [12:45:25]*** Cut start [12:45:25]*** Partial cut [12:45:25]*** CUTSNS_PIN = 1 [12:45:25]*** CUTSNS_PIN = 0 [12:45:25]*** Brake cut motor [12:45:26]Read from MH i2c: 01 [12:45:26]MH_I2C_Read... [12:45:26]*** Stop cut motor [12:45:26]*** Cut end [12:45:26]Read from MH i2c: 01 07 00 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: 01 07 00 93 1F 00 00 00 00 00 FF 0F C7 [12:45:26]process_action close_receipt done [12:45:26]requested_data is exist [12:45:26]produce_requested_data [12:45:26]requested_item fm.sn is exist - process it [12:45:26]wFMCommunicate request_size=4 [12:45:26]MH_SAM_APDU [12:45:26]CAPDU: 80 11 00 00 [12:45:26]Write to MH i2c: E2 08 00 94 1F 80 11 00 00 00 00 00 00 2D [12:45:26]Write i2c OK [12:45:26]MH_I2C_Read... [12:45:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:26]Read from MH i2c: E2 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 17 00 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 17 00 94 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 80 [12:45: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:45:26]wFMCommunicate OK [12:45:26]requested_item fd.num is exist - process it [12:45:26]SAM_PROTO_GetFieldsCounters [12:45:26]wFMCommunicate request_size=4 [12:45:26]MH_SAM_APDU [12:45:26]CAPDU: 80 13 00 00 [12:45:26]Write to MH i2c: E2 08 00 95 1F 80 13 00 00 00 00 00 00 30 [12:45:26]Write i2c OK [12:45:26]MH_I2C_Read... [12:45:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:26]Read from MH i2c: E2 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 62 00 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 62 00 95 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 9F DA 02 00 0E 04 04 00 87 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 95 [12:45: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 9F DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:26]wFMCommunicate OK [12:45:26]SAM_PROTO_GetFieldsCounters done [12:45:26]requested_item shift.num is exist - process it [12:45:26]requested_item shift.opened is exist - process it [12:45:26]req_shift_opened [12:45:26]FM_GetShiftState [12:45:26]SAM_PROTO_GetShiftState [12:45:26]wFMCommunicate request_size=4 [12:45:26]MH_SAM_APDU [12:45:26]CAPDU: 80 13 01 00 [12:45:26]Write to MH i2c: E2 08 00 96 1F 80 13 01 00 00 00 00 00 32 [12:45:26]Write i2c OK [12:45:26]MH_I2C_Read... [12:45:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:26]Read from MH i2c: E2 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 0E 00 [12:45:26]MH_I2C_Read... [12:45:26]Read from MH i2c: E2 0E 00 96 1F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 B1 [12:45:26]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:45:26]wFMCommunicate OK [12:45:26]SAM_PROTO_GetShiftState done [12:45:26]FM_GetShiftState done [12:45:26]req_shift_opened done [12:45:26]requested_item shift.open_date is exist - process it [12:45:26]req_shift_open_date [12:45:26]req_shift_open_date done [12:45:26]produce_requested_data done [12:45:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187039,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [12:45:26]process_action_free close_receipt [12:45:26]json_value_free [12:45:26]json_value_free done [12:45:26]process_json_proto returns [12:45:26]Send response to host [12:45:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187039,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [12:45:26]free response buf [12:45:26]execute_script done [12:45:26]execute_script returns [12:45:26]free content buf [12:45:26]Sock 7.Close socket [12:45:26]Sock 7.Thread stoped [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:45]accept exits with 9 [12:46:45]New connection [12:46:45]New thread 3066879332 created [12:46:45]Thread 3067022692 joined [12:46:45]Waiting for new connection... [12:46:45] Sock 9.Parse request [12:46:45]Sock 9.Check first char [12:46:45]Sock 9.First char is OK [12:46:45]request: POST /json_proto HTTP/1.0 [12:46:45]Method: POST [12:46:45]URL: /json_proto [12:46:45]Method is POST - this is cgi request [12:46:45]url: /json_proto [12:46:45]query_string will be loaded in cgi processing [12:46:45]execute_cgi json_proto POST (null) [12:46:45]execute_cgi path=json_proto method=POST [12:46:45]POST find Content-Length [12:46:45]Host: 172.17.46.131:8080 [12:46:45]Content-Length: 679 [12:46:45]Content-Type: application/json [12:46:45] [12:46:45]POST finish read [12:46:45]Found Content-Length = 679 [12:46:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412191", "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.490, "sum" : 994.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 994.00, "payments": [ { "type": 0, "sum" : 994.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:45]execute_script... [12:46: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)412191", "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.490, "sum" : 994.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 994.00, "payments": [ { "type": 0, "sum" : 994.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:45]POST & json_proto [12:46:45]process_json_proto [12:46:45]json parsed OK: [12:46:45]protocol is kg_v1.0 [12:46:45]action value=close_receipt [12:46:45]process_action close_receipt [12:46:45]cmd_close_receipt [12:46:45]MH_GetDate [12:46:45]Write to MH i2c: F0 00 00 97 1F A5 [12:46:45]Write i2c OK [12:46:45]MH_I2C_Read... [12:46:45]Read from MH i2c: F0 [12:46:45]MH_I2C_Read... [12:46:45]Read from MH i2c: F0 09 00 [12:46:45]MH_I2C_Read... [12:46:45]Read from MH i2c: F0 09 00 97 1F 00 B9 D2 B5 67 7E 41 4F 65 C8 [12:46:45]GetLastDocTimeStamp 1739969125 [12:46:45]current date 1739969209 [12:46:45]FM_GetShiftState [12:46:45]SAM_PROTO_GetShiftState [12:46:45]wFMCommunicate request_size=4 [12:46:45]MH_SAM_APDU [12:46:45]CAPDU: 80 13 01 00 [12:46:45]Write to MH i2c: E2 08 00 98 1F 80 13 01 00 00 00 00 00 34 [12:46:45]Write i2c OK [12:46:45]MH_I2C_Read... [12:46:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:45]Read from MH i2c: E2 [12:46:45]MH_I2C_Read... [12:46:45]Read from MH i2c: E2 0E 00 [12:46:45]MH_I2C_Read... [12:46:45]Read from MH i2c: E2 0E 00 98 1F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 B3 [12:46:45]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:46:45]wFMCommunicate OK [12:46:45]SAM_PROTO_GetShiftState done [12:46:45]FM_GetShiftState done [12:46:45]opened in 1739929631 [12:46:45]opened+sec_in_day 1740016031 [12:46:45]quantity*price = 99445 [12:46:45]sum+1 = 99447 [12:46:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 994.00 Внесено: 1000.00 СДАЧА: 6.00 НСП 1% : 8.80 НДС 12% : 105.61 Наличными: 994.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 106 19.02.2025 12:46 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187040 ФПД: 264804836426949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T124649&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187040&fm=264804836426949&tin=02508201610067®Number=0000000000091857&sum=99400 [12:46:46]StoreToDocumentArchive [12:46:46]shift 647 fd 187040 [12:46:46]save to /storage/0647/doc_00187040 [12:46:46]save last doc name /storage/0647/doc_00187040 to /storage/kkm_last_doc_name [12:46:46]save OK [12:46:46]Clear old archive folders... [12:46:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:46]tlvbuf is 0065A9A0 [12:46:46]SAM_PROTO_ClearQueue [12:46:46]wFMCommunicate request_size=4 [12:46:46]MH_SAM_APDU [12:46:46]CAPDU: 80 09 00 00 [12:46:46]Write to MH i2c: E2 08 00 A5 1F 80 09 00 00 00 00 00 00 36 [12:46:46]Write i2c OK [12:46:46]MH_I2C_Read... [12:46:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:46]Read from MH i2c: E2 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: E2 03 00 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: E2 03 00 A5 1F 00 90 00 38 [12:46:46]RAPDU: 90 00 [12:46:46]wFMCommunicate OK [12:46:46]SAM_PROTO_ClearQueue done [12:46:46]KKMCreateOFDPacket [12:46:46]OFDProtocolAddRootSTLVToBuf [12:46:46]FM_MakeSignedData [12:46:46]FM_MakeSignedData [12:46:46]SAM_PROTO_SignData [12:46:46]wFMCommunicate request_size=4 [12:46:46]MH_SAM_APDU [12:46:46]CAPDU: 80 0D 01 02 [12:46:46]Write to MH i2c: E2 08 00 A6 1F 80 0D 01 02 00 00 00 00 3E [12:46:46]Write i2c OK [12:46:46]MH_I2C_Read... [12:46:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:47]Read from MH i2c: E2 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: E2 03 00 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: E2 03 00 A6 1F 00 90 00 39 [12:46:47]RAPDU: 90 00 [12:46:47]wFMCommunicate OK [12:46:47]wFMCommunicate request_size=255 [12:46:47]MH_SAM_APDU [12:46: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 82 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 76 84 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 29 00 00 00 00 07 04 06 00 48 84 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 B9 D2 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 A0 DA 02 00 35 04 06 00 F0 [12:46:47]Write to MH i2c: E2 02 01 A7 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 82 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 76 84 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 29 00 00 00 00 07 04 06 00 48 84 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 B9 D2 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 A0 DA 02 00 35 04 06 00 F0 00 00 AD [12:46:47]Write i2c OK [12:46:47]MH_I2C_Read... [12:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:47]Read from MH i2c: E2 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: E2 03 00 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: E2 03 00 A7 1F 00 90 00 3A [12:46:47]RAPDU: 90 00 [12:46:47]wFMCommunicate OK [12:46:47]wFMCommunicate request_size=10 [12:46:47]MH_SAM_APDU [12:46:47]CAPDU: 80 0D 02 02 05 D6 AE 35 C4 C5 [12:46:47]Write to MH i2c: E2 0D 00 A8 1F 80 0D 02 02 05 00 D6 AE 35 C4 C5 00 00 8D [12:46:47]Write i2c OK [12:46:47]MH_I2C_Read... [12:46:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:47]Read from MH i2c: E2 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: E2 03 00 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: E2 03 00 A8 1F 00 90 00 3B [12:46:47]RAPDU: 90 00 [12:46:47]wFMCommunicate OK [12:46:47]wFMCommunicate request_size=4 [12:46:47]MH_SAM_APDU [12:46:47]CAPDU: 80 0D 03 02 [12:46:47]Write to MH i2c: E2 08 00 A9 1F 80 0D 03 02 00 00 00 00 43 [12:46:47]Write i2c OK [12:46:47]MH_I2C_Read... [12:46:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:47]Read from MH i2c: E2 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: E2 0B 00 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: E2 0B 00 A9 1F 00 9C 52 4D 67 89 29 C9 98 90 00 F9 [12:46:47]RAPDU: 9C 52 4D 67 89 29 C9 98 90 00 [12:46:47]wFMCommunicate OK [12:46:47]SAM_PROTO_SignData done [12:46:47]FM_MakeSignedData done [12:46:47]CreateOFDProtocolMessage [12:46:47]wFMCommunicate request_size=4 [12:46:47]MH_SAM_APDU [12:46:47]CAPDU: 80 11 00 00 [12:46:47]Write to MH i2c: E2 08 00 AA 1F 80 11 00 00 00 00 00 00 43 [12:46:47]Write i2c OK [12:46:47]MH_I2C_Read... [12:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:47]Read from MH i2c: E2 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: E2 17 00 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: E2 17 00 AA 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 96 [12: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 [12:46:47]wFMCommunicate OK [12:46:47]CreateOFDProtocolMessage done [12:46:47]OFDSenderStorePacket 187040 [12:46:47]StoreOFDPacket docnum=187040 [12: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 0F 01 00 00 D6 A0 07 01 13 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 82 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 76 84 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 29 00 00 00 00 07 04 06 00 48 84 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 B9 D2 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 A0 DA 02 00 35 04 06 00 F0 D6 AE 35 C4 C5 9C 52 4D 67 89 29 C9 98 [12:46:47]CheckFolder [12:46:47]dirname=/storage/ofd_packets [12:46:47]CheckFolder done [12:46:47]ProducePacketName [12:46:47]name=ofd_packets/00187040 [12:46:47]NVStorageSaveData ofd_packets/00187040 [12:46:47]File name is /storage/ofd_packets/00187040 [12:46:47]Write 301 bytes [12:46:47]NVStorageSaveData done [12:46:47]OFDSenderStorePacket done [12:46:47]KKMCreateOFDPacket done [12:46:47]NVStorageSaveData kkm_last_timestamp [12:46:47]File name is /storage/kkm_last_timestamp [12:46:47]Write 4 bytes [12:46:47]NVStorageSaveData done [12:46:47]ExternCall_PrintAddStr [12:46:47]wPrintStart [12:46:47]Write to MH i2c: 01 00 00 AB 1F CA [12:46:47]Write i2c OK [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: 01 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: 01 07 00 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: 01 07 00 AB 1F 00 00 00 00 00 FF 0F DF [12:46:47]RasterBufferAndPrint [12:46:47]line Счет N : (1)412191 [12:46:47]line ИНН: 02508201610067 [12:46:47]line Контрольно-Кассовый Чек [12:46:47]line ПРОДАЖА [12:46:47]line ТРК (МРК, ГНК) : 12 [12:46:47]line Товар: 2710124130 [12:46:47]line Аи-92-К-2 [12:46:47]line 15.490 * 64.20 [12:46:47]line = 994.46 [12:46:47]line НДС 12% НСП 1% [12:46:47]line > о реализуемом товаре [12:46:47]line ОКРУГЛЕНИЕ: -0.46 [12:46:47]line ИТОГО: 994.00 [12:46:47]line Внесено: 1000.00 [12:46:47]line СДАЧА: 6.00 [12:46:47]line НСП 1% : 8.80 [12:46:47]line НДС 12% : 105.61 [12:46:47]line Наличными: 994.00 [12:46:47]line Безнал.: 0.00 [12:46:47]line Место: АЗС № 92 "Партнер Нефть" [12:46:47]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:46:47]line СНО: Общий режим [12:46:47]line Чек 106 19.02.2025 12:46 [12:46:47]line Смена: 647 ФФД: 1.0 [12:46:47]line ЗНМ: 0300000118 [12:46:47]line РНМ: 0000000000091857 [12:46:47]line Версия ККМ: 001 [12:46:47]line ФМ: 0000000000871826 [12:46:47]line ФД: 187040 [12:46:47]line ФПД: 264804836426949 [12:46:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T124649&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187040&fm=264804836426949&tin=02508201610067®Number=0000000000091857&sum=99400 [12:46:47]OFD Sender: Processing packet 187040 [packets to send 49, broken 48] [12:46:47]ProducePacketName [12:46:47]name=ofd_packets/00187040 [12:46:47]OFD Sender: To server: pG, [12:46:47]CommunicateWithHost lk.salyk.kg:30040 [12:46:47]ConnectInit lk.salyk.kg [12:46:47]written 0, free lines is 4095 [12:46:47]Connected sock=10 [12: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 0F 01 00 00 D6 A0 07 01 13 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 82 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 76 84 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 84 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 29 00 00 00 00 07 04 06 00 48 84 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 B9 D2 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 A0 DA 02 00 35 04 06 00 F0 D6 AE 35 C4 C5 9C 52 4D 67 89 29 C9 98 [12:46: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 FB 36 47 00 AE 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 A0 DA 02 00 F4 03 04 00 0D 79 B5 67 B6 04 01 00 00 6D A6 3B 30 1D 43 F2 AF [12:46:48]CommunicateWithHost err = 0 [12:46:48]CheckOFDResponse [12:46:48]1017 (14) - 77093643461234 [12:46:48]1041 (16) - 0000000000871826 [12:46:48]1040 (4) - 187040 [12:46:48]1012 (4) - 19.02.2025 06:24 [12:46:48]1206 (1) - 0 [12:46:48]OFD Sender: Remove packet 187040 [12:46:48]ProducePacketName [12:46:48]name=ofd_packets/00187040 [12:46:48]NVStorageDeleteData [12:46:48]Write to MH i2c: 01 00 00 D6 1F F5 [12:46:48]Write i2c OK [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: 01 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: 01 07 00 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: 01 07 00 D6 1F 00 00 00 00 00 0C 0D 15 [12:46:48]RasterBufferAndPrint [12:46:48]line [12:46:48]line [12:46:48]line [12:46:48]line [12:46:48]line [12:46:48]written 0, free lines is 3346 [12:46:48]MH_Cut [12:46:48]Write to MH i2c: D1 01 00 DD 1F 01 CE [12:46:48]Write i2c OK [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: D1 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: D1 01 00 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: D1 01 00 DD 1F 00 CD [12:46:48]Write to MH i2c: 01 00 00 DE 1F FD [12:46:48]Write i2c OK [12:46:48]MH_I2C_Read... [12:46:48]OFD Sender: No OFD packet to send [12:46:48]*** Cut start [12:46:48]*** Partial cut [12:46:48]*** CUTSNS_PIN = 1 [12:46:49]*** CUTSNS_PIN = 0 [12:46:49]*** Brake cut motor [12:46:49]Read from MH i2c: 01 [12:46:49]MH_I2C_Read... [12:46:49]*** Stop cut motor [12:46:49]*** Cut end [12:46:49]Read from MH i2c: 01 07 00 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: 01 07 00 DE 1F 00 00 00 00 00 FF 0F 12 [12:46:49]process_action close_receipt done [12:46:49]requested_data is exist [12:46:49]produce_requested_data [12:46:49]requested_item fm.sn is exist - process it [12:46:49]wFMCommunicate request_size=4 [12:46:49]MH_SAM_APDU [12:46:49]CAPDU: 80 11 00 00 [12:46:49]Write to MH i2c: E2 08 00 DF 1F 80 11 00 00 00 00 00 00 78 [12:46:49]Write i2c OK [12:46:49]MH_I2C_Read... [12:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:49]Read from MH i2c: E2 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 17 00 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 17 00 DF 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CB [12:46:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:46:49]wFMCommunicate OK [12:46:49]requested_item fd.num is exist - process it [12:46:49]SAM_PROTO_GetFieldsCounters [12:46:49]wFMCommunicate request_size=4 [12:46:49]MH_SAM_APDU [12:46:49]CAPDU: 80 13 00 00 [12:46:49]Write to MH i2c: E2 08 00 E0 1F 80 13 00 00 00 00 00 00 7B [12:46:49]Write i2c OK [12:46:49]MH_I2C_Read... [12:46:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:49]Read from MH i2c: E2 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 62 00 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 62 00 E0 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 A0 DA 02 00 0E 04 04 00 87 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 E4 [12:46: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 A0 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:49]wFMCommunicate OK [12:46:49]SAM_PROTO_GetFieldsCounters done [12:46:49]requested_item shift.num is exist - process it [12:46:49]requested_item shift.opened is exist - process it [12:46:49]req_shift_opened [12:46:49]FM_GetShiftState [12:46:49]SAM_PROTO_GetShiftState [12:46:49]wFMCommunicate request_size=4 [12:46:49]MH_SAM_APDU [12:46:49]CAPDU: 80 13 01 00 [12:46:49]Write to MH i2c: E2 08 00 E1 1F 80 13 01 00 00 00 00 00 7D [12:46:49]Write i2c OK [12:46:49]MH_I2C_Read... [12:46:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:49]Read from MH i2c: E2 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 0E 00 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 0E 00 E1 1F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 FC [12:46:49]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:46:49]wFMCommunicate OK [12:46:49]SAM_PROTO_GetShiftState done [12:46:49]FM_GetShiftState done [12:46:49]req_shift_opened done [12:46:49]requested_item shift.open_date is exist - process it [12:46:49]req_shift_open_date [12:46:49]req_shift_open_date done [12:46:49]produce_requested_data done [12:46:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187040,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [12:46:49]process_action_free close_receipt [12:46:49]json_value_free [12:46:49]json_value_free done [12:46:49]process_json_proto returns [12:46:49]Send response to host [12:46:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187040,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [12:46:49]free response buf [12:46:49]execute_script done [12:46:49]execute_script returns [12:46:49]free content buf [12:46:49]Sock 9.Close socket [12:46:49]Sock 9.Thread stoped [12:46:53]OFD Sender: No OFD packet to send [12:46:58]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: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:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [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:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:25]accept exits with 7 [12:51:25]New connection [12:51:25]New thread 3067022692 created [12:51:25]Thread 3066879332 joined [12:51:25]Waiting for new connection... [12:51:25] Sock 7.Parse request [12:51:25]Sock 7.Check first char [12:51:25]Sock 7.First char is OK [12:51:25]request: POST /json_proto HTTP/1.0 [12:51:25]Method: POST [12:51:25]URL: /json_proto [12:51:25]Method is POST - this is cgi request [12:51:25]url: /json_proto [12:51:25]query_string will be loaded in cgi processing [12:51:25]execute_cgi json_proto POST (null) [12:51:25]execute_cgi path=json_proto method=POST [12:51:25]POST find Content-Length [12:51:25]Host: 172.17.46.131:8080 [12:51:25]Content-Length: 790 [12:51:25]Content-Type: application/json [12:51:25] [12:51:25]POST finish read [12:51:25]Found Content-Length = 790 [12:51:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412192", "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:25]execute_script... [12:51:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412192", "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:25]POST & json_proto [12:51:25]process_json_proto [12:51:25]json parsed OK: [12:51:25]protocol is kg_v1.0 [12:51:25]action value=close_receipt [12:51:25]process_action close_receipt [12:51:25]cmd_close_receipt [12:51:25]MH_GetDate [12:51:25]Write to MH i2c: F0 00 00 E2 1F F0 [12:51:25]Write i2c OK [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: F0 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: F0 09 00 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: F0 09 00 E2 1F 00 D0 D3 B5 67 7E 41 4F 65 2B [12:51:25]GetLastDocTimeStamp 1739969209 [12:51:25]current date 1739969488 [12:51:25]FM_GetShiftState [12:51:25]SAM_PROTO_GetShiftState [12:51:25]wFMCommunicate request_size=4 [12:51:25]MH_SAM_APDU [12:51:25]CAPDU: 80 13 01 00 [12:51:25]Write to MH i2c: E2 08 00 E3 1F 80 13 01 00 00 00 00 00 7F [12:51:25]Write i2c OK [12:51:25]MH_I2C_Read... [12:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:25]Read from MH i2c: E2 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: E2 0E 00 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: E2 0E 00 E3 1F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 FE [12:51:25]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:51:25]wFMCommunicate OK [12:51:25]SAM_PROTO_GetShiftState done [12:51:25]FM_GetShiftState done [12:51:25]opened in 1739929631 [12:51:25]opened+sec_in_day 1740016031 [12:51:25]quantity*price = 50011 [12:51:25]sum+1 = 50013 [12:51:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.12 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.12 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 107 19.02.2025 12:51 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000871826 ФД: 187041 ФПД: 96583563115081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T125128&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187041&fm=96583563115081&tin=02508201610067®Number=0000000000091857&sum=50012 [12:51:26]StoreToDocumentArchive [12:51:26]shift 647 fd 187041 [12:51:26]save to /storage/0647/doc_00187041 [12:51:26]save last doc name /storage/0647/doc_00187041 to /storage/kkm_last_doc_name [12:51:26]save OK [12:51:26]Clear old archive folders... [12:51:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:51:26]tlvbuf is 005FF8B0 [12:51:26]SAM_PROTO_ClearQueue [12:51:26]wFMCommunicate request_size=4 [12:51:26]MH_SAM_APDU [12:51:26]CAPDU: 80 09 00 00 [12:51:26]Write to MH i2c: E2 08 00 F0 1F 80 09 00 00 00 00 00 00 81 [12:51:26]Write i2c OK [12:51:26]MH_I2C_Read... [12:51:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:26]Read from MH i2c: E2 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 03 00 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 03 00 F0 1F 00 90 00 83 [12:51:26]RAPDU: 90 00 [12:51:26]wFMCommunicate OK [12:51:26]SAM_PROTO_ClearQueue done [12:51:26]KKMCreateOFDPacket [12:51:26]OFDProtocolAddRootSTLVToBuf [12:51:26]FM_MakeSignedData [12:51:26]FM_MakeSignedData [12:51:26]SAM_PROTO_SignData [12:51:26]wFMCommunicate request_size=4 [12:51:26]MH_SAM_APDU [12:51:26]CAPDU: 80 0D 01 02 [12:51:26]Write to MH i2c: E2 08 00 F1 1F 80 0D 01 02 00 00 00 00 89 [12:51:26]Write i2c OK [12:51:26]MH_I2C_Read... [12:51:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:26]Read from MH i2c: E2 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 03 00 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 03 00 F1 1F 00 90 00 84 [12:51:26]RAPDU: 90 00 [12:51:26]wFMCommunicate OK [12:51:26]wFMCommunicate request_size=255 [12:51:26]MH_SAM_APDU [12:51:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6B 00 00 00 F4 03 04 00 D0 D3 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 A1 DA 02 00 35 04 06 00 57 [12:51:26]Write to MH i2c: E2 02 01 F2 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 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 6B 00 00 00 F4 03 04 00 D0 D3 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 A1 DA 02 00 35 04 06 00 57 00 00 C1 [12:51:26]Write i2c OK [12:51:26]MH_I2C_Read... [12:51:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:26]Read from MH i2c: E2 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 03 00 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 03 00 F2 1F 00 90 00 85 [12:51:26]RAPDU: 90 00 [12:51:26]wFMCommunicate OK [12:51:26]wFMCommunicate request_size=10 [12:51:26]MH_SAM_APDU [12:51:26]CAPDU: 80 0D 02 02 05 D7 9C F8 7A 49 [12:51:26]Write to MH i2c: E2 0D 00 F3 1F 80 0D 02 02 05 00 D7 9C F8 7A 49 00 00 C4 [12:51:26]Write i2c OK [12:51:26]MH_I2C_Read... [12:51:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:27]Read from MH i2c: E2 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: E2 03 00 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: E2 03 00 F3 1F 00 90 00 86 [12:51:27]RAPDU: 90 00 [12:51:27]wFMCommunicate OK [12:51:27]wFMCommunicate request_size=4 [12:51:27]MH_SAM_APDU [12:51:27]CAPDU: 80 0D 03 02 [12:51:27]Write to MH i2c: E2 08 00 F4 1F 80 0D 03 02 00 00 00 00 8E [12:51:27]Write i2c OK [12:51:27]MH_I2C_Read... [12:51:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:27]Read from MH i2c: E2 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: E2 0B 00 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: E2 0B 00 F4 1F 00 FB F8 13 90 83 11 73 FD 90 00 29 [12:51:27]RAPDU: FB F8 13 90 83 11 73 FD 90 00 [12:51:27]wFMCommunicate OK [12:51:27]SAM_PROTO_SignData done [12:51:27]FM_MakeSignedData done [12:51:27]CreateOFDProtocolMessage [12:51:27]wFMCommunicate request_size=4 [12:51:27]MH_SAM_APDU [12:51:27]CAPDU: 80 11 00 00 [12:51:27]Write to MH i2c: E2 08 00 F5 1F 80 11 00 00 00 00 00 00 8E [12:51:27]Write i2c OK [12:51:27]MH_I2C_Read... [12:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:27]Read from MH i2c: E2 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: E2 17 00 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: E2 17 00 F5 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E1 [12:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:51:27]wFMCommunicate OK [12:51:27]CreateOFDProtocolMessage done [12:51:27]OFDSenderStorePacket 187041 [12:51:27]StoreOFDPacket docnum=187041 [12:51: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 BB A1 07 01 FE 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 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 6B 00 00 00 F4 03 04 00 D0 D3 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 A1 DA 02 00 35 04 06 00 57 D7 9C F8 7A 49 FB F8 13 90 83 11 73 FD [12:51:27]CheckFolder [12:51:27]dirname=/storage/ofd_packets [12:51:27]CheckFolder done [12:51:27]ProducePacketName [12:51:27]name=ofd_packets/00187041 [12:51:27]NVStorageSaveData ofd_packets/00187041 [12:51:27]File name is /storage/ofd_packets/00187041 [12:51:27]Write 301 bytes [12:51:27]NVStorageSaveData done [12:51:27]OFDSenderStorePacket done [12:51:27]KKMCreateOFDPacket done [12:51:27]NVStorageSaveData kkm_last_timestamp [12:51:27]File name is /storage/kkm_last_timestamp [12:51:27]Write 4 bytes [12:51:27]NVStorageSaveData done [12:51:27]ExternCall_PrintAddStr [12:51:27]wPrintStart [12:51:27]Write to MH i2c: 01 00 00 F6 1F 15 [12:51:27]Write i2c OK [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: 01 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: 01 07 00 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: 01 07 00 F6 1F 00 00 00 00 00 FF 0F 2A [12:51:27]RasterBufferAndPrint [12:51:27]line Счет N : (1)412192 [12:51:27]line ИНН: 02508201610067 [12:51:27]line Контрольно-Кассовый Чек [12:51:27]line ПРОДАЖА [12:51:27]line ТРК (МРК, ГНК) : 32 [12:51:27]line Товар: 2710124130 [12:51:27]line Аи-92-К-2 [12:51:27]line 7.790 * 64.20 [12:51:27]line = 500.12 [12:51:27]line НДС 12% НСП 1% [12:51:27]line > о реализуемом товаре [12:51:27]line ИТОГО: 500.12 [12:51:27]line НСП 1% : 4.43 [12:51:27]line НДС 12% : 53.11 [12:51:27]line Наличными: 0.00 [12:51:27]line Безнал.: 500.12 [12:51:27]line Место: АЗС № 92 "Партнер Нефть" [12:51:27]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:51:27]line СНО: Общий режим [12:51:27]line Чек 107 19.02.2025 12:51 [12:51:27]line Смена: 647 ФФД: 1.0 [12:51:27]line ЗНМ: 0300000118 [12:51:27]line РНМ: 0000000000091857 [12:51:27]line Версия ККМ: 001 [12:51:27]line Платежная система: KICB Банк [12:51:27]line ФМ: 0000000000871826 [12:51:27]line ФД: 187041 [12:51:27]line ФПД: 96583563115081 [12:51:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T125128&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187041&fm=96583563115081&tin=02508201610067®Number=0000000000091857&sum=50012 [12:51:27]OFD Sender: Processing packet 187041 [packets to send 49, broken 48] [12:51:27]ProducePacketName [12:51:27]name=ofd_packets/00187041 [12:51:27]OFD Sender: To server: pG, [12:51:27]CommunicateWithHost lk.salyk.kg:30040 [12:51:27]ConnectInit lk.salyk.kg [12:51:27]written 0, free lines is 4095 [12:51:27]Connected sock=10 [12:51:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BB A1 07 01 FE 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 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 6B 00 00 00 F4 03 04 00 D0 D3 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 A1 DA 02 00 35 04 06 00 57 D7 9C F8 7A 49 FB F8 13 90 83 11 73 FD [12:51: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 2A 2E 47 00 31 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 A1 DA 02 00 F4 03 04 00 24 7A B5 67 B6 04 01 00 00 B3 BF 8F 14 37 38 76 C3 [12:51:27]CommunicateWithHost err = 0 [12:51:27]CheckOFDResponse [12:51:27]1017 (14) - 77093643461234 [12:51:27]1041 (16) - 0000000000871826 [12:51:27]1040 (4) - 187041 [12:51:27]1012 (4) - 19.02.2025 06:28 [12:51:27]1206 (1) - 0 [12:51:27]OFD Sender: Remove packet 187041 [12:51:27]ProducePacketName [12:51:27]name=ofd_packets/00187041 [12:51:27]NVStorageDeleteData [12:51:27]Write to MH i2c: 01 00 00 20 20 40 [12:51:27]Write i2c OK [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: 01 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: 01 07 00 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: 01 07 00 20 20 00 00 00 00 00 0B 0D 5F [12:51:27]RasterBufferAndPrint [12:51:27]line [12:51:27]line [12:51:27]line [12:51:27]line [12:51:27]line [12:51:27]written 0, free lines is 3345 [12:51:27]MH_Cut [12:51:27]Write to MH i2c: D1 01 00 27 20 01 19 [12:51:27]Write i2c OK [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: D1 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: D1 01 00 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: D1 01 00 27 20 00 18 [12:51:27]Write to MH i2c: 01 00 00 28 20 48 [12:51:27]Write i2c OK [12:51:27]MH_I2C_Read... [12:51:28]OFD Sender: No OFD packet to send [12:51:28]*** Cut start [12:51:28]*** Partial cut [12:51:28]*** CUTSNS_PIN = 1 [12:51:28]*** CUTSNS_PIN = 0 [12:51:28]*** Brake cut motor [12:51:29]Read from MH i2c: 01 [12:51:29]MH_I2C_Read... [12:51:29]*** Stop cut motor [12:51:29]*** Cut end [12:51:29]Read from MH i2c: 01 07 00 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: 01 07 00 28 20 00 00 00 00 00 FF 0F 5D [12:51:29]process_action close_receipt done [12:51:29]requested_data is exist [12:51:29]produce_requested_data [12:51:29]requested_item fm.sn is exist - process it [12:51:29]wFMCommunicate request_size=4 [12:51:29]MH_SAM_APDU [12:51:29]CAPDU: 80 11 00 00 [12:51:29]Write to MH i2c: E2 08 00 29 20 80 11 00 00 00 00 00 00 C3 [12:51:29]Write i2c OK [12:51:29]MH_I2C_Read... [12:51:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:29]Read from MH i2c: E2 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 17 00 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 17 00 29 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 16 [12: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 [12:51:29]wFMCommunicate OK [12:51:29]requested_item fd.num is exist - process it [12:51:29]SAM_PROTO_GetFieldsCounters [12:51:29]wFMCommunicate request_size=4 [12:51:29]MH_SAM_APDU [12:51:29]CAPDU: 80 13 00 00 [12:51:29]Write to MH i2c: E2 08 00 2A 20 80 13 00 00 00 00 00 00 C6 [12:51:29]Write i2c OK [12:51:29]MH_I2C_Read... [12:51:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:29]Read from MH i2c: E2 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 62 00 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 62 00 2A 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 A1 DA 02 00 0E 04 04 00 87 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 33 [12:51:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:51:29]wFMCommunicate OK [12:51:29]SAM_PROTO_GetFieldsCounters done [12:51:29]requested_item shift.num is exist - process it [12:51:29]requested_item shift.opened is exist - process it [12:51:29]req_shift_opened [12:51:29]FM_GetShiftState [12:51:29]SAM_PROTO_GetShiftState [12:51:29]wFMCommunicate request_size=4 [12:51:29]MH_SAM_APDU [12:51:29]CAPDU: 80 13 01 00 [12:51:29]Write to MH i2c: E2 08 00 2B 20 80 13 01 00 00 00 00 00 C8 [12:51:29]Write i2c OK [12:51:29]MH_I2C_Read... [12:51:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:29]Read from MH i2c: E2 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 0E 00 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 0E 00 2B 20 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 47 [12:51:29]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:51:29]wFMCommunicate OK [12:51:29]SAM_PROTO_GetShiftState done [12:51:29]FM_GetShiftState done [12:51:29]req_shift_opened done [12:51:29]requested_item shift.open_date is exist - process it [12:51:29]req_shift_open_date [12:51:29]req_shift_open_date done [12:51:29]produce_requested_data done [12:51:29]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187041,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [12:51:29]process_action_free close_receipt [12:51:29]json_value_free [12:51:29]json_value_free done [12:51:29]process_json_proto returns [12:51:29]Send response to host [12:51:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187041,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [12:51:29]free response buf [12:51:29]execute_script done [12:51:29]execute_script returns [12:51:29]free content buf [12:51:29]Sock 7.Close socket [12:51:29]Sock 7.Thread stoped [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:58]OFD Sender: No OFD packet to send [12:54:03]OFD Sender: No OFD packet to send [12:54:08]OFD Sender: No OFD packet to send [12:54:13]OFD Sender: No OFD packet to send [12:54:18]OFD Sender: No OFD packet to send [12:54:23]OFD Sender: No OFD packet to send [12:54:28]OFD Sender: No OFD packet to send [12:54:33]OFD Sender: No OFD packet to send [12:54:38]OFD Sender: No OFD packet to send [12:54:43]OFD Sender: No OFD packet to send [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:08]OFD Sender: No OFD packet to send [12:56:13]OFD Sender: No OFD packet to send [12:56:18]OFD Sender: No OFD packet to send [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56:48]OFD Sender: No OFD packet to send [12:56:53]OFD Sender: No OFD packet to send [12:56:58]OFD Sender: No OFD packet to send [12:57:03]OFD Sender: No OFD packet to send [12:57:08]OFD Sender: No OFD packet to send [12:57:13]OFD Sender: No OFD packet to send [12:57:18]OFD Sender: No OFD packet to send [12:57:23]OFD Sender: No OFD packet to send [12:57:28]OFD Sender: No OFD packet to send [12:57:33]OFD Sender: No OFD packet to send [12:57:38]OFD Sender: No OFD packet to send [12:57:43]OFD Sender: No OFD packet to send [12:57:48]OFD Sender: No OFD packet to send [12:57:53]OFD Sender: No OFD packet to send [12:57: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]accept exits with 9 [12:59:18]New connection [12:59:18]New thread 3066879332 created [12:59:18]Thread 3067022692 joined [12:59:18]Waiting for new connection... [12:59:18] Sock 9.Parse request [12:59:18]Sock 9.Check first char [12:59:18]Sock 9.First char is OK [12:59:18]request: POST /json_proto HTTP/1.0 [12:59:18]Method: POST [12:59:18]URL: /json_proto [12:59:18]Method is POST - this is cgi request [12:59:18]url: /json_proto [12:59:18]query_string will be loaded in cgi processing [12:59:18]execute_cgi json_proto POST (null) [12:59:18]execute_cgi path=json_proto method=POST [12:59:18]POST find Content-Length [12:59:18]Host: 172.17.46.131:8080 [12:59:18]Content-Length: 682 [12:59:18]Content-Type: application/json [12:59:18] [12:59:18]POST finish read [12:59:18]Found Content-Length = 682 [12:59:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412193", "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" ] } } [12:59:18]execute_script... [12:59: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)412193", "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" ] } } [12:59:18]POST & json_proto [12:59:18]process_json_proto [12:59:18]json parsed OK: [12:59:18]protocol is kg_v1.0 [12:59:18]action value=close_receipt [12:59:18]process_action close_receipt [12:59:18]cmd_close_receipt [12:59:18]MH_GetDate [12:59:18]Write to MH i2c: F0 00 00 2C 20 3B [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: F0 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: F0 09 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: F0 09 00 2C 20 00 A9 D5 B5 67 7E 41 4F 65 51 [12:59:18]GetLastDocTimeStamp 1739969488 [12:59:18]current date 1739969961 [12:59:18]FM_GetShiftState [12:59:18]SAM_PROTO_GetShiftState [12:59:18]wFMCommunicate request_size=4 [12:59:18]MH_SAM_APDU [12:59:18]CAPDU: 80 13 01 00 [12:59:18]Write to MH i2c: E2 08 00 2D 20 80 13 01 00 00 00 00 00 CA [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:18]Read from MH i2c: E2 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: E2 0E 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: E2 0E 00 2D 20 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 49 [12:59:18]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:59:18]wFMCommunicate OK [12:59:18]SAM_PROTO_GetShiftState done [12:59:18]FM_GetShiftState done [12:59:18]opened in 1739929631 [12:59:18]opened+sec_in_day 1740016031 [12:59:18]quantity*price = 100023 [12:59:18]sum+1 = 100025 [12:59:18]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 СНО: Общий режим Чек 108 19.02.2025 12:59 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187042 ФПД: 7652002062205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T125921&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187042&fm=7652002062205&tin=02508201610067®Number=0000000000091857&sum=100000 [12:59:19]StoreToDocumentArchive [12:59:19]shift 647 fd 187042 [12:59:19]save to /storage/0647/doc_00187042 [12:59:19]save last doc name /storage/0647/doc_00187042 to /storage/kkm_last_doc_name [12:59:19]save OK [12:59:19]Clear old archive folders... [12:59:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:19]tlvbuf is 005DF090 [12:59:19]SAM_PROTO_ClearQueue [12:59:19]wFMCommunicate request_size=4 [12:59:19]MH_SAM_APDU [12:59:19]CAPDU: 80 09 00 00 [12:59:19]Write to MH i2c: E2 08 00 3A 20 80 09 00 00 00 00 00 00 CC [12:59:19]Write i2c OK [12:59:19]MH_I2C_Read... [12:59:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:19]Read from MH i2c: E2 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 03 00 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 03 00 3A 20 00 90 00 CE [12:59:19]RAPDU: 90 00 [12:59:19]wFMCommunicate OK [12:59:19]SAM_PROTO_ClearQueue done [12:59:19]KKMCreateOFDPacket [12:59:19]OFDProtocolAddRootSTLVToBuf [12:59:19]FM_MakeSignedData [12:59:19]FM_MakeSignedData [12:59:19]SAM_PROTO_SignData [12:59:19]wFMCommunicate request_size=4 [12:59:19]MH_SAM_APDU [12:59:19]CAPDU: 80 0D 01 02 [12:59:19]Write to MH i2c: E2 08 00 3B 20 80 0D 01 02 00 00 00 00 D4 [12:59:19]Write i2c OK [12:59:19]MH_I2C_Read... [12:59:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:19]Read from MH i2c: E2 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 03 00 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 03 00 3B 20 00 90 00 CF [12:59:19]RAPDU: 90 00 [12:59:19]wFMCommunicate OK [12:59:19]wFMCommunicate request_size=255 [12:59:19]MH_SAM_APDU [12:59: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 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 6C 00 00 00 F4 03 04 00 A9 D5 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 A2 DA 02 00 35 04 06 00 06 [12:59:19]Write to MH i2c: E2 02 01 3C 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 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 6C 00 00 00 F4 03 04 00 A9 D5 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 A2 DA 02 00 35 04 06 00 06 00 00 E4 [12:59:19]Write i2c OK [12:59:19]MH_I2C_Read... [12:59:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:19]Read from MH i2c: E2 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 03 00 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 03 00 3C 20 00 90 00 D0 [12:59:19]RAPDU: 90 00 [12:59:19]wFMCommunicate OK [12:59:19]wFMCommunicate request_size=10 [12:59:19]MH_SAM_APDU [12:59:19]CAPDU: 80 0D 02 02 05 F5 9E DD 5F 7D [12:59:19]Write to MH i2c: E2 0D 00 3D 20 80 0D 02 02 05 00 F5 9E DD 5F 7D 00 00 2D [12:59:19]Write i2c OK [12:59:19]MH_I2C_Read... [12:59:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:19]Read from MH i2c: E2 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 03 00 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 03 00 3D 20 00 90 00 D1 [12:59:19]RAPDU: 90 00 [12:59:19]wFMCommunicate OK [12:59:19]wFMCommunicate request_size=4 [12:59:19]MH_SAM_APDU [12:59:19]CAPDU: 80 0D 03 02 [12:59:19]Write to MH i2c: E2 08 00 3E 20 80 0D 03 02 00 00 00 00 D9 [12:59:19]Write i2c OK [12:59:19]MH_I2C_Read... [12:59:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:19]Read from MH i2c: E2 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 0B 00 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 0B 00 3E 20 00 48 FE C9 BA 64 59 54 25 90 00 D9 [12:59:19]RAPDU: 48 FE C9 BA 64 59 54 25 90 00 [12:59:19]wFMCommunicate OK [12:59:19]SAM_PROTO_SignData done [12:59:19]FM_MakeSignedData done [12:59:19]CreateOFDProtocolMessage [12:59:19]wFMCommunicate request_size=4 [12:59:19]MH_SAM_APDU [12:59:19]CAPDU: 80 11 00 00 [12:59:19]Write to MH i2c: E2 08 00 3F 20 80 11 00 00 00 00 00 00 D9 [12:59:19]Write i2c OK [12:59:19]MH_I2C_Read... [12:59:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:19]Read from MH i2c: E2 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 17 00 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: E2 17 00 3F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2C [12:59:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:59:19]wFMCommunicate OK [12:59:19]CreateOFDProtocolMessage done [12:59:19]OFDSenderStorePacket 187042 [12:59:19]StoreOFDPacket docnum=187042 [12:59:19]87 95 F6 70 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 17 07 01 26 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6C 00 00 00 F4 03 04 00 A9 D5 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 A2 DA 02 00 35 04 06 00 06 F5 9E DD 5F 7D 48 FE C9 BA 64 59 54 25 [12:59:19]CheckFolder [12:59:19]dirname=/storage/ofd_packets [12:59:19]CheckFolder done [12:59:19]ProducePacketName [12:59:19]name=ofd_packets/00187042 [12:59:19]NVStorageSaveData ofd_packets/00187042 [12:59:19]File name is /storage/ofd_packets/00187042 [12:59:19]Write 301 bytes [12:59:19]NVStorageSaveData done [12:59:19]OFDSenderStorePacket done [12:59:19]KKMCreateOFDPacket done [12:59:19]NVStorageSaveData kkm_last_timestamp [12:59:19]File name is /storage/kkm_last_timestamp [12:59:19]Write 4 bytes [12:59:19]NVStorageSaveData done [12:59:19]ExternCall_PrintAddStr [12:59:19]wPrintStart [12:59:19]Write to MH i2c: 01 00 00 40 20 60 [12:59:19]Write i2c OK [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: 01 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: 01 07 00 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: 01 07 00 40 20 00 00 00 00 00 FF 0F 75 [12:59:19]RasterBufferAndPrint [12:59:19]line Счет N : (1)412193 [12:59:19]line ИНН: 02508201610067 [12:59:19]line Контрольно-Кассовый Чек [12:59:19]line ПРОДАЖА [12:59:19]line ТРК (МРК, ГНК) : 42 [12:59:19]line Товар: 2710124130 [12:59:19]line Аи-92-К-2 [12:59:19]line 15.580 * 64.20 [12:59:19]line = 1000.24 [12:59:19]line НДС 12% НСП 1% [12:59:19]line > о реализуемом товаре [12:59:19]line ОКРУГЛЕНИЕ: -0.24 [12:59:19]line ИТОГО: 1000.00 [12:59:19]line Внесено: 1000.00 [12:59:19]line СДАЧА: 0.00 [12:59:19]line НСП 1% : 8.85 [12:59:19]line НДС 12% : 106.22 [12:59:19]line Наличными: 1000.00 [12:59:19]line Безнал.: 0.00 [12:59:19]line Место: АЗС № 92 "Партнер Нефть" [12:59:19]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:59:19]line СНО: Общий режим [12:59:19]line Чек 108 19.02.2025 12:59 [12:59:19]line Смена: 647 ФФД: 1.0 [12:59:19]line ЗНМ: 0300000118 [12:59:19]line РНМ: 0000000000091857 [12:59:19]line Версия ККМ: 001 [12:59:19]line ФМ: 0000000000871826 [12:59:19]line ФД: 187042 [12:59:19]line ФПД: 7652002062205 [12:59:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T125921&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187042&fm=7652002062205&tin=02508201610067®Number=0000000000091857&sum=100000 [12:59:20]OFD Sender: Processing packet 187042 [packets to send 49, broken 48] [12:59:20]ProducePacketName [12:59:20]name=ofd_packets/00187042 [12:59:20]OFD Sender: To server: pG, [12:59:20]CommunicateWithHost lk.salyk.kg:30040 [12:59:20]ConnectInit lk.salyk.kg [12:59:20]written 0, free lines is 4095 [12:59:20]Connected sock=10 [12:59: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 B3 17 07 01 26 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6C 00 00 00 F4 03 04 00 A9 D5 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 A2 DA 02 00 35 04 06 00 06 F5 9E DD 5F 7D 48 FE C9 BA 64 59 54 25 [12:59: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 05 BA 47 00 E6 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 A2 DA 02 00 F4 03 04 00 FD 7B B5 67 B6 04 01 00 00 32 93 D8 97 DF 5D 8D A4 [12:59:20]CommunicateWithHost err = 0 [12:59:20]CheckOFDResponse [12:59:20]1017 (14) - 77093643461234 [12:59:20]1041 (16) - 0000000000871826 [12:59:20]1040 (4) - 187042 [12:59:20]1012 (4) - 19.02.2025 06:36 [12:59:20]1206 (1) - 0 [12:59:20]OFD Sender: Remove packet 187042 [12:59:20]ProducePacketName [12:59:20]name=ofd_packets/00187042 [12:59:20]NVStorageDeleteData [12:59:20]Write to MH i2c: 01 00 00 6B 20 8B [12:59:20]Write i2c OK [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: 01 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: 01 07 00 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: 01 07 00 6B 20 00 00 00 00 00 F6 0C 94 [12:59:20]RasterBufferAndPrint [12:59:20]line [12:59:20]line [12:59:20]line [12:59:20]line [12:59:20]line [12:59:20]written 0, free lines is 3324 [12:59:20]MH_Cut [12:59:20]Write to MH i2c: D1 01 00 72 20 01 64 [12:59:20]Write i2c OK [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: D1 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: D1 01 00 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: D1 01 00 72 20 00 63 [12:59:20]Write to MH i2c: 01 00 00 73 20 93 [12:59:20]Write i2c OK [12:59:20]MH_I2C_Read... [12:59:21]OFD Sender: No OFD packet to send [12:59:21]*** Cut start [12:59:21]*** Partial cut [12:59:21]*** CUTSNS_PIN = 1 [12:59:21]*** CUTSNS_PIN = 0 [12:59:21]*** Brake cut motor [12:59:22]Read from MH i2c: 01 [12:59:22]MH_I2C_Read... [12:59:22]*** Stop cut motor [12:59:22]*** Cut end [12:59:22]Read from MH i2c: 01 07 00 [12:59:22]MH_I2C_Read... [12:59:22]Read from MH i2c: 01 07 00 73 20 00 00 00 00 00 FF 0F A8 [12:59:22]process_action close_receipt done [12:59:22]requested_data is exist [12:59:22]produce_requested_data [12:59:22]requested_item fm.sn is exist - process it [12:59:22]wFMCommunicate request_size=4 [12:59:22]MH_SAM_APDU [12:59:22]CAPDU: 80 11 00 00 [12:59:22]Write to MH i2c: E2 08 00 74 20 80 11 00 00 00 00 00 00 0E [12:59:22]Write i2c OK [12:59:22]MH_I2C_Read... [12:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:22]Read from MH i2c: E2 [12:59:22]MH_I2C_Read... [12:59:22]Read from MH i2c: E2 17 00 [12:59:22]MH_I2C_Read... [12:59:22]Read from MH i2c: E2 17 00 74 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 61 [12:59:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:59:22]wFMCommunicate OK [12:59:22]requested_item fd.num is exist - process it [12:59:22]SAM_PROTO_GetFieldsCounters [12:59:22]wFMCommunicate request_size=4 [12:59:22]MH_SAM_APDU [12:59:22]CAPDU: 80 13 00 00 [12:59:22]Write to MH i2c: E2 08 00 75 20 80 13 00 00 00 00 00 00 11 [12:59:22]Write i2c OK [12:59:22]MH_I2C_Read... [12:59:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:22]Read from MH i2c: E2 [12:59:22]MH_I2C_Read... [12:59:22]Read from MH i2c: E2 62 00 [12:59:22]MH_I2C_Read... [12:59:22]Read from MH i2c: E2 62 00 75 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 A2 DA 02 00 0E 04 04 00 87 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 82 [12:59: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 A2 DA 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:22]wFMCommunicate OK [12:59:22]SAM_PROTO_GetFieldsCounters done [12:59:22]requested_item shift.num is exist - process it [12:59:22]requested_item shift.opened is exist - process it [12:59:22]req_shift_opened [12:59:22]FM_GetShiftState [12:59:22]SAM_PROTO_GetShiftState [12:59:22]wFMCommunicate request_size=4 [12:59:22]MH_SAM_APDU [12:59:22]CAPDU: 80 13 01 00 [12:59:22]Write to MH i2c: E2 08 00 76 20 80 13 01 00 00 00 00 00 13 [12:59:22]Write i2c OK [12:59:22]MH_I2C_Read... [12:59:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:22]Read from MH i2c: E2 [12:59:22]MH_I2C_Read... [12:59:22]Read from MH i2c: E2 0E 00 [12:59:22]MH_I2C_Read... [12:59:22]Read from MH i2c: E2 0E 00 76 20 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 92 [12:59:22]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [12:59:22]wFMCommunicate OK [12:59:22]SAM_PROTO_GetShiftState done [12:59:22]FM_GetShiftState done [12:59:22]req_shift_opened done [12:59:22]requested_item shift.open_date is exist - process it [12:59:22]req_shift_open_date [12:59:22]req_shift_open_date done [12:59:22]produce_requested_data done [12:59:22]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187042,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [12:59:22]process_action_free close_receipt [12:59:22]json_value_free [12:59:22]json_value_free done [12:59:22]process_json_proto returns [12:59:22]Send response to host [12:59:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187042,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [12:59:22]free response buf [12:59:22]execute_script done [12:59:22]execute_script returns [12:59:22]free content buf [12:59:22]Sock 9.Close socket [12:59:22]Sock 9.Thread stoped [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [12:59:36]OFD Sender: No OFD packet to send [12:59:41]OFD Sender: No OFD packet to send [12:59:46]OFD Sender: No OFD packet to send [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:01]OFD Sender: No OFD packet to send [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:51]OFD Sender: No OFD packet to send [13:00:56]OFD Sender: No OFD packet to send [13:00:57]accept exits with 7 [13:00:57]New connection [13:00:57]New thread 3067022692 created [13:00:57]Thread 3066879332 joined [13:00:57]Waiting for new connection... [13:00:57] Sock 7.Parse request [13:00:57]Sock 7.Check first char [13:00:57]Sock 7.First char is OK [13:00:57]request: POST /json_proto HTTP/1.0 [13:00:57]Method: POST [13:00:57]URL: /json_proto [13:00:57]Method is POST - this is cgi request [13:00:57]url: /json_proto [13:00:57]query_string will be loaded in cgi processing [13:00:57]execute_cgi json_proto POST (null) [13:00:57]execute_cgi path=json_proto method=POST [13:00:57]POST find Content-Length [13:00:57]Host: 172.17.46.131:8080 [13:00:57]Content-Length: 800 [13:00:57]Content-Type: application/json [13:00:57] [13:00:57]POST finish read [13:00:57]Found Content-Length = 800 [13:00:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412194", "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" : 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" ] } } [13:00:57]execute_script... [13:00:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412194", "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" : 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" ] } } [13:00:57]POST & json_proto [13:00:57]process_json_proto [13:00:57]json parsed OK: [13:00:57]protocol is kg_v1.0 [13:00:57]action value=close_receipt [13:00:57]process_action close_receipt [13:00:57]cmd_close_receipt [13:00:57]MH_GetDate [13:00:57]Write to MH i2c: F0 00 00 77 20 86 [13:00:57]Write i2c OK [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: F0 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: F0 09 00 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: F0 09 00 77 20 00 0D D6 B5 67 7E 41 4F 65 01 [13:00:57]GetLastDocTimeStamp 1739969961 [13:00:57]current date 1739970061 [13:00:57]FM_GetShiftState [13:00:57]SAM_PROTO_GetShiftState [13:00:57]wFMCommunicate request_size=4 [13:00:57]MH_SAM_APDU [13:00:57]CAPDU: 80 13 01 00 [13:00:57]Write to MH i2c: E2 08 00 78 20 80 13 01 00 00 00 00 00 15 [13:00:57]Write i2c OK [13:00:57]MH_I2C_Read... [13:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:57]Read from MH i2c: E2 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: E2 0E 00 [13:00:57]MH_I2C_Read... [13:00:57]Read from MH i2c: E2 0E 00 78 20 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 94 [13:00:57]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:00:57]wFMCommunicate OK [13:00:57]SAM_PROTO_GetShiftState done [13:00:57]FM_GetShiftState done [13:00:57]opened in 1739929631 [13:00:57]opened+sec_in_day 1740016031 [13:00:57]quantity*price = 40060 [13:00:57]sum+1 = 40062 [13:00:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.61 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 0.00 Безнал.: 400.61 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 109 19.02.2025 13:01 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187043 ФПД: 51757917406681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T130101&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187043&fm=51757917406681&tin=02508201610067®Number=0000000000091857&sum=40061 [13:00:59]StoreToDocumentArchive [13:00:59]shift 647 fd 187043 [13:00:59]save to /storage/0647/doc_00187043 [13:00:59]save last doc name /storage/0647/doc_00187043 to /storage/kkm_last_doc_name [13:00:59]save OK [13:00:59]Clear old archive folders... [13:00:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:59]tlvbuf is 00675BB0 [13:00:59]SAM_PROTO_ClearQueue [13:00:59]wFMCommunicate request_size=4 [13:00:59]MH_SAM_APDU [13:00:59]CAPDU: 80 09 00 00 [13:00:59]Write to MH i2c: E2 08 00 85 20 80 09 00 00 00 00 00 00 17 [13:00:59]Write i2c OK [13:00:59]MH_I2C_Read... [13:00:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:59]Read from MH i2c: E2 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 03 00 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 03 00 85 20 00 90 00 19 [13:00:59]RAPDU: 90 00 [13:00:59]wFMCommunicate OK [13:00:59]SAM_PROTO_ClearQueue done [13:00:59]KKMCreateOFDPacket [13:00:59]OFDProtocolAddRootSTLVToBuf [13:00:59]FM_MakeSignedData [13:00:59]FM_MakeSignedData [13:00:59]SAM_PROTO_SignData [13:00:59]wFMCommunicate request_size=4 [13:00:59]MH_SAM_APDU [13:00:59]CAPDU: 80 0D 01 02 [13:00:59]Write to MH i2c: E2 08 00 86 20 80 0D 01 02 00 00 00 00 1F [13:00:59]Write i2c OK [13:00:59]MH_I2C_Read... [13:00:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:59]Read from MH i2c: E2 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 03 00 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 03 00 86 20 00 90 00 1A [13:00:59]RAPDU: 90 00 [13:00:59]wFMCommunicate OK [13:00:59]wFMCommunicate request_size=255 [13:00:59]MH_SAM_APDU [13:00: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 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 6D 00 00 00 F4 03 04 00 0D D6 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 A3 DA 02 00 35 04 06 00 2F [13:00:59]Write to MH i2c: E2 02 01 87 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 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 6D 00 00 00 F4 03 04 00 0D D6 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 A3 DA 02 00 35 04 06 00 2F 00 00 CF [13:00:59]Write i2c OK [13:00:59]MH_I2C_Read... [13:00:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:59]Read from MH i2c: E2 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 03 00 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 03 00 87 20 00 90 00 1B [13:00:59]RAPDU: 90 00 [13:00:59]wFMCommunicate OK [13:00:59]wFMCommunicate request_size=10 [13:00:59]MH_SAM_APDU [13:00:59]CAPDU: 80 0D 02 02 05 12 D4 48 05 D9 [13:00:59]Write to MH i2c: E2 0D 00 88 20 80 0D 02 02 05 00 12 D4 48 05 D9 00 00 38 [13:00:59]Write i2c OK [13:00:59]MH_I2C_Read... [13:00:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:59]Read from MH i2c: E2 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 03 00 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 03 00 88 20 00 90 00 1C [13:00:59]RAPDU: 90 00 [13:00:59]wFMCommunicate OK [13:00:59]wFMCommunicate request_size=4 [13:00:59]MH_SAM_APDU [13:00:59]CAPDU: 80 0D 03 02 [13:00:59]Write to MH i2c: E2 08 00 89 20 80 0D 03 02 00 00 00 00 24 [13:00:59]Write i2c OK [13:00:59]MH_I2C_Read... [13:00:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:59]Read from MH i2c: E2 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 0B 00 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 0B 00 89 20 00 9F D7 73 47 4E 42 32 3C 90 00 53 [13:00:59]RAPDU: 9F D7 73 47 4E 42 32 3C 90 00 [13:00:59]wFMCommunicate OK [13:00:59]SAM_PROTO_SignData done [13:00:59]FM_MakeSignedData done [13:00:59]CreateOFDProtocolMessage [13:00:59]wFMCommunicate request_size=4 [13:00:59]MH_SAM_APDU [13:00:59]CAPDU: 80 11 00 00 [13:00:59]Write to MH i2c: E2 08 00 8A 20 80 11 00 00 00 00 00 00 24 [13:00:59]Write i2c OK [13:00:59]MH_I2C_Read... [13:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:59]Read from MH i2c: E2 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 17 00 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: E2 17 00 8A 20 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:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:00:59]wFMCommunicate OK [13:00:59]CreateOFDProtocolMessage done [13:00:59]OFDSenderStorePacket 187043 [13:00:59]StoreOFDPacket docnum=187043 [13:00: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 48 FD 07 01 F8 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6D 00 00 00 F4 03 04 00 0D D6 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 A3 DA 02 00 35 04 06 00 2F 12 D4 48 05 D9 9F D7 73 47 4E 42 32 3C [13:00:59]CheckFolder [13:00:59]dirname=/storage/ofd_packets [13:00:59]CheckFolder done [13:00:59]ProducePacketName [13:00:59]name=ofd_packets/00187043 [13:00:59]NVStorageSaveData ofd_packets/00187043 [13:00:59]File name is /storage/ofd_packets/00187043 [13:00:59]Write 301 bytes [13:00:59]NVStorageSaveData done [13:00:59]OFDSenderStorePacket done [13:00:59]KKMCreateOFDPacket done [13:00:59]NVStorageSaveData kkm_last_timestamp [13:00:59]File name is /storage/kkm_last_timestamp [13:00:59]Write 4 bytes [13:00:59]NVStorageSaveData done [13:00:59]ExternCall_PrintAddStr [13:00:59]wPrintStart [13:00:59]Write to MH i2c: 01 00 00 8B 20 AB [13:00:59]Write i2c OK [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: 01 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: 01 07 00 [13:00:59]MH_I2C_Read... [13:00:59]Read from MH i2c: 01 07 00 8B 20 00 00 00 00 00 FF 0F C0 [13:00:59]RasterBufferAndPrint [13:00:59]line Счет N : (1)412194 [13:00:59]line ИНН: 02508201610067 [13:00:59]line Контрольно-Кассовый Чек [13:00:59]line ПРОДАЖА [13:00:59]line ТРК (МРК, ГНК) : 32 [13:00:59]line Товар: 2710124130 [13:00:59]line Аи-92-К-2 [13:00:59]line 6.240 * 64.20 [13:00:59]line = 400.61 [13:00:59]line НДС 12% НСП 1% [13:00:59]line > о реализуемом товаре [13:00:59]line ИТОГО: 400.61 [13:00:59]line НСП 1% : 3.54 [13:00:59]line НДС 12% : 42.54 [13:00:59]line Наличными: 0.00 [13:00:59]line Безнал.: 400.61 [13:00:59]line Место: АЗС № 92 "Партнер Нефть" [13:00:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:00:59]line СНО: Общий режим [13:00:59]line Чек 109 19.02.2025 13:01 [13:00:59]line Смена: 647 ФФД: 1.0 [13:00:59]line ЗНМ: 0300000118 [13:00:59]line РНМ: 0000000000091857 [13:00:59]line Версия ККМ: 001 [13:00:59]line Платежная система: O! деньги [13:00:59]line ФМ: 0000000000871826 [13:00:59]line ФД: 187043 [13:00:59]line ФПД: 51757917406681 [13:00:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T130101&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187043&fm=51757917406681&tin=02508201610067®Number=0000000000091857&sum=40061 [13:00:59]OFD Sender: Processing packet 187043 [packets to send 49, broken 48] [13:00:59]ProducePacketName [13:00:59]name=ofd_packets/00187043 [13:00:59]OFD Sender: To server: pG, [13:00:59]CommunicateWithHost lk.salyk.kg:30040 [13:00:59]ConnectInit lk.salyk.kg [13:00:59]written 0, free lines is 4095 [13:01:00]Connected sock=10 [13:01: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 48 FD 07 01 F8 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6D 00 00 00 F4 03 04 00 0D D6 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 A3 DA 02 00 35 04 06 00 2F 12 D4 48 05 D9 9F D7 73 47 4E 42 32 3C [13:01:00]Write to MH i2c: 01 00 00 B5 20 D5 [13:01:00]Write i2c OK [13:01:00]MH_I2C_Read... [13:01:00]Read from MH i2c: 01 [13:01:00]MH_I2C_Read... [13:01:00]Read from MH i2c: 01 07 00 [13:01:00]MH_I2C_Read... [13:01:00]Read from MH i2c: 01 07 00 B5 20 00 00 00 00 00 08 0D F1 [13:01:00]RasterBufferAndPrint [13:01:00]line [13:01:00]line [13:01:00]line [13:01:00]line [13:01:00]line [13:01:00]written 0, free lines is 3343 [13:01: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 B2 1F 47 00 CE 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 A3 DA 02 00 F4 03 04 00 61 7C B5 67 B6 04 01 00 00 61 AA 62 CB 10 09 9D A6 [13:01:00]CommunicateWithHost err = 0 [13:01:00]CheckOFDResponse [13:01:00]1017 (14) - 77093643461234 [13:01:00]1041 (16) - 0000000000871826 [13:01:00]1040 (4) - 187043 [13:01:00]1012 (4) - 19.02.2025 06:38 [13:01:00]1206 (1) - 0 [13:01:00]OFD Sender: Remove packet 187043 [13:01:00]ProducePacketName [13:01:00]name=ofd_packets/00187043 [13:01:00]NVStorageDeleteData [13:01:00]MH_Cut [13:01:00]Write to MH i2c: D1 01 00 BC 20 01 AE [13:01:00]Write i2c OK [13:01:00]MH_I2C_Read... [13:01:00]Read from MH i2c: D1 [13:01:00]MH_I2C_Read... [13:01:00]Read from MH i2c: D1 01 00 [13:01:00]MH_I2C_Read... [13:01:00]Read from MH i2c: D1 01 00 BC 20 00 AD [13:01:00]Write to MH i2c: 01 00 00 BD 20 DD [13:01:00]Write i2c OK [13:01:00]MH_I2C_Read... [13:01:00]OFD Sender: No OFD packet to send [13:01:01]*** Cut start [13:01:01]*** Partial cut [13:01:01]*** CUTSNS_PIN = 1 [13:01:01]*** CUTSNS_PIN = 0 [13:01:01]*** Brake cut motor [13:01:01]Read from MH i2c: 01 [13:01:01]MH_I2C_Read... [13:01:01]*** Stop cut motor [13:01:01]*** Cut end [13:01:01]Read from MH i2c: 01 07 00 [13:01:01]MH_I2C_Read... [13:01:01]Read from MH i2c: 01 07 00 BD 20 00 00 00 00 00 FF 0F F2 [13:01:01]process_action close_receipt done [13:01:01]requested_data is exist [13:01:01]produce_requested_data [13:01:01]requested_item fm.sn is exist - process it [13:01:01]wFMCommunicate request_size=4 [13:01:01]MH_SAM_APDU [13:01:01]CAPDU: 80 11 00 00 [13:01:01]Write to MH i2c: E2 08 00 BE 20 80 11 00 00 00 00 00 00 58 [13:01:01]Write i2c OK [13:01:01]MH_I2C_Read... [13:01:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:01]Read from MH i2c: E2 [13:01:01]MH_I2C_Read... [13:01:01]Read from MH i2c: E2 17 00 [13:01:01]MH_I2C_Read... [13:01:01]Read from MH i2c: E2 17 00 BE 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AB [13:01:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:01:01]wFMCommunicate OK [13:01:01]requested_item fd.num is exist - process it [13:01:01]SAM_PROTO_GetFieldsCounters [13:01:01]wFMCommunicate request_size=4 [13:01:01]MH_SAM_APDU [13:01:01]CAPDU: 80 13 00 00 [13:01:01]Write to MH i2c: E2 08 00 BF 20 80 13 00 00 00 00 00 00 5B [13:01:01]Write i2c OK [13:01:01]MH_I2C_Read... [13:01:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:01]Read from MH i2c: E2 [13:01:01]MH_I2C_Read... [13:01:01]Read from MH i2c: E2 62 00 [13:01:01]MH_I2C_Read... [13:01:01]Read from MH i2c: E2 62 00 BF 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 A3 DA 02 00 0E 04 04 00 87 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 D0 [13:01:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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:01:01]wFMCommunicate OK [13:01:01]SAM_PROTO_GetFieldsCounters done [13:01:01]requested_item shift.num is exist - process it [13:01:01]requested_item shift.opened is exist - process it [13:01:01]req_shift_opened [13:01:01]FM_GetShiftState [13:01:01]SAM_PROTO_GetShiftState [13:01:01]wFMCommunicate request_size=4 [13:01:01]MH_SAM_APDU [13:01:01]CAPDU: 80 13 01 00 [13:01:01]Write to MH i2c: E2 08 00 C0 20 80 13 01 00 00 00 00 00 5D [13:01:01]Write i2c OK [13:01:01]MH_I2C_Read... [13:01:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:01]Read from MH i2c: E2 [13:01:01]MH_I2C_Read... [13:01:01]Read from MH i2c: E2 0E 00 [13:01:01]MH_I2C_Read... [13:01:01]Read from MH i2c: E2 0E 00 C0 20 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 DC [13:01:01]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:01:01]wFMCommunicate OK [13:01:01]SAM_PROTO_GetShiftState done [13:01:01]FM_GetShiftState done [13:01:01]req_shift_opened done [13:01:01]requested_item shift.open_date is exist - process it [13:01:01]req_shift_open_date [13:01:01]req_shift_open_date done [13:01:01]produce_requested_data done [13:01:01]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187043,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [13:01:01]process_action_free close_receipt [13:01:01]json_value_free [13:01:01]json_value_free done [13:01:01]process_json_proto returns [13:01:01]Send response to host [13:01:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187043,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [13:01:01]free response buf [13:01:01]execute_script done [13:01:01]execute_script returns [13:01:01]free content buf [13:01:01]Sock 7.Close socket [13:01:01]Sock 7.Thread stoped [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:56]OFD Sender: No OFD packet to send [13:05:01]OFD Sender: No OFD packet to send [13:05:06]OFD Sender: No OFD packet to send [13:05:11]OFD Sender: No OFD packet to send [13:05: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:31]OFD Sender: No OFD packet to send [13:05:36]OFD Sender: No OFD packet to send [13:05:41]OFD Sender: No OFD packet to send [13:05:46]OFD Sender: No OFD packet to send [13:05:51]OFD Sender: No OFD packet to send [13:05:56]OFD Sender: No OFD packet to send [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:22]accept exits with 9 [13:06:22]New connection [13:06:22]New thread 3066879332 created [13:06:22]Thread 3067022692 joined [13:06:22]Waiting for new connection... [13:06:22] Sock 9.Parse request [13:06:22]Sock 9.Check first char [13:06:22]Sock 9.First char is OK [13:06:22]request: POST /json_proto HTTP/1.0 [13:06:22]Method: POST [13:06:22]URL: /json_proto [13:06:22]Method is POST - this is cgi request [13:06:22]url: /json_proto [13:06:22]query_string will be loaded in cgi processing [13:06:22]execute_cgi json_proto POST (null) [13:06:22]execute_cgi path=json_proto method=POST [13:06:22]POST find Content-Length [13:06:22]Host: 172.17.46.131:8080 [13:06:22]Content-Length: 799 [13:06:22]Content-Type: application/json [13:06:22] [13:06:22]POST finish read [13:06:22]Found Content-Length = 799 [13:06:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412195", "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" ] } } [13:06:22]execute_script... [13:06: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)412195", "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" ] } } [13:06:22]POST & json_proto [13:06:22]process_json_proto [13:06:22]json parsed OK: [13:06:22]protocol is kg_v1.0 [13:06:22]action value=close_receipt [13:06:22]process_action close_receipt [13:06:22]cmd_close_receipt [13:06:22]MH_GetDate [13:06:22]Write to MH i2c: F0 00 00 C1 20 D0 [13:06:22]Write i2c OK [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: F0 [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: F0 09 00 [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: F0 09 00 C1 20 00 51 D7 B5 67 7E 41 4F 65 90 [13:06:22]GetLastDocTimeStamp 1739970061 [13:06:22]current date 1739970385 [13:06:22]FM_GetShiftState [13:06:22]SAM_PROTO_GetShiftState [13:06:22]wFMCommunicate request_size=4 [13:06:22]MH_SAM_APDU [13:06:22]CAPDU: 80 13 01 00 [13:06:22]Write to MH i2c: E2 08 00 C2 20 80 13 01 00 00 00 00 00 5F [13:06:22]Write i2c OK [13:06:22]MH_I2C_Read... [13:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:22]Read from MH i2c: E2 [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: E2 0E 00 [13:06:22]MH_I2C_Read... [13:06:22]Read from MH i2c: E2 0E 00 C2 20 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 DE [13:06:22]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:06:22]wFMCommunicate OK [13:06:22]SAM_PROTO_GetShiftState done [13:06:22]FM_GetShiftState done [13:06:22]opened in 1739929631 [13:06:22]opened+sec_in_day 1740016031 [13:06:22]quantity*price = 200013 [13:06:22]sum+1 = 200014 [13:06:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.13 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.13 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 110 19.02.2025 13:06 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187044 ФПД: 225619943984267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T130625&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187044&fm=225619943984267&tin=02508201610067®Number=0000000000091857&sum=200013 [13:06:23]StoreToDocumentArchive [13:06:23]shift 647 fd 187044 [13:06:23]save to /storage/0647/doc_00187044 [13:06:23]save last doc name /storage/0647/doc_00187044 to /storage/kkm_last_doc_name [13:06:23]save OK [13:06:23]Clear old archive folders... [13:06:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:06:23]tlvbuf is 00649050 [13:06:23]SAM_PROTO_ClearQueue [13:06:23]wFMCommunicate request_size=4 [13:06:23]MH_SAM_APDU [13:06:23]CAPDU: 80 09 00 00 [13:06:23]Write to MH i2c: E2 08 00 CF 20 80 09 00 00 00 00 00 00 61 [13:06:23]Write i2c OK [13:06:23]MH_I2C_Read... [13:06:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:23]Read from MH i2c: E2 [13:06:23]MH_I2C_Read... [13:06:23]Read from MH i2c: E2 03 00 [13:06:23]MH_I2C_Read... [13:06:23]Read from MH i2c: E2 03 00 CF 20 00 90 00 63 [13:06:23]RAPDU: 90 00 [13:06:23]wFMCommunicate OK [13:06:23]SAM_PROTO_ClearQueue done [13:06:23]KKMCreateOFDPacket [13:06:23]OFDProtocolAddRootSTLVToBuf [13:06:23]FM_MakeSignedData [13:06:23]FM_MakeSignedData [13:06:23]SAM_PROTO_SignData [13:06:23]wFMCommunicate request_size=4 [13:06:23]MH_SAM_APDU [13:06:23]CAPDU: 80 0D 01 02 [13:06:23]Write to MH i2c: E2 08 00 D0 20 80 0D 01 02 00 00 00 00 69 [13:06:23]Write i2c OK [13:06:23]MH_I2C_Read... [13:06:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:23]Read from MH i2c: E2 [13:06:23]MH_I2C_Read... [13:06:23]Read from MH i2c: E2 03 00 [13:06:23]MH_I2C_Read... [13:06:23]Read from MH i2c: E2 03 00 D0 20 00 90 00 64 [13:06:23]RAPDU: 90 00 [13:06:23]wFMCommunicate OK [13:06:23]wFMCommunicate request_size=255 [13:06:23]MH_SAM_APDU [13:06:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 6E 00 00 00 F4 03 04 00 51 D7 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 A4 DA 02 00 35 04 06 00 CD 33 3C 9D [13:06:23]Write to MH i2c: E2 02 01 D1 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 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 6E 00 00 00 F4 03 04 00 51 D7 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 A4 DA 02 00 35 04 06 00 CD 33 3C 9D 00 00 31 [13:06:23]Write i2c OK [13:06:23]MH_I2C_Read... [13:06:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:24]Read from MH i2c: E2 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: E2 03 00 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: E2 03 00 D1 20 00 90 00 65 [13:06:24]RAPDU: 90 00 [13:06:24]wFMCommunicate OK [13:06:24]wFMCommunicate request_size=7 [13:06:24]MH_SAM_APDU [13:06:24]CAPDU: 80 0D 02 02 02 8C 8B [13:06:24]Write to MH i2c: E2 0A 00 D2 20 80 0D 02 02 02 00 8C 8B 00 00 87 [13:06:24]Write i2c OK [13:06:24]MH_I2C_Read... [13:06:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:24]Read from MH i2c: E2 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: E2 03 00 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: E2 03 00 D2 20 00 90 00 66 [13:06:24]RAPDU: 90 00 [13:06:24]wFMCommunicate OK [13:06:24]wFMCommunicate request_size=4 [13:06:24]MH_SAM_APDU [13:06:24]CAPDU: 80 0D 03 02 [13:06:24]Write to MH i2c: E2 08 00 D3 20 80 0D 03 02 00 00 00 00 6E [13:06:24]Write i2c OK [13:06:24]MH_I2C_Read... [13:06:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:24]Read from MH i2c: E2 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: E2 0B 00 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: E2 0B 00 D3 20 00 1C 3C F8 77 EA 98 F1 1A 90 00 C3 [13:06:24]RAPDU: 1C 3C F8 77 EA 98 F1 1A 90 00 [13:06:24]wFMCommunicate OK [13:06:24]SAM_PROTO_SignData done [13:06:24]FM_MakeSignedData done [13:06:24]CreateOFDProtocolMessage [13:06:24]wFMCommunicate request_size=4 [13:06:24]MH_SAM_APDU [13:06:24]CAPDU: 80 11 00 00 [13:06:24]Write to MH i2c: E2 08 00 D4 20 80 11 00 00 00 00 00 00 6E [13:06:24]Write i2c OK [13:06:24]MH_I2C_Read... [13:06:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:24]Read from MH i2c: E2 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: E2 17 00 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: E2 17 00 D4 20 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:06:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:06:24]wFMCommunicate OK [13:06:24]CreateOFDProtocolMessage done [13:06:24]OFDSenderStorePacket 187044 [13:06:24]StoreOFDPacket docnum=187044 [13:06: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 0C 01 00 00 BD 80 04 01 E0 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 6E 00 00 00 F4 03 04 00 51 D7 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 A4 DA 02 00 35 04 06 00 CD 33 3C 9D 8C 8B 1C 3C F8 77 EA 98 F1 1A [13:06:24]CheckFolder [13:06:24]dirname=/storage/ofd_packets [13:06:24]CheckFolder done [13:06:24]ProducePacketName [13:06:24]name=ofd_packets/00187044 [13:06:24]NVStorageSaveData ofd_packets/00187044 [13:06:24]File name is /storage/ofd_packets/00187044 [13:06:24]Write 298 bytes [13:06:24]NVStorageSaveData done [13:06:24]OFDSenderStorePacket done [13:06:24]KKMCreateOFDPacket done [13:06:24]NVStorageSaveData kkm_last_timestamp [13:06:24]File name is /storage/kkm_last_timestamp [13:06:24]Write 4 bytes [13:06:24]NVStorageSaveData done [13:06:24]ExternCall_PrintAddStr [13:06:24]wPrintStart [13:06:24]Write to MH i2c: 01 00 00 D5 20 F5 [13:06:24]Write i2c OK [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: 01 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: 01 07 00 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: 01 07 00 D5 20 00 00 00 00 00 FF 0F 0A [13:06:24]RasterBufferAndPrint [13:06:24]line Счет N : (1)412195 [13:06:24]line ИНН: 02508201610067 [13:06:24]line Контрольно-Кассовый Чек [13:06:24]line ПРОДАЖА [13:06:24]line ТРК (МРК, ГНК) : 5 [13:06:24]line Товар: 2710194210 [13:06:24]line ДТ-К-5 [13:06:24]line 27.550 * 72.60 [13:06:24]line = 2000.13 [13:06:24]line НДС 12% НСП 1% [13:06:24]line > о реализуемом товаре [13:06:24]line ИТОГО: 2000.13 [13:06:24]line НСП 1% : 17.70 [13:06:24]line НДС 12% : 212.40 [13:06:24]line Наличными: 0.00 [13:06:24]line Безнал.: 2000.13 [13:06:24]line Место: АЗС № 92 "Партнер Нефть" [13:06:24]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:06:24]line СНО: Общий режим [13:06:24]line Чек 110 19.02.2025 13:06 [13:06:24]line Смена: 647 ФФД: 1.0 [13:06:24]line ЗНМ: 0300000118 [13:06:24]line РНМ: 0000000000091857 [13:06:24]line Версия ККМ: 001 [13:06:24]line Платежная система: O! деньги [13:06:24]line ФМ: 0000000000871826 [13:06:24]line ФД: 187044 [13:06:24]line ФПД: 225619943984267 [13:06:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T130625&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187044&fm=225619943984267&tin=02508201610067®Number=0000000000091857&sum=200013 [13:06:24]OFD Sender: Processing packet 187044 [packets to send 49, broken 48] [13:06:24]ProducePacketName [13:06:24]name=ofd_packets/00187044 [13:06:24]OFD Sender: To server: pG, [13:06:24]CommunicateWithHost lk.salyk.kg:30040 [13:06:24]ConnectInit lk.salyk.kg [13:06:24]written 0, free lines is 4095 [13:06:24]Connected sock=7 [13:06: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 0C 01 00 00 BD 80 04 01 E0 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 6E 00 00 00 F4 03 04 00 51 D7 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 A4 DA 02 00 35 04 06 00 CD 33 3C 9D 8C 8B 1C 3C F8 77 EA 98 F1 1A [13:06: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 23 D8 47 00 78 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 A4 DA 02 00 F4 03 04 00 A5 7D B5 67 B6 04 01 00 00 50 CE 76 04 FF FD B2 2C [13:06:24]CommunicateWithHost err = 0 [13:06:24]CheckOFDResponse [13:06:24]1017 (14) - 77093643461234 [13:06:24]1041 (16) - 0000000000871826 [13:06:24]1040 (4) - 187044 [13:06:24]1012 (4) - 19.02.2025 06:43 [13:06:24]1206 (1) - 0 [13:06:24]OFD Sender: Remove packet 187044 [13:06:24]ProducePacketName [13:06:24]name=ofd_packets/00187044 [13:06:24]NVStorageDeleteData [13:06:24]Write to MH i2c: 01 00 00 FF 20 1F [13:06:24]Write i2c OK [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: 01 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: 01 07 00 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: 01 07 00 FF 20 00 00 00 00 00 18 0D 4B [13:06:24]RasterBufferAndPrint [13:06:24]line [13:06:24]line [13:06:24]line [13:06:24]line [13:06:24]line [13:06:24]written 0, free lines is 3362 [13:06:25]MH_Cut [13:06:25]Write to MH i2c: D1 01 00 06 21 01 F9 [13:06:25]Write i2c OK [13:06:25]MH_I2C_Read... [13:06:25]Read from MH i2c: D1 [13:06:25]MH_I2C_Read... [13:06:25]Read from MH i2c: D1 01 00 [13:06:25]MH_I2C_Read... [13:06:25]Read from MH i2c: D1 01 00 06 21 00 F8 [13:06:25]Write to MH i2c: 01 00 00 07 21 28 [13:06:25]Write i2c OK [13:06:25]MH_I2C_Read... [13:06:25]OFD Sender: No OFD packet to send [13:06:25]*** Cut start [13:06:25]*** Partial cut [13:06:25]*** CUTSNS_PIN = 1 [13:06:25]*** CUTSNS_PIN = 0 [13:06:26]*** Brake cut motor [13:06:26]Read from MH i2c: 01 [13:06:26]MH_I2C_Read... [13:06:26]*** Stop cut motor [13:06:26]*** Cut end [13:06:26]Read from MH i2c: 01 07 00 [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: 01 07 00 07 21 00 00 00 00 00 FF 0F 3D [13:06:26]process_action close_receipt done [13:06:26]requested_data is exist [13:06:26]produce_requested_data [13:06:26]requested_item fm.sn is exist - process it [13:06:26]wFMCommunicate request_size=4 [13:06:26]MH_SAM_APDU [13:06:26]CAPDU: 80 11 00 00 [13:06:26]Write to MH i2c: E2 08 00 08 21 80 11 00 00 00 00 00 00 A3 [13:06:26]Write i2c OK [13:06:26]MH_I2C_Read... [13:06:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:26]Read from MH i2c: E2 [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: E2 17 00 [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: E2 17 00 08 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F6 [13:06:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:06:26]wFMCommunicate OK [13:06:26]requested_item fd.num is exist - process it [13:06:26]SAM_PROTO_GetFieldsCounters [13:06:26]wFMCommunicate request_size=4 [13:06:26]MH_SAM_APDU [13:06:26]CAPDU: 80 13 00 00 [13:06:26]Write to MH i2c: E2 08 00 09 21 80 13 00 00 00 00 00 00 A6 [13:06:26]Write i2c OK [13:06:26]MH_I2C_Read... [13:06:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:26]Read from MH i2c: E2 [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: E2 62 00 [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: E2 62 00 09 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 A4 DA 02 00 0E 04 04 00 87 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 1F [13:06: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 A4 DA 02 00 0E 04 04 00 87 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:06:26]wFMCommunicate OK [13:06:26]SAM_PROTO_GetFieldsCounters done [13:06:26]requested_item shift.num is exist - process it [13:06:26]requested_item shift.opened is exist - process it [13:06:26]req_shift_opened [13:06:26]FM_GetShiftState [13:06:26]SAM_PROTO_GetShiftState [13:06:26]wFMCommunicate request_size=4 [13:06:26]MH_SAM_APDU [13:06:26]CAPDU: 80 13 01 00 [13:06:26]Write to MH i2c: E2 08 00 0A 21 80 13 01 00 00 00 00 00 A8 [13:06:26]Write i2c OK [13:06:26]MH_I2C_Read... [13:06:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:26]Read from MH i2c: E2 [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: E2 0E 00 [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: E2 0E 00 0A 21 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 27 [13:06:26]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:06:26]wFMCommunicate OK [13:06:26]SAM_PROTO_GetShiftState done [13:06:26]FM_GetShiftState done [13:06:26]req_shift_opened done [13:06:26]requested_item shift.open_date is exist - process it [13:06:26]req_shift_open_date [13:06:26]req_shift_open_date done [13:06:26]produce_requested_data done [13:06:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187044,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [13:06:26]process_action_free close_receipt [13:06:26]json_value_free [13:06:26]json_value_free done [13:06:26]process_json_proto returns [13:06:26]Send response to host [13:06:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187044,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [13:06:26]free response buf [13:06:26]execute_script done [13:06:26]execute_script returns [13:06:26]free content buf [13:06:26]Sock 9.Close socket [13:06:26]Sock 9.Thread stoped [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:27]accept exits with 10 [13:07:27]New connection [13:07:27]New thread 3067022692 created [13:07:27]Thread 3066879332 joined [13:07:27]Waiting for new connection... [13:07:27] Sock 10.Parse request [13:07:27]Sock 10.Check first char [13:07:27]Sock 10.First char is OK [13:07:27]request: POST /json_proto HTTP/1.0 [13:07:27]Method: POST [13:07:27]URL: /json_proto [13:07:27]Method is POST - this is cgi request [13:07:27]url: /json_proto [13:07:27]query_string will be loaded in cgi processing [13:07:27]execute_cgi json_proto POST (null) [13:07:27]execute_cgi path=json_proto method=POST [13:07:27]POST find Content-Length [13:07:27]Host: 172.17.46.131:8080 [13:07:27]Content-Length: 792 [13:07:27]Content-Type: application/json [13:07:27] [13:07:27]POST finish read [13:07:27]Found Content-Length = 792 [13:07:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412196", "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\u000A99955", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:27]execute_script... [13:07: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)412196", "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\u000A99955", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:27]POST & json_proto [13:07:27]process_json_proto [13:07:27]json parsed OK: [13:07:27]protocol is kg_v1.0 [13:07:27]action value=close_receipt [13:07:27]process_action close_receipt [13:07:27]cmd_close_receipt [13:07:27]MH_GetDate [13:07:27]Write to MH i2c: F0 00 00 0B 21 1B [13:07:27]Write i2c OK [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: F0 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: F0 09 00 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: F0 09 00 0B 21 00 93 D7 B5 67 7E 41 4F 65 1D [13:07:27]GetLastDocTimeStamp 1739970385 [13:07:27]current date 1739970451 [13:07:27]FM_GetShiftState [13:07:27]SAM_PROTO_GetShiftState [13:07:27]wFMCommunicate request_size=4 [13:07:27]MH_SAM_APDU [13:07:27]CAPDU: 80 13 01 00 [13:07:27]Write to MH i2c: E2 08 00 0C 21 80 13 01 00 00 00 00 00 AA [13:07:27]Write i2c OK [13:07:27]MH_I2C_Read... [13:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:27]Read from MH i2c: E2 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 0E 00 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: E2 0E 00 0C 21 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 29 [13:07:27]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:07:27]wFMCommunicate OK [13:07:27]SAM_PROTO_GetShiftState done [13:07:27]FM_GetShiftState done [13:07:27]opened in 1739929631 [13:07:27]opened+sec_in_day 1740016031 [13:07:27]quantity*price = 0 [13:07:27]sum+1 = 1 [13:07: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 СНО: Общий режим Чек 111 19.02.2025 13:07 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 99955 ФМ: 0000000000871826 ФД: 187045 ФПД: 56217855019859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T130731&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187045&fm=56217855019859&tin=02508201610067®Number=0000000000091857&sum=0 [13:07:28]StoreToDocumentArchive [13:07:28]shift 647 fd 187045 [13:07:28]save to /storage/0647/doc_00187045 [13:07:28]save last doc name /storage/0647/doc_00187045 to /storage/kkm_last_doc_name [13:07:28]save OK [13:07:28]Clear old archive folders... [13:07:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:28]tlvbuf is B6F66730 [13:07:28]SAM_PROTO_ClearQueue [13:07:28]wFMCommunicate request_size=4 [13:07:28]MH_SAM_APDU [13:07:28]CAPDU: 80 09 00 00 [13:07:28]Write to MH i2c: E2 08 00 19 21 80 09 00 00 00 00 00 00 AC [13:07:28]Write i2c OK [13:07:28]MH_I2C_Read... [13:07:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:28]Read from MH i2c: E2 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 03 00 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 03 00 19 21 00 90 00 AE [13:07:28]RAPDU: 90 00 [13:07:28]wFMCommunicate OK [13:07:28]SAM_PROTO_ClearQueue done [13:07:28]KKMCreateOFDPacket [13:07:28]OFDProtocolAddRootSTLVToBuf [13:07:28]FM_MakeSignedData [13:07:28]FM_MakeSignedData [13:07:28]SAM_PROTO_SignData [13:07:28]wFMCommunicate request_size=4 [13:07:28]MH_SAM_APDU [13:07:28]CAPDU: 80 0D 01 02 [13:07:28]Write to MH i2c: E2 08 00 1A 21 80 0D 01 02 00 00 00 00 B4 [13:07:28]Write i2c OK [13:07:28]MH_I2C_Read... [13:07:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:28]Read from MH i2c: E2 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 03 00 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 03 00 1A 21 00 90 00 AF [13:07:28]RAPDU: 90 00 [13:07:28]wFMCommunicate OK [13:07:28]wFMCommunicate request_size=255 [13:07:28]MH_SAM_APDU [13:07: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 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 6F 00 00 00 F4 03 04 00 93 D7 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 A5 DA 02 00 35 04 06 00 33 [13:07:28]Write to MH i2c: E2 02 01 1B 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6F 00 00 00 F4 03 04 00 93 D7 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 A5 DA 02 00 35 04 06 00 33 00 00 0A [13:07:28]Write i2c OK [13:07:28]MH_I2C_Read... [13:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:29]Read from MH i2c: E2 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: E2 03 00 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: E2 03 00 1B 21 00 90 00 B0 [13:07:29]RAPDU: 90 00 [13:07:29]wFMCommunicate OK [13:07:29]wFMCommunicate request_size=10 [13:07:29]MH_SAM_APDU [13:07:29]CAPDU: 80 0D 02 02 05 21 3D 47 4B 53 [13:07:29]Write to MH i2c: E2 0D 00 1C 21 80 0D 02 02 05 00 21 3D 47 4B 53 00 00 04 [13:07:29]Write i2c OK [13:07:29]MH_I2C_Read... [13:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:29]Read from MH i2c: E2 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: E2 03 00 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: E2 03 00 1C 21 00 90 00 B1 [13:07:29]RAPDU: 90 00 [13:07:29]wFMCommunicate OK [13:07:29]wFMCommunicate request_size=4 [13:07:29]MH_SAM_APDU [13:07:29]CAPDU: 80 0D 03 02 [13:07:29]Write to MH i2c: E2 08 00 1D 21 80 0D 03 02 00 00 00 00 B9 [13:07:29]Write i2c OK [13:07:29]MH_I2C_Read... [13:07:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:29]Read from MH i2c: E2 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: E2 0B 00 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: E2 0B 00 1D 21 00 A3 FA D6 D9 1D 8E 35 3F 90 00 25 [13:07:29]RAPDU: A3 FA D6 D9 1D 8E 35 3F 90 00 [13:07:29]wFMCommunicate OK [13:07:29]SAM_PROTO_SignData done [13:07:29]FM_MakeSignedData done [13:07:29]CreateOFDProtocolMessage [13:07:29]wFMCommunicate request_size=4 [13:07:29]MH_SAM_APDU [13:07:29]CAPDU: 80 11 00 00 [13:07:29]Write to MH i2c: E2 08 00 1E 21 80 11 00 00 00 00 00 00 B9 [13:07:29]Write i2c OK [13:07:29]MH_I2C_Read... [13:07:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:29]Read from MH i2c: E2 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: E2 17 00 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: E2 17 00 1E 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0C [13:07: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:07:29]wFMCommunicate OK [13:07:29]CreateOFDProtocolMessage done [13:07:29]OFDSenderStorePacket 187045 [13:07:29]StoreOFDPacket docnum=187045 [13:07: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 4A 6C 07 01 B6 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6F 00 00 00 F4 03 04 00 93 D7 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 A5 DA 02 00 35 04 06 00 33 21 3D 47 4B 53 A3 FA D6 D9 1D 8E 35 3F [13:07:29]CheckFolder [13:07:29]dirname=/storage/ofd_packets [13:07:29]CheckFolder done [13:07:29]ProducePacketName [13:07:29]name=ofd_packets/00187045 [13:07:29]NVStorageSaveData ofd_packets/00187045 [13:07:29]File name is /storage/ofd_packets/00187045 [13:07:29]Write 301 bytes [13:07:29]NVStorageSaveData done [13:07:29]OFDSenderStorePacket done [13:07:29]KKMCreateOFDPacket done [13:07:29]NVStorageSaveData kkm_last_timestamp [13:07:29]File name is /storage/kkm_last_timestamp [13:07:29]Write 4 bytes [13:07:29]NVStorageSaveData done [13:07:29]ExternCall_PrintAddStr [13:07:29]wPrintStart [13:07:29]Write to MH i2c: 01 00 00 1F 21 40 [13:07:29]Write i2c OK [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: 01 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: 01 07 00 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: 01 07 00 1F 21 00 00 00 00 00 FF 0F 55 [13:07:29]RasterBufferAndPrint [13:07:29]line Счет N : (1)412196 [13:07:29]line ИНН: 02508201610067 [13:07:29]line Контрольно-Кассовый Чек [13:07:29]line ПРОДАЖА [13:07:29]line ТРК (МРК, ГНК) : 22 [13:07:29]line Товар: 2710124130 [13:07:29]line Аи-92-К-2 [13:07:29]line 15.580 * 0.00 [13:07:29]line = 0.00 [13:07:29]line НДС 12% НСП 1% [13:07:29]line > о реализуемом товаре [13:07:29]line ИТОГО: 0.00 [13:07:29]line НСП 1% : 0.00 [13:07:29]line НДС 12% : 0.00 [13:07:29]line Наличными: 0.00 [13:07:29]line Безнал.: 0.00 [13:07:29]line Место: АЗС № 92 "Партнер Нефть" [13:07:29]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:07:29]line СНО: Общий режим [13:07:29]line Чек 111 19.02.2025 13:07 [13:07:29]line Смена: 647 ФФД: 1.0 [13:07:29]line ЗНМ: 0300000118 [13:07:29]line РНМ: 0000000000091857 [13:07:29]line Версия ККМ: 001 [13:07:29]line Талоны: Топливная Карта [13:07:29]line 99955 [13:07:29]line ФМ: 0000000000871826 [13:07:29]line ФД: 187045 [13:07:29]line ФПД: 56217855019859 [13:07:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T130731&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187045&fm=56217855019859&tin=02508201610067®Number=0000000000091857&sum=0 [13:07:29]written 0, free lines is 4095 [13:07:29]OFD Sender: Processing packet 187045 [packets to send 49, broken 48] [13:07:29]ProducePacketName [13:07:29]name=ofd_packets/00187045 [13:07:29]OFD Sender: To server: pG, [13:07:29]CommunicateWithHost lk.salyk.kg:30040 [13:07:29]ConnectInit lk.salyk.kg [13:07:29]Connected sock=9 [13:07: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 4A 6C 07 01 B6 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6F 00 00 00 F4 03 04 00 93 D7 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 A5 DA 02 00 35 04 06 00 33 21 3D 47 4B 53 A3 FA D6 D9 1D 8E 35 3F [13:07:29]Write to MH i2c: 01 00 00 49 21 6A [13:07:29]Write i2c OK [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: 01 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: 01 07 00 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: 01 07 00 49 21 00 00 00 00 00 00 0D 7E [13:07:29]RasterBufferAndPrint [13:07:29]line [13:07:29]line [13:07:29]line [13:07:29]line [13:07:29]line [13:07:29]written 0, free lines is 3337 [13:07:29]MH_Cut [13:07:29]Write to MH i2c: D1 01 00 50 21 01 43 [13:07:29]Write i2c OK [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: D1 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: D1 01 00 [13:07:29]MH_I2C_Read... [13:07:29]Read from MH i2c: D1 01 00 50 21 00 42 [13:07:29]Write to MH i2c: 01 00 00 51 21 72 [13:07:29]Write i2c OK [13:07:29]MH_I2C_Read... [13:07: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 A1 93 47 00 A6 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A5 DA 02 00 F4 03 04 00 E6 7D B5 67 B6 04 01 00 00 FB 3F F6 3D AF DC C3 C2 [13:07:29]CommunicateWithHost err = 0 [13:07:29]CheckOFDResponse [13:07:29]1017 (14) - 77093643461234 [13:07:29]1041 (16) - 0000000000871826 [13:07:29]1040 (4) - 187045 [13:07:29]1012 (4) - 19.02.2025 06:44 [13:07:29]1206 (1) - 0 [13:07:29]OFD Sender: Remove packet 187045 [13:07:29]ProducePacketName [13:07:29]name=ofd_packets/00187045 [13:07:29]NVStorageDeleteData [13:07:30]OFD Sender: No OFD packet to send [13:07:30]*** Cut start [13:07:30]*** Partial cut [13:07:30]*** CUTSNS_PIN = 1 [13:07:30]*** CUTSNS_PIN = 0 [13:07:30]*** Brake cut motor [13:07:31]Read from MH i2c: 01 [13:07:31]MH_I2C_Read... [13:07:31]*** Stop cut motor [13:07:31]*** Cut end [13:07:31]Read from MH i2c: 01 07 00 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: 01 07 00 51 21 00 00 00 00 00 FF 0F 87 [13:07:31]process_action close_receipt done [13:07:31]requested_data is exist [13:07:31]produce_requested_data [13:07:31]requested_item fm.sn is exist - process it [13:07:31]wFMCommunicate request_size=4 [13:07:31]MH_SAM_APDU [13:07:31]CAPDU: 80 11 00 00 [13:07:31]Write to MH i2c: E2 08 00 52 21 80 11 00 00 00 00 00 00 ED [13:07:31]Write i2c OK [13:07:31]MH_I2C_Read... [13:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:31]Read from MH i2c: E2 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: E2 17 00 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: E2 17 00 52 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 40 [13:07: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:07:31]wFMCommunicate OK [13:07:31]requested_item fd.num is exist - process it [13:07:31]SAM_PROTO_GetFieldsCounters [13:07:31]wFMCommunicate request_size=4 [13:07:31]MH_SAM_APDU [13:07:31]CAPDU: 80 13 00 00 [13:07:31]Write to MH i2c: E2 08 00 53 21 80 13 00 00 00 00 00 00 F0 [13:07:31]Write i2c OK [13:07:31]MH_I2C_Read... [13:07:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:31]Read from MH i2c: E2 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: E2 62 00 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: E2 62 00 53 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 A5 DA 02 00 0E 04 04 00 87 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 6D [13:07: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 A5 DA 02 00 0E 04 04 00 87 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:07:31]wFMCommunicate OK [13:07:31]SAM_PROTO_GetFieldsCounters done [13:07:31]requested_item shift.num is exist - process it [13:07:31]requested_item shift.opened is exist - process it [13:07:31]req_shift_opened [13:07:31]FM_GetShiftState [13:07:31]SAM_PROTO_GetShiftState [13:07:31]wFMCommunicate request_size=4 [13:07:31]MH_SAM_APDU [13:07:31]CAPDU: 80 13 01 00 [13:07:31]Write to MH i2c: E2 08 00 54 21 80 13 01 00 00 00 00 00 F2 [13:07:31]Write i2c OK [13:07:31]MH_I2C_Read... [13:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:31]Read from MH i2c: E2 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: E2 0E 00 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: E2 0E 00 54 21 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 71 [13:07:31]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:07:31]wFMCommunicate OK [13:07:31]SAM_PROTO_GetShiftState done [13:07:31]FM_GetShiftState done [13:07:31]req_shift_opened done [13:07:31]requested_item shift.open_date is exist - process it [13:07:31]req_shift_open_date [13:07:31]req_shift_open_date done [13:07:31]produce_requested_data done [13:07:31]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187045,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [13:07:31]process_action_free close_receipt [13:07:31]json_value_free [13:07:31]json_value_free done [13:07:31]process_json_proto returns [13:07:31]Send response to host [13:07:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187045,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [13:07:31]free response buf [13:07:31]execute_script done [13:07:31]execute_script returns [13:07:31]free content buf [13:07:31]Sock 10.Close socket [13:07:31]Sock 10.Thread stoped [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:47]accept exits with 7 [13:09:47]New connection [13:09:47]New thread 3066879332 created [13:09:47]Thread 3067022692 joined [13:09:47]Waiting for new connection... [13:09:47] Sock 7.Parse request [13:09:47]Sock 7.Check first char [13:09:47]Sock 7.First char is OK [13:09:47]request: POST /json_proto HTTP/1.0 [13:09:47]Method: POST [13:09:47]URL: /json_proto [13:09:47]Method is POST - this is cgi request [13:09:47]url: /json_proto [13:09:47]query_string will be loaded in cgi processing [13:09:47]execute_cgi json_proto POST (null) [13:09:47]execute_cgi path=json_proto method=POST [13:09:47]POST find Content-Length [13:09:47]Host: 172.17.46.131:8080 [13:09:47]Content-Length: 793 [13:09:47]Content-Type: application/json [13:09:47] [13:09:47]POST finish read [13:09:47]Found Content-Length = 793 [13:09:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412197", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:47]execute_script... [13:09: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)412197", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:47]POST & json_proto [13:09:47]process_json_proto [13:09:47]json parsed OK: [13:09:47]protocol is kg_v1.0 [13:09:47]action value=close_receipt [13:09:47]process_action close_receipt [13:09:47]cmd_close_receipt [13:09:47]MH_GetDate [13:09:47]Write to MH i2c: F0 00 00 55 21 65 [13:09:47]Write i2c OK [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: F0 [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: F0 09 00 [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: F0 09 00 55 21 00 1E D8 B5 67 7E 41 4F 65 F3 [13:09:47]GetLastDocTimeStamp 1739970451 [13:09:47]current date 1739970590 [13:09:47]FM_GetShiftState [13:09:47]SAM_PROTO_GetShiftState [13:09:47]wFMCommunicate request_size=4 [13:09:47]MH_SAM_APDU [13:09:47]CAPDU: 80 13 01 00 [13:09:47]Write to MH i2c: E2 08 00 56 21 80 13 01 00 00 00 00 00 F4 [13:09:47]Write i2c OK [13:09:47]MH_I2C_Read... [13:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:47]Read from MH i2c: E2 [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: E2 0E 00 [13:09:47]MH_I2C_Read... [13:09:47]Read from MH i2c: E2 0E 00 56 21 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 73 [13:09:47]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:09:47]wFMCommunicate OK [13:09:47]SAM_PROTO_GetShiftState done [13:09:47]FM_GetShiftState done [13:09:47]opened in 1739929631 [13:09:47]opened+sec_in_day 1740016031 [13:09:47]quantity*price = 100012 [13:09:47]sum+1 = 100014 [13:09:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.13 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.13 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 112 19.02.2025 13:09 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000871826 ФД: 187046 ФПД: 132028707724377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T130950&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187046&fm=132028707724377&tin=02508201610067®Number=0000000000091857&sum=100013 [13:09:48]StoreToDocumentArchive [13:09:48]shift 647 fd 187046 [13:09:48]save to /storage/0647/doc_00187046 [13:09:48]save last doc name /storage/0647/doc_00187046 to /storage/kkm_last_doc_name [13:09:48]save OK [13:09:48]Clear old archive folders... [13:09:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:48]tlvbuf is 005BEBE0 [13:09:48]SAM_PROTO_ClearQueue [13:09:48]wFMCommunicate request_size=4 [13:09:48]MH_SAM_APDU [13:09:48]CAPDU: 80 09 00 00 [13:09:48]Write to MH i2c: E2 08 00 63 21 80 09 00 00 00 00 00 00 F6 [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:48]Read from MH i2c: E2 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 03 00 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 03 00 63 21 00 90 00 F8 [13:09:48]RAPDU: 90 00 [13:09:48]wFMCommunicate OK [13:09:48]SAM_PROTO_ClearQueue done [13:09:48]KKMCreateOFDPacket [13:09:48]OFDProtocolAddRootSTLVToBuf [13:09:48]FM_MakeSignedData [13:09:48]FM_MakeSignedData [13:09:48]SAM_PROTO_SignData [13:09:48]wFMCommunicate request_size=4 [13:09:48]MH_SAM_APDU [13:09:48]CAPDU: 80 0D 01 02 [13:09:48]Write to MH i2c: E2 08 00 64 21 80 0D 01 02 00 00 00 00 FE [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:48]Read from MH i2c: E2 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 03 00 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 03 00 64 21 00 90 00 F9 [13:09:48]RAPDU: 90 00 [13:09:48]wFMCommunicate OK [13:09:48]wFMCommunicate request_size=255 [13:09:48]MH_SAM_APDU [13:09: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 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 70 00 00 00 F4 03 04 00 1E D8 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 A6 DA 02 00 35 04 06 00 78 [13:09:48]Write to MH i2c: E2 02 01 65 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 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 70 00 00 00 F4 03 04 00 1E D8 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 A6 DA 02 00 35 04 06 00 78 00 00 8E [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:48]Read from MH i2c: E2 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 03 00 [13:09:48]MH_I2C_Read... [13:09:48]Read from MH i2c: E2 03 00 65 21 00 90 00 FA [13:09:48]RAPDU: 90 00 [13:09:48]wFMCommunicate OK [13:09:48]wFMCommunicate request_size=10 [13:09:48]MH_SAM_APDU [13:09:48]CAPDU: 80 0D 02 02 05 14 54 39 5C 59 [13:09:48]Write to MH i2c: E2 0D 00 66 21 80 0D 02 02 05 00 14 54 39 5C 59 00 00 61 [13:09:48]Write i2c OK [13:09:48]MH_I2C_Read... [13:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:49]Read from MH i2c: E2 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 03 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 03 00 66 21 00 90 00 FB [13:09:49]RAPDU: 90 00 [13:09:49]wFMCommunicate OK [13:09:49]wFMCommunicate request_size=4 [13:09:49]MH_SAM_APDU [13:09:49]CAPDU: 80 0D 03 02 [13:09:49]Write to MH i2c: E2 08 00 67 21 80 0D 03 02 00 00 00 00 03 [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:49]Read from MH i2c: E2 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 0B 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 0B 00 67 21 00 36 99 FC 4D F6 B6 80 46 90 00 8E [13:09:49]RAPDU: 36 99 FC 4D F6 B6 80 46 90 00 [13:09:49]wFMCommunicate OK [13:09:49]SAM_PROTO_SignData done [13:09:49]FM_MakeSignedData done [13:09:49]CreateOFDProtocolMessage [13:09:49]wFMCommunicate request_size=4 [13:09:49]MH_SAM_APDU [13:09:49]CAPDU: 80 11 00 00 [13:09:49]Write to MH i2c: E2 08 00 68 21 80 11 00 00 00 00 00 00 03 [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:49]Read from MH i2c: E2 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 17 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: E2 17 00 68 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 56 [13:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:09:49]wFMCommunicate OK [13:09:49]CreateOFDProtocolMessage done [13:09:49]OFDSenderStorePacket 187046 [13:09:49]StoreOFDPacket docnum=187046 [13:09: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 79 B4 07 01 16 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 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 70 00 00 00 F4 03 04 00 1E D8 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 A6 DA 02 00 35 04 06 00 78 14 54 39 5C 59 36 99 FC 4D F6 B6 80 46 [13:09:49]CheckFolder [13:09:49]dirname=/storage/ofd_packets [13:09:49]CheckFolder done [13:09:49]ProducePacketName [13:09:49]name=ofd_packets/00187046 [13:09:49]NVStorageSaveData ofd_packets/00187046 [13:09:49]File name is /storage/ofd_packets/00187046 [13:09:49]Write 301 bytes [13:09:49]NVStorageSaveData done [13:09:49]OFDSenderStorePacket done [13:09:49]KKMCreateOFDPacket done [13:09:49]NVStorageSaveData kkm_last_timestamp [13:09:49]File name is /storage/kkm_last_timestamp [13:09:49]Write 4 bytes [13:09:49]NVStorageSaveData done [13:09:49]ExternCall_PrintAddStr [13:09:49]wPrintStart [13:09:49]Write to MH i2c: 01 00 00 69 21 8A [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: 01 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: 01 07 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: 01 07 00 69 21 00 00 00 00 00 FF 0F 9F [13:09:49]RasterBufferAndPrint [13:09:49]line Счет N : (1)412197 [13:09:49]line ИНН: 02508201610067 [13:09:49]line Контрольно-Кассовый Чек [13:09:49]line ПРОДАЖА [13:09:49]line ТРК (МРК, ГНК) : 33 [13:09:49]line Товар: 2710124500 [13:09:49]line Аи-95-К-5 [13:09:49]line 13.910 * 71.90 [13:09:49]line = 1000.13 [13:09:49]line НДС 12% НСП 1% [13:09:49]line > о реализуемом товаре [13:09:49]line ИТОГО: 1000.13 [13:09:49]line НСП 1% : 8.85 [13:09:49]line НДС 12% : 106.21 [13:09:49]line Наличными: 0.00 [13:09:49]line Безнал.: 1000.13 [13:09:49]line Место: АЗС № 92 "Партнер Нефть" [13:09:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:09:49]line СНО: Общий режим [13:09:49]line Чек 112 19.02.2025 13:09 [13:09:49]line Смена: 647 ФФД: 1.0 [13:09:49]line ЗНМ: 0300000118 [13:09:49]line РНМ: 0000000000091857 [13:09:49]line Версия ККМ: 001 [13:09:49]line Платежная система: KICB Банк [13:09:49]line ФМ: 0000000000871826 [13:09:49]line ФД: 187046 [13:09:49]line ФПД: 132028707724377 [13:09:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T130950&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187046&fm=132028707724377&tin=02508201610067®Number=0000000000091857&sum=100013 [13:09:49]OFD Sender: Processing packet 187046 [packets to send 49, broken 48] [13:09:49]ProducePacketName [13:09:49]name=ofd_packets/00187046 [13:09:49]OFD Sender: To server: pG, [13:09:49]CommunicateWithHost lk.salyk.kg:30040 [13:09:49]ConnectInit lk.salyk.kg [13:09:49]written 0, free lines is 4095 [13:09:49]Connected sock=10 [13:09: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 79 B4 07 01 16 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 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 70 00 00 00 F4 03 04 00 1E D8 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 A6 DA 02 00 35 04 06 00 78 14 54 39 5C 59 36 99 FC 4D F6 B6 80 46 [13:09: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 5A 62 47 00 95 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A6 DA 02 00 F4 03 04 00 72 7E B5 67 B6 04 01 00 00 4D 39 E7 3B 5E 78 91 AD [13:09:49]CommunicateWithHost err = 0 [13:09:49]CheckOFDResponse [13:09:49]1017 (14) - 77093643461234 [13:09:49]1041 (16) - 0000000000871826 [13:09:49]1040 (4) - 187046 [13:09:49]1012 (4) - 19.02.2025 06:47 [13:09:49]1206 (1) - 0 [13:09:49]OFD Sender: Remove packet 187046 [13:09:49]ProducePacketName [13:09:49]name=ofd_packets/00187046 [13:09:49]NVStorageDeleteData [13:09:49]Write to MH i2c: 01 00 00 93 21 B4 [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: 01 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: 01 07 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: 01 07 00 93 21 00 00 00 00 00 00 0D C8 [13:09:49]RasterBufferAndPrint [13:09:49]line [13:09:49]line [13:09:49]line [13:09:49]line [13:09:49]line [13:09:49]written 0, free lines is 3333 [13:09:49]MH_Cut [13:09:49]Write to MH i2c: D1 01 00 9A 21 01 8D [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: D1 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: D1 01 00 [13:09:49]MH_I2C_Read... [13:09:49]Read from MH i2c: D1 01 00 9A 21 00 8C [13:09:49]Write to MH i2c: 01 00 00 9B 21 BC [13:09:49]Write i2c OK [13:09:49]MH_I2C_Read... [13:09:50]OFD Sender: No OFD packet to send [13:09:50]*** Cut start [13:09:50]*** Partial cut [13:09:50]*** CUTSNS_PIN = 1 [13:09:50]*** CUTSNS_PIN = 0 [13:09:50]*** Brake cut motor [13:09:51]Read from MH i2c: 01 [13:09:51]MH_I2C_Read... [13:09:51]*** Stop cut motor [13:09:51]*** Cut end [13:09:51]Read from MH i2c: 01 07 00 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: 01 07 00 9B 21 00 00 00 00 00 FF 0F D1 [13:09:51]process_action close_receipt done [13:09:51]requested_data is exist [13:09:51]produce_requested_data [13:09:51]requested_item fm.sn is exist - process it [13:09:51]wFMCommunicate request_size=4 [13:09:51]MH_SAM_APDU [13:09:51]CAPDU: 80 11 00 00 [13:09:51]Write to MH i2c: E2 08 00 9C 21 80 11 00 00 00 00 00 00 37 [13:09:51]Write i2c OK [13:09:51]MH_I2C_Read... [13:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:51]Read from MH i2c: E2 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 17 00 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 17 00 9C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8A [13:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:09:51]wFMCommunicate OK [13:09:51]requested_item fd.num is exist - process it [13:09:51]SAM_PROTO_GetFieldsCounters [13:09:51]wFMCommunicate request_size=4 [13:09:51]MH_SAM_APDU [13:09:51]CAPDU: 80 13 00 00 [13:09:51]Write to MH i2c: E2 08 00 9D 21 80 13 00 00 00 00 00 00 3A [13:09:51]Write i2c OK [13:09:51]MH_I2C_Read... [13:09:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:51]Read from MH i2c: E2 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 62 00 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 62 00 9D 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 A6 DA 02 00 0E 04 04 00 87 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 BB [13:09: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 A6 DA 02 00 0E 04 04 00 87 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:09:51]wFMCommunicate OK [13:09:51]SAM_PROTO_GetFieldsCounters done [13:09:51]requested_item shift.num is exist - process it [13:09:51]requested_item shift.opened is exist - process it [13:09:51]req_shift_opened [13:09:51]FM_GetShiftState [13:09:51]SAM_PROTO_GetShiftState [13:09:51]wFMCommunicate request_size=4 [13:09:51]MH_SAM_APDU [13:09:51]CAPDU: 80 13 01 00 [13:09:51]Write to MH i2c: E2 08 00 9E 21 80 13 01 00 00 00 00 00 3C [13:09:51]Write i2c OK [13:09:51]MH_I2C_Read... [13:09:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:51]Read from MH i2c: E2 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 0E 00 [13:09:51]MH_I2C_Read... [13:09:51]Read from MH i2c: E2 0E 00 9E 21 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 BB [13:09:51]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:09:51]wFMCommunicate OK [13:09:51]SAM_PROTO_GetShiftState done [13:09:51]FM_GetShiftState done [13:09:51]req_shift_opened done [13:09:51]requested_item shift.open_date is exist - process it [13:09:51]req_shift_open_date [13:09:51]req_shift_open_date done [13:09:51]produce_requested_data done [13:09:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187046,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [13:09:51]process_action_free close_receipt [13:09:51]json_value_free [13:09:51]json_value_free done [13:09:51]process_json_proto returns [13:09:51]Send response to host [13:09:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187046,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [13:09:51]free response buf [13:09:51]execute_script done [13:09:51]execute_script returns [13:09:51]free content buf [13:09:51]Sock 7.Close socket [13:09:51]Sock 7.Thread stoped [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:55]OFD Sender: No OFD packet to send [13:11:00]OFD Sender: No OFD packet to send [13:11:05]OFD Sender: No OFD packet to send [13:11:10]OFD Sender: No OFD packet to send [13:11:15]OFD Sender: No OFD packet to send [13:11:20]OFD Sender: No OFD packet to send [13:11:25]OFD Sender: No OFD packet to send [13:11:30]OFD Sender: No OFD packet to send [13:11:35]OFD Sender: No OFD packet to send [13:11:40]OFD Sender: No OFD packet to send [13:11:45]OFD Sender: No OFD packet to send [13:11:50]OFD Sender: No OFD packet to send [13:11:55]OFD Sender: No OFD packet to send [13:12:00]OFD Sender: No OFD packet to send [13:12:03]accept exits with 9 [13:12:03]New connection [13:12:03]New thread 3067022692 created [13:12:03]Thread 3066879332 joined [13:12:03]Waiting for new connection... [13:12:03] Sock 9.Parse request [13:12:03]Sock 9.Check first char [13:12:03]Sock 9.First char is OK [13:12:03]request: POST /json_proto HTTP/1.0 [13:12:03]Method: POST [13:12:03]URL: /json_proto [13:12:03]Method is POST - this is cgi request [13:12:03]url: /json_proto [13:12:03]query_string will be loaded in cgi processing [13:12:03]execute_cgi json_proto POST (null) [13:12:03]execute_cgi path=json_proto method=POST [13:12:03]POST find Content-Length [13:12:03]Host: 172.17.46.131:8080 [13:12:03]Content-Length: 677 [13:12:03]Content-Type: application/json [13:12:03] [13:12:03]POST finish read [13:12:03]Found Content-Length = 677 [13:12:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412199", "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" ] } } [13:12:03]execute_script... [13:12: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)412199", "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" ] } } [13:12:03]POST & json_proto [13:12:03]process_json_proto [13:12:03]json parsed OK: [13:12:03]protocol is kg_v1.0 [13:12:03]action value=close_receipt [13:12:03]process_action close_receipt [13:12:03]cmd_close_receipt [13:12:03]MH_GetDate [13:12:03]Write to MH i2c: F0 00 00 9F 21 AF [13:12:03]Write i2c OK [13:12:03]MH_I2C_Read... [13:12:03]Read from MH i2c: F0 [13:12:03]MH_I2C_Read... [13:12:03]Read from MH i2c: F0 09 00 [13:12:03]MH_I2C_Read... [13:12:03]Read from MH i2c: F0 09 00 9F 21 00 A7 D8 B5 67 7E 41 4F 65 C6 [13:12:03]GetLastDocTimeStamp 1739970590 [13:12:03]current date 1739970727 [13:12:03]FM_GetShiftState [13:12:03]SAM_PROTO_GetShiftState [13:12:03]wFMCommunicate request_size=4 [13:12:03]MH_SAM_APDU [13:12:03]CAPDU: 80 13 01 00 [13:12:03]Write to MH i2c: E2 08 00 A0 21 80 13 01 00 00 00 00 00 3E [13:12:03]Write i2c OK [13:12:03]MH_I2C_Read... [13:12:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:03]Read from MH i2c: E2 [13:12:03]MH_I2C_Read... [13:12:03]Read from MH i2c: E2 0E 00 [13:12:03]MH_I2C_Read... [13:12:03]Read from MH i2c: E2 0E 00 A0 21 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 BD [13:12:03]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:12:03]wFMCommunicate OK [13:12:03]SAM_PROTO_GetShiftState done [13:12:03]FM_GetShiftState done [13:12:03]opened in 1739929631 [13:12:03]opened+sec_in_day 1740016031 [13:12:03]quantity*price = 50011 [13:12:03]sum+1 = 50013 [13:12: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 СНО: Общий режим Чек 113 19.02.2025 13:12 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187047 ФПД: 196845891523093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T131207&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187047&fm=196845891523093&tin=02508201610067®Number=0000000000091857&sum=50000 [13:12:04]StoreToDocumentArchive [13:12:04]shift 647 fd 187047 [13:12:04]save to /storage/0647/doc_00187047 [13:12:04]save last doc name /storage/0647/doc_00187047 to /storage/kkm_last_doc_name [13:12:04]save OK [13:12:04]Clear old archive folders... [13:12:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:04]tlvbuf is 0065DEA0 [13:12:04]SAM_PROTO_ClearQueue [13:12:04]wFMCommunicate request_size=4 [13:12:04]MH_SAM_APDU [13:12:04]CAPDU: 80 09 00 00 [13:12:04]Write to MH i2c: E2 08 00 AD 21 80 09 00 00 00 00 00 00 40 [13:12:04]Write i2c OK [13:12:04]MH_I2C_Read... [13:12:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:04]Read from MH i2c: E2 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: E2 03 00 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: E2 03 00 AD 21 00 90 00 42 [13:12:04]RAPDU: 90 00 [13:12:04]wFMCommunicate OK [13:12:04]SAM_PROTO_ClearQueue done [13:12:04]KKMCreateOFDPacket [13:12:04]OFDProtocolAddRootSTLVToBuf [13:12:04]FM_MakeSignedData [13:12:04]FM_MakeSignedData [13:12:04]SAM_PROTO_SignData [13:12:04]wFMCommunicate request_size=4 [13:12:04]MH_SAM_APDU [13:12:04]CAPDU: 80 0D 01 02 [13:12:04]Write to MH i2c: E2 08 00 AE 21 80 0D 01 02 00 00 00 00 48 [13:12:04]Write i2c OK [13:12:04]MH_I2C_Read... [13:12:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:04]Read from MH i2c: E2 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: E2 03 00 [13:12:04]MH_I2C_Read... [13:12:04]Read from MH i2c: E2 03 00 AE 21 00 90 00 43 [13:12:04]RAPDU: 90 00 [13:12:04]wFMCommunicate OK [13:12:04]wFMCommunicate request_size=255 [13:12:04]MH_SAM_APDU [13:12: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 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 71 00 00 00 F4 03 04 00 A7 D8 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 A7 DA 02 00 35 04 06 00 B3 [13:12:04]Write to MH i2c: E2 02 01 AF 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 71 00 00 00 F4 03 04 00 A7 D8 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 A7 DA 02 00 35 04 06 00 B3 00 00 AC [13:12:04]Write i2c OK [13:12:05]MH_I2C_Read... [13:12:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:05]Read from MH i2c: E2 [13:12:05]MH_I2C_Read... [13:12:05]Read from MH i2c: E2 03 00 [13:12:05]MH_I2C_Read... [13:12:05]Read from MH i2c: E2 03 00 AF 21 00 90 00 44 [13:12:05]RAPDU: 90 00 [13:12:05]wFMCommunicate OK [13:12:05]wFMCommunicate request_size=10 [13:12:05]MH_SAM_APDU [13:12:05]CAPDU: 80 0D 02 02 05 07 C1 70 92 15 [13:12:05]Write to MH i2c: E2 0D 00 B0 21 80 0D 02 02 05 00 07 C1 70 92 15 00 00 34 [13:12:05]Write i2c OK [13:12:05]MH_I2C_Read... [13:12:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:05]Read from MH i2c: E2 [13:12:05]MH_I2C_Read... [13:12:05]Read from MH i2c: E2 03 00 [13:12:05]MH_I2C_Read... [13:12:05]Read from MH i2c: E2 03 00 B0 21 00 90 00 45 [13:12:05]RAPDU: 90 00 [13:12:05]wFMCommunicate OK [13:12:05]wFMCommunicate request_size=4 [13:12:05]MH_SAM_APDU [13:12:05]CAPDU: 80 0D 03 02 [13:12:05]Write to MH i2c: E2 08 00 B1 21 80 0D 03 02 00 00 00 00 4D [13:12:05]Write i2c OK [13:12:05]MH_I2C_Read... [13:12:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:05]Read from MH i2c: E2 [13:12:05]MH_I2C_Read... [13:12:05]Read from MH i2c: E2 0B 00 [13:12:05]MH_I2C_Read... [13:12:05]Read from MH i2c: E2 0B 00 B1 21 00 3B 49 73 56 BA 07 27 7B 90 00 FE [13:12:05]RAPDU: 3B 49 73 56 BA 07 27 7B 90 00 [13:12:05]wFMCommunicate OK [13:12:05]SAM_PROTO_SignData done [13:12:05]FM_MakeSignedData done [13:12:05]CreateOFDProtocolMessage [13:12:05]wFMCommunicate request_size=4 [13:12:05]MH_SAM_APDU [13:12:05]CAPDU: 80 11 00 00 [13:12:05]Write to MH i2c: E2 08 00 B2 21 80 11 00 00 00 00 00 00 4D [13:12:05]Write i2c OK [13:12:05]MH_I2C_Read... [13:12:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:05]Read from MH i2c: E2 [13:12:05]MH_I2C_Read... [13:12:05]Read from MH i2c: E2 17 00 [13:12:05]MH_I2C_Read... [13:12:05]Read from MH i2c: E2 17 00 B2 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A0 [13:12:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:12:05]wFMCommunicate OK [13:12:05]CreateOFDProtocolMessage done [13:12:05]OFDSenderStorePacket 187047 [13:12:05]StoreOFDPacket docnum=187047 [13:12: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 6E 24 07 01 E9 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 71 00 00 00 F4 03 04 00 A7 D8 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 A7 DA 02 00 35 04 06 00 B3 07 C1 70 92 15 3B 49 73 56 BA 07 27 7B [13:12:05]CheckFolder [13:12:05]dirname=/storage/ofd_packets [13:12:05]CheckFolder done [13:12:05]ProducePacketName [13:12:05]name=ofd_packets/00187047 [13:12:05]NVStorageSaveData ofd_packets/00187047 [13:12:05]File name is /storage/ofd_packets/00187047 [13:12:05]Write 301 bytes [13:12:05]NVStorageSaveData done [13:12:05]OFDSenderStorePacket done [13:12:05]KKMCreateOFDPacket done [13:12:05]NVStorageSaveData kkm_last_timestamp [13:12:05]File name is /storage/kkm_last_timestamp [13:12:05]Write 4 bytes [13:12:05]NVStorageSaveData done [13:12:05]ExternCall_PrintAddStr [13:12:05]wPrintStart [13:12:05]Write to MH i2c: 01 00 00 B3 21 D4 [13:12:05]Write i2c OK [13:12:05]MH_I2C_Read... [13:12:05]Read from MH i2c: 01 [13:12:05]MH_I2C_Read... [13:12:05]Read from MH i2c: 01 07 00 [13:12:05]MH_I2C_Read... [13:12:05]Read from MH i2c: 01 07 00 B3 21 00 00 00 00 00 FF 0F E9 [13:12:05]RasterBufferAndPrint [13:12:05]line Счет N : (1)412199 [13:12:05]line ИНН: 02508201610067 [13:12:05]line Контрольно-Кассовый Чек [13:12:05]line ПРОДАЖА [13:12:05]line ТРК (МРК, ГНК) : 22 [13:12:05]line Товар: 2710124130 [13:12:05]line Аи-92-К-2 [13:12:05]line 7.790 * 64.20 [13:12:05]line = 500.12 [13:12:05]line НДС 12% НСП 1% [13:12:05]line > о реализуемом товаре [13:12:05]line ОКРУГЛЕНИЕ: -0.12 [13:12:05]line ИТОГО: 500.00 [13:12:05]line Внесено: 500.00 [13:12:05]line СДАЧА: 0.00 [13:12:05]line НСП 1% : 4.43 [13:12:05]line НДС 12% : 53.11 [13:12:05]line Наличными: 500.00 [13:12:05]line Безнал.: 0.00 [13:12:05]line Место: АЗС № 92 "Партнер Нефть" [13:12:05]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:12:05]line СНО: Общий режим [13:12:05]line Чек 113 19.02.2025 13:12 [13:12:05]line Смена: 647 ФФД: 1.0 [13:12:05]line ЗНМ: 0300000118 [13:12:05]line РНМ: 0000000000091857 [13:12:05]line Версия ККМ: 001 [13:12:05]line ФМ: 0000000000871826 [13:12:05]line ФД: 187047 [13:12:05]line ФПД: 196845891523093 [13:12:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T131207&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187047&fm=196845891523093&tin=02508201610067®Number=0000000000091857&sum=50000 [13:12:05]written 0, free lines is 4095 [13:12:05]OFD Sender: Processing packet 187047 [packets to send 49, broken 48] [13:12:05]ProducePacketName [13:12:05]name=ofd_packets/00187047 [13:12:05]OFD Sender: To server: pG, [13:12:05]CommunicateWithHost lk.salyk.kg:30040 [13:12:05]ConnectInit lk.salyk.kg [13:12:05]Connected sock=7 [13:12: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 6E 24 07 01 E9 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 71 00 00 00 F4 03 04 00 A7 D8 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 A7 DA 02 00 35 04 06 00 B3 07 C1 70 92 15 3B 49 73 56 BA 07 27 7B [13:12: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 E7 29 47 00 03 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A7 DA 02 00 F4 03 04 00 FB 7E B5 67 B6 04 01 00 00 EC 62 B9 5D 3A E4 D8 D1 [13:12:06]CommunicateWithHost err = 0 [13:12:06]CheckOFDResponse [13:12:06]1017 (14) - 77093643461234 [13:12:06]1041 (16) - 0000000000871826 [13:12:06]1040 (4) - 187047 [13:12:06]1012 (4) - 19.02.2025 06:49 [13:12:06]1206 (1) - 0 [13:12:06]OFD Sender: Remove packet 187047 [13:12:06]ProducePacketName [13:12:06]name=ofd_packets/00187047 [13:12:06]NVStorageDeleteData [13:12:06]Write to MH i2c: 01 00 00 DE 21 FF [13:12:06]Write i2c OK [13:12:06]MH_I2C_Read... [13:12:06]Read from MH i2c: 01 [13:12:06]MH_I2C_Read... [13:12:06]Read from MH i2c: 01 07 00 [13:12:06]MH_I2C_Read... [13:12:06]Read from MH i2c: 01 07 00 DE 21 00 00 00 00 00 F5 0C 07 [13:12:06]RasterBufferAndPrint [13:12:06]line [13:12:06]line [13:12:06]line [13:12:06]line [13:12:06]line [13:12:06]written 0, free lines is 3327 [13:12:06]MH_Cut [13:12:06]Write to MH i2c: D1 01 00 E5 21 01 D8 [13:12:06]Write i2c OK [13:12:06]MH_I2C_Read... [13:12:06]Read from MH i2c: D1 [13:12:06]MH_I2C_Read... [13:12:06]Read from MH i2c: D1 01 00 [13:12:06]MH_I2C_Read... [13:12:06]Read from MH i2c: D1 01 00 E5 21 00 D7 [13:12:06]Write to MH i2c: 01 00 00 E6 21 07 [13:12:06]Write i2c OK [13:12:06]MH_I2C_Read... [13:12:06]OFD Sender: No OFD packet to send [13:12:06]*** Cut start [13:12:06]*** Partial cut [13:12:06]*** CUTSNS_PIN = 1 [13:12:06]*** CUTSNS_PIN = 0 [13:12:07]*** Brake cut motor [13:12:07]Read from MH i2c: 01 [13:12:07]MH_I2C_Read... [13:12:07]*** Stop cut motor [13:12:07]*** Cut end [13:12:07]Read from MH i2c: 01 07 00 [13:12:07]MH_I2C_Read... [13:12:07]Read from MH i2c: 01 07 00 E6 21 00 00 00 00 00 FF 0F 1C [13:12:07]process_action close_receipt done [13:12:07]requested_data is exist [13:12:07]produce_requested_data [13:12:07]requested_item fm.sn is exist - process it [13:12:07]wFMCommunicate request_size=4 [13:12:07]MH_SAM_APDU [13:12:07]CAPDU: 80 11 00 00 [13:12:07]Write to MH i2c: E2 08 00 E7 21 80 11 00 00 00 00 00 00 82 [13:12:07]Write i2c OK [13:12:07]MH_I2C_Read... [13:12:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:07]Read from MH i2c: E2 [13:12:07]MH_I2C_Read... [13:12:07]Read from MH i2c: E2 17 00 [13:12:07]MH_I2C_Read... [13:12:07]Read from MH i2c: E2 17 00 E7 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D5 [13:12:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:12:07]wFMCommunicate OK [13:12:07]requested_item fd.num is exist - process it [13:12:07]SAM_PROTO_GetFieldsCounters [13:12:07]wFMCommunicate request_size=4 [13:12:07]MH_SAM_APDU [13:12:07]CAPDU: 80 13 00 00 [13:12:07]Write to MH i2c: E2 08 00 E8 21 80 13 00 00 00 00 00 00 85 [13:12:07]Write i2c OK [13:12:07]MH_I2C_Read... [13:12:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:07]Read from MH i2c: E2 [13:12:07]MH_I2C_Read... [13:12:07]Read from MH i2c: E2 62 00 [13:12:07]MH_I2C_Read... [13:12:07]Read from MH i2c: E2 62 00 E8 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 A7 DA 02 00 0E 04 04 00 87 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 0A [13:12: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 A7 DA 02 00 0E 04 04 00 87 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 [13:12:07]wFMCommunicate OK [13:12:07]SAM_PROTO_GetFieldsCounters done [13:12:07]requested_item shift.num is exist - process it [13:12:07]requested_item shift.opened is exist - process it [13:12:07]req_shift_opened [13:12:07]FM_GetShiftState [13:12:07]SAM_PROTO_GetShiftState [13:12:07]wFMCommunicate request_size=4 [13:12:07]MH_SAM_APDU [13:12:07]CAPDU: 80 13 01 00 [13:12:07]Write to MH i2c: E2 08 00 E9 21 80 13 01 00 00 00 00 00 87 [13:12:07]Write i2c OK [13:12:07]MH_I2C_Read... [13:12:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:07]Read from MH i2c: E2 [13:12:07]MH_I2C_Read... [13:12:07]Read from MH i2c: E2 0E 00 [13:12:07]MH_I2C_Read... [13:12:07]Read from MH i2c: E2 0E 00 E9 21 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 06 [13:12:07]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:12:07]wFMCommunicate OK [13:12:07]SAM_PROTO_GetShiftState done [13:12:07]FM_GetShiftState done [13:12:07]req_shift_opened done [13:12:07]requested_item shift.open_date is exist - process it [13:12:07]req_shift_open_date [13:12:07]req_shift_open_date done [13:12:07]produce_requested_data done [13:12:07]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187047,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [13:12:07]process_action_free close_receipt [13:12:07]json_value_free [13:12:07]json_value_free done [13:12:07]process_json_proto returns [13:12:07]Send response to host [13:12:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187047,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [13:12:07]free response buf [13:12:07]execute_script done [13:12:07]execute_script returns [13:12:07]free content buf [13:12:07]Sock 9.Close socket [13:12:07]Sock 9.Thread stoped [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:23]accept exits with 10 [13:12:23]New connection [13:12:23]New thread 3066879332 created [13:12:23]Thread 3067022692 joined [13:12:23]Waiting for new connection... [13:12:23] Sock 10.Parse request [13:12:23]Sock 10.Check first char [13:12:23]Sock 10.First char is OK [13:12:23]request: POST /json_proto HTTP/1.0 [13:12:23]Method: POST [13:12:23]URL: /json_proto [13:12:23]Method is POST - this is cgi request [13:12:23]url: /json_proto [13:12:23]query_string will be loaded in cgi processing [13:12:23]execute_cgi json_proto POST (null) [13:12:23]execute_cgi path=json_proto method=POST [13:12:23]POST find Content-Length [13:12:23]Host: 172.17.46.131:8080 [13:12:23]Content-Length: 803 [13:12:23]Content-Type: application/json [13:12:23] [13:12:23]POST finish read [13:12:23]Found Content-Length = 803 [13:12:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412198", "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" : 45.900, "sum" : 3300.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" : 3300.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:23]execute_script... [13:12: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)412198", "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" : 45.900, "sum" : 3300.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" : 3300.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:23]POST & json_proto [13:12:23]process_json_proto [13:12:23]json parsed OK: [13:12:23]protocol is kg_v1.0 [13:12:23]action value=close_receipt [13:12:23]process_action close_receipt [13:12:23]cmd_close_receipt [13:12:23]MH_GetDate [13:12:23]Write to MH i2c: F0 00 00 EA 21 FA [13:12:23]Write i2c OK [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: F0 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: F0 09 00 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: F0 09 00 EA 21 00 BA D8 B5 67 7E 41 4F 65 24 [13:12:23]GetLastDocTimeStamp 1739970727 [13:12:23]current date 1739970746 [13:12:23]FM_GetShiftState [13:12:23]SAM_PROTO_GetShiftState [13:12:23]wFMCommunicate request_size=4 [13:12:23]MH_SAM_APDU [13:12:23]CAPDU: 80 13 01 00 [13:12:23]Write to MH i2c: E2 08 00 EB 21 80 13 01 00 00 00 00 00 89 [13:12:23]Write i2c OK [13:12:23]MH_I2C_Read... [13:12:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:23]Read from MH i2c: E2 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 0E 00 [13:12:23]MH_I2C_Read... [13:12:23]Read from MH i2c: E2 0E 00 EB 21 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 08 [13:12:23]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:12:23]wFMCommunicate OK [13:12:23]SAM_PROTO_GetShiftState done [13:12:23]FM_GetShiftState done [13:12:23]opened in 1739929631 [13:12:23]opened+sec_in_day 1740016031 [13:12:23]quantity*price = 330021 [13:12:23]sum+1 = 330022 [13:12:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3300.21 НСП 1% : 29.20 НДС 12% : 350.46 Наличными: 0.00 Безнал.: 3300.21 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 114 19.02.2025 13:12 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187048 ФПД: 104573136913049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T131226&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187048&fm=104573136913049&tin=02508201610067®Number=0000000000091857&sum=330021 [13:12:24]StoreToDocumentArchive [13:12:24]shift 647 fd 187048 [13:12:24]save to /storage/0647/doc_00187048 [13:12:24]save last doc name /storage/0647/doc_00187048 to /storage/kkm_last_doc_name [13:12:24]save OK [13:12:24]Clear old archive folders... [13:12:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:24]tlvbuf is 00649320 [13:12:24]SAM_PROTO_ClearQueue [13:12:24]wFMCommunicate request_size=4 [13:12:24]MH_SAM_APDU [13:12:24]CAPDU: 80 09 00 00 [13:12:24]Write to MH i2c: E2 08 00 F8 21 80 09 00 00 00 00 00 00 8B [13:12:24]Write i2c OK [13:12:24]MH_I2C_Read... [13:12:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:24]Read from MH i2c: E2 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 03 00 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 03 00 F8 21 00 90 00 8D [13:12:24]RAPDU: 90 00 [13:12:24]wFMCommunicate OK [13:12:24]SAM_PROTO_ClearQueue done [13:12:24]KKMCreateOFDPacket [13:12:24]OFDProtocolAddRootSTLVToBuf [13:12:24]FM_MakeSignedData [13:12:24]FM_MakeSignedData [13:12:24]SAM_PROTO_SignData [13:12:24]wFMCommunicate request_size=4 [13:12:24]MH_SAM_APDU [13:12:24]CAPDU: 80 0D 01 02 [13:12:24]Write to MH i2c: E2 08 00 F9 21 80 0D 01 02 00 00 00 00 93 [13:12:24]Write i2c OK [13:12:24]MH_I2C_Read... [13:12:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:24]Read from MH i2c: E2 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 03 00 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 03 00 F9 21 00 90 00 8E [13:12:24]RAPDU: 90 00 [13:12:24]wFMCommunicate OK [13:12:24]wFMCommunicate request_size=255 [13:12:24]MH_SAM_APDU [13:12: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 4C B3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 25 09 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 09 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 88 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 09 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 BA D8 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 A8 DA 02 00 35 04 06 00 5F [13:12:24]Write to MH i2c: E2 02 01 FA 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 4C B3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 25 09 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 09 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 88 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 09 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 BA D8 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 A8 DA 02 00 35 04 06 00 5F 00 00 DD [13:12:24]Write i2c OK [13:12:24]MH_I2C_Read... [13:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:24]Read from MH i2c: E2 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 03 00 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 03 00 FA 21 00 90 00 8F [13:12:24]RAPDU: 90 00 [13:12:24]wFMCommunicate OK [13:12:24]wFMCommunicate request_size=10 [13:12:24]MH_SAM_APDU [13:12:24]CAPDU: 80 0D 02 02 05 1B D4 AD C2 99 [13:12:24]Write to MH i2c: E2 0D 00 FB 21 80 0D 02 02 05 00 1B D4 AD C2 99 00 00 97 [13:12:24]Write i2c OK [13:12:24]MH_I2C_Read... [13:12:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:24]Read from MH i2c: E2 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 03 00 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 03 00 FB 21 00 90 00 90 [13:12:24]RAPDU: 90 00 [13:12:24]wFMCommunicate OK [13:12:24]wFMCommunicate request_size=4 [13:12:24]MH_SAM_APDU [13:12:24]CAPDU: 80 0D 03 02 [13:12:24]Write to MH i2c: E2 08 00 FC 21 80 0D 03 02 00 00 00 00 98 [13:12:24]Write i2c OK [13:12:24]MH_I2C_Read... [13:12:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:24]Read from MH i2c: E2 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 0B 00 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 0B 00 FC 21 00 5B 6C 58 31 18 18 FC 74 90 00 89 [13:12:24]RAPDU: 5B 6C 58 31 18 18 FC 74 90 00 [13:12:24]wFMCommunicate OK [13:12:24]SAM_PROTO_SignData done [13:12:24]FM_MakeSignedData done [13:12:24]CreateOFDProtocolMessage [13:12:24]wFMCommunicate request_size=4 [13:12:24]MH_SAM_APDU [13:12:24]CAPDU: 80 11 00 00 [13:12:24]Write to MH i2c: E2 08 00 FD 21 80 11 00 00 00 00 00 00 98 [13:12:24]Write i2c OK [13:12:24]MH_I2C_Read... [13:12:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:24]Read from MH i2c: E2 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 17 00 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: E2 17 00 FD 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EB [13:12:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:12:24]wFMCommunicate OK [13:12:24]CreateOFDProtocolMessage done [13:12:24]OFDSenderStorePacket 187048 [13:12:24]StoreOFDPacket docnum=187048 [13:12: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 09 20 07 01 20 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C B3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 25 09 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 09 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 88 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 09 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 BA D8 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 A8 DA 02 00 35 04 06 00 5F 1B D4 AD C2 99 5B 6C 58 31 18 18 FC 74 [13:12:24]CheckFolder [13:12:24]dirname=/storage/ofd_packets [13:12:24]CheckFolder done [13:12:24]ProducePacketName [13:12:24]name=ofd_packets/00187048 [13:12:24]NVStorageSaveData ofd_packets/00187048 [13:12:24]File name is /storage/ofd_packets/00187048 [13:12:24]Write 301 bytes [13:12:24]NVStorageSaveData done [13:12:24]OFDSenderStorePacket done [13:12:24]KKMCreateOFDPacket done [13:12:24]NVStorageSaveData kkm_last_timestamp [13:12:24]File name is /storage/kkm_last_timestamp [13:12:24]Write 4 bytes [13:12:24]NVStorageSaveData done [13:12:24]ExternCall_PrintAddStr [13:12:24]wPrintStart [13:12:24]Write to MH i2c: 01 00 00 FE 21 1F [13:12:24]Write i2c OK [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: 01 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: 01 07 00 [13:12:24]MH_I2C_Read... [13:12:24]Read from MH i2c: 01 07 00 FE 21 00 00 00 00 00 FF 0F 34 [13:12:24]RasterBufferAndPrint [13:12:24]line Счет N : (1)412198 [13:12:24]line ИНН: 02508201610067 [13:12:24]line Контрольно-Кассовый Чек [13:12:24]line ПРОДАЖА [13:12:24]line ТРК (МРК, ГНК) : 13 [13:12:24]line Товар: 2710124500 [13:12:24]line Аи-95-К-5 [13:12:24]line 45.900 * 71.90 [13:12:24]line = 3300.21 [13:12:24]line НДС 12% НСП 1% [13:12:24]line > о реализуемом товаре [13:12:24]line ИТОГО: 3300.21 [13:12:24]line НСП 1% : 29.20 [13:12:24]line НДС 12% : 350.46 [13:12:24]line Наличными: 0.00 [13:12:24]line Безнал.: 3300.21 [13:12:24]line Место: АЗС № 92 "Партнер Нефть" [13:12:24]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:12:24]line СНО: Общий режим [13:12:24]line Чек 114 19.02.2025 13:12 [13:12:24]line Смена: 647 ФФД: 1.0 [13:12:24]line ЗНМ: 0300000118 [13:12:24]line РНМ: 0000000000091857 [13:12:24]line Версия ККМ: 001 [13:12:24]line Платежная система: O! деньги [13:12:24]line ФМ: 0000000000871826 [13:12:24]line ФД: 187048 [13:12:24]line ФПД: 104573136913049 [13:12:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T131226&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187048&fm=104573136913049&tin=02508201610067®Number=0000000000091857&sum=330021 [13:12:25]written 0, free lines is 4095 [13:12:25]OFD Sender: Processing packet 187048 [packets to send 49, broken 48] [13:12:25]ProducePacketName [13:12:25]name=ofd_packets/00187048 [13:12:25]OFD Sender: To server: pG, [13:12:25]CommunicateWithHost lk.salyk.kg:30040 [13:12:25]ConnectInit lk.salyk.kg [13:12:25]Connected sock=9 [13:12:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 09 20 07 01 20 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4C B3 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 25 09 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 25 09 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 88 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 25 09 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 BA D8 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 A8 DA 02 00 35 04 06 00 5F 1B D4 AD C2 99 5B 6C 58 31 18 18 FC 74 [13:12:25]Write to MH i2c: 01 00 00 28 22 4A [13:12:25]Write i2c OK [13:12:25]MH_I2C_Read... [13:12:25]Read from MH i2c: 01 [13:12:25]MH_I2C_Read... [13:12:25]Read from MH i2c: 01 07 00 [13:12:25]MH_I2C_Read... [13:12:25]Read from MH i2c: 01 07 00 28 22 00 00 00 00 00 0C 0D 6A [13:12:25]RasterBufferAndPrint [13:12:25]line [13:12:25]line [13:12:25]line [13:12:25]line [13:12:25]line [13:12:25]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 99 47 00 0B 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 A8 DA 02 00 F4 03 04 00 0E 7F B5 67 B6 04 01 00 00 8F D3 54 EB C2 C0 BB 56 [13:12:25]CommunicateWithHost err = 0 [13:12:25]CheckOFDResponse [13:12:25]1017 (14) - 77093643461234 [13:12:25]1041 (16) - 0000000000871826 [13:12:25]1040 (4) - 187048 [13:12:25]1012 (4) - 19.02.2025 06:49 [13:12:25]1206 (1) - 0 [13:12:25]OFD Sender: Remove packet 187048 [13:12:25]ProducePacketName [13:12:25]name=ofd_packets/00187048 [13:12:25]NVStorageDeleteData [13:12:25]written 0, free lines is 3362 [13:12:25]MH_Cut [13:12:25]Write to MH i2c: D1 01 00 2F 22 01 23 [13:12:25]Write i2c OK [13:12:25]MH_I2C_Read... [13:12:25]Read from MH i2c: D1 [13:12:25]MH_I2C_Read... [13:12:25]Read from MH i2c: D1 01 00 [13:12:25]MH_I2C_Read... [13:12:25]Read from MH i2c: D1 01 00 2F 22 00 22 [13:12:25]Write to MH i2c: 01 00 00 30 22 52 [13:12:25]Write i2c OK [13:12:25]MH_I2C_Read... [13:12:26]OFD Sender: No OFD packet to send [13:12:26]*** Cut start [13:12:26]*** Partial cut [13:12:26]*** CUTSNS_PIN = 1 [13:12:26]*** CUTSNS_PIN = 0 [13:12:26]*** Brake cut motor [13:12:26]Read from MH i2c: 01 [13:12:26]MH_I2C_Read... [13:12:26]*** Stop cut motor [13:12:26]*** Cut end [13:12:26]Read from MH i2c: 01 07 00 [13:12:26]MH_I2C_Read... [13:12:26]Read from MH i2c: 01 07 00 30 22 00 00 00 00 00 FF 0F 67 [13:12:26]process_action close_receipt done [13:12:26]requested_data is exist [13:12:26]produce_requested_data [13:12:26]requested_item fm.sn is exist - process it [13:12:26]wFMCommunicate request_size=4 [13:12:26]MH_SAM_APDU [13:12:26]CAPDU: 80 11 00 00 [13:12:26]Write to MH i2c: E2 08 00 31 22 80 11 00 00 00 00 00 00 CD [13:12:26]Write i2c OK [13:12:26]MH_I2C_Read... [13:12:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:26]Read from MH i2c: E2 [13:12:26]MH_I2C_Read... [13:12:26]Read from MH i2c: E2 17 00 [13:12:26]MH_I2C_Read... [13:12:26]Read from MH i2c: E2 17 00 31 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 20 [13:12:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:12:26]wFMCommunicate OK [13:12:26]requested_item fd.num is exist - process it [13:12:26]SAM_PROTO_GetFieldsCounters [13:12:26]wFMCommunicate request_size=4 [13:12:26]MH_SAM_APDU [13:12:26]CAPDU: 80 13 00 00 [13:12:26]Write to MH i2c: E2 08 00 32 22 80 13 00 00 00 00 00 00 D0 [13:12:26]Write i2c OK [13:12:26]MH_I2C_Read... [13:12:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:27]Read from MH i2c: E2 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: E2 62 00 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: E2 62 00 32 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 A8 DA 02 00 0E 04 04 00 87 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 59 [13:12: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 A8 DA 02 00 0E 04 04 00 87 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 [13:12:27]wFMCommunicate OK [13:12:27]SAM_PROTO_GetFieldsCounters done [13:12:27]requested_item shift.num is exist - process it [13:12:27]requested_item shift.opened is exist - process it [13:12:27]req_shift_opened [13:12:27]FM_GetShiftState [13:12:27]SAM_PROTO_GetShiftState [13:12:27]wFMCommunicate request_size=4 [13:12:27]MH_SAM_APDU [13:12:27]CAPDU: 80 13 01 00 [13:12:27]Write to MH i2c: E2 08 00 33 22 80 13 01 00 00 00 00 00 D2 [13:12:27]Write i2c OK [13:12:27]MH_I2C_Read... [13:12:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:27]Read from MH i2c: E2 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: E2 0E 00 [13:12:27]MH_I2C_Read... [13:12:27]Read from MH i2c: E2 0E 00 33 22 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 51 [13:12:27]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:12:27]wFMCommunicate OK [13:12:27]SAM_PROTO_GetShiftState done [13:12:27]FM_GetShiftState done [13:12:27]req_shift_opened done [13:12:27]requested_item shift.open_date is exist - process it [13:12:27]req_shift_open_date [13:12:27]req_shift_open_date done [13:12:27]produce_requested_data done [13:12:27]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187048,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [13:12:27]process_action_free close_receipt [13:12:27]json_value_free [13:12:27]json_value_free done [13:12:27]process_json_proto returns [13:12:27]Send response to host [13:12:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187048,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [13:12:27]free response buf [13:12:27]execute_script done [13:12:27]execute_script returns [13:12:27]free content buf [13:12:27]Sock 10.Close socket [13:12:27]Sock 10.Thread stoped [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:41]accept exits with 7 [13:12:41]New connection [13:12:41]New thread 3067022692 created [13:12:41]Thread 3066879332 joined [13:12:41]Waiting for new connection... [13:12:41] Sock 7.Parse request [13:12:41]Sock 7.Check first char [13:12:41]Sock 7.First char is OK [13:12:41]request: POST /json_proto HTTP/1.0 [13:12:41]Method: POST [13:12:41]URL: /json_proto [13:12:41]Method is POST - this is cgi request [13:12:41]url: /json_proto [13:12:41]query_string will be loaded in cgi processing [13:12:41]execute_cgi json_proto POST (null) [13:12:41]execute_cgi path=json_proto method=POST [13:12:41]POST find Content-Length [13:12:41]Host: 172.17.46.131:8080 [13:12:41]Content-Length: 677 [13:12:41]Content-Type: application/json [13:12:41] [13:12:41]POST finish read [13:12:41]Found Content-Length = 677 [13:12:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412200", "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" : 8.420, "sum" : 540.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:41]execute_script... [13:12: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)412200", "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" : 8.420, "sum" : 540.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:41]POST & json_proto [13:12:41]process_json_proto [13:12:41]json parsed OK: [13:12:41]protocol is kg_v1.0 [13:12:41]action value=close_receipt [13:12:41]process_action close_receipt [13:12:41]cmd_close_receipt [13:12:41]MH_GetDate [13:12:41]Write to MH i2c: F0 00 00 34 22 45 [13:12:41]Write i2c OK [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: F0 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: F0 09 00 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: F0 09 00 34 22 00 CD D8 B5 67 7E 41 4F 65 82 [13:12:41]GetLastDocTimeStamp 1739970746 [13:12:41]current date 1739970765 [13:12:41]FM_GetShiftState [13:12:41]SAM_PROTO_GetShiftState [13:12:41]wFMCommunicate request_size=4 [13:12:41]MH_SAM_APDU [13:12:41]CAPDU: 80 13 01 00 [13:12:41]Write to MH i2c: E2 08 00 35 22 80 13 01 00 00 00 00 00 D4 [13:12:41]Write i2c OK [13:12:41]MH_I2C_Read... [13:12:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:41]Read from MH i2c: E2 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: E2 0E 00 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: E2 0E 00 35 22 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 53 [13:12:41]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:12:41]wFMCommunicate OK [13:12:41]SAM_PROTO_GetShiftState done [13:12:41]FM_GetShiftState done [13:12:41]opened in 1739929631 [13:12:41]opened+sec_in_day 1740016031 [13:12:41]quantity*price = 54056 [13:12:41]sum+1 = 54057 [13:12:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.40 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 115 19.02.2025 13:12 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187049 ФПД: 104562084916228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T131245&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187049&fm=104562084916228&tin=02508201610067®Number=0000000000091857&sum=54000 [13:12:43]StoreToDocumentArchive [13:12:43]shift 647 fd 187049 [13:12:43]save to /storage/0647/doc_00187049 [13:12:43]save last doc name /storage/0647/doc_00187049 to /storage/kkm_last_doc_name [13:12:43]save OK [13:12:43]Clear old archive folders... [13:12:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:43]tlvbuf is B6F66CB0 [13:12:43]SAM_PROTO_ClearQueue [13:12:43]wFMCommunicate request_size=4 [13:12:43]MH_SAM_APDU [13:12:43]CAPDU: 80 09 00 00 [13:12:43]Write to MH i2c: E2 08 00 42 22 80 09 00 00 00 00 00 00 D6 [13:12:43]Write i2c OK [13:12:43]MH_I2C_Read... [13:12:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:43]Read from MH i2c: E2 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: E2 03 00 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: E2 03 00 42 22 00 90 00 D8 [13:12:43]RAPDU: 90 00 [13:12:43]wFMCommunicate OK [13:12:43]SAM_PROTO_ClearQueue done [13:12:43]KKMCreateOFDPacket [13:12:43]OFDProtocolAddRootSTLVToBuf [13:12:43]FM_MakeSignedData [13:12:43]FM_MakeSignedData [13:12:43]SAM_PROTO_SignData [13:12:43]wFMCommunicate request_size=4 [13:12:43]MH_SAM_APDU [13:12:43]CAPDU: 80 0D 01 02 [13:12:43]Write to MH i2c: E2 08 00 43 22 80 0D 01 02 00 00 00 00 DE [13:12:43]Write i2c OK [13:12:43]MH_I2C_Read... [13:12:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:43]Read from MH i2c: E2 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: E2 03 00 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: E2 03 00 43 22 00 90 00 D9 [13:12:43]RAPDU: 90 00 [13:12:43]wFMCommunicate OK [13:12:43]wFMCommunicate request_size=255 [13:12:43]MH_SAM_APDU [13:12: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 E4 20 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 28 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 CD D8 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 A9 DA 02 00 35 04 06 00 5F [13:12:43]Write to MH i2c: E2 02 01 44 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E4 20 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 28 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 CD D8 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 A9 DA 02 00 35 04 06 00 5F 00 00 9C [13:12:43]Write i2c OK [13:12:43]MH_I2C_Read... [13:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:43]Read from MH i2c: E2 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: E2 03 00 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: E2 03 00 44 22 00 90 00 DA [13:12:43]RAPDU: 90 00 [13:12:43]wFMCommunicate OK [13:12:43]wFMCommunicate request_size=10 [13:12:43]MH_SAM_APDU [13:12:43]CAPDU: 80 0D 02 02 05 19 41 ED AC 04 [13:12:43]Write to MH i2c: E2 0D 00 45 22 80 0D 02 02 05 00 19 41 ED AC 04 00 00 E2 [13:12:43]Write i2c OK [13:12:43]MH_I2C_Read... [13:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:43]Read from MH i2c: E2 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: E2 03 00 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: E2 03 00 45 22 00 90 00 DB [13:12:43]RAPDU: 90 00 [13:12:43]wFMCommunicate OK [13:12:43]wFMCommunicate request_size=4 [13:12:43]MH_SAM_APDU [13:12:43]CAPDU: 80 0D 03 02 [13:12:43]Write to MH i2c: E2 08 00 46 22 80 0D 03 02 00 00 00 00 E3 [13:12:43]Write i2c OK [13:12:43]MH_I2C_Read... [13:12:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:43]Read from MH i2c: E2 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: E2 0B 00 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: E2 0B 00 46 22 00 F3 8E 6C 6C 41 27 F3 29 90 00 C1 [13:12:43]RAPDU: F3 8E 6C 6C 41 27 F3 29 90 00 [13:12:43]wFMCommunicate OK [13:12:43]SAM_PROTO_SignData done [13:12:43]FM_MakeSignedData done [13:12:43]CreateOFDProtocolMessage [13:12:43]wFMCommunicate request_size=4 [13:12:43]MH_SAM_APDU [13:12:43]CAPDU: 80 11 00 00 [13:12:43]Write to MH i2c: E2 08 00 47 22 80 11 00 00 00 00 00 00 E3 [13:12:43]Write i2c OK [13:12:43]MH_I2C_Read... [13:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:43]Read from MH i2c: E2 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: E2 17 00 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: E2 17 00 47 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 36 [13:12:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:12:43]wFMCommunicate OK [13:12:43]CreateOFDProtocolMessage done [13:12:43]OFDSenderStorePacket 187049 [13:12:43]StoreOFDPacket docnum=187049 [13:12: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 4B 19 07 01 B8 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E4 20 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 28 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 CD D8 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 A9 DA 02 00 35 04 06 00 5F 19 41 ED AC 04 F3 8E 6C 6C 41 27 F3 29 [13:12:43]CheckFolder [13:12:43]dirname=/storage/ofd_packets [13:12:43]CheckFolder done [13:12:43]ProducePacketName [13:12:43]name=ofd_packets/00187049 [13:12:43]NVStorageSaveData ofd_packets/00187049 [13:12:43]File name is /storage/ofd_packets/00187049 [13:12:43]Write 301 bytes [13:12:43]NVStorageSaveData done [13:12:43]OFDSenderStorePacket done [13:12:43]KKMCreateOFDPacket done [13:12:43]NVStorageSaveData kkm_last_timestamp [13:12:43]File name is /storage/kkm_last_timestamp [13:12:43]Write 4 bytes [13:12:43]NVStorageSaveData done [13:12:43]ExternCall_PrintAddStr [13:12:43]wPrintStart [13:12:43]Write to MH i2c: 01 00 00 48 22 6A [13:12:43]Write i2c OK [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: 01 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: 01 07 00 [13:12:43]MH_I2C_Read... [13:12:43]Read from MH i2c: 01 07 00 48 22 00 00 00 00 00 FF 0F 7F [13:12:43]RasterBufferAndPrint [13:12:43]line Счет N : (1)412200 [13:12:43]line ИНН: 02508201610067 [13:12:43]line Контрольно-Кассовый Чек [13:12:43]line ПРОДАЖА [13:12:43]line ТРК (МРК, ГНК) : 32 [13:12:43]line Товар: 2710124130 [13:12:43]line Аи-92-К-2 [13:12:43]line 8.420 * 64.20 [13:12:43]line = 540.56 [13:12:43]line НДС 12% НСП 1% [13:12:43]line > о реализуемом товаре [13:12:43]line ОКРУГЛЕНИЕ: -0.56 [13:12:43]line ИТОГО: 540.00 [13:12:43]line Внесено: 540.00 [13:12:43]line СДАЧА: 0.00 [13:12:43]line НСП 1% : 4.78 [13:12:43]line НДС 12% : 57.40 [13:12:43]line Наличными: 540.00 [13:12:43]line Безнал.: 0.00 [13:12:43]line Место: АЗС № 92 "Партнер Нефть" [13:12:43]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:12:43]line СНО: Общий режим [13:12:43]line Чек 115 19.02.2025 13:12 [13:12:43]line Смена: 647 ФФД: 1.0 [13:12:43]line ЗНМ: 0300000118 [13:12:43]line РНМ: 0000000000091857 [13:12:43]line Версия ККМ: 001 [13:12:43]line ФМ: 0000000000871826 [13:12:43]line ФД: 187049 [13:12:43]line ФПД: 104562084916228 [13:12:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T131245&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187049&fm=104562084916228&tin=02508201610067®Number=0000000000091857&sum=54000 [13:12:43]written 0, free lines is 4095 [13:12:43]OFD Sender: Processing packet 187049 [packets to send 49, broken 48] [13:12:43]ProducePacketName [13:12:43]name=ofd_packets/00187049 [13:12:43]OFD Sender: To server: pG, [13:12:43]CommunicateWithHost lk.salyk.kg:30040 [13:12:43]ConnectInit lk.salyk.kg [13:12:43]Connected sock=9 [13:12: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 4B 19 07 01 B8 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E4 20 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 28 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 CD D8 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 A9 DA 02 00 35 04 06 00 5F 19 41 ED AC 04 F3 8E 6C 6C 41 27 F3 29 [13:12:44]Write to MH i2c: 01 00 00 73 22 95 [13:12:44]Write i2c OK [13:12:44]MH_I2C_Read... [13:12:44]Read from MH i2c: 01 [13:12:44]MH_I2C_Read... [13:12:44]Read from MH i2c: 01 07 00 [13:12:44]MH_I2C_Read... [13:12:44]Read from MH i2c: 01 07 00 73 22 00 00 00 00 00 02 0D AB [13:12:44]RasterBufferAndPrint [13:12:44]line [13:12:44]line [13:12:44]line [13:12:44]line [13:12:44]line [13:12:44]written 0, free lines is 3336 [13:12:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 59 19 47 00 6D 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A9 DA 02 00 F4 03 04 00 21 7F B5 67 B6 04 01 00 00 D5 CC 78 A5 E1 A5 FB 18 [13:12:44]CommunicateWithHost err = 0 [13:12:44]CheckOFDResponse [13:12:44]1017 (14) - 77093643461234 [13:12:44]1041 (16) - 0000000000871826 [13:12:44]1040 (4) - 187049 [13:12:44]1012 (4) - 19.02.2025 06:50 [13:12:44]1206 (1) - 0 [13:12:44]OFD Sender: Remove packet 187049 [13:12:44]ProducePacketName [13:12:44]name=ofd_packets/00187049 [13:12:44]NVStorageDeleteData [13:12:44]MH_Cut [13:12:44]Write to MH i2c: D1 01 00 7A 22 01 6E [13:12:44]Write i2c OK [13:12:44]MH_I2C_Read... [13:12:44]Read from MH i2c: D1 [13:12:44]MH_I2C_Read... [13:12:44]Read from MH i2c: D1 01 00 [13:12:44]MH_I2C_Read... [13:12:44]Read from MH i2c: D1 01 00 7A 22 00 6D [13:12:44]Write to MH i2c: 01 00 00 7B 22 9D [13:12:44]Write i2c OK [13:12:44]MH_I2C_Read... [13:12:44]OFD Sender: No OFD packet to send [13:12:44]*** Cut start [13:12:44]*** Partial cut [13:12:44]*** CUTSNS_PIN = 1 [13:12:44]*** CUTSNS_PIN = 0 [13:12:45]*** Brake cut motor [13:12:45]Read from MH i2c: 01 [13:12:45]MH_I2C_Read... [13:12:45]*** Stop cut motor [13:12:45]*** Cut end [13:12:45]Read from MH i2c: 01 07 00 [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: 01 07 00 7B 22 00 00 00 00 00 FF 0F B2 [13:12:45]process_action close_receipt done [13:12:45]requested_data is exist [13:12:45]produce_requested_data [13:12:45]requested_item fm.sn is exist - process it [13:12:45]wFMCommunicate request_size=4 [13:12:45]MH_SAM_APDU [13:12:45]CAPDU: 80 11 00 00 [13:12:45]Write to MH i2c: E2 08 00 7C 22 80 11 00 00 00 00 00 00 18 [13:12:45]Write i2c OK [13:12:45]MH_I2C_Read... [13:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:45]Read from MH i2c: E2 [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: E2 17 00 [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: E2 17 00 7C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6B [13:12: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:12:45]wFMCommunicate OK [13:12:45]requested_item fd.num is exist - process it [13:12:45]SAM_PROTO_GetFieldsCounters [13:12:45]wFMCommunicate request_size=4 [13:12:45]MH_SAM_APDU [13:12:45]CAPDU: 80 13 00 00 [13:12:45]Write to MH i2c: E2 08 00 7D 22 80 13 00 00 00 00 00 00 1B [13:12:45]Write i2c OK [13:12:45]MH_I2C_Read... [13:12:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:45]Read from MH i2c: E2 [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: E2 62 00 [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: E2 62 00 7D 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 A9 DA 02 00 0E 04 04 00 87 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 A8 [13:12: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 A9 DA 02 00 0E 04 04 00 87 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 [13:12:45]wFMCommunicate OK [13:12:45]SAM_PROTO_GetFieldsCounters done [13:12:45]requested_item shift.num is exist - process it [13:12:45]requested_item shift.opened is exist - process it [13:12:45]req_shift_opened [13:12:45]FM_GetShiftState [13:12:45]SAM_PROTO_GetShiftState [13:12:45]wFMCommunicate request_size=4 [13:12:45]MH_SAM_APDU [13:12:45]CAPDU: 80 13 01 00 [13:12:45]Write to MH i2c: E2 08 00 7E 22 80 13 01 00 00 00 00 00 1D [13:12:45]Write i2c OK [13:12:45]MH_I2C_Read... [13:12:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:45]Read from MH i2c: E2 [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: E2 0E 00 [13:12:45]MH_I2C_Read... [13:12:45]Read from MH i2c: E2 0E 00 7E 22 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 9C [13:12:45]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:12:45]wFMCommunicate OK [13:12:45]SAM_PROTO_GetShiftState done [13:12:45]FM_GetShiftState done [13:12:45]req_shift_opened done [13:12:45]requested_item shift.open_date is exist - process it [13:12:45]req_shift_open_date [13:12:45]req_shift_open_date done [13:12:45]produce_requested_data done [13:12:45]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187049,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [13:12:45]process_action_free close_receipt [13:12:45]json_value_free [13:12:45]json_value_free done [13:12:45]process_json_proto returns [13:12:45]Send response to host [13:12:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187049,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [13:12:45]free response buf [13:12:45]execute_script done [13:12:45]execute_script returns [13:12:45]free content buf [13:12:45]Sock 7.Close socket [13:12:45]Sock 7.Thread stoped [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:54]OFD Sender: No OFD packet to send [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:09]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:13]accept exits with 10 [13:20:13]New connection [13:20:13]New thread 3066879332 created [13:20:13]Thread 3067022692 joined [13:20:13]Waiting for new connection... [13:20:13] Sock 10.Parse request [13:20:13]Sock 10.Check first char [13:20:13]Sock 10.First char is OK [13:20:13]request: POST /json_proto HTTP/1.0 [13:20:13]Method: POST [13:20:13]URL: /json_proto [13:20:13]Method is POST - this is cgi request [13:20:13]url: /json_proto [13:20:13]query_string will be loaded in cgi processing [13:20:13]execute_cgi json_proto POST (null) [13:20:13]execute_cgi path=json_proto method=POST [13:20:13]POST find Content-Length [13:20:13]Host: 172.17.46.131:8080 [13:20:13]Content-Length: 837 [13:20:13]Content-Type: application/json [13:20:13] [13:20:13]POST finish read [13:20:13]Found Content-Length = 837 [13:20:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412201", "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" : 120.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\u000A4366401 4366400 4366399 4366398 4366397 4366402", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:13]execute_script... [13:20:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412201", "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" : 120.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\u000A4366401 4366400 4366399 4366398 4366397 4366402", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:13]POST & json_proto [13:20:13]process_json_proto [13:20:13]json parsed OK: [13:20:13]protocol is kg_v1.0 [13:20:13]action value=close_receipt [13:20:13]process_action close_receipt [13:20:13]cmd_close_receipt [13:20:13]MH_GetDate [13:20:13]Write to MH i2c: F0 00 00 7F 22 90 [13:20:13]Write i2c OK [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: F0 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: F0 09 00 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: F0 09 00 7F 22 00 90 DA B5 67 7E 41 4F 65 92 [13:20:13]GetLastDocTimeStamp 1739970765 [13:20:13]current date 1739971216 [13:20:13]FM_GetShiftState [13:20:13]SAM_PROTO_GetShiftState [13:20:13]wFMCommunicate request_size=4 [13:20:13]MH_SAM_APDU [13:20:13]CAPDU: 80 13 01 00 [13:20:13]Write to MH i2c: E2 08 00 80 22 80 13 01 00 00 00 00 00 1F [13:20:13]Write i2c OK [13:20:13]MH_I2C_Read... [13:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:13]Read from MH i2c: E2 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: E2 0E 00 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: E2 0E 00 80 22 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 9E [13:20:13]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:20:13]wFMCommunicate OK [13:20:13]SAM_PROTO_GetShiftState done [13:20:13]FM_GetShiftState done [13:20:13]opened in 1739929631 [13:20:13]opened+sec_in_day 1740016031 [13:20:13]quantity*price = 0 [13:20:13]sum+1 = 1 [13:20:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 116 19.02.2025 13:20 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4366401 4366400 4366399 4366398 4366397 4366402 ФМ: 0000000000871826 ФД: 187050 ФПД: 52054897400743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T132016&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187050&fm=52054897400743&tin=02508201610067®Number=0000000000091857&sum=0 [13:20:14]StoreToDocumentArchive [13:20:14]shift 647 fd 187050 [13:20:14]save to /storage/0647/doc_00187050 [13:20:14]save last doc name /storage/0647/doc_00187050 to /storage/kkm_last_doc_name [13:20:14]save OK [13:20:14]Clear old archive folders... [13:20:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:20:14]tlvbuf is 005C6A60 [13:20:14]SAM_PROTO_ClearQueue [13:20:14]wFMCommunicate request_size=4 [13:20:14]MH_SAM_APDU [13:20:14]CAPDU: 80 09 00 00 [13:20:14]Write to MH i2c: E2 08 00 8D 22 80 09 00 00 00 00 00 00 21 [13:20:14]Write i2c OK [13:20:14]MH_I2C_Read... [13:20:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:14]Read from MH i2c: E2 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 03 00 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 03 00 8D 22 00 90 00 23 [13:20:14]RAPDU: 90 00 [13:20:14]wFMCommunicate OK [13:20:14]SAM_PROTO_ClearQueue done [13:20:14]KKMCreateOFDPacket [13:20:14]OFDProtocolAddRootSTLVToBuf [13:20:14]FM_MakeSignedData [13:20:14]FM_MakeSignedData [13:20:14]SAM_PROTO_SignData [13:20:14]wFMCommunicate request_size=4 [13:20:14]MH_SAM_APDU [13:20:14]CAPDU: 80 0D 01 02 [13:20:14]Write to MH i2c: E2 08 00 8E 22 80 0D 01 02 00 00 00 00 29 [13:20:14]Write i2c OK [13:20:14]MH_I2C_Read... [13:20:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:14]Read from MH i2c: E2 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 03 00 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 03 00 8E 22 00 90 00 24 [13:20:14]RAPDU: 90 00 [13:20:14]wFMCommunicate OK [13:20:14]wFMCommunicate request_size=255 [13:20:14]MH_SAM_APDU [13:20:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C0 D4 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 90 DA 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 AA DA 02 00 35 04 06 00 2F 57 F9 AB [13:20:14]Write to MH i2c: E2 02 01 8F 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 C0 D4 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 90 DA 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 AA DA 02 00 35 04 06 00 2F 57 F9 AB 00 00 53 [13:20:14]Write i2c OK [13:20:14]MH_I2C_Read... [13:20:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:14]Read from MH i2c: E2 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 03 00 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 03 00 8F 22 00 90 00 25 [13:20:14]RAPDU: 90 00 [13:20:14]wFMCommunicate OK [13:20:14]wFMCommunicate request_size=7 [13:20:14]MH_SAM_APDU [13:20:14]CAPDU: 80 0D 02 02 02 1B A7 [13:20:14]Write to MH i2c: E2 0A 00 90 22 80 0D 02 02 02 00 1B A7 00 00 F2 [13:20:14]Write i2c OK [13:20:14]MH_I2C_Read... [13:20:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:14]Read from MH i2c: E2 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 03 00 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 03 00 90 22 00 90 00 26 [13:20:14]RAPDU: 90 00 [13:20:14]wFMCommunicate OK [13:20:14]wFMCommunicate request_size=4 [13:20:14]MH_SAM_APDU [13:20:14]CAPDU: 80 0D 03 02 [13:20:14]Write to MH i2c: E2 08 00 91 22 80 0D 03 02 00 00 00 00 2E [13:20:14]Write i2c OK [13:20:14]MH_I2C_Read... [13:20:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:15]Read from MH i2c: E2 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: E2 0B 00 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: E2 0B 00 91 22 00 C4 0D 3E A3 30 2B 0E D1 90 00 1B [13:20:15]RAPDU: C4 0D 3E A3 30 2B 0E D1 90 00 [13:20:15]wFMCommunicate OK [13:20:15]SAM_PROTO_SignData done [13:20:15]FM_MakeSignedData done [13:20:15]CreateOFDProtocolMessage [13:20:15]wFMCommunicate request_size=4 [13:20:15]MH_SAM_APDU [13:20:15]CAPDU: 80 11 00 00 [13:20:15]Write to MH i2c: E2 08 00 92 22 80 11 00 00 00 00 00 00 2E [13:20:15]Write i2c OK [13:20:15]MH_I2C_Read... [13:20:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:15]Read from MH i2c: E2 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: E2 17 00 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: E2 17 00 92 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 81 [13:20:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:20:15]wFMCommunicate OK [13:20:15]CreateOFDProtocolMessage done [13:20:15]OFDSenderStorePacket 187050 [13:20:15]StoreOFDPacket docnum=187050 [13:20: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 0C 01 00 00 62 63 04 01 68 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 C0 D4 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 90 DA 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 AA DA 02 00 35 04 06 00 2F 57 F9 AB 1B A7 C4 0D 3E A3 30 2B 0E D1 [13:20:15]CheckFolder [13:20:15]dirname=/storage/ofd_packets [13:20:15]CheckFolder done [13:20:15]ProducePacketName [13:20:15]name=ofd_packets/00187050 [13:20:15]NVStorageSaveData ofd_packets/00187050 [13:20:15]File name is /storage/ofd_packets/00187050 [13:20:15]Write 298 bytes [13:20:15]NVStorageSaveData done [13:20:15]OFDSenderStorePacket done [13:20:15]KKMCreateOFDPacket done [13:20:15]NVStorageSaveData kkm_last_timestamp [13:20:15]File name is /storage/kkm_last_timestamp [13:20:15]Write 4 bytes [13:20:15]NVStorageSaveData done [13:20:15]ExternCall_PrintAddStr [13:20:15]wPrintStart [13:20:15]Write to MH i2c: 01 00 00 93 22 B5 [13:20:15]Write i2c OK [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: 01 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: 01 07 00 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: 01 07 00 93 22 00 00 00 00 00 FF 0F CA [13:20:15]RasterBufferAndPrint [13:20:15]line Счет N : (1)412201 [13:20:15]line ИНН: 02508201610067 [13:20:15]line Контрольно-Кассовый Чек [13:20:15]line ПРОДАЖА [13:20:15]line ТРК (МРК, ГНК) : 6 [13:20:15]line Товар: 2710194210 [13:20:15]line ДТ-К-5 [13:20:15]line 120.000 * 0.00 [13:20:15]line = 0.00 [13:20:15]line НДС 12% НСП 1% [13:20:15]line > о реализуемом товаре [13:20:15]line ИТОГО: 0.00 [13:20:15]line НСП 1% : 0.00 [13:20:15]line НДС 12% : 0.00 [13:20:15]line Наличными: 0.00 [13:20:15]line Безнал.: 0.00 [13:20:15]line Место: АЗС № 92 "Партнер Нефть" [13:20:15]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:20:15]line СНО: Общий режим [13:20:15]line Чек 116 19.02.2025 13:20 [13:20:15]line Смена: 647 ФФД: 1.0 [13:20:15]line ЗНМ: 0300000118 [13:20:15]line РНМ: 0000000000091857 [13:20:15]line Версия ККМ: 001 [13:20:15]line Талоны: Топливные Талоны [13:20:15]line 4366401 4366400 4366399 4366398 4366397 4366402 [13:20:15]line ФМ: 0000000000871826 [13:20:15]line ФД: 187050 [13:20:15]line ФПД: 52054897400743 [13:20:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T132016&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187050&fm=52054897400743&tin=02508201610067®Number=0000000000091857&sum=0 [13:20:15]OFD Sender: Processing packet 187050 [packets to send 49, broken 48] [13:20:15]ProducePacketName [13:20:15]name=ofd_packets/00187050 [13:20:15]OFD Sender: To server: pG, [13:20:15]CommunicateWithHost lk.salyk.kg:30040 [13:20:15]ConnectInit lk.salyk.kg [13:20:15]written 0, free lines is 4095 [13:20:15]Connected sock=9 [13:20:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 62 63 04 01 68 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 C0 D4 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 90 DA 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 AA DA 02 00 35 04 06 00 2F 57 F9 AB 1B A7 C4 0D 3E A3 30 2B 0E D1 [13:20: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 21 D6 47 00 45 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AA DA 02 00 F4 03 04 00 E4 80 B5 67 B6 04 01 00 00 36 FA CF CE F0 A4 1B E3 [13:20:15]CommunicateWithHost err = 0 [13:20:15]CheckOFDResponse [13:20:15]1017 (14) - 77093643461234 [13:20:15]1041 (16) - 0000000000871826 [13:20:15]1040 (4) - 187050 [13:20:15]1012 (4) - 19.02.2025 06:57 [13:20:15]1206 (1) - 0 [13:20:15]OFD Sender: Remove packet 187050 [13:20:15]ProducePacketName [13:20:15]name=ofd_packets/00187050 [13:20:15]NVStorageDeleteData [13:20:15]Write to MH i2c: 01 00 00 BE 22 E0 [13:20:15]Write i2c OK [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: 01 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: 01 07 00 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: 01 07 00 BE 22 00 00 00 00 00 1D 0D 11 [13:20:15]RasterBufferAndPrint [13:20:15]line [13:20:15]line [13:20:15]line [13:20:15]line [13:20:15]line [13:20:15]written 0, free lines is 3366 [13:20:15]MH_Cut [13:20:15]Write to MH i2c: D1 01 00 C5 22 01 B9 [13:20:15]Write i2c OK [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: D1 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: D1 01 00 [13:20:15]MH_I2C_Read... [13:20:15]Read from MH i2c: D1 01 00 C5 22 00 B8 [13:20:15]Write to MH i2c: 01 00 00 C6 22 E8 [13:20:15]Write i2c OK [13:20:15]MH_I2C_Read... [13:20:16]OFD Sender: No OFD packet to send [13:20:16]*** Cut start [13:20:16]*** Partial cut [13:20:16]*** CUTSNS_PIN = 1 [13:20:16]*** CUTSNS_PIN = 0 [13:20:16]*** Brake cut motor [13:20:17]Read from MH i2c: 01 [13:20:17]MH_I2C_Read... [13:20:17]*** Stop cut motor [13:20:17]*** Cut end [13:20:17]Read from MH i2c: 01 07 00 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: 01 07 00 C6 22 00 00 00 00 00 FF 0F FD [13:20:17]process_action close_receipt done [13:20:17]requested_data is exist [13:20:17]produce_requested_data [13:20:17]requested_item fm.sn is exist - process it [13:20:17]wFMCommunicate request_size=4 [13:20:17]MH_SAM_APDU [13:20:17]CAPDU: 80 11 00 00 [13:20:17]Write to MH i2c: E2 08 00 C7 22 80 11 00 00 00 00 00 00 63 [13:20:17]Write i2c OK [13:20:17]MH_I2C_Read... [13:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:17]Read from MH i2c: E2 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: E2 17 00 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: E2 17 00 C7 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B6 [13:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:20:17]wFMCommunicate OK [13:20:17]requested_item fd.num is exist - process it [13:20:17]SAM_PROTO_GetFieldsCounters [13:20:17]wFMCommunicate request_size=4 [13:20:17]MH_SAM_APDU [13:20:17]CAPDU: 80 13 00 00 [13:20:17]Write to MH i2c: E2 08 00 C8 22 80 13 00 00 00 00 00 00 66 [13:20:17]Write i2c OK [13:20:17]MH_I2C_Read... [13:20:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:17]Read from MH i2c: E2 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: E2 62 00 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: E2 62 00 C8 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 AA DA 02 00 0E 04 04 00 87 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 F7 [13:20:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [13:20:17]wFMCommunicate OK [13:20:17]SAM_PROTO_GetFieldsCounters done [13:20:17]requested_item shift.num is exist - process it [13:20:17]requested_item shift.opened is exist - process it [13:20:17]req_shift_opened [13:20:17]FM_GetShiftState [13:20:17]SAM_PROTO_GetShiftState [13:20:17]wFMCommunicate request_size=4 [13:20:17]MH_SAM_APDU [13:20:17]CAPDU: 80 13 01 00 [13:20:17]Write to MH i2c: E2 08 00 C9 22 80 13 01 00 00 00 00 00 68 [13:20:17]Write i2c OK [13:20:17]MH_I2C_Read... [13:20:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:17]Read from MH i2c: E2 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: E2 0E 00 [13:20:17]MH_I2C_Read... [13:20:17]Read from MH i2c: E2 0E 00 C9 22 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E7 [13:20:17]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:20:17]wFMCommunicate OK [13:20:17]SAM_PROTO_GetShiftState done [13:20:17]FM_GetShiftState done [13:20:17]req_shift_opened done [13:20:17]requested_item shift.open_date is exist - process it [13:20:17]req_shift_open_date [13:20:17]req_shift_open_date done [13:20:17]produce_requested_data done [13:20:17]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187050,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [13:20:17]process_action_free close_receipt [13:20:17]json_value_free [13:20:17]json_value_free done [13:20:17]process_json_proto returns [13:20:17]Send response to host [13:20:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187050,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [13:20:17]free response buf [13:20:17]execute_script done [13:20:17]execute_script returns [13:20:17]free content buf [13:20:17]Sock 10.Close socket [13:20:17]Sock 10.Thread stoped [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:31]OFD Sender: No OFD packet to send [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]accept exits with 7 [13:21:51]New connection [13:21:51]New thread 3067022692 created [13:21:51]Thread 3066879332 joined [13:21:51]Waiting for new connection... [13:21:51] Sock 7.Parse request [13:21:51]Sock 7.Check first char [13:21:51]Sock 7.First char is OK [13:21:51]request: POST /json_proto HTTP/1.0 [13:21:51]Method: POST [13:21:51]URL: /json_proto [13:21:51]Method is POST - this is cgi request [13:21:51]url: /json_proto [13:21:51]query_string will be loaded in cgi processing [13:21:51]execute_cgi json_proto POST (null) [13:21:51]execute_cgi path=json_proto method=POST [13:21:51]POST find Content-Length [13:21:51]Host: 172.17.46.131:8080 [13:21:51]Content-Length: 797 [13:21:51]Content-Type: application/json [13:21:51] [13:21:51]POST finish read [13:21:51]Found Content-Length = 797 [13:21:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412202", "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" ] } } [13:21:51]execute_script... [13:21: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)412202", "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" ] } } [13:21:51]POST & json_proto [13:21:51]process_json_proto [13:21:51]json parsed OK: [13:21:51]protocol is kg_v1.0 [13:21:51]action value=close_receipt [13:21:51]process_action close_receipt [13:21:51]cmd_close_receipt [13:21:51]MH_GetDate [13:21:51]Write to MH i2c: F0 00 00 CA 22 DB [13:21:51]Write i2c OK [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: F0 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: F0 09 00 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: F0 09 00 CA 22 00 F2 DA B5 67 7E 41 4F 65 3F [13:21:51]GetLastDocTimeStamp 1739971216 [13:21:51]current date 1739971314 [13:21:51]FM_GetShiftState [13:21:51]SAM_PROTO_GetShiftState [13:21:51]wFMCommunicate request_size=4 [13:21:51]MH_SAM_APDU [13:21:51]CAPDU: 80 13 01 00 [13:21:51]Write to MH i2c: E2 08 00 CB 22 80 13 01 00 00 00 00 00 6A [13:21:51]Write i2c OK [13:21:51]MH_I2C_Read... [13:21:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:51]OFD Sender: No OFD packet to send [13:21:51]Read from MH i2c: E2 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: E2 0E 00 [13:21:51]MH_I2C_Read... [13:21:51]Read from MH i2c: E2 0E 00 CB 22 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E9 [13:21:51]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:21:51]wFMCommunicate OK [13:21:51]SAM_PROTO_GetShiftState done [13:21:51]FM_GetShiftState done [13:21:51]opened in 1739929631 [13:21:51]opened+sec_in_day 1740016031 [13:21:51]quantity*price = 70059 [13:21:51]sum+1 = 70060 [13:21:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.59 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 0.00 Безнал.: 700.59 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 117 19.02.2025 13:21 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187051 ФПД: 69982968884576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T132154&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187051&fm=69982968884576&tin=02508201610067®Number=0000000000091857&sum=70059 [13:21:52]StoreToDocumentArchive [13:21:52]shift 647 fd 187051 [13:21:52]save to /storage/0647/doc_00187051 [13:21:52]save last doc name /storage/0647/doc_00187051 to /storage/kkm_last_doc_name [13:21:52]save OK [13:21:52]Clear old archive folders... [13:21:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:21:52]tlvbuf is 005C6F10 [13:21:52]SAM_PROTO_ClearQueue [13:21:52]wFMCommunicate request_size=4 [13:21:52]MH_SAM_APDU [13:21:52]CAPDU: 80 09 00 00 [13:21:52]Write to MH i2c: E2 08 00 D8 22 80 09 00 00 00 00 00 00 6C [13:21:52]Write i2c OK [13:21:52]MH_I2C_Read... [13:21:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:52]Read from MH i2c: E2 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 03 00 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 03 00 D8 22 00 90 00 6E [13:21:52]RAPDU: 90 00 [13:21:52]wFMCommunicate OK [13:21:52]SAM_PROTO_ClearQueue done [13:21:52]KKMCreateOFDPacket [13:21:52]OFDProtocolAddRootSTLVToBuf [13:21:52]FM_MakeSignedData [13:21:52]FM_MakeSignedData [13:21:52]SAM_PROTO_SignData [13:21:52]wFMCommunicate request_size=4 [13:21:52]MH_SAM_APDU [13:21:52]CAPDU: 80 0D 01 02 [13:21:52]Write to MH i2c: E2 08 00 D9 22 80 0D 01 02 00 00 00 00 74 [13:21:52]Write i2c OK [13:21:52]MH_I2C_Read... [13:21:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:52]Read from MH i2c: E2 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 03 00 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 03 00 D9 22 00 90 00 6F [13:21:52]RAPDU: 90 00 [13:21:52]wFMCommunicate OK [13:21:52]wFMCommunicate request_size=255 [13:21:52]MH_SAM_APDU [13:21:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 75 00 00 00 F4 03 04 00 F2 DA 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 AB DA 02 00 35 04 06 00 3F A6 2E 00 [13:21:52]Write to MH i2c: E2 02 01 DA 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 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 75 00 00 00 F4 03 04 00 F2 DA 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 AB DA 02 00 35 04 06 00 3F A6 2E 00 00 00 74 [13:21:52]Write i2c OK [13:21:52]MH_I2C_Read... [13:21:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:52]Read from MH i2c: E2 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 03 00 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 03 00 DA 22 00 90 00 70 [13:21:52]RAPDU: 90 00 [13:21:52]wFMCommunicate OK [13:21:52]wFMCommunicate request_size=7 [13:21:52]MH_SAM_APDU [13:21:52]CAPDU: 80 0D 02 02 02 2D 60 [13:21:52]Write to MH i2c: E2 0A 00 DB 22 80 0D 02 02 02 00 2D 60 00 00 08 [13:21:52]Write i2c OK [13:21:52]MH_I2C_Read... [13:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:53]Read from MH i2c: E2 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 03 00 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 03 00 DB 22 00 90 00 71 [13:21:53]RAPDU: 90 00 [13:21:53]wFMCommunicate OK [13:21:53]wFMCommunicate request_size=4 [13:21:53]MH_SAM_APDU [13:21:53]CAPDU: 80 0D 03 02 [13:21:53]Write to MH i2c: E2 08 00 DC 22 80 0D 03 02 00 00 00 00 79 [13:21:53]Write i2c OK [13:21:53]MH_I2C_Read... [13:21:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:53]Read from MH i2c: E2 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 0B 00 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 0B 00 DC 22 00 48 CA 79 98 E8 1C 1B 2B 90 00 E7 [13:21:53]RAPDU: 48 CA 79 98 E8 1C 1B 2B 90 00 [13:21:53]wFMCommunicate OK [13:21:53]SAM_PROTO_SignData done [13:21:53]FM_MakeSignedData done [13:21:53]CreateOFDProtocolMessage [13:21:53]wFMCommunicate request_size=4 [13:21:53]MH_SAM_APDU [13:21:53]CAPDU: 80 11 00 00 [13:21:53]Write to MH i2c: E2 08 00 DD 22 80 11 00 00 00 00 00 00 79 [13:21:53]Write i2c OK [13:21:53]MH_I2C_Read... [13:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:53]Read from MH i2c: E2 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 17 00 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 17 00 DD 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CC [13:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:21:53]wFMCommunicate OK [13:21:53]CreateOFDProtocolMessage done [13:21:53]OFDSenderStorePacket 187051 [13:21:53]StoreOFDPacket docnum=187051 [13:21: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 0C 01 00 00 20 EE 04 01 A9 BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 75 00 00 00 F4 03 04 00 F2 DA 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 AB DA 02 00 35 04 06 00 3F A6 2E 00 2D 60 48 CA 79 98 E8 1C 1B 2B [13:21:53]CheckFolder [13:21:53]dirname=/storage/ofd_packets [13:21:53]CheckFolder done [13:21:53]ProducePacketName [13:21:53]name=ofd_packets/00187051 [13:21:53]NVStorageSaveData ofd_packets/00187051 [13:21:53]File name is /storage/ofd_packets/00187051 [13:21:53]Write 298 bytes [13:21:53]NVStorageSaveData done [13:21:53]OFDSenderStorePacket done [13:21:53]KKMCreateOFDPacket done [13:21:53]NVStorageSaveData kkm_last_timestamp [13:21:53]File name is /storage/kkm_last_timestamp [13:21:53]Write 4 bytes [13:21:53]NVStorageSaveData done [13:21:53]ExternCall_PrintAddStr [13:21:53]wPrintStart [13:21:53]Write to MH i2c: 01 00 00 DE 22 00 [13:21:53]Write i2c OK [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: 01 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: 01 07 00 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: 01 07 00 DE 22 00 00 00 00 00 FF 0F 15 [13:21:53]RasterBufferAndPrint [13:21:53]line Счет N : (1)412202 [13:21:53]line ИНН: 02508201610067 [13:21:53]line Контрольно-Кассовый Чек [13:21:53]line ПРОДАЖА [13:21:53]line ТРК (МРК, ГНК) : 11 [13:21:53]line Товар: 2710194210 [13:21:53]line ДТ-К-2 [13:21:53]line 9.650 * 72.60 [13:21:53]line = 700.59 [13:21:53]line НДС 12% НСП 1% [13:21:53]line > о реализуемом товаре [13:21:53]line ИТОГО: 700.59 [13:21:53]line НСП 1% : 6.20 [13:21:53]line НДС 12% : 74.40 [13:21:53]line Наличными: 0.00 [13:21:53]line Безнал.: 700.59 [13:21:53]line Место: АЗС № 92 "Партнер Нефть" [13:21:53]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:21:53]line СНО: Общий режим [13:21:53]line Чек 117 19.02.2025 13:21 [13:21:53]line Смена: 647 ФФД: 1.0 [13:21:53]line ЗНМ: 0300000118 [13:21:53]line РНМ: 0000000000091857 [13:21:53]line Версия ККМ: 001 [13:21:53]line Платежная система: O! деньги [13:21:53]line ФМ: 0000000000871826 [13:21:53]line ФД: 187051 [13:21:53]line ФПД: 69982968884576 [13:21:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T132154&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187051&fm=69982968884576&tin=02508201610067®Number=0000000000091857&sum=70059 [13:21:53]written 0, free lines is 4095 [13:21:53]OFD Sender: Processing packet 187051 [packets to send 49, broken 48] [13:21:53]ProducePacketName [13:21:53]name=ofd_packets/00187051 [13:21:53]OFD Sender: To server: pG, [13:21:53]CommunicateWithHost lk.salyk.kg:30040 [13:21:53]ConnectInit lk.salyk.kg [13:21:53]Connected sock=11 [13:21: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 0C 01 00 00 20 EE 04 01 A9 BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 75 00 00 00 F4 03 04 00 F2 DA 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 AB DA 02 00 35 04 06 00 3F A6 2E 00 2D 60 48 CA 79 98 E8 1C 1B 2B [13:21:53]Write to MH i2c: 01 00 00 08 23 2B [13:21:53]Write i2c OK [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: 01 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: 01 07 00 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: 01 07 00 08 23 00 00 00 00 00 04 0D 43 [13:21:53]RasterBufferAndPrint [13:21:53]line [13:21:53]line [13:21:53]line [13:21:53]line [13:21:53]line [13:21:53]written 0, free lines is 3338 [13:21:53]MH_Cut [13:21:53]Write to MH i2c: D1 01 00 0F 23 01 04 [13:21:53]Write i2c OK [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: D1 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: D1 01 00 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: D1 01 00 0F 23 00 03 [13:21:53]Write to MH i2c: 01 00 00 10 23 33 [13:21:53]Write i2c OK [13:21:53]MH_I2C_Read... [13:21: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 31 66 47 00 FE 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AB DA 02 00 F4 03 04 00 46 81 B5 67 B6 04 01 00 00 50 B7 15 D9 50 46 0C 06 [13:21:53]CommunicateWithHost err = 0 [13:21:53]CheckOFDResponse [13:21:53]1017 (14) - 77093643461234 [13:21:53]1041 (16) - 0000000000871826 [13:21:53]1040 (4) - 187051 [13:21:53]1012 (4) - 19.02.2025 06:59 [13:21:53]1206 (1) - 0 [13:21:53]OFD Sender: Remove packet 187051 [13:21:53]ProducePacketName [13:21:53]name=ofd_packets/00187051 [13:21:53]NVStorageDeleteData [13:21:54]OFD Sender: No OFD packet to send [13:21:54]*** Cut start [13:21:54]*** Partial cut [13:21:54]*** CUTSNS_PIN = 1 [13:21:54]*** CUTSNS_PIN = 0 [13:21:54]*** Brake cut motor [13:21:54]Read from MH i2c: 01 [13:21:55]MH_I2C_Read... [13:21:55]*** Stop cut motor [13:21:55]*** Cut end [13:21:55]Read from MH i2c: 01 07 00 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: 01 07 00 10 23 00 00 00 00 00 FF 0F 48 [13:21:55]process_action close_receipt done [13:21:55]requested_data is exist [13:21:55]produce_requested_data [13:21:55]requested_item fm.sn is exist - process it [13:21:55]wFMCommunicate request_size=4 [13:21:55]MH_SAM_APDU [13:21:55]CAPDU: 80 11 00 00 [13:21:55]Write to MH i2c: E2 08 00 11 23 80 11 00 00 00 00 00 00 AE [13:21:55]Write i2c OK [13:21:55]MH_I2C_Read... [13:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:55]Read from MH i2c: E2 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 17 00 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 17 00 11 23 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:21: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:21:55]wFMCommunicate OK [13:21:55]requested_item fd.num is exist - process it [13:21:55]SAM_PROTO_GetFieldsCounters [13:21:55]wFMCommunicate request_size=4 [13:21:55]MH_SAM_APDU [13:21:55]CAPDU: 80 13 00 00 [13:21:55]Write to MH i2c: E2 08 00 12 23 80 13 00 00 00 00 00 00 B1 [13:21:55]Write i2c OK [13:21:55]MH_I2C_Read... [13:21:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:55]Read from MH i2c: E2 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 62 00 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 62 00 12 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 AB DA 02 00 0E 04 04 00 87 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 46 [13:21: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 AB DA 02 00 0E 04 04 00 87 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 [13:21:55]wFMCommunicate OK [13:21:55]SAM_PROTO_GetFieldsCounters done [13:21:55]requested_item shift.num is exist - process it [13:21:55]requested_item shift.opened is exist - process it [13:21:55]req_shift_opened [13:21:55]FM_GetShiftState [13:21:55]SAM_PROTO_GetShiftState [13:21:55]wFMCommunicate request_size=4 [13:21:55]MH_SAM_APDU [13:21:55]CAPDU: 80 13 01 00 [13:21:55]Write to MH i2c: E2 08 00 13 23 80 13 01 00 00 00 00 00 B3 [13:21:55]Write i2c OK [13:21:55]MH_I2C_Read... [13:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:55]Read from MH i2c: E2 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 0E 00 [13:21:55]MH_I2C_Read... [13:21:55]Read from MH i2c: E2 0E 00 13 23 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 32 [13:21:55]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:21:55]wFMCommunicate OK [13:21:55]SAM_PROTO_GetShiftState done [13:21:55]FM_GetShiftState done [13:21:55]req_shift_opened done [13:21:55]requested_item shift.open_date is exist - process it [13:21:55]req_shift_open_date [13:21:55]req_shift_open_date done [13:21:55]produce_requested_data done [13:21:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187051,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [13:21:55]process_action_free close_receipt [13:21:55]json_value_free [13:21:55]json_value_free done [13:21:55]process_json_proto returns [13:21:55]Send response to host [13:21:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187051,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [13:21:55]free response buf [13:21:55]execute_script done [13:21:55]execute_script returns [13:21:55]free content buf [13:21:55]Sock 7.Close socket [13:21:55]Sock 7.Thread stoped [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:14]OFD Sender: No OFD packet to send [13:22:19]OFD Sender: No OFD packet to send [13:22:24]OFD Sender: No OFD packet to send [13:22:29]OFD Sender: No OFD packet to send [13:22:34]OFD Sender: No OFD packet to send [13:22:39]OFD Sender: No OFD packet to send [13:22:44]OFD Sender: No OFD packet to send [13:22:49]OFD Sender: No OFD packet to send [13:22:54]OFD Sender: No OFD packet to send [13:22:59]OFD Sender: No OFD packet to send [13:23:04]OFD Sender: No OFD packet to send [13:23:09]OFD Sender: No OFD packet to send [13:23:14]OFD Sender: No OFD packet to send [13:23:19]OFD Sender: No OFD packet to send [13:23:24]OFD Sender: No OFD packet to send [13:23:29]OFD Sender: No OFD packet to send [13:23:34]OFD Sender: No OFD packet to send [13:23:39]OFD Sender: No OFD packet to send [13:23:44]OFD Sender: No OFD packet to send [13:23:49]OFD Sender: No OFD packet to send [13:23:54]OFD Sender: No OFD packet to send [13:23:59]OFD Sender: No OFD packet to send [13:24:04]OFD Sender: No OFD packet to send [13:24:09]OFD Sender: No OFD packet to send [13:24:14]OFD Sender: No OFD packet to send [13:24:19]OFD Sender: No OFD packet to send [13:24:24]OFD Sender: No OFD packet to send [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:39]OFD Sender: No OFD packet to send [13:24:44]OFD Sender: No OFD packet to send [13:24:49]OFD Sender: No OFD packet to send [13:24:54]OFD Sender: No OFD packet to send [13:24:59]OFD Sender: No OFD packet to send [13:25:04]OFD Sender: No OFD packet to send [13:25:09]OFD Sender: No OFD packet to send [13:25:14]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]OFD Sender: No OFD packet to send [13:25:29]OFD Sender: No OFD packet to send [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:40]accept exits with 9 [13:26:40]New connection [13:26:40]New thread 3066879332 created [13:26:40]Thread 3067022692 joined [13:26:40]Waiting for new connection... [13:26:40] Sock 9.Parse request [13:26:40]Sock 9.Check first char [13:26:40]Sock 9.First char is OK [13:26:40]request: POST /json_proto HTTP/1.0 [13:26:40]Method: POST [13:26:40]URL: /json_proto [13:26:40]Method is POST - this is cgi request [13:26:40]url: /json_proto [13:26:40]query_string will be loaded in cgi processing [13:26:40]execute_cgi json_proto POST (null) [13:26:40]execute_cgi path=json_proto method=POST [13:26:40]POST find Content-Length [13:26:40]Host: 172.17.46.131:8080 [13:26:40]Content-Length: 838 [13:26:40]Content-Type: application/json [13:26:40] [13:26:40]POST finish read [13:26:40]Found Content-Length = 838 [13:26:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412203", "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" : 120.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\u000A4366392 4366393 4366394 4366395 4366396 4366403 ", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:40]execute_script... [13:26: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)412203", "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" : 120.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\u000A4366392 4366393 4366394 4366395 4366396 4366403 ", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:40]POST & json_proto [13:26:40]process_json_proto [13:26:40]json parsed OK: [13:26:40]protocol is kg_v1.0 [13:26:40]action value=close_receipt [13:26:40]process_action close_receipt [13:26:40]cmd_close_receipt [13:26:40]MH_GetDate [13:26:40]Write to MH i2c: F0 00 00 14 23 26 [13:26:40]Write i2c OK [13:26:40]MH_I2C_Read... [13:26:40]Read from MH i2c: F0 [13:26:40]MH_I2C_Read... [13:26:40]Read from MH i2c: F0 09 00 [13:26:40]MH_I2C_Read... [13:26:40]Read from MH i2c: F0 09 00 14 23 00 14 DC B5 67 7E 41 4F 65 AE [13:26:40]GetLastDocTimeStamp 1739971314 [13:26:40]current date 1739971604 [13:26:40]FM_GetShiftState [13:26:40]SAM_PROTO_GetShiftState [13:26:40]wFMCommunicate request_size=4 [13:26:40]MH_SAM_APDU [13:26:40]CAPDU: 80 13 01 00 [13:26:40]Write to MH i2c: E2 08 00 15 23 80 13 01 00 00 00 00 00 B5 [13:26:40]Write i2c OK [13:26:40]MH_I2C_Read... [13:26:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:40]Read from MH i2c: E2 [13:26:40]MH_I2C_Read... [13:26:40]Read from MH i2c: E2 0E 00 [13:26:40]MH_I2C_Read... [13:26:40]Read from MH i2c: E2 0E 00 15 23 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 34 [13:26:40]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:26:40]wFMCommunicate OK [13:26:40]SAM_PROTO_GetShiftState done [13:26:40]FM_GetShiftState done [13:26:40]opened in 1739929631 [13:26:40]opened+sec_in_day 1740016031 [13:26:40]quantity*price = 0 [13:26:40]sum+1 = 1 [13:26: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 СНО: Общий режим Чек 118 19.02.2025 13:26 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4366392 4366393 4366394 4366395 4366396 4366403 ФМ: 0000000000871826 ФД: 187052 ФПД: 103682784965463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T132644&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187052&fm=103682784965463&tin=02508201610067®Number=0000000000091857&sum=0 [13:26:41]StoreToDocumentArchive [13:26:41]shift 647 fd 187052 [13:26:41]save to /storage/0647/doc_00187052 [13:26:41]save last doc name /storage/0647/doc_00187052 to /storage/kkm_last_doc_name [13:26:41]save OK [13:26:41]Clear old archive folders... [13:26:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:26:41]tlvbuf is 00649690 [13:26:41]SAM_PROTO_ClearQueue [13:26:41]wFMCommunicate request_size=4 [13:26:41]MH_SAM_APDU [13:26:41]CAPDU: 80 09 00 00 [13:26:41]Write to MH i2c: E2 08 00 22 23 80 09 00 00 00 00 00 00 B7 [13:26:41]Write i2c OK [13:26:41]MH_I2C_Read... [13:26:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:42]Read from MH i2c: E2 [13:26:42]MH_I2C_Read... [13:26:42]Read from MH i2c: E2 03 00 [13:26:42]MH_I2C_Read... [13:26:42]Read from MH i2c: E2 03 00 22 23 00 90 00 B9 [13:26:42]RAPDU: 90 00 [13:26:42]wFMCommunicate OK [13:26:42]SAM_PROTO_ClearQueue done [13:26:42]KKMCreateOFDPacket [13:26:42]OFDProtocolAddRootSTLVToBuf [13:26:42]FM_MakeSignedData [13:26:42]FM_MakeSignedData [13:26:42]SAM_PROTO_SignData [13:26:42]wFMCommunicate request_size=4 [13:26:42]MH_SAM_APDU [13:26:42]CAPDU: 80 0D 01 02 [13:26:42]Write to MH i2c: E2 08 00 23 23 80 0D 01 02 00 00 00 00 BF [13:26:42]Write i2c OK [13:26:42]MH_I2C_Read... [13:26:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:42]Read from MH i2c: E2 [13:26:42]MH_I2C_Read... [13:26:42]Read from MH i2c: E2 03 00 [13:26:42]MH_I2C_Read... [13:26:42]Read from MH i2c: E2 03 00 23 23 00 90 00 BA [13:26:42]RAPDU: 90 00 [13:26:42]wFMCommunicate OK [13:26:42]wFMCommunicate request_size=255 [13:26:42]MH_SAM_APDU [13:26: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 C0 D4 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 14 DC 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 AC DA 02 00 35 04 06 00 5E 4C 87 91 [13:26:42]Write to MH i2c: E2 02 01 24 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C0 D4 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 14 DC 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 AC DA 02 00 35 04 06 00 5E 4C 87 91 00 00 0B [13:26:42]Write i2c OK [13:26:42]MH_I2C_Read... [13:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:42]Read from MH i2c: E2 [13:26:42]MH_I2C_Read... [13:26:42]Read from MH i2c: E2 03 00 [13:26:42]MH_I2C_Read... [13:26:42]Read from MH i2c: E2 03 00 24 23 00 90 00 BB [13:26:42]RAPDU: 90 00 [13:26:42]wFMCommunicate OK [13:26:42]wFMCommunicate request_size=7 [13:26:42]MH_SAM_APDU [13:26:42]CAPDU: 80 0D 02 02 02 33 57 [13:26:42]Write to MH i2c: E2 0A 00 25 23 80 0D 02 02 02 00 33 57 00 00 50 [13:26:42]Write i2c OK [13:26:42]MH_I2C_Read... [13:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:42]Read from MH i2c: E2 [13:26:42]MH_I2C_Read... [13:26:42]Read from MH i2c: E2 03 00 [13:26:42]MH_I2C_Read... [13:26:42]Read from MH i2c: E2 03 00 25 23 00 90 00 BC [13:26:42]RAPDU: 90 00 [13:26:42]wFMCommunicate OK [13:26:42]wFMCommunicate request_size=4 [13:26:42]MH_SAM_APDU [13:26:42]CAPDU: 80 0D 03 02 [13:26:42]Write to MH i2c: E2 08 00 26 23 80 0D 03 02 00 00 00 00 C4 [13:26:42]Write i2c OK [13:26:42]MH_I2C_Read... [13:26:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:42]Read from MH i2c: E2 [13:26:42]MH_I2C_Read... [13:26:42]Read from MH i2c: E2 0B 00 [13:26:42]MH_I2C_Read... [13:26:42]Read from MH i2c: E2 0B 00 26 23 00 8B 88 8A 35 A0 2D A4 79 90 00 81 [13:26:42]RAPDU: 8B 88 8A 35 A0 2D A4 79 90 00 [13:26:42]wFMCommunicate OK [13:26:42]SAM_PROTO_SignData done [13:26:42]FM_MakeSignedData done [13:26:42]CreateOFDProtocolMessage [13:26:42]wFMCommunicate request_size=4 [13:26:42]MH_SAM_APDU [13:26:42]CAPDU: 80 11 00 00 [13:26:42]Write to MH i2c: E2 08 00 27 23 80 11 00 00 00 00 00 00 C4 [13:26:42]Write i2c OK [13:26:42]MH_I2C_Read... [13:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:42]Read from MH i2c: E2 [13:26:42]MH_I2C_Read... [13:26:42]Read from MH i2c: E2 17 00 [13:26:42]MH_I2C_Read... [13:26:42]Read from MH i2c: E2 17 00 27 23 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:26:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:26:42]wFMCommunicate OK [13:26:42]CreateOFDProtocolMessage done [13:26:42]OFDSenderStorePacket 187052 [13:26:42]StoreOFDPacket docnum=187052 [13:26: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 01 F3 04 01 ED 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 C0 D4 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 14 DC 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 AC DA 02 00 35 04 06 00 5E 4C 87 91 33 57 8B 88 8A 35 A0 2D A4 79 [13:26:42]CheckFolder [13:26:42]dirname=/storage/ofd_packets [13:26:42]CheckFolder done [13:26:42]ProducePacketName [13:26:42]name=ofd_packets/00187052 [13:26:42]NVStorageSaveData ofd_packets/00187052 [13:26:42]File name is /storage/ofd_packets/00187052 [13:26:42]Write 298 bytes [13:26:42]NVStorageSaveData done [13:26:42]OFDSenderStorePacket done [13:26:42]KKMCreateOFDPacket done [13:26:42]NVStorageSaveData kkm_last_timestamp [13:26:42]File name is /storage/kkm_last_timestamp [13:26:42]Write 4 bytes [13:26:42]NVStorageSaveData done [13:26:42]ExternCall_PrintAddStr [13:26:42]wPrintStart [13:26:42]Write to MH i2c: 01 00 00 28 23 4B [13:26:42]Write i2c OK [13:26:42]MH_I2C_Read... [13:26:42]Read from MH i2c: 01 [13:26:42]MH_I2C_Read... [13:26:42]Read from MH i2c: 01 07 00 [13:26:42]MH_I2C_Read... [13:26:42]Read from MH i2c: 01 07 00 28 23 00 00 00 00 00 FF 0F 60 [13:26:42]RasterBufferAndPrint [13:26:42]line Счет N : (1)412203 [13:26:42]line ИНН: 02508201610067 [13:26:42]line Контрольно-Кассовый Чек [13:26:42]line ПРОДАЖА [13:26:42]line ТРК (МРК, ГНК) : 6 [13:26:42]line Товар: 2710194210 [13:26:42]line ДТ-К-5 [13:26:42]line 120.000 * 0.00 [13:26:42]line = 0.00 [13:26:42]line НДС 12% НСП 1% [13:26:42]line > о реализуемом товаре [13:26:42]line ИТОГО: 0.00 [13:26:42]line НСП 1% : 0.00 [13:26:42]line НДС 12% : 0.00 [13:26:42]line Наличными: 0.00 [13:26:42]line Безнал.: 0.00 [13:26:42]line Место: АЗС № 92 "Партнер Нефть" [13:26:42]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:26:42]line СНО: Общий режим [13:26:42]line Чек 118 19.02.2025 13:26 [13:26:42]line Смена: 647 ФФД: 1.0 [13:26:42]line ЗНМ: 0300000118 [13:26:42]line РНМ: 0000000000091857 [13:26:42]line Версия ККМ: 001 [13:26:42]line Талоны: Топливные Талоны [13:26:42]line 4366392 4366393 4366394 4366395 4366396 4366403 [13:26:42]line ФМ: 0000000000871826 [13:26:42]line ФД: 187052 [13:26:42]line ФПД: 103682784965463 [13:26:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T132644&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187052&fm=103682784965463&tin=02508201610067®Number=0000000000091857&sum=0 [13:26:42]OFD Sender: Processing packet 187052 [packets to send 49, broken 48] [13:26:42]ProducePacketName [13:26:42]name=ofd_packets/00187052 [13:26:42]OFD Sender: To server: pG, [13:26:42]CommunicateWithHost lk.salyk.kg:30040 [13:26:42]ConnectInit lk.salyk.kg [13:26:42]written 0, free lines is 4095 [13:26:42]Connected sock=10 [13:26: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 01 F3 04 01 ED 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 C0 D4 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 14 DC 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 AC DA 02 00 35 04 06 00 5E 4C 87 91 33 57 8B 88 8A 35 A0 2D A4 79 [13:26: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 9A 76 47 00 A6 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AC DA 02 00 F4 03 04 00 68 82 B5 67 B6 04 01 00 00 F7 68 F0 F4 FD 25 A3 E4 [13:26:43]CommunicateWithHost err = 0 [13:26:43]CheckOFDResponse [13:26:43]1017 (14) - 77093643461234 [13:26:43]1041 (16) - 0000000000871826 [13:26:43]1040 (4) - 187052 [13:26:43]1012 (4) - 19.02.2025 07:04 [13:26:43]1206 (1) - 0 [13:26:43]OFD Sender: Remove packet 187052 [13:26:43]ProducePacketName [13:26:43]name=ofd_packets/00187052 [13:26:43]NVStorageDeleteData [13:26:43]Write to MH i2c: 01 00 00 53 23 76 [13:26:43]Write i2c OK [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: 01 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: 01 07 00 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: 01 07 00 53 23 00 00 00 00 00 2A 0D B4 [13:26:43]RasterBufferAndPrint [13:26:43]line [13:26:43]line [13:26:43]line [13:26:43]line [13:26:43]line [13:26:43]written 0, free lines is 3376 [13:26:43]MH_Cut [13:26:43]Write to MH i2c: D1 01 00 5A 23 01 4F [13:26:43]Write i2c OK [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: D1 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: D1 01 00 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: D1 01 00 5A 23 00 4E [13:26:43]Write to MH i2c: 01 00 00 5B 23 7E [13:26:43]Write i2c OK [13:26:43]MH_I2C_Read... [13:26:43]OFD Sender: No OFD packet to send [13:26:43]*** Cut start [13:26:43]*** Partial cut [13:26:43]*** CUTSNS_PIN = 1 [13:26:44]*** CUTSNS_PIN = 0 [13:26:44]*** Brake cut motor [13:26:44]Read from MH i2c: 01 [13:26:44]MH_I2C_Read... [13:26:44]*** Stop cut motor [13:26:44]*** Cut end [13:26:44]Read from MH i2c: 01 07 00 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: 01 07 00 5B 23 00 00 00 00 00 FF 0F 93 [13:26:44]process_action close_receipt done [13:26:44]requested_data is exist [13:26:44]produce_requested_data [13:26:44]requested_item fm.sn is exist - process it [13:26:44]wFMCommunicate request_size=4 [13:26:44]MH_SAM_APDU [13:26:44]CAPDU: 80 11 00 00 [13:26:44]Write to MH i2c: E2 08 00 5C 23 80 11 00 00 00 00 00 00 F9 [13:26:44]Write i2c OK [13:26:44]MH_I2C_Read... [13:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:44]Read from MH i2c: E2 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 17 00 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 17 00 5C 23 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:26: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:26:44]wFMCommunicate OK [13:26:44]requested_item fd.num is exist - process it [13:26:44]SAM_PROTO_GetFieldsCounters [13:26:44]wFMCommunicate request_size=4 [13:26:44]MH_SAM_APDU [13:26:44]CAPDU: 80 13 00 00 [13:26:44]Write to MH i2c: E2 08 00 5D 23 80 13 00 00 00 00 00 00 FC [13:26:44]Write i2c OK [13:26:44]MH_I2C_Read... [13:26:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:44]Read from MH i2c: E2 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 62 00 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 62 00 5D 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 AC DA 02 00 0E 04 04 00 87 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 95 [13:26: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 AC DA 02 00 0E 04 04 00 87 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 [13:26:44]wFMCommunicate OK [13:26:44]SAM_PROTO_GetFieldsCounters done [13:26:44]requested_item shift.num is exist - process it [13:26:44]requested_item shift.opened is exist - process it [13:26:44]req_shift_opened [13:26:44]FM_GetShiftState [13:26:44]SAM_PROTO_GetShiftState [13:26:44]wFMCommunicate request_size=4 [13:26:44]MH_SAM_APDU [13:26:44]CAPDU: 80 13 01 00 [13:26:44]Write to MH i2c: E2 08 00 5E 23 80 13 01 00 00 00 00 00 FE [13:26:44]Write i2c OK [13:26:44]MH_I2C_Read... [13:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:44]Read from MH i2c: E2 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 0E 00 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 0E 00 5E 23 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 7D [13:26:44]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:26:44]wFMCommunicate OK [13:26:44]SAM_PROTO_GetShiftState done [13:26:44]FM_GetShiftState done [13:26:44]req_shift_opened done [13:26:44]requested_item shift.open_date is exist - process it [13:26:44]req_shift_open_date [13:26:44]req_shift_open_date done [13:26:44]produce_requested_data done [13:26:44]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187052,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [13:26:44]process_action_free close_receipt [13:26:44]json_value_free [13:26:44]json_value_free done [13:26:44]process_json_proto returns [13:26:44]Send response to host [13:26:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187052,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [13:26:44]free response buf [13:26:44]execute_script done [13:26:44]execute_script returns [13:26:44]free content buf [13:26:44]Sock 9.Close socket [13:26:44]Sock 9.Thread stoped [13:26:48]OFD Sender: No OFD packet to send [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:02]accept exits with 7 [13:27:02]New connection [13:27:02]New thread 3067022692 created [13:27:02]Thread 3066879332 joined [13:27:02]Waiting for new connection... [13:27:02] Sock 7.Parse request [13:27:02]Sock 7.Check first char [13:27:02]Sock 7.First char is OK [13:27:02]request: POST /json_proto HTTP/1.0 [13:27:02]Method: POST [13:27:02]URL: /json_proto [13:27:02]Method is POST - this is cgi request [13:27:02]url: /json_proto [13:27:02]query_string will be loaded in cgi processing [13:27:02]execute_cgi json_proto POST (null) [13:27:02]execute_cgi path=json_proto method=POST [13:27:02]POST find Content-Length [13:27:02]Host: 172.17.46.131:8080 [13:27:02]Content-Length: 673 [13:27:02]Content-Type: application/json [13:27:02] [13:27:02]POST finish read [13:27:02]Found Content-Length = 673 [13:27:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412204", "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" ] } } [13:27:02]execute_script... [13:27: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)412204", "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" ] } } [13:27:02]POST & json_proto [13:27:02]process_json_proto [13:27:02]json parsed OK: [13:27:02]protocol is kg_v1.0 [13:27:02]action value=close_receipt [13:27:02]process_action close_receipt [13:27:02]cmd_close_receipt [13:27:02]MH_GetDate [13:27:02]Write to MH i2c: F0 00 00 5F 23 71 [13:27:02]Write i2c OK [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: F0 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: F0 09 00 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: F0 09 00 5F 23 00 2A DC B5 67 7E 41 4F 65 0F [13:27:02]GetLastDocTimeStamp 1739971604 [13:27:02]current date 1739971626 [13:27:02]FM_GetShiftState [13:27:02]SAM_PROTO_GetShiftState [13:27:02]wFMCommunicate request_size=4 [13:27:02]MH_SAM_APDU [13:27:02]CAPDU: 80 13 01 00 [13:27:02]Write to MH i2c: E2 08 00 60 23 80 13 01 00 00 00 00 00 00 [13:27:02]Write i2c OK [13:27:02]MH_I2C_Read... [13:27:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:02]Read from MH i2c: E2 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 0E 00 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 0E 00 60 23 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 7F [13:27:02]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:27:02]wFMCommunicate OK [13:27:02]SAM_PROTO_GetShiftState done [13:27:02]FM_GetShiftState done [13:27:02]opened in 1739929631 [13:27:02]opened+sec_in_day 1740016031 [13:27:02]quantity*price = 50021 [13:27:02]sum+1 = 50022 [13:27:02]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 СНО: Общий режим Чек 119 19.02.2025 13:27 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187053 ФПД: 125160599439590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T132706&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187053&fm=125160599439590&tin=02508201610067®Number=0000000000091857&sum=50000 [13:27:03]StoreToDocumentArchive [13:27:03]shift 647 fd 187053 [13:27:03]save to /storage/0647/doc_00187053 [13:27:03]save last doc name /storage/0647/doc_00187053 to /storage/kkm_last_doc_name [13:27:03]save OK [13:27:03]Clear old archive folders... [13:27:03]OFD Sender: No OFD packet to send [13:27:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:27:03]tlvbuf is 0060EA30 [13:27:03]SAM_PROTO_ClearQueue [13:27:03]wFMCommunicate request_size=4 [13:27:03]MH_SAM_APDU [13:27:03]CAPDU: 80 09 00 00 [13:27:03]Write to MH i2c: E2 08 00 6D 23 80 09 00 00 00 00 00 00 02 [13:27:03]Write i2c OK [13:27:03]MH_I2C_Read... [13:27:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:03]Read from MH i2c: E2 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 03 00 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 03 00 6D 23 00 90 00 04 [13:27:03]RAPDU: 90 00 [13:27:03]wFMCommunicate OK [13:27:03]SAM_PROTO_ClearQueue done [13:27:03]KKMCreateOFDPacket [13:27:03]OFDProtocolAddRootSTLVToBuf [13:27:03]FM_MakeSignedData [13:27:03]FM_MakeSignedData [13:27:03]SAM_PROTO_SignData [13:27:03]wFMCommunicate request_size=4 [13:27:03]MH_SAM_APDU [13:27:03]CAPDU: 80 0D 01 02 [13:27:03]Write to MH i2c: E2 08 00 6E 23 80 0D 01 02 00 00 00 00 0A [13:27:03]Write i2c OK [13:27:03]MH_I2C_Read... [13:27:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:03]Read from MH i2c: E2 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 03 00 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 03 00 6E 23 00 90 00 05 [13:27:03]RAPDU: 90 00 [13:27:03]wFMCommunicate OK [13:27:03]wFMCommunicate request_size=255 [13:27:03]MH_SAM_APDU [13:27:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 77 00 00 00 F4 03 04 00 2A DC 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 AD DA 02 00 35 04 06 00 71 D5 39 11 [13:27:03]Write to MH i2c: E2 02 01 6F 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 77 00 00 00 F4 03 04 00 2A DC 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 AD DA 02 00 35 04 06 00 71 D5 39 11 00 00 01 [13:27:03]Write i2c OK [13:27:03]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 6F 23 00 90 00 06 [13:27:04]RAPDU: 90 00 [13:27:04]wFMCommunicate OK [13:27:04]wFMCommunicate request_size=7 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 0D 02 02 02 C8 E6 [13:27:04]Write to MH i2c: E2 0A 00 70 23 80 0D 02 02 02 00 C8 E6 00 00 BF [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 70 23 00 90 00 07 [13:27:04]RAPDU: 90 00 [13:27:04]wFMCommunicate OK [13:27:04]wFMCommunicate request_size=4 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 0D 03 02 [13:27:04]Write to MH i2c: E2 08 00 71 23 80 0D 03 02 00 00 00 00 0F [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 0B 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 0B 00 71 23 00 D9 C5 32 BF 49 E1 FE 3B 90 00 02 [13:27:04]RAPDU: D9 C5 32 BF 49 E1 FE 3B 90 00 [13:27:04]wFMCommunicate OK [13:27:04]SAM_PROTO_SignData done [13:27:04]FM_MakeSignedData done [13:27:04]CreateOFDProtocolMessage [13:27:04]wFMCommunicate request_size=4 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 11 00 00 [13:27:04]Write to MH i2c: E2 08 00 72 23 80 11 00 00 00 00 00 00 0F [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 17 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 17 00 72 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 62 [13:27:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:27:04]wFMCommunicate OK [13:27:04]CreateOFDProtocolMessage done [13:27:04]OFDSenderStorePacket 187053 [13:27:04]StoreOFDPacket docnum=187053 [13:27: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 9F 45 04 01 DB 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 77 00 00 00 F4 03 04 00 2A DC 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 AD DA 02 00 35 04 06 00 71 D5 39 11 C8 E6 D9 C5 32 BF 49 E1 FE 3B [13:27:04]CheckFolder [13:27:04]dirname=/storage/ofd_packets [13:27:04]CheckFolder done [13:27:04]ProducePacketName [13:27:04]name=ofd_packets/00187053 [13:27:04]NVStorageSaveData ofd_packets/00187053 [13:27:04]File name is /storage/ofd_packets/00187053 [13:27:04]Write 298 bytes [13:27:04]NVStorageSaveData done [13:27:04]OFDSenderStorePacket done [13:27:04]KKMCreateOFDPacket done [13:27:04]NVStorageSaveData kkm_last_timestamp [13:27:04]File name is /storage/kkm_last_timestamp [13:27:04]Write 4 bytes [13:27:04]NVStorageSaveData done [13:27:04]ExternCall_PrintAddStr [13:27:04]wPrintStart [13:27:04]Write to MH i2c: 01 00 00 73 23 96 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: 01 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: 01 07 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: 01 07 00 73 23 00 00 00 00 00 FF 0F AB [13:27:04]RasterBufferAndPrint [13:27:04]line Счет N : (1)412204 [13:27:04]line ИНН: 02508201610067 [13:27:04]line Контрольно-Кассовый Чек [13:27:04]line ПРОДАЖА [13:27:04]line ТРК (МРК, ГНК) : 5 [13:27:04]line Товар: 2710194210 [13:27:04]line ДТ-К-5 [13:27:04]line 6.890 * 72.60 [13:27:04]line = 500.21 [13:27:04]line НДС 12% НСП 1% [13:27:04]line > о реализуемом товаре [13:27:04]line ОКРУГЛЕНИЕ: -0.21 [13:27:04]line ИТОГО: 500.00 [13:27:04]line Внесено: 500.00 [13:27:04]line СДАЧА: 0.00 [13:27:04]line НСП 1% : 4.43 [13:27:04]line НДС 12% : 53.12 [13:27:04]line Наличными: 500.00 [13:27:04]line Безнал.: 0.00 [13:27:04]line Место: АЗС № 92 "Партнер Нефть" [13:27:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:27:04]line СНО: Общий режим [13:27:04]line Чек 119 19.02.2025 13:27 [13:27:04]line Смена: 647 ФФД: 1.0 [13:27:04]line ЗНМ: 0300000118 [13:27:04]line РНМ: 0000000000091857 [13:27:04]line Версия ККМ: 001 [13:27:04]line ФМ: 0000000000871826 [13:27:04]line ФД: 187053 [13:27:04]line ФПД: 125160599439590 [13:27:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T132706&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187053&fm=125160599439590&tin=02508201610067®Number=0000000000091857&sum=50000 [13:27:04]OFD Sender: Processing packet 187053 [packets to send 49, broken 48] [13:27:04]ProducePacketName [13:27:04]name=ofd_packets/00187053 [13:27:04]OFD Sender: To server: pG, [13:27:04]CommunicateWithHost lk.salyk.kg:30040 [13:27:04]ConnectInit lk.salyk.kg [13:27:04]written 0, free lines is 4095 [13:27:04]Connected sock=10 [13:27: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 0C 01 00 00 9F 45 04 01 DB 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 77 00 00 00 F4 03 04 00 2A DC 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 AD DA 02 00 35 04 06 00 71 D5 39 11 C8 E6 D9 C5 32 BF 49 E1 FE 3B [13:27:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 57 D7 47 00 71 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AD DA 02 00 F4 03 04 00 7E 82 B5 67 B6 04 01 00 00 58 DF 67 EC 13 D4 57 93 [13:27:05]CommunicateWithHost err = 0 [13:27:05]CheckOFDResponse [13:27:05]1017 (14) - 77093643461234 [13:27:05]1041 (16) - 0000000000871826 [13:27:05]1040 (4) - 187053 [13:27:05]1012 (4) - 19.02.2025 07:04 [13:27:05]1206 (1) - 0 [13:27:05]OFD Sender: Remove packet 187053 [13:27:05]ProducePacketName [13:27:05]name=ofd_packets/00187053 [13:27:05]NVStorageDeleteData [13:27:05]Write to MH i2c: 01 00 00 9E 23 C1 [13:27:05]Write i2c OK [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: 01 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: 01 07 00 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: 01 07 00 9E 23 00 00 00 00 00 F8 0C CC [13:27:05]RasterBufferAndPrint [13:27:05]line [13:27:05]line [13:27:05]line [13:27:05]line [13:27:05]line [13:27:05]written 0, free lines is 3330 [13:27:05]MH_Cut [13:27:05]Write to MH i2c: D1 01 00 A5 23 01 9A [13:27:05]Write i2c OK [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: D1 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: D1 01 00 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: D1 01 00 A5 23 00 99 [13:27:05]Write to MH i2c: 01 00 00 A6 23 C9 [13:27:05]Write i2c OK [13:27:05]MH_I2C_Read... [13:27:05]OFD Sender: No OFD packet to send [13:27:05]*** Cut start [13:27:05]*** Partial cut [13:27:05]*** CUTSNS_PIN = 1 [13:27:05]*** CUTSNS_PIN = 0 [13:27:06]*** Brake cut motor [13:27:06]Read from MH i2c: 01 [13:27:06]MH_I2C_Read... [13:27:06]*** Stop cut motor [13:27:06]*** Cut end [13:27:06]Read from MH i2c: 01 07 00 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: 01 07 00 A6 23 00 00 00 00 00 FF 0F DE [13:27:06]process_action close_receipt done [13:27:06]requested_data is exist [13:27:06]produce_requested_data [13:27:06]requested_item fm.sn is exist - process it [13:27:06]wFMCommunicate request_size=4 [13:27:06]MH_SAM_APDU [13:27:06]CAPDU: 80 11 00 00 [13:27:06]Write to MH i2c: E2 08 00 A7 23 80 11 00 00 00 00 00 00 44 [13:27:06]Write i2c OK [13:27:06]MH_I2C_Read... [13:27:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:06]Read from MH i2c: E2 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 17 00 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 17 00 A7 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 97 [13:27:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:27:06]wFMCommunicate OK [13:27:06]requested_item fd.num is exist - process it [13:27:06]SAM_PROTO_GetFieldsCounters [13:27:06]wFMCommunicate request_size=4 [13:27:06]MH_SAM_APDU [13:27:06]CAPDU: 80 13 00 00 [13:27:06]Write to MH i2c: E2 08 00 A8 23 80 13 00 00 00 00 00 00 47 [13:27:06]Write i2c OK [13:27:06]MH_I2C_Read... [13:27:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:06]Read from MH i2c: E2 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 62 00 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 62 00 A8 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 E4 [13:27: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 AD DA 02 00 0E 04 04 00 87 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 [13:27:06]wFMCommunicate OK [13:27:06]SAM_PROTO_GetFieldsCounters done [13:27:06]requested_item shift.num is exist - process it [13:27:06]requested_item shift.opened is exist - process it [13:27:06]req_shift_opened [13:27:06]FM_GetShiftState [13:27:06]SAM_PROTO_GetShiftState [13:27:06]wFMCommunicate request_size=4 [13:27:06]MH_SAM_APDU [13:27:06]CAPDU: 80 13 01 00 [13:27:06]Write to MH i2c: E2 08 00 A9 23 80 13 01 00 00 00 00 00 49 [13:27:06]Write i2c OK [13:27:06]MH_I2C_Read... [13:27:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:06]Read from MH i2c: E2 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 0E 00 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 0E 00 A9 23 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C8 [13:27:06]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:27:06]wFMCommunicate OK [13:27:06]SAM_PROTO_GetShiftState done [13:27:06]FM_GetShiftState done [13:27:06]req_shift_opened done [13:27:06]requested_item shift.open_date is exist - process it [13:27:06]req_shift_open_date [13:27:06]req_shift_open_date done [13:27:06]produce_requested_data done [13:27:06]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187053,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [13:27:06]process_action_free close_receipt [13:27:06]json_value_free [13:27:06]json_value_free done [13:27:06]process_json_proto returns [13:27:06]Send response to host [13:27:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187053,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [13:27:06]free response buf [13:27:06]execute_script done [13:27:06]execute_script returns [13:27:06]free content buf [13:27:06]Sock 7.Close socket [13:27:06]Sock 7.Thread stoped [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:02]accept exits with 9 [13:29:02]New connection [13:29:02]New thread 3066879332 created [13:29:02]Thread 3067022692 joined [13:29:02]Waiting for new connection... [13:29:02] Sock 9.Parse request [13:29:02]Sock 9.Check first char [13:29:02]Sock 9.First char is OK [13:29:02]request: POST /json_proto HTTP/1.0 [13:29:02]Method: POST [13:29:02]URL: /json_proto [13:29:02]Method is POST - this is cgi request [13:29:02]url: /json_proto [13:29:02]query_string will be loaded in cgi processing [13:29:02]execute_cgi json_proto POST (null) [13:29:02]execute_cgi path=json_proto method=POST [13:29:02]POST find Content-Length [13:29:02]Host: 172.17.46.131:8080 [13:29:02]Content-Length: 678 [13:29:02]Content-Type: application/json [13:29:02] [13:29:02]POST finish read [13:29:02]Found Content-Length = 678 [13:29:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412205", "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" ] } } [13:29:02]execute_script... [13:29:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412205", "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" ] } } [13:29:02]POST & json_proto [13:29:02]process_json_proto [13:29:02]json parsed OK: [13:29:02]protocol is kg_v1.0 [13:29:02]action value=close_receipt [13:29:02]process_action close_receipt [13:29:02]cmd_close_receipt [13:29:02]MH_GetDate [13:29:02]Write to MH i2c: F0 00 00 AA 23 BC [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: F0 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: F0 09 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: F0 09 00 AA 23 00 A2 DC B5 67 7E 41 4F 65 D2 [13:29:02]GetLastDocTimeStamp 1739971626 [13:29:02]current date 1739971746 [13:29:02]FM_GetShiftState [13:29:02]SAM_PROTO_GetShiftState [13:29:02]wFMCommunicate request_size=4 [13:29:02]MH_SAM_APDU [13:29:02]CAPDU: 80 13 01 00 [13:29:02]Write to MH i2c: E2 08 00 AB 23 80 13 01 00 00 00 00 00 4B [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:02]Read from MH i2c: E2 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 0E 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 0E 00 AB 23 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 CA [13:29:02]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:29:02]wFMCommunicate OK [13:29:02]SAM_PROTO_GetShiftState done [13:29:02]FM_GetShiftState done [13:29:02]opened in 1739929631 [13:29:02]opened+sec_in_day 1740016031 [13:29:02]quantity*price = 70042 [13:29:02]sum+1 = 70043 [13:29:02]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 СНО: Общий режим Чек 120 19.02.2025 13:29 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187054 ФПД: 140044926059126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T132906&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187054&fm=140044926059126&tin=02508201610067®Number=0000000000091857&sum=70000 [13:29:03]StoreToDocumentArchive [13:29:03]shift 647 fd 187054 [13:29:03]save to /storage/0647/doc_00187054 [13:29:03]save last doc name /storage/0647/doc_00187054 to /storage/kkm_last_doc_name [13:29:03]save OK [13:29:03]Clear old archive folders... [13:29:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:03]tlvbuf is 00673100 [13:29:03]SAM_PROTO_ClearQueue [13:29:03]wFMCommunicate request_size=4 [13:29:03]MH_SAM_APDU [13:29:03]CAPDU: 80 09 00 00 [13:29:03]Write to MH i2c: E2 08 00 B8 23 80 09 00 00 00 00 00 00 4D [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:03]Read from MH i2c: E2 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 03 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 03 00 B8 23 00 90 00 4F [13:29:03]RAPDU: 90 00 [13:29:03]wFMCommunicate OK [13:29:03]SAM_PROTO_ClearQueue done [13:29:03]KKMCreateOFDPacket [13:29:03]OFDProtocolAddRootSTLVToBuf [13:29:03]FM_MakeSignedData [13:29:03]FM_MakeSignedData [13:29:03]SAM_PROTO_SignData [13:29:03]wFMCommunicate request_size=4 [13:29:03]MH_SAM_APDU [13:29:03]CAPDU: 80 0D 01 02 [13:29:03]Write to MH i2c: E2 08 00 B9 23 80 0D 01 02 00 00 00 00 55 [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:03]Read from MH i2c: E2 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 03 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 03 00 B9 23 00 90 00 50 [13:29:03]RAPDU: 90 00 [13:29:03]wFMCommunicate OK [13:29:03]wFMCommunicate request_size=255 [13:29:03]MH_SAM_APDU [13:29:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 78 00 00 00 F4 03 04 00 A2 DC 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 AE DA 02 00 35 04 06 00 7F [13:29:03]Write to MH i2c: E2 02 01 BA 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 78 00 00 00 F4 03 04 00 A2 DC 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 AE DA 02 00 35 04 06 00 7F 00 00 43 [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:04]Read from MH i2c: E2 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 03 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 03 00 BA 23 00 90 00 51 [13:29:04]RAPDU: 90 00 [13:29:04]wFMCommunicate OK [13:29:04]wFMCommunicate request_size=10 [13:29:04]MH_SAM_APDU [13:29:04]CAPDU: 80 0D 02 02 05 5E C0 12 02 76 [13:29:04]Write to MH i2c: E2 0D 00 BB 23 80 0D 02 02 05 00 5E C0 12 02 76 00 00 0A [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:04]Read from MH i2c: E2 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 03 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 03 00 BB 23 00 90 00 52 [13:29:04]RAPDU: 90 00 [13:29:04]wFMCommunicate OK [13:29:04]wFMCommunicate request_size=4 [13:29:04]MH_SAM_APDU [13:29:04]CAPDU: 80 0D 03 02 [13:29:04]Write to MH i2c: E2 08 00 BC 23 80 0D 03 02 00 00 00 00 5A [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:04]Read from MH i2c: E2 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 0B 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 0B 00 BC 23 00 C5 97 FD 89 9B AE 25 50 90 00 FB [13:29:04]RAPDU: C5 97 FD 89 9B AE 25 50 90 00 [13:29:04]wFMCommunicate OK [13:29:04]SAM_PROTO_SignData done [13:29:04]FM_MakeSignedData done [13:29:04]CreateOFDProtocolMessage [13:29:04]wFMCommunicate request_size=4 [13:29:04]MH_SAM_APDU [13:29:04]CAPDU: 80 11 00 00 [13:29:04]Write to MH i2c: E2 08 00 BD 23 80 11 00 00 00 00 00 00 5A [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:04]Read from MH i2c: E2 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 17 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 17 00 BD 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AD [13:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:29:04]wFMCommunicate OK [13:29:04]CreateOFDProtocolMessage done [13:29:04]OFDSenderStorePacket 187054 [13:29:04]StoreOFDPacket docnum=187054 [13:29: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 55 C1 07 01 2F 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 78 00 00 00 F4 03 04 00 A2 DC 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 AE DA 02 00 35 04 06 00 7F 5E C0 12 02 76 C5 97 FD 89 9B AE 25 50 [13:29:04]CheckFolder [13:29:04]dirname=/storage/ofd_packets [13:29:04]CheckFolder done [13:29:04]ProducePacketName [13:29:04]name=ofd_packets/00187054 [13:29:04]NVStorageSaveData ofd_packets/00187054 [13:29:04]File name is /storage/ofd_packets/00187054 [13:29:04]Write 301 bytes [13:29:04]NVStorageSaveData done [13:29:04]OFDSenderStorePacket done [13:29:04]KKMCreateOFDPacket done [13:29:04]NVStorageSaveData kkm_last_timestamp [13:29:04]File name is /storage/kkm_last_timestamp [13:29:04]Write 4 bytes [13:29:04]NVStorageSaveData done [13:29:04]ExternCall_PrintAddStr [13:29:04]wPrintStart [13:29:04]Write to MH i2c: 01 00 00 BE 23 E1 [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: 01 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: 01 07 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: 01 07 00 BE 23 00 00 00 00 00 FF 0F F6 [13:29:04]RasterBufferAndPrint [13:29:04]line Счет N : (1)412205 [13:29:04]line ИНН: 02508201610067 [13:29:04]line Контрольно-Кассовый Чек [13:29:04]line ПРОДАЖА [13:29:04]line ТРК (МРК, ГНК) : 42 [13:29:04]line Товар: 2710124130 [13:29:04]line Аи-92-К-2 [13:29:04]line 10.910 * 64.20 [13:29:04]line = 700.42 [13:29:04]line НДС 12% НСП 1% [13:29:04]line > о реализуемом товаре [13:29:04]line ОКРУГЛЕНИЕ: -0.42 [13:29:04]line ИТОГО: 700.00 [13:29:04]line Внесено: 700.00 [13:29:04]line СДАЧА: 0.00 [13:29:04]line НСП 1% : 6.20 [13:29:04]line НДС 12% : 74.38 [13:29:04]line Наличными: 700.00 [13:29:04]line Безнал.: 0.00 [13:29:04]line Место: АЗС № 92 "Партнер Нефть" [13:29:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:29:04]line СНО: Общий режим [13:29:04]line Чек 120 19.02.2025 13:29 [13:29:04]line Смена: 647 ФФД: 1.0 [13:29:04]line ЗНМ: 0300000118 [13:29:04]line РНМ: 0000000000091857 [13:29:04]line Версия ККМ: 001 [13:29:04]line ФМ: 0000000000871826 [13:29:04]line ФД: 187054 [13:29:04]line ФПД: 140044926059126 [13:29:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T132906&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187054&fm=140044926059126&tin=02508201610067®Number=0000000000091857&sum=70000 [13:29:04]written 0, free lines is 4095 [13:29:04]OFD Sender: Processing packet 187054 [packets to send 49, broken 48] [13:29:04]ProducePacketName [13:29:04]name=ofd_packets/00187054 [13:29:04]OFD Sender: To server: pG, [13:29:04]CommunicateWithHost lk.salyk.kg:30040 [13:29:04]ConnectInit lk.salyk.kg [13:29:04]Connected sock=10 [13:29:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 55 C1 07 01 2F 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 78 00 00 00 F4 03 04 00 A2 DC 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 AE DA 02 00 35 04 06 00 7F 5E C0 12 02 76 C5 97 FD 89 9B AE 25 50 [13:29: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 05 2F 47 00 B8 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 AE DA 02 00 F4 03 04 00 F5 82 B5 67 B6 04 01 00 00 5F 33 6D 6B 70 11 EC B2 [13:29:04]CommunicateWithHost err = 0 [13:29:04]CheckOFDResponse [13:29:04]1017 (14) - 77093643461234 [13:29:04]1041 (16) - 0000000000871826 [13:29:04]1040 (4) - 187054 [13:29:04]1012 (4) - 19.02.2025 07:06 [13:29:04]1206 (1) - 0 [13:29:04]OFD Sender: Remove packet 187054 [13:29:04]ProducePacketName [13:29:04]name=ofd_packets/00187054 [13:29:04]NVStorageDeleteData [13:29:04]Write to MH i2c: 01 00 00 E9 23 0C [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: 01 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: 01 07 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: 01 07 00 E9 23 00 00 00 00 00 03 0D 23 [13:29:04]RasterBufferAndPrint [13:29:04]line [13:29:04]line [13:29:04]line [13:29:04]line [13:29:04]line [13:29:04]written 0, free lines is 3340 [13:29:04]MH_Cut [13:29:04]Write to MH i2c: D1 01 00 F0 23 01 E5 [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: D1 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: D1 01 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: D1 01 00 F0 23 00 E4 [13:29:04]Write to MH i2c: 01 00 00 F1 23 14 [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:05]OFD Sender: No OFD packet to send [13:29:05]*** Cut start [13:29:05]*** Partial cut [13:29:05]*** CUTSNS_PIN = 1 [13:29:05]*** CUTSNS_PIN = 0 [13:29:05]*** Brake cut motor [13:29:06]Read from MH i2c: 01 [13:29:06]MH_I2C_Read... [13:29:06]*** Stop cut motor [13:29:06]*** Cut end [13:29:06]Read from MH i2c: 01 07 00 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: 01 07 00 F1 23 00 00 00 00 00 FF 0F 29 [13:29:06]process_action close_receipt done [13:29:06]requested_data is exist [13:29:06]produce_requested_data [13:29:06]requested_item fm.sn is exist - process it [13:29:06]wFMCommunicate request_size=4 [13:29:06]MH_SAM_APDU [13:29:06]CAPDU: 80 11 00 00 [13:29:06]Write to MH i2c: E2 08 00 F2 23 80 11 00 00 00 00 00 00 8F [13:29:06]Write i2c OK [13:29:06]MH_I2C_Read... [13:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:06]Read from MH i2c: E2 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 17 00 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 17 00 F2 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E2 [13:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:29:06]wFMCommunicate OK [13:29:06]requested_item fd.num is exist - process it [13:29:06]SAM_PROTO_GetFieldsCounters [13:29:06]wFMCommunicate request_size=4 [13:29:06]MH_SAM_APDU [13:29:06]CAPDU: 80 13 00 00 [13:29:06]Write to MH i2c: E2 08 00 F3 23 80 13 00 00 00 00 00 00 92 [13:29:06]Write i2c OK [13:29:06]MH_I2C_Read... [13:29:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:06]Read from MH i2c: E2 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 62 00 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 62 00 F3 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 33 [13:29:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [13:29:06]wFMCommunicate OK [13:29:06]SAM_PROTO_GetFieldsCounters done [13:29:06]requested_item shift.num is exist - process it [13:29:06]requested_item shift.opened is exist - process it [13:29:06]req_shift_opened [13:29:06]FM_GetShiftState [13:29:06]SAM_PROTO_GetShiftState [13:29:06]wFMCommunicate request_size=4 [13:29:06]MH_SAM_APDU [13:29:06]CAPDU: 80 13 01 00 [13:29:06]Write to MH i2c: E2 08 00 F4 23 80 13 01 00 00 00 00 00 94 [13:29:06]Write i2c OK [13:29:06]MH_I2C_Read... [13:29:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:06]Read from MH i2c: E2 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 0E 00 [13:29:06]MH_I2C_Read... [13:29:06]Read from MH i2c: E2 0E 00 F4 23 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 13 [13:29:06]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:29:06]wFMCommunicate OK [13:29:06]SAM_PROTO_GetShiftState done [13:29:06]FM_GetShiftState done [13:29:06]req_shift_opened done [13:29:06]requested_item shift.open_date is exist - process it [13:29:06]req_shift_open_date [13:29:06]req_shift_open_date done [13:29:06]produce_requested_data done [13:29:06]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187054,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [13:29:06]process_action_free close_receipt [13:29:06]json_value_free [13:29:06]json_value_free done [13:29:06]process_json_proto returns [13:29:06]Send response to host [13:29:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187054,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [13:29:06]free response buf [13:29:06]execute_script done [13:29:06]execute_script returns [13:29:06]free content buf [13:29:06]Sock 9.Close socket [13:29:06]Sock 9.Thread stoped [13:29:10]OFD Sender: No OFD packet to send [13:29:13]accept exits with 7 [13:29:13]New connection [13:29:13]New thread 3067022692 created [13:29:13]Thread 3066879332 joined [13:29:13]Waiting for new connection... [13:29:13] Sock 7.Parse request [13:29:13]Sock 7.Check first char [13:29:13]Sock 7.First char is OK [13:29:13]request: POST /json_proto HTTP/1.0 [13:29:13]Method: POST [13:29:13]URL: /json_proto [13:29:13]Method is POST - this is cgi request [13:29:13]url: /json_proto [13:29:13]query_string will be loaded in cgi processing [13:29:13]execute_cgi json_proto POST (null) [13:29:13]execute_cgi path=json_proto method=POST [13:29:13]POST find Content-Length [13:29:13]Host: 172.17.46.131:8080 [13:29:13]Content-Length: 754 [13:29:13]Content-Type: application/json [13:29:13] [13:29:13]POST finish read [13:29:13]Found Content-Length = 754 [13:29:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412206", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30107306", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:13]execute_script... [13:29: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)412206", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30107306", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:13]POST & json_proto [13:29:13]process_json_proto [13:29:13]json parsed OK: [13:29:13]protocol is kg_v1.0 [13:29:13]action value=close_receipt [13:29:13]process_action close_receipt [13:29:13]cmd_close_receipt [13:29:13]MH_GetDate [13:29:13]Write to MH i2c: F0 00 00 F5 23 07 [13:29:13]Write i2c OK [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: F0 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: F0 09 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: F0 09 00 F5 23 00 AD DC B5 67 7E 41 4F 65 28 [13:29:13]GetLastDocTimeStamp 1739971746 [13:29:13]current date 1739971757 [13:29:13]FM_GetShiftState [13:29:13]SAM_PROTO_GetShiftState [13:29:13]wFMCommunicate request_size=4 [13:29:13]MH_SAM_APDU [13:29:13]CAPDU: 80 13 01 00 [13:29:13]Write to MH i2c: E2 08 00 F6 23 80 13 01 00 00 00 00 00 96 [13:29:13]Write i2c OK [13:29:13]MH_I2C_Read... [13:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:13]Read from MH i2c: E2 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 0E 00 [13:29:13]MH_I2C_Read... [13:29:13]Read from MH i2c: E2 0E 00 F6 23 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 15 [13:29:13]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:29:13]wFMCommunicate OK [13:29:13]SAM_PROTO_GetShiftState done [13:29:13]FM_GetShiftState done [13:29:13]opened in 1739929631 [13:29:13]opened+sec_in_day 1740016031 [13:29:13]quantity*price = 0 [13:29:13]sum+1 = 1 [13:29:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 121 19.02.2025 13:29 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30107306 ФМ: 0000000000871826 ФД: 187055 ФПД: 32376773283830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T132917&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187055&fm=32376773283830&tin=02508201610067®Number=0000000000091857&sum=0 [13:29:15]StoreToDocumentArchive [13:29:15]shift 647 fd 187055 [13:29:15]save to /storage/0647/doc_00187055 [13:29:15]save last doc name /storage/0647/doc_00187055 to /storage/kkm_last_doc_name [13:29:15]save OK [13:29:15]Clear old archive folders... [13:29:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:15]tlvbuf is B6EB94C0 [13:29:15]SAM_PROTO_ClearQueue [13:29:15]wFMCommunicate request_size=4 [13:29:15]MH_SAM_APDU [13:29:15]CAPDU: 80 09 00 00 [13:29:15]Write to MH i2c: E2 08 00 03 24 80 09 00 00 00 00 00 00 99 [13:29:15]Write i2c OK [13:29:15]MH_I2C_Read... [13:29:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:15]Read from MH i2c: E2 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 03 00 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 03 00 03 24 00 90 00 9B [13:29:15]RAPDU: 90 00 [13:29:15]wFMCommunicate OK [13:29:15]SAM_PROTO_ClearQueue done [13:29:15]KKMCreateOFDPacket [13:29:15]OFDProtocolAddRootSTLVToBuf [13:29:15]FM_MakeSignedData [13:29:15]FM_MakeSignedData [13:29:15]SAM_PROTO_SignData [13:29:15]wFMCommunicate request_size=4 [13:29:15]MH_SAM_APDU [13:29:15]CAPDU: 80 0D 01 02 [13:29:15]Write to MH i2c: E2 08 00 04 24 80 0D 01 02 00 00 00 00 A1 [13:29:15]Write i2c OK [13:29:15]MH_I2C_Read... [13:29:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:15]Read from MH i2c: E2 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 03 00 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 03 00 04 24 00 90 00 9C [13:29:15]RAPDU: 90 00 [13:29:15]wFMCommunicate OK [13:29:15]wFMCommunicate request_size=255 [13:29:15]MH_SAM_APDU [13:29: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 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 79 00 00 00 F4 03 04 00 AD DC 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 AF DA 02 00 35 04 06 00 1D [13:29:15]Write to MH i2c: E2 02 01 05 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 79 00 00 00 F4 03 04 00 AD DC 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 AF DA 02 00 35 04 06 00 1D 00 00 33 [13:29:15]Write i2c OK [13:29:15]MH_I2C_Read... [13:29:15]OFD Sender: No OFD packet to send [13:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:15]Read from MH i2c: E2 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 03 00 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 03 00 05 24 00 90 00 9D [13:29:15]RAPDU: 90 00 [13:29:15]wFMCommunicate OK [13:29:15]wFMCommunicate request_size=10 [13:29:15]MH_SAM_APDU [13:29:15]CAPDU: 80 0D 02 02 05 72 4E 12 0F F6 [13:29:15]Write to MH i2c: E2 0D 00 06 24 80 0D 02 02 05 00 72 4E 12 0F F6 00 00 85 [13:29:15]Write i2c OK [13:29:15]MH_I2C_Read... [13:29:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:15]Read from MH i2c: E2 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 03 00 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 03 00 06 24 00 90 00 9E [13:29:15]RAPDU: 90 00 [13:29:15]wFMCommunicate OK [13:29:15]wFMCommunicate request_size=4 [13:29:15]MH_SAM_APDU [13:29:15]CAPDU: 80 0D 03 02 [13:29:15]Write to MH i2c: E2 08 00 07 24 80 0D 03 02 00 00 00 00 A6 [13:29:15]Write i2c OK [13:29:15]MH_I2C_Read... [13:29:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:15]Read from MH i2c: E2 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 0B 00 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 0B 00 07 24 00 A7 8E 20 1A 92 01 16 7D 90 00 3C [13:29:15]RAPDU: A7 8E 20 1A 92 01 16 7D 90 00 [13:29:15]wFMCommunicate OK [13:29:15]SAM_PROTO_SignData done [13:29:15]FM_MakeSignedData done [13:29:15]CreateOFDProtocolMessage [13:29:15]wFMCommunicate request_size=4 [13:29:15]MH_SAM_APDU [13:29:15]CAPDU: 80 11 00 00 [13:29:15]Write to MH i2c: E2 08 00 08 24 80 11 00 00 00 00 00 00 A6 [13:29:15]Write i2c OK [13:29:15]MH_I2C_Read... [13:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:15]Read from MH i2c: E2 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 17 00 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 17 00 08 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F9 [13:29:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:29:15]wFMCommunicate OK [13:29:15]CreateOFDProtocolMessage done [13:29:15]OFDSenderStorePacket 187055 [13:29:15]StoreOFDPacket docnum=187055 [13:29: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 04 D1 07 01 A3 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 79 00 00 00 F4 03 04 00 AD DC 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 AF DA 02 00 35 04 06 00 1D 72 4E 12 0F F6 A7 8E 20 1A 92 01 16 7D [13:29:15]CheckFolder [13:29:15]dirname=/storage/ofd_packets [13:29:15]CheckFolder done [13:29:15]ProducePacketName [13:29:15]name=ofd_packets/00187055 [13:29:15]NVStorageSaveData ofd_packets/00187055 [13:29:15]File name is /storage/ofd_packets/00187055 [13:29:15]Write 301 bytes [13:29:15]NVStorageSaveData done [13:29:15]OFDSenderStorePacket done [13:29:15]KKMCreateOFDPacket done [13:29:15]NVStorageSaveData kkm_last_timestamp [13:29:15]File name is /storage/kkm_last_timestamp [13:29:15]Write 4 bytes [13:29:15]NVStorageSaveData done [13:29:15]ExternCall_PrintAddStr [13:29:15]wPrintStart [13:29:15]Write to MH i2c: 01 00 00 09 24 2D [13:29:15]Write i2c OK [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: 01 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: 01 07 00 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: 01 07 00 09 24 00 00 00 00 00 FF 0F 42 [13:29:15]RasterBufferAndPrint [13:29:15]line Счет N : (1)412206 [13:29:15]line ИНН: 02508201610067 [13:29:15]line Контрольно-Кассовый Чек [13:29:15]line ПРОДАЖА [13:29:15]line ТРК (МРК, ГНК) : 22 [13:29:15]line Товар: 2710124130 [13:29:15]line Аи-92-К-2 [13:29:15]line 10.000 * 0.00 [13:29:15]line = 0.00 [13:29:15]line НДС 12% НСП 1% [13:29:15]line > о реализуемом товаре [13:29:15]line ИТОГО: 0.00 [13:29:15]line НСП 1% : 0.00 [13:29:15]line НДС 12% : 0.00 [13:29:15]line Наличными: 0.00 [13:29:15]line Безнал.: 0.00 [13:29:15]line Место: АЗС № 92 "Партнер Нефть" [13:29:15]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:29:15]line СНО: Общий режим [13:29:15]line Чек 121 19.02.2025 13:29 [13:29:15]line Смена: 647 ФФД: 1.0 [13:29:15]line ЗНМ: 0300000118 [13:29:15]line РНМ: 0000000000091857 [13:29:15]line Версия ККМ: 001 [13:29:15]line Талоны: ТК ГПНА Online [13:29:15]line 30107306 [13:29:15]line ФМ: 0000000000871826 [13:29:15]line ФД: 187055 [13:29:15]line ФПД: 32376773283830 [13:29:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T132917&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187055&fm=32376773283830&tin=02508201610067®Number=0000000000091857&sum=0 [13:29:15]written 0, free lines is 4095 [13:29:15]OFD Sender: Processing packet 187055 [packets to send 49, broken 48] [13:29:15]ProducePacketName [13:29:15]name=ofd_packets/00187055 [13:29:15]OFD Sender: To server: pG, [13:29:15]CommunicateWithHost lk.salyk.kg:30040 [13:29:15]ConnectInit lk.salyk.kg [13:29:15]Connected sock=10 [13:29: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 04 D1 07 01 A3 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 79 00 00 00 F4 03 04 00 AD DC 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 AF DA 02 00 35 04 06 00 1D 72 4E 12 0F F6 A7 8E 20 1A 92 01 16 7D [13:29:16]Write to MH i2c: 01 00 00 33 24 57 [13:29:16]Write i2c OK [13:29:16]MH_I2C_Read... [13:29:16]Read from MH i2c: 01 [13:29:16]MH_I2C_Read... [13:29:16]Read from MH i2c: 01 07 00 [13:29:16]MH_I2C_Read... [13:29:16]Read from MH i2c: 01 07 00 33 24 00 00 00 00 00 0E 0D 79 [13:29:16]RasterBufferAndPrint [13:29:16]line [13:29:16]line [13:29:16]line [13:29:16]line [13:29:16]line [13:29:16]written 0, free lines is 3351 [13:29:16]MH_Cut [13:29:16]Write to MH i2c: D1 01 00 3A 24 01 30 [13:29:16]Write i2c OK [13:29:16]MH_I2C_Read... [13:29:16]Read from MH i2c: D1 [13:29:16]MH_I2C_Read... [13:29:16]Read from MH i2c: D1 01 00 [13:29:16]MH_I2C_Read... [13:29:16]Read from MH i2c: D1 01 00 3A 24 00 2F [13:29:16]Write to MH i2c: 01 00 00 3B 24 5F [13:29:16]Write i2c OK [13:29:16]MH_I2C_Read... [13:29: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 B2 C2 47 00 54 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 AF DA 02 00 F4 03 04 00 01 83 B5 67 B6 04 01 00 00 D3 E6 7A 6D D9 5E ED 54 [13:29:16]CommunicateWithHost err = 0 [13:29:16]CheckOFDResponse [13:29:16]1017 (14) - 77093643461234 [13:29:16]1041 (16) - 0000000000871826 [13:29:16]1040 (4) - 187055 [13:29:16]1012 (4) - 19.02.2025 07:06 [13:29:16]1206 (1) - 0 [13:29:16]OFD Sender: Remove packet 187055 [13:29:16]ProducePacketName [13:29:16]name=ofd_packets/00187055 [13:29:16]NVStorageDeleteData [13:29:16]OFD Sender: No OFD packet to send [13:29:16]*** Cut start [13:29:16]*** Partial cut [13:29:16]*** CUTSNS_PIN = 1 [13:29:16]*** CUTSNS_PIN = 0 [13:29:17]*** Brake cut motor [13:29:17]Read from MH i2c: 01 [13:29:17]MH_I2C_Read... [13:29:17]*** Stop cut motor [13:29:17]*** Cut end [13:29:17]Read from MH i2c: 01 07 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: 01 07 00 3B 24 00 00 00 00 00 FF 0F 74 [13:29:17]process_action close_receipt done [13:29:17]requested_data is exist [13:29:17]produce_requested_data [13:29:17]requested_item fm.sn is exist - process it [13:29:17]wFMCommunicate request_size=4 [13:29:17]MH_SAM_APDU [13:29:17]CAPDU: 80 11 00 00 [13:29:17]Write to MH i2c: E2 08 00 3C 24 80 11 00 00 00 00 00 00 DA [13:29:17]Write i2c OK [13:29:17]MH_I2C_Read... [13:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:17]Read from MH i2c: E2 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 17 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 17 00 3C 24 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:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:29:17]wFMCommunicate OK [13:29:17]requested_item fd.num is exist - process it [13:29:17]SAM_PROTO_GetFieldsCounters [13:29:17]wFMCommunicate request_size=4 [13:29:17]MH_SAM_APDU [13:29:17]CAPDU: 80 13 00 00 [13:29:17]Write to MH i2c: E2 08 00 3D 24 80 13 00 00 00 00 00 00 DD [13:29:17]Write i2c OK [13:29:17]MH_I2C_Read... [13:29:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:17]Read from MH i2c: E2 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 62 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 62 00 3D 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 AF DA 02 00 0E 04 04 00 87 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 82 [13:29: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 AF DA 02 00 0E 04 04 00 87 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 [13:29:17]wFMCommunicate OK [13:29:17]SAM_PROTO_GetFieldsCounters done [13:29:17]requested_item shift.num is exist - process it [13:29:17]requested_item shift.opened is exist - process it [13:29:17]req_shift_opened [13:29:17]FM_GetShiftState [13:29:17]SAM_PROTO_GetShiftState [13:29:17]wFMCommunicate request_size=4 [13:29:17]MH_SAM_APDU [13:29:17]CAPDU: 80 13 01 00 [13:29:17]Write to MH i2c: E2 08 00 3E 24 80 13 01 00 00 00 00 00 DF [13:29:17]Write i2c OK [13:29:17]MH_I2C_Read... [13:29:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:17]Read from MH i2c: E2 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 0E 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 0E 00 3E 24 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 5E [13:29:17]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:29:17]wFMCommunicate OK [13:29:17]SAM_PROTO_GetShiftState done [13:29:17]FM_GetShiftState done [13:29:17]req_shift_opened done [13:29:17]requested_item shift.open_date is exist - process it [13:29:17]req_shift_open_date [13:29:17]req_shift_open_date done [13:29:17]produce_requested_data done [13:29:17]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187055,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [13:29:17]process_action_free close_receipt [13:29:17]json_value_free [13:29:17]json_value_free done [13:29:17]process_json_proto returns [13:29:17]Send response to host [13:29:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187055,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [13:29:17]free response buf [13:29:17]execute_script done [13:29:17]execute_script returns [13:29:17]free content buf [13:29:17]Sock 7.Close socket [13:29:17]Sock 7.Thread stoped [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:55]accept exits with 9 [13:29:55]New connection [13:29:55]New thread 3066879332 created [13:29:55]Thread 3067022692 joined [13:29:55]Waiting for new connection... [13:29:55] Sock 9.Parse request [13:29:55]Sock 9.Check first char [13:29:55]Sock 9.First char is OK [13:29:55]request: POST /json_proto HTTP/1.0 [13:29:55]Method: POST [13:29:55]URL: /json_proto [13:29:55]Method is POST - this is cgi request [13:29:55]url: /json_proto [13:29:55]query_string will be loaded in cgi processing [13:29:55]execute_cgi json_proto POST (null) [13:29:55]execute_cgi path=json_proto method=POST [13:29:55]POST find Content-Length [13:29:55]Host: 172.17.46.131:8080 [13:29:55]Content-Length: 679 [13:29:55]Content-Type: application/json [13:29:55] [13:29:55]POST finish read [13:29:55]Found Content-Length = 679 [13:29:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412207", "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" : 24.800, "sum" : 1800.48, "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" ] } } [13:29:55]execute_script... [13:29: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)412207", "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" : 24.800, "sum" : 1800.48, "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" ] } } [13:29:55]POST & json_proto [13:29:55]process_json_proto [13:29:55]json parsed OK: [13:29:55]protocol is kg_v1.0 [13:29:55]action value=close_receipt [13:29:55]process_action close_receipt [13:29:55]cmd_close_receipt [13:29:55]MH_GetDate [13:29:55]Write to MH i2c: F0 00 00 3F 24 52 [13:29:55]Write i2c OK [13:29:55]MH_I2C_Read... [13:29:55]Read from MH i2c: F0 [13:29:55]MH_I2C_Read... [13:29:55]Read from MH i2c: F0 09 00 [13:29:55]MH_I2C_Read... [13:29:55]Read from MH i2c: F0 09 00 3F 24 00 D7 DC B5 67 7E 41 4F 65 9D [13:29:55]GetLastDocTimeStamp 1739971757 [13:29:55]current date 1739971799 [13:29:55]FM_GetShiftState [13:29:55]SAM_PROTO_GetShiftState [13:29:55]wFMCommunicate request_size=4 [13:29:55]MH_SAM_APDU [13:29:55]CAPDU: 80 13 01 00 [13:29:55]Write to MH i2c: E2 08 00 40 24 80 13 01 00 00 00 00 00 E1 [13:29:55]Write i2c OK [13:29:55]MH_I2C_Read... [13:29:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:55]Read from MH i2c: E2 [13:29:55]MH_I2C_Read... [13:29:55]Read from MH i2c: E2 0E 00 [13:29:55]MH_I2C_Read... [13:29:55]Read from MH i2c: E2 0E 00 40 24 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 60 [13:29:55]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:29:55]wFMCommunicate OK [13:29:55]SAM_PROTO_GetShiftState done [13:29:55]FM_GetShiftState done [13:29:55]opened in 1739929631 [13:29:55]opened+sec_in_day 1740016031 [13:29:55]quantity*price = 180048 [13:29:55]sum+1 = 180049 [13:29:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.20 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 122 19.02.2025 13:29 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187056 ФПД: 156127446109219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T132959&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187056&fm=156127446109219&tin=02508201610067®Number=0000000000091857&sum=180000 [13:29:56]StoreToDocumentArchive [13:29:56]shift 647 fd 187056 [13:29:56]save to /storage/0647/doc_00187056 [13:29:56]save last doc name /storage/0647/doc_00187056 to /storage/kkm_last_doc_name [13:29:56]save OK [13:29:56]Clear old archive folders... [13:29:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:29:56]tlvbuf is 005EE730 [13:29:56]SAM_PROTO_ClearQueue [13:29:56]wFMCommunicate request_size=4 [13:29:56]MH_SAM_APDU [13:29:56]CAPDU: 80 09 00 00 [13:29:56]Write to MH i2c: E2 08 00 4D 24 80 09 00 00 00 00 00 00 E3 [13:29:56]Write i2c OK [13:29:56]MH_I2C_Read... [13:29:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:56]Read from MH i2c: E2 [13:29:56]MH_I2C_Read... [13:29:56]Read from MH i2c: E2 03 00 [13:29:56]MH_I2C_Read... [13:29:56]Read from MH i2c: E2 03 00 4D 24 00 90 00 E5 [13:29:56]RAPDU: 90 00 [13:29:56]wFMCommunicate OK [13:29:56]SAM_PROTO_ClearQueue done [13:29:56]KKMCreateOFDPacket [13:29:56]OFDProtocolAddRootSTLVToBuf [13:29:56]FM_MakeSignedData [13:29:56]FM_MakeSignedData [13:29:56]SAM_PROTO_SignData [13:29:56]wFMCommunicate request_size=4 [13:29:56]MH_SAM_APDU [13:29:56]CAPDU: 80 0D 01 02 [13:29:56]Write to MH i2c: E2 08 00 4E 24 80 0D 01 02 00 00 00 00 EB [13:29:56]Write i2c OK [13:29:56]MH_I2C_Read... [13:29:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:56]Read from MH i2c: E2 [13:29:56]MH_I2C_Read... [13:29:56]Read from MH i2c: E2 03 00 [13:29:56]MH_I2C_Read... [13:29:56]Read from MH i2c: E2 03 00 4E 24 00 90 00 E6 [13:29:56]RAPDU: 90 00 [13:29:56]wFMCommunicate OK [13:29:56]wFMCommunicate request_size=255 [13:29:56]MH_SAM_APDU [13:29: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 32 FF 03 08 00 03 E0 60 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 50 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 B0 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 7A 00 00 00 F4 03 04 00 D7 DC 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 B0 DA 02 00 35 04 06 00 8D FF 40 F7 [13:29:56]Write to MH i2c: E2 02 01 4F 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 32 FF 03 08 00 03 E0 60 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 50 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 B0 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 7A 00 00 00 F4 03 04 00 D7 DC 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 B0 DA 02 00 35 04 06 00 8D FF 40 F7 00 00 2F [13:29:56]Write i2c OK [13:29:56]MH_I2C_Read... [13:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:57]Read from MH i2c: E2 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: E2 03 00 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: E2 03 00 4F 24 00 90 00 E7 [13:29:57]RAPDU: 90 00 [13:29:57]wFMCommunicate OK [13:29:57]wFMCommunicate request_size=7 [13:29:57]MH_SAM_APDU [13:29:57]CAPDU: 80 0D 02 02 02 0C 23 [13:29:57]Write to MH i2c: E2 0A 00 50 24 80 0D 02 02 02 00 0C 23 00 00 21 [13:29:57]Write i2c OK [13:29:57]MH_I2C_Read... [13:29:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:57]Read from MH i2c: E2 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: E2 03 00 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: E2 03 00 50 24 00 90 00 E8 [13:29:57]RAPDU: 90 00 [13:29:57]wFMCommunicate OK [13:29:57]wFMCommunicate request_size=4 [13:29:57]MH_SAM_APDU [13:29:57]CAPDU: 80 0D 03 02 [13:29:57]Write to MH i2c: E2 08 00 51 24 80 0D 03 02 00 00 00 00 F0 [13:29:57]Write i2c OK [13:29:57]MH_I2C_Read... [13:29:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:57]Read from MH i2c: E2 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: E2 0B 00 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: E2 0B 00 51 24 00 06 05 C9 F0 3D 27 F8 C9 90 00 DA [13:29:57]RAPDU: 06 05 C9 F0 3D 27 F8 C9 90 00 [13:29:57]wFMCommunicate OK [13:29:57]SAM_PROTO_SignData done [13:29:57]FM_MakeSignedData done [13:29:57]CreateOFDProtocolMessage [13:29:57]wFMCommunicate request_size=4 [13:29:57]MH_SAM_APDU [13:29:57]CAPDU: 80 11 00 00 [13:29:57]Write to MH i2c: E2 08 00 52 24 80 11 00 00 00 00 00 00 F0 [13:29:57]Write i2c OK [13:29:57]MH_I2C_Read... [13:29:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:57]Read from MH i2c: E2 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: E2 17 00 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: E2 17 00 52 24 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:29: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:29:57]wFMCommunicate OK [13:29:57]CreateOFDProtocolMessage done [13:29:57]OFDSenderStorePacket 187056 [13:29:57]StoreOFDPacket docnum=187056 [13:29: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 93 01 04 01 08 BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 E0 60 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 50 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 B0 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 7A 00 00 00 F4 03 04 00 D7 DC 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 B0 DA 02 00 35 04 06 00 8D FF 40 F7 0C 23 06 05 C9 F0 3D 27 F8 C9 [13:29:57]CheckFolder [13:29:57]dirname=/storage/ofd_packets [13:29:57]CheckFolder done [13:29:57]ProducePacketName [13:29:57]name=ofd_packets/00187056 [13:29:57]NVStorageSaveData ofd_packets/00187056 [13:29:57]File name is /storage/ofd_packets/00187056 [13:29:57]Write 298 bytes [13:29:57]NVStorageSaveData done [13:29:57]OFDSenderStorePacket done [13:29:57]KKMCreateOFDPacket done [13:29:57]NVStorageSaveData kkm_last_timestamp [13:29:57]File name is /storage/kkm_last_timestamp [13:29:57]Write 4 bytes [13:29:57]NVStorageSaveData done [13:29:57]ExternCall_PrintAddStr [13:29:57]wPrintStart [13:29:57]Write to MH i2c: 01 00 00 53 24 77 [13:29:57]Write i2c OK [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: 01 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: 01 07 00 [13:29:57]MH_I2C_Read... [13:29:57]Read from MH i2c: 01 07 00 53 24 00 00 00 00 00 FF 0F 8C [13:29:57]RasterBufferAndPrint [13:29:57]line Счет N : (1)412207 [13:29:57]line ИНН: 02508201610067 [13:29:57]line Контрольно-Кассовый Чек [13:29:57]line ПРОДАЖА [13:29:57]line ТРК (МРК, ГНК) : 11 [13:29:57]line Товар: 2710194210 [13:29:57]line ДТ-К-2 [13:29:57]line 24.800 * 72.60 [13:29:57]line = 1800.48 [13:29:57]line НДС 12% НСП 1% [13:29:57]line > о реализуемом товаре [13:29:57]line ОКРУГЛЕНИЕ: -0.48 [13:29:57]line ИТОГО: 1800.00 [13:29:57]line Внесено: 1800.00 [13:29:57]line СДАЧА: 0.00 [13:29:57]line НСП 1% : 15.93 [13:29:57]line НДС 12% : 191.20 [13:29:57]line Наличными: 1800.00 [13:29:57]line Безнал.: 0.00 [13:29:57]line Место: АЗС № 92 "Партнер Нефть" [13:29:57]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:29:57]line СНО: Общий режим [13:29:57]line Чек 122 19.02.2025 13:29 [13:29:57]line Смена: 647 ФФД: 1.0 [13:29:57]line ЗНМ: 0300000118 [13:29:57]line РНМ: 0000000000091857 [13:29:57]line Версия ККМ: 001 [13:29:57]line ФМ: 0000000000871826 [13:29:57]line ФД: 187056 [13:29:57]line ФПД: 156127446109219 [13:29:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T132959&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187056&fm=156127446109219&tin=02508201610067®Number=0000000000091857&sum=180000 [13:29:57]OFD Sender: Processing packet 187056 [packets to send 49, broken 48] [13:29:57]ProducePacketName [13:29:57]name=ofd_packets/00187056 [13:29:57]OFD Sender: To server: pG, [13:29:57]CommunicateWithHost lk.salyk.kg:30040 [13:29:57]ConnectInit lk.salyk.kg [13:29:57]written 0, free lines is 4095 [13:29:57]Connected sock=10 [13:29: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 93 01 04 01 08 BF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 E0 60 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 50 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 B0 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 7A 00 00 00 F4 03 04 00 D7 DC 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 B0 DA 02 00 35 04 06 00 8D FF 40 F7 0C 23 06 05 C9 F0 3D 27 F8 C9 [13:29: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 C3 45 47 00 E6 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 B0 DA 02 00 F4 03 04 00 2B 83 B5 67 B6 04 01 00 00 66 30 1F 7A 1E AF DC A4 [13:29:58]CommunicateWithHost err = 0 [13:29:58]CheckOFDResponse [13:29:58]1017 (14) - 77093643461234 [13:29:58]1041 (16) - 0000000000871826 [13:29:58]1040 (4) - 187056 [13:29:58]1012 (4) - 19.02.2025 07:07 [13:29:58]1206 (1) - 0 [13:29:58]OFD Sender: Remove packet 187056 [13:29:58]ProducePacketName [13:29:58]name=ofd_packets/00187056 [13:29:58]NVStorageDeleteData [13:29:58]Write to MH i2c: 01 00 00 7E 24 A2 [13:29:58]Write i2c OK [13:29:58]MH_I2C_Read... [13:29:58]Read from MH i2c: 01 [13:29:58]MH_I2C_Read... [13:29:58]Read from MH i2c: 01 07 00 [13:29:58]MH_I2C_Read... [13:29:58]Read from MH i2c: 01 07 00 7E 24 00 00 00 00 00 FE 0C B3 [13:29:58]RasterBufferAndPrint [13:29:58]line [13:29:58]line [13:29:58]line [13:29:58]line [13:29:58]line [13:29:58]written 0, free lines is 3331 [13:29:58]MH_Cut [13:29:58]Write to MH i2c: D1 01 00 85 24 01 7B [13:29:58]Write i2c OK [13:29:58]MH_I2C_Read... [13:29:58]Read from MH i2c: D1 [13:29:58]MH_I2C_Read... [13:29:58]Read from MH i2c: D1 01 00 [13:29:58]MH_I2C_Read... [13:29:58]Read from MH i2c: D1 01 00 85 24 00 7A [13:29:58]Write to MH i2c: 01 00 00 86 24 AA [13:29:58]Write i2c OK [13:29:58]MH_I2C_Read... [13:29:58]OFD Sender: No OFD packet to send [13:29:58]*** Cut start [13:29:58]*** Partial cut [13:29:58]*** CUTSNS_PIN = 1 [13:29:58]*** CUTSNS_PIN = 0 [13:29:59]*** Brake cut motor [13:29:59]Read from MH i2c: 01 [13:29:59]MH_I2C_Read... [13:29:59]*** Stop cut motor [13:29:59]*** Cut end [13:29:59]Read from MH i2c: 01 07 00 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: 01 07 00 86 24 00 00 00 00 00 FF 0F BF [13:29:59]process_action close_receipt done [13:29:59]requested_data is exist [13:29:59]produce_requested_data [13:29:59]requested_item fm.sn is exist - process it [13:29:59]wFMCommunicate request_size=4 [13:29:59]MH_SAM_APDU [13:29:59]CAPDU: 80 11 00 00 [13:29:59]Write to MH i2c: E2 08 00 87 24 80 11 00 00 00 00 00 00 25 [13:29:59]Write i2c OK [13:29:59]MH_I2C_Read... [13:29:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:59]Read from MH i2c: E2 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: E2 17 00 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: E2 17 00 87 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 78 [13:29:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:29:59]wFMCommunicate OK [13:29:59]requested_item fd.num is exist - process it [13:29:59]SAM_PROTO_GetFieldsCounters [13:29:59]wFMCommunicate request_size=4 [13:29:59]MH_SAM_APDU [13:29:59]CAPDU: 80 13 00 00 [13:29:59]Write to MH i2c: E2 08 00 88 24 80 13 00 00 00 00 00 00 28 [13:29:59]Write i2c OK [13:29:59]MH_I2C_Read... [13:29:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:59]Read from MH i2c: E2 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: E2 62 00 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: E2 62 00 88 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 B0 DA 02 00 0E 04 04 00 87 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 D1 [13:29: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 B0 DA 02 00 0E 04 04 00 87 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 [13:29:59]wFMCommunicate OK [13:29:59]SAM_PROTO_GetFieldsCounters done [13:29:59]requested_item shift.num is exist - process it [13:29:59]requested_item shift.opened is exist - process it [13:29:59]req_shift_opened [13:29:59]FM_GetShiftState [13:29:59]SAM_PROTO_GetShiftState [13:29:59]wFMCommunicate request_size=4 [13:29:59]MH_SAM_APDU [13:29:59]CAPDU: 80 13 01 00 [13:29:59]Write to MH i2c: E2 08 00 89 24 80 13 01 00 00 00 00 00 2A [13:29:59]Write i2c OK [13:29:59]MH_I2C_Read... [13:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:59]Read from MH i2c: E2 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: E2 0E 00 [13:29:59]MH_I2C_Read... [13:29:59]Read from MH i2c: E2 0E 00 89 24 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A9 [13:29:59]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:29:59]wFMCommunicate OK [13:29:59]SAM_PROTO_GetShiftState done [13:29:59]FM_GetShiftState done [13:29:59]req_shift_opened done [13:29:59]requested_item shift.open_date is exist - process it [13:29:59]req_shift_open_date [13:29:59]req_shift_open_date done [13:29:59]produce_requested_data done [13:29:59]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187056,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [13:29:59]process_action_free close_receipt [13:29:59]json_value_free [13:29:59]json_value_free done [13:29:59]process_json_proto returns [13:29:59]Send response to host [13:29:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187056,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [13:29:59]free response buf [13:29:59]execute_script done [13:29:59]execute_script returns [13:29:59]free content buf [13:29:59]Sock 9.Close socket [13:29:59]Sock 9.Thread stoped [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:22]accept exits with 7 [13:30:22]New connection [13:30:22]New thread 3067022692 created [13:30:22]Thread 3066879332 joined [13:30:22]Waiting for new connection... [13:30:22] Sock 7.Parse request [13:30:22]Sock 7.Check first char [13:30:22]Sock 7.First char is OK [13:30:22]request: POST /json_proto HTTP/1.0 [13:30:22]Method: POST [13:30:22]URL: /json_proto [13:30:22]Method is POST - this is cgi request [13:30:22]url: /json_proto [13:30:22]query_string will be loaded in cgi processing [13:30:22]execute_cgi json_proto POST (null) [13:30:22]execute_cgi path=json_proto method=POST [13:30:22]POST find Content-Length [13:30:22]Host: 172.17.46.131:8080 [13:30:22]Content-Length: 796 [13:30:22]Content-Type: application/json [13:30:22] [13:30:22]POST finish read [13:30:22]Found Content-Length = 796 [13:30:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412208", "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" : 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\u000A4366408", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:22]execute_script... [13:30:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412208", "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" : 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\u000A4366408", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:22]POST & json_proto [13:30:22]process_json_proto [13:30:22]json parsed OK: [13:30:22]protocol is kg_v1.0 [13:30:22]action value=close_receipt [13:30:22]process_action close_receipt [13:30:22]cmd_close_receipt [13:30:22]MH_GetDate [13:30:22]Write to MH i2c: F0 00 00 8A 24 9D [13:30:22]Write i2c OK [13:30:22]MH_I2C_Read... [13:30:22]Read from MH i2c: F0 [13:30:22]MH_I2C_Read... [13:30:22]Read from MH i2c: F0 09 00 [13:30:22]MH_I2C_Read... [13:30:22]Read from MH i2c: F0 09 00 8A 24 00 F1 DC B5 67 7E 41 4F 65 02 [13:30:22]GetLastDocTimeStamp 1739971799 [13:30:22]current date 1739971825 [13:30:22]FM_GetShiftState [13:30:22]SAM_PROTO_GetShiftState [13:30:22]wFMCommunicate request_size=4 [13:30:22]MH_SAM_APDU [13:30:22]CAPDU: 80 13 01 00 [13:30:22]Write to MH i2c: E2 08 00 8B 24 80 13 01 00 00 00 00 00 2C [13:30:22]Write i2c OK [13:30:22]MH_I2C_Read... [13:30:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:22]Read from MH i2c: E2 [13:30:22]MH_I2C_Read... [13:30:22]Read from MH i2c: E2 0E 00 [13:30:22]MH_I2C_Read... [13:30:22]Read from MH i2c: E2 0E 00 8B 24 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 AB [13:30:22]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:30:22]wFMCommunicate OK [13:30:22]SAM_PROTO_GetShiftState done [13:30:22]FM_GetShiftState done [13:30:22]opened in 1739929631 [13:30:22]opened+sec_in_day 1740016031 [13:30:22]quantity*price = 0 [13:30:22]sum+1 = 1 [13:30:22]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 19.02.2025 13:30 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4366408 ФМ: 0000000000871826 ФД: 187057 ФПД: 61428293612222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T133025&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187057&fm=61428293612222&tin=02508201610067®Number=0000000000091857&sum=0 [13:30:23]StoreToDocumentArchive [13:30:23]shift 647 fd 187057 [13:30:23]save to /storage/0647/doc_00187057 [13:30:23]save last doc name /storage/0647/doc_00187057 to /storage/kkm_last_doc_name [13:30:23]save OK [13:30:23]Clear old archive folders... [13:30:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:30:23]tlvbuf is 0065A500 [13:30:23]SAM_PROTO_ClearQueue [13:30:23]wFMCommunicate request_size=4 [13:30:23]MH_SAM_APDU [13:30:23]CAPDU: 80 09 00 00 [13:30:23]Write to MH i2c: E2 08 00 98 24 80 09 00 00 00 00 00 00 2E [13:30:23]Write i2c OK [13:30:23]MH_I2C_Read... [13:30:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:23]Read from MH i2c: E2 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: E2 03 00 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: E2 03 00 98 24 00 90 00 30 [13:30:23]RAPDU: 90 00 [13:30:23]wFMCommunicate OK [13:30:23]SAM_PROTO_ClearQueue done [13:30:23]KKMCreateOFDPacket [13:30:23]OFDProtocolAddRootSTLVToBuf [13:30:23]FM_MakeSignedData [13:30:23]FM_MakeSignedData [13:30:23]SAM_PROTO_SignData [13:30:23]wFMCommunicate request_size=4 [13:30:23]MH_SAM_APDU [13:30:23]CAPDU: 80 0D 01 02 [13:30:23]Write to MH i2c: E2 08 00 99 24 80 0D 01 02 00 00 00 00 36 [13:30:23]Write i2c OK [13:30:23]MH_I2C_Read... [13:30:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:23]Read from MH i2c: E2 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: E2 03 00 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: E2 03 00 99 24 00 90 00 31 [13:30:23]RAPDU: 90 00 [13:30:23]wFMCommunicate OK [13:30:23]wFMCommunicate request_size=255 [13:30:23]MH_SAM_APDU [13:30:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7B 00 00 00 F4 03 04 00 F1 DC 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 B1 DA 02 00 35 04 06 00 37 DE 63 9E [13:30:23]Write to MH i2c: E2 02 01 9A 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 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 7B 00 00 00 F4 03 04 00 F1 DC 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 B1 DA 02 00 35 04 06 00 37 DE 63 9E 00 00 96 [13:30:23]Write i2c OK [13:30:23]MH_I2C_Read... [13:30:23]OFD Sender: No OFD packet to send [13:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:23]Read from MH i2c: E2 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: E2 03 00 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: E2 03 00 9A 24 00 90 00 32 [13:30:23]RAPDU: 90 00 [13:30:23]wFMCommunicate OK [13:30:23]wFMCommunicate request_size=7 [13:30:23]MH_SAM_APDU [13:30:23]CAPDU: 80 0D 02 02 02 B2 BE [13:30:23]Write to MH i2c: E2 0A 00 9B 24 80 0D 02 02 02 00 B2 BE 00 00 AD [13:30:23]Write i2c OK [13:30:23]MH_I2C_Read... [13:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:23]Read from MH i2c: E2 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: E2 03 00 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: E2 03 00 9B 24 00 90 00 33 [13:30:23]RAPDU: 90 00 [13:30:23]wFMCommunicate OK [13:30:23]wFMCommunicate request_size=4 [13:30:23]MH_SAM_APDU [13:30:23]CAPDU: 80 0D 03 02 [13:30:23]Write to MH i2c: E2 08 00 9C 24 80 0D 03 02 00 00 00 00 3B [13:30:23]Write i2c OK [13:30:23]MH_I2C_Read... [13:30:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:23]Read from MH i2c: E2 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: E2 0B 00 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: E2 0B 00 9C 24 00 4D D6 6F 1D B1 CB D4 58 90 00 93 [13:30:23]RAPDU: 4D D6 6F 1D B1 CB D4 58 90 00 [13:30:23]wFMCommunicate OK [13:30:23]SAM_PROTO_SignData done [13:30:23]FM_MakeSignedData done [13:30:23]CreateOFDProtocolMessage [13:30:23]wFMCommunicate request_size=4 [13:30:23]MH_SAM_APDU [13:30:23]CAPDU: 80 11 00 00 [13:30:23]Write to MH i2c: E2 08 00 9D 24 80 11 00 00 00 00 00 00 3B [13:30:23]Write i2c OK [13:30:23]MH_I2C_Read... [13:30:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:23]Read from MH i2c: E2 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: E2 17 00 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: E2 17 00 9D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8E [13:30:23]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:23]wFMCommunicate OK [13:30:23]CreateOFDProtocolMessage done [13:30:23]OFDSenderStorePacket 187057 [13:30:23]StoreOFDPacket docnum=187057 [13:30: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 0C 01 00 00 E4 37 04 01 A2 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 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 7B 00 00 00 F4 03 04 00 F1 DC 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 B1 DA 02 00 35 04 06 00 37 DE 63 9E B2 BE 4D D6 6F 1D B1 CB D4 58 [13:30:23]CheckFolder [13:30:23]dirname=/storage/ofd_packets [13:30:23]CheckFolder done [13:30:23]ProducePacketName [13:30:23]name=ofd_packets/00187057 [13:30:23]NVStorageSaveData ofd_packets/00187057 [13:30:23]File name is /storage/ofd_packets/00187057 [13:30:23]Write 298 bytes [13:30:23]NVStorageSaveData done [13:30:23]OFDSenderStorePacket done [13:30:23]KKMCreateOFDPacket done [13:30:23]NVStorageSaveData kkm_last_timestamp [13:30:23]File name is /storage/kkm_last_timestamp [13:30:23]Write 4 bytes [13:30:23]NVStorageSaveData done [13:30:23]ExternCall_PrintAddStr [13:30:23]wPrintStart [13:30:23]Write to MH i2c: 01 00 00 9E 24 C2 [13:30:23]Write i2c OK [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: 01 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: 01 07 00 [13:30:23]MH_I2C_Read... [13:30:23]Read from MH i2c: 01 07 00 9E 24 00 00 00 00 00 FF 0F D7 [13:30:23]RasterBufferAndPrint [13:30:23]line Счет N : (1)412208 [13:30:23]line ИНН: 02508201610067 [13:30:23]line Контрольно-Кассовый Чек [13:30:23]line ПРОДАЖА [13:30:23]line ТРК (МРК, ГНК) : 6 [13:30:23]line Товар: 2710194210 [13:30:23]line ДТ-К-5 [13:30:23]line 20.000 * 0.00 [13:30:23]line = 0.00 [13:30:23]line НДС 12% НСП 1% [13:30:23]line > о реализуемом товаре [13:30:23]line ИТОГО: 0.00 [13:30:23]line НСП 1% : 0.00 [13:30:23]line НДС 12% : 0.00 [13:30:23]line Наличными: 0.00 [13:30:23]line Безнал.: 0.00 [13:30:23]line Место: АЗС № 92 "Партнер Нефть" [13:30:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:30:23]line СНО: Общий режим [13:30:23]line Чек 123 19.02.2025 13:30 [13:30:23]line Смена: 647 ФФД: 1.0 [13:30:23]line ЗНМ: 0300000118 [13:30:23]line РНМ: 0000000000091857 [13:30:23]line Версия ККМ: 001 [13:30:23]line Талоны: Топливные Талоны [13:30:23]line 4366408 [13:30:23]line ФМ: 0000000000871826 [13:30:23]line ФД: 187057 [13:30:23]line ФПД: 61428293612222 [13:30:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T133025&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187057&fm=61428293612222&tin=02508201610067®Number=0000000000091857&sum=0 [13:30:24]OFD Sender: Processing packet 187057 [packets to send 49, broken 48] [13:30:24]ProducePacketName [13:30:24]name=ofd_packets/00187057 [13:30:24]OFD Sender: To server: pG, [13:30:24]CommunicateWithHost lk.salyk.kg:30040 [13:30:24]ConnectInit lk.salyk.kg [13:30:24]written 0, free lines is 4095 [13:30:24]Connected sock=10 [13:30:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E4 37 04 01 A2 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 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 7B 00 00 00 F4 03 04 00 F1 DC 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 B1 DA 02 00 35 04 06 00 37 DE 63 9E B2 BE 4D D6 6F 1D B1 CB D4 58 [13:30:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 98 0F 47 00 DC 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B1 DA 02 00 F4 03 04 00 45 83 B5 67 B6 04 01 00 00 0F 17 F1 88 87 55 2C E3 [13:30:24]CommunicateWithHost err = 0 [13:30:24]CheckOFDResponse [13:30:24]1017 (14) - 77093643461234 [13:30:24]1041 (16) - 0000000000871826 [13:30:24]1040 (4) - 187057 [13:30:24]1012 (4) - 19.02.2025 07:07 [13:30:24]1206 (1) - 0 [13:30:24]OFD Sender: Remove packet 187057 [13:30:24]ProducePacketName [13:30:24]name=ofd_packets/00187057 [13:30:24]NVStorageDeleteData [13:30:24]Write to MH i2c: 01 00 00 C8 24 EC [13:30:24]Write i2c OK [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: 01 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: 01 07 00 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: 01 07 00 C8 24 00 00 00 00 00 10 0D 10 [13:30:24]RasterBufferAndPrint [13:30:24]line [13:30:24]line [13:30:24]line [13:30:24]line [13:30:24]line [13:30:24]written 0, free lines is 3352 [13:30:24]MH_Cut [13:30:24]Write to MH i2c: D1 01 00 CF 24 01 C5 [13:30:24]Write i2c OK [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: D1 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: D1 01 00 [13:30:24]MH_I2C_Read... [13:30:24]Read from MH i2c: D1 01 00 CF 24 00 C4 [13:30:24]Write to MH i2c: 01 00 00 D0 24 F4 [13:30:24]Write i2c OK [13:30:24]MH_I2C_Read... [13:30:25]OFD Sender: No OFD packet to send [13:30:25]*** Cut start [13:30:25]*** Partial cut [13:30:25]*** CUTSNS_PIN = 1 [13:30:25]*** CUTSNS_PIN = 0 [13:30:25]*** Brake cut motor [13:30:26]Read from MH i2c: 01 [13:30:26]MH_I2C_Read... [13:30:26]*** Stop cut motor [13:30:26]*** Cut end [13:30:26]Read from MH i2c: 01 07 00 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: 01 07 00 D0 24 00 00 00 00 00 FF 0F 09 [13:30:26]process_action close_receipt done [13:30:26]requested_data is exist [13:30:26]produce_requested_data [13:30:26]requested_item fm.sn is exist - process it [13:30:26]wFMCommunicate request_size=4 [13:30:26]MH_SAM_APDU [13:30:26]CAPDU: 80 11 00 00 [13:30:26]Write to MH i2c: E2 08 00 D1 24 80 11 00 00 00 00 00 00 6F [13:30:26]Write i2c OK [13:30:26]MH_I2C_Read... [13:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:26]Read from MH i2c: E2 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 17 00 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 17 00 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 [13:30:26]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:26]wFMCommunicate OK [13:30:26]requested_item fd.num is exist - process it [13:30:26]SAM_PROTO_GetFieldsCounters [13:30:26]wFMCommunicate request_size=4 [13:30:26]MH_SAM_APDU [13:30:26]CAPDU: 80 13 00 00 [13:30:26]Write to MH i2c: E2 08 00 D2 24 80 13 00 00 00 00 00 00 72 [13:30:26]Write i2c OK [13:30:26]MH_I2C_Read... [13:30:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:26]Read from MH i2c: E2 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 62 00 [13:30:26]MH_I2C_Read... [13:30:26]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 B1 DA 02 00 0E 04 04 00 87 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 1F [13:30:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [13:30:26]wFMCommunicate OK [13:30:26]SAM_PROTO_GetFieldsCounters done [13:30:26]requested_item shift.num is exist - process it [13:30:26]requested_item shift.opened is exist - process it [13:30:26]req_shift_opened [13:30:26]FM_GetShiftState [13:30:26]SAM_PROTO_GetShiftState [13:30:26]wFMCommunicate request_size=4 [13:30:26]MH_SAM_APDU [13:30:26]CAPDU: 80 13 01 00 [13:30:26]Write to MH i2c: E2 08 00 D3 24 80 13 01 00 00 00 00 00 74 [13:30:26]Write i2c OK [13:30:26]MH_I2C_Read... [13:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:26]Read from MH i2c: E2 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 0E 00 [13:30:26]MH_I2C_Read... [13:30:26]Read from MH i2c: E2 0E 00 D3 24 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F3 [13:30:26]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:30:26]wFMCommunicate OK [13:30:26]SAM_PROTO_GetShiftState done [13:30:26]FM_GetShiftState done [13:30:26]req_shift_opened done [13:30:26]requested_item shift.open_date is exist - process it [13:30:26]req_shift_open_date [13:30:26]req_shift_open_date done [13:30:26]produce_requested_data done [13:30:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187057,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [13:30:26]process_action_free close_receipt [13:30:26]json_value_free [13:30:26]json_value_free done [13:30:26]process_json_proto returns [13:30:26]Send response to host [13:30:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187057,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [13:30:26]free response buf [13:30:26]execute_script done [13:30:26]execute_script returns [13:30:26]free content buf [13:30:26]Sock 7.Close socket [13:30:26]Sock 7.Thread stoped [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31: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:53]accept exits with 9 [13:32:53]New connection [13:32:53]New thread 3066879332 created [13:32:53]Thread 3067022692 joined [13:32:53]Waiting for new connection... [13:32:53] Sock 9.Parse request [13:32:53]Sock 9.Check first char [13:32:53]Sock 9.First char is OK [13:32:53]request: POST /json_proto HTTP/1.0 [13:32:53]Method: POST [13:32:53]URL: /json_proto [13:32:53]Method is POST - this is cgi request [13:32:53]url: /json_proto [13:32:53]query_string will be loaded in cgi processing [13:32:53]execute_cgi json_proto POST (null) [13:32:53]execute_cgi path=json_proto method=POST [13:32:53]POST find Content-Length [13:32:53]Host: 172.17.46.131:8080 [13:32:53]Content-Length: 678 [13:32:53]Content-Type: application/json [13:32:53] [13:32:53]POST finish read [13:32:53]Found Content-Length = 678 [13:32:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412209", "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:32:53]execute_script... [13:32: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)412209", "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:32:53]POST & json_proto [13:32:53]process_json_proto [13:32:53]json parsed OK: [13:32:53]protocol is kg_v1.0 [13:32:53]action value=close_receipt [13:32:53]process_action close_receipt [13:32:53]cmd_close_receipt [13:32:53]MH_GetDate [13:32:53]Write to MH i2c: F0 00 00 D4 24 E7 [13:32:53]Write i2c OK [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: F0 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: F0 09 00 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: F0 09 00 D4 24 00 89 DD B5 67 7E 41 4F 65 E5 [13:32:53]GetLastDocTimeStamp 1739971825 [13:32:53]current date 1739971977 [13:32:53]FM_GetShiftState [13:32:53]SAM_PROTO_GetShiftState [13:32:53]wFMCommunicate request_size=4 [13:32:53]MH_SAM_APDU [13:32:53]CAPDU: 80 13 01 00 [13:32:53]Write to MH i2c: E2 08 00 D5 24 80 13 01 00 00 00 00 00 76 [13:32:53]Write i2c OK [13:32:53]MH_I2C_Read... [13:32:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:53]Read from MH i2c: E2 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: E2 0E 00 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: E2 0E 00 D5 24 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F5 [13:32:53]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:32:53]wFMCommunicate OK [13:32:53]SAM_PROTO_GetShiftState done [13:32:53]FM_GetShiftState done [13:32:53]opened in 1739929631 [13:32:53]opened+sec_in_day 1740016031 [13:32:53]quantity*price = 100042 [13:32:53]sum+1 = 100044 [13:32:53]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 СНО: Общий режим Чек 124 19.02.2025 13:32 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187058 ФПД: 24441738274056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T133257&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187058&fm=24441738274056&tin=02508201610067®Number=0000000000091857&sum=100000 [13:32:54]StoreToDocumentArchive [13:32:54]shift 647 fd 187058 [13:32:54]save to /storage/0647/doc_00187058 [13:32:54]save last doc name /storage/0647/doc_00187058 to /storage/kkm_last_doc_name [13:32:54]save OK [13:32:54]Clear old archive folders... [13:32:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:32:54]tlvbuf is 005E2660 [13:32:54]SAM_PROTO_ClearQueue [13:32:54]wFMCommunicate request_size=4 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 09 00 00 [13:32:54]Write to MH i2c: E2 08 00 E2 24 80 09 00 00 00 00 00 00 78 [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:54]Read from MH i2c: E2 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 03 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 03 00 E2 24 00 90 00 7A [13:32:54]RAPDU: 90 00 [13:32:54]wFMCommunicate OK [13:32:54]SAM_PROTO_ClearQueue done [13:32:54]KKMCreateOFDPacket [13:32:54]OFDProtocolAddRootSTLVToBuf [13:32:54]FM_MakeSignedData [13:32:54]FM_MakeSignedData [13:32:54]SAM_PROTO_SignData [13:32:54]wFMCommunicate request_size=4 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 0D 01 02 [13:32:54]Write to MH i2c: E2 08 00 E3 24 80 0D 01 02 00 00 00 00 80 [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:54]Read from MH i2c: E2 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 03 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 03 00 E3 24 00 90 00 7B [13:32:54]RAPDU: 90 00 [13:32:54]wFMCommunicate OK [13:32:54]wFMCommunicate request_size=255 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7C 00 00 00 F4 03 04 00 89 DD 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 B2 DA 02 00 35 04 06 00 16 3A C9 20 [13:32:54]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 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 7C 00 00 00 F4 03 04 00 89 DD 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 B2 DA 02 00 35 04 06 00 16 3A C9 20 00 00 72 [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:55]Read from MH i2c: E2 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 03 00 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 03 00 E4 24 00 90 00 7C [13:32:55]RAPDU: 90 00 [13:32:55]wFMCommunicate OK [13:32:55]wFMCommunicate request_size=7 [13:32:55]MH_SAM_APDU [13:32:55]CAPDU: 80 0D 02 02 02 A5 08 [13:32:55]Write to MH i2c: E2 0A 00 E5 24 80 0D 02 02 02 00 A5 08 00 00 34 [13:32:55]Write i2c OK [13:32:55]MH_I2C_Read... [13:32:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:55]Read from MH i2c: E2 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 03 00 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 03 00 E5 24 00 90 00 7D [13:32:55]RAPDU: 90 00 [13:32:55]wFMCommunicate OK [13:32:55]wFMCommunicate request_size=4 [13:32:55]MH_SAM_APDU [13:32:55]CAPDU: 80 0D 03 02 [13:32:55]Write to MH i2c: E2 08 00 E6 24 80 0D 03 02 00 00 00 00 85 [13:32:55]Write i2c OK [13:32:55]MH_I2C_Read... [13:32:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:55]Read from MH i2c: E2 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 0B 00 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 0B 00 E6 24 00 C8 34 EB 66 A2 70 ED CE 90 00 A0 [13:32:55]RAPDU: C8 34 EB 66 A2 70 ED CE 90 00 [13:32:55]wFMCommunicate OK [13:32:55]SAM_PROTO_SignData done [13:32:55]FM_MakeSignedData done [13:32:55]CreateOFDProtocolMessage [13:32:55]wFMCommunicate request_size=4 [13:32:55]MH_SAM_APDU [13:32:55]CAPDU: 80 11 00 00 [13:32:55]Write to MH i2c: E2 08 00 E7 24 80 11 00 00 00 00 00 00 85 [13:32:55]Write i2c OK [13:32:55]MH_I2C_Read... [13:32:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:55]Read from MH i2c: E2 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 17 00 [13:32:55]MH_I2C_Read... [13:32:55]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 [13: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 [13:32:55]wFMCommunicate OK [13:32:55]CreateOFDProtocolMessage done [13:32:55]OFDSenderStorePacket 187058 [13:32:55]StoreOFDPacket docnum=187058 [13:32: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 0C 01 00 00 C7 33 04 01 A7 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7C 00 00 00 F4 03 04 00 89 DD 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 B2 DA 02 00 35 04 06 00 16 3A C9 20 A5 08 C8 34 EB 66 A2 70 ED CE [13:32:55]CheckFolder [13:32:55]dirname=/storage/ofd_packets [13:32:55]CheckFolder done [13:32:55]ProducePacketName [13:32:55]name=ofd_packets/00187058 [13:32:55]NVStorageSaveData ofd_packets/00187058 [13:32:55]File name is /storage/ofd_packets/00187058 [13:32:55]Write 298 bytes [13:32:55]NVStorageSaveData done [13:32:55]OFDSenderStorePacket done [13:32:55]KKMCreateOFDPacket done [13:32:55]NVStorageSaveData kkm_last_timestamp [13:32:55]File name is /storage/kkm_last_timestamp [13:32:55]Write 4 bytes [13:32:55]NVStorageSaveData done [13:32:55]ExternCall_PrintAddStr [13:32:55]wPrintStart [13:32:55]Write to MH i2c: 01 00 00 E8 24 0C [13:32:55]Write i2c OK [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: 01 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: 01 07 00 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: 01 07 00 E8 24 00 00 00 00 00 FF 0F 21 [13:32:55]RasterBufferAndPrint [13:32:55]line Счет N : (1)412209 [13:32:55]line ИНН: 02508201610067 [13:32:55]line Контрольно-Кассовый Чек [13:32:55]line ПРОДАЖА [13:32:55]line ТРК (МРК, ГНК) : 5 [13:32:55]line Товар: 2710194210 [13:32:55]line ДТ-К-5 [13:32:55]line 13.780 * 72.60 [13:32:55]line = 1000.43 [13:32:55]line НДС 12% НСП 1% [13:32:55]line > о реализуемом товаре [13:32:55]line ОКРУГЛЕНИЕ: -0.43 [13:32:55]line ИТОГО: 1000.00 [13:32:55]line Внесено: 1000.00 [13:32:55]line СДАЧА: 0.00 [13:32:55]line НСП 1% : 8.85 [13:32:55]line НДС 12% : 106.24 [13:32:55]line Наличными: 1000.00 [13:32:55]line Безнал.: 0.00 [13:32:55]line Место: АЗС № 92 "Партнер Нефть" [13:32:55]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:32:55]line СНО: Общий режим [13:32:55]line Чек 124 19.02.2025 13:32 [13:32:55]line Смена: 647 ФФД: 1.0 [13:32:55]line ЗНМ: 0300000118 [13:32:55]line РНМ: 0000000000091857 [13:32:55]line Версия ККМ: 001 [13:32:55]line ФМ: 0000000000871826 [13:32:55]line ФД: 187058 [13:32:55]line ФПД: 24441738274056 [13:32:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T133257&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187058&fm=24441738274056&tin=02508201610067®Number=0000000000091857&sum=100000 [13:32:55]OFD Sender: Processing packet 187058 [packets to send 49, broken 48] [13:32:55]ProducePacketName [13:32:55]name=ofd_packets/00187058 [13:32:55]OFD Sender: To server: pG, [13:32:55]CommunicateWithHost lk.salyk.kg:30040 [13:32:55]ConnectInit lk.salyk.kg [13:32:55]written 0, free lines is 4095 [13:32:55]Connected sock=10 [13:32: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 0C 01 00 00 C7 33 04 01 A7 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7C 00 00 00 F4 03 04 00 89 DD 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 B2 DA 02 00 35 04 06 00 16 3A C9 20 A5 08 C8 34 EB 66 A2 70 ED CE [13:32: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 95 4C 47 00 2F AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B2 DA 02 00 F4 03 04 00 DD 83 B5 67 B6 04 01 00 00 48 90 6F B1 11 D3 30 5C [13:32:56]CommunicateWithHost err = 0 [13:32:56]CheckOFDResponse [13:32:56]1017 (14) - 77093643461234 [13:32:56]1041 (16) - 0000000000871826 [13:32:56]1040 (4) - 187058 [13:32:56]1012 (4) - 19.02.2025 07:10 [13:32:56]1206 (1) - 0 [13:32:56]OFD Sender: Remove packet 187058 [13:32:56]ProducePacketName [13:32:56]name=ofd_packets/00187058 [13:32:56]NVStorageDeleteData [13:32:56]Write to MH i2c: 01 00 00 13 25 38 [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: 01 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: 01 07 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: 01 07 00 13 25 00 00 00 00 00 04 0D 50 [13:32:56]RasterBufferAndPrint [13:32:56]line [13:32:56]line [13:32:56]line [13:32:56]line [13:32:56]line [13:32:56]written 0, free lines is 3342 [13:32:56]MH_Cut [13:32:56]Write to MH i2c: D1 01 00 1A 25 01 11 [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: D1 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: D1 01 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: D1 01 00 1A 25 00 10 [13:32:56]Write to MH i2c: 01 00 00 1B 25 40 [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]OFD Sender: No OFD packet to send [13:32:56]*** Cut start [13:32:56]*** Partial cut [13:32:56]*** CUTSNS_PIN = 1 [13:32:56]*** CUTSNS_PIN = 0 [13:32:57]*** Brake cut motor [13:32:57]Read from MH i2c: 01 [13:32:57]MH_I2C_Read... [13:32:57]*** Stop cut motor [13:32:57]*** Cut end [13:32:57]Read from MH i2c: 01 07 00 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: 01 07 00 1B 25 00 00 00 00 00 FF 0F 55 [13:32:57]process_action close_receipt done [13:32:57]requested_data is exist [13:32:57]produce_requested_data [13:32:57]requested_item fm.sn is exist - process it [13:32:57]wFMCommunicate request_size=4 [13:32:57]MH_SAM_APDU [13:32:57]CAPDU: 80 11 00 00 [13:32:57]Write to MH i2c: E2 08 00 1C 25 80 11 00 00 00 00 00 00 BB [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:57]Read from MH i2c: E2 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 17 00 [13:32:57]MH_I2C_Read... [13:32:57]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 [13:32: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:32:57]wFMCommunicate OK [13:32:57]requested_item fd.num is exist - process it [13:32:57]SAM_PROTO_GetFieldsCounters [13:32:57]wFMCommunicate request_size=4 [13:32:57]MH_SAM_APDU [13:32:57]CAPDU: 80 13 00 00 [13:32:57]Write to MH i2c: E2 08 00 1D 25 80 13 00 00 00 00 00 00 BE [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:57]Read from MH i2c: E2 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 62 00 [13:32:57]MH_I2C_Read... [13:32:57]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 B2 DA 02 00 0E 04 04 00 87 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 6F [13:32: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 B2 DA 02 00 0E 04 04 00 87 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 [13:32:57]wFMCommunicate OK [13:32:57]SAM_PROTO_GetFieldsCounters done [13:32:57]requested_item shift.num is exist - process it [13:32:57]requested_item shift.opened is exist - process it [13:32:57]req_shift_opened [13:32:57]FM_GetShiftState [13:32:57]SAM_PROTO_GetShiftState [13:32:57]wFMCommunicate request_size=4 [13:32:57]MH_SAM_APDU [13:32:57]CAPDU: 80 13 01 00 [13:32:57]Write to MH i2c: E2 08 00 1E 25 80 13 01 00 00 00 00 00 C0 [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:57]Read from MH i2c: E2 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 0E 00 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 0E 00 1E 25 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 3F [13:32:57]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:32:57]wFMCommunicate OK [13:32:57]SAM_PROTO_GetShiftState done [13:32:57]FM_GetShiftState done [13:32:57]req_shift_opened done [13:32:57]requested_item shift.open_date is exist - process it [13:32:57]req_shift_open_date [13:32:57]req_shift_open_date done [13:32:57]produce_requested_data done [13:32:57]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187058,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [13:32:57]process_action_free close_receipt [13:32:57]json_value_free [13:32:57]json_value_free done [13:32:57]process_json_proto returns [13:32:57]Send response to host [13:32:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187058,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [13:32:57]free response buf [13:32:57]execute_script done [13:32:57]execute_script returns [13:32:57]free content buf [13:32:57]Sock 9.Close socket [13:32:57]Sock 9.Thread stoped [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:11]OFD Sender: No OFD packet to send [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:36]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:56]OFD Sender: No OFD packet to send [13:37:01]OFD Sender: No OFD packet to send [13:37:06]OFD Sender: No OFD packet to send [13:37:11]OFD Sender: No OFD packet to send [13:37:16]OFD Sender: No OFD packet to send [13:37:21]OFD Sender: No OFD packet to send [13:37:26]OFD Sender: No OFD packet to send [13:37:31]OFD Sender: No OFD packet to send [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:04]accept exits with 7 [13:40:04]New connection [13:40:04]New thread 3067022692 created [13:40:04]Thread 3066879332 joined [13:40:04]Waiting for new connection... [13:40:04] Sock 7.Parse request [13:40:04]Sock 7.Check first char [13:40:04]Sock 7.First char is OK [13:40:04]request: POST /json_proto HTTP/1.0 [13:40:04]Method: POST [13:40:04]URL: /json_proto [13:40:04]Method is POST - this is cgi request [13:40:04]url: /json_proto [13:40:04]query_string will be loaded in cgi processing [13:40:04]execute_cgi json_proto POST (null) [13:40:04]execute_cgi path=json_proto method=POST [13:40:04]POST find Content-Length [13:40:04]Host: 172.17.46.131:8080 [13:40:04]Content-Length: 677 [13:40:04]Content-Type: application/json [13:40:04] [13:40:04]POST finish read [13:40:04]Found Content-Length = 677 [13:40:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412210", "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" ] } } [13:40:04]execute_script... [13:40: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)412210", "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" ] } } [13:40:04]POST & json_proto [13:40:04]process_json_proto [13:40:04]json parsed OK: [13:40:04]protocol is kg_v1.0 [13:40:04]action value=close_receipt [13:40:04]process_action close_receipt [13:40:04]cmd_close_receipt [13:40:04]MH_GetDate [13:40:04]Write to MH i2c: F0 00 00 1F 25 33 [13:40:04]Write i2c OK [13:40:04]MH_I2C_Read... [13:40:04]Read from MH i2c: F0 [13:40:04]MH_I2C_Read... [13:40:04]Read from MH i2c: F0 09 00 [13:40:04]MH_I2C_Read... [13:40:04]Read from MH i2c: F0 09 00 1F 25 00 37 DF B5 67 7E 41 4F 65 E1 [13:40:04]GetLastDocTimeStamp 1739971977 [13:40:04]current date 1739972407 [13:40:04]FM_GetShiftState [13:40:04]SAM_PROTO_GetShiftState [13:40:04]wFMCommunicate request_size=4 [13:40:04]MH_SAM_APDU [13:40:04]CAPDU: 80 13 01 00 [13:40:04]Write to MH i2c: E2 08 00 20 25 80 13 01 00 00 00 00 00 C2 [13:40:04]Write i2c OK [13:40:04]MH_I2C_Read... [13:40:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:04]Read from MH i2c: E2 [13:40:04]MH_I2C_Read... [13:40:04]Read from MH i2c: E2 0E 00 [13:40:04]MH_I2C_Read... [13:40:04]Read from MH i2c: E2 0E 00 20 25 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 41 [13:40:04]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:40:04]wFMCommunicate OK [13:40:04]SAM_PROTO_GetShiftState done [13:40:04]FM_GetShiftState done [13:40:04]opened in 1739929631 [13:40:04]opened+sec_in_day 1740016031 [13:40:04]quantity*price = 30045 [13:40:04]sum+1 = 30047 [13:40:04]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 СНО: Общий режим Чек 125 19.02.2025 13:40 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187059 ФПД: 154713367523703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T134007&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187059&fm=154713367523703&tin=02508201610067®Number=0000000000091857&sum=30000 [13:40:05]StoreToDocumentArchive [13:40:05]shift 647 fd 187059 [13:40:05]save to /storage/0647/doc_00187059 [13:40:05]save last doc name /storage/0647/doc_00187059 to /storage/kkm_last_doc_name [13:40:05]save OK [13:40:05]Clear old archive folders... [13:40:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:40:05]tlvbuf is B6F66010 [13:40:05]SAM_PROTO_ClearQueue [13:40:05]wFMCommunicate request_size=4 [13:40:05]MH_SAM_APDU [13:40:05]CAPDU: 80 09 00 00 [13:40:05]Write to MH i2c: E2 08 00 2D 25 80 09 00 00 00 00 00 00 C4 [13:40:05]Write i2c OK [13:40:05]MH_I2C_Read... [13:40:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:05]Read from MH i2c: E2 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 03 00 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 03 00 2D 25 00 90 00 C6 [13:40:05]RAPDU: 90 00 [13:40:05]wFMCommunicate OK [13:40:05]SAM_PROTO_ClearQueue done [13:40:05]KKMCreateOFDPacket [13:40:05]OFDProtocolAddRootSTLVToBuf [13:40:05]FM_MakeSignedData [13:40:05]FM_MakeSignedData [13:40:05]SAM_PROTO_SignData [13:40:05]wFMCommunicate request_size=4 [13:40:05]MH_SAM_APDU [13:40:05]CAPDU: 80 0D 01 02 [13:40:05]Write to MH i2c: E2 08 00 2E 25 80 0D 01 02 00 00 00 00 CC [13:40:05]Write i2c OK [13:40:05]MH_I2C_Read... [13:40:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:05]Read from MH i2c: E2 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 03 00 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 03 00 2E 25 00 90 00 C7 [13:40:05]RAPDU: 90 00 [13:40:05]wFMCommunicate OK [13:40:05]wFMCommunicate request_size=255 [13:40:05]MH_SAM_APDU [13:40: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 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 7D 00 00 00 F4 03 04 00 37 DF 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 B3 DA 02 00 35 04 06 00 8C [13:40:05]Write to MH i2c: E2 02 01 2F 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 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 7D 00 00 00 F4 03 04 00 37 DF 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 B3 DA 02 00 35 04 06 00 8C 00 00 5D [13:40:05]Write i2c OK [13:40:05]MH_I2C_Read... [13:40:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:05]Read from MH i2c: E2 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 03 00 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 03 00 2F 25 00 90 00 C8 [13:40:05]RAPDU: 90 00 [13:40:05]wFMCommunicate OK [13:40:05]wFMCommunicate request_size=10 [13:40:05]MH_SAM_APDU [13:40:05]CAPDU: 80 0D 02 02 05 B6 03 50 31 77 [13:40:05]Write to MH i2c: E2 0D 00 30 25 80 0D 02 02 05 00 B6 03 50 31 77 00 00 8A [13:40:05]Write i2c OK [13:40:05]MH_I2C_Read... [13:40:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:05]Read from MH i2c: E2 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 03 00 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 03 00 30 25 00 90 00 C9 [13:40:05]RAPDU: 90 00 [13:40:05]wFMCommunicate OK [13:40:05]wFMCommunicate request_size=4 [13:40:05]MH_SAM_APDU [13:40:05]CAPDU: 80 0D 03 02 [13:40:05]Write to MH i2c: E2 08 00 31 25 80 0D 03 02 00 00 00 00 D1 [13:40:05]Write i2c OK [13:40:05]MH_I2C_Read... [13:40:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:05]Read from MH i2c: E2 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 0B 00 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 0B 00 31 25 00 4E 6A 8B 87 61 D5 AA 04 90 00 80 [13:40:05]RAPDU: 4E 6A 8B 87 61 D5 AA 04 90 00 [13:40:05]wFMCommunicate OK [13:40:05]SAM_PROTO_SignData done [13:40:05]FM_MakeSignedData done [13:40:05]CreateOFDProtocolMessage [13:40:05]wFMCommunicate request_size=4 [13:40:05]MH_SAM_APDU [13:40:05]CAPDU: 80 11 00 00 [13:40:05]Write to MH i2c: E2 08 00 32 25 80 11 00 00 00 00 00 00 D1 [13:40:05]Write i2c OK [13:40:05]MH_I2C_Read... [13:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:05]Read from MH i2c: E2 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 17 00 [13:40:05]MH_I2C_Read... [13:40:05]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 [13:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:40:05]wFMCommunicate OK [13:40:05]CreateOFDProtocolMessage done [13:40:05]OFDSenderStorePacket 187059 [13:40:05]StoreOFDPacket docnum=187059 [13:40: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 82 5B 07 01 EA 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 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 7D 00 00 00 F4 03 04 00 37 DF 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 B3 DA 02 00 35 04 06 00 8C B6 03 50 31 77 4E 6A 8B 87 61 D5 AA 04 [13:40:05]CheckFolder [13:40:05]dirname=/storage/ofd_packets [13:40:05]CheckFolder done [13:40:05]ProducePacketName [13:40:05]name=ofd_packets/00187059 [13:40:05]NVStorageSaveData ofd_packets/00187059 [13:40:05]File name is /storage/ofd_packets/00187059 [13:40:05]Write 301 bytes [13:40:05]NVStorageSaveData done [13:40:05]OFDSenderStorePacket done [13:40:05]KKMCreateOFDPacket done [13:40:05]NVStorageSaveData kkm_last_timestamp [13:40:05]File name is /storage/kkm_last_timestamp [13:40:05]Write 4 bytes [13:40:05]NVStorageSaveData done [13:40:05]ExternCall_PrintAddStr [13:40:05]wPrintStart [13:40:05]Write to MH i2c: 01 00 00 33 25 58 [13:40:05]Write i2c OK [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: 01 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: 01 07 00 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: 01 07 00 33 25 00 00 00 00 00 FF 0F 6D [13:40:05]RasterBufferAndPrint [13:40:05]line Счет N : (1)412210 [13:40:05]line ИНН: 02508201610067 [13:40:05]line Контрольно-Кассовый Чек [13:40:05]line ПРОДАЖА [13:40:05]line ТРК (МРК, ГНК) : 22 [13:40:05]line Товар: 2710124130 [13:40:05]line Аи-92-К-2 [13:40:05]line 4.680 * 64.20 [13:40:05]line = 300.46 [13:40:05]line НДС 12% НСП 1% [13:40:05]line > о реализуемом товаре [13:40:05]line ОКРУГЛЕНИЕ: -0.46 [13:40:05]line ИТОГО: 300.00 [13:40:05]line Внесено: 300.00 [13:40:05]line СДАЧА: 0.00 [13:40:05]line НСП 1% : 2.66 [13:40:05]line НДС 12% : 31.91 [13:40:05]line Наличными: 300.00 [13:40:05]line Безнал.: 0.00 [13:40:05]line Место: АЗС № 92 "Партнер Нефть" [13:40:05]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:40:05]line СНО: Общий режим [13:40:05]line Чек 125 19.02.2025 13:40 [13:40:05]line Смена: 647 ФФД: 1.0 [13:40:05]line ЗНМ: 0300000118 [13:40:05]line РНМ: 0000000000091857 [13:40:05]line Версия ККМ: 001 [13:40:05]line ФМ: 0000000000871826 [13:40:05]line ФД: 187059 [13:40:05]line ФПД: 154713367523703 [13:40:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T134007&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187059&fm=154713367523703&tin=02508201610067®Number=0000000000091857&sum=30000 [13:40:05]written 0, free lines is 4095 [13:40:05]OFD Sender: Processing packet 187059 [packets to send 49, broken 48] [13:40:05]ProducePacketName [13:40:05]name=ofd_packets/00187059 [13:40:05]OFD Sender: To server: pG, [13:40:05]CommunicateWithHost lk.salyk.kg:30040 [13:40:05]ConnectInit lk.salyk.kg [13:40:06]Connected sock=10 [13:40: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 82 5B 07 01 EA 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 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 7D 00 00 00 F4 03 04 00 37 DF 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 B3 DA 02 00 35 04 06 00 8C B6 03 50 31 77 4E 6A 8B 87 61 D5 AA 04 [13:40: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 52 96 47 00 3B 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 B3 DA 02 00 F4 03 04 00 8B 85 B5 67 B6 04 01 00 00 10 28 61 99 BE 13 13 2E [13:40:06]CommunicateWithHost err = 0 [13:40:06]CheckOFDResponse [13:40:06]1017 (14) - 77093643461234 [13:40:06]1041 (16) - 0000000000871826 [13:40:06]1040 (4) - 187059 [13:40:06]1012 (4) - 19.02.2025 07:17 [13:40:06]1206 (1) - 0 [13:40:06]OFD Sender: Remove packet 187059 [13:40:06]ProducePacketName [13:40:06]name=ofd_packets/00187059 [13:40:06]NVStorageDeleteData [13:40:06]Write to MH i2c: 01 00 00 5E 25 83 [13:40:06]Write i2c OK [13:40:06]MH_I2C_Read... [13:40:06]Read from MH i2c: 01 [13:40:06]MH_I2C_Read... [13:40:06]Read from MH i2c: 01 07 00 [13:40:06]MH_I2C_Read... [13:40:06]Read from MH i2c: 01 07 00 5E 25 00 00 00 00 00 FE 0C 94 [13:40:06]RasterBufferAndPrint [13:40:06]line [13:40:06]line [13:40:06]line [13:40:06]line [13:40:06]line [13:40:06]written 0, free lines is 3332 [13:40:06]MH_Cut [13:40:06]Write to MH i2c: D1 01 00 65 25 01 5C [13:40:06]Write i2c OK [13:40:06]MH_I2C_Read... [13:40:06]Read from MH i2c: D1 [13:40:06]MH_I2C_Read... [13:40:06]Read from MH i2c: D1 01 00 [13:40:06]MH_I2C_Read... [13:40:06]Read from MH i2c: D1 01 00 65 25 00 5B [13:40:06]Write to MH i2c: 01 00 00 66 25 8B [13:40:06]Write i2c OK [13:40:06]MH_I2C_Read... [13:40:06]OFD Sender: No OFD packet to send [13:40:06]*** Cut start [13:40:06]*** Partial cut [13:40:06]*** CUTSNS_PIN = 1 [13:40:07]*** CUTSNS_PIN = 0 [13:40:07]*** Brake cut motor [13:40:07]Read from MH i2c: 01 [13:40:07]MH_I2C_Read... [13:40:07]*** Stop cut motor [13:40:07]*** Cut end [13:40:07]Read from MH i2c: 01 07 00 [13:40:07]MH_I2C_Read... [13:40:07]Read from MH i2c: 01 07 00 66 25 00 00 00 00 00 FF 0F A0 [13:40:07]process_action close_receipt done [13:40:07]requested_data is exist [13:40:07]produce_requested_data [13:40:07]requested_item fm.sn is exist - process it [13:40:07]wFMCommunicate request_size=4 [13:40:07]MH_SAM_APDU [13:40:07]CAPDU: 80 11 00 00 [13:40:07]Write to MH i2c: E2 08 00 67 25 80 11 00 00 00 00 00 00 06 [13:40:07]Write i2c OK [13:40:07]MH_I2C_Read... [13:40:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:07]Read from MH i2c: E2 [13:40:07]MH_I2C_Read... [13:40:07]Read from MH i2c: E2 17 00 [13:40:07]MH_I2C_Read... [13:40:07]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 [13:40:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:40:07]wFMCommunicate OK [13:40:07]requested_item fd.num is exist - process it [13:40:07]SAM_PROTO_GetFieldsCounters [13:40:07]wFMCommunicate request_size=4 [13:40:07]MH_SAM_APDU [13:40:07]CAPDU: 80 13 00 00 [13:40:07]Write to MH i2c: E2 08 00 68 25 80 13 00 00 00 00 00 00 09 [13:40:07]Write i2c OK [13:40:07]MH_I2C_Read... [13:40:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:07]Read from MH i2c: E2 [13:40:07]MH_I2C_Read... [13:40:07]Read from MH i2c: E2 62 00 [13:40:07]MH_I2C_Read... [13:40:07]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 B3 DA 02 00 0E 04 04 00 87 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 BE [13:40: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 B3 DA 02 00 0E 04 04 00 87 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 [13:40:07]wFMCommunicate OK [13:40:07]SAM_PROTO_GetFieldsCounters done [13:40:07]requested_item shift.num is exist - process it [13:40:07]requested_item shift.opened is exist - process it [13:40:07]req_shift_opened [13:40:07]FM_GetShiftState [13:40:07]SAM_PROTO_GetShiftState [13:40:07]wFMCommunicate request_size=4 [13:40:07]MH_SAM_APDU [13:40:07]CAPDU: 80 13 01 00 [13:40:07]Write to MH i2c: E2 08 00 69 25 80 13 01 00 00 00 00 00 0B [13:40:07]Write i2c OK [13:40:07]MH_I2C_Read... [13:40:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:08]Read from MH i2c: E2 [13:40:08]MH_I2C_Read... [13:40:08]Read from MH i2c: E2 0E 00 [13:40:08]MH_I2C_Read... [13:40:08]Read from MH i2c: E2 0E 00 69 25 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 8A [13:40:08]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:40:08]wFMCommunicate OK [13:40:08]SAM_PROTO_GetShiftState done [13:40:08]FM_GetShiftState done [13:40:08]req_shift_opened done [13:40:08]requested_item shift.open_date is exist - process it [13:40:08]req_shift_open_date [13:40:08]req_shift_open_date done [13:40:08]produce_requested_data done [13:40:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187059,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [13:40:08]process_action_free close_receipt [13:40:08]json_value_free [13:40:08]json_value_free done [13:40:08]process_json_proto returns [13:40:08]Send response to host [13:40:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187059,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [13:40:08]free response buf [13:40:08]execute_script done [13:40:08]execute_script returns [13:40:08]free content buf [13:40:08]Sock 7.Close socket [13:40:08]Sock 7.Thread stoped [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:22]int [13:41:22]Write to MH i2c: 01 00 00 6A 25 8F [13:41:22]*** FLAG_PRN_KEY set [13:41:22]Write i2c OK [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: 01 [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: 01 07 00 [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: 01 07 00 6A 25 00 08 00 00 00 FF 0F AC [13:41:22]state=0 [13:41:22]Key pressed [13:41:22]Feed [13:41:22]Write to MH i2c: D8 00 00 6B 25 67 [13:41:22]Write i2c OK [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: D8 [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: D8 01 00 [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: D8 01 00 6B 25 00 68 [13:41:22]int [13:41:22]Write to MH i2c: 01 00 00 6C 25 91 [13:41:22]Write i2c OK [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: 01 [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: 01 07 00 [13:41:22]MH_I2C_Read... [13:41:22]Read from MH i2c: 01 07 00 6C 25 00 48 00 00 00 3C 00 1C [13:41:22]state=2 [13:41:22]Key pressed [13:41:23]int [13:41:23]Write to MH i2c: 01 00 00 6D 25 92 [13:41:23]Write i2c OK [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: 01 [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: 01 07 00 [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: 01 07 00 6D 25 00 08 00 00 00 F8 0F A8 [13:41:23]state=2 [13:41:23]Key pressed [13:41:23]int [13:41:23]Write to MH i2c: 01 00 00 6E 25 93 [13:41:23]*** FLAG_PRN_KEY reset [13:41:23]*** FLAG_PRN_KEY set [13:41:23]*** FLAG_PRN_KEY reset [13:41:23]Write i2c OK [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: 01 [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: 01 07 00 [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: 01 07 00 6E 25 00 00 00 00 00 FC 0F A5 [13:41:23]state=2 [13:41:23]Stop feed [13:41:23]int [13:41:23]Write to MH i2c: 01 00 00 6F 25 94 [13:41:23]*** FLAG_PRN_KEY set [13:41:23]Write i2c OK [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: 01 [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: 01 07 00 [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: 01 07 00 6F 25 00 08 00 00 00 FF 0F B1 [13:41:23]state=0 [13:41:23]Key pressed [13:41:23]Feed [13:41:23]Write to MH i2c: D8 00 00 70 25 6C [13:41:23]Write i2c OK [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: D8 [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: D8 01 00 [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: D8 01 00 70 25 00 6D [13:41:23]int [13:41:23]Write to MH i2c: 01 00 00 71 25 96 [13:41:23]Write i2c OK [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: 01 [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: 01 07 00 [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: 01 07 00 71 25 00 48 00 00 00 3C 00 21 [13:41:23]state=2 [13:41:23]Key pressed [13:41:23]int [13:41:23]Write to MH i2c: 01 00 00 72 25 97 [13:41:23]*** FLAG_PRN_KEY reset [13:41:23]Write i2c OK [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: 01 [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: 01 07 00 [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: 01 07 00 72 25 00 00 00 00 00 F6 0F A3 [13:41:23]state=2 [13:41:23]Stop feed [13:41:23]int [13:41:23]Write to MH i2c: 01 00 00 73 25 98 [13:41:23]*** FLAG_PRN_PAP1 set [13:41:23]Write i2c OK [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: 01 [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: 01 07 00 [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: 01 07 00 73 25 00 01 00 00 00 FF 0F AE [13:41:23]state=0 [13:41:23]No paper [13:41:23]int [13:41:23]Write to MH i2c: 01 00 00 74 25 99 [13:41:23]*** FLAG_PRN_PAP2 set [13:41:23]Write i2c OK [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: 01 [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: 01 07 00 [13:41:23]MH_I2C_Read... [13:41:23]Read from MH i2c: 01 07 00 74 25 00 03 00 00 00 FF 0F B1 [13:41:23]state=0 [13:41:23]No paper [13:41:23]Cover opened [13:41:26]int [13:41:26]Write to MH i2c: 01 00 00 75 25 9A [13:41:26]*** FLAG_PRN_PAP2 reset [13:41:26]Write i2c OK [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: 01 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: 01 07 00 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: 01 07 00 75 25 00 01 00 00 00 FF 0F B0 [13:41:26]state=3 [13:41:26]No paper [13:41:26]Cover closed [13:41:26]int [13:41:26]Write to MH i2c: 01 00 00 76 25 9B [13:41:26]*** FLAG_PRN_PAP2 set [13:41:26]Write i2c OK [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: 01 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: 01 07 00 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: 01 07 00 76 25 00 03 00 00 00 FF 0F B3 [13:41:26]state=0 [13:41:26]No paper [13:41:26]Cover opened [13:41:26]int [13:41:26]Write to MH i2c: 01 00 00 77 25 9C [13:41:26]*** FLAG_PRN_PAP2 reset [13:41:26]Write i2c OK [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: 01 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: 01 07 00 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: 01 07 00 77 25 00 01 00 00 00 FF 0F B2 [13:41:26]state=3 [13:41:26]No paper [13:41:26]Cover closed [13:41:26]int [13:41:26]Write to MH i2c: 01 00 00 78 25 9D [13:41:26]*** FLAG_PRN_PAP2 set [13:41:26]Write i2c OK [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: 01 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: 01 07 00 [13:41:26]MH_I2C_Read... [13:41:26]Read from MH i2c: 01 07 00 78 25 00 03 00 00 00 FF 0F B5 [13:41:26]state=0 [13:41:26]No paper [13:41:26]Cover opened [13:41:26]OFD Sender: No OFD packet to send [13:41:31]Write to MH i2c: 01 00 00 79 25 9E [13:41:31]Write i2c OK [13:41:31]MH_I2C_Read... [13:41:31]Read from MH i2c: 01 [13:41:31]MH_I2C_Read... [13:41:31]Read from MH i2c: 01 07 00 [13:41:31]MH_I2C_Read... [13:41:31]Read from MH i2c: 01 07 00 79 25 00 03 00 00 00 FF 0F B6 [13:41:31]state=3 [13:41:31]No paper [13:41:31]Cover opened [13:41:31]OFD Sender: No OFD packet to send [13:41:36]Write to MH i2c: 01 00 00 7A 25 9F [13:41:36]Write i2c OK [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: 01 [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: 01 07 00 [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: 01 07 00 7A 25 00 03 00 00 00 FF 0F B7 [13:41:36]state=3 [13:41:36]No paper [13:41:36]Cover opened [13:41:36]OFD Sender: No OFD packet to send [13:41:39]int [13:41:39]Write to MH i2c: 01 00 00 7B 25 A0 [13:41:39]Write i2c OK [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: 01 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: 01 07 00 [13:41:39]MH_I2C_Read... [13:41:39]*** FLAG_PRN_PAP2 reset [13:41:39]*** FLAG_PRN_PAP1 reset [13:41:39]Read from MH i2c: 01 07 00 7B 25 00 00 00 00 00 FF 0F B5 [13:41:39]state=3 [13:41:39]Cover closed [13:41:39]int [13:41:39]Write to MH i2c: 01 00 00 7C 25 A1 [13:41:39]*** FLAG_PRN_PAP1 set [13:41:39]Write i2c OK [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: 01 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: 01 07 00 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: 01 07 00 7C 25 00 01 00 00 00 FF 0F B7 [13:41:39]state=0 [13:41:39]No paper [13:41:39]int [13:41:39]Write to MH i2c: 01 00 00 7D 25 A2 [13:41:39]*** FLAG_PRN_PAP1 reset [13:41:39]Write i2c OK [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: 01 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: 01 07 00 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: 01 07 00 7D 25 00 00 00 00 00 FF 0F B7 [13:41:39]state=0 [13:41:40]int [13:41:40]Write to MH i2c: 01 00 00 7E 25 A3 [13:41:40]*** FLAG_PRN_KEY set [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: 01 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: 01 07 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: 01 07 00 7E 25 00 08 00 00 00 FF 0F C0 [13:41:40]state=0 [13:41:40]Key pressed [13:41:40]Feed [13:41:40]Write to MH i2c: D8 00 00 7F 25 7B [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: D8 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: D8 01 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: D8 01 00 7F 25 00 7C [13:41:40]int [13:41:40]Write to MH i2c: 01 00 00 80 25 A5 [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: 01 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: 01 07 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: 01 07 00 80 25 00 48 00 00 00 3D 00 31 [13:41:40]state=2 [13:41:40]Key pressed [13:41:40]int [13:41:40]Write to MH i2c: 01 00 00 81 25 A6 [13:41:40]*** FLAG_PRN_KEY reset [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: 01 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: 01 07 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: 01 07 00 81 25 00 00 00 00 00 FB 0F B7 [13:41:40]state=2 [13:41:40]Stop feed [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:12]OFD Sender: No OFD packet to send [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:37]OFD Sender: No OFD packet to send [13:43:42]OFD Sender: No OFD packet to send [13:43:47]OFD Sender: No OFD packet to send [13:43:52]OFD Sender: No OFD packet to send [13:43:57]OFD Sender: No OFD packet to send [13:44:02]OFD Sender: No OFD packet to send [13:44:07]OFD Sender: No OFD packet to send [13:44:12]OFD Sender: No OFD packet to send [13:44:17]OFD Sender: No OFD packet to send [13:44:22]OFD Sender: No OFD packet to send [13:44:27]OFD Sender: No OFD packet to send [13:44:32]OFD Sender: No OFD packet to send [13:44:37]OFD Sender: No OFD packet to send [13:44:42]OFD Sender: No OFD packet to send [13:44:47]OFD Sender: No OFD packet to send [13:44:52]OFD Sender: No OFD packet to send [13:44:57]OFD Sender: No OFD packet to send [13:45:02]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]OFD Sender: No OFD packet to send [13:45:17]OFD Sender: No OFD packet to send [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:50]accept exits with 9 [13:52:50]New connection [13:52:50]New thread 3066879332 created [13:52:50]Thread 3067022692 joined [13:52:50]Waiting for new connection... [13:52:50] Sock 9.Parse request [13:52:50]Sock 9.Check first char [13:52:50]Sock 9.First char is OK [13:52:50]request: POST /json_proto HTTP/1.0 [13:52:50]Method: POST [13:52:50]URL: /json_proto [13:52:50]Method is POST - this is cgi request [13:52:50]url: /json_proto [13:52:50]query_string will be loaded in cgi processing [13:52:50]execute_cgi json_proto POST (null) [13:52:50]execute_cgi path=json_proto method=POST [13:52:50]POST find Content-Length [13:52:50]Host: 172.17.46.131:8080 [13:52:50]Content-Length: 799 [13:52:50]Content-Type: application/json [13:52:50] [13:52:50]POST finish read [13:52:50]Found Content-Length = 799 [13:52:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412211", "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" ] } } [13:52:50]execute_script... [13:52: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)412211", "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" ] } } [13:52:50]POST & json_proto [13:52:50]process_json_proto [13:52:50]json parsed OK: [13:52:50]protocol is kg_v1.0 [13:52:50]action value=close_receipt [13:52:50]process_action close_receipt [13:52:50]cmd_close_receipt [13:52:50]MH_GetDate [13:52:50]Write to MH i2c: F0 00 00 82 25 96 [13:52:50]Write i2c OK [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: F0 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: F0 09 00 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: F0 09 00 82 25 00 36 E2 B5 67 7E 41 4F 65 46 [13:52:50]GetLastDocTimeStamp 1739972407 [13:52:50]current date 1739973174 [13:52:50]FM_GetShiftState [13:52:50]SAM_PROTO_GetShiftState [13:52:50]wFMCommunicate request_size=4 [13:52:50]MH_SAM_APDU [13:52:50]CAPDU: 80 13 01 00 [13:52:50]Write to MH i2c: E2 08 00 83 25 80 13 01 00 00 00 00 00 25 [13:52:50]Write i2c OK [13:52:50]MH_I2C_Read... [13:52:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:51]Read from MH i2c: E2 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 0E 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 0E 00 83 25 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A4 [13:52:51]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:52:51]wFMCommunicate OK [13:52:51]SAM_PROTO_GetShiftState done [13:52:51]FM_GetShiftState done [13:52:51]opened in 1739929631 [13:52:51]opened+sec_in_day 1740016031 [13:52:51]quantity*price = 150064 [13:52:51]sum+1 = 150065 [13:52:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.64 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 0.00 Безнал.: 1500.64 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 126 19.02.2025 13:52 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187060 ФПД: 54674193640512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T135254&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187060&fm=54674193640512&tin=02508201610067®Number=0000000000091857&sum=150064 [13:52:52]StoreToDocumentArchive [13:52:52]shift 647 fd 187060 [13:52:52]save to /storage/0647/doc_00187060 [13:52:52]save last doc name /storage/0647/doc_00187060 to /storage/kkm_last_doc_name [13:52:52]save OK [13:52:52]Clear old archive folders... [13:52:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:52:52]tlvbuf is 006094F0 [13:52:52]SAM_PROTO_ClearQueue [13:52:52]wFMCommunicate request_size=4 [13:52:52]MH_SAM_APDU [13:52:52]CAPDU: 80 09 00 00 [13:52:52]Write to MH i2c: E2 08 00 90 25 80 09 00 00 00 00 00 00 27 [13:52:52]Write i2c OK [13:52:52]MH_I2C_Read... [13:52:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:52]Read from MH i2c: E2 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 03 00 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 03 00 90 25 00 90 00 29 [13:52:52]RAPDU: 90 00 [13:52:52]wFMCommunicate OK [13:52:52]SAM_PROTO_ClearQueue done [13:52:52]KKMCreateOFDPacket [13:52:52]OFDProtocolAddRootSTLVToBuf [13:52:52]FM_MakeSignedData [13:52:52]FM_MakeSignedData [13:52:52]SAM_PROTO_SignData [13:52:52]wFMCommunicate request_size=4 [13:52:52]MH_SAM_APDU [13:52:52]CAPDU: 80 0D 01 02 [13:52:52]Write to MH i2c: E2 08 00 91 25 80 0D 01 02 00 00 00 00 2F [13:52:52]Write i2c OK [13:52:52]MH_I2C_Read... [13:52:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:52]Read from MH i2c: E2 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 03 00 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 03 00 91 25 00 90 00 2A [13:52:52]RAPDU: 90 00 [13:52:52]wFMCommunicate OK [13:52:52]wFMCommunicate request_size=255 [13:52:52]MH_SAM_APDU [13:52:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 7E 00 00 00 F4 03 04 00 36 E2 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 B4 DA 02 00 35 04 06 00 31 B9 D3 E3 [13:52:52]Write to MH i2c: E2 02 01 92 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 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 7E 00 00 00 F4 03 04 00 36 E2 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 B4 DA 02 00 35 04 06 00 31 B9 D3 E3 00 00 A9 [13:52:52]Write i2c OK [13:52:52]MH_I2C_Read... [13:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:52]Read from MH i2c: E2 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 03 00 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 03 00 92 25 00 90 00 2B [13:52:52]RAPDU: 90 00 [13:52:52]wFMCommunicate OK [13:52:52]wFMCommunicate request_size=7 [13:52:52]MH_SAM_APDU [13:52:52]CAPDU: 80 0D 02 02 02 EC 40 [13:52:52]Write to MH i2c: E2 0A 00 93 25 80 0D 02 02 02 00 EC 40 00 00 62 [13:52:52]Write i2c OK [13:52:52]MH_I2C_Read... [13:52:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:52]Read from MH i2c: E2 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 03 00 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 03 00 93 25 00 90 00 2C [13:52:52]RAPDU: 90 00 [13:52:52]wFMCommunicate OK [13:52:52]wFMCommunicate request_size=4 [13:52:52]MH_SAM_APDU [13:52:52]CAPDU: 80 0D 03 02 [13:52:52]Write to MH i2c: E2 08 00 94 25 80 0D 03 02 00 00 00 00 34 [13:52:52]Write i2c OK [13:52:52]MH_I2C_Read... [13:52:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:52]OFD Sender: No OFD packet to send [13:52:52]Read from MH i2c: E2 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 0B 00 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 0B 00 94 25 00 F2 90 9F 11 41 AA F7 2D 90 00 76 [13:52:52]RAPDU: F2 90 9F 11 41 AA F7 2D 90 00 [13:52:52]wFMCommunicate OK [13:52:52]SAM_PROTO_SignData done [13:52:52]FM_MakeSignedData done [13:52:52]CreateOFDProtocolMessage [13:52:52]wFMCommunicate request_size=4 [13:52:52]MH_SAM_APDU [13:52:52]CAPDU: 80 11 00 00 [13:52:52]Write to MH i2c: E2 08 00 95 25 80 11 00 00 00 00 00 00 34 [13:52:52]Write i2c OK [13:52:52]MH_I2C_Read... [13:52:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:52]Read from MH i2c: E2 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 17 00 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 17 00 95 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 87 [13:52: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:52:52]wFMCommunicate OK [13:52:52]CreateOFDProtocolMessage done [13:52:52]OFDSenderStorePacket 187060 [13:52:52]StoreOFDPacket docnum=187060 [13:52: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 0C 01 00 00 AE E2 04 01 4D 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 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 7E 00 00 00 F4 03 04 00 36 E2 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 B4 DA 02 00 35 04 06 00 31 B9 D3 E3 EC 40 F2 90 9F 11 41 AA F7 2D [13:52:52]CheckFolder [13:52:52]dirname=/storage/ofd_packets [13:52:52]CheckFolder done [13:52:52]ProducePacketName [13:52:52]name=ofd_packets/00187060 [13:52:52]NVStorageSaveData ofd_packets/00187060 [13:52:52]File name is /storage/ofd_packets/00187060 [13:52:52]Write 298 bytes [13:52:52]NVStorageSaveData done [13:52:52]OFDSenderStorePacket done [13:52:52]KKMCreateOFDPacket done [13:52:52]NVStorageSaveData kkm_last_timestamp [13:52:52]File name is /storage/kkm_last_timestamp [13:52:52]Write 4 bytes [13:52:52]NVStorageSaveData done [13:52:52]ExternCall_PrintAddStr [13:52:52]wPrintStart [13:52:52]Write to MH i2c: 01 00 00 96 25 BB [13:52:52]Write i2c OK [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: 01 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: 01 07 00 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: 01 07 00 96 25 00 00 00 00 00 FF 0F D0 [13:52:52]RasterBufferAndPrint [13:52:52]line Счет N : (1)412211 [13:52:52]line ИНН: 02508201610067 [13:52:52]line Контрольно-Кассовый Чек [13:52:52]line ПРОДАЖА [13:52:52]line ТРК (МРК, ГНК) : 5 [13:52:52]line Товар: 2710194210 [13:52:52]line ДТ-К-5 [13:52:52]line 20.670 * 72.60 [13:52:52]line = 1500.64 [13:52:52]line НДС 12% НСП 1% [13:52:52]line > о реализуемом товаре [13:52:52]line ИТОГО: 1500.64 [13:52:52]line НСП 1% : 13.28 [13:52:52]line НДС 12% : 159.36 [13:52:52]line Наличными: 0.00 [13:52:52]line Безнал.: 1500.64 [13:52:52]line Место: АЗС № 92 "Партнер Нефть" [13:52:52]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:52:52]line СНО: Общий режим [13:52:52]line Чек 126 19.02.2025 13:52 [13:52:52]line Смена: 647 ФФД: 1.0 [13:52:52]line ЗНМ: 0300000118 [13:52:52]line РНМ: 0000000000091857 [13:52:52]line Версия ККМ: 001 [13:52:52]line Платежная система: O! деньги [13:52:52]line ФМ: 0000000000871826 [13:52:52]line ФД: 187060 [13:52:52]line ФПД: 54674193640512 [13:52:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T135254&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187060&fm=54674193640512&tin=02508201610067®Number=0000000000091857&sum=150064 [13:52:52]OFD Sender: Processing packet 187060 [packets to send 49, broken 48] [13:52:52]ProducePacketName [13:52:52]name=ofd_packets/00187060 [13:52:52]OFD Sender: To server: pG, [13:52:52]CommunicateWithHost lk.salyk.kg:30040 [13:52:52]ConnectInit lk.salyk.kg [13:52:52]written 0, free lines is 4095 [13:52:53]Connected sock=10 [13:52: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 0C 01 00 00 AE E2 04 01 4D 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 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 7E 00 00 00 F4 03 04 00 36 E2 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 B4 DA 02 00 35 04 06 00 31 B9 D3 E3 EC 40 F2 90 9F 11 41 AA F7 2D [13:52: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 4C 2E 47 00 C4 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 B4 DA 02 00 F4 03 04 00 8A 88 B5 67 B6 04 01 00 00 B5 87 13 A2 16 AA 58 B5 [13:52:53]CommunicateWithHost err = 0 [13:52:53]CheckOFDResponse [13:52:53]1017 (14) - 77093643461234 [13:52:53]1041 (16) - 0000000000871826 [13:52:53]1040 (4) - 187060 [13:52:53]1012 (4) - 19.02.2025 07:30 [13:52:53]1206 (1) - 0 [13:52:53]OFD Sender: Remove packet 187060 [13:52:53]ProducePacketName [13:52:53]name=ofd_packets/00187060 [13:52:53]NVStorageDeleteData [13:52:53]Write to MH i2c: 01 00 00 C0 25 E5 [13:52:53]Write i2c OK [13:52:53]MH_I2C_Read... [13:52:53]Read from MH i2c: 01 [13:52:53]MH_I2C_Read... [13:52:53]Read from MH i2c: 01 07 00 [13:52:53]MH_I2C_Read... [13:52:53]Read from MH i2c: 01 07 00 C0 25 00 00 00 00 00 0F 0D 08 [13:52:53]RasterBufferAndPrint [13:52:53]line [13:52:53]line [13:52:53]line [13:52:53]line [13:52:53]line [13:52:53]written 0, free lines is 3350 [13:52:53]MH_Cut [13:52:53]Write to MH i2c: D1 01 00 C7 25 01 BE [13:52:53]Write i2c OK [13:52:53]MH_I2C_Read... [13:52:53]Read from MH i2c: D1 [13:52:53]MH_I2C_Read... [13:52:53]Read from MH i2c: D1 01 00 [13:52:53]MH_I2C_Read... [13:52:53]Read from MH i2c: D1 01 00 C7 25 00 BD [13:52:53]Write to MH i2c: 01 00 00 C8 25 ED [13:52:53]Write i2c OK [13:52:53]MH_I2C_Read... [13:52:53]OFD Sender: No OFD packet to send [13:52:54]*** Cut start [13:52:54]*** Partial cut [13:52:54]*** CUTSNS_PIN = 1 [13:52:54]*** CUTSNS_PIN = 0 [13:52:54]*** Brake cut motor [13:52:54]Read from MH i2c: 01 [13:52:54]MH_I2C_Read... [13:52:54]*** Stop cut motor [13:52:54]*** Cut end [13:52:54]Read from MH i2c: 01 07 00 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: 01 07 00 C8 25 00 00 00 00 00 FF 0F 02 [13:52:54]process_action close_receipt done [13:52:54]requested_data is exist [13:52:54]produce_requested_data [13:52:54]requested_item fm.sn is exist - process it [13:52:54]wFMCommunicate request_size=4 [13:52:54]MH_SAM_APDU [13:52:54]CAPDU: 80 11 00 00 [13:52:54]Write to MH i2c: E2 08 00 C9 25 80 11 00 00 00 00 00 00 68 [13:52:54]Write i2c OK [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 [13:52:54]MH_I2C_Read... [13:52:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:54]Read from MH i2c: E2 17 00 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 17 00 C9 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BB [13:52:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:52:54]wFMCommunicate OK [13:52:54]requested_item fd.num is exist - process it [13:52:54]SAM_PROTO_GetFieldsCounters [13:52:54]wFMCommunicate request_size=4 [13:52:54]MH_SAM_APDU [13:52:54]CAPDU: 80 13 00 00 [13:52:54]Write to MH i2c: E2 08 00 CA 25 80 13 00 00 00 00 00 00 6B [13:52:54]Write i2c OK [13:52:54]MH_I2C_Read... [13:52:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:54]Read from MH i2c: E2 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 62 00 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 62 00 CA 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 B4 DA 02 00 0E 04 04 00 87 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 24 [13:52: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 B4 DA 02 00 0E 04 04 00 87 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 [13:52:54]wFMCommunicate OK [13:52:54]SAM_PROTO_GetFieldsCounters done [13:52:54]requested_item shift.num is exist - process it [13:52:54]requested_item shift.opened is exist - process it [13:52:54]req_shift_opened [13:52:54]FM_GetShiftState [13:52:54]SAM_PROTO_GetShiftState [13:52:54]wFMCommunicate request_size=4 [13:52:54]MH_SAM_APDU [13:52:54]CAPDU: 80 13 01 00 [13:52:54]Write to MH i2c: E2 08 00 CB 25 80 13 01 00 00 00 00 00 6D [13:52:54]Write i2c OK [13:52:54]MH_I2C_Read... [13:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:55]Read from MH i2c: E2 [13:52:55]MH_I2C_Read... [13:52:55]Read from MH i2c: E2 0E 00 [13:52:55]MH_I2C_Read... [13:52:55]Read from MH i2c: E2 0E 00 CB 25 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 EC [13:52:55]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [13:52:55]wFMCommunicate OK [13:52:55]SAM_PROTO_GetShiftState done [13:52:55]FM_GetShiftState done [13:52:55]req_shift_opened done [13:52:55]requested_item shift.open_date is exist - process it [13:52:55]req_shift_open_date [13:52:55]req_shift_open_date done [13:52:55]produce_requested_data done [13:52:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187060,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [13:52:55]process_action_free close_receipt [13:52:55]json_value_free [13:52:55]json_value_free done [13:52:55]process_json_proto returns [13:52:55]Send response to host [13:52:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187060,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [13:52:55]free response buf [13:52:55]execute_script done [13:52:55]execute_script returns [13:52:55]free content buf [13:52:55]Sock 9.Close socket [13:52:55]Sock 9.Thread stoped [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]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:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:24]OFD Sender: No OFD packet to send [13:58:29]OFD Sender: No OFD packet to send [13:58:34]OFD Sender: No OFD packet to send [13:58:39]OFD Sender: No OFD packet to send [13:58:44]OFD Sender: No OFD packet to send [13:58:49]OFD Sender: No OFD packet to send [13:58:54]OFD Sender: No OFD packet to send [13:58:59]OFD Sender: No OFD packet to send [13:59:04]OFD Sender: No OFD packet to send [13:59:09]OFD Sender: No OFD packet to send [13:59:14]OFD Sender: No OFD packet to send [13:59:19]OFD Sender: No OFD packet to send [13:59:24]OFD Sender: No OFD packet to send [13:59:29]OFD Sender: No OFD packet to send [13:59:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:44]OFD Sender: No OFD packet to send [13:59:49]OFD Sender: No OFD packet to send [13:59:54]OFD Sender: No OFD packet to send [13:59:59]OFD Sender: No OFD packet to send [14:00:04]OFD Sender: No OFD packet to send [14:00:09]OFD Sender: No OFD packet to send [14:00:14]OFD Sender: No OFD packet to send [14:00:19]OFD Sender: No OFD packet to send [14:00:24]OFD Sender: No OFD packet to send [14:00:29]OFD Sender: No OFD packet to send [14:00:34]OFD Sender: No OFD packet to send [14:00:39]OFD Sender: No OFD packet to send [14:00:44]OFD Sender: No OFD packet to send [14:00:49]OFD Sender: No OFD packet to send [14:00:54]OFD Sender: No OFD packet to send [14:00:59]OFD Sender: No OFD packet to send [14:01:04]OFD Sender: No OFD packet to send [14:01:09]OFD Sender: No OFD packet to send [14:01:14]OFD Sender: No OFD packet to send [14:01:19]OFD Sender: No OFD packet to send [14:01:24]OFD Sender: No OFD packet to send [14:01:29]OFD Sender: No OFD packet to send [14:01:34]OFD Sender: No OFD packet to send [14:01:39]OFD Sender: No OFD packet to send [14:01:44]OFD Sender: No OFD packet to send [14:01:49]OFD Sender: No OFD packet to send [14:01:54]OFD Sender: No OFD packet to send [14:01:59]OFD Sender: No OFD packet to send [14:02:04]OFD Sender: No OFD packet to send [14:02:09]OFD Sender: No OFD packet to send [14:02:14]OFD Sender: No OFD packet to send [14:02:19]OFD Sender: No OFD packet to send [14:02:24]OFD Sender: No OFD packet to send [14:02:29]OFD Sender: No OFD packet to send [14:02:34]OFD Sender: No OFD packet to send [14:02:39]OFD Sender: No OFD packet to send [14:02:44]OFD Sender: No OFD packet to send [14:02:49]OFD Sender: No OFD packet to send [14:02:54]OFD Sender: No OFD packet to send [14:02:59]OFD Sender: No OFD packet to send [14:03:04]OFD Sender: No OFD packet to send [14:03:09]OFD Sender: No OFD packet to send [14:03:14]OFD Sender: No OFD packet to send [14:03:19]OFD Sender: No OFD packet to send [14:03:24]OFD Sender: No OFD packet to send [14:03:29]OFD Sender: No OFD packet to send [14:03:34]OFD Sender: No OFD packet to send [14:03:39]OFD Sender: No OFD packet to send [14:03:44]OFD Sender: No OFD packet to send [14:03:49]OFD Sender: No OFD packet to send [14:03:54]OFD Sender: No OFD packet to send [14:03:59]OFD Sender: No OFD packet to send [14:04:04]OFD Sender: No OFD packet to send [14:04:09]OFD Sender: No OFD packet to send [14:04:14]OFD Sender: No OFD packet to send [14:04:19]OFD Sender: No OFD packet to send [14:04:24]OFD Sender: No OFD packet to send [14:04:29]OFD Sender: No OFD packet to send [14:04:34]OFD Sender: No OFD packet to send [14:04:39]OFD Sender: No OFD packet to send [14:04:44]OFD Sender: No OFD packet to send [14:04:49]OFD Sender: No OFD packet to send [14:04:54]OFD Sender: No OFD packet to send [14:04:59]OFD Sender: No OFD packet to send [14:05:01]int [14:05:01]Write to MH i2c: 01 00 00 CC 25 F1 [14:05:01]*** FLAG_PRN_KEY set [14:05:01]Write i2c OK [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: 01 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: 01 07 00 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: 01 07 00 CC 25 00 08 00 00 00 FF 0F 0E [14:05:01]state=0 [14:05:01]Key pressed [14:05:01]Feed [14:05:01]Write to MH i2c: D8 00 00 CD 25 C9 [14:05:01]Write i2c OK [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: D8 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: D8 01 00 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: D8 01 00 CD 25 00 CA [14:05:01]int [14:05:01]Write to MH i2c: 01 00 00 CE 25 F3 [14:05:01]Write i2c OK [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: 01 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: 01 07 00 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: 01 07 00 CE 25 00 48 00 00 00 3C 00 7E [14:05:01]state=2 [14:05:01]Key pressed [14:05:01]int [14:05:01]Write to MH i2c: 01 00 00 CF 25 F4 [14:05:01]*** FLAG_PRN_KEY reset [14:05:01]Write i2c OK [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: 01 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: 01 07 00 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: 01 07 00 CF 25 00 00 00 00 00 FF 0F 09 [14:05:01]state=2 [14:05:01]Stop feed [14:05:01]int [14:05:01]Write to MH i2c: 01 00 00 D0 25 F5 [14:05:01]*** FLAG_PRN_KEY set [14:05:01]Write i2c OK [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: 01 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: 01 07 00 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: 01 07 00 D0 25 00 08 00 00 00 FF 0F 12 [14:05:01]state=0 [14:05:01]Key pressed [14:05:01]Feed [14:05:01]Write to MH i2c: D8 00 00 D1 25 CD [14:05:01]Write i2c OK [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: D8 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: D8 01 00 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: D8 01 00 D1 25 00 CE [14:05:01]int [14:05:01]Write to MH i2c: 01 00 00 D2 25 F7 [14:05:01]Write i2c OK [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: 01 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: 01 07 00 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: 01 07 00 D2 25 00 48 00 00 00 3C 00 82 [14:05:01]state=2 [14:05:01]Key pressed [14:05:02]int [14:05:02]Write to MH i2c: 01 00 00 D3 25 F8 [14:05:02]*** FLAG_PRN_KEY reset [14:05:02]Write i2c OK [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: 01 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: 01 07 00 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: 01 07 00 D3 25 00 00 00 00 00 F6 0F 04 [14:05:02]state=2 [14:05:02]Stop feed [14:05:04]OFD Sender: No OFD packet to send [14:05:09]OFD Sender: No OFD packet to send [14:05:14]OFD Sender: No OFD packet to send [14:05:19]OFD Sender: No OFD packet to send [14:05:24]OFD Sender: No OFD packet to send [14:05:24]accept exits with 7 [14:05:24]New connection [14:05:24]New thread 3067022692 created [14:05:24]Thread 3066879332 joined [14:05:24]Waiting for new connection... [14:05:24] Sock 7.Parse request [14:05:24]Sock 7.Check first char [14:05:24]Sock 7.First char is OK [14:05:24]request: POST /json_proto HTTP/1.0 [14:05:24]Method: POST [14:05:24]URL: /json_proto [14:05:24]Method is POST - this is cgi request [14:05:24]url: /json_proto [14:05:24]query_string will be loaded in cgi processing [14:05:24]execute_cgi json_proto POST (null) [14:05:24]execute_cgi path=json_proto method=POST [14:05:24]POST find Content-Length [14:05:24]Host: 172.17.46.131:8080 [14:05:24]Content-Length: 678 [14:05:24]Content-Type: application/json [14:05:24] [14:05:24]POST finish read [14:05:24]Found Content-Length = 678 [14:05:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412212", "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" ] } } [14:05:24]execute_script... [14:05: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)412212", "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" ] } } [14:05:24]POST & json_proto [14:05:24]process_json_proto [14:05:24]json parsed OK: [14:05:24]protocol is kg_v1.0 [14:05:24]action value=close_receipt [14:05:24]process_action close_receipt [14:05:24]cmd_close_receipt [14:05:24]MH_GetDate [14:05:24]Write to MH i2c: F0 00 00 D4 25 E8 [14:05:24]Write i2c OK [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: F0 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: F0 09 00 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: F0 09 00 D4 25 00 28 E5 B5 67 7E 41 4F 65 8D [14:05:24]GetLastDocTimeStamp 1739973174 [14:05:24]current date 1739973928 [14:05:24]FM_GetShiftState [14:05:24]SAM_PROTO_GetShiftState [14:05:24]wFMCommunicate request_size=4 [14:05:24]MH_SAM_APDU [14:05:24]CAPDU: 80 13 01 00 [14:05:24]Write to MH i2c: E2 08 00 D5 25 80 13 01 00 00 00 00 00 77 [14:05:24]Write i2c OK [14:05:24]MH_I2C_Read... [14:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:24]Read from MH i2c: E2 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: E2 0E 00 [14:05:24]MH_I2C_Read... [14:05:24]Read from MH i2c: E2 0E 00 D5 25 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F6 [14:05:24]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:05:24]wFMCommunicate OK [14:05:24]SAM_PROTO_GetShiftState done [14:05:24]FM_GetShiftState done [14:05:24]opened in 1739929631 [14:05:24]opened+sec_in_day 1740016031 [14:05:24]quantity*price = 100042 [14:05:24]sum+1 = 100044 [14:05:24]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 СНО: Общий режим Чек 127 19.02.2025 14:05 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187061 ФПД: 66991390746422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T140528&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187061&fm=66991390746422&tin=02508201610067®Number=0000000000091857&sum=100000 [14:05:25]StoreToDocumentArchive [14:05:25]shift 647 fd 187061 [14:05:25]save to /storage/0647/doc_00187061 [14:05:25]save last doc name /storage/0647/doc_00187061 to /storage/kkm_last_doc_name [14:05:25]save OK [14:05:25]Clear old archive folders... [14:05:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:05:25]tlvbuf is 00641B70 [14:05:25]SAM_PROTO_ClearQueue [14:05:25]wFMCommunicate request_size=4 [14:05:25]MH_SAM_APDU [14:05:25]CAPDU: 80 09 00 00 [14:05:25]Write to MH i2c: E2 08 00 E2 25 80 09 00 00 00 00 00 00 79 [14:05:25]Write i2c OK [14:05:25]MH_I2C_Read... [14:05:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:25]Read from MH i2c: E2 [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: E2 03 00 [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: E2 03 00 E2 25 00 90 00 7B [14:05:25]RAPDU: 90 00 [14:05:25]wFMCommunicate OK [14:05:25]SAM_PROTO_ClearQueue done [14:05:25]KKMCreateOFDPacket [14:05:25]OFDProtocolAddRootSTLVToBuf [14:05:25]FM_MakeSignedData [14:05:25]FM_MakeSignedData [14:05:25]SAM_PROTO_SignData [14:05:25]wFMCommunicate request_size=4 [14:05:25]MH_SAM_APDU [14:05:25]CAPDU: 80 0D 01 02 [14:05:25]Write to MH i2c: E2 08 00 E3 25 80 0D 01 02 00 00 00 00 81 [14:05:25]Write i2c OK [14:05:25]MH_I2C_Read... [14:05:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:25]Read from MH i2c: E2 [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: E2 03 00 [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: E2 03 00 E3 25 00 90 00 7C [14:05:25]RAPDU: 90 00 [14:05:25]wFMCommunicate OK [14:05:25]wFMCommunicate request_size=255 [14:05:25]MH_SAM_APDU [14:05: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 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 7F 00 00 00 F4 03 04 00 28 E5 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 B5 DA 02 00 35 04 06 00 3C ED A6 0C [14:05:25]Write to MH i2c: E2 02 01 E4 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 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 7F 00 00 00 F4 03 04 00 28 E5 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 B5 DA 02 00 35 04 06 00 3C ED A6 0C 00 00 C2 [14:05:25]Write i2c OK [14:05:25]MH_I2C_Read... [14:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:26]Read from MH i2c: E2 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 03 00 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 03 00 E4 25 00 90 00 7D [14:05:26]RAPDU: 90 00 [14:05:26]wFMCommunicate OK [14:05:26]wFMCommunicate request_size=7 [14:05:26]MH_SAM_APDU [14:05:26]CAPDU: 80 0D 02 02 02 67 36 [14:05:26]Write to MH i2c: E2 0A 00 E5 25 80 0D 02 02 02 00 67 36 00 00 25 [14:05:26]Write i2c OK [14:05:26]MH_I2C_Read... [14:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:26]Read from MH i2c: E2 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 03 00 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 03 00 E5 25 00 90 00 7E [14:05:26]RAPDU: 90 00 [14:05:26]wFMCommunicate OK [14:05:26]wFMCommunicate request_size=4 [14:05:26]MH_SAM_APDU [14:05:26]CAPDU: 80 0D 03 02 [14:05:26]Write to MH i2c: E2 08 00 E6 25 80 0D 03 02 00 00 00 00 86 [14:05:26]Write i2c OK [14:05:26]MH_I2C_Read... [14:05:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:26]Read from MH i2c: E2 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 0B 00 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 0B 00 E6 25 00 03 7B E0 73 AB 8B 42 3F 90 00 0F [14:05:26]RAPDU: 03 7B E0 73 AB 8B 42 3F 90 00 [14:05:26]wFMCommunicate OK [14:05:26]SAM_PROTO_SignData done [14:05:26]FM_MakeSignedData done [14:05:26]CreateOFDProtocolMessage [14:05:26]wFMCommunicate request_size=4 [14:05:26]MH_SAM_APDU [14:05:26]CAPDU: 80 11 00 00 [14:05:26]Write to MH i2c: E2 08 00 E7 25 80 11 00 00 00 00 00 00 86 [14:05:26]Write i2c OK [14:05:26]MH_I2C_Read... [14:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:26]Read from MH i2c: E2 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 17 00 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: E2 17 00 E7 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D9 [14:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:05:26]wFMCommunicate OK [14:05:26]CreateOFDProtocolMessage done [14:05:26]OFDSenderStorePacket 187061 [14:05:26]StoreOFDPacket docnum=187061 [14:05: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 0C 01 00 00 74 9E 04 01 90 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 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 7F 00 00 00 F4 03 04 00 28 E5 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 B5 DA 02 00 35 04 06 00 3C ED A6 0C 67 36 03 7B E0 73 AB 8B 42 3F [14:05:26]CheckFolder [14:05:26]dirname=/storage/ofd_packets [14:05:26]CheckFolder done [14:05:26]ProducePacketName [14:05:26]name=ofd_packets/00187061 [14:05:26]NVStorageSaveData ofd_packets/00187061 [14:05:26]File name is /storage/ofd_packets/00187061 [14:05:26]Write 298 bytes [14:05:26]NVStorageSaveData done [14:05:26]OFDSenderStorePacket done [14:05:26]KKMCreateOFDPacket done [14:05:26]NVStorageSaveData kkm_last_timestamp [14:05:26]File name is /storage/kkm_last_timestamp [14:05:26]Write 4 bytes [14:05:26]NVStorageSaveData done [14:05:26]ExternCall_PrintAddStr [14:05:26]wPrintStart [14:05:26]Write to MH i2c: 01 00 00 E8 25 0D [14:05:26]Write i2c OK [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: 01 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: 01 07 00 [14:05:26]MH_I2C_Read... [14:05:26]Read from MH i2c: 01 07 00 E8 25 00 00 00 00 00 FF 0F 22 [14:05:26]RasterBufferAndPrint [14:05:26]line Счет N : (1)412212 [14:05:26]line ИНН: 02508201610067 [14:05:26]line Контрольно-Кассовый Чек [14:05:26]line ПРОДАЖА [14:05:26]line ТРК (МРК, ГНК) : 5 [14:05:26]line Товар: 2710194210 [14:05:26]line ДТ-К-5 [14:05:26]line 13.780 * 72.60 [14:05:26]line = 1000.43 [14:05:26]line НДС 12% НСП 1% [14:05:26]line > о реализуемом товаре [14:05:26]line ОКРУГЛЕНИЕ: -0.43 [14:05:26]line ИТОГО: 1000.00 [14:05:26]line Внесено: 1000.00 [14:05:26]line СДАЧА: 0.00 [14:05:26]line НСП 1% : 8.85 [14:05:26]line НДС 12% : 106.24 [14:05:26]line Наличными: 1000.00 [14:05:26]line Безнал.: 0.00 [14:05:26]line Место: АЗС № 92 "Партнер Нефть" [14:05:26]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:05:26]line СНО: Общий режим [14:05:26]line Чек 127 19.02.2025 14:05 [14:05:26]line Смена: 647 ФФД: 1.0 [14:05:26]line ЗНМ: 0300000118 [14:05:26]line РНМ: 0000000000091857 [14:05:26]line Версия ККМ: 001 [14:05:26]line ФМ: 0000000000871826 [14:05:26]line ФД: 187061 [14:05:26]line ФПД: 66991390746422 [14:05:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T140528&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187061&fm=66991390746422&tin=02508201610067®Number=0000000000091857&sum=100000 [14:05:26]OFD Sender: Processing packet 187061 [packets to send 49, broken 48] [14:05:26]ProducePacketName [14:05:26]name=ofd_packets/00187061 [14:05:26]OFD Sender: To server: pG, [14:05:26]CommunicateWithHost lk.salyk.kg:30040 [14:05:26]ConnectInit lk.salyk.kg [14:05:26]written 0, free lines is 4095 [14:05:26]Connected sock=10 [14:05: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 74 9E 04 01 90 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 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 7F 00 00 00 F4 03 04 00 28 E5 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 B5 DA 02 00 35 04 06 00 3C ED A6 0C 67 36 03 7B E0 73 AB 8B 42 3F [14:05: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 49 F5 47 00 5A EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B5 DA 02 00 F4 03 04 00 7C 8B B5 67 B6 04 01 00 00 E5 B9 73 23 36 AF 1B ED [14:05:27]CommunicateWithHost err = 0 [14:05:27]CheckOFDResponse [14:05:27]1017 (14) - 77093643461234 [14:05:27]1041 (16) - 0000000000871826 [14:05:27]1040 (4) - 187061 [14:05:27]1012 (4) - 19.02.2025 07:42 [14:05:27]1206 (1) - 0 [14:05:27]OFD Sender: Remove packet 187061 [14:05:27]ProducePacketName [14:05:27]name=ofd_packets/00187061 [14:05:27]NVStorageDeleteData [14:05:27]Write to MH i2c: 01 00 00 13 26 39 [14:05:27]Write i2c OK [14:05:27]MH_I2C_Read... [14:05:27]Read from MH i2c: 01 [14:05:27]MH_I2C_Read... [14:05:27]Read from MH i2c: 01 07 00 [14:05:27]MH_I2C_Read... [14:05:27]Read from MH i2c: 01 07 00 13 26 00 00 00 00 00 F8 0C 44 [14:05:27]RasterBufferAndPrint [14:05:27]line [14:05:27]line [14:05:27]line [14:05:27]line [14:05:27]line [14:05:27]written 0, free lines is 3326 [14:05:27]MH_Cut [14:05:27]Write to MH i2c: D1 01 00 1A 26 01 12 [14:05:27]Write i2c OK [14:05:27]MH_I2C_Read... [14:05:27]Read from MH i2c: D1 [14:05:27]MH_I2C_Read... [14:05:27]Read from MH i2c: D1 01 00 [14:05:27]MH_I2C_Read... [14:05:27]Read from MH i2c: D1 01 00 1A 26 00 11 [14:05:27]Write to MH i2c: 01 00 00 1B 26 41 [14:05:27]Write i2c OK [14:05:27]MH_I2C_Read... [14:05:27]OFD Sender: No OFD packet to send [14:05:27]*** Cut start [14:05:27]*** Partial cut [14:05:27]*** CUTSNS_PIN = 1 [14:05:27]*** CUTSNS_PIN = 0 [14:05:28]*** Brake cut motor [14:05:28]Read from MH i2c: 01 [14:05:28]MH_I2C_Read... [14:05:28]*** Stop cut motor [14:05:28]*** Cut end [14:05:28]Read from MH i2c: 01 07 00 [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: 01 07 00 1B 26 00 00 00 00 00 FF 0F 56 [14:05:28]process_action close_receipt done [14:05:28]requested_data is exist [14:05:28]produce_requested_data [14:05:28]requested_item fm.sn is exist - process it [14:05:28]wFMCommunicate request_size=4 [14:05:28]MH_SAM_APDU [14:05:28]CAPDU: 80 11 00 00 [14:05:28]Write to MH i2c: E2 08 00 1C 26 80 11 00 00 00 00 00 00 BC [14:05:28]Write i2c OK [14:05:28]MH_I2C_Read... [14:05:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:28]Read from MH i2c: E2 [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: E2 17 00 [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: E2 17 00 1C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0F [14:05:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:05:28]wFMCommunicate OK [14:05:28]requested_item fd.num is exist - process it [14:05:28]SAM_PROTO_GetFieldsCounters [14:05:28]wFMCommunicate request_size=4 [14:05:28]MH_SAM_APDU [14:05:28]CAPDU: 80 13 00 00 [14:05:28]Write to MH i2c: E2 08 00 1D 26 80 13 00 00 00 00 00 00 BF [14:05:28]Write i2c OK [14:05:28]MH_I2C_Read... [14:05:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:28]Read from MH i2c: E2 [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: E2 62 00 [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: E2 62 00 1D 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 B5 DA 02 00 0E 04 04 00 87 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 7C [14:05: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 B5 DA 02 00 0E 04 04 00 87 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 [14:05:28]wFMCommunicate OK [14:05:28]SAM_PROTO_GetFieldsCounters done [14:05:28]requested_item shift.num is exist - process it [14:05:28]requested_item shift.opened is exist - process it [14:05:28]req_shift_opened [14:05:28]FM_GetShiftState [14:05:28]SAM_PROTO_GetShiftState [14:05:28]wFMCommunicate request_size=4 [14:05:28]MH_SAM_APDU [14:05:28]CAPDU: 80 13 01 00 [14:05:28]Write to MH i2c: E2 08 00 1E 26 80 13 01 00 00 00 00 00 C1 [14:05:28]Write i2c OK [14:05:28]MH_I2C_Read... [14:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:28]Read from MH i2c: E2 [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: E2 0E 00 [14:05:28]MH_I2C_Read... [14:05:28]Read from MH i2c: E2 0E 00 1E 26 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 40 [14:05:28]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:05:28]wFMCommunicate OK [14:05:28]SAM_PROTO_GetShiftState done [14:05:28]FM_GetShiftState done [14:05:28]req_shift_opened done [14:05:28]requested_item shift.open_date is exist - process it [14:05:28]req_shift_open_date [14:05:28]req_shift_open_date done [14:05:28]produce_requested_data done [14:05:28]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187061,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [14:05:28]process_action_free close_receipt [14:05:28]json_value_free [14:05:28]json_value_free done [14:05:28]process_json_proto returns [14:05:28]Send response to host [14:05:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187061,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [14:05:28]free response buf [14:05:28]execute_script done [14:05:28]execute_script returns [14:05:28]free content buf [14:05:28]Sock 7.Close socket [14:05:28]Sock 7.Thread stoped [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:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:57]OFD Sender: No OFD packet to send [14:13:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:12]OFD Sender: No OFD packet to send [14:13:17]OFD Sender: No OFD packet to send [14:13:22]OFD Sender: No OFD packet to send [14:13:27]OFD Sender: No OFD packet to send [14:13:32]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]OFD Sender: No OFD packet to send [14:17:13]OFD Sender: No OFD packet to send [14:17:18]OFD Sender: No OFD packet to send [14:17:23]OFD Sender: No OFD packet to send [14:17:28]OFD Sender: No OFD packet to send [14:17:33]OFD Sender: No OFD packet to send [14:17:38]OFD Sender: No OFD packet to send [14:17:43]OFD Sender: No OFD packet to send [14:17:48]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:06]accept exits with 9 [14:21:06]New connection [14:21:06]New thread 3066879332 created [14:21:06]Thread 3067022692 joined [14:21:06]Waiting for new connection... [14:21:06] Sock 9.Parse request [14:21:06]Sock 9.Check first char [14:21:06]Sock 9.First char is OK [14:21:06]request: POST /json_proto HTTP/1.0 [14:21:06]Method: POST [14:21:06]URL: /json_proto [14:21:06]Method is POST - this is cgi request [14:21:06]url: /json_proto [14:21:06]query_string will be loaded in cgi processing [14:21:06]execute_cgi json_proto POST (null) [14:21:06]execute_cgi path=json_proto method=POST [14:21:06]POST find Content-Length [14:21:06]Host: 172.17.46.131:8080 [14:21:06]Content-Length: 797 [14:21:06]Content-Type: application/json [14:21:06] [14:21:06]POST finish read [14:21:06]Found Content-Length = 797 [14:21:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412214", "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" : 100.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\u000A4392529", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:06]execute_script... [14:21:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412214", "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" : 100.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\u000A4392529", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:06]POST & json_proto [14:21:06]process_json_proto [14:21:06]json parsed OK: [14:21:06]protocol is kg_v1.0 [14:21:06]action value=close_receipt [14:21:06]process_action close_receipt [14:21:06]cmd_close_receipt [14:21:06]MH_GetDate [14:21:06]Write to MH i2c: F0 00 00 1F 26 34 [14:21:06]Write i2c OK [14:21:06]MH_I2C_Read... [14:21:06]Read from MH i2c: F0 [14:21:06]MH_I2C_Read... [14:21:06]Read from MH i2c: F0 09 00 [14:21:06]MH_I2C_Read... [14:21:06]Read from MH i2c: F0 09 00 1F 26 00 D6 E8 B5 67 7E 41 4F 65 8A [14:21:06]GetLastDocTimeStamp 1739973928 [14:21:06]current date 1739974870 [14:21:06]FM_GetShiftState [14:21:06]SAM_PROTO_GetShiftState [14:21:06]wFMCommunicate request_size=4 [14:21:06]MH_SAM_APDU [14:21:06]CAPDU: 80 13 01 00 [14:21:06]Write to MH i2c: E2 08 00 20 26 80 13 01 00 00 00 00 00 C3 [14:21:06]Write i2c OK [14:21:06]MH_I2C_Read... [14:21:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:06]Read from MH i2c: E2 [14:21:06]MH_I2C_Read... [14:21:06]Read from MH i2c: E2 0E 00 [14:21:06]MH_I2C_Read... [14:21:06]Read from MH i2c: E2 0E 00 20 26 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 42 [14:21:06]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:21:06]wFMCommunicate OK [14:21:06]SAM_PROTO_GetShiftState done [14:21:06]FM_GetShiftState done [14:21:06]opened in 1739929631 [14:21:06]opened+sec_in_day 1740016031 [14:21:06]quantity*price = 0 [14:21:06]sum+1 = 1 [14:21:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 128 19.02.2025 14:21 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4392529 ФМ: 0000000000871826 ФД: 187062 ФПД: 90390343655823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T142110&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187062&fm=90390343655823&tin=02508201610067®Number=0000000000091857&sum=0 [14:21:07]StoreToDocumentArchive [14:21:07]shift 647 fd 187062 [14:21:07]save to /storage/0647/doc_00187062 [14:21:07]save last doc name /storage/0647/doc_00187062 to /storage/kkm_last_doc_name [14:21:07]save OK [14:21:07]Clear old archive folders... [14:21:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:21:07]tlvbuf is 005E2620 [14:21:07]SAM_PROTO_ClearQueue [14:21:07]wFMCommunicate request_size=4 [14:21:07]MH_SAM_APDU [14:21:07]CAPDU: 80 09 00 00 [14:21:07]Write to MH i2c: E2 08 00 2D 26 80 09 00 00 00 00 00 00 C5 [14:21:07]Write i2c OK [14:21:07]MH_I2C_Read... [14:21:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:07]Read from MH i2c: E2 [14:21:07]MH_I2C_Read... [14:21:07]Read from MH i2c: E2 03 00 [14:21:07]MH_I2C_Read... [14:21:07]Read from MH i2c: E2 03 00 2D 26 00 90 00 C7 [14:21:07]RAPDU: 90 00 [14:21:07]wFMCommunicate OK [14:21:07]SAM_PROTO_ClearQueue done [14:21:07]KKMCreateOFDPacket [14:21:07]OFDProtocolAddRootSTLVToBuf [14:21:07]FM_MakeSignedData [14:21:07]FM_MakeSignedData [14:21:07]SAM_PROTO_SignData [14:21:07]wFMCommunicate request_size=4 [14:21:07]MH_SAM_APDU [14:21:07]CAPDU: 80 0D 01 02 [14:21:07]Write to MH i2c: E2 08 00 2E 26 80 0D 01 02 00 00 00 00 CD [14:21:07]Write i2c OK [14:21:07]MH_I2C_Read... [14:21:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:07]Read from MH i2c: E2 [14:21:07]MH_I2C_Read... [14:21:07]Read from MH i2c: E2 03 00 [14:21:07]MH_I2C_Read... [14:21:07]Read from MH i2c: E2 03 00 2E 26 00 90 00 C8 [14:21:07]RAPDU: 90 00 [14:21:07]wFMCommunicate OK [14:21:07]wFMCommunicate request_size=255 [14:21:07]MH_SAM_APDU [14:21: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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 D6 E8 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 B6 DA 02 00 35 04 06 00 52 35 A4 53 [14:21:07]Write to MH i2c: E2 02 01 2F 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 D6 E8 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 B6 DA 02 00 35 04 06 00 52 35 A4 53 00 00 49 [14:21:07]Write i2c OK [14:21:07]MH_I2C_Read... [14:21:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:08]Read from MH i2c: E2 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 03 00 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 03 00 2F 26 00 90 00 C9 [14:21:08]RAPDU: 90 00 [14:21:08]wFMCommunicate OK [14:21:08]wFMCommunicate request_size=7 [14:21:08]MH_SAM_APDU [14:21:08]CAPDU: 80 0D 02 02 02 21 8F [14:21:08]Write to MH i2c: E2 0A 00 30 26 80 0D 02 02 02 00 21 8F 00 00 84 [14:21:08]Write i2c OK [14:21:08]MH_I2C_Read... [14:21:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:08]Read from MH i2c: E2 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 03 00 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 03 00 30 26 00 90 00 CA [14:21:08]RAPDU: 90 00 [14:21:08]wFMCommunicate OK [14:21:08]wFMCommunicate request_size=4 [14:21:08]MH_SAM_APDU [14:21:08]CAPDU: 80 0D 03 02 [14:21:08]Write to MH i2c: E2 08 00 31 26 80 0D 03 02 00 00 00 00 D2 [14:21:08]Write i2c OK [14:21:08]MH_I2C_Read... [14:21:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:08]Read from MH i2c: E2 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 0B 00 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 0B 00 31 26 00 47 C8 CF 03 23 1E FA 88 90 00 77 [14:21:08]RAPDU: 47 C8 CF 03 23 1E FA 88 90 00 [14:21:08]wFMCommunicate OK [14:21:08]SAM_PROTO_SignData done [14:21:08]FM_MakeSignedData done [14:21:08]CreateOFDProtocolMessage [14:21:08]wFMCommunicate request_size=4 [14:21:08]MH_SAM_APDU [14:21:08]CAPDU: 80 11 00 00 [14:21:08]Write to MH i2c: E2 08 00 32 26 80 11 00 00 00 00 00 00 D2 [14:21:08]Write i2c OK [14:21:08]MH_I2C_Read... [14:21:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:08]Read from MH i2c: E2 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 17 00 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 17 00 32 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 25 [14:21:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:21:08]wFMCommunicate OK [14:21:08]CreateOFDProtocolMessage done [14:21:08]OFDSenderStorePacket 187062 [14:21:08]StoreOFDPacket docnum=187062 [14:21: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 3C 6B 04 01 1C 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 D6 E8 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 B6 DA 02 00 35 04 06 00 52 35 A4 53 21 8F 47 C8 CF 03 23 1E FA 88 [14:21:08]CheckFolder [14:21:08]dirname=/storage/ofd_packets [14:21:08]CheckFolder done [14:21:08]ProducePacketName [14:21:08]name=ofd_packets/00187062 [14:21:08]NVStorageSaveData ofd_packets/00187062 [14:21:08]File name is /storage/ofd_packets/00187062 [14:21:08]Write 298 bytes [14:21:08]NVStorageSaveData done [14:21:08]OFDSenderStorePacket done [14:21:08]KKMCreateOFDPacket done [14:21:08]NVStorageSaveData kkm_last_timestamp [14:21:08]File name is /storage/kkm_last_timestamp [14:21:08]Write 4 bytes [14:21:08]NVStorageSaveData done [14:21:08]ExternCall_PrintAddStr [14:21:08]wPrintStart [14:21:08]Write to MH i2c: 01 00 00 33 26 59 [14:21:08]Write i2c OK [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: 01 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: 01 07 00 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: 01 07 00 33 26 00 00 00 00 00 FF 0F 6E [14:21:08]RasterBufferAndPrint [14:21:08]line Счет N : (1)412214 [14:21:08]line ИНН: 02508201610067 [14:21:08]line Контрольно-Кассовый Чек [14:21:08]line ПРОДАЖА [14:21:08]line ТРК (МРК, ГНК) : 6 [14:21:08]line Товар: 2710194210 [14:21:08]line ДТ-К-5 [14:21:08]line 100.000 * 0.00 [14:21:08]line = 0.00 [14:21:08]line НДС 12% НСП 1% [14:21:08]line > о реализуемом товаре [14:21:08]line ИТОГО: 0.00 [14:21:08]line НСП 1% : 0.00 [14:21:08]line НДС 12% : 0.00 [14:21:08]line Наличными: 0.00 [14:21:08]line Безнал.: 0.00 [14:21:08]line Место: АЗС № 92 "Партнер Нефть" [14:21:08]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:21:08]line СНО: Общий режим [14:21:08]line Чек 128 19.02.2025 14:21 [14:21:08]line Смена: 647 ФФД: 1.0 [14:21:08]line ЗНМ: 0300000118 [14:21:08]line РНМ: 0000000000091857 [14:21:08]line Версия ККМ: 001 [14:21:08]line Талоны: Топливные Талоны [14:21:08]line 4392529 [14:21:08]line ФМ: 0000000000871826 [14:21:08]line ФД: 187062 [14:21:08]line ФПД: 90390343655823 [14:21:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T142110&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187062&fm=90390343655823&tin=02508201610067®Number=0000000000091857&sum=0 [14:21:08]OFD Sender: Processing packet 187062 [packets to send 49, broken 48] [14:21:08]ProducePacketName [14:21:08]name=ofd_packets/00187062 [14:21:08]OFD Sender: To server: pG, [14:21:08]CommunicateWithHost lk.salyk.kg:30040 [14:21:08]ConnectInit lk.salyk.kg [14:21:08]written 0, free lines is 4095 [14:21:08]Connected sock=10 [14:21:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 3C 6B 04 01 1C 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 D6 E8 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 B6 DA 02 00 35 04 06 00 52 35 A4 53 21 8F 47 C8 CF 03 23 1E FA 88 [14:21:09]Write to MH i2c: 01 00 00 5D 26 83 [14:21:09]Write i2c OK [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: 01 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: 01 07 00 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: 01 07 00 5D 26 00 00 00 00 00 F6 0C 8C [14:21:09]RasterBufferAndPrint [14:21:09]line [14:21:09]line [14:21:09]line [14:21:09]line [14:21:09]line [14:21:09]written 0, free lines is 3324 [14:21: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 F5 49 47 00 C8 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 B6 DA 02 00 F4 03 04 00 2A 8F B5 67 B6 04 01 00 00 53 7A 82 45 65 72 78 6F [14:21:09]CommunicateWithHost err = 0 [14:21:09]CheckOFDResponse [14:21:09]1017 (14) - 77093643461234 [14:21:09]1041 (16) - 0000000000871826 [14:21:09]1040 (4) - 187062 [14:21:09]1012 (4) - 19.02.2025 07:58 [14:21:09]1206 (1) - 0 [14:21:09]OFD Sender: Remove packet 187062 [14:21:09]ProducePacketName [14:21:09]name=ofd_packets/00187062 [14:21:09]NVStorageDeleteData [14:21:09]MH_Cut [14:21:09]Write to MH i2c: D1 01 00 64 26 01 5C [14:21:09]Write i2c OK [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: D1 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: D1 01 00 [14:21:09]MH_I2C_Read... [14:21:09]Read from MH i2c: D1 01 00 64 26 00 5B [14:21:09]Write to MH i2c: 01 00 00 65 26 8B [14:21:09]Write i2c OK [14:21:09]MH_I2C_Read... [14:21:09]OFD Sender: No OFD packet to send [14:21:09]*** Cut start [14:21:09]*** Partial cut [14:21:09]*** CUTSNS_PIN = 1 [14:21:09]*** CUTSNS_PIN = 0 [14:21:10]*** Brake cut motor [14:21:10]Read from MH i2c: 01 [14:21:10]MH_I2C_Read... [14:21:10]*** Stop cut motor [14:21:10]*** Cut end [14:21:10]Read from MH i2c: 01 07 00 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: 01 07 00 65 26 00 00 00 00 00 FF 0F A0 [14:21:10]process_action close_receipt done [14:21:10]requested_data is exist [14:21:10]produce_requested_data [14:21:10]requested_item fm.sn is exist - process it [14:21:10]wFMCommunicate request_size=4 [14:21:10]MH_SAM_APDU [14:21:10]CAPDU: 80 11 00 00 [14:21:10]Write to MH i2c: E2 08 00 66 26 80 11 00 00 00 00 00 00 06 [14:21:10]Write i2c OK [14:21:10]MH_I2C_Read... [14:21:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:10]Read from MH i2c: E2 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 17 00 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 17 00 66 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 59 [14:21:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:21:10]wFMCommunicate OK [14:21:10]requested_item fd.num is exist - process it [14:21:10]SAM_PROTO_GetFieldsCounters [14:21:10]wFMCommunicate request_size=4 [14:21:10]MH_SAM_APDU [14:21:10]CAPDU: 80 13 00 00 [14:21:10]Write to MH i2c: E2 08 00 67 26 80 13 00 00 00 00 00 00 09 [14:21:10]Write i2c OK [14:21:10]MH_I2C_Read... [14:21:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:10]Read from MH i2c: E2 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 62 00 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 62 00 67 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 B6 DA 02 00 0E 04 04 00 87 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 CA [14:21:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [14:21:10]wFMCommunicate OK [14:21:10]SAM_PROTO_GetFieldsCounters done [14:21:10]requested_item shift.num is exist - process it [14:21:10]requested_item shift.opened is exist - process it [14:21:10]req_shift_opened [14:21:10]FM_GetShiftState [14:21:10]SAM_PROTO_GetShiftState [14:21:10]wFMCommunicate request_size=4 [14:21:10]MH_SAM_APDU [14:21:10]CAPDU: 80 13 01 00 [14:21:10]Write to MH i2c: E2 08 00 68 26 80 13 01 00 00 00 00 00 0B [14:21:10]Write i2c OK [14:21:10]MH_I2C_Read... [14:21:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:10]Read from MH i2c: E2 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 0E 00 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 0E 00 68 26 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 8A [14:21:10]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:21:10]wFMCommunicate OK [14:21:10]SAM_PROTO_GetShiftState done [14:21:10]FM_GetShiftState done [14:21:10]req_shift_opened done [14:21:10]requested_item shift.open_date is exist - process it [14:21:10]req_shift_open_date [14:21:10]req_shift_open_date done [14:21:10]produce_requested_data done [14:21:10]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187062,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [14:21:10]process_action_free close_receipt [14:21:10]json_value_free [14:21:10]json_value_free done [14:21:10]process_json_proto returns [14:21:10]Send response to host [14:21:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187062,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [14:21:10]free response buf [14:21:10]execute_script done [14:21:10]execute_script returns [14:21:10]free content buf [14:21:10]Sock 9.Close socket [14:21:10]Sock 9.Thread stoped [14:21:12]accept exits with 7 [14:21:12]New connection [14:21:12]New thread 3067022692 created [14:21:12]Thread 3066879332 joined [14:21:12]Waiting for new connection... [14:21:12] Sock 7.Parse request [14:21:12]Sock 7.Check first char [14:21:12]Sock 7.First char is OK [14:21:12]request: POST /json_proto HTTP/1.0 [14:21:12]Method: POST [14:21:12]URL: /json_proto [14:21:12]Method is POST - this is cgi request [14:21:12]url: /json_proto [14:21:12]query_string will be loaded in cgi processing [14:21:12]execute_cgi json_proto POST (null) [14:21:12]execute_cgi path=json_proto method=POST [14:21:12]POST find Content-Length [14:21:12]Host: 172.17.46.131:8080 [14:21:12]Content-Length: 805 [14:21:12]Content-Type: application/json [14:21:12] [14:21:12]POST finish read [14:21:12]Found Content-Length = 805 [14:21:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412213", "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" : 100.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\u000A4763697.4763687", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:12]execute_script... [14:21:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412213", "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" : 100.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\u000A4763697.4763687", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:12]POST & json_proto [14:21:12]process_json_proto [14:21:12]json parsed OK: [14:21:12]protocol is kg_v1.0 [14:21:12]action value=close_receipt [14:21:12]process_action close_receipt [14:21:12]cmd_close_receipt [14:21:12]MH_GetDate [14:21:12]Write to MH i2c: F0 00 00 69 26 7E [14:21:12]Write i2c OK [14:21:12]MH_I2C_Read... [14:21:12]Read from MH i2c: F0 [14:21:12]MH_I2C_Read... [14:21:12]Read from MH i2c: F0 09 00 [14:21:12]MH_I2C_Read... [14:21:12]Read from MH i2c: F0 09 00 69 26 00 DC E8 B5 67 7E 41 4F 65 DA [14:21:12]GetLastDocTimeStamp 1739974870 [14:21:12]current date 1739974876 [14:21:12]FM_GetShiftState [14:21:12]SAM_PROTO_GetShiftState [14:21:12]wFMCommunicate request_size=4 [14:21:12]MH_SAM_APDU [14:21:12]CAPDU: 80 13 01 00 [14:21:12]Write to MH i2c: E2 08 00 6A 26 80 13 01 00 00 00 00 00 0D [14:21:12]Write i2c OK [14:21:12]MH_I2C_Read... [14:21:12]Read from MH i2c: E2 [14:21:12]MH_I2C_Read... [14:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:12]Read from MH i2c: E2 0E 00 [14:21:12]MH_I2C_Read... [14:21:12]Read from MH i2c: E2 0E 00 6A 26 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 8C [14:21:12]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:21:12]wFMCommunicate OK [14:21:12]SAM_PROTO_GetShiftState done [14:21:12]FM_GetShiftState done [14:21:12]opened in 1739929631 [14:21:12]opened+sec_in_day 1740016031 [14:21:12]quantity*price = 0 [14:21:12]sum+1 = 1 [14:21:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 129 19.02.2025 14:21 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4763697.4763687 ФМ: 0000000000871826 ФД: 187063 ФПД: 150984307717172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T142116&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187063&fm=150984307717172&tin=02508201610067®Number=0000000000091857&sum=0 [14:21:14]StoreToDocumentArchive [14:21:14]shift 647 fd 187063 [14:21:14]save to /storage/0647/doc_00187063 [14:21:14]save last doc name /storage/0647/doc_00187063 to /storage/kkm_last_doc_name [14:21:14]save OK [14:21:14]Clear old archive folders... [14:21:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:21:14]tlvbuf is 00679250 [14:21:14]SAM_PROTO_ClearQueue [14:21:14]wFMCommunicate request_size=4 [14:21:14]MH_SAM_APDU [14:21:14]CAPDU: 80 09 00 00 [14:21:14]Write to MH i2c: E2 08 00 77 26 80 09 00 00 00 00 00 00 0F [14:21:14]Write i2c OK [14:21:14]MH_I2C_Read... [14:21:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:14]Read from MH i2c: E2 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 03 00 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 03 00 77 26 00 90 00 11 [14:21:14]RAPDU: 90 00 [14:21:14]wFMCommunicate OK [14:21:14]SAM_PROTO_ClearQueue done [14:21:14]KKMCreateOFDPacket [14:21:14]OFDProtocolAddRootSTLVToBuf [14:21:14]FM_MakeSignedData [14:21:14]FM_MakeSignedData [14:21:14]SAM_PROTO_SignData [14:21:14]wFMCommunicate request_size=4 [14:21:14]MH_SAM_APDU [14:21:14]CAPDU: 80 0D 01 02 [14:21:14]Write to MH i2c: E2 08 00 78 26 80 0D 01 02 00 00 00 00 17 [14:21:14]Write i2c OK [14:21:14]MH_I2C_Read... [14:21:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:14]Read from MH i2c: E2 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 03 00 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 03 00 78 26 00 90 00 12 [14:21:14]RAPDU: 90 00 [14:21:14]wFMCommunicate OK [14:21:14]wFMCommunicate request_size=255 [14:21:14]MH_SAM_APDU [14:21: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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 DC E8 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 B7 DA 02 00 35 04 06 00 89 51 C6 07 [14:21:14]Write to MH i2c: E2 02 01 79 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 DC E8 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 B7 DA 02 00 35 04 06 00 89 51 C6 07 00 00 C4 [14:21:14]Write i2c OK [14:21:14]MH_I2C_Read... [14:21:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:14]Read from MH i2c: E2 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 03 00 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 03 00 79 26 00 90 00 13 [14:21:14]RAPDU: 90 00 [14:21:14]wFMCommunicate OK [14:21:14]wFMCommunicate request_size=7 [14:21:14]MH_SAM_APDU [14:21:14]CAPDU: 80 0D 02 02 02 34 34 [14:21:14]Write to MH i2c: E2 0A 00 7A 26 80 0D 02 02 02 00 34 34 00 00 86 [14:21:14]Write i2c OK [14:21:14]MH_I2C_Read... [14:21:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:14]Read from MH i2c: E2 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 03 00 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 03 00 7A 26 00 90 00 14 [14:21:14]RAPDU: 90 00 [14:21:14]wFMCommunicate OK [14:21:14]wFMCommunicate request_size=4 [14:21:14]MH_SAM_APDU [14:21:14]CAPDU: 80 0D 03 02 [14:21:14]Write to MH i2c: E2 08 00 7B 26 80 0D 03 02 00 00 00 00 1C [14:21:14]Write i2c OK [14:21:14]MH_I2C_Read... [14:21:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:14]Read from MH i2c: E2 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 0B 00 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 0B 00 7B 26 00 6E 0F 63 CA DD B8 F2 BF 90 00 0D [14:21:14]RAPDU: 6E 0F 63 CA DD B8 F2 BF 90 00 [14:21:14]wFMCommunicate OK [14:21:14]SAM_PROTO_SignData done [14:21:14]FM_MakeSignedData done [14:21:14]CreateOFDProtocolMessage [14:21:14]wFMCommunicate request_size=4 [14:21:14]MH_SAM_APDU [14:21:14]CAPDU: 80 11 00 00 [14:21:14]Write to MH i2c: E2 08 00 7C 26 80 11 00 00 00 00 00 00 1C [14:21:14]OFD Sender: No OFD packet to send [14:21:14]Write i2c OK [14:21:14]MH_I2C_Read... [14:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:14]Read from MH i2c: E2 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 17 00 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: E2 17 00 7C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6F [14: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 [14:21:14]wFMCommunicate OK [14:21:14]CreateOFDProtocolMessage done [14:21:14]OFDSenderStorePacket 187063 [14:21:14]StoreOFDPacket docnum=187063 [14:21: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 AA 80 04 01 00 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 DC E8 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 B7 DA 02 00 35 04 06 00 89 51 C6 07 34 34 6E 0F 63 CA DD B8 F2 BF [14:21:14]CheckFolder [14:21:14]dirname=/storage/ofd_packets [14:21:14]CheckFolder done [14:21:14]ProducePacketName [14:21:14]name=ofd_packets/00187063 [14:21:14]NVStorageSaveData ofd_packets/00187063 [14:21:14]File name is /storage/ofd_packets/00187063 [14:21:14]Write 298 bytes [14:21:14]NVStorageSaveData done [14:21:14]OFDSenderStorePacket done [14:21:14]KKMCreateOFDPacket done [14:21:14]NVStorageSaveData kkm_last_timestamp [14:21:14]File name is /storage/kkm_last_timestamp [14:21:14]Write 4 bytes [14:21:14]NVStorageSaveData done [14:21:14]ExternCall_PrintAddStr [14:21:14]wPrintStart [14:21:14]Write to MH i2c: 01 00 00 7D 26 A3 [14:21:14]Write i2c OK [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: 01 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: 01 07 00 [14:21:14]MH_I2C_Read... [14:21:14]Read from MH i2c: 01 07 00 7D 26 00 00 00 00 00 FF 0F B8 [14:21:14]RasterBufferAndPrint [14:21:14]line Счет N : (1)412213 [14:21:14]line ИНН: 02508201610067 [14:21:14]line Контрольно-Кассовый Чек [14:21:14]line ПРОДАЖА [14:21:14]line ТРК (МРК, ГНК) : 5 [14:21:14]line Товар: 2710194210 [14:21:14]line ДТ-К-5 [14:21:14]line 100.000 * 0.00 [14:21:14]line = 0.00 [14:21:14]line НДС 12% НСП 1% [14:21:14]line > о реализуемом товаре [14:21:14]line ИТОГО: 0.00 [14:21:14]line НСП 1% : 0.00 [14:21:14]line НДС 12% : 0.00 [14:21:14]line Наличными: 0.00 [14:21:14]line Безнал.: 0.00 [14:21:14]line Место: АЗС № 92 "Партнер Нефть" [14:21:14]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:21:14]line СНО: Общий режим [14:21:14]line Чек 129 19.02.2025 14:21 [14:21:14]line Смена: 647 ФФД: 1.0 [14:21:14]line ЗНМ: 0300000118 [14:21:14]line РНМ: 0000000000091857 [14:21:14]line Версия ККМ: 001 [14:21:14]line Талоны: Топливные Талоны [14:21:14]line 4763697.4763687 [14:21:14]line ФМ: 0000000000871826 [14:21:14]line ФД: 187063 [14:21:14]line ФПД: 150984307717172 [14:21:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T142116&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187063&fm=150984307717172&tin=02508201610067®Number=0000000000091857&sum=0 [14:21:14]written 0, free lines is 4095 [14:21:14]OFD Sender: Processing packet 187063 [packets to send 49, broken 48] [14:21:14]ProducePacketName [14:21:14]name=ofd_packets/00187063 [14:21:14]OFD Sender: To server: pG, [14:21:14]CommunicateWithHost lk.salyk.kg:30040 [14:21:14]ConnectInit lk.salyk.kg [14:21:14]Connected sock=10 [14:21:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 AA 80 04 01 00 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 DC E8 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 B7 DA 02 00 35 04 06 00 89 51 C6 07 34 34 6E 0F 63 CA DD B8 F2 BF [14:21:15]Write to MH i2c: 01 00 00 A7 26 CD [14:21:15]Write i2c OK [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: 01 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: 01 07 00 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: 01 07 00 A7 26 00 00 00 00 00 06 0D E7 [14:21:15]RasterBufferAndPrint [14:21:15]line [14:21:15]line [14:21:15]line [14:21:15]line [14:21:15]line [14:21:15]written 0, free lines is 3346 [14:21: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 A8 E7 47 00 4B 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 B7 DA 02 00 F4 03 04 00 30 8F B5 67 B6 04 01 00 00 5B EC 77 D6 A2 FB 99 B9 [14:21:15]CommunicateWithHost err = 0 [14:21:15]CheckOFDResponse [14:21:15]1017 (14) - 77093643461234 [14:21:15]1041 (16) - 0000000000871826 [14:21:15]1040 (4) - 187063 [14:21:15]1012 (4) - 19.02.2025 07:58 [14:21:15]1206 (1) - 0 [14:21:15]OFD Sender: Remove packet 187063 [14:21:15]ProducePacketName [14:21:15]name=ofd_packets/00187063 [14:21:15]NVStorageDeleteData [14:21:15]MH_Cut [14:21:15]Write to MH i2c: D1 01 00 AE 26 01 A6 [14:21:15]Write i2c OK [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: D1 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: D1 01 00 [14:21:15]MH_I2C_Read... [14:21:15]Read from MH i2c: D1 01 00 AE 26 00 A5 [14:21:15]Write to MH i2c: 01 00 00 AF 26 D5 [14:21:15]Write i2c OK [14:21:15]MH_I2C_Read... [14:21:15]OFD Sender: No OFD packet to send [14:21:15]*** Cut start [14:21:15]*** Partial cut [14:21:15]*** CUTSNS_PIN = 1 [14:21:15]*** CUTSNS_PIN = 0 [14:21:16]*** Brake cut motor [14:21:16]Read from MH i2c: 01 [14:21:16]MH_I2C_Read... [14:21:16]*** Stop cut motor [14:21:16]*** Cut end [14:21:16]Read from MH i2c: 01 07 00 [14:21:16]MH_I2C_Read... [14:21:16]Read from MH i2c: 01 07 00 AF 26 00 00 00 00 00 FF 0F EA [14:21:16]process_action close_receipt done [14:21:16]requested_data is exist [14:21:16]produce_requested_data [14:21:16]requested_item fm.sn is exist - process it [14:21:16]wFMCommunicate request_size=4 [14:21:16]MH_SAM_APDU [14:21:16]CAPDU: 80 11 00 00 [14:21:16]Write to MH i2c: E2 08 00 B0 26 80 11 00 00 00 00 00 00 50 [14:21:16]Write i2c OK [14:21:16]MH_I2C_Read... [14:21:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:16]Read from MH i2c: E2 [14:21:16]MH_I2C_Read... [14:21:16]Read from MH i2c: E2 17 00 [14:21:16]MH_I2C_Read... [14:21:16]Read from MH i2c: E2 17 00 B0 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A3 [14:21:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:21:16]wFMCommunicate OK [14:21:16]requested_item fd.num is exist - process it [14:21:16]SAM_PROTO_GetFieldsCounters [14:21:16]wFMCommunicate request_size=4 [14:21:16]MH_SAM_APDU [14:21:16]CAPDU: 80 13 00 00 [14:21:16]Write to MH i2c: E2 08 00 B1 26 80 13 00 00 00 00 00 00 53 [14:21:16]Write i2c OK [14:21:16]MH_I2C_Read... [14:21:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:16]Read from MH i2c: E2 [14:21:16]MH_I2C_Read... [14:21:16]Read from MH i2c: E2 62 00 [14:21:16]MH_I2C_Read... [14:21:16]Read from MH i2c: E2 62 00 B1 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 B7 DA 02 00 0E 04 04 00 87 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 18 [14:21:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [14:21:16]wFMCommunicate OK [14:21:16]SAM_PROTO_GetFieldsCounters done [14:21:16]requested_item shift.num is exist - process it [14:21:16]requested_item shift.opened is exist - process it [14:21:16]req_shift_opened [14:21:16]FM_GetShiftState [14:21:16]SAM_PROTO_GetShiftState [14:21:16]wFMCommunicate request_size=4 [14:21:16]MH_SAM_APDU [14:21:16]CAPDU: 80 13 01 00 [14:21:16]Write to MH i2c: E2 08 00 B2 26 80 13 01 00 00 00 00 00 55 [14:21:16]Write i2c OK [14:21:16]MH_I2C_Read... [14:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:16]Read from MH i2c: E2 [14:21:16]MH_I2C_Read... [14:21:16]Read from MH i2c: E2 0E 00 [14:21:16]MH_I2C_Read... [14:21:16]Read from MH i2c: E2 0E 00 B2 26 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D4 [14:21:16]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:21:16]wFMCommunicate OK [14:21:16]SAM_PROTO_GetShiftState done [14:21:16]FM_GetShiftState done [14:21:16]req_shift_opened done [14:21:16]requested_item shift.open_date is exist - process it [14:21:16]req_shift_open_date [14:21:16]req_shift_open_date done [14:21:16]produce_requested_data done [14:21:16]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187063,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [14:21:16]process_action_free close_receipt [14:21:16]json_value_free [14:21:16]json_value_free done [14:21:16]process_json_proto returns [14:21:16]Send response to host [14:21:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187063,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [14:21:16]free response buf [14:21:16]execute_script done [14:21:16]execute_script returns [14:21:16]free content buf [14:21:16]Sock 7.Close socket [14:21:16]Sock 7.Thread stoped [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:51]accept exits with 9 [14:24:51]New connection [14:24:51]New thread 3066879332 created [14:24:51]Thread 3067022692 joined [14:24:51]Waiting for new connection... [14:24:51] Sock 9.Parse request [14:24:51]Sock 9.Check first char [14:24:51]Sock 9.First char is OK [14:24:51]request: POST /json_proto HTTP/1.0 [14:24:51]Method: POST [14:24:51]URL: /json_proto [14:24:51]Method is POST - this is cgi request [14:24:51]url: /json_proto [14:24:51]query_string will be loaded in cgi processing [14:24:51]execute_cgi json_proto POST (null) [14:24:51]execute_cgi path=json_proto method=POST [14:24:51]POST find Content-Length [14:24:51]Host: 172.17.46.131:8080 [14:24:51]Content-Length: 797 [14:24:51]Content-Type: application/json [14:24:51] [14:24:51]POST finish read [14:24:51]Found Content-Length = 797 [14:24:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412215", "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" : 100.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\u000A4392474", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:51]execute_script... [14:24: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)412215", "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" : 100.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\u000A4392474", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:51]POST & json_proto [14:24:51]process_json_proto [14:24:51]json parsed OK: [14:24:51]protocol is kg_v1.0 [14:24:51]action value=close_receipt [14:24:51]process_action close_receipt [14:24:51]cmd_close_receipt [14:24:51]MH_GetDate [14:24:51]Write to MH i2c: F0 00 00 B3 26 C8 [14:24:51]Write i2c OK [14:24:51]MH_I2C_Read... [14:24:51]Read from MH i2c: F0 [14:24:51]MH_I2C_Read... [14:24:51]Read from MH i2c: F0 09 00 [14:24:51]MH_I2C_Read... [14:24:51]Read from MH i2c: F0 09 00 B3 26 00 B7 E9 B5 67 7E 41 4F 65 00 [14:24:51]GetLastDocTimeStamp 1739974876 [14:24:51]current date 1739975095 [14:24:51]FM_GetShiftState [14:24:51]SAM_PROTO_GetShiftState [14:24:51]wFMCommunicate request_size=4 [14:24:51]MH_SAM_APDU [14:24:51]CAPDU: 80 13 01 00 [14:24:51]Write to MH i2c: E2 08 00 B4 26 80 13 01 00 00 00 00 00 57 [14:24:51]Write i2c OK [14:24:51]MH_I2C_Read... [14:24:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:51]Read from MH i2c: E2 [14:24:51]MH_I2C_Read... [14:24:51]Read from MH i2c: E2 0E 00 [14:24:51]MH_I2C_Read... [14:24:51]Read from MH i2c: E2 0E 00 B4 26 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D6 [14:24:51]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:24:51]wFMCommunicate OK [14:24:51]SAM_PROTO_GetShiftState done [14:24:51]FM_GetShiftState done [14:24:51]opened in 1739929631 [14:24:51]opened+sec_in_day 1740016031 [14:24:51]quantity*price = 0 [14:24:51]sum+1 = 1 [14:24: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 СНО: Общий режим Чек 130 19.02.2025 14:24 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4392474 ФМ: 0000000000871826 ФД: 187064 ФПД: 769838434118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T142455&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187064&fm=769838434118&tin=02508201610067®Number=0000000000091857&sum=0 [14:24:52]StoreToDocumentArchive [14:24:52]shift 647 fd 187064 [14:24:52]save to /storage/0647/doc_00187064 [14:24:52]save last doc name /storage/0647/doc_00187064 to /storage/kkm_last_doc_name [14:24:52]save OK [14:24:52]Clear old archive folders... [14:24:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:24:52]tlvbuf is 0065E480 [14:24:52]SAM_PROTO_ClearQueue [14:24:52]wFMCommunicate request_size=4 [14:24:52]MH_SAM_APDU [14:24:52]CAPDU: 80 09 00 00 [14:24:52]Write to MH i2c: E2 08 00 C1 26 80 09 00 00 00 00 00 00 59 [14:24:52]Write i2c OK [14:24:52]MH_I2C_Read... [14:24:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:52]Read from MH i2c: E2 [14:24:52]MH_I2C_Read... [14:24:52]Read from MH i2c: E2 03 00 [14:24:52]MH_I2C_Read... [14:24:52]Read from MH i2c: E2 03 00 C1 26 00 90 00 5B [14:24:52]RAPDU: 90 00 [14:24:52]wFMCommunicate OK [14:24:52]SAM_PROTO_ClearQueue done [14:24:52]KKMCreateOFDPacket [14:24:52]OFDProtocolAddRootSTLVToBuf [14:24:52]FM_MakeSignedData [14:24:52]FM_MakeSignedData [14:24:52]SAM_PROTO_SignData [14:24:52]wFMCommunicate request_size=4 [14:24:52]MH_SAM_APDU [14:24:52]CAPDU: 80 0D 01 02 [14:24:52]Write to MH i2c: E2 08 00 C2 26 80 0D 01 02 00 00 00 00 61 [14:24:52]Write i2c OK [14:24:52]MH_I2C_Read... [14:24:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:52]Read from MH i2c: E2 [14:24:52]MH_I2C_Read... [14:24:52]Read from MH i2c: E2 03 00 [14:24:52]MH_I2C_Read... [14:24:52]Read from MH i2c: E2 03 00 C2 26 00 90 00 5C [14:24:52]RAPDU: 90 00 [14:24:52]wFMCommunicate OK [14:24:52]wFMCommunicate request_size=255 [14:24:52]MH_SAM_APDU [14:24:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B7 E9 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 B8 DA 02 00 35 04 06 00 00 B3 3D F2 [14:24:52]Write to MH i2c: E2 02 01 C3 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B7 E9 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 B8 DA 02 00 35 04 06 00 00 B3 3D F2 00 00 27 [14:24:52]Write i2c OK [14:24:52]MH_I2C_Read... [14:24:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:53]Read from MH i2c: E2 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: E2 03 00 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: E2 03 00 C3 26 00 90 00 5D [14:24:53]RAPDU: 90 00 [14:24:53]wFMCommunicate OK [14:24:53]wFMCommunicate request_size=7 [14:24:53]MH_SAM_APDU [14:24:53]CAPDU: 80 0D 02 02 02 47 46 [14:24:53]Write to MH i2c: E2 0A 00 C4 26 80 0D 02 02 02 00 47 46 00 00 F5 [14:24:53]Write i2c OK [14:24:53]MH_I2C_Read... [14:24:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:53]Read from MH i2c: E2 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: E2 03 00 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: E2 03 00 C4 26 00 90 00 5E [14:24:53]RAPDU: 90 00 [14:24:53]wFMCommunicate OK [14:24:53]wFMCommunicate request_size=4 [14:24:53]MH_SAM_APDU [14:24:53]CAPDU: 80 0D 03 02 [14:24:53]Write to MH i2c: E2 08 00 C5 26 80 0D 03 02 00 00 00 00 66 [14:24:53]Write i2c OK [14:24:53]MH_I2C_Read... [14:24:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:53]Read from MH i2c: E2 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: E2 0B 00 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: E2 0B 00 C5 26 00 04 3F DC 1F 97 44 08 F7 90 00 7F [14:24:53]RAPDU: 04 3F DC 1F 97 44 08 F7 90 00 [14:24:53]wFMCommunicate OK [14:24:53]SAM_PROTO_SignData done [14:24:53]FM_MakeSignedData done [14:24:53]CreateOFDProtocolMessage [14:24:53]wFMCommunicate request_size=4 [14:24:53]MH_SAM_APDU [14:24:53]CAPDU: 80 11 00 00 [14:24:53]Write to MH i2c: E2 08 00 C6 26 80 11 00 00 00 00 00 00 66 [14:24:53]Write i2c OK [14:24:53]MH_I2C_Read... [14:24:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:53]Read from MH i2c: E2 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: E2 17 00 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: E2 17 00 C6 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B9 [14: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 [14:24:53]wFMCommunicate OK [14:24:53]CreateOFDProtocolMessage done [14:24:53]OFDSenderStorePacket 187064 [14:24:53]StoreOFDPacket docnum=187064 [14: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 0C 01 00 00 D5 53 04 01 C5 CA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B7 E9 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 B8 DA 02 00 35 04 06 00 00 B3 3D F2 47 46 04 3F DC 1F 97 44 08 F7 [14:24:53]CheckFolder [14:24:53]dirname=/storage/ofd_packets [14:24:53]CheckFolder done [14:24:53]ProducePacketName [14:24:53]name=ofd_packets/00187064 [14:24:53]NVStorageSaveData ofd_packets/00187064 [14:24:53]File name is /storage/ofd_packets/00187064 [14:24:53]Write 298 bytes [14:24:53]NVStorageSaveData done [14:24:53]OFDSenderStorePacket done [14:24:53]KKMCreateOFDPacket done [14:24:53]NVStorageSaveData kkm_last_timestamp [14:24:53]File name is /storage/kkm_last_timestamp [14:24:53]Write 4 bytes [14:24:53]NVStorageSaveData done [14:24:53]ExternCall_PrintAddStr [14:24:53]wPrintStart [14:24:53]Write to MH i2c: 01 00 00 C7 26 ED [14:24:53]Write i2c OK [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: 01 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: 01 07 00 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: 01 07 00 C7 26 00 00 00 00 00 FF 0F 02 [14:24:53]RasterBufferAndPrint [14:24:53]line Счет N : (1)412215 [14:24:53]line ИНН: 02508201610067 [14:24:53]line Контрольно-Кассовый Чек [14:24:53]line ПРОДАЖА [14:24:53]line ТРК (МРК, ГНК) : 5 [14:24:53]line Товар: 2710194210 [14:24:53]line ДТ-К-5 [14:24:53]line 100.000 * 0.00 [14:24:53]line = 0.00 [14:24:53]line НДС 12% НСП 1% [14:24:53]line > о реализуемом товаре [14:24:53]line ИТОГО: 0.00 [14:24:53]line НСП 1% : 0.00 [14:24:53]line НДС 12% : 0.00 [14:24:53]line Наличными: 0.00 [14:24:53]line Безнал.: 0.00 [14:24:53]line Место: АЗС № 92 "Партнер Нефть" [14:24:53]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:24:53]line СНО: Общий режим [14:24:53]line Чек 130 19.02.2025 14:24 [14:24:53]line Смена: 647 ФФД: 1.0 [14:24:53]line ЗНМ: 0300000118 [14:24:53]line РНМ: 0000000000091857 [14:24:53]line Версия ККМ: 001 [14:24:53]line Талоны: Топливные Талоны [14:24:53]line 4392474 [14:24:53]line ФМ: 0000000000871826 [14:24:53]line ФД: 187064 [14:24:53]line ФПД: 769838434118 [14:24:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T142455&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187064&fm=769838434118&tin=02508201610067®Number=0000000000091857&sum=0 [14:24:53]written 0, free lines is 4095 [14:24:53]OFD Sender: Processing packet 187064 [packets to send 49, broken 48] [14:24:53]ProducePacketName [14:24:53]name=ofd_packets/00187064 [14:24:53]OFD Sender: To server: pG, [14:24:53]CommunicateWithHost lk.salyk.kg:30040 [14:24:53]ConnectInit lk.salyk.kg [14:24:53]Connected sock=10 [14:24: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 0C 01 00 00 D5 53 04 01 C5 CA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B7 E9 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 B8 DA 02 00 35 04 06 00 00 B3 3D F2 47 46 04 3F DC 1F 97 44 08 F7 [14:24:53]Write to MH i2c: 01 00 00 F1 26 17 [14:24:53]Write i2c OK [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: 01 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: 01 07 00 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: 01 07 00 F1 26 00 00 00 00 00 EF 0C 19 [14:24:53]RasterBufferAndPrint [14:24:53]line [14:24:53]line [14:24:53]line [14:24:53]line [14:24:53]line [14:24:53]written 0, free lines is 3317 [14:24:53]MH_Cut [14:24:53]Write to MH i2c: D1 01 00 F8 26 01 F0 [14:24:53]Write i2c OK [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: D1 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: D1 01 00 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: D1 01 00 F8 26 00 EF [14:24:53]Write to MH i2c: 01 00 00 F9 26 1F [14:24:53]Write i2c OK [14:24:53]MH_I2C_Read... [14:24: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 02 17 47 00 88 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B8 DA 02 00 F4 03 04 00 0A 90 B5 67 B6 04 01 00 00 20 4C 51 15 59 BB 97 24 [14:24:53]CommunicateWithHost err = 0 [14:24:53]CheckOFDResponse [14:24:53]1017 (14) - 77093643461234 [14:24:53]1041 (16) - 0000000000871826 [14:24:53]1040 (4) - 187064 [14:24:53]1012 (4) - 19.02.2025 08:02 [14:24:53]1206 (1) - 0 [14:24:53]OFD Sender: Remove packet 187064 [14:24:53]ProducePacketName [14:24:53]name=ofd_packets/00187064 [14:24:53]NVStorageDeleteData [14:24:54]OFD Sender: No OFD packet to send [14:24:54]*** Cut start [14:24:54]*** Partial cut [14:24:54]*** CUTSNS_PIN = 1 [14:24:54]*** CUTSNS_PIN = 0 [14:24:54]*** Brake cut motor [14:24:55]Read from MH i2c: 01 [14:24:55]MH_I2C_Read... [14:24:55]*** Stop cut motor [14:24:55]*** Cut end [14:24:55]Read from MH i2c: 01 07 00 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: 01 07 00 F9 26 00 00 00 00 00 FF 0F 34 [14:24:55]process_action close_receipt done [14:24:55]requested_data is exist [14:24:55]produce_requested_data [14:24:55]requested_item fm.sn is exist - process it [14:24:55]wFMCommunicate request_size=4 [14:24:55]MH_SAM_APDU [14:24:55]CAPDU: 80 11 00 00 [14:24:55]Write to MH i2c: E2 08 00 FA 26 80 11 00 00 00 00 00 00 9A [14:24:55]Write i2c OK [14:24:55]MH_I2C_Read... [14:24:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:55]Read from MH i2c: E2 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 17 00 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 17 00 FA 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 ED [14:24:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:24:55]wFMCommunicate OK [14:24:55]requested_item fd.num is exist - process it [14:24:55]SAM_PROTO_GetFieldsCounters [14:24:55]wFMCommunicate request_size=4 [14:24:55]MH_SAM_APDU [14:24:55]CAPDU: 80 13 00 00 [14:24:55]Write to MH i2c: E2 08 00 FB 26 80 13 00 00 00 00 00 00 9D [14:24:55]Write i2c OK [14:24:55]MH_I2C_Read... [14:24:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:55]Read from MH i2c: E2 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 62 00 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 62 00 FB 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 B8 DA 02 00 0E 04 04 00 87 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 66 [14:24: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 B8 DA 02 00 0E 04 04 00 87 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 [14:24:55]wFMCommunicate OK [14:24:55]SAM_PROTO_GetFieldsCounters done [14:24:55]requested_item shift.num is exist - process it [14:24:55]requested_item shift.opened is exist - process it [14:24:55]req_shift_opened [14:24:55]FM_GetShiftState [14:24:55]SAM_PROTO_GetShiftState [14:24:55]wFMCommunicate request_size=4 [14:24:55]MH_SAM_APDU [14:24:55]CAPDU: 80 13 01 00 [14:24:55]Write to MH i2c: E2 08 00 FC 26 80 13 01 00 00 00 00 00 9F [14:24:55]Write i2c OK [14:24:55]MH_I2C_Read... [14:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:55]Read from MH i2c: E2 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 0E 00 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 0E 00 FC 26 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 1E [14:24:55]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:24:55]wFMCommunicate OK [14:24:55]SAM_PROTO_GetShiftState done [14:24:55]FM_GetShiftState done [14:24:55]req_shift_opened done [14:24:55]requested_item shift.open_date is exist - process it [14:24:55]req_shift_open_date [14:24:55]req_shift_open_date done [14:24:55]produce_requested_data done [14:24:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187064,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [14:24:55]process_action_free close_receipt [14:24:55]json_value_free [14:24:55]json_value_free done [14:24:55]process_json_proto returns [14:24:55]Send response to host [14:24:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187064,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [14:24:55]free response buf [14:24:55]execute_script done [14:24:55]execute_script returns [14:24:55]free content buf [14:24:55]Sock 9.Close socket [14:24:55]Sock 9.Thread stoped [14:24:59]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25:09]OFD Sender: No OFD packet to send [14:25:14]OFD Sender: No OFD packet to send [14:25:19]OFD Sender: No OFD packet to send [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:49]OFD Sender: No OFD packet to send [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:42]accept exits with 7 [14:27:42]New connection [14:27:42]New thread 3067022692 created [14:27:42]Thread 3066879332 joined [14:27:42]Waiting for new connection... [14:27:42] Sock 7.Parse request [14:27:42]Sock 7.Check first char [14:27:42]Sock 7.First char is OK [14:27:42]request: POST /json_proto HTTP/1.0 [14:27:42]Method: POST [14:27:42]URL: /json_proto [14:27:42]Method is POST - this is cgi request [14:27:42]url: /json_proto [14:27:42]query_string will be loaded in cgi processing [14:27:42]execute_cgi json_proto POST (null) [14:27:42]execute_cgi path=json_proto method=POST [14:27:42]POST find Content-Length [14:27:42]Host: 172.17.46.131:8080 [14:27:42]Content-Length: 799 [14:27:42]Content-Type: application/json [14:27:42] [14:27:42]POST finish read [14:27:42]Found Content-Length = 799 [14:27:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412216", "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" : 68.880, "sum" : 5000.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" : 5000.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:42]execute_script... [14: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)412216", "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" : 68.880, "sum" : 5000.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" : 5000.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:42]POST & json_proto [14:27:42]process_json_proto [14:27:42]json parsed OK: [14:27:42]protocol is kg_v1.0 [14:27:42]action value=close_receipt [14:27:42]process_action close_receipt [14:27:42]cmd_close_receipt [14:27:42]MH_GetDate [14:27:42]Write to MH i2c: F0 00 00 FD 26 12 [14:27:42]Write i2c OK [14:27:42]MH_I2C_Read... [14:27:42]Read from MH i2c: F0 [14:27:42]MH_I2C_Read... [14:27:42]Read from MH i2c: F0 09 00 [14:27:42]MH_I2C_Read... [14:27:42]Read from MH i2c: F0 09 00 FD 26 00 61 EA B5 67 7E 41 4F 65 F5 [14:27:42]GetLastDocTimeStamp 1739975095 [14:27:42]current date 1739975265 [14:27:42]FM_GetShiftState [14:27:42]SAM_PROTO_GetShiftState [14:27:42]wFMCommunicate request_size=4 [14:27:42]MH_SAM_APDU [14:27:42]CAPDU: 80 13 01 00 [14:27:42]Write to MH i2c: E2 08 00 FE 26 80 13 01 00 00 00 00 00 A1 [14:27:42]Write i2c OK [14:27:42]MH_I2C_Read... [14:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:42]Read from MH i2c: E2 [14:27:42]MH_I2C_Read... [14:27:42]Read from MH i2c: E2 0E 00 [14:27:42]MH_I2C_Read... [14:27:42]Read from MH i2c: E2 0E 00 FE 26 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 20 [14:27:42]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:27:42]wFMCommunicate OK [14:27:42]SAM_PROTO_GetShiftState done [14:27:42]FM_GetShiftState done [14:27:42]opened in 1739929631 [14:27:42]opened+sec_in_day 1740016031 [14:27:42]quantity*price = 500068 [14:27:42]sum+1 = 500070 [14:27:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.69 НСП 1% : 44.25 НДС 12% : 531.05 Наличными: 0.00 Безнал.: 5000.69 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 131 19.02.2025 14:27 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187065 ФПД: 220905371435732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T142745&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187065&fm=220905371435732&tin=02508201610067®Number=0000000000091857&sum=500069 [14:27:43]StoreToDocumentArchive [14:27:43]shift 647 fd 187065 [14:27:43]save to /storage/0647/doc_00187065 [14:27:43]save last doc name /storage/0647/doc_00187065 to /storage/kkm_last_doc_name [14:27:43]save OK [14:27:43]Clear old archive folders... [14:27:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:27:43]tlvbuf is 00649530 [14:27:43]SAM_PROTO_ClearQueue [14:27:43]wFMCommunicate request_size=4 [14:27:43]MH_SAM_APDU [14:27:43]CAPDU: 80 09 00 00 [14:27:43]Write to MH i2c: E2 08 00 0B 27 80 09 00 00 00 00 00 00 A4 [14:27:43]Write i2c OK [14:27:43]MH_I2C_Read... [14:27:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:43]Read from MH i2c: E2 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: E2 03 00 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: E2 03 00 0B 27 00 90 00 A6 [14:27:43]RAPDU: 90 00 [14:27:43]wFMCommunicate OK [14:27:43]SAM_PROTO_ClearQueue done [14:27:43]KKMCreateOFDPacket [14:27:43]OFDProtocolAddRootSTLVToBuf [14:27:43]FM_MakeSignedData [14:27:43]FM_MakeSignedData [14:27:43]SAM_PROTO_SignData [14:27:43]wFMCommunicate request_size=4 [14:27:43]MH_SAM_APDU [14:27:43]CAPDU: 80 0D 01 02 [14:27:43]Write to MH i2c: E2 08 00 0C 27 80 0D 01 02 00 00 00 00 AC [14:27:43]Write i2c OK [14:27:43]MH_I2C_Read... [14:27:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:43]Read from MH i2c: E2 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: E2 03 00 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: E2 03 00 0C 27 00 90 00 A7 [14:27:43]RAPDU: 90 00 [14:27:43]wFMCommunicate OK [14:27:43]wFMCommunicate request_size=255 [14:27:43]MH_SAM_APDU [14: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 10 0D 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 61 EA 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 B9 DA 02 00 35 04 06 00 C8 E9 8A 31 [14:27:43]Write to MH i2c: E2 02 01 0D 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 0D 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 61 EA 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 B9 DA 02 00 35 04 06 00 C8 E9 8A 31 00 00 D9 [14:27:43]Write i2c OK [14:27:43]MH_I2C_Read... [14:27:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:43]Read from MH i2c: E2 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: E2 03 00 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: E2 03 00 0D 27 00 90 00 A8 [14:27:43]RAPDU: 90 00 [14:27:43]wFMCommunicate OK [14:27:43]wFMCommunicate request_size=7 [14:27:43]MH_SAM_APDU [14:27:43]CAPDU: 80 0D 02 02 02 82 D4 [14:27:43]Write to MH i2c: E2 0A 00 0E 27 80 0D 02 02 02 00 82 D4 00 00 09 [14:27:43]Write i2c OK [14:27:43]MH_I2C_Read... [14:27:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:43]Read from MH i2c: E2 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: E2 03 00 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: E2 03 00 0E 27 00 90 00 A9 [14:27:43]RAPDU: 90 00 [14:27:43]wFMCommunicate OK [14:27:43]wFMCommunicate request_size=4 [14:27:43]MH_SAM_APDU [14:27:43]CAPDU: 80 0D 03 02 [14:27:43]Write to MH i2c: E2 08 00 0F 27 80 0D 03 02 00 00 00 00 B1 [14:27:43]Write i2c OK [14:27:43]MH_I2C_Read... [14:27:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:43]Read from MH i2c: E2 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: E2 0B 00 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: E2 0B 00 0F 27 00 B4 64 BB 86 4F 8D 66 1B 90 00 68 [14:27:43]RAPDU: B4 64 BB 86 4F 8D 66 1B 90 00 [14:27:43]wFMCommunicate OK [14:27:43]SAM_PROTO_SignData done [14:27:43]FM_MakeSignedData done [14:27:43]CreateOFDProtocolMessage [14:27:43]wFMCommunicate request_size=4 [14:27:43]MH_SAM_APDU [14:27:43]CAPDU: 80 11 00 00 [14:27:43]Write to MH i2c: E2 08 00 10 27 80 11 00 00 00 00 00 00 B1 [14:27:43]Write i2c OK [14:27:43]MH_I2C_Read... [14:27:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:43]Read from MH i2c: E2 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: E2 17 00 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: E2 17 00 10 27 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:27:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:27:43]wFMCommunicate OK [14:27:43]CreateOFDProtocolMessage done [14:27:43]OFDSenderStorePacket 187065 [14:27:43]StoreOFDPacket docnum=187065 [14:27: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 80 71 04 01 7A A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 0D 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 61 EA 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 B9 DA 02 00 35 04 06 00 C8 E9 8A 31 82 D4 B4 64 BB 86 4F 8D 66 1B [14:27:43]CheckFolder [14:27:43]dirname=/storage/ofd_packets [14:27:43]CheckFolder done [14:27:43]ProducePacketName [14:27:43]name=ofd_packets/00187065 [14:27:43]NVStorageSaveData ofd_packets/00187065 [14:27:43]File name is /storage/ofd_packets/00187065 [14:27:43]Write 298 bytes [14:27:43]NVStorageSaveData done [14:27:43]OFDSenderStorePacket done [14:27:43]KKMCreateOFDPacket done [14:27:43]NVStorageSaveData kkm_last_timestamp [14:27:43]File name is /storage/kkm_last_timestamp [14:27:43]Write 4 bytes [14:27:43]NVStorageSaveData done [14:27:43]ExternCall_PrintAddStr [14:27:43]wPrintStart [14:27:43]Write to MH i2c: 01 00 00 11 27 38 [14:27:43]Write i2c OK [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: 01 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: 01 07 00 [14:27:43]MH_I2C_Read... [14:27:43]Read from MH i2c: 01 07 00 11 27 00 00 00 00 00 FF 0F 4D [14:27:43]RasterBufferAndPrint [14:27:43]line Счет N : (1)412216 [14:27:43]line ИНН: 02508201610067 [14:27:43]line Контрольно-Кассовый Чек [14:27:43]line ПРОДАЖА [14:27:43]line ТРК (МРК, ГНК) : 6 [14:27:43]line Товар: 2710194210 [14:27:43]line ДТ-К-5 [14:27:43]line 68.880 * 72.60 [14:27:43]line = 5000.69 [14:27:43]line НДС 12% НСП 1% [14:27:43]line > о реализуемом товаре [14:27:43]line ИТОГО: 5000.69 [14:27:43]line НСП 1% : 44.25 [14:27:43]line НДС 12% : 531.05 [14:27:43]line Наличными: 0.00 [14:27:43]line Безнал.: 5000.69 [14:27:43]line Место: АЗС № 92 "Партнер Нефть" [14:27:43]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:27:43]line СНО: Общий режим [14:27:43]line Чек 131 19.02.2025 14:27 [14:27:43]line Смена: 647 ФФД: 1.0 [14:27:43]line ЗНМ: 0300000118 [14:27:43]line РНМ: 0000000000091857 [14:27:43]line Версия ККМ: 001 [14:27:43]line Платежная система: O! деньги [14:27:43]line ФМ: 0000000000871826 [14:27:43]line ФД: 187065 [14:27:43]line ФПД: 220905371435732 [14:27:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T142745&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187065&fm=220905371435732&tin=02508201610067®Number=0000000000091857&sum=500069 [14:27:44]OFD Sender: Processing packet 187065 [packets to send 49, broken 48] [14:27:44]ProducePacketName [14:27:44]name=ofd_packets/00187065 [14:27:44]OFD Sender: To server: pG, [14:27:44]CommunicateWithHost lk.salyk.kg:30040 [14:27:44]ConnectInit lk.salyk.kg [14:27:44]written 0, free lines is 4095 [14:27:44]Connected sock=10 [14: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 80 71 04 01 7A A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 0D 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 61 EA 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 B9 DA 02 00 35 04 06 00 C8 E9 8A 31 82 D4 B4 64 BB 86 4F 8D 66 1B [14: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 BF 78 47 00 7C 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 B9 DA 02 00 F4 03 04 00 B5 90 B5 67 B6 04 01 00 00 D0 86 70 B2 64 C4 95 C5 [14:27:44]CommunicateWithHost err = 0 [14:27:44]CheckOFDResponse [14:27:44]1017 (14) - 77093643461234 [14:27:44]1041 (16) - 0000000000871826 [14:27:44]1040 (4) - 187065 [14:27:44]1012 (4) - 19.02.2025 08:05 [14:27:44]1206 (1) - 0 [14:27:44]OFD Sender: Remove packet 187065 [14:27:44]ProducePacketName [14:27:44]name=ofd_packets/00187065 [14:27:44]NVStorageDeleteData [14:27:44]Write to MH i2c: 01 00 00 3B 27 62 [14:27:44]Write i2c OK [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: 01 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: 01 07 00 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: 01 07 00 3B 27 00 00 00 00 00 00 0D 76 [14:27:44]RasterBufferAndPrint [14:27:44]line [14:27:44]line [14:27:44]line [14:27:44]line [14:27:44]line [14:27:44]written 0, free lines is 3334 [14:27:44]MH_Cut [14:27:44]Write to MH i2c: D1 01 00 42 27 01 3B [14:27:44]Write i2c OK [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: D1 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: D1 01 00 [14:27:44]MH_I2C_Read... [14:27:44]Read from MH i2c: D1 01 00 42 27 00 3A [14:27:44]Write to MH i2c: 01 00 00 43 27 6A [14:27:44]Write i2c OK [14:27:44]MH_I2C_Read... [14:27:45]OFD Sender: No OFD packet to send [14:27:45]*** Cut start [14:27:45]*** Partial cut [14:27:45]*** CUTSNS_PIN = 1 [14:27:45]*** CUTSNS_PIN = 0 [14:27:45]*** Brake cut motor [14:27:46]Read from MH i2c: 01 [14:27:46]MH_I2C_Read... [14:27:46]*** Stop cut motor [14:27:46]*** Cut end [14:27:46]Read from MH i2c: 01 07 00 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: 01 07 00 43 27 00 00 00 00 00 FF 0F 7F [14:27:46]process_action close_receipt done [14:27:46]requested_data is exist [14:27:46]produce_requested_data [14:27:46]requested_item fm.sn is exist - process it [14:27:46]wFMCommunicate request_size=4 [14:27:46]MH_SAM_APDU [14:27:46]CAPDU: 80 11 00 00 [14:27:46]Write to MH i2c: E2 08 00 44 27 80 11 00 00 00 00 00 00 E5 [14:27:46]Write i2c OK [14:27:46]MH_I2C_Read... [14:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:46]Read from MH i2c: E2 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 17 00 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 17 00 44 27 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: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 [14:27:46]wFMCommunicate OK [14:27:46]requested_item fd.num is exist - process it [14:27:46]SAM_PROTO_GetFieldsCounters [14:27:46]wFMCommunicate request_size=4 [14:27:46]MH_SAM_APDU [14:27:46]CAPDU: 80 13 00 00 [14:27:46]Write to MH i2c: E2 08 00 45 27 80 13 00 00 00 00 00 00 E8 [14:27:46]Write i2c OK [14:27:46]MH_I2C_Read... [14:27:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:46]Read from MH i2c: E2 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 62 00 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 62 00 45 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 B9 DA 02 00 0E 04 04 00 87 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 B5 [14: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 B9 DA 02 00 0E 04 04 00 87 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 [14:27:46]wFMCommunicate OK [14:27:46]SAM_PROTO_GetFieldsCounters done [14:27:46]requested_item shift.num is exist - process it [14:27:46]requested_item shift.opened is exist - process it [14:27:46]req_shift_opened [14:27:46]FM_GetShiftState [14:27:46]SAM_PROTO_GetShiftState [14:27:46]wFMCommunicate request_size=4 [14:27:46]MH_SAM_APDU [14:27:46]CAPDU: 80 13 01 00 [14:27:46]Write to MH i2c: E2 08 00 46 27 80 13 01 00 00 00 00 00 EA [14:27:46]Write i2c OK [14:27:46]MH_I2C_Read... [14:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:46]Read from MH i2c: E2 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 0E 00 [14:27:46]MH_I2C_Read... [14:27:46]Read from MH i2c: E2 0E 00 46 27 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 69 [14:27:46]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:27:46]wFMCommunicate OK [14:27:46]SAM_PROTO_GetShiftState done [14:27:46]FM_GetShiftState done [14:27:46]req_shift_opened done [14:27:46]requested_item shift.open_date is exist - process it [14:27:46]req_shift_open_date [14:27:46]req_shift_open_date done [14:27:46]produce_requested_data done [14:27:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187065,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [14:27:46]process_action_free close_receipt [14:27:46]json_value_free [14:27:46]json_value_free done [14:27:46]process_json_proto returns [14:27:46]Send response to host [14:27:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187065,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [14:27:46]free response buf [14:27:46]execute_script done [14:27:46]execute_script returns [14:27:46]free content buf [14:27:46]Sock 7.Close socket [14:27:46]Sock 7.Thread stoped [14:27:50]OFD Sender: No OFD packet to send [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:15]OFD Sender: No OFD packet to send [14:28:20]OFD Sender: No OFD packet to send [14:28:25]OFD Sender: No OFD packet to send [14:28:30]OFD Sender: No OFD packet to send [14:28:35]OFD Sender: No OFD packet to send [14:28:40]OFD Sender: No OFD packet to send [14:28:45]OFD Sender: No OFD packet to send [14:28:50]OFD Sender: No OFD packet to send [14:28:55]OFD Sender: No OFD packet to send [14:29:00]OFD Sender: No OFD packet to send [14:29:05]OFD Sender: No OFD packet to send [14:29:05]accept exits with 9 [14:29:05]New connection [14:29:05]New thread 3066879332 created [14:29:05]Thread 3067022692 joined [14:29:05]Waiting for new connection... [14:29:05] Sock 9.Parse request [14:29:05]Sock 9.Check first char [14:29:05]Sock 9.First char is OK [14:29:05]request: POST /json_proto HTTP/1.0 [14:29:05]Method: POST [14:29:05]URL: /json_proto [14:29:05]Method is POST - this is cgi request [14:29:05]url: /json_proto [14:29:05]query_string will be loaded in cgi processing [14:29:05]execute_cgi json_proto POST (null) [14:29:05]execute_cgi path=json_proto method=POST [14:29:05]POST find Content-Length [14:29:05]Host: 172.17.46.131:8080 [14:29:05]Content-Length: 678 [14:29:05]Content-Type: application/json [14:29:05] [14:29:05]POST finish read [14:29:05]Found Content-Length = 678 [14:29:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412217", "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" ] } } [14:29:05]execute_script... [14:29: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)412217", "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" ] } } [14:29:05]POST & json_proto [14:29:05]process_json_proto [14:29:05]json parsed OK: [14:29:05]protocol is kg_v1.0 [14:29:05]action value=close_receipt [14:29:05]process_action close_receipt [14:29:05]cmd_close_receipt [14:29:05]MH_GetDate [14:29:05]Write to MH i2c: F0 00 00 47 27 5D [14:29:05]Write i2c OK [14:29:05]MH_I2C_Read... [14:29:05]Read from MH i2c: F0 [14:29:05]MH_I2C_Read... [14:29:05]Read from MH i2c: F0 09 00 [14:29:05]MH_I2C_Read... [14:29:05]Read from MH i2c: F0 09 00 47 27 00 B5 EA B5 67 7E 41 4F 65 94 [14:29:05]GetLastDocTimeStamp 1739975265 [14:29:05]current date 1739975349 [14:29:05]FM_GetShiftState [14:29:05]SAM_PROTO_GetShiftState [14:29:05]wFMCommunicate request_size=4 [14:29:05]MH_SAM_APDU [14:29:05]CAPDU: 80 13 01 00 [14:29:05]Write to MH i2c: E2 08 00 48 27 80 13 01 00 00 00 00 00 EC [14:29:05]Write i2c OK [14:29:05]MH_I2C_Read... [14:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:05]Read from MH i2c: E2 [14:29:05]MH_I2C_Read... [14:29:05]Read from MH i2c: E2 0E 00 [14:29:05]MH_I2C_Read... [14:29:05]Read from MH i2c: E2 0E 00 48 27 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 6B [14:29:05]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:29:05]wFMCommunicate OK [14:29:05]SAM_PROTO_GetShiftState done [14:29:05]FM_GetShiftState done [14:29:05]opened in 1739929631 [14:29:05]opened+sec_in_day 1740016031 [14:29:05]quantity*price = 100042 [14:29:05]sum+1 = 100044 [14:29:05]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 СНО: Общий режим Чек 132 19.02.2025 14:29 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187066 ФПД: 171891487589503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T142909&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187066&fm=171891487589503&tin=02508201610067®Number=0000000000091857&sum=100000 [14:29:07]StoreToDocumentArchive [14:29:07]shift 647 fd 187066 [14:29:07]save to /storage/0647/doc_00187066 [14:29:07]save last doc name /storage/0647/doc_00187066 to /storage/kkm_last_doc_name [14:29:07]save OK [14:29:07]Clear old archive folders... [14:29:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:29:07]tlvbuf is 00683D50 [14:29:07]SAM_PROTO_ClearQueue [14:29:07]wFMCommunicate request_size=4 [14:29:07]MH_SAM_APDU [14:29:07]CAPDU: 80 09 00 00 [14:29:07]Write to MH i2c: E2 08 00 55 27 80 09 00 00 00 00 00 00 EE [14:29:07]Write i2c OK [14:29:07]MH_I2C_Read... [14:29:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:07]Read from MH i2c: E2 [14:29:07]MH_I2C_Read... [14:29:07]Read from MH i2c: E2 03 00 [14:29:07]MH_I2C_Read... [14:29:07]Read from MH i2c: E2 03 00 55 27 00 90 00 F0 [14:29:07]RAPDU: 90 00 [14:29:07]wFMCommunicate OK [14:29:07]SAM_PROTO_ClearQueue done [14:29:07]KKMCreateOFDPacket [14:29:07]OFDProtocolAddRootSTLVToBuf [14:29:07]FM_MakeSignedData [14:29:07]FM_MakeSignedData [14:29:07]SAM_PROTO_SignData [14:29:07]wFMCommunicate request_size=4 [14:29:07]MH_SAM_APDU [14:29:07]CAPDU: 80 0D 01 02 [14:29:07]Write to MH i2c: E2 08 00 56 27 80 0D 01 02 00 00 00 00 F6 [14:29:07]Write i2c OK [14:29:07]MH_I2C_Read... [14:29:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:07]Read from MH i2c: E2 [14:29:07]MH_I2C_Read... [14:29:07]Read from MH i2c: E2 03 00 [14:29:07]MH_I2C_Read... [14:29:07]Read from MH i2c: E2 03 00 56 27 00 90 00 F1 [14:29:07]RAPDU: 90 00 [14:29:07]wFMCommunicate OK [14:29:07]wFMCommunicate request_size=255 [14:29:07]MH_SAM_APDU [14:29: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 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 84 00 00 00 F4 03 04 00 B5 EA 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 BA DA 02 00 35 04 06 00 9C 55 9B 0E [14:29:07]Write to MH i2c: E2 02 01 57 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 84 00 00 00 F4 03 04 00 B5 EA 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 BA DA 02 00 35 04 06 00 9C 55 9B 0E 00 00 92 [14:29:07]Write i2c OK [14:29:07]MH_I2C_Read... [14:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:07]Read from MH i2c: E2 [14:29:07]MH_I2C_Read... [14:29:07]Read from MH i2c: E2 03 00 [14:29:07]MH_I2C_Read... [14:29:07]Read from MH i2c: E2 03 00 57 27 00 90 00 F2 [14:29:07]RAPDU: 90 00 [14:29:07]wFMCommunicate OK [14:29:07]wFMCommunicate request_size=7 [14:29:07]MH_SAM_APDU [14:29:07]CAPDU: 80 0D 02 02 02 C4 7F [14:29:07]Write to MH i2c: E2 0A 00 58 27 80 0D 02 02 02 00 C4 7F 00 00 40 [14:29:07]Write i2c OK [14:29:07]MH_I2C_Read... [14:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:07]Read from MH i2c: E2 [14:29:07]MH_I2C_Read... [14:29:07]Read from MH i2c: E2 03 00 [14:29:07]MH_I2C_Read... [14:29:07]Read from MH i2c: E2 03 00 58 27 00 90 00 F3 [14:29:07]RAPDU: 90 00 [14:29:07]wFMCommunicate OK [14:29:07]wFMCommunicate request_size=4 [14:29:07]MH_SAM_APDU [14:29:07]CAPDU: 80 0D 03 02 [14:29:07]Write to MH i2c: E2 08 00 59 27 80 0D 03 02 00 00 00 00 FB [14:29:07]Write i2c OK [14:29:07]MH_I2C_Read... [14:29:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:07]Read from MH i2c: E2 [14:29:07]MH_I2C_Read... [14:29:07]Read from MH i2c: E2 0B 00 [14:29:07]MH_I2C_Read... [14:29:07]Read from MH i2c: E2 0B 00 59 27 00 11 E5 36 F4 DA 06 74 89 90 00 F9 [14:29:07]RAPDU: 11 E5 36 F4 DA 06 74 89 90 00 [14:29:07]wFMCommunicate OK [14:29:07]SAM_PROTO_SignData done [14:29:07]FM_MakeSignedData done [14:29:07]CreateOFDProtocolMessage [14:29:07]wFMCommunicate request_size=4 [14:29:07]MH_SAM_APDU [14:29:07]CAPDU: 80 11 00 00 [14:29:07]Write to MH i2c: E2 08 00 5A 27 80 11 00 00 00 00 00 00 FB [14:29:07]Write i2c OK [14:29:07]MH_I2C_Read... [14:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:07]Read from MH i2c: E2 [14:29:07]MH_I2C_Read... [14:29:07]Read from MH i2c: E2 17 00 [14:29:07]MH_I2C_Read... [14:29:07]Read from MH i2c: E2 17 00 5A 27 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:29:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:29:07]wFMCommunicate OK [14:29:07]CreateOFDProtocolMessage done [14:29:07]OFDSenderStorePacket 187066 [14:29:07]StoreOFDPacket docnum=187066 [14:29: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 85 D1 04 01 34 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 84 00 00 00 F4 03 04 00 B5 EA 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 BA DA 02 00 35 04 06 00 9C 55 9B 0E C4 7F 11 E5 36 F4 DA 06 74 89 [14:29:07]CheckFolder [14:29:07]dirname=/storage/ofd_packets [14:29:07]CheckFolder done [14:29:07]ProducePacketName [14:29:07]name=ofd_packets/00187066 [14:29:07]NVStorageSaveData ofd_packets/00187066 [14:29:07]File name is /storage/ofd_packets/00187066 [14:29:07]Write 298 bytes [14:29:07]NVStorageSaveData done [14:29:07]OFDSenderStorePacket done [14:29:07]KKMCreateOFDPacket done [14:29:07]NVStorageSaveData kkm_last_timestamp [14:29:07]File name is /storage/kkm_last_timestamp [14:29:07]Write 4 bytes [14:29:07]NVStorageSaveData done [14:29:07]ExternCall_PrintAddStr [14:29:07]wPrintStart [14:29:07]Write to MH i2c: 01 00 00 5B 27 82 [14:29:07]Write i2c OK [14:29:07]MH_I2C_Read... [14:29:07]Read from MH i2c: 01 [14:29:07]MH_I2C_Read... [14:29:07]Read from MH i2c: 01 07 00 [14:29:07]MH_I2C_Read... [14:29:07]Read from MH i2c: 01 07 00 5B 27 00 00 00 00 00 FF 0F 97 [14:29:07]RasterBufferAndPrint [14:29:07]line Счет N : (1)412217 [14:29:07]line ИНН: 02508201610067 [14:29:07]line Контрольно-Кассовый Чек [14:29:07]line ПРОДАЖА [14:29:07]line ТРК (МРК, ГНК) : 5 [14:29:07]line Товар: 2710194210 [14:29:07]line ДТ-К-5 [14:29:07]line 13.780 * 72.60 [14:29:07]line = 1000.43 [14:29:07]line НДС 12% НСП 1% [14:29:07]line > о реализуемом товаре [14:29:07]line ОКРУГЛЕНИЕ: -0.43 [14:29:07]line ИТОГО: 1000.00 [14:29:07]line Внесено: 1000.00 [14:29:07]line СДАЧА: 0.00 [14:29:07]line НСП 1% : 8.85 [14:29:07]line НДС 12% : 106.24 [14:29:07]line Наличными: 1000.00 [14:29:07]line Безнал.: 0.00 [14:29:07]line Место: АЗС № 92 "Партнер Нефть" [14:29:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:29:07]line СНО: Общий режим [14:29:07]line Чек 132 19.02.2025 14:29 [14:29:07]line Смена: 647 ФФД: 1.0 [14:29:07]line ЗНМ: 0300000118 [14:29:07]line РНМ: 0000000000091857 [14:29:07]line Версия ККМ: 001 [14:29:07]line ФМ: 0000000000871826 [14:29:07]line ФД: 187066 [14:29:07]line ФПД: 171891487589503 [14:29:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T142909&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187066&fm=171891487589503&tin=02508201610067®Number=0000000000091857&sum=100000 [14:29:07]written 0, free lines is 4095 [14:29:07]OFD Sender: Processing packet 187066 [packets to send 49, broken 48] [14:29:07]ProducePacketName [14:29:07]name=ofd_packets/00187066 [14:29:07]OFD Sender: To server: pG, [14:29:07]CommunicateWithHost lk.salyk.kg:30040 [14:29:07]ConnectInit lk.salyk.kg [14:29:08]Connected sock=10 [14:29: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 85 D1 04 01 34 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 84 00 00 00 F4 03 04 00 B5 EA 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 BA DA 02 00 35 04 06 00 9C 55 9B 0E C4 7F 11 E5 36 F4 DA 06 74 89 [14:29: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 05 E9 47 00 E0 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 BA DA 02 00 F4 03 04 00 09 91 B5 67 B6 04 01 00 00 B1 D2 5D 6D 56 B9 3F 3A [14:29:08]CommunicateWithHost err = 0 [14:29:08]CheckOFDResponse [14:29:08]1017 (14) - 77093643461234 [14:29:08]1041 (16) - 0000000000871826 [14:29:08]1040 (4) - 187066 [14:29:08]1012 (4) - 19.02.2025 08:06 [14:29:08]1206 (1) - 0 [14:29:08]OFD Sender: Remove packet 187066 [14:29:08]ProducePacketName [14:29:08]name=ofd_packets/00187066 [14:29:08]NVStorageDeleteData [14:29:08]Write to MH i2c: 01 00 00 86 27 AD [14:29:08]Write i2c OK [14:29:08]MH_I2C_Read... [14:29:08]Read from MH i2c: 01 [14:29:08]MH_I2C_Read... [14:29:08]Read from MH i2c: 01 07 00 [14:29:08]MH_I2C_Read... [14:29:08]Read from MH i2c: 01 07 00 86 27 00 00 00 00 00 F1 0C B1 [14:29:08]RasterBufferAndPrint [14:29:08]line [14:29:08]line [14:29:08]line [14:29:08]line [14:29:08]line [14:29:08]written 0, free lines is 3322 [14:29:08]MH_Cut [14:29:08]Write to MH i2c: D1 01 00 8D 27 01 86 [14:29:08]Write i2c OK [14:29:08]MH_I2C_Read... [14:29:08]Read from MH i2c: D1 [14:29:08]MH_I2C_Read... [14:29:08]Read from MH i2c: D1 01 00 [14:29:08]MH_I2C_Read... [14:29:08]Read from MH i2c: D1 01 00 8D 27 00 85 [14:29:08]Write to MH i2c: 01 00 00 8E 27 B5 [14:29:08]Write i2c OK [14:29:08]MH_I2C_Read... [14:29:08]OFD Sender: No OFD packet to send [14:29:09]*** Cut start [14:29:09]*** Partial cut [14:29:09]*** CUTSNS_PIN = 1 [14:29:09]*** CUTSNS_PIN = 0 [14:29:09]*** Brake cut motor [14:29:09]Read from MH i2c: 01 [14:29:09]MH_I2C_Read... [14:29:09]*** Stop cut motor [14:29:09]*** Cut end [14:29:09]Read from MH i2c: 01 07 00 [14:29:09]MH_I2C_Read... [14:29:09]Read from MH i2c: 01 07 00 8E 27 00 00 00 00 00 FF 0F CA [14:29:09]process_action close_receipt done [14:29:09]requested_data is exist [14:29:09]produce_requested_data [14:29:09]requested_item fm.sn is exist - process it [14:29:09]wFMCommunicate request_size=4 [14:29:09]MH_SAM_APDU [14:29:09]CAPDU: 80 11 00 00 [14:29:09]Write to MH i2c: E2 08 00 8F 27 80 11 00 00 00 00 00 00 30 [14:29:09]Write i2c OK [14:29:09]MH_I2C_Read... [14:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:09]Read from MH i2c: E2 [14:29:09]MH_I2C_Read... [14:29:09]Read from MH i2c: E2 17 00 [14:29:09]MH_I2C_Read... [14:29:09]Read from MH i2c: E2 17 00 8F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 83 [14: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 [14:29:09]wFMCommunicate OK [14:29:09]requested_item fd.num is exist - process it [14:29:09]SAM_PROTO_GetFieldsCounters [14:29:09]wFMCommunicate request_size=4 [14:29:09]MH_SAM_APDU [14:29:09]CAPDU: 80 13 00 00 [14:29:09]Write to MH i2c: E2 08 00 90 27 80 13 00 00 00 00 00 00 33 [14:29:09]Write i2c OK [14:29:09]MH_I2C_Read... [14:29:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:10]Read from MH i2c: E2 [14:29:10]MH_I2C_Read... [14:29:10]Read from MH i2c: E2 62 00 [14:29:10]MH_I2C_Read... [14:29:10]Read from MH i2c: E2 62 00 90 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 BA DA 02 00 0E 04 04 00 87 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 04 [14:29: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 BA DA 02 00 0E 04 04 00 87 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 [14:29:10]wFMCommunicate OK [14:29:10]SAM_PROTO_GetFieldsCounters done [14:29:10]requested_item shift.num is exist - process it [14:29:10]requested_item shift.opened is exist - process it [14:29:10]req_shift_opened [14:29:10]FM_GetShiftState [14:29:10]SAM_PROTO_GetShiftState [14:29:10]wFMCommunicate request_size=4 [14:29:10]MH_SAM_APDU [14:29:10]CAPDU: 80 13 01 00 [14:29:10]Write to MH i2c: E2 08 00 91 27 80 13 01 00 00 00 00 00 35 [14:29:10]Write i2c OK [14:29:10]MH_I2C_Read... [14:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:10]Read from MH i2c: E2 [14:29:10]MH_I2C_Read... [14:29:10]Read from MH i2c: E2 0E 00 [14:29:10]MH_I2C_Read... [14:29:10]Read from MH i2c: E2 0E 00 91 27 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 B4 [14:29:10]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:29:10]wFMCommunicate OK [14:29:10]SAM_PROTO_GetShiftState done [14:29:10]FM_GetShiftState done [14:29:10]req_shift_opened done [14:29:10]requested_item shift.open_date is exist - process it [14:29:10]req_shift_open_date [14:29:10]req_shift_open_date done [14:29:10]produce_requested_data done [14:29:10]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187066,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [14:29:10]process_action_free close_receipt [14:29:10]json_value_free [14:29:10]json_value_free done [14:29:10]process_json_proto returns [14:29:10]Send response to host [14:29:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187066,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [14:29:10]free response buf [14:29:10]execute_script done [14:29:10]execute_script returns [14:29:10]free content buf [14:29:10]Sock 9.Close socket [14:29:10]Sock 9.Thread stoped [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:28]OFD Sender: No OFD packet to send [14:30:33]OFD Sender: No OFD packet to send [14:30:38]OFD Sender: No OFD packet to send [14:30:43]OFD Sender: No OFD packet to send [14:30:48]OFD Sender: No OFD packet to send [14:30:53]OFD Sender: No OFD packet to send [14:30:58]OFD Sender: No OFD packet to send [14:31: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:38]accept exits with 7 [14:33:38]New connection [14:33:38]New thread 3067022692 created [14:33:38]Thread 3066879332 joined [14:33:38]Waiting for new connection... [14:33:38] Sock 7.Parse request [14:33:38]Sock 7.Check first char [14:33:38]Sock 7.First char is OK [14:33:38]request: POST /json_proto HTTP/1.0 [14:33:38]Method: POST [14:33:38]URL: /json_proto [14:33:38]Method is POST - this is cgi request [14:33:38]url: /json_proto [14:33:38]query_string will be loaded in cgi processing [14:33:38]execute_cgi json_proto POST (null) [14:33:38]execute_cgi path=json_proto method=POST [14:33:38]POST find Content-Length [14:33:38]Host: 172.17.46.131:8080 [14:33:38]Content-Length: 678 [14:33:38]Content-Type: application/json [14:33:38] [14:33:38]POST finish read [14:33:38]Found Content-Length = 678 [14:33:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412218", "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" : 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" ] } } [14:33:38]execute_script... [14:33: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)412218", "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" : 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" ] } } [14:33:38]POST & json_proto [14:33:38]process_json_proto [14:33:38]json parsed OK: [14:33:38]protocol is kg_v1.0 [14:33:38]action value=close_receipt [14:33:38]process_action close_receipt [14:33:38]cmd_close_receipt [14:33:38]MH_GetDate [14:33:38]Write to MH i2c: F0 00 00 92 27 A8 [14:33:38]Write i2c OK [14:33:38]MH_I2C_Read... [14:33:38]Read from MH i2c: F0 [14:33:38]MH_I2C_Read... [14:33:38]Read from MH i2c: F0 09 00 [14:33:38]MH_I2C_Read... [14:33:38]Read from MH i2c: F0 09 00 92 27 00 C6 EB B5 67 7E 41 4F 65 F1 [14:33:38]GetLastDocTimeStamp 1739975349 [14:33:38]current date 1739975622 [14:33:38]FM_GetShiftState [14:33:38]SAM_PROTO_GetShiftState [14:33:38]wFMCommunicate request_size=4 [14:33:38]MH_SAM_APDU [14:33:38]CAPDU: 80 13 01 00 [14:33:38]Write to MH i2c: E2 08 00 93 27 80 13 01 00 00 00 00 00 37 [14:33:38]Write i2c OK [14:33:38]MH_I2C_Read... [14:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:38]Read from MH i2c: E2 [14:33:38]MH_I2C_Read... [14:33:38]Read from MH i2c: E2 0E 00 [14:33:38]MH_I2C_Read... [14:33:38]Read from MH i2c: E2 0E 00 93 27 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 B6 [14:33:38]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:33:38]wFMCommunicate OK [14:33:38]SAM_PROTO_GetShiftState done [14:33:38]FM_GetShiftState done [14:33:38]opened in 1739929631 [14:33:38]opened+sec_in_day 1740016031 [14:33:38]quantity*price = 300055 [14:33:38]sum+1 = 300057 [14:33:38]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 СНО: Общий режим Чек 133 19.02.2025 14:33 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187067 ФПД: 129723904173156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T143342&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187067&fm=129723904173156&tin=02508201610067®Number=0000000000091857&sum=300000 [14:33:39]StoreToDocumentArchive [14:33:39]shift 647 fd 187067 [14:33:39]save to /storage/0647/doc_00187067 [14:33:39]save last doc name /storage/0647/doc_00187067 to /storage/kkm_last_doc_name [14:33:39]save OK [14:33:39]Clear old archive folders... [14:33:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:33:39]tlvbuf is B6DB95D0 [14:33:39]SAM_PROTO_ClearQueue [14:33:39]wFMCommunicate request_size=4 [14:33:39]MH_SAM_APDU [14:33:39]CAPDU: 80 09 00 00 [14:33:39]Write to MH i2c: E2 08 00 A0 27 80 09 00 00 00 00 00 00 39 [14:33:39]Write i2c OK [14:33:39]MH_I2C_Read... [14:33:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:39]Read from MH i2c: E2 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: E2 03 00 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: E2 03 00 A0 27 00 90 00 3B [14:33:39]RAPDU: 90 00 [14:33:39]wFMCommunicate OK [14:33:39]SAM_PROTO_ClearQueue done [14:33:39]KKMCreateOFDPacket [14:33:39]OFDProtocolAddRootSTLVToBuf [14:33:39]FM_MakeSignedData [14:33:39]FM_MakeSignedData [14:33:39]SAM_PROTO_SignData [14:33:39]wFMCommunicate request_size=4 [14:33:39]MH_SAM_APDU [14:33:39]CAPDU: 80 0D 01 02 [14:33:39]Write to MH i2c: E2 08 00 A1 27 80 0D 01 02 00 00 00 00 41 [14:33:39]Write i2c OK [14:33:39]MH_I2C_Read... [14:33:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:39]Read from MH i2c: E2 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: E2 03 00 [14:33:39]MH_I2C_Read... [14:33:39]Read from MH i2c: E2 03 00 A1 27 00 90 00 3C [14:33:39]RAPDU: 90 00 [14:33:39]wFMCommunicate OK [14:33:39]wFMCommunicate request_size=255 [14:33:39]MH_SAM_APDU [14:33:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 85 00 00 00 F4 03 04 00 C6 EB 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 BB DA 02 00 35 04 06 00 75 FB B3 3A [14:33:39]Write to MH i2c: E2 02 01 A2 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 85 00 00 00 F4 03 04 00 C6 EB 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 BB DA 02 00 35 04 06 00 75 FB B3 3A 00 00 F8 [14:33:39]Write i2c OK [14:33:39]MH_I2C_Read... [14:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:40]Read from MH i2c: E2 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 03 00 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 03 00 A2 27 00 90 00 3D [14:33:40]RAPDU: 90 00 [14:33:40]wFMCommunicate OK [14:33:40]wFMCommunicate request_size=7 [14:33:40]MH_SAM_APDU [14:33:40]CAPDU: 80 0D 02 02 02 24 64 [14:33:40]Write to MH i2c: E2 0A 00 A3 27 80 0D 02 02 02 00 24 64 00 00 D0 [14:33:40]Write i2c OK [14:33:40]MH_I2C_Read... [14:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:40]Read from MH i2c: E2 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 03 00 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 03 00 A3 27 00 90 00 3E [14:33:40]RAPDU: 90 00 [14:33:40]wFMCommunicate OK [14:33:40]wFMCommunicate request_size=4 [14:33:40]MH_SAM_APDU [14:33:40]CAPDU: 80 0D 03 02 [14:33:40]Write to MH i2c: E2 08 00 A4 27 80 0D 03 02 00 00 00 00 46 [14:33:40]Write i2c OK [14:33:40]MH_I2C_Read... [14:33:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:40]Read from MH i2c: E2 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 0B 00 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 0B 00 A4 27 00 A5 B9 78 B1 AE 02 6F A0 90 00 8D [14:33:40]RAPDU: A5 B9 78 B1 AE 02 6F A0 90 00 [14:33:40]wFMCommunicate OK [14:33:40]SAM_PROTO_SignData done [14:33:40]FM_MakeSignedData done [14:33:40]CreateOFDProtocolMessage [14:33:40]wFMCommunicate request_size=4 [14:33:40]MH_SAM_APDU [14:33:40]CAPDU: 80 11 00 00 [14:33:40]Write to MH i2c: E2 08 00 A5 27 80 11 00 00 00 00 00 00 46 [14:33:40]Write i2c OK [14:33:40]MH_I2C_Read... [14:33:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:40]Read from MH i2c: E2 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 17 00 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: E2 17 00 A5 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 99 [14:33:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:33:40]wFMCommunicate OK [14:33:40]CreateOFDProtocolMessage done [14:33:40]OFDSenderStorePacket 187067 [14:33:40]StoreOFDPacket docnum=187067 [14:33: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 49 EE 04 01 6D 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 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 85 00 00 00 F4 03 04 00 C6 EB 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 BB DA 02 00 35 04 06 00 75 FB B3 3A 24 64 A5 B9 78 B1 AE 02 6F A0 [14:33:40]CheckFolder [14:33:40]dirname=/storage/ofd_packets [14:33:40]CheckFolder done [14:33:40]ProducePacketName [14:33:40]name=ofd_packets/00187067 [14:33:40]NVStorageSaveData ofd_packets/00187067 [14:33:40]File name is /storage/ofd_packets/00187067 [14:33:40]Write 298 bytes [14:33:40]NVStorageSaveData done [14:33:40]OFDSenderStorePacket done [14:33:40]KKMCreateOFDPacket done [14:33:40]NVStorageSaveData kkm_last_timestamp [14:33:40]File name is /storage/kkm_last_timestamp [14:33:40]Write 4 bytes [14:33:40]NVStorageSaveData done [14:33:40]ExternCall_PrintAddStr [14:33:40]wPrintStart [14:33:40]Write to MH i2c: 01 00 00 A6 27 CD [14:33:40]Write i2c OK [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: 01 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: 01 07 00 [14:33:40]MH_I2C_Read... [14:33:40]Read from MH i2c: 01 07 00 A6 27 00 00 00 00 00 FF 0F E2 [14:33:40]RasterBufferAndPrint [14:33:40]line Счет N : (1)412218 [14:33:40]line ИНН: 02508201610067 [14:33:40]line Контрольно-Кассовый Чек [14:33:40]line ПРОДАЖА [14:33:40]line ТРК (МРК, ГНК) : 5 [14:33:40]line Товар: 2710194210 [14:33:40]line ДТ-К-5 [14:33:40]line 41.330 * 72.60 [14:33:40]line = 3000.56 [14:33:40]line НДС 12% НСП 1% [14:33:40]line > о реализуемом товаре [14:33:40]line ОКРУГЛЕНИЕ: -0.56 [14:33:40]line ИТОГО: 3000.00 [14:33:40]line Внесено: 3000.00 [14:33:40]line СДАЧА: 0.00 [14:33:40]line НСП 1% : 26.55 [14:33:40]line НДС 12% : 318.64 [14:33:40]line Наличными: 3000.00 [14:33:40]line Безнал.: 0.00 [14:33:40]line Место: АЗС № 92 "Партнер Нефть" [14:33:40]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:33:40]line СНО: Общий режим [14:33:40]line Чек 133 19.02.2025 14:33 [14:33:40]line Смена: 647 ФФД: 1.0 [14:33:40]line ЗНМ: 0300000118 [14:33:40]line РНМ: 0000000000091857 [14:33:40]line Версия ККМ: 001 [14:33:40]line ФМ: 0000000000871826 [14:33:40]line ФД: 187067 [14:33:40]line ФПД: 129723904173156 [14:33:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T143342&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187067&fm=129723904173156&tin=02508201610067®Number=0000000000091857&sum=300000 [14:33:40]OFD Sender: Processing packet 187067 [packets to send 49, broken 48] [14:33:40]ProducePacketName [14:33:40]name=ofd_packets/00187067 [14:33:40]OFD Sender: To server: pG, [14:33:40]CommunicateWithHost lk.salyk.kg:30040 [14:33:40]ConnectInit lk.salyk.kg [14:33:40]written 0, free lines is 4095 [14:33:40]Connected sock=10 [14:33: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 49 EE 04 01 6D 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 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 85 00 00 00 F4 03 04 00 C6 EB 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 BB DA 02 00 35 04 06 00 75 FB B3 3A 24 64 A5 B9 78 B1 AE 02 6F A0 [14:33:41]Write to MH i2c: 01 00 00 D1 27 F8 [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: 01 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: 01 07 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: 01 07 00 D1 27 00 00 00 00 00 EC 0C F7 [14:33:41]RasterBufferAndPrint [14:33:41]line [14:33:41]line [14:33:41]line [14:33:41]line [14:33:41]line [14:33:41]written 0, free lines is 3314 [14:33: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 F6 DC 47 00 57 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 BB DA 02 00 F4 03 04 00 1A 92 B5 67 B6 04 01 00 00 69 0B 13 3E E7 72 38 0A [14:33:41]CommunicateWithHost err = 0 [14:33:41]CheckOFDResponse [14:33:41]1017 (14) - 77093643461234 [14:33:41]1041 (16) - 0000000000871826 [14:33:41]1040 (4) - 187067 [14:33:41]1012 (4) - 19.02.2025 08:11 [14:33:41]1206 (1) - 0 [14:33:41]OFD Sender: Remove packet 187067 [14:33:41]ProducePacketName [14:33:41]name=ofd_packets/00187067 [14:33:41]NVStorageDeleteData [14:33:41]MH_Cut [14:33:41]Write to MH i2c: D1 01 00 D8 27 01 D1 [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: D1 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: D1 01 00 [14:33:41]MH_I2C_Read... [14:33:41]Read from MH i2c: D1 01 00 D8 27 00 D0 [14:33:41]Write to MH i2c: 01 00 00 D9 27 00 [14:33:41]Write i2c OK [14:33:41]MH_I2C_Read... [14:33:41]OFD Sender: No OFD packet to send [14:33:41]*** Cut start [14:33:41]*** Partial cut [14:33:41]*** CUTSNS_PIN = 1 [14:33:41]*** CUTSNS_PIN = 0 [14:33:42]*** Brake cut motor [14:33:42]Read from MH i2c: 01 [14:33:42]MH_I2C_Read... [14:33:42]*** Stop cut motor [14:33:42]*** Cut end [14:33:42]Read from MH i2c: 01 07 00 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: 01 07 00 D9 27 00 00 00 00 00 FF 0F 15 [14:33:42]process_action close_receipt done [14:33:42]requested_data is exist [14:33:42]produce_requested_data [14:33:42]requested_item fm.sn is exist - process it [14:33:42]wFMCommunicate request_size=4 [14:33:42]MH_SAM_APDU [14:33:42]CAPDU: 80 11 00 00 [14:33:42]Write to MH i2c: E2 08 00 DA 27 80 11 00 00 00 00 00 00 7B [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:42]Read from MH i2c: E2 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: E2 17 00 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: E2 17 00 DA 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CE [14:33:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:33:42]wFMCommunicate OK [14:33:42]requested_item fd.num is exist - process it [14:33:42]SAM_PROTO_GetFieldsCounters [14:33:42]wFMCommunicate request_size=4 [14:33:42]MH_SAM_APDU [14:33:42]CAPDU: 80 13 00 00 [14:33:42]Write to MH i2c: E2 08 00 DB 27 80 13 00 00 00 00 00 00 7E [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:42]Read from MH i2c: E2 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: E2 62 00 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: E2 62 00 DB 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 BB DA 02 00 0E 04 04 00 87 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 53 [14:33: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 BB DA 02 00 0E 04 04 00 87 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 [14:33:42]wFMCommunicate OK [14:33:42]SAM_PROTO_GetFieldsCounters done [14:33:42]requested_item shift.num is exist - process it [14:33:42]requested_item shift.opened is exist - process it [14:33:42]req_shift_opened [14:33:42]FM_GetShiftState [14:33:42]SAM_PROTO_GetShiftState [14:33:42]wFMCommunicate request_size=4 [14:33:42]MH_SAM_APDU [14:33:42]CAPDU: 80 13 01 00 [14:33:42]Write to MH i2c: E2 08 00 DC 27 80 13 01 00 00 00 00 00 80 [14:33:42]Write i2c OK [14:33:42]MH_I2C_Read... [14:33:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:42]Read from MH i2c: E2 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: E2 0E 00 [14:33:42]MH_I2C_Read... [14:33:42]Read from MH i2c: E2 0E 00 DC 27 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 FF [14:33:42]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:33:42]wFMCommunicate OK [14:33:42]SAM_PROTO_GetShiftState done [14:33:42]FM_GetShiftState done [14:33:42]req_shift_opened done [14:33:42]requested_item shift.open_date is exist - process it [14:33:42]req_shift_open_date [14:33:42]req_shift_open_date done [14:33:42]produce_requested_data done [14:33:42]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187067,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [14:33:42]process_action_free close_receipt [14:33:42]json_value_free [14:33:42]json_value_free done [14:33:42]process_json_proto returns [14:33:42]Send response to host [14:33:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187067,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [14:33:42]free response buf [14:33:42]execute_script done [14:33:42]execute_script returns [14:33:42]free content buf [14:33:42]Sock 7.Close socket [14:33:42]Sock 7.Thread stoped [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:13]accept exits with 9 [14:35:13]New connection [14:35:13]New thread 3066879332 created [14:35:13]Thread 3067022692 joined [14:35:13]Waiting for new connection... [14:35:13] Sock 9.Parse request [14:35:13]Sock 9.Check first char [14:35:13]Sock 9.First char is OK [14:35:13]request: POST /json_proto HTTP/1.0 [14:35:13]Method: POST [14:35:13]URL: /json_proto [14:35:13]Method is POST - this is cgi request [14:35:13]url: /json_proto [14:35:13]query_string will be loaded in cgi processing [14:35:13]execute_cgi json_proto POST (null) [14:35:13]execute_cgi path=json_proto method=POST [14:35:13]POST find Content-Length [14:35:13]Host: 172.17.46.131:8080 [14:35:13]Content-Length: 673 [14:35:13]Content-Type: application/json [14:35:13] [14:35:13]POST finish read [14:35:13]Found Content-Length = 673 [14:35:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412219", "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" ] } } [14:35:13]execute_script... [14:35:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412219", "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" ] } } [14:35:13]POST & json_proto [14:35:13]process_json_proto [14:35:13]json parsed OK: [14:35:13]protocol is kg_v1.0 [14:35:13]action value=close_receipt [14:35:13]process_action close_receipt [14:35:13]cmd_close_receipt [14:35:13]MH_GetDate [14:35:13]Write to MH i2c: F0 00 00 DD 27 F3 [14:35:13]Write i2c OK [14:35:13]MH_I2C_Read... [14:35:13]Read from MH i2c: F0 [14:35:13]MH_I2C_Read... [14:35:13]Read from MH i2c: F0 09 00 [14:35:13]MH_I2C_Read... [14:35:13]Read from MH i2c: F0 09 00 DD 27 00 25 EC B5 67 7E 41 4F 65 9C [14:35:13]GetLastDocTimeStamp 1739975622 [14:35:13]current date 1739975717 [14:35:13]FM_GetShiftState [14:35:13]SAM_PROTO_GetShiftState [14:35:13]wFMCommunicate request_size=4 [14:35:13]MH_SAM_APDU [14:35:13]CAPDU: 80 13 01 00 [14:35:13]Write to MH i2c: E2 08 00 DE 27 80 13 01 00 00 00 00 00 82 [14:35:13]Write i2c OK [14:35:13]MH_I2C_Read... [14:35:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:13]Read from MH i2c: E2 [14:35:13]MH_I2C_Read... [14:35:13]Read from MH i2c: E2 0E 00 [14:35:13]MH_I2C_Read... [14:35:13]Read from MH i2c: E2 0E 00 DE 27 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 01 [14:35:13]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:35:13]wFMCommunicate OK [14:35:13]SAM_PROTO_GetShiftState done [14:35:13]FM_GetShiftState done [14:35:13]opened in 1739929631 [14:35:13]opened+sec_in_day 1740016031 [14:35:13]quantity*price = 50021 [14:35:13]sum+1 = 50022 [14:35:13]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 СНО: Общий режим Чек 134 19.02.2025 14:35 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187068 ФПД: 75664158107208 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T143517&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187068&fm=75664158107208&tin=02508201610067®Number=0000000000091857&sum=50000 [14:35:14]StoreToDocumentArchive [14:35:14]shift 647 fd 187068 [14:35:14]save to /storage/0647/doc_00187068 [14:35:14]save last doc name /storage/0647/doc_00187068 to /storage/kkm_last_doc_name [14:35:14]save OK [14:35:14]Clear old archive folders... [14:35:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:35:14]tlvbuf is 005E2DB0 [14:35:14]SAM_PROTO_ClearQueue [14:35:14]wFMCommunicate request_size=4 [14:35:14]MH_SAM_APDU [14:35:14]CAPDU: 80 09 00 00 [14:35:14]Write to MH i2c: E2 08 00 EB 27 80 09 00 00 00 00 00 00 84 [14:35:14]Write i2c OK [14:35:14]MH_I2C_Read... [14:35:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:15]Read from MH i2c: E2 [14:35:15]MH_I2C_Read... [14:35:15]Read from MH i2c: E2 03 00 [14:35:15]MH_I2C_Read... [14:35:15]Read from MH i2c: E2 03 00 EB 27 00 90 00 86 [14:35:15]RAPDU: 90 00 [14:35:15]wFMCommunicate OK [14:35:15]SAM_PROTO_ClearQueue done [14:35:15]KKMCreateOFDPacket [14:35:15]OFDProtocolAddRootSTLVToBuf [14:35:15]FM_MakeSignedData [14:35:15]FM_MakeSignedData [14:35:15]SAM_PROTO_SignData [14:35:15]wFMCommunicate request_size=4 [14:35:15]MH_SAM_APDU [14:35:15]CAPDU: 80 0D 01 02 [14:35:15]Write to MH i2c: E2 08 00 EC 27 80 0D 01 02 00 00 00 00 8C [14:35:15]Write i2c OK [14:35:15]MH_I2C_Read... [14:35:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:15]Read from MH i2c: E2 [14:35:15]MH_I2C_Read... [14:35:15]Read from MH i2c: E2 03 00 [14:35:15]MH_I2C_Read... [14:35:15]Read from MH i2c: E2 03 00 EC 27 00 90 00 87 [14:35:15]RAPDU: 90 00 [14:35:15]wFMCommunicate OK [14:35:15]wFMCommunicate request_size=255 [14:35:15]MH_SAM_APDU [14:35:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 86 00 00 00 F4 03 04 00 25 EC 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 BC DA 02 00 35 04 06 00 44 D0 EF 44 [14:35:15]Write to MH i2c: E2 02 01 ED 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 86 00 00 00 F4 03 04 00 25 EC 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 BC DA 02 00 35 04 06 00 44 D0 EF 44 00 00 63 [14:35:15]Write i2c OK [14:35:15]MH_I2C_Read... [14:35:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:15]Read from MH i2c: E2 [14:35:15]MH_I2C_Read... [14:35:15]Read from MH i2c: E2 03 00 [14:35:15]MH_I2C_Read... [14:35:15]Read from MH i2c: E2 03 00 ED 27 00 90 00 88 [14:35:15]RAPDU: 90 00 [14:35:15]wFMCommunicate OK [14:35:15]wFMCommunicate request_size=7 [14:35:15]MH_SAM_APDU [14:35:15]CAPDU: 80 0D 02 02 02 26 48 [14:35:15]Write to MH i2c: E2 0A 00 EE 27 80 0D 02 02 02 00 26 48 00 00 01 [14:35:15]Write i2c OK [14:35:15]MH_I2C_Read... [14:35:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:15]Read from MH i2c: E2 [14:35:15]MH_I2C_Read... [14:35:15]Read from MH i2c: E2 03 00 [14:35:15]MH_I2C_Read... [14:35:15]Read from MH i2c: E2 03 00 EE 27 00 90 00 89 [14:35:15]RAPDU: 90 00 [14:35:15]wFMCommunicate OK [14:35:15]wFMCommunicate request_size=4 [14:35:15]MH_SAM_APDU [14:35:15]CAPDU: 80 0D 03 02 [14:35:15]Write to MH i2c: E2 08 00 EF 27 80 0D 03 02 00 00 00 00 91 [14:35:15]Write i2c OK [14:35:15]MH_I2C_Read... [14:35:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:15]Read from MH i2c: E2 [14:35:15]MH_I2C_Read... [14:35:15]Read from MH i2c: E2 0B 00 [14:35:15]MH_I2C_Read... [14:35:15]Read from MH i2c: E2 0B 00 EF 27 00 77 56 88 3D A9 75 D4 1F 90 00 35 [14:35:15]RAPDU: 77 56 88 3D A9 75 D4 1F 90 00 [14:35:15]wFMCommunicate OK [14:35:15]SAM_PROTO_SignData done [14:35:15]FM_MakeSignedData done [14:35:15]CreateOFDProtocolMessage [14:35:15]wFMCommunicate request_size=4 [14:35:15]MH_SAM_APDU [14:35:15]CAPDU: 80 11 00 00 [14:35:15]Write to MH i2c: E2 08 00 F0 27 80 11 00 00 00 00 00 00 91 [14:35:15]Write i2c OK [14:35:15]MH_I2C_Read... [14:35:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:15]Read from MH i2c: E2 [14:35:15]MH_I2C_Read... [14:35:15]Read from MH i2c: E2 17 00 [14:35:15]MH_I2C_Read... [14:35:15]Read from MH i2c: E2 17 00 F0 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E4 [14:35:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:35:15]wFMCommunicate OK [14:35:15]CreateOFDProtocolMessage done [14:35:15]OFDSenderStorePacket 187068 [14:35:15]StoreOFDPacket docnum=187068 [14:35: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 0C 01 00 00 15 05 04 01 4E 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 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 86 00 00 00 F4 03 04 00 25 EC 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 BC DA 02 00 35 04 06 00 44 D0 EF 44 26 48 77 56 88 3D A9 75 D4 1F [14:35:15]CheckFolder [14:35:15]dirname=/storage/ofd_packets [14:35:15]CheckFolder done [14:35:15]ProducePacketName [14:35:15]name=ofd_packets/00187068 [14:35:15]NVStorageSaveData ofd_packets/00187068 [14:35:15]File name is /storage/ofd_packets/00187068 [14:35:15]Write 298 bytes [14:35:15]NVStorageSaveData done [14:35:15]OFDSenderStorePacket done [14:35:15]KKMCreateOFDPacket done [14:35:15]NVStorageSaveData kkm_last_timestamp [14:35:15]File name is /storage/kkm_last_timestamp [14:35:15]Write 4 bytes [14:35:15]NVStorageSaveData done [14:35:15]ExternCall_PrintAddStr [14:35:15]wPrintStart [14:35:15]Write to MH i2c: 01 00 00 F1 27 18 [14:35:15]Write i2c OK [14:35:15]MH_I2C_Read... [14:35:15]Read from MH i2c: 01 [14:35:15]MH_I2C_Read... [14:35:15]Read from MH i2c: 01 07 00 [14:35:15]MH_I2C_Read... [14:35:15]Read from MH i2c: 01 07 00 F1 27 00 00 00 00 00 FF 0F 2D [14:35:15]RasterBufferAndPrint [14:35:15]line Счет N : (1)412219 [14:35:15]line ИНН: 02508201610067 [14:35:15]line Контрольно-Кассовый Чек [14:35:15]line ПРОДАЖА [14:35:15]line ТРК (МРК, ГНК) : 5 [14:35:15]line Товар: 2710194210 [14:35:15]line ДТ-К-5 [14:35:15]line 6.890 * 72.60 [14:35:15]line = 500.21 [14:35:15]line НДС 12% НСП 1% [14:35:15]line > о реализуемом товаре [14:35:15]line ОКРУГЛЕНИЕ: -0.21 [14:35:15]line ИТОГО: 500.00 [14:35:15]line Внесено: 500.00 [14:35:15]line СДАЧА: 0.00 [14:35:15]line НСП 1% : 4.43 [14:35:15]line НДС 12% : 53.12 [14:35:15]line Наличными: 500.00 [14:35:15]line Безнал.: 0.00 [14:35:15]line Место: АЗС № 92 "Партнер Нефть" [14:35:15]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:35:15]line СНО: Общий режим [14:35:15]line Чек 134 19.02.2025 14:35 [14:35:15]line Смена: 647 ФФД: 1.0 [14:35:15]line ЗНМ: 0300000118 [14:35:15]line РНМ: 0000000000091857 [14:35:15]line Версия ККМ: 001 [14:35:15]line ФМ: 0000000000871826 [14:35:15]line ФД: 187068 [14:35:15]line ФПД: 75664158107208 [14:35:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T143517&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187068&fm=75664158107208&tin=02508201610067®Number=0000000000091857&sum=50000 [14:35:15]OFD Sender: Processing packet 187068 [packets to send 49, broken 48] [14:35:15]ProducePacketName [14:35:15]name=ofd_packets/00187068 [14:35:15]OFD Sender: To server: pG, [14:35:15]CommunicateWithHost lk.salyk.kg:30040 [14:35:15]ConnectInit lk.salyk.kg [14:35:15]written 0, free lines is 4095 [14:35:15]Connected sock=10 [14:35: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 15 05 04 01 4E 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 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 86 00 00 00 F4 03 04 00 25 EC 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 BC DA 02 00 35 04 06 00 44 D0 EF 44 26 48 77 56 88 3D A9 75 D4 1F [14:35:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 EF 6F 47 00 23 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BC DA 02 00 F4 03 04 00 79 92 B5 67 B6 04 01 00 00 DD DF E3 8D C8 E8 B0 DF [14:35:16]CommunicateWithHost err = 0 [14:35:16]CheckOFDResponse [14:35:16]1017 (14) - 77093643461234 [14:35:16]1041 (16) - 0000000000871826 [14:35:16]1040 (4) - 187068 [14:35:16]1012 (4) - 19.02.2025 08:12 [14:35:16]1206 (1) - 0 [14:35:16]OFD Sender: Remove packet 187068 [14:35:16]ProducePacketName [14:35:16]name=ofd_packets/00187068 [14:35:16]NVStorageDeleteData [14:35:16]Write to MH i2c: 01 00 00 1C 28 44 [14:35:16]Write i2c OK [14:35:16]MH_I2C_Read... [14:35:16]Read from MH i2c: 01 [14:35:16]MH_I2C_Read... [14:35:16]Read from MH i2c: 01 07 00 [14:35:16]MH_I2C_Read... [14:35:16]Read from MH i2c: 01 07 00 1C 28 00 00 00 00 00 E0 0C 37 [14:35:16]RasterBufferAndPrint [14:35:16]line [14:35:16]line [14:35:16]line [14:35:16]line [14:35:16]line [14:35:16]written 0, free lines is 3302 [14:35:16]MH_Cut [14:35:16]Write to MH i2c: D1 01 00 23 28 01 1D [14:35:16]Write i2c OK [14:35:16]MH_I2C_Read... [14:35:16]Read from MH i2c: D1 [14:35:16]MH_I2C_Read... [14:35:16]Read from MH i2c: D1 01 00 [14:35:16]MH_I2C_Read... [14:35:16]Read from MH i2c: D1 01 00 23 28 00 1C [14:35:16]Write to MH i2c: 01 00 00 24 28 4C [14:35:16]Write i2c OK [14:35:16]MH_I2C_Read... [14:35:16]OFD Sender: No OFD packet to send [14:35:16]*** Cut start [14:35:16]*** Partial cut [14:35:16]*** CUTSNS_PIN = 1 [14:35:17]*** CUTSNS_PIN = 0 [14:35:17]*** Brake cut motor [14:35:17]Read from MH i2c: 01 [14:35:17]MH_I2C_Read... [14:35:17]*** Stop cut motor [14:35:17]*** Cut end [14:35:17]Read from MH i2c: 01 07 00 [14:35:17]MH_I2C_Read... [14:35:17]Read from MH i2c: 01 07 00 24 28 00 00 00 00 00 FF 0F 61 [14:35:17]process_action close_receipt done [14:35:17]requested_data is exist [14:35:17]produce_requested_data [14:35:17]requested_item fm.sn is exist - process it [14:35:17]wFMCommunicate request_size=4 [14:35:17]MH_SAM_APDU [14:35:17]CAPDU: 80 11 00 00 [14:35:17]Write to MH i2c: E2 08 00 25 28 80 11 00 00 00 00 00 00 C7 [14:35:17]Write i2c OK [14:35:17]MH_I2C_Read... [14:35:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:17]Read from MH i2c: E2 [14:35:17]MH_I2C_Read... [14:35:17]Read from MH i2c: E2 17 00 [14:35:17]MH_I2C_Read... [14:35:17]Read from MH i2c: E2 17 00 25 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1A [14:35:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:35:17]wFMCommunicate OK [14:35:17]requested_item fd.num is exist - process it [14:35:17]SAM_PROTO_GetFieldsCounters [14:35:17]wFMCommunicate request_size=4 [14:35:17]MH_SAM_APDU [14:35:17]CAPDU: 80 13 00 00 [14:35:17]Write to MH i2c: E2 08 00 26 28 80 13 00 00 00 00 00 00 CA [14:35:17]Write i2c OK [14:35:17]MH_I2C_Read... [14:35:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:17]Read from MH i2c: E2 [14:35:17]MH_I2C_Read... [14:35:17]Read from MH i2c: E2 62 00 [14:35:17]MH_I2C_Read... [14:35:17]Read from MH i2c: E2 62 00 26 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 BC DA 02 00 0E 04 04 00 87 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 A3 [14:35: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 BC DA 02 00 0E 04 04 00 87 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 [14:35:17]wFMCommunicate OK [14:35:17]SAM_PROTO_GetFieldsCounters done [14:35:17]requested_item shift.num is exist - process it [14:35:17]requested_item shift.opened is exist - process it [14:35:17]req_shift_opened [14:35:17]FM_GetShiftState [14:35:17]SAM_PROTO_GetShiftState [14:35:17]wFMCommunicate request_size=4 [14:35:17]MH_SAM_APDU [14:35:17]CAPDU: 80 13 01 00 [14:35:17]Write to MH i2c: E2 08 00 27 28 80 13 01 00 00 00 00 00 CC [14:35:17]Write i2c OK [14:35:17]MH_I2C_Read... [14:35:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:17]Read from MH i2c: E2 [14:35:17]MH_I2C_Read... [14:35:17]Read from MH i2c: E2 0E 00 [14:35:17]MH_I2C_Read... [14:35:17]Read from MH i2c: E2 0E 00 27 28 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 4B [14:35:17]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:35:17]wFMCommunicate OK [14:35:17]SAM_PROTO_GetShiftState done [14:35:17]FM_GetShiftState done [14:35:17]req_shift_opened done [14:35:17]requested_item shift.open_date is exist - process it [14:35:17]req_shift_open_date [14:35:17]req_shift_open_date done [14:35:17]produce_requested_data done [14:35:17]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187068,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [14:35:17]process_action_free close_receipt [14:35:17]json_value_free [14:35:17]json_value_free done [14:35:17]process_json_proto returns [14:35:17]Send response to host [14:35:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187068,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [14:35:17]free response buf [14:35:17]execute_script done [14:35:17]execute_script returns [14:35:17]free content buf [14:35:17]Sock 9.Close socket [14:35:17]Sock 9.Thread stoped [14:35:21]OFD Sender: No OFD packet to send [14:35:24]accept exits with 7 [14:35:24]New connection [14:35:24]New thread 3067022692 created [14:35:24]Thread 3066879332 joined [14:35:24]Waiting for new connection... [14:35:24] Sock 7.Parse request [14:35:24]Sock 7.Check first char [14:35:24]Sock 7.First char is OK [14:35:24]request: POST /json_proto HTTP/1.0 [14:35:24]Method: POST [14:35:24]URL: /json_proto [14:35:24]Method is POST - this is cgi request [14:35:24]url: /json_proto [14:35:24]query_string will be loaded in cgi processing [14:35:24]execute_cgi json_proto POST (null) [14:35:24]execute_cgi path=json_proto method=POST [14:35:24]POST find Content-Length [14:35:24]Host: 172.17.46.131:8080 [14:35:24]Content-Length: 677 [14:35:24]Content-Type: application/json [14:35:24] [14:35:24]POST finish read [14:35:24]Found Content-Length = 677 [14:35:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412220", "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.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:35:24]execute_script... [14:35: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)412220", "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.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:35:24]POST & json_proto [14:35:24]process_json_proto [14:35:24]json parsed OK: [14:35:24]protocol is kg_v1.0 [14:35:24]action value=close_receipt [14:35:24]process_action close_receipt [14:35:24]cmd_close_receipt [14:35:24]MH_GetDate [14:35:24]Write to MH i2c: F0 00 00 28 28 3F [14:35:24]Write i2c OK [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: F0 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: F0 09 00 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: F0 09 00 28 28 00 30 EC B5 67 7E 41 4F 65 F3 [14:35:24]GetLastDocTimeStamp 1739975717 [14:35:24]current date 1739975728 [14:35:24]FM_GetShiftState [14:35:24]SAM_PROTO_GetShiftState [14:35:24]wFMCommunicate request_size=4 [14:35:24]MH_SAM_APDU [14:35:24]CAPDU: 80 13 01 00 [14:35:24]Write to MH i2c: E2 08 00 29 28 80 13 01 00 00 00 00 00 CE [14:35:24]Write i2c OK [14:35:24]MH_I2C_Read... [14:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:24]Read from MH i2c: E2 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: E2 0E 00 [14:35:24]MH_I2C_Read... [14:35:24]Read from MH i2c: E2 0E 00 29 28 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 4D [14:35:24]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:35:24]wFMCommunicate OK [14:35:24]SAM_PROTO_GetShiftState done [14:35:24]FM_GetShiftState done [14:35:24]opened in 1739929631 [14:35:24]opened+sec_in_day 1740016031 [14:35:24]quantity*price = 20030 [14:35:24]sum+1 = 20031 [14:35:24]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 СНО: Общий режим Чек 135 19.02.2025 14:35 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187069 ФПД: 256141069152902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T143528&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187069&fm=256141069152902&tin=02508201610067®Number=0000000000091857&sum=20000 [14:35:26]StoreToDocumentArchive [14:35:26]shift 647 fd 187069 [14:35:26]save to /storage/0647/doc_00187069 [14:35:26]save last doc name /storage/0647/doc_00187069 to /storage/kkm_last_doc_name [14:35:26]save OK [14:35:26]Clear old archive folders... [14:35:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:35:26]tlvbuf is 005B9F30 [14:35:26]SAM_PROTO_ClearQueue [14:35:26]wFMCommunicate request_size=4 [14:35:26]MH_SAM_APDU [14:35:26]CAPDU: 80 09 00 00 [14:35:26]Write to MH i2c: E2 08 00 36 28 80 09 00 00 00 00 00 00 D0 [14:35:26]Write i2c OK [14:35:26]MH_I2C_Read... [14:35:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:26]Read from MH i2c: E2 [14:35:26]MH_I2C_Read... [14:35:26]Read from MH i2c: E2 03 00 [14:35:26]MH_I2C_Read... [14:35:26]Read from MH i2c: E2 03 00 36 28 00 90 00 D2 [14:35:26]RAPDU: 90 00 [14:35:26]wFMCommunicate OK [14:35:26]SAM_PROTO_ClearQueue done [14:35:26]KKMCreateOFDPacket [14:35:26]OFDProtocolAddRootSTLVToBuf [14:35:26]FM_MakeSignedData [14:35:26]FM_MakeSignedData [14:35:26]SAM_PROTO_SignData [14:35:26]wFMCommunicate request_size=4 [14:35:26]MH_SAM_APDU [14:35:26]CAPDU: 80 0D 01 02 [14:35:26]Write to MH i2c: E2 08 00 37 28 80 0D 01 02 00 00 00 00 D8 [14:35:26]Write i2c OK [14:35:26]MH_I2C_Read... [14:35:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:26]Read from MH i2c: E2 [14:35:26]MH_I2C_Read... [14:35:26]Read from MH i2c: E2 03 00 [14:35:26]MH_I2C_Read... [14:35:26]Read from MH i2c: E2 03 00 37 28 00 90 00 D3 [14:35:26]RAPDU: 90 00 [14:35:26]wFMCommunicate OK [14:35:26]wFMCommunicate request_size=255 [14:35:26]MH_SAM_APDU [14:35: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 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 87 00 00 00 F4 03 04 00 30 EC 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 BD DA 02 00 35 04 06 00 E8 [14:35:26]Write to MH i2c: E2 02 01 38 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 87 00 00 00 F4 03 04 00 30 EC 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 BD DA 02 00 35 04 06 00 E8 00 00 86 [14:35:26]Write i2c OK [14:35:26]MH_I2C_Read... [14:35:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:26]Read from MH i2c: E2 [14:35:26]MH_I2C_Read... [14:35:26]Read from MH i2c: E2 03 00 [14:35:26]MH_I2C_Read... [14:35:26]Read from MH i2c: E2 03 00 38 28 00 90 00 D4 [14:35:26]RAPDU: 90 00 [14:35:26]wFMCommunicate OK [14:35:26]wFMCommunicate request_size=10 [14:35:26]MH_SAM_APDU [14:35:26]CAPDU: 80 0D 02 02 05 F5 7D 70 72 86 [14:35:26]Write to MH i2c: E2 0D 00 39 28 80 0D 02 02 05 00 F5 7D 70 72 86 00 00 BF [14:35:26]Write i2c OK [14:35:26]MH_I2C_Read... [14:35:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:26]Read from MH i2c: E2 [14:35:26]MH_I2C_Read... [14:35:26]Read from MH i2c: E2 03 00 [14:35:26]MH_I2C_Read... [14:35:26]Read from MH i2c: E2 03 00 39 28 00 90 00 D5 [14:35:26]RAPDU: 90 00 [14:35:26]wFMCommunicate OK [14:35:26]wFMCommunicate request_size=4 [14:35:26]MH_SAM_APDU [14:35:26]CAPDU: 80 0D 03 02 [14:35:26]Write to MH i2c: E2 08 00 3A 28 80 0D 03 02 00 00 00 00 DD [14:35:26]Write i2c OK [14:35:26]MH_I2C_Read... [14:35:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:26]Read from MH i2c: E2 [14:35:26]MH_I2C_Read... [14:35:26]Read from MH i2c: E2 0B 00 [14:35:26]MH_I2C_Read... [14:35:26]Read from MH i2c: E2 0B 00 3A 28 00 03 70 1E 1E 09 EC 21 13 90 00 B6 [14:35:26]RAPDU: 03 70 1E 1E 09 EC 21 13 90 00 [14:35:26]wFMCommunicate OK [14:35:26]SAM_PROTO_SignData done [14:35:26]FM_MakeSignedData done [14:35:26]CreateOFDProtocolMessage [14:35:26]wFMCommunicate request_size=4 [14:35:26]MH_SAM_APDU [14:35:26]CAPDU: 80 11 00 00 [14:35:26]Write to MH i2c: E2 08 00 3B 28 80 11 00 00 00 00 00 00 DD [14:35:26]Write i2c OK [14:35:26]MH_I2C_Read... [14:35:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:26]Read from MH i2c: E2 [14:35:26]MH_I2C_Read... [14:35:26]Read from MH i2c: E2 17 00 [14:35:26]MH_I2C_Read... [14:35:26]Read from MH i2c: E2 17 00 3B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 30 [14:35:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:35:26]wFMCommunicate OK [14:35:26]CreateOFDProtocolMessage done [14:35:26]OFDSenderStorePacket 187069 [14:35:26]StoreOFDPacket docnum=187069 [14:35: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 FF 4C 07 01 D0 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 87 00 00 00 F4 03 04 00 30 EC 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 BD DA 02 00 35 04 06 00 E8 F5 7D 70 72 86 03 70 1E 1E 09 EC 21 13 [14:35:26]CheckFolder [14:35:26]dirname=/storage/ofd_packets [14:35:26]CheckFolder done [14:35:26]ProducePacketName [14:35:26]name=ofd_packets/00187069 [14:35:26]NVStorageSaveData ofd_packets/00187069 [14:35:26]File name is /storage/ofd_packets/00187069 [14:35:26]Write 301 bytes [14:35:26]NVStorageSaveData done [14:35:26]OFDSenderStorePacket done [14:35:26]KKMCreateOFDPacket done [14:35:26]NVStorageSaveData kkm_last_timestamp [14:35:26]File name is /storage/kkm_last_timestamp [14:35:26]Write 4 bytes [14:35:26]NVStorageSaveData done [14:35:26]ExternCall_PrintAddStr [14:35:26]wPrintStart [14:35:26]Write to MH i2c: 01 00 00 3C 28 64 [14:35:26]Write i2c OK [14:35:26]MH_I2C_Read... [14:35:26]Read from MH i2c: 01 [14:35:26]MH_I2C_Read... [14:35:26]Read from MH i2c: 01 07 00 [14:35:26]MH_I2C_Read... [14:35:26]Read from MH i2c: 01 07 00 3C 28 00 00 00 00 00 FF 0F 79 [14:35:26]RasterBufferAndPrint [14:35:26]line Счет N : (1)412220 [14:35:26]line ИНН: 02508201610067 [14:35:26]line Контрольно-Кассовый Чек [14:35:26]line ПРОДАЖА [14:35:26]line ТРК (МРК, ГНК) : 12 [14:35:26]line Товар: 2710124130 [14:35:26]line Аи-92-К-2 [14:35:26]line 3.120 * 64.20 [14:35:26]line = 200.30 [14:35:26]line НДС 12% НСП 1% [14:35:26]line > о реализуемом товаре [14:35:26]line ОКРУГЛЕНИЕ: -0.30 [14:35:26]line ИТОГО: 200.00 [14:35:26]line Внесено: 200.00 [14:35:26]line СДАЧА: 0.00 [14:35:26]line НСП 1% : 1.77 [14:35:26]line НДС 12% : 21.27 [14:35:26]line Наличными: 200.00 [14:35:26]line Безнал.: 0.00 [14:35:26]line Место: АЗС № 92 "Партнер Нефть" [14:35:26]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:35:26]line СНО: Общий режим [14:35:26]line Чек 135 19.02.2025 14:35 [14:35:26]line Смена: 647 ФФД: 1.0 [14:35:26]line ЗНМ: 0300000118 [14:35:26]line РНМ: 0000000000091857 [14:35:26]line Версия ККМ: 001 [14:35:26]line ФМ: 0000000000871826 [14:35:26]line ФД: 187069 [14:35:26]line ФПД: 256141069152902 [14:35:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T143528&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187069&fm=256141069152902&tin=02508201610067®Number=0000000000091857&sum=20000 [14:35:26]written 0, free lines is 4095 [14:35:26]OFD Sender: Processing packet 187069 [packets to send 49, broken 48] [14:35:26]ProducePacketName [14:35:26]name=ofd_packets/00187069 [14:35:26]OFD Sender: To server: pG, [14:35:26]CommunicateWithHost lk.salyk.kg:30040 [14:35:26]ConnectInit lk.salyk.kg [14:35:26]Connected sock=10 [14:35: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 FF 4C 07 01 D0 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 87 00 00 00 F4 03 04 00 30 EC 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 BD DA 02 00 35 04 06 00 E8 F5 7D 70 72 86 03 70 1E 1E 09 EC 21 13 [14:35: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 1B E0 47 00 46 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BD DA 02 00 F4 03 04 00 84 92 B5 67 B6 04 01 00 00 23 A2 75 8A 9D 14 E5 BC [14:35:27]CommunicateWithHost err = 0 [14:35:27]CheckOFDResponse [14:35:27]1017 (14) - 77093643461234 [14:35:27]1041 (16) - 0000000000871826 [14:35:27]1040 (4) - 187069 [14:35:27]1012 (4) - 19.02.2025 08:12 [14:35:27]1206 (1) - 0 [14:35:27]OFD Sender: Remove packet 187069 [14:35:27]ProducePacketName [14:35:27]name=ofd_packets/00187069 [14:35:27]NVStorageDeleteData [14:35:27]Write to MH i2c: 01 00 00 67 28 8F [14:35:27]Write i2c OK [14:35:27]MH_I2C_Read... [14:35:27]Read from MH i2c: 01 [14:35:27]MH_I2C_Read... [14:35:27]Read from MH i2c: 01 07 00 [14:35:27]MH_I2C_Read... [14:35:27]Read from MH i2c: 01 07 00 67 28 00 00 00 00 00 E4 0C 86 [14:35:27]RasterBufferAndPrint [14:35:27]line [14:35:27]line [14:35:27]line [14:35:27]line [14:35:27]line [14:35:27]written 0, free lines is 3309 [14:35:27]MH_Cut [14:35:27]Write to MH i2c: D1 01 00 6E 28 01 68 [14:35:27]Write i2c OK [14:35:27]MH_I2C_Read... [14:35:27]Read from MH i2c: D1 [14:35:27]MH_I2C_Read... [14:35:27]Read from MH i2c: D1 01 00 [14:35:27]MH_I2C_Read... [14:35:27]Read from MH i2c: D1 01 00 6E 28 00 67 [14:35:27]Write to MH i2c: 01 00 00 6F 28 97 [14:35:27]Write i2c OK [14:35:27]MH_I2C_Read... [14:35:27]OFD Sender: No OFD packet to send [14:35:27]*** Cut start [14:35:27]*** Partial cut [14:35:27]*** CUTSNS_PIN = 1 [14:35:27]*** CUTSNS_PIN = 0 [14:35:28]*** Brake cut motor [14:35:28]Read from MH i2c: 01 [14:35:28]MH_I2C_Read... [14:35:28]*** Stop cut motor [14:35:28]*** Cut end [14:35:28]Read from MH i2c: 01 07 00 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: 01 07 00 6F 28 00 00 00 00 00 FF 0F AC [14:35:28]process_action close_receipt done [14:35:28]requested_data is exist [14:35:28]produce_requested_data [14:35:28]requested_item fm.sn is exist - process it [14:35:28]wFMCommunicate request_size=4 [14:35:28]MH_SAM_APDU [14:35:28]CAPDU: 80 11 00 00 [14:35:28]Write to MH i2c: E2 08 00 70 28 80 11 00 00 00 00 00 00 12 [14:35:28]Write i2c OK [14:35:28]MH_I2C_Read... [14:35:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:28]Read from MH i2c: E2 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 17 00 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 17 00 70 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 65 [14:35:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:35:28]wFMCommunicate OK [14:35:28]requested_item fd.num is exist - process it [14:35:28]SAM_PROTO_GetFieldsCounters [14:35:28]wFMCommunicate request_size=4 [14:35:28]MH_SAM_APDU [14:35:28]CAPDU: 80 13 00 00 [14:35:28]Write to MH i2c: E2 08 00 71 28 80 13 00 00 00 00 00 00 15 [14:35:28]Write i2c OK [14:35:28]MH_I2C_Read... [14:35:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:28]Read from MH i2c: E2 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 62 00 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 62 00 71 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 BD DA 02 00 0E 04 04 00 87 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 F2 [14: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 BD DA 02 00 0E 04 04 00 87 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 [14:35:28]wFMCommunicate OK [14:35:28]SAM_PROTO_GetFieldsCounters done [14:35:28]requested_item shift.num is exist - process it [14:35:28]requested_item shift.opened is exist - process it [14:35:28]req_shift_opened [14:35:28]FM_GetShiftState [14:35:28]SAM_PROTO_GetShiftState [14:35:28]wFMCommunicate request_size=4 [14:35:28]MH_SAM_APDU [14:35:28]CAPDU: 80 13 01 00 [14:35:28]Write to MH i2c: E2 08 00 72 28 80 13 01 00 00 00 00 00 17 [14:35:28]Write i2c OK [14:35:28]MH_I2C_Read... [14:35:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:28]Read from MH i2c: E2 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 0E 00 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 0E 00 72 28 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 96 [14:35:28]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:35:28]wFMCommunicate OK [14:35:28]SAM_PROTO_GetShiftState done [14:35:28]FM_GetShiftState done [14:35:28]req_shift_opened done [14:35:28]requested_item shift.open_date is exist - process it [14:35:28]req_shift_open_date [14:35:28]req_shift_open_date done [14:35:28]produce_requested_data done [14:35:28]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187069,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [14:35:28]process_action_free close_receipt [14:35:28]json_value_free [14:35:28]json_value_free done [14:35:28]process_json_proto returns [14:35:28]Send response to host [14:35:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187069,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [14:35:28]free response buf [14:35:28]execute_script done [14:35:28]execute_script returns [14:35:28]free content buf [14:35:28]Sock 7.Close socket [14:35:28]Sock 7.Thread stoped [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:02]OFD Sender: No OFD packet to send [14:39:07]OFD Sender: No OFD packet to send [14:39:12]OFD Sender: No OFD packet to send [14:39:17]OFD Sender: No OFD packet to send [14:39:22]OFD Sender: No OFD packet to send [14:39:27]OFD Sender: No OFD packet to send [14:39:32]OFD Sender: No OFD packet to send [14:39:37]OFD Sender: No OFD packet to send [14:39:42]OFD Sender: No OFD packet to send [14:39:47]OFD Sender: No OFD packet to send [14:39:52]OFD Sender: No OFD packet to send [14:39:57]OFD Sender: No OFD packet to send [14:40:02]OFD Sender: No OFD packet to send [14:40:07]OFD Sender: No OFD packet to send [14:40:12]OFD Sender: No OFD packet to send [14:40:17]OFD Sender: No OFD packet to send [14:40:22]OFD Sender: No OFD packet to send [14:40:27]OFD Sender: No OFD packet to send [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:47]OFD Sender: No OFD packet to send [14:40:52]OFD Sender: No OFD packet to send [14:40:57]OFD Sender: No OFD packet to send [14:41:02]OFD Sender: No OFD packet to send [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:42:02]OFD Sender: No OFD packet to send [14:42:07]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:36]accept exits with 9 [14:42:36]New connection [14:42:36]New thread 3066879332 created [14:42:36]Thread 3067022692 joined [14:42:36]Waiting for new connection... [14:42:36] Sock 9.Parse request [14:42:36]Sock 9.Check first char [14:42:36]Sock 9.First char is OK [14:42:36]request: POST /json_proto HTTP/1.0 [14:42:36]Method: POST [14:42:36]URL: /json_proto [14:42:36]Method is POST - this is cgi request [14:42:36]url: /json_proto [14:42:36]query_string will be loaded in cgi processing [14:42:36]execute_cgi json_proto POST (null) [14:42:36]execute_cgi path=json_proto method=POST [14:42:36]POST find Content-Length [14:42:36]Host: 172.17.46.131:8080 [14:42:36]Content-Length: 792 [14:42:36]Content-Type: application/json [14:42:36] [14:42:36]POST finish read [14:42:36]Found Content-Length = 792 [14:42:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412221", "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.880, "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\u000A53068", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:36]execute_script... [14:42: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)412221", "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.880, "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\u000A53068", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:36]POST & json_proto [14:42:36]process_json_proto [14:42:36]json parsed OK: [14:42:36]protocol is kg_v1.0 [14:42:36]action value=close_receipt [14:42:36]process_action close_receipt [14:42:36]cmd_close_receipt [14:42:36]MH_GetDate [14:42:36]Write to MH i2c: F0 00 00 73 28 8A [14:42:36]Write i2c OK [14:42:36]MH_I2C_Read... [14:42:36]Read from MH i2c: F0 [14:42:36]MH_I2C_Read... [14:42:36]Read from MH i2c: F0 09 00 [14:42:36]MH_I2C_Read... [14:42:36]Read from MH i2c: F0 09 00 73 28 00 E0 ED B5 67 7E 41 4F 65 EF [14:42:36]GetLastDocTimeStamp 1739975728 [14:42:36]current date 1739976160 [14:42:36]FM_GetShiftState [14:42:36]SAM_PROTO_GetShiftState [14:42:36]wFMCommunicate request_size=4 [14:42:36]MH_SAM_APDU [14:42:36]CAPDU: 80 13 01 00 [14:42:36]Write to MH i2c: E2 08 00 74 28 80 13 01 00 00 00 00 00 19 [14:42:36]Write i2c OK [14:42:36]MH_I2C_Read... [14:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:36]Read from MH i2c: E2 [14:42:36]MH_I2C_Read... [14:42:36]Read from MH i2c: E2 0E 00 [14:42:36]MH_I2C_Read... [14:42:36]Read from MH i2c: E2 0E 00 74 28 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 98 [14:42:36]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:42:36]wFMCommunicate OK [14:42:36]SAM_PROTO_GetShiftState done [14:42:36]FM_GetShiftState done [14:42:36]opened in 1739929631 [14:42:36]opened+sec_in_day 1740016031 [14:42:36]quantity*price = 0 [14:42:36]sum+1 = 1 [14:42:36]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 19.02.2025 14:42 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 53068 ФМ: 0000000000871826 ФД: 187070 ФПД: 123297560598494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T144240&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187070&fm=123297560598494&tin=02508201610067®Number=0000000000091857&sum=0 [14:42:38]StoreToDocumentArchive [14:42:38]shift 647 fd 187070 [14:42:38]save to /storage/0647/doc_00187070 [14:42:38]save last doc name /storage/0647/doc_00187070 to /storage/kkm_last_doc_name [14:42:38]save OK [14:42:38]Clear old archive folders... [14:42:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:38]tlvbuf is 005E4EC0 [14:42:38]SAM_PROTO_ClearQueue [14:42:38]wFMCommunicate request_size=4 [14:42:38]MH_SAM_APDU [14:42:38]CAPDU: 80 09 00 00 [14:42:38]Write to MH i2c: E2 08 00 81 28 80 09 00 00 00 00 00 00 1B [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:38]Read from MH i2c: E2 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 03 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 03 00 81 28 00 90 00 1D [14:42:38]RAPDU: 90 00 [14:42:38]wFMCommunicate OK [14:42:38]SAM_PROTO_ClearQueue done [14:42:38]KKMCreateOFDPacket [14:42:38]OFDProtocolAddRootSTLVToBuf [14:42:38]FM_MakeSignedData [14:42:38]FM_MakeSignedData [14:42:38]SAM_PROTO_SignData [14:42:38]wFMCommunicate request_size=4 [14:42:38]MH_SAM_APDU [14:42:38]CAPDU: 80 0D 01 02 [14:42:38]Write to MH i2c: E2 08 00 82 28 80 0D 01 02 00 00 00 00 23 [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:38]Read from MH i2c: E2 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 03 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 03 00 82 28 00 90 00 1E [14:42:38]RAPDU: 90 00 [14:42:38]wFMCommunicate OK [14:42:38]wFMCommunicate request_size=255 [14:42:38]MH_SAM_APDU [14:42: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 A0 78 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 E0 ED 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 BE DA 02 00 35 04 06 00 70 [14:42:38]Write to MH i2c: E2 02 01 83 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 A0 78 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 E0 ED 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 BE DA 02 00 35 04 06 00 70 00 00 4B [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:38]Read from MH i2c: E2 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 03 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 03 00 83 28 00 90 00 1F [14:42:38]RAPDU: 90 00 [14:42:38]wFMCommunicate OK [14:42:38]wFMCommunicate request_size=10 [14:42:38]MH_SAM_APDU [14:42:38]CAPDU: 80 0D 02 02 05 23 73 4D 17 DE [14:42:38]Write to MH i2c: E2 0D 00 84 28 80 0D 02 02 05 00 23 73 4D 17 DE 00 00 08 [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:38]Read from MH i2c: E2 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 03 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 03 00 84 28 00 90 00 20 [14:42:38]RAPDU: 90 00 [14:42:38]wFMCommunicate OK [14:42:38]wFMCommunicate request_size=4 [14:42:38]MH_SAM_APDU [14:42:38]CAPDU: 80 0D 03 02 [14:42:38]Write to MH i2c: E2 08 00 85 28 80 0D 03 02 00 00 00 00 28 [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:38]Read from MH i2c: E2 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 0B 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 0B 00 85 28 00 77 8D AF 53 DB 2A EA C2 90 00 E0 [14:42:38]RAPDU: 77 8D AF 53 DB 2A EA C2 90 00 [14:42:38]wFMCommunicate OK [14:42:38]SAM_PROTO_SignData done [14:42:38]FM_MakeSignedData done [14:42:38]CreateOFDProtocolMessage [14:42:38]wFMCommunicate request_size=4 [14:42:38]MH_SAM_APDU [14:42:38]CAPDU: 80 11 00 00 [14:42:38]Write to MH i2c: E2 08 00 86 28 80 11 00 00 00 00 00 00 28 [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:38]Read from MH i2c: E2 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 17 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 17 00 86 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7B [14:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:42:38]wFMCommunicate OK [14:42:38]CreateOFDProtocolMessage done [14:42:38]OFDSenderStorePacket 187070 [14:42:38]StoreOFDPacket docnum=187070 [14:42: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 BD DF 07 01 5A 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A0 78 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 E0 ED 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 BE DA 02 00 35 04 06 00 70 23 73 4D 17 DE 77 8D AF 53 DB 2A EA C2 [14:42:38]CheckFolder [14:42:38]dirname=/storage/ofd_packets [14:42:38]CheckFolder done [14:42:38]ProducePacketName [14:42:38]name=ofd_packets/00187070 [14:42:38]NVStorageSaveData ofd_packets/00187070 [14:42:38]File name is /storage/ofd_packets/00187070 [14:42:38]Write 301 bytes [14:42:38]NVStorageSaveData done [14:42:38]OFDSenderStorePacket done [14:42:38]KKMCreateOFDPacket done [14:42:38]NVStorageSaveData kkm_last_timestamp [14:42:38]File name is /storage/kkm_last_timestamp [14:42:38]Write 4 bytes [14:42:38]NVStorageSaveData done [14:42:38]ExternCall_PrintAddStr [14:42:38]wPrintStart [14:42:38]Write to MH i2c: 01 00 00 87 28 AF [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: 01 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: 01 07 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: 01 07 00 87 28 00 00 00 00 00 FF 0F C4 [14:42:38]RasterBufferAndPrint [14:42:38]line Счет N : (1)412221 [14:42:38]line ИНН: 02508201610067 [14:42:38]line Контрольно-Кассовый Чек [14:42:38]line ПРОДАЖА [14:42:38]line ТРК (МРК, ГНК) : 12 [14:42:38]line Товар: 2710124130 [14:42:38]line Аи-92-К-2 [14:42:38]line 30.880 * 0.00 [14:42:38]line = 0.00 [14:42:38]line НДС 12% НСП 1% [14:42:38]line > о реализуемом товаре [14:42:38]line ИТОГО: 0.00 [14:42:38]line НСП 1% : 0.00 [14:42:38]line НДС 12% : 0.00 [14:42:38]line Наличными: 0.00 [14:42:38]line Безнал.: 0.00 [14:42:38]line Место: АЗС № 92 "Партнер Нефть" [14:42:38]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:42:38]line СНО: Общий режим [14:42:38]line Чек 136 19.02.2025 14:42 [14:42:38]line Смена: 647 ФФД: 1.0 [14:42:38]line ЗНМ: 0300000118 [14:42:38]line РНМ: 0000000000091857 [14:42:38]line Версия ККМ: 001 [14:42:38]line Талоны: Топливная Карта [14:42:38]line 53068 [14:42:38]line ФМ: 0000000000871826 [14:42:38]line ФД: 187070 [14:42:38]line ФПД: 123297560598494 [14:42:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T144240&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187070&fm=123297560598494&tin=02508201610067®Number=0000000000091857&sum=0 [14:42:38]written 0, free lines is 4095 [14:42:38]OFD Sender: Processing packet 187070 [packets to send 49, broken 48] [14:42:38]ProducePacketName [14:42:38]name=ofd_packets/00187070 [14:42:38]OFD Sender: To server: pG, [14:42:38]CommunicateWithHost lk.salyk.kg:30040 [14:42:38]ConnectInit lk.salyk.kg [14:42:39]Connected sock=10 [14:42: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 BD DF 07 01 5A 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A0 78 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 E0 ED 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 BE DA 02 00 35 04 06 00 70 23 73 4D 17 DE 77 8D AF 53 DB 2A EA C2 [14:42:39]Write to MH i2c: 01 00 00 B1 28 D9 [14:42:39]Write i2c OK [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: 01 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: 01 07 00 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: 01 07 00 B1 28 00 00 00 00 00 FA 0C E6 [14:42:39]RasterBufferAndPrint [14:42:39]line [14:42:39]line [14:42:39]line [14:42:39]line [14:42:39]line [14:42:39]written 0, free lines is 3328 [14:42:39]MH_Cut [14:42:39]Write to MH i2c: D1 01 00 B8 28 01 B2 [14:42:39]Write i2c OK [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: D1 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: D1 01 00 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: D1 01 00 B8 28 00 B1 [14:42:39]Write to MH i2c: 01 00 00 B9 28 E1 [14:42:39]Write i2c OK [14:42:39]MH_I2C_Read... [14:42: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 72 10 47 00 79 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 BE DA 02 00 F4 03 04 00 34 94 B5 67 B6 04 01 00 00 F6 C6 D9 A6 29 51 00 49 [14:42:39]CommunicateWithHost err = 0 [14:42:39]CheckOFDResponse [14:42:39]1017 (14) - 77093643461234 [14:42:39]1041 (16) - 0000000000871826 [14:42:39]1040 (4) - 187070 [14:42:39]1012 (4) - 19.02.2025 08:20 [14:42:39]1206 (1) - 0 [14:42:39]OFD Sender: Remove packet 187070 [14:42:39]ProducePacketName [14:42:39]name=ofd_packets/00187070 [14:42:39]NVStorageDeleteData [14:42:39]OFD Sender: No OFD packet to send [14:42:40]*** Cut start [14:42:40]*** Partial cut [14:42:40]*** CUTSNS_PIN = 1 [14:42:40]*** CUTSNS_PIN = 0 [14:42:40]*** Brake cut motor [14:42:40]Read from MH i2c: 01 [14:42:40]MH_I2C_Read... [14:42:40]*** Stop cut motor [14:42:40]*** Cut end [14:42:40]Read from MH i2c: 01 07 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: 01 07 00 B9 28 00 00 00 00 00 FF 0F F6 [14:42:40]process_action close_receipt done [14:42:40]requested_data is exist [14:42:40]produce_requested_data [14:42:40]requested_item fm.sn is exist - process it [14:42:40]wFMCommunicate request_size=4 [14:42:40]MH_SAM_APDU [14:42:40]CAPDU: 80 11 00 00 [14:42:40]Write to MH i2c: E2 08 00 BA 28 80 11 00 00 00 00 00 00 5C [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 17 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 17 00 BA 28 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:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:42:40]wFMCommunicate OK [14:42:40]requested_item fd.num is exist - process it [14:42:40]SAM_PROTO_GetFieldsCounters [14:42:40]wFMCommunicate request_size=4 [14:42:40]MH_SAM_APDU [14:42:40]CAPDU: 80 13 00 00 [14:42:40]Write to MH i2c: E2 08 00 BB 28 80 13 00 00 00 00 00 00 5F [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 62 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 62 00 BB 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 BE DA 02 00 0E 04 04 00 87 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 40 [14:42: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 BE DA 02 00 0E 04 04 00 87 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 [14:42:40]wFMCommunicate OK [14:42:40]SAM_PROTO_GetFieldsCounters done [14:42:40]requested_item shift.num is exist - process it [14:42:40]requested_item shift.opened is exist - process it [14:42:40]req_shift_opened [14:42:40]FM_GetShiftState [14:42:40]SAM_PROTO_GetShiftState [14:42:40]wFMCommunicate request_size=4 [14:42:40]MH_SAM_APDU [14:42:40]CAPDU: 80 13 01 00 [14:42:40]Write to MH i2c: E2 08 00 BC 28 80 13 01 00 00 00 00 00 61 [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 [14:42:41]MH_I2C_Read... [14:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:41]Read from MH i2c: E2 0E 00 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: E2 0E 00 BC 28 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E0 [14:42:41]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:42:41]wFMCommunicate OK [14:42:41]SAM_PROTO_GetShiftState done [14:42:41]FM_GetShiftState done [14:42:41]req_shift_opened done [14:42:41]requested_item shift.open_date is exist - process it [14:42:41]req_shift_open_date [14:42:41]req_shift_open_date done [14:42:41]produce_requested_data done [14:42:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187070,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [14:42:41]process_action_free close_receipt [14:42:41]json_value_free [14:42:41]json_value_free done [14:42:41]process_json_proto returns [14:42:41]Send response to host [14:42:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187070,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [14:42:41]free response buf [14:42:41]execute_script done [14:42:41]execute_script returns [14:42:41]free content buf [14:42:41]Sock 9.Close socket [14:42:41]Sock 9.Thread stoped [14:42:44]OFD Sender: No OFD packet to send [14:42:49]OFD Sender: No OFD packet to send [14:42:54]OFD Sender: No OFD packet to send [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:43:09]OFD Sender: No OFD packet to send [14:43:14]OFD Sender: No OFD packet to send [14:43:19]OFD Sender: No OFD packet to send [14:43:24]OFD Sender: No OFD packet to send [14:43:29]OFD Sender: No OFD packet to send [14:43:34]OFD Sender: No OFD packet to send [14:43:39]OFD Sender: No OFD packet to send [14:43:44]OFD Sender: No OFD packet to send [14:43:49]OFD Sender: No OFD packet to send [14:43:54]OFD Sender: No OFD packet to send [14:43:59]OFD Sender: No OFD packet to send [14:44:04]OFD Sender: No OFD packet to send [14:44:09]OFD Sender: No OFD packet to send [14:44:14]OFD Sender: No OFD packet to send [14:44:19]OFD Sender: No OFD packet to send [14:44:24]OFD Sender: No OFD packet to send [14:44:29]OFD Sender: No OFD packet to send [14:44:34]OFD Sender: No OFD packet to send [14:44:39]OFD Sender: No OFD packet to send [14:44:44]OFD Sender: No OFD packet to send [14:44:49]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:05]OFD Sender: No OFD packet to send [14:45:05]accept exits with 7 [14:45:05]New connection [14:45:05]New thread 3067022692 created [14:45:05]Thread 3066879332 joined [14:45:05]Waiting for new connection... [14:45:05] Sock 7.Parse request [14:45:05]Sock 7.Check first char [14:45:05]Sock 7.First char is OK [14:45:05]request: POST /json_proto HTTP/1.0 [14:45:05]Method: POST [14:45:05]URL: /json_proto [14:45:05]Method is POST - this is cgi request [14:45:05]url: /json_proto [14:45:05]query_string will be loaded in cgi processing [14:45:05]execute_cgi json_proto POST (null) [14:45:05]execute_cgi path=json_proto method=POST [14:45:05]POST find Content-Length [14:45:05]Host: 172.17.46.131:8080 [14:45:05]Content-Length: 682 [14:45:05]Content-Type: application/json [14:45:05] [14:45:05]POST finish read [14:45:05]Found Content-Length = 682 [14:45:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412222", "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" : 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" ] } } [14:45:05]execute_script... [14:45:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412222", "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" : 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" ] } } [14:45:05]POST & json_proto [14:45:05]process_json_proto [14:45:05]json parsed OK: [14:45:05]protocol is kg_v1.0 [14:45:05]action value=close_receipt [14:45:05]process_action close_receipt [14:45:05]cmd_close_receipt [14:45:05]MH_GetDate [14:45:05]Write to MH i2c: F0 00 00 BD 28 D4 [14:45:05]Write i2c OK [14:45:05]MH_I2C_Read... [14:45:05]Read from MH i2c: F0 [14:45:05]MH_I2C_Read... [14:45:05]Read from MH i2c: F0 09 00 [14:45:05]MH_I2C_Read... [14:45:05]Read from MH i2c: F0 09 00 BD 28 00 75 EE B5 67 7E 41 4F 65 CF [14:45:05]GetLastDocTimeStamp 1739976160 [14:45:05]current date 1739976309 [14:45:05]FM_GetShiftState [14:45:05]SAM_PROTO_GetShiftState [14:45:05]wFMCommunicate request_size=4 [14:45:05]MH_SAM_APDU [14:45:05]CAPDU: 80 13 01 00 [14:45:05]Write to MH i2c: E2 08 00 BE 28 80 13 01 00 00 00 00 00 63 [14:45:05]Write i2c OK [14:45:05]MH_I2C_Read... [14:45:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:05]Read from MH i2c: E2 [14:45:05]MH_I2C_Read... [14:45:05]Read from MH i2c: E2 0E 00 [14:45:05]MH_I2C_Read... [14:45:05]Read from MH i2c: E2 0E 00 BE 28 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E2 [14:45:05]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:45:05]wFMCommunicate OK [14:45:05]SAM_PROTO_GetShiftState done [14:45:05]FM_GetShiftState done [14:45:05]opened in 1739929631 [14:45:05]opened+sec_in_day 1740016031 [14:45:05]quantity*price = 150055 [14:45:05]sum+1 = 150056 [14:45:05]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 СНО: Общий режим Чек 137 19.02.2025 14:45 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187071 ФПД: 71873754117873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T144509&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187071&fm=71873754117873&tin=02508201610067®Number=0000000000091857&sum=150000 [14:45:07]StoreToDocumentArchive [14:45:07]shift 647 fd 187071 [14:45:07]save to /storage/0647/doc_00187071 [14:45:07]save last doc name /storage/0647/doc_00187071 to /storage/kkm_last_doc_name [14:45:07]save OK [14:45:07]Clear old archive folders... [14:45:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:07]tlvbuf is 005C6CA0 [14:45:07]SAM_PROTO_ClearQueue [14:45:07]wFMCommunicate request_size=4 [14:45:07]MH_SAM_APDU [14:45:07]CAPDU: 80 09 00 00 [14:45:07]Write to MH i2c: E2 08 00 CB 28 80 09 00 00 00 00 00 00 65 [14:45:07]Write i2c OK [14:45:07]MH_I2C_Read... [14:45:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:07]Read from MH i2c: E2 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 03 00 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 03 00 CB 28 00 90 00 67 [14:45:07]RAPDU: 90 00 [14:45:07]wFMCommunicate OK [14:45:07]SAM_PROTO_ClearQueue done [14:45:07]KKMCreateOFDPacket [14:45:07]OFDProtocolAddRootSTLVToBuf [14:45:07]FM_MakeSignedData [14:45:07]FM_MakeSignedData [14:45:07]SAM_PROTO_SignData [14:45:07]wFMCommunicate request_size=4 [14:45:07]MH_SAM_APDU [14:45:07]CAPDU: 80 0D 01 02 [14:45:07]Write to MH i2c: E2 08 00 CC 28 80 0D 01 02 00 00 00 00 6D [14:45:07]Write i2c OK [14:45:07]MH_I2C_Read... [14:45:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:07]Read from MH i2c: E2 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 03 00 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 03 00 CC 28 00 90 00 68 [14:45:07]RAPDU: 90 00 [14:45:07]wFMCommunicate OK [14:45:07]wFMCommunicate request_size=255 [14:45:07]MH_SAM_APDU [14:45: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 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 89 00 00 00 F4 03 04 00 75 EE 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 BF DA 02 00 35 04 06 00 41 [14:45:07]Write to MH i2c: E2 02 01 CD 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 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 89 00 00 00 F4 03 04 00 75 EE 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 BF DA 02 00 35 04 06 00 41 00 00 91 [14:45:07]Write i2c OK [14:45:07]MH_I2C_Read... [14:45:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:07]Read from MH i2c: E2 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 03 00 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 03 00 CD 28 00 90 00 69 [14:45:07]RAPDU: 90 00 [14:45:07]wFMCommunicate OK [14:45:07]wFMCommunicate request_size=10 [14:45:07]MH_SAM_APDU [14:45:07]CAPDU: 80 0D 02 02 05 5E 69 95 36 F1 [14:45:07]Write to MH i2c: E2 0D 00 CE 28 80 0D 02 02 05 00 5E 69 95 36 F1 00 00 FD [14:45:07]Write i2c OK [14:45:07]MH_I2C_Read... [14:45:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:07]Read from MH i2c: E2 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 03 00 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 03 00 CE 28 00 90 00 6A [14:45:07]RAPDU: 90 00 [14:45:07]wFMCommunicate OK [14:45:07]wFMCommunicate request_size=4 [14:45:07]MH_SAM_APDU [14:45:07]CAPDU: 80 0D 03 02 [14:45:07]Write to MH i2c: E2 08 00 CF 28 80 0D 03 02 00 00 00 00 72 [14:45:07]Write i2c OK [14:45:07]MH_I2C_Read... [14:45:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:07]Read from MH i2c: E2 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 0B 00 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 0B 00 CF 28 00 76 73 D7 5F EB B2 CC CF 90 00 CA [14:45:07]RAPDU: 76 73 D7 5F EB B2 CC CF 90 00 [14:45:07]wFMCommunicate OK [14:45:07]SAM_PROTO_SignData done [14:45:07]FM_MakeSignedData done [14:45:07]CreateOFDProtocolMessage [14:45:07]wFMCommunicate request_size=4 [14:45:07]MH_SAM_APDU [14:45:07]CAPDU: 80 11 00 00 [14:45:07]Write to MH i2c: E2 08 00 D0 28 80 11 00 00 00 00 00 00 72 [14:45:07]Write i2c OK [14:45:07]MH_I2C_Read... [14:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:07]Read from MH i2c: E2 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 17 00 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: E2 17 00 D0 28 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:07]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:07]wFMCommunicate OK [14:45:07]CreateOFDProtocolMessage done [14:45:07]OFDSenderStorePacket 187071 [14:45:07]StoreOFDPacket docnum=187071 [14:45: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 16 4B 07 01 37 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 89 00 00 00 F4 03 04 00 75 EE 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 BF DA 02 00 35 04 06 00 41 5E 69 95 36 F1 76 73 D7 5F EB B2 CC CF [14:45:07]CheckFolder [14:45:07]dirname=/storage/ofd_packets [14:45:07]CheckFolder done [14:45:07]ProducePacketName [14:45:07]name=ofd_packets/00187071 [14:45:07]NVStorageSaveData ofd_packets/00187071 [14:45:07]File name is /storage/ofd_packets/00187071 [14:45:07]Write 301 bytes [14:45:07]NVStorageSaveData done [14:45:07]OFDSenderStorePacket done [14:45:07]KKMCreateOFDPacket done [14:45:07]NVStorageSaveData kkm_last_timestamp [14:45:07]File name is /storage/kkm_last_timestamp [14:45:07]Write 4 bytes [14:45:07]NVStorageSaveData done [14:45:07]OFD Sender: Processing packet 187071 [packets to send 49, broken 48] [14:45:07]ProducePacketName [14:45:07]name=ofd_packets/00187071 [14:45:07]OFD Sender: To server: pG, [14:45:07]CommunicateWithHost lk.salyk.kg:30040 [14:45:07]ConnectInit lk.salyk.kg [14:45:07]ExternCall_PrintAddStr [14:45:07]wPrintStart [14:45:07]Write to MH i2c: 01 00 00 D1 28 F9 [14:45:07]Write i2c OK [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: 01 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: 01 07 00 [14:45:07]MH_I2C_Read... [14:45:07]Read from MH i2c: 01 07 00 D1 28 00 00 00 00 00 FF 0F 0E [14:45:07]RasterBufferAndPrint [14:45:07]line Счет N : (1)412222 [14:45:07]line ИНН: 02508201610067 [14:45:07]line Контрольно-Кассовый Чек [14:45:07]line ПРОДАЖА [14:45:07]line ТРК (МРК, ГНК) : 43 [14:45:07]line Товар: 2710124500 [14:45:07]line Аи-95-К-5 [14:45:07]line 20.870 * 71.90 [14:45:07]line = 1500.55 [14:45:07]line НДС 12% НСП 1% [14:45:07]line > о реализуемом товаре [14:45:07]line ОКРУГЛЕНИЕ: -0.55 [14:45:07]line ИТОГО: 1500.00 [14:45:07]line Внесено: 1500.00 [14:45:07]line СДАЧА: 0.00 [14:45:07]line НСП 1% : 13.28 [14:45:07]line НДС 12% : 159.35 [14:45:07]line Наличными: 1500.00 [14:45:07]line Безнал.: 0.00 [14:45:07]line Место: АЗС № 92 "Партнер Нефть" [14:45:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:45:07]line СНО: Общий режим [14:45:07]line Чек 137 19.02.2025 14:45 [14:45:07]line Смена: 647 ФФД: 1.0 [14:45:07]line ЗНМ: 0300000118 [14:45:07]line РНМ: 0000000000091857 [14:45:07]line Версия ККМ: 001 [14:45:07]line ФМ: 0000000000871826 [14:45:07]line ФД: 187071 [14:45:07]line ФПД: 71873754117873 [14:45:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T144509&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187071&fm=71873754117873&tin=02508201610067®Number=0000000000091857&sum=150000 [14:45:07]Connected sock=11 [14:45: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 16 4B 07 01 37 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 89 00 00 00 F4 03 04 00 75 EE 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 BF DA 02 00 35 04 06 00 41 5E 69 95 36 F1 76 73 D7 5F EB B2 CC CF [14:45:08]written 0, free lines is 4095 [14:45: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 6B B8 47 00 AA 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 BF DA 02 00 F4 03 04 00 C9 94 B5 67 B6 04 01 00 00 8A 11 BB C6 FD 7C E9 05 [14:45:08]CommunicateWithHost err = 0 [14:45:08]CheckOFDResponse [14:45:08]1017 (14) - 77093643461234 [14:45:08]1041 (16) - 0000000000871826 [14:45:08]1040 (4) - 187071 [14:45:08]1012 (4) - 19.02.2025 08:22 [14:45:08]1206 (1) - 0 [14:45:08]OFD Sender: Remove packet 187071 [14:45:08]ProducePacketName [14:45:08]name=ofd_packets/00187071 [14:45:08]NVStorageDeleteData [14:45:08]Write to MH i2c: 01 00 00 FC 28 24 [14:45:08]Write i2c OK [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: 01 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: 01 07 00 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: 01 07 00 FC 28 00 00 00 00 00 EA 0C 21 [14:45:08]RasterBufferAndPrint [14:45:08]line [14:45:08]line [14:45:08]line [14:45:08]line [14:45:08]line [14:45:08]written 0, free lines is 3313 [14:45:08]MH_Cut [14:45:08]Write to MH i2c: D1 01 00 03 29 01 FE [14:45:08]Write i2c OK [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: D1 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: D1 01 00 [14:45:08]MH_I2C_Read... [14:45:08]Read from MH i2c: D1 01 00 03 29 00 FD [14:45:08]Write to MH i2c: 01 00 00 04 29 2D [14:45:08]Write i2c OK [14:45:08]MH_I2C_Read... [14:45:08]OFD Sender: No OFD packet to send [14:45:09]*** Cut start [14:45:09]*** Partial cut [14:45:09]*** CUTSNS_PIN = 1 [14:45:09]*** CUTSNS_PIN = 0 [14:45:09]*** Brake cut motor [14:45:09]Read from MH i2c: 01 [14:45:09]MH_I2C_Read... [14:45:09]*** Stop cut motor [14:45:09]*** Cut end [14:45:09]Read from MH i2c: 01 07 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: 01 07 00 04 29 00 00 00 00 00 FF 0F 42 [14:45:09]process_action close_receipt done [14:45:09]requested_data is exist [14:45:09]produce_requested_data [14:45:09]requested_item fm.sn is exist - process it [14:45:09]wFMCommunicate request_size=4 [14:45:09]MH_SAM_APDU [14:45:09]CAPDU: 80 11 00 00 [14:45:09]Write to MH i2c: E2 08 00 05 29 80 11 00 00 00 00 00 00 A8 [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:09]Read from MH i2c: E2 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 17 00 [14:45:09]MH_I2C_Read... [14:45:09]Read from MH i2c: E2 17 00 05 29 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:09]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:09]wFMCommunicate OK [14:45:09]requested_item fd.num is exist - process it [14:45:09]SAM_PROTO_GetFieldsCounters [14:45:09]wFMCommunicate request_size=4 [14:45:09]MH_SAM_APDU [14:45:09]CAPDU: 80 13 00 00 [14:45:09]Write to MH i2c: E2 08 00 06 29 80 13 00 00 00 00 00 00 AB [14:45:09]Write i2c OK [14:45:09]MH_I2C_Read... [14:45:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:10]Read from MH i2c: E2 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: E2 62 00 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: E2 62 00 06 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 BF DA 02 00 0E 04 04 00 87 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 90 [14:45: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 BF DA 02 00 0E 04 04 00 87 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 [14:45:10]wFMCommunicate OK [14:45:10]SAM_PROTO_GetFieldsCounters done [14:45:10]requested_item shift.num is exist - process it [14:45:10]requested_item shift.opened is exist - process it [14:45:10]req_shift_opened [14:45:10]FM_GetShiftState [14:45:10]SAM_PROTO_GetShiftState [14:45:10]wFMCommunicate request_size=4 [14:45:10]MH_SAM_APDU [14:45:10]CAPDU: 80 13 01 00 [14:45:10]Write to MH i2c: E2 08 00 07 29 80 13 01 00 00 00 00 00 AD [14:45:10]Write i2c OK [14:45:10]MH_I2C_Read... [14:45:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:10]Read from MH i2c: E2 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: E2 0E 00 [14:45:10]MH_I2C_Read... [14:45:10]Read from MH i2c: E2 0E 00 07 29 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 2C [14:45:10]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:45:10]wFMCommunicate OK [14:45:10]SAM_PROTO_GetShiftState done [14:45:10]FM_GetShiftState done [14:45:10]req_shift_opened done [14:45:10]requested_item shift.open_date is exist - process it [14:45:10]req_shift_open_date [14:45:10]req_shift_open_date done [14:45:10]produce_requested_data done [14:45:10]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187071,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [14:45:10]process_action_free close_receipt [14:45:10]json_value_free [14:45:10]json_value_free done [14:45:10]process_json_proto returns [14:45:10]Send response to host [14:45:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187071,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [14:45:10]free response buf [14:45:10]execute_script done [14:45:10]execute_script returns [14:45:10]free content buf [14:45:10]Sock 7.Close socket [14:45:10]Sock 7.Thread stoped [14:45:13]OFD Sender: No OFD packet to send [14:45:14]accept exits with 9 [14:45:14]New connection [14:45:14]New thread 3066879332 created [14:45:14]Thread 3067022692 joined [14:45:14]Waiting for new connection... [14:45:14] Sock 9.Parse request [14:45:14]Sock 9.Check first char [14:45:14]Sock 9.First char is OK [14:45:14]request: POST /json_proto HTTP/1.0 [14:45:14]Method: POST [14:45:14]URL: /json_proto [14:45:14]Method is POST - this is cgi request [14:45:14]url: /json_proto [14:45:14]query_string will be loaded in cgi processing [14:45:14]execute_cgi json_proto POST (null) [14:45:14]execute_cgi path=json_proto method=POST [14:45:14]POST find Content-Length [14:45:14]Host: 172.17.46.131:8080 [14:45:14]Content-Length: 803 [14:45:14]Content-Type: application/json [14:45:14] [14:45:14]POST finish read [14:45:14]Found Content-Length = 803 [14:45:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412223", "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" ] } } [14:45:14]execute_script... [14: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)412223", "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" ] } } [14:45:14]POST & json_proto [14:45:14]process_json_proto [14:45:14]json parsed OK: [14:45:14]protocol is kg_v1.0 [14:45:14]action value=close_receipt [14:45:14]process_action close_receipt [14:45:14]cmd_close_receipt [14:45:14]MH_GetDate [14:45:14]Write to MH i2c: F0 00 00 08 29 20 [14:45:14]Write i2c OK [14:45:14]MH_I2C_Read... [14:45:14]Read from MH i2c: F0 [14:45:14]MH_I2C_Read... [14:45:14]Read from MH i2c: F0 09 00 [14:45:14]MH_I2C_Read... [14:45:14]Read from MH i2c: F0 09 00 08 29 00 7D EE B5 67 7E 41 4F 65 23 [14:45:14]GetLastDocTimeStamp 1739976309 [14:45:14]current date 1739976317 [14:45:14]FM_GetShiftState [14:45:14]SAM_PROTO_GetShiftState [14:45:14]wFMCommunicate request_size=4 [14:45:14]MH_SAM_APDU [14:45:14]CAPDU: 80 13 01 00 [14:45:14]Write to MH i2c: E2 08 00 09 29 80 13 01 00 00 00 00 00 AF [14:45:14]Write i2c OK [14:45:14]MH_I2C_Read... [14:45:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:14]Read from MH i2c: E2 [14:45:14]MH_I2C_Read... [14:45:14]Read from MH i2c: E2 0E 00 [14:45:14]MH_I2C_Read... [14:45:14]Read from MH i2c: E2 0E 00 09 29 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 2E [14:45:14]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:45:14]wFMCommunicate OK [14:45:14]SAM_PROTO_GetShiftState done [14:45:14]FM_GetShiftState done [14:45:14]opened in 1739929631 [14:45:14]opened+sec_in_day 1740016031 [14:45:14]quantity*price = 100023 [14:45:14]sum+1 = 100025 [14: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 СНО: Общий режим Чек 138 19.02.2025 14:45 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187072 ФПД: 278462941535625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T144517&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187072&fm=278462941535625&tin=02508201610067®Number=0000000000091857&sum=100024 [14:45:15]StoreToDocumentArchive [14:45:15]shift 647 fd 187072 [14:45:15]save to /storage/0647/doc_00187072 [14:45:15]save last doc name /storage/0647/doc_00187072 to /storage/kkm_last_doc_name [14:45:15]save OK [14:45:15]Clear old archive folders... [14:45:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:45:15]tlvbuf is 005EE150 [14:45:15]SAM_PROTO_ClearQueue [14:45:15]wFMCommunicate request_size=4 [14:45:15]MH_SAM_APDU [14:45:15]CAPDU: 80 09 00 00 [14:45:15]Write to MH i2c: E2 08 00 16 29 80 09 00 00 00 00 00 00 B1 [14:45:15]Write i2c OK [14:45:15]MH_I2C_Read... [14:45:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:15]Read from MH i2c: E2 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 03 00 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 03 00 16 29 00 90 00 B3 [14:45:15]RAPDU: 90 00 [14:45:15]wFMCommunicate OK [14:45:15]SAM_PROTO_ClearQueue done [14:45:15]KKMCreateOFDPacket [14:45:15]OFDProtocolAddRootSTLVToBuf [14:45:15]FM_MakeSignedData [14:45:15]FM_MakeSignedData [14:45:15]SAM_PROTO_SignData [14:45:15]wFMCommunicate request_size=4 [14:45:15]MH_SAM_APDU [14:45:15]CAPDU: 80 0D 01 02 [14:45:15]Write to MH i2c: E2 08 00 17 29 80 0D 01 02 00 00 00 00 B9 [14:45:15]Write i2c OK [14:45:15]MH_I2C_Read... [14:45:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:15]Read from MH i2c: E2 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 03 00 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 03 00 17 29 00 90 00 B4 [14:45:15]RAPDU: 90 00 [14:45:15]wFMCommunicate OK [14:45:15]wFMCommunicate request_size=255 [14:45:15]MH_SAM_APDU [14: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 8A 00 00 00 F4 03 04 00 7D EE 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 C0 DA 02 00 35 04 06 00 FD [14:45:15]Write to MH i2c: E2 02 01 18 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 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 8A 00 00 00 F4 03 04 00 7D EE 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 C0 DA 02 00 35 04 06 00 FD 00 00 19 [14:45:15]Write i2c OK [14:45:15]MH_I2C_Read... [14:45:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:15]Read from MH i2c: E2 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 03 00 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 03 00 18 29 00 90 00 B5 [14:45:15]RAPDU: 90 00 [14:45:15]wFMCommunicate OK [14:45:15]wFMCommunicate request_size=10 [14:45:15]MH_SAM_APDU [14:45:15]CAPDU: 80 0D 02 02 05 42 B4 B6 9D 89 [14:45:15]Write to MH i2c: E2 0D 00 19 29 80 0D 02 02 05 00 42 B4 B6 9D 89 00 00 98 [14:45:15]Write i2c OK [14:45:15]MH_I2C_Read... [14:45:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:15]Read from MH i2c: E2 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 03 00 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 03 00 19 29 00 90 00 B6 [14:45:15]RAPDU: 90 00 [14:45:15]wFMCommunicate OK [14:45:15]wFMCommunicate request_size=4 [14:45:15]MH_SAM_APDU [14:45:15]CAPDU: 80 0D 03 02 [14:45:15]Write to MH i2c: E2 08 00 1A 29 80 0D 03 02 00 00 00 00 BE [14:45:15]Write i2c OK [14:45:15]MH_I2C_Read... [14:45:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:15]Read from MH i2c: E2 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 0B 00 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 0B 00 1A 29 00 9C AC 72 55 B7 19 4E F8 90 00 E4 [14:45:15]RAPDU: 9C AC 72 55 B7 19 4E F8 90 00 [14:45:15]wFMCommunicate OK [14:45:15]SAM_PROTO_SignData done [14:45:15]FM_MakeSignedData done [14:45:15]CreateOFDProtocolMessage [14:45:15]wFMCommunicate request_size=4 [14:45:15]MH_SAM_APDU [14:45:15]CAPDU: 80 11 00 00 [14:45:15]Write to MH i2c: E2 08 00 1B 29 80 11 00 00 00 00 00 00 BE [14:45:15]Write i2c OK [14:45:15]MH_I2C_Read... [14:45:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:15]Read from MH i2c: E2 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 17 00 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: E2 17 00 1B 29 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:45:15]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:15]wFMCommunicate OK [14:45:15]CreateOFDProtocolMessage done [14:45:15]OFDSenderStorePacket 187072 [14:45:15]StoreOFDPacket docnum=187072 [14:45: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 62 0F 07 01 D3 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 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 8A 00 00 00 F4 03 04 00 7D EE 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 C0 DA 02 00 35 04 06 00 FD 42 B4 B6 9D 89 9C AC 72 55 B7 19 4E F8 [14:45:15]CheckFolder [14:45:15]dirname=/storage/ofd_packets [14:45:15]CheckFolder done [14:45:15]ProducePacketName [14:45:15]name=ofd_packets/00187072 [14:45:15]NVStorageSaveData ofd_packets/00187072 [14:45:15]File name is /storage/ofd_packets/00187072 [14:45:15]Write 301 bytes [14:45:15]NVStorageSaveData done [14:45:15]OFDSenderStorePacket done [14:45:15]KKMCreateOFDPacket done [14:45:15]NVStorageSaveData kkm_last_timestamp [14:45:15]File name is /storage/kkm_last_timestamp [14:45:15]Write 4 bytes [14:45:15]NVStorageSaveData done [14:45:15]ExternCall_PrintAddStr [14:45:15]wPrintStart [14:45:15]Write to MH i2c: 01 00 00 1C 29 45 [14:45:15]Write i2c OK [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: 01 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: 01 07 00 [14:45:15]MH_I2C_Read... [14:45:15]Read from MH i2c: 01 07 00 1C 29 00 00 00 00 00 FF 0F 5A [14:45:15]RasterBufferAndPrint [14:45:15]line Счет N : (1)412223 [14:45:15]line ИНН: 02508201610067 [14:45:15]line Контрольно-Кассовый Чек [14:45:15]line ПРОДАЖА [14:45:15]line ТРК (МРК, ГНК) : 32 [14:45:15]line Товар: 2710124130 [14:45:15]line Аи-92-К-2 [14:45:15]line 15.580 * 64.20 [14:45:15]line = 1000.24 [14:45:15]line НДС 12% НСП 1% [14:45:15]line > о реализуемом товаре [14:45:15]line ИТОГО: 1000.24 [14:45:15]line НСП 1% : 8.85 [14:45:15]line НДС 12% : 106.22 [14:45:15]line Наличными: 0.00 [14:45:15]line Безнал.: 1000.24 [14:45:15]line Место: АЗС № 92 "Партнер Нефть" [14:45:15]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:45:15]line СНО: Общий режим [14:45:15]line Чек 138 19.02.2025 14:45 [14:45:15]line Смена: 647 ФФД: 1.0 [14:45:15]line ЗНМ: 0300000118 [14:45:15]line РНМ: 0000000000091857 [14:45:15]line Версия ККМ: 001 [14:45:15]line Платежная система: O! деньги [14:45:15]line ФМ: 0000000000871826 [14:45:15]line ФД: 187072 [14:45:15]line ФПД: 278462941535625 [14:45:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T144517&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187072&fm=278462941535625&tin=02508201610067®Number=0000000000091857&sum=100024 [14:45:15]written 0, free lines is 4095 [14:45:15]OFD Sender: Processing packet 187072 [packets to send 49, broken 48] [14:45:15]ProducePacketName [14:45:15]name=ofd_packets/00187072 [14:45:15]OFD Sender: To server: pG, [14:45:15]CommunicateWithHost lk.salyk.kg:30040 [14:45:15]ConnectInit lk.salyk.kg [14:45:16]Connected sock=10 [14: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 62 0F 07 01 D3 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 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 8A 00 00 00 F4 03 04 00 7D EE 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 C0 DA 02 00 35 04 06 00 FD 42 B4 B6 9D 89 9C AC 72 55 B7 19 4E F8 [14:45:16]Write to MH i2c: 01 00 00 46 29 6F [14:45:16]Write i2c OK [14:45:16]MH_I2C_Read... [14:45:16]Read from MH i2c: 01 [14:45:16]MH_I2C_Read... [14:45:16]Read from MH i2c: 01 07 00 [14:45:16]MH_I2C_Read... [14:45:16]Read from MH i2c: 01 07 00 46 29 00 00 00 00 00 0D 0D 90 [14:45:16]RasterBufferAndPrint [14:45:16]line [14:45:16]line [14:45:16]line [14:45:16]line [14:45:16]line [14:45:16]written 0, free lines is 3352 [14:45:16]MH_Cut [14:45:16]Write to MH i2c: D1 01 00 4D 29 01 48 [14:45:16]Write i2c OK [14:45:16]MH_I2C_Read... [14:45:16]Read from MH i2c: D1 [14:45:16]MH_I2C_Read... [14:45:16]Read from MH i2c: D1 01 00 [14:45:16]MH_I2C_Read... [14:45:16]Read from MH i2c: D1 01 00 4D 29 00 47 [14:45:16]Write to MH i2c: 01 00 00 4E 29 77 [14:45:16]Write i2c OK [14:45:16]MH_I2C_Read... [14: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 B7 D0 47 00 18 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C0 DA 02 00 F4 03 04 00 D1 94 B5 67 B6 04 01 00 00 E9 33 79 A7 5C 00 EA 4C [14:45:16]CommunicateWithHost err = 0 [14:45:16]CheckOFDResponse [14:45:16]1017 (14) - 77093643461234 [14:45:16]1041 (16) - 0000000000871826 [14:45:16]1040 (4) - 187072 [14:45:16]1012 (4) - 19.02.2025 08:22 [14:45:16]1206 (1) - 0 [14:45:16]OFD Sender: Remove packet 187072 [14:45:16]ProducePacketName [14:45:16]name=ofd_packets/00187072 [14:45:16]NVStorageDeleteData [14:45:16]OFD Sender: No OFD packet to send [14:45:16]*** Cut start [14:45:16]*** Partial cut [14:45:16]*** CUTSNS_PIN = 1 [14:45:17]*** CUTSNS_PIN = 0 [14:45:17]*** Brake cut motor [14:45:17]Read from MH i2c: 01 [14:45:17]MH_I2C_Read... [14:45:17]*** Stop cut motor [14:45:17]*** Cut end [14:45:17]Read from MH i2c: 01 07 00 [14:45:17]MH_I2C_Read... [14:45:17]Read from MH i2c: 01 07 00 4E 29 00 00 00 00 00 FF 0F 8C [14:45:17]process_action close_receipt done [14:45:17]requested_data is exist [14:45:17]produce_requested_data [14:45:17]requested_item fm.sn is exist - process it [14:45:17]wFMCommunicate request_size=4 [14:45:17]MH_SAM_APDU [14:45:17]CAPDU: 80 11 00 00 [14:45:17]Write to MH i2c: E2 08 00 4F 29 80 11 00 00 00 00 00 00 F2 [14:45:17]Write i2c OK [14:45:17]MH_I2C_Read... [14:45:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:17]Read from MH i2c: E2 [14:45:17]MH_I2C_Read... [14:45:17]Read from MH i2c: E2 17 00 [14:45:17]MH_I2C_Read... [14:45:17]Read from MH i2c: E2 17 00 4F 29 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:45:17]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:17]wFMCommunicate OK [14:45:17]requested_item fd.num is exist - process it [14:45:17]SAM_PROTO_GetFieldsCounters [14:45:17]wFMCommunicate request_size=4 [14:45:17]MH_SAM_APDU [14:45:17]CAPDU: 80 13 00 00 [14:45:17]Write to MH i2c: E2 08 00 50 29 80 13 00 00 00 00 00 00 F5 [14:45:17]Write i2c OK [14:45:17]MH_I2C_Read... [14:45:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:17]Read from MH i2c: E2 [14:45:17]MH_I2C_Read... [14:45:17]Read from MH i2c: E2 62 00 [14:45:17]MH_I2C_Read... [14:45:17]Read from MH i2c: E2 62 00 50 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 C0 DA 02 00 0E 04 04 00 87 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 DE [14:45: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 C0 DA 02 00 0E 04 04 00 87 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 [14:45:17]wFMCommunicate OK [14:45:17]SAM_PROTO_GetFieldsCounters done [14:45:17]requested_item shift.num is exist - process it [14:45:17]requested_item shift.opened is exist - process it [14:45:17]req_shift_opened [14:45:17]FM_GetShiftState [14:45:17]SAM_PROTO_GetShiftState [14:45:17]wFMCommunicate request_size=4 [14:45:17]MH_SAM_APDU [14:45:17]CAPDU: 80 13 01 00 [14:45:17]Write to MH i2c: E2 08 00 51 29 80 13 01 00 00 00 00 00 F7 [14:45:17]Write i2c OK [14:45:17]MH_I2C_Read... [14:45:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:17]Read from MH i2c: E2 [14:45:17]MH_I2C_Read... [14:45:17]Read from MH i2c: E2 0E 00 [14:45:17]MH_I2C_Read... [14:45:17]Read from MH i2c: E2 0E 00 51 29 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 76 [14:45:17]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:45:17]wFMCommunicate OK [14:45:17]SAM_PROTO_GetShiftState done [14:45:17]FM_GetShiftState done [14:45:17]req_shift_opened done [14:45:17]requested_item shift.open_date is exist - process it [14:45:17]req_shift_open_date [14:45:17]req_shift_open_date done [14:45:17]produce_requested_data done [14:45:17]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187072,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [14:45:17]process_action_free close_receipt [14:45:17]json_value_free [14:45:17]json_value_free done [14:45:17]process_json_proto returns [14:45:17]Send response to host [14:45:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187072,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [14:45:17]free response buf [14:45:17]execute_script done [14:45:17]execute_script returns [14:45:17]free content buf [14:45:17]Sock 9.Close socket [14:45:17]Sock 9.Thread stoped [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:06]OFD Sender: No OFD packet to send [14:46:11]OFD Sender: No OFD packet to send [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:46]OFD Sender: No OFD packet to send [14:46:51]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:22]accept exits with 7 [14:48:22]New connection [14:48:22]New thread 3067022692 created [14:48:22]Thread 3066879332 joined [14:48:22]Waiting for new connection... [14:48:22] Sock 7.Parse request [14:48:22]Sock 7.Check first char [14:48:22]Sock 7.First char is OK [14:48:22]request: POST /json_proto HTTP/1.0 [14:48:22]Method: POST [14:48:22]URL: /json_proto [14:48:22]Method is POST - this is cgi request [14:48:22]url: /json_proto [14:48:22]query_string will be loaded in cgi processing [14:48:22]execute_cgi json_proto POST (null) [14:48:22]execute_cgi path=json_proto method=POST [14:48:22]POST find Content-Length [14:48:22]Host: 172.17.46.131:8080 [14:48:22]Content-Length: 803 [14:48:22]Content-Type: application/json [14:48:22] [14:48:22]POST finish read [14:48:22]Found Content-Length = 803 [14:48:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412224", "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 }]} ], "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" ] } } [14:48:22]execute_script... [14:48: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)412224", "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 }]} ], "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" ] } } [14:48:22]POST & json_proto [14:48:22]process_json_proto [14:48:22]json parsed OK: [14:48:22]protocol is kg_v1.0 [14:48:22]action value=close_receipt [14:48:22]process_action close_receipt [14:48:22]cmd_close_receipt [14:48:22]MH_GetDate [14:48:22]Write to MH i2c: F0 00 00 52 29 6A [14:48:22]Write i2c OK [14:48:22]MH_I2C_Read... [14:48:22]Read from MH i2c: F0 [14:48:22]MH_I2C_Read... [14:48:22]Read from MH i2c: F0 09 00 [14:48:22]MH_I2C_Read... [14:48:22]Read from MH i2c: F0 09 00 52 29 00 3A EF B5 67 7E 41 4F 65 2B [14:48:22]GetLastDocTimeStamp 1739976317 [14:48:22]current date 1739976506 [14:48:22]FM_GetShiftState [14:48:22]SAM_PROTO_GetShiftState [14:48:22]wFMCommunicate request_size=4 [14:48:22]MH_SAM_APDU [14:48:22]CAPDU: 80 13 01 00 [14:48:22]Write to MH i2c: E2 08 00 53 29 80 13 01 00 00 00 00 00 F9 [14:48:22]Write i2c OK [14:48:22]MH_I2C_Read... [14:48:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:22]Read from MH i2c: E2 [14:48:22]MH_I2C_Read... [14:48:22]Read from MH i2c: E2 0E 00 [14:48:22]MH_I2C_Read... [14:48:22]Read from MH i2c: E2 0E 00 53 29 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 78 [14:48:22]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:48:22]wFMCommunicate OK [14:48:22]SAM_PROTO_GetShiftState done [14:48:22]FM_GetShiftState done [14:48:22]opened in 1739929631 [14:48:22]opened+sec_in_day 1740016031 [14:48:22]quantity*price = 200025 [14:48:22]sum+1 = 200027 [14:48:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.26 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.26 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 139 19.02.2025 14:48 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187073 ФПД: 147325637170668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T144826&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187073&fm=147325637170668&tin=02508201610067®Number=0000000000091857&sum=200026 [14:48:23]StoreToDocumentArchive [14:48:23]shift 647 fd 187073 [14:48:23]save to /storage/0647/doc_00187073 [14:48:23]save last doc name /storage/0647/doc_00187073 to /storage/kkm_last_doc_name [14:48:23]save OK [14:48:23]Clear old archive folders... [14:48:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:23]tlvbuf is 0065A450 [14:48:23]SAM_PROTO_ClearQueue [14:48:23]wFMCommunicate request_size=4 [14:48:23]MH_SAM_APDU [14:48:23]CAPDU: 80 09 00 00 [14:48:23]Write to MH i2c: E2 08 00 60 29 80 09 00 00 00 00 00 00 FB [14:48:23]Write i2c OK [14:48:23]MH_I2C_Read... [14:48:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:23]Read from MH i2c: E2 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 03 00 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 03 00 60 29 00 90 00 FD [14:48:23]RAPDU: 90 00 [14:48:23]wFMCommunicate OK [14:48:23]SAM_PROTO_ClearQueue done [14:48:23]KKMCreateOFDPacket [14:48:23]OFDProtocolAddRootSTLVToBuf [14:48:23]FM_MakeSignedData [14:48:23]FM_MakeSignedData [14:48:23]SAM_PROTO_SignData [14:48:23]wFMCommunicate request_size=4 [14:48:23]MH_SAM_APDU [14:48:23]CAPDU: 80 0D 01 02 [14:48:23]Write to MH i2c: E2 08 00 61 29 80 0D 01 02 00 00 00 00 03 [14:48:23]Write i2c OK [14:48:23]MH_I2C_Read... [14:48:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:23]Read from MH i2c: E2 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 03 00 [14:48:23]MH_I2C_Read... [14:48:23]Read from MH i2c: E2 03 00 61 29 00 90 00 FE [14:48:23]RAPDU: 90 00 [14:48:23]wFMCommunicate OK [14:48:23]wFMCommunicate request_size=255 [14:48:23]MH_SAM_APDU [14:48: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 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 8B 00 00 00 F4 03 04 00 3A EF 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 C1 DA 02 00 35 04 06 00 85 [14:48:23]Write to MH i2c: E2 02 01 62 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 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 8B 00 00 00 F4 03 04 00 3A EF 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 C1 DA 02 00 35 04 06 00 85 00 00 55 [14:48:23]Write i2c OK [14:48:23]MH_I2C_Read... [14:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:24]Read from MH i2c: E2 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 03 00 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 03 00 62 29 00 90 00 FF [14:48:24]RAPDU: 90 00 [14:48:24]wFMCommunicate OK [14:48:24]wFMCommunicate request_size=10 [14:48:24]MH_SAM_APDU [14:48:24]CAPDU: 80 0D 02 02 05 FD EC 45 15 EC [14:48:24]Write to MH i2c: E2 0D 00 63 29 80 0D 02 02 05 00 FD EC 45 15 EC 00 00 3F [14:48:24]Write i2c OK [14:48:24]MH_I2C_Read... [14:48:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:24]Read from MH i2c: E2 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 03 00 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 03 00 63 29 00 90 00 00 [14:48:24]RAPDU: 90 00 [14:48:24]wFMCommunicate OK [14:48:24]wFMCommunicate request_size=4 [14:48:24]MH_SAM_APDU [14:48:24]CAPDU: 80 0D 03 02 [14:48:24]Write to MH i2c: E2 08 00 64 29 80 0D 03 02 00 00 00 00 08 [14:48:24]Write i2c OK [14:48:24]MH_I2C_Read... [14:48:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:24]Read from MH i2c: E2 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 0B 00 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 0B 00 64 29 00 6A 41 B5 46 42 F4 14 8E 90 00 87 [14:48:24]RAPDU: 6A 41 B5 46 42 F4 14 8E 90 00 [14:48:24]wFMCommunicate OK [14:48:24]SAM_PROTO_SignData done [14:48:24]FM_MakeSignedData done [14:48:24]CreateOFDProtocolMessage [14:48:24]wFMCommunicate request_size=4 [14:48:24]MH_SAM_APDU [14:48:24]CAPDU: 80 11 00 00 [14:48:24]Write to MH i2c: E2 08 00 65 29 80 11 00 00 00 00 00 00 08 [14:48:24]Write i2c OK [14:48:24]MH_I2C_Read... [14:48:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:24]Read from MH i2c: E2 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 17 00 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: E2 17 00 65 29 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:48:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:48:24]wFMCommunicate OK [14:48:24]CreateOFDProtocolMessage done [14:48:24]OFDSenderStorePacket 187073 [14:48:24]StoreOFDPacket docnum=187073 [14:48: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 18 98 07 01 7A 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 8B 00 00 00 F4 03 04 00 3A EF 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 C1 DA 02 00 35 04 06 00 85 FD EC 45 15 EC 6A 41 B5 46 42 F4 14 8E [14:48:24]CheckFolder [14:48:24]dirname=/storage/ofd_packets [14:48:24]CheckFolder done [14:48:24]ProducePacketName [14:48:24]name=ofd_packets/00187073 [14:48:24]NVStorageSaveData ofd_packets/00187073 [14:48:24]File name is /storage/ofd_packets/00187073 [14:48:24]Write 301 bytes [14:48:24]NVStorageSaveData done [14:48:24]OFDSenderStorePacket done [14:48:24]KKMCreateOFDPacket done [14:48:24]NVStorageSaveData kkm_last_timestamp [14:48:24]File name is /storage/kkm_last_timestamp [14:48:24]Write 4 bytes [14:48:24]NVStorageSaveData done [14:48:24]ExternCall_PrintAddStr [14:48:24]wPrintStart [14:48:24]Write to MH i2c: 01 00 00 66 29 8F [14:48:24]Write i2c OK [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: 01 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: 01 07 00 [14:48:24]MH_I2C_Read... [14:48:24]Read from MH i2c: 01 07 00 66 29 00 00 00 00 00 FF 0F A4 [14:48:24]RasterBufferAndPrint [14:48:24]line Счет N : (1)412224 [14:48:24]line ИНН: 02508201610067 [14:48:24]line Контрольно-Кассовый Чек [14:48:24]line ПРОДАЖА [14:48:24]line ТРК (МРК, ГНК) : 23 [14:48:24]line Товар: 2710124500 [14:48:24]line Аи-95-К-5 [14:48:24]line 27.820 * 71.90 [14:48:24]line = 2000.26 [14:48:24]line НДС 12% НСП 1% [14:48:24]line > о реализуемом товаре [14:48:24]line ИТОГО: 2000.26 [14:48:24]line НСП 1% : 17.70 [14:48:24]line НДС 12% : 212.42 [14:48:24]line Наличными: 0.00 [14:48:24]line Безнал.: 2000.26 [14:48:24]line Место: АЗС № 92 "Партнер Нефть" [14:48:24]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:48:24]line СНО: Общий режим [14:48:24]line Чек 139 19.02.2025 14:48 [14:48:24]line Смена: 647 ФФД: 1.0 [14:48:24]line ЗНМ: 0300000118 [14:48:24]line РНМ: 0000000000091857 [14:48:24]line Версия ККМ: 001 [14:48:24]line Платежная система: O! деньги [14:48:24]line ФМ: 0000000000871826 [14:48:24]line ФД: 187073 [14:48:24]line ФПД: 147325637170668 [14:48:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T144826&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187073&fm=147325637170668&tin=02508201610067®Number=0000000000091857&sum=200026 [14:48:24]written 0, free lines is 4095 [14:48:24]OFD Sender: Processing packet 187073 [packets to send 49, broken 48] [14:48:24]ProducePacketName [14:48:24]name=ofd_packets/00187073 [14:48:24]OFD Sender: To server: pG, [14:48:24]CommunicateWithHost lk.salyk.kg:30040 [14:48:24]ConnectInit lk.salyk.kg [14:48:24]Connected sock=10 [14:48: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 18 98 07 01 7A 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 8B 00 00 00 F4 03 04 00 3A EF 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 C1 DA 02 00 35 04 06 00 85 FD EC 45 15 EC 6A 41 B5 46 42 F4 14 8E [14:48:25]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 55 47 00 76 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 C1 DA 02 00 F4 03 04 00 8E 95 B5 67 B6 04 01 00 00 F4 1E 83 98 D8 1B 17 86 [14:48:25]CommunicateWithHost err = 0 [14:48:25]CheckOFDResponse [14:48:25]1017 (14) - 77093643461234 [14:48:25]1041 (16) - 0000000000871826 [14:48:25]1040 (4) - 187073 [14:48:25]1012 (4) - 19.02.2025 08:25 [14:48:25]1206 (1) - 0 [14:48:25]OFD Sender: Remove packet 187073 [14:48:25]ProducePacketName [14:48:25]name=ofd_packets/00187073 [14:48:25]NVStorageDeleteData [14:48:25]Write to MH i2c: 01 00 00 90 29 B9 [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: 01 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: 01 07 00 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: 01 07 00 90 29 00 00 00 00 00 FB 0C C7 [14:48:25]RasterBufferAndPrint [14:48:25]line [14:48:25]line [14:48:25]line [14:48:25]line [14:48:25]line [14:48:25]written 0, free lines is 3329 [14:48:25]MH_Cut [14:48:25]Write to MH i2c: D1 01 00 97 29 01 92 [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: D1 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: D1 01 00 [14:48:25]MH_I2C_Read... [14:48:25]Read from MH i2c: D1 01 00 97 29 00 91 [14:48:25]Write to MH i2c: 01 00 00 98 29 C1 [14:48:25]Write i2c OK [14:48:25]MH_I2C_Read... [14:48:25]OFD Sender: No OFD packet to send [14:48:25]*** Cut start [14:48:25]*** Partial cut [14:48:25]*** CUTSNS_PIN = 1 [14:48:25]*** CUTSNS_PIN = 0 [14:48:26]*** Brake cut motor [14:48:26]Read from MH i2c: 01 [14:48:26]*** Stop cut motor [14:48:26]*** Cut end [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: 01 07 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: 01 07 00 98 29 00 00 00 00 00 FF 0F D6 [14:48:26]process_action close_receipt done [14:48:26]requested_data is exist [14:48:26]produce_requested_data [14:48:26]requested_item fm.sn is exist - process it [14:48:26]wFMCommunicate request_size=4 [14:48:26]MH_SAM_APDU [14:48:26]CAPDU: 80 11 00 00 [14:48:26]Write to MH i2c: E2 08 00 99 29 80 11 00 00 00 00 00 00 3C [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:26]Read from MH i2c: E2 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 17 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 17 00 99 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8F [14:48:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:48:26]wFMCommunicate OK [14:48:26]requested_item fd.num is exist - process it [14:48:26]SAM_PROTO_GetFieldsCounters [14:48:26]wFMCommunicate request_size=4 [14:48:26]MH_SAM_APDU [14:48:26]CAPDU: 80 13 00 00 [14:48:26]Write to MH i2c: E2 08 00 9A 29 80 13 00 00 00 00 00 00 3F [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:26]Read from MH i2c: E2 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 62 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 62 00 9A 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 C1 DA 02 00 0E 04 04 00 87 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 2C [14:48: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 C1 DA 02 00 0E 04 04 00 87 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 [14:48:26]wFMCommunicate OK [14:48:26]SAM_PROTO_GetFieldsCounters done [14:48:26]requested_item shift.num is exist - process it [14:48:26]requested_item shift.opened is exist - process it [14:48:26]req_shift_opened [14:48:26]FM_GetShiftState [14:48:26]SAM_PROTO_GetShiftState [14:48:26]wFMCommunicate request_size=4 [14:48:26]MH_SAM_APDU [14:48:26]CAPDU: 80 13 01 00 [14:48:26]Write to MH i2c: E2 08 00 9B 29 80 13 01 00 00 00 00 00 41 [14:48:26]Write i2c OK [14:48:26]MH_I2C_Read... [14:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:26]Read from MH i2c: E2 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 0E 00 [14:48:26]MH_I2C_Read... [14:48:26]Read from MH i2c: E2 0E 00 9B 29 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C0 [14:48:26]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:48:26]wFMCommunicate OK [14:48:26]SAM_PROTO_GetShiftState done [14:48:26]FM_GetShiftState done [14:48:26]req_shift_opened done [14:48:26]requested_item shift.open_date is exist - process it [14:48:26]req_shift_open_date [14:48:26]req_shift_open_date done [14:48:26]produce_requested_data done [14:48:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187073,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [14:48:26]process_action_free close_receipt [14:48:26]json_value_free [14:48:26]json_value_free done [14:48:26]process_json_proto returns [14:48:26]Send response to host [14:48:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187073,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [14:48:26]free response buf [14:48:26]execute_script done [14:48:26]execute_script returns [14:48:26]free content buf [14:48:26]Sock 7.Close socket [14:48:26]Sock 7.Thread stoped [14:48:30]OFD Sender: No OFD packet to send [14:48:35]OFD Sender: No OFD packet to send [14:48:40]OFD Sender: No OFD packet to send [14:48:45]OFD Sender: No OFD packet to send [14:48:50]OFD Sender: No OFD packet to send [14:48:55]OFD Sender: No OFD packet to send [14:49:00]OFD Sender: No OFD packet to send [14:49:05]OFD Sender: No OFD packet to send [14:49:10]OFD Sender: No OFD packet to send [14:49:15]OFD Sender: No OFD packet to send [14:49:20]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:45]OFD Sender: No OFD packet to send [14:49:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:49:59]accept exits with 9 [14:49:59]New connection [14:49:59]New thread 3066879332 created [14:49:59]Thread 3067022692 joined [14:49:59]Waiting for new connection... [14:49:59] Sock 9.Parse request [14:49:59]Sock 9.Check first char [14:49:59]Sock 9.First char is OK [14:49:59]request: POST /json_proto HTTP/1.0 [14:49:59]Method: POST [14:49:59]URL: /json_proto [14:49:59]Method is POST - this is cgi request [14:49:59]url: /json_proto [14:49:59]query_string will be loaded in cgi processing [14:49:59]execute_cgi json_proto POST (null) [14:49:59]execute_cgi path=json_proto method=POST [14:49:59]POST find Content-Length [14:49:59]Host: 172.17.46.131:8080 [14:49:59]Content-Length: 677 [14:49:59]Content-Type: application/json [14:49:59] [14:49:59]POST finish read [14:49:59]Found Content-Length = 677 [14:49:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412225", "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" ] } } [14:49:59]execute_script... [14:49: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)412225", "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" ] } } [14:49:59]POST & json_proto [14:49:59]process_json_proto [14:49:59]json parsed OK: [14:49:59]protocol is kg_v1.0 [14:49:59]action value=close_receipt [14:49:59]process_action close_receipt [14:49:59]cmd_close_receipt [14:49:59]MH_GetDate [14:49:59]Write to MH i2c: F0 00 00 9C 29 B4 [14:49:59]Write i2c OK [14:49:59]MH_I2C_Read... [14:49:59]Read from MH i2c: F0 [14:49:59]MH_I2C_Read... [14:49:59]Read from MH i2c: F0 09 00 [14:49:59]MH_I2C_Read... [14:49:59]Read from MH i2c: F0 09 00 9C 29 00 9B EF B5 67 7E 41 4F 65 D6 [14:49:59]GetLastDocTimeStamp 1739976506 [14:49:59]current date 1739976603 [14:49:59]FM_GetShiftState [14:49:59]SAM_PROTO_GetShiftState [14:49:59]wFMCommunicate request_size=4 [14:49:59]MH_SAM_APDU [14:49:59]CAPDU: 80 13 01 00 [14:49:59]Write to MH i2c: E2 08 00 9D 29 80 13 01 00 00 00 00 00 43 [14:49:59]Write i2c OK [14:49:59]MH_I2C_Read... [14:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:59]Read from MH i2c: E2 [14:49:59]MH_I2C_Read... [14:49:59]Read from MH i2c: E2 0E 00 [14:49:59]MH_I2C_Read... [14:49:59]Read from MH i2c: E2 0E 00 9D 29 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C2 [14:49:59]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:49:59]wFMCommunicate OK [14:49:59]SAM_PROTO_GetShiftState done [14:49:59]FM_GetShiftState done [14:49:59]opened in 1739929631 [14:49:59]opened+sec_in_day 1740016031 [14:49:59]quantity*price = 50011 [14:49:59]sum+1 = 50013 [14:49:59]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 СНО: Общий режим Чек 140 19.02.2025 14:50 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187074 ФПД: 45539597775302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T145003&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187074&fm=45539597775302&tin=02508201610067®Number=0000000000091857&sum=50000 [14:50:00]StoreToDocumentArchive [14:50:00]shift 647 fd 187074 [14:50:00]save to /storage/0647/doc_00187074 [14:50:00]save last doc name /storage/0647/doc_00187074 to /storage/kkm_last_doc_name [14:50:00]save OK [14:50:00]Clear old archive folders... [14:50:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:50:00]tlvbuf is 00679150 [14:50:00]SAM_PROTO_ClearQueue [14:50:00]wFMCommunicate request_size=4 [14:50:00]MH_SAM_APDU [14:50:00]CAPDU: 80 09 00 00 [14:50:00]Write to MH i2c: E2 08 00 AA 29 80 09 00 00 00 00 00 00 45 [14:50:00]Write i2c OK [14:50:00]MH_I2C_Read... [14:50:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:00]Read from MH i2c: E2 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: E2 03 00 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: E2 03 00 AA 29 00 90 00 47 [14:50:00]RAPDU: 90 00 [14:50:00]wFMCommunicate OK [14:50:00]SAM_PROTO_ClearQueue done [14:50:00]KKMCreateOFDPacket [14:50:00]OFDProtocolAddRootSTLVToBuf [14:50:00]FM_MakeSignedData [14:50:00]FM_MakeSignedData [14:50:00]SAM_PROTO_SignData [14:50:00]wFMCommunicate request_size=4 [14:50:00]MH_SAM_APDU [14:50:00]CAPDU: 80 0D 01 02 [14:50:00]Write to MH i2c: E2 08 00 AB 29 80 0D 01 02 00 00 00 00 4D [14:50:00]Write i2c OK [14:50:00]MH_I2C_Read... [14:50:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:00]Read from MH i2c: E2 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: E2 03 00 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: E2 03 00 AB 29 00 90 00 48 [14:50:00]RAPDU: 90 00 [14:50:00]wFMCommunicate OK [14:50:00]wFMCommunicate request_size=255 [14:50:00]MH_SAM_APDU [14:50: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 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 8C 00 00 00 F4 03 04 00 9B EF 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 C2 DA 02 00 35 04 06 00 29 [14:50:00]Write to MH i2c: E2 02 01 AC 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 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 8C 00 00 00 F4 03 04 00 9B EF 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 C2 DA 02 00 35 04 06 00 29 00 00 68 [14:50:00]Write i2c OK [14:50:00]MH_I2C_Read... [14:50:00]OFD Sender: No OFD packet to send [14:50:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:00]Read from MH i2c: E2 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: E2 03 00 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: E2 03 00 AC 29 00 90 00 49 [14:50:00]RAPDU: 90 00 [14:50:00]wFMCommunicate OK [14:50:00]wFMCommunicate request_size=10 [14:50:00]MH_SAM_APDU [14:50:00]CAPDU: 80 0D 02 02 05 6B 03 8C 71 C6 [14:50:00]Write to MH i2c: E2 0D 00 AD 29 80 0D 02 02 05 00 6B 03 8C 71 C6 00 00 8B [14:50:00]Write i2c OK [14:50:00]MH_I2C_Read... [14:50:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:00]Read from MH i2c: E2 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: E2 03 00 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: E2 03 00 AD 29 00 90 00 4A [14:50:00]RAPDU: 90 00 [14:50:00]wFMCommunicate OK [14:50:00]wFMCommunicate request_size=4 [14:50:00]MH_SAM_APDU [14:50:00]CAPDU: 80 0D 03 02 [14:50:00]Write to MH i2c: E2 08 00 AE 29 80 0D 03 02 00 00 00 00 52 [14:50:00]Write i2c OK [14:50:00]MH_I2C_Read... [14:50:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:00]Read from MH i2c: E2 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: E2 0B 00 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: E2 0B 00 AE 29 00 30 03 D3 DA 8D 40 A0 30 90 00 D0 [14:50:00]RAPDU: 30 03 D3 DA 8D 40 A0 30 90 00 [14:50:00]wFMCommunicate OK [14:50:00]SAM_PROTO_SignData done [14:50:00]FM_MakeSignedData done [14:50:00]CreateOFDProtocolMessage [14:50:00]wFMCommunicate request_size=4 [14:50:00]MH_SAM_APDU [14:50:00]CAPDU: 80 11 00 00 [14:50:00]Write to MH i2c: E2 08 00 AF 29 80 11 00 00 00 00 00 00 52 [14:50:00]Write i2c OK [14:50:00]MH_I2C_Read... [14:50:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:00]Read from MH i2c: E2 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: E2 17 00 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: E2 17 00 AF 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A5 [14:50: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:50:00]wFMCommunicate OK [14:50:00]CreateOFDProtocolMessage done [14:50:00]OFDSenderStorePacket 187074 [14:50:00]StoreOFDPacket docnum=187074 [14:50: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 1A 07 01 7C 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 8C 00 00 00 F4 03 04 00 9B EF 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 C2 DA 02 00 35 04 06 00 29 6B 03 8C 71 C6 30 03 D3 DA 8D 40 A0 30 [14:50:00]CheckFolder [14:50:00]dirname=/storage/ofd_packets [14:50:00]CheckFolder done [14:50:00]ProducePacketName [14:50:00]name=ofd_packets/00187074 [14:50:00]NVStorageSaveData ofd_packets/00187074 [14:50:00]File name is /storage/ofd_packets/00187074 [14:50:00]Write 301 bytes [14:50:00]NVStorageSaveData done [14:50:00]OFDSenderStorePacket done [14:50:00]KKMCreateOFDPacket done [14:50:00]NVStorageSaveData kkm_last_timestamp [14:50:00]File name is /storage/kkm_last_timestamp [14:50:00]Write 4 bytes [14:50:00]NVStorageSaveData done [14:50:00]ExternCall_PrintAddStr [14:50:00]wPrintStart [14:50:00]Write to MH i2c: 01 00 00 B0 29 D9 [14:50:00]Write i2c OK [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: 01 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: 01 07 00 [14:50:00]MH_I2C_Read... [14:50:00]Read from MH i2c: 01 07 00 B0 29 00 00 00 00 00 FF 0F EE [14:50:00]RasterBufferAndPrint [14:50:00]line Счет N : (1)412225 [14:50:00]line ИНН: 02508201610067 [14:50:00]line Контрольно-Кассовый Чек [14:50:00]line ПРОДАЖА [14:50:00]line ТРК (МРК, ГНК) : 32 [14:50:00]line Товар: 2710124130 [14:50:00]line Аи-92-К-2 [14:50:00]line 7.790 * 64.20 [14:50:00]line = 500.12 [14:50:00]line НДС 12% НСП 1% [14:50:00]line > о реализуемом товаре [14:50:00]line ОКРУГЛЕНИЕ: -0.12 [14:50:00]line ИТОГО: 500.00 [14:50:00]line Внесено: 500.00 [14:50:00]line СДАЧА: 0.00 [14:50:00]line НСП 1% : 4.43 [14:50:00]line НДС 12% : 53.11 [14:50:00]line Наличными: 500.00 [14:50:00]line Безнал.: 0.00 [14:50:00]line Место: АЗС № 92 "Партнер Нефть" [14:50:00]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:50:00]line СНО: Общий режим [14:50:00]line Чек 140 19.02.2025 14:50 [14:50:00]line Смена: 647 ФФД: 1.0 [14:50:00]line ЗНМ: 0300000118 [14:50:00]line РНМ: 0000000000091857 [14:50:00]line Версия ККМ: 001 [14:50:00]line ФМ: 0000000000871826 [14:50:00]line ФД: 187074 [14:50:00]line ФПД: 45539597775302 [14:50:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T145003&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187074&fm=45539597775302&tin=02508201610067®Number=0000000000091857&sum=50000 [14:50:01]OFD Sender: Processing packet 187074 [packets to send 49, broken 48] [14:50:01]ProducePacketName [14:50:01]name=ofd_packets/00187074 [14:50:01]OFD Sender: To server: pG, [14:50:01]CommunicateWithHost lk.salyk.kg:30040 [14:50:01]ConnectInit lk.salyk.kg [14:50:01]written 0, free lines is 4095 [14:50:01]Connected sock=10 [14:50: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 9A 1A 07 01 7C 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 8C 00 00 00 F4 03 04 00 9B EF 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 C2 DA 02 00 35 04 06 00 29 6B 03 8C 71 C6 30 03 D3 DA 8D 40 A0 30 [14:50: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 21 67 47 00 5A 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 C2 DA 02 00 F4 03 04 00 EE 95 B5 67 B6 04 01 00 00 D5 C3 14 B2 AB 20 9A 89 [14:50:01]CommunicateWithHost err = 0 [14:50:01]CheckOFDResponse [14:50:01]1017 (14) - 77093643461234 [14:50:01]1041 (16) - 0000000000871826 [14:50:01]1040 (4) - 187074 [14:50:01]1012 (4) - 19.02.2025 08:27 [14:50:01]1206 (1) - 0 [14:50:01]OFD Sender: Remove packet 187074 [14:50:01]ProducePacketName [14:50:01]name=ofd_packets/00187074 [14:50:01]NVStorageDeleteData [14:50:01]Write to MH i2c: 01 00 00 DB 29 04 [14:50:01]Write i2c OK [14:50:01]MH_I2C_Read... [14:50:01]Read from MH i2c: 01 [14:50:01]MH_I2C_Read... [14:50:01]Read from MH i2c: 01 07 00 [14:50:01]MH_I2C_Read... [14:50:01]Read from MH i2c: 01 07 00 DB 29 00 00 00 00 00 EE 0C 05 [14:50:01]RasterBufferAndPrint [14:50:01]line [14:50:01]line [14:50:01]line [14:50:01]line [14:50:01]line [14:50:01]written 0, free lines is 3316 [14:50:01]MH_Cut [14:50:01]Write to MH i2c: D1 01 00 E2 29 01 DD [14:50:01]Write i2c OK [14:50:01]MH_I2C_Read... [14:50:01]Read from MH i2c: D1 [14:50:01]MH_I2C_Read... [14:50:01]Read from MH i2c: D1 01 00 [14:50:01]MH_I2C_Read... [14:50:01]Read from MH i2c: D1 01 00 E2 29 00 DC [14:50:01]Write to MH i2c: 01 00 00 E3 29 0C [14:50:01]Write i2c OK [14:50:01]MH_I2C_Read... [14:50:02]OFD Sender: No OFD packet to send [14:50:02]*** Cut start [14:50:02]*** Partial cut [14:50:02]*** CUTSNS_PIN = 1 [14:50:02]*** CUTSNS_PIN = 0 [14:50:02]*** Brake cut motor [14:50:03]Read from MH i2c: 01 [14:50:03]MH_I2C_Read... [14:50:03]*** Stop cut motor [14:50:03]*** Cut end [14:50:03]Read from MH i2c: 01 07 00 [14:50:03]MH_I2C_Read... [14:50:03]Read from MH i2c: 01 07 00 E3 29 00 00 00 00 00 FF 0F 21 [14:50:03]process_action close_receipt done [14:50:03]requested_data is exist [14:50:03]produce_requested_data [14:50:03]requested_item fm.sn is exist - process it [14:50:03]wFMCommunicate request_size=4 [14:50:03]MH_SAM_APDU [14:50:03]CAPDU: 80 11 00 00 [14:50:03]Write to MH i2c: E2 08 00 E4 29 80 11 00 00 00 00 00 00 87 [14:50:03]Write i2c OK [14:50:03]MH_I2C_Read... [14:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:03]Read from MH i2c: E2 [14:50:03]MH_I2C_Read... [14:50:03]Read from MH i2c: E2 17 00 [14:50:03]MH_I2C_Read... [14:50:03]Read from MH i2c: E2 17 00 E4 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DA [14:50: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:50:03]wFMCommunicate OK [14:50:03]requested_item fd.num is exist - process it [14:50:03]SAM_PROTO_GetFieldsCounters [14:50:03]wFMCommunicate request_size=4 [14:50:03]MH_SAM_APDU [14:50:03]CAPDU: 80 13 00 00 [14:50:03]Write to MH i2c: E2 08 00 E5 29 80 13 00 00 00 00 00 00 8A [14:50:03]Write i2c OK [14:50:03]MH_I2C_Read... [14:50:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:03]Read from MH i2c: E2 [14:50:03]MH_I2C_Read... [14:50:03]Read from MH i2c: E2 62 00 [14:50:03]MH_I2C_Read... [14:50:03]Read from MH i2c: E2 62 00 E5 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 C2 DA 02 00 0E 04 04 00 87 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 7B [14:50: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 C2 DA 02 00 0E 04 04 00 87 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 [14:50:03]wFMCommunicate OK [14:50:03]SAM_PROTO_GetFieldsCounters done [14:50:03]requested_item shift.num is exist - process it [14:50:03]requested_item shift.opened is exist - process it [14:50:03]req_shift_opened [14:50:03]FM_GetShiftState [14:50:03]SAM_PROTO_GetShiftState [14:50:03]wFMCommunicate request_size=4 [14:50:03]MH_SAM_APDU [14:50:03]CAPDU: 80 13 01 00 [14:50:03]Write to MH i2c: E2 08 00 E6 29 80 13 01 00 00 00 00 00 8C [14:50:03]Write i2c OK [14:50:03]MH_I2C_Read... [14:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:03]Read from MH i2c: E2 [14:50:03]MH_I2C_Read... [14:50:03]Read from MH i2c: E2 0E 00 [14:50:03]MH_I2C_Read... [14:50:03]Read from MH i2c: E2 0E 00 E6 29 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 0B [14:50:03]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:50:03]wFMCommunicate OK [14:50:03]SAM_PROTO_GetShiftState done [14:50:03]FM_GetShiftState done [14:50:03]req_shift_opened done [14:50:03]requested_item shift.open_date is exist - process it [14:50:03]req_shift_open_date [14:50:03]req_shift_open_date done [14:50:03]produce_requested_data done [14:50:03]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187074,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [14:50:03]process_action_free close_receipt [14:50:03]json_value_free [14:50:03]json_value_free done [14:50:03]process_json_proto returns [14:50:03]Send response to host [14:50:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187074,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [14:50:03]free response buf [14:50:03]execute_script done [14:50:03]execute_script returns [14:50:03]free content buf [14:50:03]Sock 9.Close socket [14:50:03]Sock 9.Thread stoped [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:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:42]OFD Sender: No OFD packet to send [14:55:47]OFD Sender: No OFD packet to send [14:55:52]OFD Sender: No OFD packet to send [14:55:57]OFD Sender: No OFD packet to send [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57:07]OFD Sender: No OFD packet to send [14:57:12]OFD Sender: No OFD packet to send [14:57:17]OFD Sender: No OFD packet to send [14:57:22]OFD Sender: No OFD packet to send [14:57:27]OFD Sender: No OFD packet to send [14:57:32]OFD Sender: No OFD packet to send [14:57:37]OFD Sender: No OFD packet to send [14:57:42]OFD Sender: No OFD packet to send [14:57:47]OFD Sender: No OFD packet to send [14:57:52]OFD Sender: No OFD packet to send [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:12]OFD Sender: No OFD packet to send [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:27]OFD Sender: No OFD packet to send [14:58:32]OFD Sender: No OFD packet to send [14:58:37]OFD Sender: No OFD packet to send [14:58:42]OFD Sender: No OFD packet to send [14:58:47]OFD Sender: No OFD packet to send [14:58:52]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:30]accept exits with 7 [14:59:30]New connection [14:59:30]New thread 3067022692 created [14:59:30]Thread 3066879332 joined [14:59:30]Waiting for new connection... [14:59:30] Sock 7.Parse request [14:59:30]Sock 7.Check first char [14:59:30]Sock 7.First char is OK [14:59:30]request: POST /json_proto HTTP/1.0 [14:59:30]Method: POST [14:59:30]URL: /json_proto [14:59:30]Method is POST - this is cgi request [14:59:30]url: /json_proto [14:59:30]query_string will be loaded in cgi processing [14:59:30]execute_cgi json_proto POST (null) [14:59:30]execute_cgi path=json_proto method=POST [14:59:30]POST find Content-Length [14:59:30]Host: 172.17.46.131:8080 [14:59:30]Content-Length: 677 [14:59:30]Content-Type: application/json [14:59:30] [14:59:30]POST finish read [14:59:30]Found Content-Length = 677 [14:59:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412227", "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" ] } } [14:59:30]execute_script... [14:59:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412227", "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" ] } } [14:59:30]POST & json_proto [14:59:30]process_json_proto [14:59:30]json parsed OK: [14:59:30]protocol is kg_v1.0 [14:59:30]action value=close_receipt [14:59:30]process_action close_receipt [14:59:30]cmd_close_receipt [14:59:30]MH_GetDate [14:59:30]Write to MH i2c: F0 00 00 E7 29 FF [14:59:30]Write i2c OK [14:59:30]MH_I2C_Read... [14:59:30]Read from MH i2c: F0 [14:59:30]MH_I2C_Read... [14:59:30]Read from MH i2c: F0 09 00 [14:59:30]MH_I2C_Read... [14:59:30]Read from MH i2c: F0 09 00 E7 29 00 D6 F1 B5 67 7E 41 4F 65 5E [14:59:30]GetLastDocTimeStamp 1739976603 [14:59:30]current date 1739977174 [14:59:30]FM_GetShiftState [14:59:30]SAM_PROTO_GetShiftState [14:59:30]wFMCommunicate request_size=4 [14:59:30]MH_SAM_APDU [14:59:30]CAPDU: 80 13 01 00 [14:59:30]Write to MH i2c: E2 08 00 E8 29 80 13 01 00 00 00 00 00 8E [14:59:30]Write i2c OK [14:59:30]MH_I2C_Read... [14:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:30]Read from MH i2c: E2 [14:59:30]MH_I2C_Read... [14:59:30]Read from MH i2c: E2 0E 00 [14:59:30]MH_I2C_Read... [14:59:30]Read from MH i2c: E2 0E 00 E8 29 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 0D [14:59:30]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:59:30]wFMCommunicate OK [14:59:30]SAM_PROTO_GetShiftState done [14:59:30]FM_GetShiftState done [14:59:30]opened in 1739929631 [14:59:30]opened+sec_in_day 1740016031 [14:59:30]quantity*price = 40060 [14:59:30]sum+1 = 40062 [14:59:30]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 СНО: Общий режим Чек 141 19.02.2025 14:59 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187075 ФПД: 81876074091182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T145934&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187075&fm=81876074091182&tin=02508201610067®Number=0000000000091857&sum=40000 [14:59:31]StoreToDocumentArchive [14:59:32]shift 647 fd 187075 [14:59:32]save to /storage/0647/doc_00187075 [14:59:32]save last doc name /storage/0647/doc_00187075 to /storage/kkm_last_doc_name [14:59:32]save OK [14:59:32]Clear old archive folders... [14:59:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:32]tlvbuf is 006759B0 [14:59:32]SAM_PROTO_ClearQueue [14:59:32]wFMCommunicate request_size=4 [14:59:32]MH_SAM_APDU [14:59:32]CAPDU: 80 09 00 00 [14:59:32]Write to MH i2c: E2 08 00 F5 29 80 09 00 00 00 00 00 00 90 [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:32]Read from MH i2c: E2 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 F5 29 00 90 00 92 [14:59:32]RAPDU: 90 00 [14:59:32]wFMCommunicate OK [14:59:32]SAM_PROTO_ClearQueue done [14:59:32]KKMCreateOFDPacket [14:59:32]OFDProtocolAddRootSTLVToBuf [14:59:32]FM_MakeSignedData [14:59:32]FM_MakeSignedData [14:59:32]SAM_PROTO_SignData [14:59:32]wFMCommunicate request_size=4 [14:59:32]MH_SAM_APDU [14:59:32]CAPDU: 80 0D 01 02 [14:59:32]Write to MH i2c: E2 08 00 F6 29 80 0D 01 02 00 00 00 00 98 [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:32]Read from MH i2c: E2 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 F6 29 00 90 00 93 [14:59:32]RAPDU: 90 00 [14:59:32]wFMCommunicate OK [14:59:32]wFMCommunicate request_size=255 [14:59:32]MH_SAM_APDU [14:59:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 8D 00 00 00 F4 03 04 00 D6 F1 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 C3 DA 02 00 35 04 06 00 4A [14:59:32]Write to MH i2c: E2 02 01 F7 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 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 8D 00 00 00 F4 03 04 00 D6 F1 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 C3 DA 02 00 35 04 06 00 4A 00 00 0D [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:32]Read from MH i2c: E2 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 F7 29 00 90 00 94 [14:59:32]RAPDU: 90 00 [14:59:32]wFMCommunicate OK [14:59:32]wFMCommunicate request_size=10 [14:59:32]MH_SAM_APDU [14:59:32]CAPDU: 80 0D 02 02 05 77 42 4F D2 AE [14:59:32]Write to MH i2c: E2 0D 00 F8 29 80 0D 02 02 05 00 77 42 4F D2 AE 00 00 2D [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:32]Read from MH i2c: E2 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 03 00 F8 29 00 90 00 95 [14:59:32]RAPDU: 90 00 [14:59:32]wFMCommunicate OK [14:59:32]wFMCommunicate request_size=4 [14:59:32]MH_SAM_APDU [14:59:32]CAPDU: 80 0D 03 02 [14:59:32]Write to MH i2c: E2 08 00 F9 29 80 0D 03 02 00 00 00 00 9D [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:32]Read from MH i2c: E2 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 0B 00 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 0B 00 F9 29 00 BC 86 54 CA 86 CE 09 13 90 00 6E [14:59:32]RAPDU: BC 86 54 CA 86 CE 09 13 90 00 [14:59:32]wFMCommunicate OK [14:59:32]SAM_PROTO_SignData done [14:59:32]FM_MakeSignedData done [14:59:32]CreateOFDProtocolMessage [14:59:32]wFMCommunicate request_size=4 [14:59:32]MH_SAM_APDU [14:59:32]CAPDU: 80 11 00 00 [14:59:32]Write to MH i2c: E2 08 00 FA 29 80 11 00 00 00 00 00 00 9D [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:32]Read from MH i2c: E2 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 17 00 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: E2 17 00 FA 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F0 [14:59:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:59:32]wFMCommunicate OK [14:59:32]CreateOFDProtocolMessage done [14:59:32]OFDSenderStorePacket 187075 [14:59:32]StoreOFDPacket docnum=187075 [14:59: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 8B 07 01 B7 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 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 8D 00 00 00 F4 03 04 00 D6 F1 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 C3 DA 02 00 35 04 06 00 4A 77 42 4F D2 AE BC 86 54 CA 86 CE 09 13 [14:59:32]CheckFolder [14:59:32]dirname=/storage/ofd_packets [14:59:32]CheckFolder done [14:59:32]ProducePacketName [14:59:32]name=ofd_packets/00187075 [14:59:32]NVStorageSaveData ofd_packets/00187075 [14:59:32]File name is /storage/ofd_packets/00187075 [14:59:32]Write 301 bytes [14:59:32]NVStorageSaveData done [14:59:32]OFDSenderStorePacket done [14:59:32]KKMCreateOFDPacket done [14:59:32]NVStorageSaveData kkm_last_timestamp [14:59:32]File name is /storage/kkm_last_timestamp [14:59:32]Write 4 bytes [14:59:32]NVStorageSaveData done [14:59:32]ExternCall_PrintAddStr [14:59:32]wPrintStart [14:59:32]Write to MH i2c: 01 00 00 FB 29 24 [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: 01 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: 01 07 00 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: 01 07 00 FB 29 00 00 00 00 00 FF 0F 39 [14:59:32]RasterBufferAndPrint [14:59:32]line Счет N : (1)412227 [14:59:32]line ИНН: 02508201610067 [14:59:32]line Контрольно-Кассовый Чек [14:59:32]line ПРОДАЖА [14:59:32]line ТРК (МРК, ГНК) : 22 [14:59:32]line Товар: 2710124130 [14:59:32]line Аи-92-К-2 [14:59:32]line 6.240 * 64.20 [14:59:32]line = 400.61 [14:59:32]line НДС 12% НСП 1% [14:59:32]line > о реализуемом товаре [14:59:32]line ОКРУГЛЕНИЕ: -0.61 [14:59:32]line ИТОГО: 400.00 [14:59:32]line Внесено: 400.00 [14:59:32]line СДАЧА: 0.00 [14:59:32]line НСП 1% : 3.54 [14:59:32]line НДС 12% : 42.54 [14:59:32]line Наличными: 400.00 [14:59:32]line Безнал.: 0.00 [14:59:32]line Место: АЗС № 92 "Партнер Нефть" [14:59:32]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:59:32]line СНО: Общий режим [14:59:32]line Чек 141 19.02.2025 14:59 [14:59:32]line Смена: 647 ФФД: 1.0 [14:59:32]line ЗНМ: 0300000118 [14:59:32]line РНМ: 0000000000091857 [14:59:32]line Версия ККМ: 001 [14:59:32]line ФМ: 0000000000871826 [14:59:32]line ФД: 187075 [14:59:32]line ФПД: 81876074091182 [14:59:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T145934&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187075&fm=81876074091182&tin=02508201610067®Number=0000000000091857&sum=40000 [14:59:32]OFD Sender: Processing packet 187075 [packets to send 49, broken 48] [14:59:32]ProducePacketName [14:59:32]name=ofd_packets/00187075 [14:59:32]OFD Sender: To server: pG, [14:59:32]CommunicateWithHost lk.salyk.kg:30040 [14:59:32]ConnectInit lk.salyk.kg [14:59:32]written 0, free lines is 4095 [14:59:33]Connected sock=10 [14:59:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 34 8B 07 01 B7 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 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 8D 00 00 00 F4 03 04 00 D6 F1 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 C3 DA 02 00 35 04 06 00 4A 77 42 4F D2 AE BC 86 54 CA 86 CE 09 13 [14:59:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 03 16 47 00 9B 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C3 DA 02 00 F4 03 04 00 2A 98 B5 67 B6 04 01 00 00 24 A9 D7 91 86 42 B5 04 [14:59:33]CommunicateWithHost err = 0 [14:59:33]CheckOFDResponse [14:59:33]1017 (14) - 77093643461234 [14:59:33]1041 (16) - 0000000000871826 [14:59:33]1040 (4) - 187075 [14:59:33]1012 (4) - 19.02.2025 08:36 [14:59:33]1206 (1) - 0 [14:59:33]OFD Sender: Remove packet 187075 [14:59:33]ProducePacketName [14:59:33]name=ofd_packets/00187075 [14:59:33]NVStorageDeleteData [14:59:33]Write to MH i2c: 01 00 00 26 2A 50 [14:59:33]Write i2c OK [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: 01 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: 01 07 00 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: 01 07 00 26 2A 00 00 00 00 00 F3 0C 56 [14:59:33]RasterBufferAndPrint [14:59:33]line [14:59:33]line [14:59:33]line [14:59:33]line [14:59:33]line [14:59:33]written 0, free lines is 3321 [14:59:33]MH_Cut [14:59:33]Write to MH i2c: D1 01 00 2D 2A 01 29 [14:59:33]Write i2c OK [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: D1 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: D1 01 00 [14:59:33]MH_I2C_Read... [14:59:33]Read from MH i2c: D1 01 00 2D 2A 00 28 [14:59:33]Write to MH i2c: 01 00 00 2E 2A 58 [14:59:33]Write i2c OK [14:59:33]MH_I2C_Read... [14:59:33]OFD Sender: No OFD packet to send [14:59:33]*** Cut start [14:59:33]*** Partial cut [14:59:33]*** CUTSNS_PIN = 1 [14:59:34]*** CUTSNS_PIN = 0 [14:59:34]*** Brake cut motor [14:59:34]Read from MH i2c: 01 [14:59:34]MH_I2C_Read... [14:59:34]*** Stop cut motor [14:59:34]*** Cut end [14:59:34]Read from MH i2c: 01 07 00 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: 01 07 00 2E 2A 00 00 00 00 00 FF 0F 6D [14:59:34]process_action close_receipt done [14:59:34]requested_data is exist [14:59:34]produce_requested_data [14:59:34]requested_item fm.sn is exist - process it [14:59:34]wFMCommunicate request_size=4 [14:59:34]MH_SAM_APDU [14:59:34]CAPDU: 80 11 00 00 [14:59:34]Write to MH i2c: E2 08 00 2F 2A 80 11 00 00 00 00 00 00 D3 [14:59:34]Write i2c OK [14:59:34]MH_I2C_Read... [14:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:34]Read from MH i2c: E2 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 17 00 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 17 00 2F 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 26 [14:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:59:34]wFMCommunicate OK [14:59:34]requested_item fd.num is exist - process it [14:59:34]SAM_PROTO_GetFieldsCounters [14:59:34]wFMCommunicate request_size=4 [14:59:34]MH_SAM_APDU [14:59:34]CAPDU: 80 13 00 00 [14:59:34]Write to MH i2c: E2 08 00 30 2A 80 13 00 00 00 00 00 00 D6 [14:59:34]Write i2c OK [14:59:34]MH_I2C_Read... [14:59:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:34]Read from MH i2c: E2 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 62 00 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 62 00 30 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 C3 DA 02 00 0E 04 04 00 87 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 CB [14:59:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [14:59:34]wFMCommunicate OK [14:59:34]SAM_PROTO_GetFieldsCounters done [14:59:34]requested_item shift.num is exist - process it [14:59:34]requested_item shift.opened is exist - process it [14:59:34]req_shift_opened [14:59:34]FM_GetShiftState [14:59:34]SAM_PROTO_GetShiftState [14:59:34]wFMCommunicate request_size=4 [14:59:34]MH_SAM_APDU [14:59:34]CAPDU: 80 13 01 00 [14:59:34]Write to MH i2c: E2 08 00 31 2A 80 13 01 00 00 00 00 00 D8 [14:59:34]Write i2c OK [14:59:34]MH_I2C_Read... [14:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:34]Read from MH i2c: E2 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 0E 00 [14:59:34]MH_I2C_Read... [14:59:34]Read from MH i2c: E2 0E 00 31 2A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 57 [14:59:34]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:59:34]wFMCommunicate OK [14:59:34]SAM_PROTO_GetShiftState done [14:59:34]FM_GetShiftState done [14:59:34]req_shift_opened done [14:59:34]requested_item shift.open_date is exist - process it [14:59:34]req_shift_open_date [14:59:34]req_shift_open_date done [14:59:34]produce_requested_data done [14:59:34]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187075,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [14:59:34]process_action_free close_receipt [14:59:34]json_value_free [14:59:34]json_value_free done [14:59:34]process_json_proto returns [14:59:34]Send response to host [14:59:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187075,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [14:59:34]free response buf [14:59:34]execute_script done [14:59:34]execute_script returns [14:59:34]free content buf [14:59:34]Sock 7.Close socket [14:59:34]Sock 7.Thread stoped [14:59:37]accept exits with 9 [14:59:37]New connection [14:59:37]New thread 3066879332 created [14:59:37]Thread 3067022692 joined [14:59:37]Waiting for new connection... [14:59:37] Sock 9.Parse request [14:59:37]Sock 9.Check first char [14:59:37]Sock 9.First char is OK [14:59:37]request: POST /json_proto HTTP/1.0 [14:59:37]Method: POST [14:59:37]URL: /json_proto [14:59:37]Method is POST - this is cgi request [14:59:37]url: /json_proto [14:59:37]query_string will be loaded in cgi processing [14:59:37]execute_cgi json_proto POST (null) [14:59:37]execute_cgi path=json_proto method=POST [14:59:37]POST find Content-Length [14:59:37]Host: 172.17.46.131:8080 [14:59:37]Content-Length: 678 [14:59:37]Content-Type: application/json [14:59:37] [14:59:37]POST finish read [14:59:37]Found Content-Length = 678 [14:59:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412226", "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" : 18.600, "sum" : 1350.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:37]execute_script... [14:59: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)412226", "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" : 18.600, "sum" : 1350.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:37]POST & json_proto [14:59:37]process_json_proto [14:59:37]json parsed OK: [14:59:37]protocol is kg_v1.0 [14:59:37]action value=close_receipt [14:59:37]process_action close_receipt [14:59:37]cmd_close_receipt [14:59:37]MH_GetDate [14:59:37]Write to MH i2c: F0 00 00 32 2A 4B [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: F0 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: F0 09 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: F0 09 00 32 2A 00 DD F1 B5 67 7E 41 4F 65 B1 [14:59:37]GetLastDocTimeStamp 1739977174 [14:59:37]current date 1739977181 [14:59:37]FM_GetShiftState [14:59:37]SAM_PROTO_GetShiftState [14:59:37]wFMCommunicate request_size=4 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 13 01 00 [14:59:37]Write to MH i2c: E2 08 00 33 2A 80 13 01 00 00 00 00 00 DA [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:38]Read from MH i2c: E2 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 0E 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 0E 00 33 2A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 59 [14:59:38]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:59:38]wFMCommunicate OK [14:59:38]SAM_PROTO_GetShiftState done [14:59:38]FM_GetShiftState done [14:59:38]opened in 1739929631 [14:59:38]opened+sec_in_day 1740016031 [14:59:38]quantity*price = 135036 [14:59:38]sum+1 = 135037 [14:59:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1350.00 Внесено: 1350.00 СДАЧА: 0.00 НСП 1% : 11.95 НДС 12% : 143.40 Наличными: 1350.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 142 19.02.2025 14:59 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187076 ФПД: 31520445256793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T145941&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187076&fm=31520445256793&tin=02508201610067®Number=0000000000091857&sum=135000 [14:59:39]StoreToDocumentArchive [14:59:39]shift 647 fd 187076 [14:59:39]save to /storage/0647/doc_00187076 [14:59:39]save last doc name /storage/0647/doc_00187076 to /storage/kkm_last_doc_name [14:59:39]save OK [14:59:39]Clear old archive folders... [14:59:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:59:39]tlvbuf is 00622CC0 [14:59:39]SAM_PROTO_ClearQueue [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 09 00 00 [14:59:39]Write to MH i2c: E2 08 00 40 2A 80 09 00 00 00 00 00 00 DC [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 40 2A 00 90 00 DE [14:59:39]RAPDU: 90 00 [14:59:39]wFMCommunicate OK [14:59:39]SAM_PROTO_ClearQueue done [14:59:39]KKMCreateOFDPacket [14:59:39]OFDProtocolAddRootSTLVToBuf [14:59:39]FM_MakeSignedData [14:59:39]FM_MakeSignedData [14:59:39]SAM_PROTO_SignData [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 0D 01 02 [14:59:39]Write to MH i2c: E2 08 00 41 2A 80 0D 01 02 00 00 00 00 E4 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 41 2A 00 90 00 DF [14:59:39]RAPDU: 90 00 [14:59:39]wFMCommunicate OK [14:59:39]wFMCommunicate request_size=255 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 48 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 7C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 DD F1 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 C4 DA 02 00 35 04 06 00 1C AA EC F1 [14:59:39]Write to MH i2c: E2 02 01 42 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 A8 48 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 7C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 DD F1 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 C4 DA 02 00 35 04 06 00 1C AA EC F1 00 00 3C [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 42 2A 00 90 00 E0 [14:59:39]RAPDU: 90 00 [14:59:39]wFMCommunicate OK [14:59:39]wFMCommunicate request_size=7 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 0D 02 02 02 54 59 [14:59:39]Write to MH i2c: E2 0A 00 43 2A 80 0D 02 02 02 00 54 59 00 00 98 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 43 2A 00 90 00 E1 [14:59:39]RAPDU: 90 00 [14:59:39]wFMCommunicate OK [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 0D 03 02 [14:59:39]Write to MH i2c: E2 08 00 44 2A 80 0D 03 02 00 00 00 00 E9 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 0B 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 0B 00 44 2A 00 5B 8E DF 19 09 FD 78 7B 90 00 C4 [14:59:39]RAPDU: 5B 8E DF 19 09 FD 78 7B 90 00 [14:59:39]wFMCommunicate OK [14:59:39]SAM_PROTO_SignData done [14:59:39]FM_MakeSignedData done [14:59:39]CreateOFDProtocolMessage [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 11 00 00 [14:59:39]Write to MH i2c: E2 08 00 45 2A 80 11 00 00 00 00 00 00 E9 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 17 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 17 00 45 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3C [14:59: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:59:39]wFMCommunicate OK [14:59:39]CreateOFDProtocolMessage done [14:59:39]OFDSenderStorePacket 187076 [14:59:39]StoreOFDPacket docnum=187076 [14:59: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 0C 01 00 00 8E EC 04 01 E1 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 A8 48 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 7C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 DD F1 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 C4 DA 02 00 35 04 06 00 1C AA EC F1 54 59 5B 8E DF 19 09 FD 78 7B [14:59:39]CheckFolder [14:59:39]dirname=/storage/ofd_packets [14:59:39]CheckFolder done [14:59:39]ProducePacketName [14:59:39]name=ofd_packets/00187076 [14:59:39]NVStorageSaveData ofd_packets/00187076 [14:59:39]File name is /storage/ofd_packets/00187076 [14:59:39]Write 298 bytes [14:59:39]NVStorageSaveData done [14:59:39]OFDSenderStorePacket done [14:59:39]KKMCreateOFDPacket done [14:59:39]NVStorageSaveData kkm_last_timestamp [14:59:39]File name is /storage/kkm_last_timestamp [14:59:39]Write 4 bytes [14:59:39]NVStorageSaveData done [14:59:39]ExternCall_PrintAddStr [14:59:39]wPrintStart [14:59:39]Write to MH i2c: 01 00 00 46 2A 70 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: 01 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: 01 07 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: 01 07 00 46 2A 00 00 00 00 00 FF 0F 85 [14:59:39]RasterBufferAndPrint [14:59:39]line Счет N : (1)412226 [14:59:39]line ИНН: 02508201610067 [14:59:39]line Контрольно-Кассовый Чек [14:59:39]line ПРОДАЖА [14:59:39]line ТРК (МРК, ГНК) : 5 [14:59:39]line Товар: 2710194210 [14:59:39]line ДТ-К-5 [14:59:39]line 18.600 * 72.60 [14:59:39]line = 1350.36 [14:59:39]line НДС 12% НСП 1% [14:59:39]line > о реализуемом товаре [14:59:39]line ОКРУГЛЕНИЕ: -0.36 [14:59:39]line ИТОГО: 1350.00 [14:59:39]line Внесено: 1350.00 [14:59:39]line СДАЧА: 0.00 [14:59:39]line НСП 1% : 11.95 [14:59:39]line НДС 12% : 143.40 [14:59:39]line Наличными: 1350.00 [14:59:39]line Безнал.: 0.00 [14:59:39]line Место: АЗС № 92 "Партнер Нефть" [14:59:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:59:39]line СНО: Общий режим [14:59:39]line Чек 142 19.02.2025 14:59 [14:59:39]line Смена: 647 ФФД: 1.0 [14:59:39]line ЗНМ: 0300000118 [14:59:39]line РНМ: 0000000000091857 [14:59:39]line Версия ККМ: 001 [14:59:39]line ФМ: 0000000000871826 [14:59:39]line ФД: 187076 [14:59:39]line ФПД: 31520445256793 [14:59:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T145941&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187076&fm=31520445256793&tin=02508201610067®Number=0000000000091857&sum=135000 [14:59:39]written 0, free lines is 4095 [14:59:39]OFD Sender: Processing packet 187076 [packets to send 49, broken 48] [14:59:39]ProducePacketName [14:59:39]name=ofd_packets/00187076 [14:59:39]OFD Sender: To server: pG, [14:59:39]CommunicateWithHost lk.salyk.kg:30040 [14:59:39]ConnectInit lk.salyk.kg [14:59:39]Connected sock=10 [14:59: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 8E EC 04 01 E1 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 A8 48 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 7C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 DD F1 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 C4 DA 02 00 35 04 06 00 1C AA EC F1 54 59 5B 8E DF 19 09 FD 78 7B [14:59:40]Write to MH i2c: 01 00 00 71 2A 9B [14:59:40]Write i2c OK [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: 01 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: 01 07 00 [14:59:40]MH_I2C_Read... [14:59: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 A4 F6 47 00 AD 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 C4 DA 02 00 F4 03 04 00 31 98 B5 67 B6 04 01 00 00 FE A5 92 DB 41 5E C9 75 [14:59:40]CommunicateWithHost err = 0 [14:59:40]CheckOFDResponse [14:59:40]1017 (14) - 77093643461234 [14:59:40]1041 (16) - 0000000000871826 [14:59:40]1040 (4) - 187076 [14:59:40]1012 (4) - 19.02.2025 08:37 [14:59:40]1206 (1) - 0 [14:59:40]OFD Sender: Remove packet 187076 [14:59:40]ProducePacketName [14:59:40]name=ofd_packets/00187076 [14:59:40]NVStorageDeleteData [14:59:40]Read from MH i2c: 01 07 00 71 2A 00 00 00 00 00 F3 0C A1 [14:59:40]RasterBufferAndPrint [14:59:40]line [14:59:40]line [14:59:40]line [14:59:40]line [14:59:40]line [14:59:40]written 0, free lines is 3363 [14:59:40]MH_Cut [14:59:40]Write to MH i2c: D1 01 00 78 2A 01 74 [14:59:40]Write i2c OK [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: D1 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: D1 01 00 [14:59:40]MH_I2C_Read... [14:59:40]Read from MH i2c: D1 01 00 78 2A 00 73 [14:59:40]Write to MH i2c: 01 00 00 79 2A A3 [14:59:40]Write i2c OK [14:59:40]MH_I2C_Read... [14:59:40]OFD Sender: No OFD packet to send [14:59:40]*** Cut start [14:59:40]*** Partial cut [14:59:40]*** CUTSNS_PIN = 1 [14:59:40]*** CUTSNS_PIN = 0 [14:59:41]*** Brake cut motor [14:59:41]Read from MH i2c: 01 [14:59:41]MH_I2C_Read... [14:59:41]*** Stop cut motor [14:59:41]*** Cut end [14:59:41]Read from MH i2c: 01 07 00 [14:59:41]MH_I2C_Read... [14:59:41]Read from MH i2c: 01 07 00 79 2A 00 00 00 00 00 FF 0F B8 [14:59:41]process_action close_receipt done [14:59:41]requested_data is exist [14:59:41]produce_requested_data [14:59:41]requested_item fm.sn is exist - process it [14:59:41]wFMCommunicate request_size=4 [14:59:41]MH_SAM_APDU [14:59:41]CAPDU: 80 11 00 00 [14:59:41]Write to MH i2c: E2 08 00 7A 2A 80 11 00 00 00 00 00 00 1E [14:59:41]Write i2c OK [14:59:41]MH_I2C_Read... [14:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:41]Read from MH i2c: E2 [14:59:41]MH_I2C_Read... [14:59:41]Read from MH i2c: E2 17 00 [14:59:41]MH_I2C_Read... [14:59:41]Read from MH i2c: E2 17 00 7A 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 71 [14:59: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:59:41]wFMCommunicate OK [14:59:41]requested_item fd.num is exist - process it [14:59:41]SAM_PROTO_GetFieldsCounters [14:59:41]wFMCommunicate request_size=4 [14:59:41]MH_SAM_APDU [14:59:41]CAPDU: 80 13 00 00 [14:59:41]Write to MH i2c: E2 08 00 7B 2A 80 13 00 00 00 00 00 00 21 [14:59:41]Write i2c OK [14:59:41]MH_I2C_Read... [14:59:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:41]Read from MH i2c: E2 [14:59:41]MH_I2C_Read... [14:59:41]Read from MH i2c: E2 62 00 [14:59:41]MH_I2C_Read... [14:59:41]Read from MH i2c: E2 62 00 7B 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 C4 DA 02 00 0E 04 04 00 87 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 1A [14:59: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 C4 DA 02 00 0E 04 04 00 87 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:59:41]wFMCommunicate OK [14:59:41]SAM_PROTO_GetFieldsCounters done [14:59:41]requested_item shift.num is exist - process it [14:59:41]requested_item shift.opened is exist - process it [14:59:41]req_shift_opened [14:59:41]FM_GetShiftState [14:59:41]SAM_PROTO_GetShiftState [14:59:41]wFMCommunicate request_size=4 [14:59:41]MH_SAM_APDU [14:59:41]CAPDU: 80 13 01 00 [14:59:41]Write to MH i2c: E2 08 00 7C 2A 80 13 01 00 00 00 00 00 23 [14:59:41]Write i2c OK [14:59:41]MH_I2C_Read... [14:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:41]Read from MH i2c: E2 [14:59:41]MH_I2C_Read... [14:59:41]Read from MH i2c: E2 0E 00 [14:59:41]MH_I2C_Read... [14:59:41]Read from MH i2c: E2 0E 00 7C 2A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A2 [14:59:41]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [14:59:41]wFMCommunicate OK [14:59:41]SAM_PROTO_GetShiftState done [14:59:41]FM_GetShiftState done [14:59:41]req_shift_opened done [14:59:41]requested_item shift.open_date is exist - process it [14:59:41]req_shift_open_date [14:59:41]req_shift_open_date done [14:59:41]produce_requested_data done [14:59:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187076,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [14:59:41]process_action_free close_receipt [14:59:41]json_value_free [14:59:41]json_value_free done [14:59:41]process_json_proto returns [14:59:41]Send response to host [14:59:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187076,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [14:59:41]free response buf [14:59:41]execute_script done [14:59:41]execute_script returns [14:59:41]free content buf [14:59:41]Sock 9.Close socket [14:59:41]Sock 9.Thread stoped [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:15]accept exits with 7 [15:00:15]New connection [15:00:15]New thread 3067022692 created [15:00:15]Thread 3066879332 joined [15:00:15]Waiting for new connection... [15:00:15] Sock 7.Parse request [15:00:15]Sock 7.Check first char [15:00:15]Sock 7.First char is OK [15:00:15]request: POST /json_proto HTTP/1.0 [15:00:15]Method: POST [15:00:15]URL: /json_proto [15:00:15]Method is POST - this is cgi request [15:00:15]url: /json_proto [15:00:15]query_string will be loaded in cgi processing [15:00:15]execute_cgi json_proto POST (null) [15:00:15]execute_cgi path=json_proto method=POST [15:00:15]POST find Content-Length [15:00:15]Host: 172.17.46.131:8080 [15:00:15]Content-Length: 677 [15:00:15]Content-Type: application/json [15:00:15] [15:00:15]POST finish read [15:00:15]Found Content-Length = 677 [15:00:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412228", "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" ] } } [15:00:15]execute_script... [15:00: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)412228", "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" ] } } [15:00:15]POST & json_proto [15:00:15]process_json_proto [15:00:15]json parsed OK: [15:00:15]protocol is kg_v1.0 [15:00:15]action value=close_receipt [15:00:15]process_action close_receipt [15:00:15]cmd_close_receipt [15:00:15]MH_GetDate [15:00:15]Write to MH i2c: F0 00 00 7D 2A 96 [15:00:15]Write i2c OK [15:00:15]MH_I2C_Read... [15:00:15]Read from MH i2c: F0 [15:00:15]MH_I2C_Read... [15:00:15]Read from MH i2c: F0 09 00 [15:00:15]MH_I2C_Read... [15:00:15]Read from MH i2c: F0 09 00 7D 2A 00 03 F2 B5 67 7E 41 4F 65 23 [15:00:15]GetLastDocTimeStamp 1739977181 [15:00:15]current date 1739977219 [15:00:15]FM_GetShiftState [15:00:15]SAM_PROTO_GetShiftState [15:00:15]wFMCommunicate request_size=4 [15:00:15]MH_SAM_APDU [15:00:15]CAPDU: 80 13 01 00 [15:00:15]Write to MH i2c: E2 08 00 7E 2A 80 13 01 00 00 00 00 00 25 [15:00:15]Write i2c OK [15:00:15]MH_I2C_Read... [15:00:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:15]Read from MH i2c: E2 [15:00:15]MH_I2C_Read... [15:00:15]Read from MH i2c: E2 0E 00 [15:00:15]MH_I2C_Read... [15:00:15]Read from MH i2c: E2 0E 00 7E 2A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A4 [15:00:15]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:00:15]wFMCommunicate OK [15:00:15]SAM_PROTO_GetShiftState done [15:00:15]FM_GetShiftState done [15:00:15]opened in 1739929631 [15:00:15]opened+sec_in_day 1740016031 [15:00:15]quantity*price = 50011 [15:00:15]sum+1 = 50013 [15:00: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 СНО: Общий режим Чек 143 19.02.2025 15:00 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187077 ФПД: 28498806229890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T150019&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187077&fm=28498806229890&tin=02508201610067®Number=0000000000091857&sum=50000 [15:00:16]StoreToDocumentArchive [15:00:16]shift 647 fd 187077 [15:00:16]save to /storage/0647/doc_00187077 [15:00:16]save last doc name /storage/0647/doc_00187077 to /storage/kkm_last_doc_name [15:00:16]save OK [15:00:16]Clear old archive folders... [15:00:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:00:16]tlvbuf is 005E2680 [15:00:16]SAM_PROTO_ClearQueue [15:00:16]wFMCommunicate request_size=4 [15:00:16]MH_SAM_APDU [15:00:16]CAPDU: 80 09 00 00 [15:00:16]Write to MH i2c: E2 08 00 8B 2A 80 09 00 00 00 00 00 00 27 [15:00:16]Write i2c OK [15:00:16]MH_I2C_Read... [15:00:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:16]Read from MH i2c: E2 [15:00:16]MH_I2C_Read... [15:00:16]Read from MH i2c: E2 03 00 [15:00:16]MH_I2C_Read... [15:00:16]Read from MH i2c: E2 03 00 8B 2A 00 90 00 29 [15:00:16]RAPDU: 90 00 [15:00:16]wFMCommunicate OK [15:00:16]SAM_PROTO_ClearQueue done [15:00:16]KKMCreateOFDPacket [15:00:16]OFDProtocolAddRootSTLVToBuf [15:00:16]FM_MakeSignedData [15:00:16]FM_MakeSignedData [15:00:16]SAM_PROTO_SignData [15:00:16]wFMCommunicate request_size=4 [15:00:16]MH_SAM_APDU [15:00:16]CAPDU: 80 0D 01 02 [15:00:16]Write to MH i2c: E2 08 00 8C 2A 80 0D 01 02 00 00 00 00 2F [15:00:16]Write i2c OK [15:00:16]MH_I2C_Read... [15:00:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:17]Read from MH i2c: E2 [15:00:17]MH_I2C_Read... [15:00:17]Read from MH i2c: E2 03 00 [15:00:17]MH_I2C_Read... [15:00:17]Read from MH i2c: E2 03 00 8C 2A 00 90 00 2A [15:00:17]RAPDU: 90 00 [15:00:17]wFMCommunicate OK [15:00:17]wFMCommunicate request_size=255 [15:00:17]MH_SAM_APDU [15:00: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 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 8F 00 00 00 F4 03 04 00 03 F2 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 C5 DA 02 00 35 04 06 00 19 [15:00:17]Write to MH i2c: E2 02 01 8D 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 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 8F 00 00 00 F4 03 04 00 03 F2 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 C5 DA 02 00 35 04 06 00 19 00 00 AB [15:00:17]Write i2c OK [15:00:17]MH_I2C_Read... [15:00:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:17]Read from MH i2c: E2 [15:00:17]MH_I2C_Read... [15:00:17]Read from MH i2c: E2 03 00 [15:00:17]MH_I2C_Read... [15:00:17]Read from MH i2c: E2 03 00 8D 2A 00 90 00 2B [15:00:17]RAPDU: 90 00 [15:00:17]wFMCommunicate OK [15:00:17]wFMCommunicate request_size=10 [15:00:17]MH_SAM_APDU [15:00:17]CAPDU: 80 0D 02 02 05 EB 65 38 CB 82 [15:00:17]Write to MH i2c: E2 0D 00 8E 2A 80 0D 02 02 05 00 EB 65 38 CB 82 00 00 11 [15:00:17]Write i2c OK [15:00:17]MH_I2C_Read... [15:00:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:17]Read from MH i2c: E2 [15:00:17]MH_I2C_Read... [15:00:17]Read from MH i2c: E2 03 00 [15:00:17]MH_I2C_Read... [15:00:17]Read from MH i2c: E2 03 00 8E 2A 00 90 00 2C [15:00:17]RAPDU: 90 00 [15:00:17]wFMCommunicate OK [15:00:17]wFMCommunicate request_size=4 [15:00:17]MH_SAM_APDU [15:00:17]CAPDU: 80 0D 03 02 [15:00:17]Write to MH i2c: E2 08 00 8F 2A 80 0D 03 02 00 00 00 00 34 [15:00:17]Write i2c OK [15:00:17]MH_I2C_Read... [15:00:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:17]Read from MH i2c: E2 [15:00:17]MH_I2C_Read... [15:00:17]Read from MH i2c: E2 0B 00 [15:00:17]MH_I2C_Read... [15:00:17]Read from MH i2c: E2 0B 00 8F 2A 00 7E 0C 4C 69 9C 64 A8 2F 90 00 4B [15:00:17]RAPDU: 7E 0C 4C 69 9C 64 A8 2F 90 00 [15:00:17]wFMCommunicate OK [15:00:17]SAM_PROTO_SignData done [15:00:17]FM_MakeSignedData done [15:00:17]CreateOFDProtocolMessage [15:00:17]wFMCommunicate request_size=4 [15:00:17]MH_SAM_APDU [15:00:17]CAPDU: 80 11 00 00 [15:00:17]Write to MH i2c: E2 08 00 90 2A 80 11 00 00 00 00 00 00 34 [15:00:17]Write i2c OK [15:00:17]MH_I2C_Read... [15:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:17]Read from MH i2c: E2 [15:00:17]MH_I2C_Read... [15:00:17]Read from MH i2c: E2 17 00 [15:00:17]MH_I2C_Read... [15:00:17]Read from MH i2c: E2 17 00 90 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 87 [15:00:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:00:17]wFMCommunicate OK [15:00:17]CreateOFDProtocolMessage done [15:00:17]OFDSenderStorePacket 187077 [15:00:17]StoreOFDPacket docnum=187077 [15:00: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 81 EF 07 01 10 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 8F 00 00 00 F4 03 04 00 03 F2 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 C5 DA 02 00 35 04 06 00 19 EB 65 38 CB 82 7E 0C 4C 69 9C 64 A8 2F [15:00:17]CheckFolder [15:00:17]dirname=/storage/ofd_packets [15:00:17]CheckFolder done [15:00:17]ProducePacketName [15:00:17]name=ofd_packets/00187077 [15:00:17]NVStorageSaveData ofd_packets/00187077 [15:00:17]File name is /storage/ofd_packets/00187077 [15:00:17]Write 301 bytes [15:00:17]NVStorageSaveData done [15:00:17]OFDSenderStorePacket done [15:00:17]KKMCreateOFDPacket done [15:00:17]NVStorageSaveData kkm_last_timestamp [15:00:17]File name is /storage/kkm_last_timestamp [15:00:17]Write 4 bytes [15:00:17]NVStorageSaveData done [15:00:17]ExternCall_PrintAddStr [15:00:17]wPrintStart [15:00:17]Write to MH i2c: 01 00 00 91 2A BB [15:00:17]OFD Sender: Processing packet 187077 [packets to send 49, broken 48] [15:00:17]ProducePacketName [15:00:17]name=ofd_packets/00187077 [15:00:17]OFD Sender: To server: pG, [15:00:17]CommunicateWithHost lk.salyk.kg:30040 [15:00:17]ConnectInit lk.salyk.kg [15:00:17]Write i2c OK [15:00:17]MH_I2C_Read... [15:00:17]Read from MH i2c: 01 [15:00:17]MH_I2C_Read... [15:00:17]Read from MH i2c: 01 07 00 [15:00:17]MH_I2C_Read... [15:00:17]Read from MH i2c: 01 07 00 91 2A 00 00 00 00 00 FF 0F D0 [15:00:17]RasterBufferAndPrint [15:00:17]line Счет N : (1)412228 [15:00:17]line ИНН: 02508201610067 [15:00:17]line Контрольно-Кассовый Чек [15:00:17]line ПРОДАЖА [15:00:17]line ТРК (МРК, ГНК) : 42 [15:00:17]line Товар: 2710124130 [15:00:17]line Аи-92-К-2 [15:00:17]line 7.790 * 64.20 [15:00:17]line = 500.12 [15:00:17]line НДС 12% НСП 1% [15:00:17]line > о реализуемом товаре [15:00:17]line ОКРУГЛЕНИЕ: -0.12 [15:00:17]line ИТОГО: 500.00 [15:00:17]line Внесено: 500.00 [15:00:17]line СДАЧА: 0.00 [15:00:17]line НСП 1% : 4.43 [15:00:17]line НДС 12% : 53.11 [15:00:17]line Наличными: 500.00 [15:00:17]line Безнал.: 0.00 [15:00:17]line Место: АЗС № 92 "Партнер Нефть" [15:00:17]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:00:17]line СНО: Общий режим [15:00:17]line Чек 143 19.02.2025 15:00 [15:00:17]line Смена: 647 ФФД: 1.0 [15:00:17]line ЗНМ: 0300000118 [15:00:17]line РНМ: 0000000000091857 [15:00:17]line Версия ККМ: 001 [15:00:17]line ФМ: 0000000000871826 [15:00:17]line ФД: 187077 [15:00:17]line ФПД: 28498806229890 [15:00:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T150019&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187077&fm=28498806229890&tin=02508201610067®Number=0000000000091857&sum=50000 [15:00:17]Connected sock=10 [15:00: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 written 0, free lines is 4095 [15:00:17]00 81 EF 07 01 10 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 8F 00 00 00 F4 03 04 00 03 F2 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 C5 DA 02 00 35 04 06 00 19 EB 65 38 CB 82 7E 0C 4C 69 9C 64 A8 2F [15:00: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 74 6D 47 00 C3 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 C5 DA 02 00 F4 03 04 00 57 98 B5 67 B6 04 01 00 00 50 E0 09 01 12 DF 57 75 [15:00:18]CommunicateWithHost err = 0 [15:00:18]CheckOFDResponse [15:00:18]1017 (14) - 77093643461234 [15:00:18]1041 (16) - 0000000000871826 [15:00:18]1040 (4) - 187077 [15:00:18]1012 (4) - 19.02.2025 08:37 [15:00:18]1206 (1) - 0 [15:00:18]OFD Sender: Remove packet 187077 [15:00:18]ProducePacketName [15:00:18]name=ofd_packets/00187077 [15:00:18]NVStorageDeleteData [15:00:18]Write to MH i2c: 01 00 00 BC 2A E6 [15:00:18]Write i2c OK [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: 01 [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: 01 07 00 [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: 01 07 00 BC 2A 00 00 00 00 00 ED 0C E6 [15:00:18]RasterBufferAndPrint [15:00:18]line [15:00:18]line [15:00:18]line [15:00:18]line [15:00:18]line [15:00:18]written 0, free lines is 3315 [15:00:18]MH_Cut [15:00:18]Write to MH i2c: D1 01 00 C3 2A 01 BF [15:00:18]Write i2c OK [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: D1 [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: D1 01 00 [15:00:18]MH_I2C_Read... [15:00:18]Read from MH i2c: D1 01 00 C3 2A 00 BE [15:00:18]Write to MH i2c: 01 00 00 C4 2A EE [15:00:18]Write i2c OK [15:00:18]MH_I2C_Read... [15:00:18]OFD Sender: No OFD packet to send [15:00:18]*** Cut start [15:00:18]*** Partial cut [15:00:18]*** CUTSNS_PIN = 1 [15:00:19]*** CUTSNS_PIN = 0 [15:00:19]*** Brake cut motor [15:00:19]Read from MH i2c: 01 [15:00:19]MH_I2C_Read... [15:00:19]*** Stop cut motor [15:00:19]*** Cut end [15:00:19]Read from MH i2c: 01 07 00 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: 01 07 00 C4 2A 00 00 00 00 00 FF 0F 03 [15:00:19]process_action close_receipt done [15:00:19]requested_data is exist [15:00:19]produce_requested_data [15:00:19]requested_item fm.sn is exist - process it [15:00:19]wFMCommunicate request_size=4 [15:00:19]MH_SAM_APDU [15:00:19]CAPDU: 80 11 00 00 [15:00:19]Write to MH i2c: E2 08 00 C5 2A 80 11 00 00 00 00 00 00 69 [15:00:19]Write i2c OK [15:00:19]MH_I2C_Read... [15:00:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:19]Read from MH i2c: E2 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: E2 17 00 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: E2 17 00 C5 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BC [15:00:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:00:19]wFMCommunicate OK [15:00:19]requested_item fd.num is exist - process it [15:00:19]SAM_PROTO_GetFieldsCounters [15:00:19]wFMCommunicate request_size=4 [15:00:19]MH_SAM_APDU [15:00:19]CAPDU: 80 13 00 00 [15:00:19]Write to MH i2c: E2 08 00 C6 2A 80 13 00 00 00 00 00 00 6C [15:00:19]Write i2c OK [15:00:19]MH_I2C_Read... [15:00:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:19]Read from MH i2c: E2 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: E2 62 00 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: E2 62 00 C6 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 C5 DA 02 00 0E 04 04 00 87 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 69 [15:00: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 C5 DA 02 00 0E 04 04 00 87 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 [15:00:19]wFMCommunicate OK [15:00:19]SAM_PROTO_GetFieldsCounters done [15:00:19]requested_item shift.num is exist - process it [15:00:19]requested_item shift.opened is exist - process it [15:00:19]req_shift_opened [15:00:19]FM_GetShiftState [15:00:19]SAM_PROTO_GetShiftState [15:00:19]wFMCommunicate request_size=4 [15:00:19]MH_SAM_APDU [15:00:19]CAPDU: 80 13 01 00 [15:00:19]Write to MH i2c: E2 08 00 C7 2A 80 13 01 00 00 00 00 00 6E [15:00:19]Write i2c OK [15:00:19]MH_I2C_Read... [15:00:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:19]Read from MH i2c: E2 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: E2 0E 00 [15:00:19]MH_I2C_Read... [15:00:19]Read from MH i2c: E2 0E 00 C7 2A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 ED [15:00:19]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:00:19]wFMCommunicate OK [15:00:19]SAM_PROTO_GetShiftState done [15:00:19]FM_GetShiftState done [15:00:19]req_shift_opened done [15:00:19]requested_item shift.open_date is exist - process it [15:00:19]req_shift_open_date [15:00:19]req_shift_open_date done [15:00:19]produce_requested_data done [15:00:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187077,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:00:19]process_action_free close_receipt [15:00:19]json_value_free [15:00:19]json_value_free done [15:00:19]process_json_proto returns [15:00:19]Send response to host [15:00:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187077,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:00:19]free response buf [15:00:19]execute_script done [15:00:19]execute_script returns [15:00:19]free content buf [15:00:19]Sock 7.Close socket [15:00:19]Sock 7.Thread stoped [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:38]OFD Sender: No OFD packet to send [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:51]accept exits with 9 [15:01:51]New connection [15:01:51]New thread 3066879332 created [15:01:51]Thread 3067022692 joined [15:01:51]Waiting for new connection... [15:01:51] Sock 9.Parse request [15:01:51]Sock 9.Check first char [15:01:51]Sock 9.First char is OK [15:01:51]request: POST /json_proto HTTP/1.0 [15:01:51]Method: POST [15:01:51]URL: /json_proto [15:01:51]Method is POST - this is cgi request [15:01:51]url: /json_proto [15:01:51]query_string will be loaded in cgi processing [15:01:51]execute_cgi json_proto POST (null) [15:01:51]execute_cgi path=json_proto method=POST [15:01:51]POST find Content-Length [15:01:51]Host: 172.17.46.131:8080 [15:01:51]Content-Length: 678 [15:01:51]Content-Type: application/json [15:01:51] [15:01:51]POST finish read [15:01:51]Found Content-Length = 678 [15:01:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412229", "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" ] } } [15:01:51]execute_script... [15:01: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)412229", "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" ] } } [15:01:51]POST & json_proto [15:01:51]process_json_proto [15:01:51]json parsed OK: [15:01:51]protocol is kg_v1.0 [15:01:51]action value=close_receipt [15:01:51]process_action close_receipt [15:01:51]cmd_close_receipt [15:01:51]MH_GetDate [15:01:51]Write to MH i2c: F0 00 00 C8 2A E1 [15:01:51]Write i2c OK [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: F0 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: F0 09 00 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: F0 09 00 C8 2A 00 63 F2 B5 67 7E 41 4F 65 CE [15:01:51]GetLastDocTimeStamp 1739977219 [15:01:51]current date 1739977315 [15:01:51]FM_GetShiftState [15:01:51]SAM_PROTO_GetShiftState [15:01:51]wFMCommunicate request_size=4 [15:01:51]MH_SAM_APDU [15:01:51]CAPDU: 80 13 01 00 [15:01:51]Write to MH i2c: E2 08 00 C9 2A 80 13 01 00 00 00 00 00 70 [15:01:51]Write i2c OK [15:01:51]MH_I2C_Read... [15:01:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:51]Read from MH i2c: E2 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: E2 0E 00 [15:01:51]MH_I2C_Read... [15:01:51]Read from MH i2c: E2 0E 00 C9 2A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 EF [15:01:51]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:01:51]wFMCommunicate OK [15:01:51]SAM_PROTO_GetShiftState done [15:01:51]FM_GetShiftState done [15:01:51]opened in 1739929631 [15:01:51]opened+sec_in_day 1740016031 [15:01:51]quantity*price = 200013 [15:01:51]sum+1 = 200014 [15:01:51]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 СНО: Общий режим Чек 144 19.02.2025 15:01 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187078 ФПД: 122428071975444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T150155&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187078&fm=122428071975444&tin=02508201610067®Number=0000000000091857&sum=200000 [15:01:52]StoreToDocumentArchive [15:01:52]shift 647 fd 187078 [15:01:52]save to /storage/0647/doc_00187078 [15:01:52]save last doc name /storage/0647/doc_00187078 to /storage/kkm_last_doc_name [15:01:52]save OK [15:01:52]Clear old archive folders... [15:01:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:01:52]tlvbuf is 006D1590 [15:01:52]SAM_PROTO_ClearQueue [15:01:52]wFMCommunicate request_size=4 [15:01:52]MH_SAM_APDU [15:01:52]CAPDU: 80 09 00 00 [15:01:52]Write to MH i2c: E2 08 00 D6 2A 80 09 00 00 00 00 00 00 72 [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:52]Read from MH i2c: E2 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 D6 2A 00 90 00 74 [15:01:52]RAPDU: 90 00 [15:01:52]wFMCommunicate OK [15:01:52]SAM_PROTO_ClearQueue done [15:01:52]KKMCreateOFDPacket [15:01:52]OFDProtocolAddRootSTLVToBuf [15:01:52]FM_MakeSignedData [15:01:52]FM_MakeSignedData [15:01:52]SAM_PROTO_SignData [15:01:52]wFMCommunicate request_size=4 [15:01:52]MH_SAM_APDU [15:01:52]CAPDU: 80 0D 01 02 [15:01:52]Write to MH i2c: E2 08 00 D7 2A 80 0D 01 02 00 00 00 00 7A [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:52]Read from MH i2c: E2 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 [15:01:52]MH_I2C_Read... [15:01:52]Read from MH i2c: E2 03 00 D7 2A 00 90 00 75 [15:01:52]RAPDU: 90 00 [15:01:52]wFMCommunicate OK [15:01:52]wFMCommunicate request_size=255 [15:01:52]MH_SAM_APDU [15:01:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 90 00 00 00 F4 03 04 00 63 F2 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 C6 DA 02 00 35 04 06 00 6F 59 01 BD [15:01:52]Write to MH i2c: E2 02 01 D8 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 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 90 00 00 00 F4 03 04 00 63 F2 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 C6 DA 02 00 35 04 06 00 6F 59 01 BD 00 00 46 [15:01:52]Write i2c OK [15:01:52]MH_I2C_Read... [15:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:53]Read from MH i2c: E2 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 D8 2A 00 90 00 76 [15:01:53]RAPDU: 90 00 [15:01:53]wFMCommunicate OK [15:01:53]wFMCommunicate request_size=7 [15:01:53]MH_SAM_APDU [15:01:53]CAPDU: 80 0D 02 02 02 9A 14 [15:01:53]Write to MH i2c: E2 0A 00 D9 2A 80 0D 02 02 02 00 9A 14 00 00 2F [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:53]Read from MH i2c: E2 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 03 00 D9 2A 00 90 00 77 [15:01:53]RAPDU: 90 00 [15:01:53]wFMCommunicate OK [15:01:53]wFMCommunicate request_size=4 [15:01:53]MH_SAM_APDU [15:01:53]CAPDU: 80 0D 03 02 [15:01:53]Write to MH i2c: E2 08 00 DA 2A 80 0D 03 02 00 00 00 00 7F [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:53]Read from MH i2c: E2 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 0B 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 0B 00 DA 2A 00 FA 2C 68 B5 F8 B4 63 FC 90 00 CE [15:01:53]RAPDU: FA 2C 68 B5 F8 B4 63 FC 90 00 [15:01:53]wFMCommunicate OK [15:01:53]SAM_PROTO_SignData done [15:01:53]FM_MakeSignedData done [15:01:53]CreateOFDProtocolMessage [15:01:53]wFMCommunicate request_size=4 [15:01:53]MH_SAM_APDU [15:01:53]CAPDU: 80 11 00 00 [15:01:53]Write to MH i2c: E2 08 00 DB 2A 80 11 00 00 00 00 00 00 7F [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:53]Read from MH i2c: E2 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 17 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: E2 17 00 DB 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D2 [15:01:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:01:53]wFMCommunicate OK [15:01:53]CreateOFDProtocolMessage done [15:01:53]OFDSenderStorePacket 187078 [15:01:53]StoreOFDPacket docnum=187078 [15:01: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 0C 01 00 00 10 88 04 01 C4 D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 90 00 00 00 F4 03 04 00 63 F2 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 C6 DA 02 00 35 04 06 00 6F 59 01 BD 9A 14 FA 2C 68 B5 F8 B4 63 FC [15:01:53]CheckFolder [15:01:53]dirname=/storage/ofd_packets [15:01:53]CheckFolder done [15:01:53]ProducePacketName [15:01:53]name=ofd_packets/00187078 [15:01:53]NVStorageSaveData ofd_packets/00187078 [15:01:53]File name is /storage/ofd_packets/00187078 [15:01:53]Write 298 bytes [15:01:53]NVStorageSaveData done [15:01:53]OFDSenderStorePacket done [15:01:53]KKMCreateOFDPacket done [15:01:53]NVStorageSaveData kkm_last_timestamp [15:01:53]File name is /storage/kkm_last_timestamp [15:01:53]Write 4 bytes [15:01:53]NVStorageSaveData done [15:01:53]ExternCall_PrintAddStr [15:01:53]wPrintStart [15:01:53]Write to MH i2c: 01 00 00 DC 2A 06 [15:01:53]Write i2c OK [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: 01 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: 01 07 00 [15:01:53]MH_I2C_Read... [15:01:53]Read from MH i2c: 01 07 00 DC 2A 00 00 00 00 00 FF 0F 1B [15:01:53]RasterBufferAndPrint [15:01:53]line Счет N : (1)412229 [15:01:53]line ИНН: 02508201610067 [15:01:53]line Контрольно-Кассовый Чек [15:01:53]line ПРОДАЖА [15:01:53]line ТРК (МРК, ГНК) : 5 [15:01:53]line Товар: 2710194210 [15:01:53]line ДТ-К-5 [15:01:53]line 27.550 * 72.60 [15:01:53]line = 2000.13 [15:01:53]line НДС 12% НСП 1% [15:01:53]line > о реализуемом товаре [15:01:53]line ОКРУГЛЕНИЕ: -0.13 [15:01:53]line ИТОГО: 2000.00 [15:01:53]line Внесено: 2000.00 [15:01:53]line СДАЧА: 0.00 [15:01:53]line НСП 1% : 17.70 [15:01:53]line НДС 12% : 212.40 [15:01:53]line Наличными: 2000.00 [15:01:53]line Безнал.: 0.00 [15:01:53]line Место: АЗС № 92 "Партнер Нефть" [15:01:53]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:01:53]line СНО: Общий режим [15:01:53]line Чек 144 19.02.2025 15:01 [15:01:53]line Смена: 647 ФФД: 1.0 [15:01:53]line ЗНМ: 0300000118 [15:01:53]line РНМ: 0000000000091857 [15:01:53]line Версия ККМ: 001 [15:01:53]line ФМ: 0000000000871826 [15:01:53]line ФД: 187078 [15:01:53]line ФПД: 122428071975444 [15:01:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T150155&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187078&fm=122428071975444&tin=02508201610067®Number=0000000000091857&sum=200000 [15:01:53]OFD Sender: Processing packet 187078 [packets to send 49, broken 48] [15:01:53]ProducePacketName [15:01:53]name=ofd_packets/00187078 [15:01:53]OFD Sender: To server: pG, [15:01:53]CommunicateWithHost lk.salyk.kg:30040 [15:01:53]ConnectInit lk.salyk.kg [15:01:53]written 0, free lines is 4095 [15:01:53]Connected sock=10 [15:01: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 0C 01 00 00 10 88 04 01 C4 D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 90 00 00 00 F4 03 04 00 63 F2 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 C6 DA 02 00 35 04 06 00 6F 59 01 BD 9A 14 FA 2C 68 B5 F8 B4 63 FC [15:01: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 7B E9 47 00 DF 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C6 DA 02 00 F4 03 04 00 B7 98 B5 67 B6 04 01 00 00 13 00 3E 05 31 C3 05 B7 [15:01:53]CommunicateWithHost err = 0 [15:01:53]CheckOFDResponse [15:01:53]1017 (14) - 77093643461234 [15:01:53]1041 (16) - 0000000000871826 [15:01:53]1040 (4) - 187078 [15:01:53]1012 (4) - 19.02.2025 08:39 [15:01:53]1206 (1) - 0 [15:01:53]OFD Sender: Remove packet 187078 [15:01:53]ProducePacketName [15:01:53]name=ofd_packets/00187078 [15:01:53]NVStorageDeleteData [15:01:54]Write to MH i2c: 01 00 00 07 2B 32 [15:01:54]Write i2c OK [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: 01 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: 01 07 00 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: 01 07 00 07 2B 00 00 00 00 00 EE 0C 33 [15:01:54]RasterBufferAndPrint [15:01:54]line [15:01:54]line [15:01:54]line [15:01:54]line [15:01:54]line [15:01:54]written 0, free lines is 3316 [15:01:54]MH_Cut [15:01:54]Write to MH i2c: D1 01 00 0E 2B 01 0B [15:01:54]Write i2c OK [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: D1 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: D1 01 00 [15:01:54]MH_I2C_Read... [15:01:54]Read from MH i2c: D1 01 00 0E 2B 00 0A [15:01:54]Write to MH i2c: 01 00 00 0F 2B 3A [15:01:54]Write i2c OK [15:01:54]MH_I2C_Read... [15:01:54]OFD Sender: No OFD packet to send [15:01:54]*** Cut start [15:01:54]*** Partial cut [15:01:54]*** CUTSNS_PIN = 1 [15:01:54]*** CUTSNS_PIN = 0 [15:01:55]*** Brake cut motor [15:01:55]Read from MH i2c: 01 [15:01:55]*** Stop cut motor [15:01:55]*** Cut end [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: 01 07 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: 01 07 00 0F 2B 00 00 00 00 00 FF 0F 4F [15:01:55]process_action close_receipt done [15:01:55]requested_data is exist [15:01:55]produce_requested_data [15:01:55]requested_item fm.sn is exist - process it [15:01:55]wFMCommunicate request_size=4 [15:01:55]MH_SAM_APDU [15:01:55]CAPDU: 80 11 00 00 [15:01:55]Write to MH i2c: E2 08 00 10 2B 80 11 00 00 00 00 00 00 B5 [15:01:55]Write i2c OK [15:01:55]MH_I2C_Read... [15:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:55]Read from MH i2c: E2 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 17 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 17 00 10 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 08 [15:01: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:01:55]wFMCommunicate OK [15:01:55]requested_item fd.num is exist - process it [15:01:55]SAM_PROTO_GetFieldsCounters [15:01:55]wFMCommunicate request_size=4 [15:01:55]MH_SAM_APDU [15:01:55]CAPDU: 80 13 00 00 [15:01:55]Write to MH i2c: E2 08 00 11 2B 80 13 00 00 00 00 00 00 B8 [15:01:55]Write i2c OK [15:01:55]MH_I2C_Read... [15:01:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:55]Read from MH i2c: E2 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 62 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 62 00 11 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 C6 DA 02 00 0E 04 04 00 87 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 B9 [15:01: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 C6 DA 02 00 0E 04 04 00 87 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 [15:01:55]wFMCommunicate OK [15:01:55]SAM_PROTO_GetFieldsCounters done [15:01:55]requested_item shift.num is exist - process it [15:01:55]requested_item shift.opened is exist - process it [15:01:55]req_shift_opened [15:01:55]FM_GetShiftState [15:01:55]SAM_PROTO_GetShiftState [15:01:55]wFMCommunicate request_size=4 [15:01:55]MH_SAM_APDU [15:01:55]CAPDU: 80 13 01 00 [15:01:55]Write to MH i2c: E2 08 00 12 2B 80 13 01 00 00 00 00 00 BA [15:01:55]Write i2c OK [15:01:55]MH_I2C_Read... [15:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:55]Read from MH i2c: E2 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 0E 00 [15:01:55]MH_I2C_Read... [15:01:55]Read from MH i2c: E2 0E 00 12 2B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 39 [15:01:55]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:01:55]wFMCommunicate OK [15:01:55]SAM_PROTO_GetShiftState done [15:01:55]FM_GetShiftState done [15:01:55]req_shift_opened done [15:01:55]requested_item shift.open_date is exist - process it [15:01:55]req_shift_open_date [15:01:55]req_shift_open_date done [15:01:55]produce_requested_data done [15:01:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187078,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:01:55]process_action_free close_receipt [15:01:55]json_value_free [15:01:55]json_value_free done [15:01:55]process_json_proto returns [15:01:55]Send response to host [15:01:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187078,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:01:55]free response buf [15:01:55]execute_script done [15:01:55]execute_script returns [15:01:55]free content buf [15:01:55]Sock 9.Close socket [15:01:55]Sock 9.Thread stoped [15:01:59]OFD Sender: No OFD packet to send [15:02:04]OFD Sender: No OFD packet to send [15:02:09]OFD Sender: No OFD packet to send [15:02:14]OFD Sender: No OFD packet to send [15:02:19]OFD Sender: No OFD packet to send [15:02:24]OFD Sender: No OFD packet to send [15:02:29]OFD Sender: No OFD packet to send [15:02:34]OFD Sender: No OFD packet to send [15:02:39]OFD Sender: No OFD packet to send [15:02:44]OFD Sender: No OFD packet to send [15:02:49]OFD Sender: No OFD packet to send [15:02:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:05]accept exits with 7 [15:05:05]New connection [15:05:05]New thread 3067022692 created [15:05:05]Thread 3066879332 joined [15:05:05]Waiting for new connection... [15:05:05] Sock 7.Parse request [15:05:05]Sock 7.Check first char [15:05:05]Sock 7.First char is OK [15:05:05]request: POST /json_proto HTTP/1.0 [15:05:05]Method: POST [15:05:05]URL: /json_proto [15:05:05]Method is POST - this is cgi request [15:05:05]url: /json_proto [15:05:05]query_string will be loaded in cgi processing [15:05:05]execute_cgi json_proto POST (null) [15:05:05]execute_cgi path=json_proto method=POST [15:05:05]POST find Content-Length [15:05:05]Host: 172.17.46.131:8080 [15:05:05]Content-Length: 820 [15:05:05]Content-Type: application/json [15:05:05] [15:05:05]POST finish read [15:05:05]Found Content-Length = 820 [15:05:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412230", "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" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4479982.4479979.4479976.4479971", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:05]execute_script... [15:05: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)412230", "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" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4479982.4479979.4479976.4479971", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:05]POST & json_proto [15:05:05]process_json_proto [15:05:05]json parsed OK: [15:05:05]protocol is kg_v1.0 [15:05:05]action value=close_receipt [15:05:05]process_action close_receipt [15:05:05]cmd_close_receipt [15:05:05]MH_GetDate [15:05:05]Write to MH i2c: F0 00 00 13 2B 2D [15:05:05]Write i2c OK [15:05:05]MH_I2C_Read... [15:05:05]Read from MH i2c: F0 [15:05:05]MH_I2C_Read... [15:05:05]Read from MH i2c: F0 09 00 [15:05:05]MH_I2C_Read... [15:05:05]Read from MH i2c: F0 09 00 13 2B 00 25 F3 B5 67 7E 41 4F 65 DD [15:05:05]GetLastDocTimeStamp 1739977315 [15:05:05]current date 1739977509 [15:05:05]FM_GetShiftState [15:05:05]SAM_PROTO_GetShiftState [15:05:05]wFMCommunicate request_size=4 [15:05:05]MH_SAM_APDU [15:05:05]CAPDU: 80 13 01 00 [15:05:05]Write to MH i2c: E2 08 00 14 2B 80 13 01 00 00 00 00 00 BC [15:05:05]Write i2c OK [15:05:05]MH_I2C_Read... [15:05:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:05]Read from MH i2c: E2 [15:05:05]MH_I2C_Read... [15:05:05]Read from MH i2c: E2 0E 00 [15:05:05]MH_I2C_Read... [15:05:05]Read from MH i2c: E2 0E 00 14 2B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 3B [15:05:05]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:05:05]wFMCommunicate OK [15:05:05]SAM_PROTO_GetShiftState done [15:05:05]FM_GetShiftState done [15:05:05]opened in 1739929631 [15:05:05]opened+sec_in_day 1740016031 [15:05:05]quantity*price = 0 [15:05:05]sum+1 = 1 [15:05:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 145 19.02.2025 15:05 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4479982.4479979.4479976.4479971 ФМ: 0000000000871826 ФД: 187079 ФПД: 52243463729226 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T150509&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187079&fm=52243463729226&tin=02508201610067®Number=0000000000091857&sum=0 [15:05:06]StoreToDocumentArchive [15:05:06]shift 647 fd 187079 [15:05:06]save to /storage/0647/doc_00187079 [15:05:06]save last doc name /storage/0647/doc_00187079 to /storage/kkm_last_doc_name [15:05:06]save OK [15:05:06]Clear old archive folders... [15:05:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:05:06]tlvbuf is 0060EE50 [15:05:06]SAM_PROTO_ClearQueue [15:05:06]wFMCommunicate request_size=4 [15:05:06]MH_SAM_APDU [15:05:06]CAPDU: 80 09 00 00 [15:05:06]Write to MH i2c: E2 08 00 21 2B 80 09 00 00 00 00 00 00 BE [15:05:06]Write i2c OK [15:05:06]MH_I2C_Read... [15:05:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:06]Read from MH i2c: E2 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: E2 03 00 [15:05:06]MH_I2C_Read... [15:05:06]Read from MH i2c: E2 03 00 21 2B 00 90 00 C0 [15:05:06]RAPDU: 90 00 [15:05:06]wFMCommunicate OK [15:05:06]SAM_PROTO_ClearQueue done [15:05:06]KKMCreateOFDPacket [15:05:06]OFDProtocolAddRootSTLVToBuf [15:05:06]FM_MakeSignedData [15:05:06]FM_MakeSignedData [15:05:06]SAM_PROTO_SignData [15:05:06]wFMCommunicate request_size=4 [15:05:06]MH_SAM_APDU [15:05:06]CAPDU: 80 0D 01 02 [15:05:06]Write to MH i2c: E2 08 00 22 2B 80 0D 01 02 00 00 00 00 C6 [15:05:06]Write i2c OK [15:05:06]MH_I2C_Read... [15:05:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:07]Read from MH i2c: E2 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: E2 03 00 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: E2 03 00 22 2B 00 90 00 C1 [15:05:07]RAPDU: 90 00 [15:05:07]wFMCommunicate OK [15:05:07]wFMCommunicate request_size=255 [15:05:07]MH_SAM_APDU [15:05: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 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 91 00 00 00 F4 03 04 00 25 F3 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 C7 DA 02 00 35 04 06 00 2F 83 E1 18 [15:05:07]Write to MH i2c: E2 02 01 23 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 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 91 00 00 00 F4 03 04 00 25 F3 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 C7 DA 02 00 35 04 06 00 2F 83 E1 18 00 00 A0 [15:05:07]Write i2c OK [15:05:07]MH_I2C_Read... [15:05:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:07]Read from MH i2c: E2 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: E2 03 00 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: E2 03 00 23 2B 00 90 00 C2 [15:05:07]RAPDU: 90 00 [15:05:07]wFMCommunicate OK [15:05:07]wFMCommunicate request_size=7 [15:05:07]MH_SAM_APDU [15:05:07]CAPDU: 80 0D 02 02 02 F0 4A [15:05:07]Write to MH i2c: E2 0A 00 24 2B 80 0D 02 02 02 00 F0 4A 00 00 07 [15:05:07]Write i2c OK [15:05:07]MH_I2C_Read... [15:05:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:07]Read from MH i2c: E2 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: E2 03 00 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: E2 03 00 24 2B 00 90 00 C3 [15:05:07]RAPDU: 90 00 [15:05:07]wFMCommunicate OK [15:05:07]wFMCommunicate request_size=4 [15:05:07]MH_SAM_APDU [15:05:07]CAPDU: 80 0D 03 02 [15:05:07]Write to MH i2c: E2 08 00 25 2B 80 0D 03 02 00 00 00 00 CB [15:05:07]Write i2c OK [15:05:07]MH_I2C_Read... [15:05:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:07]Read from MH i2c: E2 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: E2 0B 00 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: E2 0B 00 25 2B 00 55 3A 6F A6 D8 B3 F6 C5 90 00 B6 [15:05:07]RAPDU: 55 3A 6F A6 D8 B3 F6 C5 90 00 [15:05:07]wFMCommunicate OK [15:05:07]SAM_PROTO_SignData done [15:05:07]FM_MakeSignedData done [15:05:07]CreateOFDProtocolMessage [15:05:07]wFMCommunicate request_size=4 [15:05:07]MH_SAM_APDU [15:05:07]CAPDU: 80 11 00 00 [15:05:07]Write to MH i2c: E2 08 00 26 2B 80 11 00 00 00 00 00 00 CB [15:05:07]Write i2c OK [15:05:07]MH_I2C_Read... [15:05:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:07]Read from MH i2c: E2 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: E2 17 00 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: E2 17 00 26 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1E [15:05:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:05:07]wFMCommunicate OK [15:05:07]CreateOFDProtocolMessage done [15:05:07]OFDSenderStorePacket 187079 [15:05:07]StoreOFDPacket docnum=187079 [15:05: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 A1 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 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 91 00 00 00 F4 03 04 00 25 F3 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 C7 DA 02 00 35 04 06 00 2F 83 E1 18 F0 4A 55 3A 6F A6 D8 B3 F6 C5 [15:05:07]CheckFolder [15:05:07]dirname=/storage/ofd_packets [15:05:07]CheckFolder done [15:05:07]ProducePacketName [15:05:07]name=ofd_packets/00187079 [15:05:07]NVStorageSaveData ofd_packets/00187079 [15:05:07]File name is /storage/ofd_packets/00187079 [15:05:07]Write 298 bytes [15:05:07]NVStorageSaveData done [15:05:07]OFDSenderStorePacket done [15:05:07]KKMCreateOFDPacket done [15:05:07]NVStorageSaveData kkm_last_timestamp [15:05:07]File name is /storage/kkm_last_timestamp [15:05:07]Write 4 bytes [15:05:07]NVStorageSaveData done [15:05:07]ExternCall_PrintAddStr [15:05:07]wPrintStart [15:05:07]Write to MH i2c: 01 00 00 27 2B 52 [15:05:07]Write i2c OK [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: 01 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: 01 07 00 [15:05:07]MH_I2C_Read... [15:05:07]Read from MH i2c: 01 07 00 27 2B 00 00 00 00 00 FF 0F 67 [15:05:07]RasterBufferAndPrint [15:05:07]line Счет N : (1)412230 [15:05:07]line ИНН: 02508201610067 [15:05:07]line Контрольно-Кассовый Чек [15:05:07]line ПРОДАЖА [15:05:07]line ТРК (МРК, ГНК) : 5 [15:05:07]line Товар: 2710194210 [15:05:07]line ДТ-К-5 [15:05:07]line 40.000 * 0.00 [15:05:07]line = 0.00 [15:05:07]line НДС 12% НСП 1% [15:05:07]line > о реализуемом товаре [15:05:07]line ИТОГО: 0.00 [15:05:07]line НСП 1% : 0.00 [15:05:07]line НДС 12% : 0.00 [15:05:07]line Наличными: 0.00 [15:05:07]line Безнал.: 0.00 [15:05:07]line Место: АЗС № 92 "Партнер Нефть" [15:05:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:05:07]line СНО: Общий режим [15:05:07]line Чек 145 19.02.2025 15:05 [15:05:07]line Смена: 647 ФФД: 1.0 [15:05:07]line ЗНМ: 0300000118 [15:05:07]line РНМ: 0000000000091857 [15:05:07]line Версия ККМ: 001 [15:05:07]line Талоны: Топливные Талоны [15:05:07]line 4479982.4479979.4479976.4479971 [15:05:07]line ФМ: 0000000000871826 [15:05:07]line ФД: 187079 [15:05:07]line ФПД: 52243463729226 [15:05:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T150509&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187079&fm=52243463729226&tin=02508201610067®Number=0000000000091857&sum=0 [15:05:07]OFD Sender: Processing packet 187079 [packets to send 49, broken 48] [15:05:07]ProducePacketName [15:05:07]name=ofd_packets/00187079 [15:05:07]OFD Sender: To server: pG, [15:05:07]CommunicateWithHost lk.salyk.kg:30040 [15:05:07]ConnectInit lk.salyk.kg [15:05:07]written 0, free lines is 4095 [15:05:08]Connected sock=11 [15:05: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 A1 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 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 91 00 00 00 F4 03 04 00 25 F3 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 C7 DA 02 00 35 04 06 00 2F 83 E1 18 F0 4A 55 3A 6F A6 D8 B3 F6 C5 [15:05:08]Write to MH i2c: 01 00 00 52 2B 7D [15:05:08]Write i2c OK [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: 01 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: 01 07 00 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: 01 07 00 52 2B 00 00 00 00 00 F6 0C 86 [15:05:08]RasterBufferAndPrint [15:05:08]line [15:05:08]line [15:05:08]line [15:05:08]line [15:05:08]line [15:05:08]written 0, free lines is 3324 [15:05:08]MH_Cut [15:05:08]Write to MH i2c: D1 01 00 59 2B 01 56 [15:05:08]Write i2c OK [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: D1 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: D1 01 00 [15:05:08]MH_I2C_Read... [15:05:08]Read from MH i2c: D1 01 00 59 2B 00 55 [15:05:08]Write to MH i2c: 01 00 00 5A 2B 85 [15:05:08]Write i2c OK [15:05:08]MH_I2C_Read... [15:05: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 AB C3 47 00 CB 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 C7 DA 02 00 F4 03 04 00 79 99 B5 67 B6 04 01 00 00 0F FF 9A 89 7B EA 49 09 [15:05:08]CommunicateWithHost err = 0 [15:05:08]CheckOFDResponse [15:05:08]1017 (14) - 77093643461234 [15:05:08]1041 (16) - 0000000000871826 [15:05:08]1040 (4) - 187079 [15:05:08]1012 (4) - 19.02.2025 08:42 [15:05:08]1206 (1) - 0 [15:05:08]OFD Sender: Remove packet 187079 [15:05:08]ProducePacketName [15:05:08]name=ofd_packets/00187079 [15:05:08]NVStorageDeleteData [15:05:08]OFD Sender: No OFD packet to send [15:05:08]*** Cut start [15:05:08]*** Partial cut [15:05:08]*** CUTSNS_PIN = 1 [15:05:08]*** CUTSNS_PIN = 0 [15:05:09]*** Brake cut motor [15:05:09]Read from MH i2c: 01 [15:05:09]MH_I2C_Read... [15:05:09]*** Stop cut motor [15:05:09]*** Cut end [15:05:09]Read from MH i2c: 01 07 00 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: 01 07 00 5A 2B 00 00 00 00 00 FF 0F 9A [15:05:09]process_action close_receipt done [15:05:09]requested_data is exist [15:05:09]produce_requested_data [15:05:09]requested_item fm.sn is exist - process it [15:05:09]wFMCommunicate request_size=4 [15:05:09]MH_SAM_APDU [15:05:09]CAPDU: 80 11 00 00 [15:05:09]Write to MH i2c: E2 08 00 5B 2B 80 11 00 00 00 00 00 00 00 [15:05:09]Write i2c OK [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: E2 [15:05:09]MH_I2C_Read... [15:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:09]Read from MH i2c: E2 17 00 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: E2 17 00 5B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 53 [15:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:05:09]wFMCommunicate OK [15:05:09]requested_item fd.num is exist - process it [15:05:09]SAM_PROTO_GetFieldsCounters [15:05:09]wFMCommunicate request_size=4 [15:05:09]MH_SAM_APDU [15:05:09]CAPDU: 80 13 00 00 [15:05:09]Write to MH i2c: E2 08 00 5C 2B 80 13 00 00 00 00 00 00 03 [15:05:09]Write i2c OK [15:05:09]MH_I2C_Read... [15:05:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:09]Read from MH i2c: E2 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: E2 62 00 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: E2 62 00 5C 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 C7 DA 02 00 0E 04 04 00 87 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 08 [15:05:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [15:05:09]wFMCommunicate OK [15:05:09]SAM_PROTO_GetFieldsCounters done [15:05:09]requested_item shift.num is exist - process it [15:05:09]requested_item shift.opened is exist - process it [15:05:09]req_shift_opened [15:05:09]FM_GetShiftState [15:05:09]SAM_PROTO_GetShiftState [15:05:09]wFMCommunicate request_size=4 [15:05:09]MH_SAM_APDU [15:05:09]CAPDU: 80 13 01 00 [15:05:09]Write to MH i2c: E2 08 00 5D 2B 80 13 01 00 00 00 00 00 05 [15:05:09]Write i2c OK [15:05:09]MH_I2C_Read... [15:05:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:09]Read from MH i2c: E2 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: E2 0E 00 [15:05:09]MH_I2C_Read... [15:05:09]Read from MH i2c: E2 0E 00 5D 2B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 84 [15:05:09]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:05:09]wFMCommunicate OK [15:05:09]SAM_PROTO_GetShiftState done [15:05:09]FM_GetShiftState done [15:05:09]req_shift_opened done [15:05:09]requested_item shift.open_date is exist - process it [15:05:09]req_shift_open_date [15:05:09]req_shift_open_date done [15:05:09]produce_requested_data done [15:05:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187079,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:05:09]process_action_free close_receipt [15:05:09]json_value_free [15:05:09]json_value_free done [15:05:09]process_json_proto returns [15:05:09]Send response to host [15:05:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187079,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:05:09]free response buf [15:05:09]execute_script done [15:05:09]execute_script returns [15:05:09]free content buf [15:05:09]Sock 7.Close socket [15:05:09]Sock 7.Thread stoped [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:15]accept exits with 9 [15:06:15]New connection [15:06:15]New thread 3066879332 created [15:06:15]Thread 3067022692 joined [15:06:15]Waiting for new connection... [15:06:15] Sock 9.Parse request [15:06:15]Sock 9.Check first char [15:06:15]Sock 9.First char is OK [15:06:15]request: POST /json_proto HTTP/1.0 [15:06:15]Method: POST [15:06:15]URL: /json_proto [15:06:15]Method is POST - this is cgi request [15:06:15]url: /json_proto [15:06:15]query_string will be loaded in cgi processing [15:06:15]execute_cgi json_proto POST (null) [15:06:15]execute_cgi path=json_proto method=POST [15:06:15]POST find Content-Length [15:06:15]Host: 172.17.46.131:8080 [15:06:15]Content-Length: 674 [15:06:15]Content-Type: application/json [15:06:15] [15:06:15]POST finish read [15:06:15]Found Content-Length = 674 [15:06:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412231", "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.990, "sum" : 870.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 870.00, "total" : 870.00, "payments": [ { "type": 0, "sum" : 870.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:15]execute_script... [15:06: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)412231", "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.990, "sum" : 870.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 870.00, "total" : 870.00, "payments": [ { "type": 0, "sum" : 870.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:15]POST & json_proto [15:06:15]process_json_proto [15:06:15]json parsed OK: [15:06:15]protocol is kg_v1.0 [15:06:15]action value=close_receipt [15:06:15]process_action close_receipt [15:06:15]cmd_close_receipt [15:06:15]MH_GetDate [15:06:15]Write to MH i2c: F0 00 00 5E 2B 78 [15:06:15]Write i2c OK [15:06:15]MH_I2C_Read... [15:06:15]Read from MH i2c: F0 [15:06:15]MH_I2C_Read... [15:06:15]Read from MH i2c: F0 09 00 [15:06:15]MH_I2C_Read... [15:06:15]Read from MH i2c: F0 09 00 5E 2B 00 6B F3 B5 67 7E 41 4F 65 6E [15:06:15]GetLastDocTimeStamp 1739977509 [15:06:15]current date 1739977579 [15:06:15]FM_GetShiftState [15:06:15]SAM_PROTO_GetShiftState [15:06:15]wFMCommunicate request_size=4 [15:06:15]MH_SAM_APDU [15:06:15]CAPDU: 80 13 01 00 [15:06:15]Write to MH i2c: E2 08 00 5F 2B 80 13 01 00 00 00 00 00 07 [15:06:15]Write i2c OK [15:06:15]MH_I2C_Read... [15:06:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:15]Read from MH i2c: E2 [15:06:15]MH_I2C_Read... [15:06:15]Read from MH i2c: E2 0E 00 [15:06:15]MH_I2C_Read... [15:06:15]Read from MH i2c: E2 0E 00 5F 2B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 86 [15:06:15]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:06:15]wFMCommunicate OK [15:06:15]SAM_PROTO_GetShiftState done [15:06:15]FM_GetShiftState done [15:06:15]opened in 1739929631 [15:06:15]opened+sec_in_day 1740016031 [15:06:15]quantity*price = 87047 [15:06:15]sum+1 = 87048 [15:06:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 870.00 Внесено: 870.00 СДАЧА: 0.00 НСП 1% : 7.70 НДС 12% : 92.44 Наличными: 870.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 146 19.02.2025 15:06 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187080 ФПД: 101746095250359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T150619&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187080&fm=101746095250359&tin=02508201610067®Number=0000000000091857&sum=87000 [15:06:16]StoreToDocumentArchive [15:06:16]shift 647 fd 187080 [15:06:16]save to /storage/0647/doc_00187080 [15:06:16]save last doc name /storage/0647/doc_00187080 to /storage/kkm_last_doc_name [15:06:16]save OK [15:06:16]Clear old archive folders... [15:06:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:06:16]tlvbuf is B6DB9770 [15:06:16]SAM_PROTO_ClearQueue [15:06:16]wFMCommunicate request_size=4 [15:06:16]MH_SAM_APDU [15:06:16]CAPDU: 80 09 00 00 [15:06:16]Write to MH i2c: E2 08 00 6C 2B 80 09 00 00 00 00 00 00 09 [15:06:16]Write i2c OK [15:06:16]MH_I2C_Read... [15:06:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:16]Read from MH i2c: E2 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: E2 03 00 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: E2 03 00 6C 2B 00 90 00 0B [15:06:16]RAPDU: 90 00 [15:06:16]wFMCommunicate OK [15:06:16]SAM_PROTO_ClearQueue done [15:06:16]KKMCreateOFDPacket [15:06:16]OFDProtocolAddRootSTLVToBuf [15:06:16]FM_MakeSignedData [15:06:16]FM_MakeSignedData [15:06:16]SAM_PROTO_SignData [15:06:16]wFMCommunicate request_size=4 [15:06:16]MH_SAM_APDU [15:06:16]CAPDU: 80 0D 01 02 [15:06:16]Write to MH i2c: E2 08 00 6D 2B 80 0D 01 02 00 00 00 00 11 [15:06:16]Write i2c OK [15:06:16]MH_I2C_Read... [15:06:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:16]Read from MH i2c: E2 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: E2 03 00 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: E2 03 00 6D 2B 00 90 00 0C [15:06:16]RAPDU: 90 00 [15:06:16]wFMCommunicate OK [15:06:16]wFMCommunicate request_size=255 [15:06:16]MH_SAM_APDU [15:06: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 D6 2E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 07 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 24 00 00 00 00 07 04 06 00 D8 53 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 6B F3 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 C8 DA 02 00 35 04 06 00 5C 89 9B DD [15:06:16]Write to MH i2c: E2 02 01 6E 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 D6 2E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 07 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 24 00 00 00 00 07 04 06 00 D8 53 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 6B F3 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 C8 DA 02 00 35 04 06 00 5C 89 9B DD 00 00 7E [15:06:16]Write i2c OK [15:06:16]MH_I2C_Read... [15:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:16]Read from MH i2c: E2 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: E2 03 00 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: E2 03 00 6E 2B 00 90 00 0D [15:06:16]RAPDU: 90 00 [15:06:16]wFMCommunicate OK [15:06:16]wFMCommunicate request_size=7 [15:06:16]MH_SAM_APDU [15:06:16]CAPDU: 80 0D 02 02 02 5B B7 [15:06:16]Write to MH i2c: E2 0A 00 6F 2B 80 0D 02 02 02 00 5B B7 00 00 2A [15:06:16]Write i2c OK [15:06:16]MH_I2C_Read... [15:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:16]Read from MH i2c: E2 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: E2 03 00 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: E2 03 00 6F 2B 00 90 00 0E [15:06:16]RAPDU: 90 00 [15:06:16]wFMCommunicate OK [15:06:16]wFMCommunicate request_size=4 [15:06:16]MH_SAM_APDU [15:06:16]CAPDU: 80 0D 03 02 [15:06:16]Write to MH i2c: E2 08 00 70 2B 80 0D 03 02 00 00 00 00 16 [15:06:16]Write i2c OK [15:06:16]MH_I2C_Read... [15:06:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:16]Read from MH i2c: E2 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: E2 0B 00 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: E2 0B 00 70 2B 00 91 5D 2D E1 44 B0 54 C4 90 00 1F [15:06:16]RAPDU: 91 5D 2D E1 44 B0 54 C4 90 00 [15:06:16]wFMCommunicate OK [15:06:16]SAM_PROTO_SignData done [15:06:16]FM_MakeSignedData done [15:06:16]CreateOFDProtocolMessage [15:06:16]wFMCommunicate request_size=4 [15:06:16]MH_SAM_APDU [15:06:16]CAPDU: 80 11 00 00 [15:06:16]Write to MH i2c: E2 08 00 71 2B 80 11 00 00 00 00 00 00 16 [15:06:16]Write i2c OK [15:06:16]MH_I2C_Read... [15:06:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:16]Read from MH i2c: E2 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: E2 17 00 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: E2 17 00 71 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 69 [15:06: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:06:16]wFMCommunicate OK [15:06:16]CreateOFDProtocolMessage done [15:06:16]OFDSenderStorePacket 187080 [15:06:16]StoreOFDPacket docnum=187080 [15:06: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 D9 D4 04 01 A4 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 2E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 07 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 24 00 00 00 00 07 04 06 00 D8 53 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 6B F3 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 C8 DA 02 00 35 04 06 00 5C 89 9B DD 5B B7 91 5D 2D E1 44 B0 54 C4 [15:06:16]CheckFolder [15:06:16]dirname=/storage/ofd_packets [15:06:16]CheckFolder done [15:06:16]ProducePacketName [15:06:16]name=ofd_packets/00187080 [15:06:16]NVStorageSaveData ofd_packets/00187080 [15:06:16]File name is /storage/ofd_packets/00187080 [15:06:16]Write 298 bytes [15:06:16]NVStorageSaveData done [15:06:16]OFDSenderStorePacket done [15:06:16]KKMCreateOFDPacket done [15:06:16]NVStorageSaveData kkm_last_timestamp [15:06:16]File name is /storage/kkm_last_timestamp [15:06:16]Write 4 bytes [15:06:16]NVStorageSaveData done [15:06:16]ExternCall_PrintAddStr [15:06:16]wPrintStart [15:06:16]Write to MH i2c: 01 00 00 72 2B 9D [15:06:16]Write i2c OK [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: 01 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: 01 07 00 [15:06:16]MH_I2C_Read... [15:06:16]Read from MH i2c: 01 07 00 72 2B 00 00 00 00 00 FF 0F B2 [15:06:16]RasterBufferAndPrint [15:06:16]line Счет N : (1)412231 [15:06:16]line ИНН: 02508201610067 [15:06:16]line Контрольно-Кассовый Чек [15:06:16]line ПРОДАЖА [15:06:16]line ТРК (МРК, ГНК) : 6 [15:06:16]line Товар: 2710194210 [15:06:16]line ДТ-К-5 [15:06:16]line 11.990 * 72.60 [15:06:16]line = 870.47 [15:06:16]line НДС 12% НСП 1% [15:06:16]line > о реализуемом товаре [15:06:16]line ОКРУГЛЕНИЕ: -0.47 [15:06:16]line ИТОГО: 870.00 [15:06:16]line Внесено: 870.00 [15:06:16]line СДАЧА: 0.00 [15:06:16]line НСП 1% : 7.70 [15:06:16]line НДС 12% : 92.44 [15:06:16]line Наличными: 870.00 [15:06:16]line Безнал.: 0.00 [15:06:16]line Место: АЗС № 92 "Партнер Нефть" [15:06:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:06:16]line СНО: Общий режим [15:06:16]line Чек 146 19.02.2025 15:06 [15:06:16]line Смена: 647 ФФД: 1.0 [15:06:16]line ЗНМ: 0300000118 [15:06:16]line РНМ: 0000000000091857 [15:06:16]line Версия ККМ: 001 [15:06:16]line ФМ: 0000000000871826 [15:06:16]line ФД: 187080 [15:06:16]line ФПД: 101746095250359 [15:06:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T150619&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187080&fm=101746095250359&tin=02508201610067®Number=0000000000091857&sum=87000 [15:06:16]written 0, free lines is 4095 [15:06:17]OFD Sender: Processing packet 187080 [packets to send 49, broken 48] [15:06:17]ProducePacketName [15:06:17]name=ofd_packets/00187080 [15:06:17]OFD Sender: To server: pG, [15:06:17]CommunicateWithHost lk.salyk.kg:30040 [15:06:17]ConnectInit lk.salyk.kg [15:06:17]Connected sock=10 [15:06: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 D9 D4 04 01 A4 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 2E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 07 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 53 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 24 00 00 00 00 07 04 06 00 D8 53 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 6B F3 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 C8 DA 02 00 35 04 06 00 5C 89 9B DD 5B B7 91 5D 2D E1 44 B0 54 C4 [15:06: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 DA E1 47 00 68 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C8 DA 02 00 F4 03 04 00 BE 99 B5 67 B6 04 01 00 00 5F 30 1C 8C 44 C3 E3 84 [15:06:17]CommunicateWithHost err = 0 [15:06:17]CheckOFDResponse [15:06:17]1017 (14) - 77093643461234 [15:06:17]1041 (16) - 0000000000871826 [15:06:17]1040 (4) - 187080 [15:06:17]1012 (4) - 19.02.2025 08:43 [15:06:17]1206 (1) - 0 [15:06:17]OFD Sender: Remove packet 187080 [15:06:17]ProducePacketName [15:06:17]name=ofd_packets/00187080 [15:06:17]NVStorageDeleteData [15:06:17]Write to MH i2c: 01 00 00 9D 2B C8 [15:06:17]Write i2c OK [15:06:17]MH_I2C_Read... [15:06:17]Read from MH i2c: 01 [15:06:17]MH_I2C_Read... [15:06:17]Read from MH i2c: 01 07 00 [15:06:17]MH_I2C_Read... [15:06:17]Read from MH i2c: 01 07 00 9D 2B 00 00 00 00 00 EA 0C C5 [15:06:17]RasterBufferAndPrint [15:06:17]line [15:06:17]line [15:06:17]line [15:06:17]line [15:06:17]line [15:06:17]written 0, free lines is 3313 [15:06:17]MH_Cut [15:06:17]Write to MH i2c: D1 01 00 A4 2B 01 A1 [15:06:17]Write i2c OK [15:06:17]MH_I2C_Read... [15:06:17]Read from MH i2c: D1 [15:06:17]MH_I2C_Read... [15:06:17]Read from MH i2c: D1 01 00 [15:06:17]MH_I2C_Read... [15:06:17]Read from MH i2c: D1 01 00 A4 2B 00 A0 [15:06:17]Write to MH i2c: 01 00 00 A5 2B D0 [15:06:17]Write i2c OK [15:06:17]MH_I2C_Read... [15:06:17]OFD Sender: No OFD packet to send [15:06:18]*** Cut start [15:06:18]*** Partial cut [15:06:18]*** CUTSNS_PIN = 1 [15:06:18]*** CUTSNS_PIN = 0 [15:06:18]*** Brake cut motor [15:06:18]Read from MH i2c: 01 [15:06:18]MH_I2C_Read... [15:06:18]*** Stop cut motor [15:06:18]*** Cut end [15:06:18]Read from MH i2c: 01 07 00 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: 01 07 00 A5 2B 00 00 00 00 00 FF 0F E5 [15:06:18]process_action close_receipt done [15:06:18]requested_data is exist [15:06:18]produce_requested_data [15:06:18]requested_item fm.sn is exist - process it [15:06:18]wFMCommunicate request_size=4 [15:06:18]MH_SAM_APDU [15:06:18]CAPDU: 80 11 00 00 [15:06:18]Write to MH i2c: E2 08 00 A6 2B 80 11 00 00 00 00 00 00 4B [15:06:18]Write i2c OK [15:06:18]MH_I2C_Read... [15:06:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:18]Read from MH i2c: E2 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 17 00 [15:06:18]MH_I2C_Read... [15:06:18]Read from MH i2c: E2 17 00 A6 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9E [15:06: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:06:18]wFMCommunicate OK [15:06:18]requested_item fd.num is exist - process it [15:06:18]SAM_PROTO_GetFieldsCounters [15:06:18]wFMCommunicate request_size=4 [15:06:18]MH_SAM_APDU [15:06:18]CAPDU: 80 13 00 00 [15:06:18]Write to MH i2c: E2 08 00 A7 2B 80 13 00 00 00 00 00 00 4E [15:06:18]Write i2c OK [15:06:18]MH_I2C_Read... [15:06:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:19]Read from MH i2c: E2 [15:06:19]MH_I2C_Read... [15:06:19]Read from MH i2c: E2 62 00 [15:06:19]MH_I2C_Read... [15:06:19]Read from MH i2c: E2 62 00 A7 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 C8 DA 02 00 0E 04 04 00 87 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 57 [15:06: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 C8 DA 02 00 0E 04 04 00 87 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 [15:06:19]wFMCommunicate OK [15:06:19]SAM_PROTO_GetFieldsCounters done [15:06:19]requested_item shift.num is exist - process it [15:06:19]requested_item shift.opened is exist - process it [15:06:19]req_shift_opened [15:06:19]FM_GetShiftState [15:06:19]SAM_PROTO_GetShiftState [15:06:19]wFMCommunicate request_size=4 [15:06:19]MH_SAM_APDU [15:06:19]CAPDU: 80 13 01 00 [15:06:19]Write to MH i2c: E2 08 00 A8 2B 80 13 01 00 00 00 00 00 50 [15:06:19]Write i2c OK [15:06:19]MH_I2C_Read... [15:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:19]Read from MH i2c: E2 [15:06:19]MH_I2C_Read... [15:06:19]Read from MH i2c: E2 0E 00 [15:06:19]MH_I2C_Read... [15:06:19]Read from MH i2c: E2 0E 00 A8 2B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 CF [15:06:19]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:06:19]wFMCommunicate OK [15:06:19]SAM_PROTO_GetShiftState done [15:06:19]FM_GetShiftState done [15:06:19]req_shift_opened done [15:06:19]requested_item shift.open_date is exist - process it [15:06:19]req_shift_open_date [15:06:19]req_shift_open_date done [15:06:19]produce_requested_data done [15:06:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187080,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:06:19]process_action_free close_receipt [15:06:19]json_value_free [15:06:19]json_value_free done [15:06:19]process_json_proto returns [15:06:19]Send response to host [15:06:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187080,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:06:19]free response buf [15:06:19]execute_script done [15:06:19]execute_script returns [15:06:19]free content buf [15:06:19]Sock 9.Close socket [15:06:19]Sock 9.Thread stoped [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:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:08:59]accept exits with 7 [15:08:59]New connection [15:08:59]New thread 3067022692 created [15:08:59]Thread 3066879332 joined [15:08:59]Waiting for new connection... [15:08:59] Sock 7.Parse request [15:08:59]Sock 7.Check first char [15:08:59]Sock 7.First char is OK [15:08:59]request: POST /json_proto HTTP/1.0 [15:08:59]Method: POST [15:08:59]URL: /json_proto [15:08:59]Method is POST - this is cgi request [15:08:59]url: /json_proto [15:08:59]query_string will be loaded in cgi processing [15:08:59]execute_cgi json_proto POST (null) [15:08:59]execute_cgi path=json_proto method=POST [15:08:59]POST find Content-Length [15:08:59]Host: 172.17.46.131:8080 [15:08:59]Content-Length: 796 [15:08:59]Content-Type: application/json [15:08:59] [15:08:59]POST finish read [15:08:59]Found Content-Length = 796 [15:08:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412232", "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.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\u000A4785457", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:59]execute_script... [15:08:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412232", "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.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\u000A4785457", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:59]POST & json_proto [15:08:59]process_json_proto [15:08:59]json parsed OK: [15:08:59]protocol is kg_v1.0 [15:08:59]action value=close_receipt [15:08:59]process_action close_receipt [15:08:59]cmd_close_receipt [15:08:59]MH_GetDate [15:08:59]Write to MH i2c: F0 00 00 A9 2B C3 [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: F0 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: F0 09 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: F0 09 00 A9 2B 00 0F F4 B5 67 7E 41 4F 65 5E [15:08:59]GetLastDocTimeStamp 1739977579 [15:08:59]current date 1739977743 [15:08:59]FM_GetShiftState [15:08:59]SAM_PROTO_GetShiftState [15:08:59]wFMCommunicate request_size=4 [15:08:59]MH_SAM_APDU [15:08:59]CAPDU: 80 13 01 00 [15:08:59]Write to MH i2c: E2 08 00 AA 2B 80 13 01 00 00 00 00 00 52 [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:08:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:59]Read from MH i2c: E2 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 0E 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 0E 00 AA 2B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D1 [15:08:59]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:08:59]wFMCommunicate OK [15:08:59]SAM_PROTO_GetShiftState done [15:08:59]FM_GetShiftState done [15:08:59]opened in 1739929631 [15:08:59]opened+sec_in_day 1740016031 [15:08:59]quantity*price = 0 [15:08:59]sum+1 = 1 [15:08:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 147 19.02.2025 15:09 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4785457 ФМ: 0000000000871826 ФД: 187081 ФПД: 11305825486414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T150903&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187081&fm=11305825486414&tin=02508201610067®Number=0000000000091857&sum=0 [15:09:00]StoreToDocumentArchive [15:09:00]shift 647 fd 187081 [15:09:00]save to /storage/0647/doc_00187081 [15:09:00]save last doc name /storage/0647/doc_00187081 to /storage/kkm_last_doc_name [15:09:00]save OK [15:09:00]Clear old archive folders... [15:09:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:09:00]tlvbuf is 00673030 [15:09:00]SAM_PROTO_ClearQueue [15:09:00]wFMCommunicate request_size=4 [15:09:00]MH_SAM_APDU [15:09:00]CAPDU: 80 09 00 00 [15:09:00]Write to MH i2c: E2 08 00 B7 2B 80 09 00 00 00 00 00 00 54 [15:09:00]Write i2c OK [15:09:00]MH_I2C_Read... [15:09:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:00]Read from MH i2c: E2 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 03 00 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 03 00 B7 2B 00 90 00 56 [15:09:00]RAPDU: 90 00 [15:09:00]wFMCommunicate OK [15:09:00]SAM_PROTO_ClearQueue done [15:09:00]KKMCreateOFDPacket [15:09:00]OFDProtocolAddRootSTLVToBuf [15:09:00]FM_MakeSignedData [15:09:00]FM_MakeSignedData [15:09:00]SAM_PROTO_SignData [15:09:00]wFMCommunicate request_size=4 [15:09:00]MH_SAM_APDU [15:09:00]CAPDU: 80 0D 01 02 [15:09:00]Write to MH i2c: E2 08 00 B8 2B 80 0D 01 02 00 00 00 00 5C [15:09:00]Write i2c OK [15:09:00]MH_I2C_Read... [15:09:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:00]Read from MH i2c: E2 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 03 00 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 03 00 B8 2B 00 90 00 57 [15:09:00]RAPDU: 90 00 [15:09:00]wFMCommunicate OK [15:09:00]wFMCommunicate request_size=255 [15:09:00]MH_SAM_APDU [15:09:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 0F F4 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 C9 DA 02 00 35 04 06 00 0A 48 57 B6 [15:09:00]Write to MH i2c: E2 02 01 B9 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 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 93 00 00 00 F4 03 04 00 0F F4 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 C9 DA 02 00 35 04 06 00 0A 48 57 B6 00 00 6B [15:09:00]Write i2c OK [15:09:00]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 03 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 03 00 B9 2B 00 90 00 58 [15:09:01]RAPDU: 90 00 [15:09:01]wFMCommunicate OK [15:09:01]wFMCommunicate request_size=7 [15:09:01]MH_SAM_APDU [15:09:01]CAPDU: 80 0D 02 02 02 46 4E [15:09:01]Write to MH i2c: E2 0A 00 BA 2B 80 0D 02 02 02 00 46 4E 00 00 F7 [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 03 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 03 00 BA 2B 00 90 00 59 [15:09:01]RAPDU: 90 00 [15:09:01]wFMCommunicate OK [15:09:01]wFMCommunicate request_size=4 [15:09:01]MH_SAM_APDU [15:09:01]CAPDU: 80 0D 03 02 [15:09:01]Write to MH i2c: E2 08 00 BB 2B 80 0D 03 02 00 00 00 00 61 [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 0B 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 0B 00 BB 2B 00 05 55 D8 D4 D3 38 01 F5 90 00 69 [15:09:01]RAPDU: 05 55 D8 D4 D3 38 01 F5 90 00 [15:09:01]wFMCommunicate OK [15:09:01]SAM_PROTO_SignData done [15:09:01]FM_MakeSignedData done [15:09:01]CreateOFDProtocolMessage [15:09:01]wFMCommunicate request_size=4 [15:09:01]MH_SAM_APDU [15:09:01]CAPDU: 80 11 00 00 [15:09:01]Write to MH i2c: E2 08 00 BC 2B 80 11 00 00 00 00 00 00 61 [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 17 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 17 00 BC 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B4 [15:09:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:09:01]wFMCommunicate OK [15:09:01]CreateOFDProtocolMessage done [15:09:01]OFDSenderStorePacket 187081 [15:09:01]StoreOFDPacket docnum=187081 [15:09: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 35 58 04 01 96 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 0F F4 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 C9 DA 02 00 35 04 06 00 0A 48 57 B6 46 4E 05 55 D8 D4 D3 38 01 F5 [15:09:01]CheckFolder [15:09:01]dirname=/storage/ofd_packets [15:09:01]CheckFolder done [15:09:01]ProducePacketName [15:09:01]name=ofd_packets/00187081 [15:09:01]NVStorageSaveData ofd_packets/00187081 [15:09:01]File name is /storage/ofd_packets/00187081 [15:09:01]Write 298 bytes [15:09:01]NVStorageSaveData done [15:09:01]OFDSenderStorePacket done [15:09:01]KKMCreateOFDPacket done [15:09:01]NVStorageSaveData kkm_last_timestamp [15:09:01]File name is /storage/kkm_last_timestamp [15:09:01]Write 4 bytes [15:09:01]NVStorageSaveData done [15:09:01]ExternCall_PrintAddStr [15:09:01]wPrintStart [15:09:01]Write to MH i2c: 01 00 00 BD 2B E8 [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: 01 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: 01 07 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: 01 07 00 BD 2B 00 00 00 00 00 FF 0F FD [15:09:01]RasterBufferAndPrint [15:09:01]line Счет N : (1)412232 [15:09:01]line ИНН: 02508201610067 [15:09:01]line Контрольно-Кассовый Чек [15:09:01]line ПРОДАЖА [15:09:01]line ТРК (МРК, ГНК) : 5 [15:09:01]line Товар: 2710194210 [15:09:01]line ДТ-К-5 [15:09:01]line 20.000 * 0.00 [15:09:01]line = 0.00 [15:09:01]line НДС 12% НСП 1% [15:09:01]line > о реализуемом товаре [15:09:01]line ИТОГО: 0.00 [15:09:01]line НСП 1% : 0.00 [15:09:01]line НДС 12% : 0.00 [15:09:01]line Наличными: 0.00 [15:09:01]line Безнал.: 0.00 [15:09:01]line Место: АЗС № 92 "Партнер Нефть" [15:09:01]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:09:01]line СНО: Общий режим [15:09:01]line Чек 147 19.02.2025 15:09 [15:09:01]line Смена: 647 ФФД: 1.0 [15:09:01]line ЗНМ: 0300000118 [15:09:01]line РНМ: 0000000000091857 [15:09:01]line Версия ККМ: 001 [15:09:01]line Талоны: Топливные Талоны [15:09:01]line 4785457 [15:09:01]line ФМ: 0000000000871826 [15:09:01]line ФД: 187081 [15:09:01]line ФПД: 11305825486414 [15:09:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T150903&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187081&fm=11305825486414&tin=02508201610067®Number=0000000000091857&sum=0 [15:09:01]OFD Sender: Processing packet 187081 [packets to send 49, broken 48] [15:09:01]ProducePacketName [15:09:01]name=ofd_packets/00187081 [15:09:01]OFD Sender: To server: pG, [15:09:01]CommunicateWithHost lk.salyk.kg:30040 [15:09:01]ConnectInit lk.salyk.kg [15:09:01]written 0, free lines is 4095 [15:09:01]Connected sock=11 [15:09:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 35 58 04 01 96 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 0F F4 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 C9 DA 02 00 35 04 06 00 0A 48 57 B6 46 4E 05 55 D8 D4 D3 38 01 F5 [15:09:02]Write to MH i2c: 01 00 00 E7 2B 12 [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: 01 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: 01 07 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: 01 07 00 E7 2B 00 00 00 00 00 EF 0C 14 [15:09:02]RasterBufferAndPrint [15:09:02]line [15:09:02]line [15:09:02]line [15:09:02]line [15:09:02]line [15:09:02]written 0, free lines is 3317 [15:09:02]MH_Cut [15:09:02]Write to MH i2c: D1 01 00 EE 2B 01 EB [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: D1 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: D1 01 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: D1 01 00 EE 2B 00 EA [15:09:02]Write to MH i2c: 01 00 00 EF 2B 1A [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09: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 15 8B 47 00 0D 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 C9 DA 02 00 F4 03 04 00 63 9A B5 67 B6 04 01 00 00 70 EA 9D 15 EE 54 09 DB [15:09:02]CommunicateWithHost err = 0 [15:09:02]CheckOFDResponse [15:09:02]1017 (14) - 77093643461234 [15:09:02]1041 (16) - 0000000000871826 [15:09:02]1040 (4) - 187081 [15:09:02]1012 (4) - 19.02.2025 08:46 [15:09:02]1206 (1) - 0 [15:09:02]OFD Sender: Remove packet 187081 [15:09:02]ProducePacketName [15:09:02]name=ofd_packets/00187081 [15:09:02]NVStorageDeleteData [15:09:02]OFD Sender: No OFD packet to send [15:09:02]*** Cut start [15:09:02]*** Partial cut [15:09:02]*** CUTSNS_PIN = 1 [15:09:02]*** CUTSNS_PIN = 0 [15:09:03]*** Brake cut motor [15:09:03]Read from MH i2c: 01 [15:09:03]MH_I2C_Read... [15:09:03]*** Stop cut motor [15:09:03]*** Cut end [15:09:03]Read from MH i2c: 01 07 00 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: 01 07 00 EF 2B 00 00 00 00 00 FF 0F 2F [15:09:03]process_action close_receipt done [15:09:03]requested_data is exist [15:09:03]produce_requested_data [15:09:03]requested_item fm.sn is exist - process it [15:09:03]wFMCommunicate request_size=4 [15:09:03]MH_SAM_APDU [15:09:03]CAPDU: 80 11 00 00 [15:09:03]Write to MH i2c: E2 08 00 F0 2B 80 11 00 00 00 00 00 00 95 [15:09:03]Write i2c OK [15:09:03]MH_I2C_Read... [15:09:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:03]Read from MH i2c: E2 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 17 00 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 17 00 F0 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E8 [15:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:09:03]wFMCommunicate OK [15:09:03]requested_item fd.num is exist - process it [15:09:03]SAM_PROTO_GetFieldsCounters [15:09:03]wFMCommunicate request_size=4 [15:09:03]MH_SAM_APDU [15:09:03]CAPDU: 80 13 00 00 [15:09:03]Write to MH i2c: E2 08 00 F1 2B 80 13 00 00 00 00 00 00 98 [15:09:03]Write i2c OK [15:09:03]MH_I2C_Read... [15:09:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:03]Read from MH i2c: E2 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 62 00 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 62 00 F1 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 C9 DA 02 00 0E 04 04 00 87 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 A5 [15:09:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [15:09:03]wFMCommunicate OK [15:09:03]SAM_PROTO_GetFieldsCounters done [15:09:03]requested_item shift.num is exist - process it [15:09:03]requested_item shift.opened is exist - process it [15:09:03]req_shift_opened [15:09:03]FM_GetShiftState [15:09:03]SAM_PROTO_GetShiftState [15:09:03]wFMCommunicate request_size=4 [15:09:03]MH_SAM_APDU [15:09:03]CAPDU: 80 13 01 00 [15:09:03]Write to MH i2c: E2 08 00 F2 2B 80 13 01 00 00 00 00 00 9A [15:09:03]Write i2c OK [15:09:03]MH_I2C_Read... [15:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:03]Read from MH i2c: E2 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 0E 00 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 0E 00 F2 2B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 19 [15:09:03]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:09:03]wFMCommunicate OK [15:09:03]SAM_PROTO_GetShiftState done [15:09:03]FM_GetShiftState done [15:09:03]req_shift_opened done [15:09:03]requested_item shift.open_date is exist - process it [15:09:03]req_shift_open_date [15:09:03]req_shift_open_date done [15:09:03]produce_requested_data done [15:09:03]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187081,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:09:03]process_action_free close_receipt [15:09:03]json_value_free [15:09:03]json_value_free done [15:09:03]process_json_proto returns [15:09:03]Send response to host [15:09:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187081,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:09:03]free response buf [15:09:03]execute_script done [15:09:03]execute_script returns [15:09:03]free content buf [15:09:03]Sock 7.Close socket [15:09:03]Sock 7.Thread stoped [15:09:07]OFD Sender: No OFD packet to send [15:09:12]OFD Sender: No OFD packet to send [15:09:17]OFD Sender: No OFD packet to send [15:09:22]OFD Sender: No OFD packet to send [15:09:27]OFD Sender: No OFD packet to send [15:09:32]OFD Sender: No OFD packet to send [15:09:37]OFD Sender: No OFD packet to send [15:09:42]OFD Sender: No OFD packet to send [15:09:47]OFD Sender: No OFD packet to send [15:09:52]OFD Sender: No OFD packet to send [15:09:57]OFD Sender: No OFD packet to send [15:10:02]OFD Sender: No OFD packet to send [15:10:07]OFD Sender: No OFD packet to send [15:10:12]OFD Sender: No OFD packet to send [15:10:17]OFD Sender: No OFD packet to send [15:10:22]OFD Sender: No OFD packet to send [15:10:27]OFD Sender: No OFD packet to send [15:10:32]OFD Sender: No OFD packet to send [15:10:37]OFD Sender: No OFD packet to send [15:10:42]OFD Sender: No OFD packet to send [15:10:47]OFD Sender: No OFD packet to send [15:10:52]OFD Sender: No OFD packet to send [15:10:57]OFD Sender: No OFD packet to send [15:11:02]OFD Sender: No OFD packet to send [15:11:07]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:14]accept exits with 9 [15:12:14]New connection [15:12:14]New thread 3066879332 created [15:12:14]Thread 3067022692 joined [15:12:14]Waiting for new connection... [15:12:14] Sock 9.Parse request [15:12:14]Sock 9.Check first char [15:12:14]Sock 9.First char is OK [15:12:14]request: POST /json_proto HTTP/1.0 [15:12:14]Method: POST [15:12:14]URL: /json_proto [15:12:14]Method is POST - this is cgi request [15:12:14]url: /json_proto [15:12:14]query_string will be loaded in cgi processing [15:12:14]execute_cgi json_proto POST (null) [15:12:14]execute_cgi path=json_proto method=POST [15:12:14]POST find Content-Length [15:12:14]Host: 172.17.46.131:8080 [15:12:14]Content-Length: 677 [15:12:14]Content-Type: application/json [15:12:14] [15:12:14]POST finish read [15:12:14]Found Content-Length = 677 [15:12:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412233", "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" ] } } [15:12:14]execute_script... [15:12: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)412233", "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" ] } } [15:12:14]POST & json_proto [15:12:14]process_json_proto [15:12:14]json parsed OK: [15:12:14]protocol is kg_v1.0 [15:12:14]action value=close_receipt [15:12:14]process_action close_receipt [15:12:14]cmd_close_receipt [15:12:14]MH_GetDate [15:12:14]Write to MH i2c: F0 00 00 F3 2B 0D [15:12:14]Write i2c OK [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: F0 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: F0 09 00 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: F0 09 00 F3 2B 00 D2 F4 B5 67 7E 41 4F 65 6B [15:12:14]GetLastDocTimeStamp 1739977743 [15:12:14]current date 1739977938 [15:12:14]FM_GetShiftState [15:12:14]SAM_PROTO_GetShiftState [15:12:14]wFMCommunicate request_size=4 [15:12:14]MH_SAM_APDU [15:12:14]CAPDU: 80 13 01 00 [15:12:14]Write to MH i2c: E2 08 00 F4 2B 80 13 01 00 00 00 00 00 9C [15:12:14]Write i2c OK [15:12:14]MH_I2C_Read... [15:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:14]Read from MH i2c: E2 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: E2 0E 00 [15:12:14]MH_I2C_Read... [15:12:14]Read from MH i2c: E2 0E 00 F4 2B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 1B [15:12:14]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:12:14]wFMCommunicate OK [15:12:14]SAM_PROTO_GetShiftState done [15:12:14]FM_GetShiftState done [15:12:14]opened in 1739929631 [15:12:14]opened+sec_in_day 1740016031 [15:12:14]quantity*price = 70030 [15:12:14]sum+1 = 70032 [15:12:14]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 СНО: Общий режим Чек 148 19.02.2025 15:12 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187082 ФПД: 92535963778161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T151218&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187082&fm=92535963778161&tin=02508201610067®Number=0000000000091857&sum=70000 [15:12:15]StoreToDocumentArchive [15:12:15]shift 647 fd 187082 [15:12:15]save to /storage/0647/doc_00187082 [15:12:15]save last doc name /storage/0647/doc_00187082 to /storage/kkm_last_doc_name [15:12:15]save OK [15:12:15]Clear old archive folders... [15:12:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:12:15]tlvbuf is 005C2750 [15:12:15]SAM_PROTO_ClearQueue [15:12:15]wFMCommunicate request_size=4 [15:12:15]MH_SAM_APDU [15:12:15]CAPDU: 80 09 00 00 [15:12:15]Write to MH i2c: E2 08 00 01 2C 80 09 00 00 00 00 00 00 9F [15:12:15]Write i2c OK [15:12:15]MH_I2C_Read... [15:12:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:15]Read from MH i2c: E2 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: E2 03 00 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: E2 03 00 01 2C 00 90 00 A1 [15:12:15]RAPDU: 90 00 [15:12:15]wFMCommunicate OK [15:12:15]SAM_PROTO_ClearQueue done [15:12:15]KKMCreateOFDPacket [15:12:15]OFDProtocolAddRootSTLVToBuf [15:12:15]FM_MakeSignedData [15:12:15]FM_MakeSignedData [15:12:15]SAM_PROTO_SignData [15:12:15]wFMCommunicate request_size=4 [15:12:15]MH_SAM_APDU [15:12:15]CAPDU: 80 0D 01 02 [15:12:15]Write to MH i2c: E2 08 00 02 2C 80 0D 01 02 00 00 00 00 A7 [15:12:15]Write i2c OK [15:12:15]MH_I2C_Read... [15:12:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:15]Read from MH i2c: E2 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: E2 03 00 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: E2 03 00 02 2C 00 90 00 A2 [15:12:15]RAPDU: 90 00 [15:12:15]wFMCommunicate OK [15:12:15]wFMCommunicate request_size=255 [15:12:15]MH_SAM_APDU [15:12:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 94 00 00 00 F4 03 04 00 D2 F4 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 CA DA 02 00 35 04 06 00 54 [15:12:15]Write to MH i2c: E2 02 01 03 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 94 00 00 00 F4 03 04 00 D2 F4 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 CA DA 02 00 35 04 06 00 54 00 00 54 [15:12:15]Write i2c OK [15:12:15]MH_I2C_Read... [15:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:15]Read from MH i2c: E2 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: E2 03 00 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: E2 03 00 03 2C 00 90 00 A3 [15:12:15]RAPDU: 90 00 [15:12:15]wFMCommunicate OK [15:12:15]wFMCommunicate request_size=10 [15:12:15]MH_SAM_APDU [15:12:15]CAPDU: 80 0D 02 02 05 29 35 3F FC 71 [15:12:15]Write to MH i2c: E2 0D 00 04 2C 80 0D 02 02 05 00 29 35 3F FC 71 00 00 BE [15:12:15]Write i2c OK [15:12:15]MH_I2C_Read... [15:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:15]Read from MH i2c: E2 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: E2 03 00 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: E2 03 00 04 2C 00 90 00 A4 [15:12:15]RAPDU: 90 00 [15:12:15]wFMCommunicate OK [15:12:15]wFMCommunicate request_size=4 [15:12:15]MH_SAM_APDU [15:12:15]CAPDU: 80 0D 03 02 [15:12:15]Write to MH i2c: E2 08 00 05 2C 80 0D 03 02 00 00 00 00 AC [15:12:15]Write i2c OK [15:12:15]MH_I2C_Read... [15:12:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:15]Read from MH i2c: E2 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: E2 0B 00 [15:12:15]MH_I2C_Read... [15:12:15]Read from MH i2c: E2 0B 00 05 2C 00 CF FD 5C 8D 7E 3B 3A 12 90 00 67 [15:12:15]RAPDU: CF FD 5C 8D 7E 3B 3A 12 90 00 [15:12:15]wFMCommunicate OK [15:12:15]SAM_PROTO_SignData done [15:12:15]FM_MakeSignedData done [15:12:15]CreateOFDProtocolMessage [15:12:15]wFMCommunicate request_size=4 [15:12:15]MH_SAM_APDU [15:12:15]CAPDU: 80 11 00 00 [15:12:15]Write to MH i2c: E2 08 00 06 2C 80 11 00 00 00 00 00 00 AC [15:12:15]Write i2c OK [15:12:15]MH_I2C_Read... [15:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:16]Read from MH i2c: E2 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 17 00 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: E2 17 00 06 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FF [15:12: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:12:16]wFMCommunicate OK [15:12:16]CreateOFDProtocolMessage done [15:12:16]OFDSenderStorePacket 187082 [15:12:16]StoreOFDPacket docnum=187082 [15:12: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 F3 5E 07 01 69 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 94 00 00 00 F4 03 04 00 D2 F4 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 CA DA 02 00 35 04 06 00 54 29 35 3F FC 71 CF FD 5C 8D 7E 3B 3A 12 [15:12:16]CheckFolder [15:12:16]dirname=/storage/ofd_packets [15:12:16]CheckFolder done [15:12:16]ProducePacketName [15:12:16]name=ofd_packets/00187082 [15:12:16]NVStorageSaveData ofd_packets/00187082 [15:12:16]File name is /storage/ofd_packets/00187082 [15:12:16]Write 301 bytes [15:12:16]NVStorageSaveData done [15:12:16]OFDSenderStorePacket done [15:12:16]KKMCreateOFDPacket done [15:12:16]NVStorageSaveData kkm_last_timestamp [15:12:16]File name is /storage/kkm_last_timestamp [15:12:16]Write 4 bytes [15:12:16]NVStorageSaveData done [15:12:16]ExternCall_PrintAddStr [15:12:16]wPrintStart [15:12:16]Write to MH i2c: 01 00 00 07 2C 33 [15:12:16]Write i2c OK [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: 01 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: 01 07 00 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: 01 07 00 07 2C 00 00 00 00 00 FF 0F 48 [15:12:16]RasterBufferAndPrint [15:12:16]line Счет N : (1)412233 [15:12:16]line ИНН: 02508201610067 [15:12:16]line Контрольно-Кассовый Чек [15:12:16]line ПРОДАЖА [15:12:16]line ТРК (МРК, ГНК) : 43 [15:12:16]line Товар: 2710124500 [15:12:16]line Аи-95-К-5 [15:12:16]line 9.740 * 71.90 [15:12:16]line = 700.31 [15:12:16]line НДС 12% НСП 1% [15:12:16]line > о реализуемом товаре [15:12:16]line ОКРУГЛЕНИЕ: -0.31 [15:12:16]line ИТОГО: 700.00 [15:12:16]line Внесено: 700.00 [15:12:16]line СДАЧА: 0.00 [15:12:16]line НСП 1% : 6.20 [15:12:16]line НДС 12% : 74.37 [15:12:16]line Наличными: 700.00 [15:12:16]line Безнал.: 0.00 [15:12:16]line Место: АЗС № 92 "Партнер Нефть" [15:12:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:12:16]line СНО: Общий режим [15:12:16]line Чек 148 19.02.2025 15:12 [15:12:16]line Смена: 647 ФФД: 1.0 [15:12:16]line ЗНМ: 0300000118 [15:12:16]line РНМ: 0000000000091857 [15:12:16]line Версия ККМ: 001 [15:12:16]line ФМ: 0000000000871826 [15:12:16]line ФД: 187082 [15:12:16]line ФПД: 92535963778161 [15:12:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T151218&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187082&fm=92535963778161&tin=02508201610067®Number=0000000000091857&sum=70000 [15:12:16]written 0, free lines is 4095 [15:12:16]OFD Sender: Processing packet 187082 [packets to send 49, broken 48] [15:12:16]ProducePacketName [15:12:16]name=ofd_packets/00187082 [15:12:16]OFD Sender: To server: pG, [15:12:16]CommunicateWithHost lk.salyk.kg:30040 [15:12:16]ConnectInit lk.salyk.kg [15:12:16]Connected sock=10 [15:12: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 F3 5E 07 01 69 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 94 00 00 00 F4 03 04 00 D2 F4 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 CA DA 02 00 35 04 06 00 54 29 35 3F FC 71 CF FD 5C 8D 7E 3B 3A 12 [15:12: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 38 90 47 00 F1 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 CA DA 02 00 F4 03 04 00 25 9B B5 67 B6 04 01 00 00 47 98 C1 C2 D8 5B DA 6E [15:12:16]CommunicateWithHost err = 0 [15:12:16]CheckOFDResponse [15:12:16]1017 (14) - 77093643461234 [15:12:16]1041 (16) - 0000000000871826 [15:12:16]1040 (4) - 187082 [15:12:16]1012 (4) - 19.02.2025 08:49 [15:12:16]1206 (1) - 0 [15:12:16]OFD Sender: Remove packet 187082 [15:12:16]ProducePacketName [15:12:16]name=ofd_packets/00187082 [15:12:16]NVStorageDeleteData [15:12:16]Write to MH i2c: 01 00 00 32 2C 5E [15:12:16]Write i2c OK [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: 01 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: 01 07 00 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: 01 07 00 32 2C 00 00 00 00 00 ED 0C 5E [15:12:16]RasterBufferAndPrint [15:12:16]line [15:12:16]line [15:12:16]line [15:12:16]line [15:12:16]line [15:12:16]written 0, free lines is 3315 [15:12:16]MH_Cut [15:12:16]Write to MH i2c: D1 01 00 39 2C 01 37 [15:12:16]Write i2c OK [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: D1 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: D1 01 00 [15:12:16]MH_I2C_Read... [15:12:16]Read from MH i2c: D1 01 00 39 2C 00 36 [15:12:16]Write to MH i2c: 01 00 00 3A 2C 66 [15:12:16]Write i2c OK [15:12:16]MH_I2C_Read... [15:12:17]OFD Sender: No OFD packet to send [15:12:17]*** Cut start [15:12:17]*** Partial cut [15:12:17]*** CUTSNS_PIN = 1 [15:12:17]*** CUTSNS_PIN = 0 [15:12:17]*** Brake cut motor [15:12:18]Read from MH i2c: 01 [15:12:18]MH_I2C_Read... [15:12:18]*** Stop cut motor [15:12:18]*** Cut end [15:12:18]Read from MH i2c: 01 07 00 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: 01 07 00 3A 2C 00 00 00 00 00 FF 0F 7B [15:12:18]process_action close_receipt done [15:12:18]requested_data is exist [15:12:18]produce_requested_data [15:12:18]requested_item fm.sn is exist - process it [15:12:18]wFMCommunicate request_size=4 [15:12:18]MH_SAM_APDU [15:12:18]CAPDU: 80 11 00 00 [15:12:18]Write to MH i2c: E2 08 00 3B 2C 80 11 00 00 00 00 00 00 E1 [15:12:18]Write i2c OK [15:12:18]MH_I2C_Read... [15:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:18]Read from MH i2c: E2 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 17 00 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 17 00 3B 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 34 [15:12: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:12:18]wFMCommunicate OK [15:12:18]requested_item fd.num is exist - process it [15:12:18]SAM_PROTO_GetFieldsCounters [15:12:18]wFMCommunicate request_size=4 [15:12:18]MH_SAM_APDU [15:12:18]CAPDU: 80 13 00 00 [15:12:18]Write to MH i2c: E2 08 00 3C 2C 80 13 00 00 00 00 00 00 E4 [15:12:18]Write i2c OK [15:12:18]MH_I2C_Read... [15:12:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:18]Read from MH i2c: E2 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 62 00 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 62 00 3C 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 CA DA 02 00 0E 04 04 00 87 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 F5 [15:12: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 CA DA 02 00 0E 04 04 00 87 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 [15:12:18]wFMCommunicate OK [15:12:18]SAM_PROTO_GetFieldsCounters done [15:12:18]requested_item shift.num is exist - process it [15:12:18]requested_item shift.opened is exist - process it [15:12:18]req_shift_opened [15:12:18]FM_GetShiftState [15:12:18]SAM_PROTO_GetShiftState [15:12:18]wFMCommunicate request_size=4 [15:12:18]MH_SAM_APDU [15:12:18]CAPDU: 80 13 01 00 [15:12:18]Write to MH i2c: E2 08 00 3D 2C 80 13 01 00 00 00 00 00 E6 [15:12:18]Write i2c OK [15:12:18]MH_I2C_Read... [15:12:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:18]Read from MH i2c: E2 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 0E 00 [15:12:18]MH_I2C_Read... [15:12:18]Read from MH i2c: E2 0E 00 3D 2C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 65 [15:12:18]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:12:18]wFMCommunicate OK [15:12:18]SAM_PROTO_GetShiftState done [15:12:18]FM_GetShiftState done [15:12:18]req_shift_opened done [15:12:18]requested_item shift.open_date is exist - process it [15:12:18]req_shift_open_date [15:12:18]req_shift_open_date done [15:12:18]produce_requested_data done [15:12:18]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187082,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:12:18]process_action_free close_receipt [15:12:18]json_value_free [15:12:18]json_value_free done [15:12:18]process_json_proto returns [15:12:18]Send response to host [15:12:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187082,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:12:18]free response buf [15:12:18]execute_script done [15:12:18]execute_script returns [15:12:18]free content buf [15:12:18]Sock 9.Close socket [15:12:18]Sock 9.Thread stoped [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:34]accept exits with 7 [15:15:34]New connection [15:15:34]New thread 3067022692 created [15:15:34]Thread 3066879332 joined [15:15:34]Waiting for new connection... [15:15:34] Sock 7.Parse request [15:15:34]Sock 7.Check first char [15:15:34]Sock 7.First char is OK [15:15:34]request: POST /json_proto HTTP/1.0 [15:15:34]Method: POST [15:15:34]URL: /json_proto [15:15:34]Method is POST - this is cgi request [15:15:34]url: /json_proto [15:15:34]query_string will be loaded in cgi processing [15:15:34]execute_cgi json_proto POST (null) [15:15:34]execute_cgi path=json_proto method=POST [15:15:34]POST find Content-Length [15:15:34]Host: 172.17.46.131:8080 [15:15:34]Content-Length: 754 [15:15:34]Content-Type: application/json [15:15:34] [15:15:34]POST finish read [15:15:34]Found Content-Length = 754 [15:15:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412234", "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" : 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\u000A30075438", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:34]execute_script... [15:15: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)412234", "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" : 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\u000A30075438", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:34]POST & json_proto [15:15:34]process_json_proto [15:15:34]json parsed OK: [15:15:34]protocol is kg_v1.0 [15:15:34]action value=close_receipt [15:15:34]process_action close_receipt [15:15:34]cmd_close_receipt [15:15:34]MH_GetDate [15:15:34]Write to MH i2c: F0 00 00 3E 2C 59 [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: F0 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: F0 09 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: F0 09 00 3E 2C 00 9A F5 B5 67 7E 41 4F 65 80 [15:15:34]GetLastDocTimeStamp 1739977938 [15:15:34]current date 1739978138 [15:15:34]FM_GetShiftState [15:15:34]SAM_PROTO_GetShiftState [15:15:34]wFMCommunicate request_size=4 [15:15:34]MH_SAM_APDU [15:15:34]CAPDU: 80 13 01 00 [15:15:34]Write to MH i2c: E2 08 00 3F 2C 80 13 01 00 00 00 00 00 E8 [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:34]Read from MH i2c: E2 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 0E 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 0E 00 3F 2C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 67 [15:15:34]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:15:34]wFMCommunicate OK [15:15:34]SAM_PROTO_GetShiftState done [15:15:34]FM_GetShiftState done [15:15:34]opened in 1739929631 [15:15:34]opened+sec_in_day 1740016031 [15:15:34]quantity*price = 0 [15:15:34]sum+1 = 1 [15:15:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 149 19.02.2025 15:15 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30075438 ФМ: 0000000000871826 ФД: 187083 ФПД: 7869950738524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T151538&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187083&fm=7869950738524&tin=02508201610067®Number=0000000000091857&sum=0 [15:15:35]StoreToDocumentArchive [15:15:35]shift 647 fd 187083 [15:15:35]save to /storage/0647/doc_00187083 [15:15:35]save last doc name /storage/0647/doc_00187083 to /storage/kkm_last_doc_name [15:15:35]save OK [15:15:35]Clear old archive folders... [15:15:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:35]tlvbuf is 00672AF0 [15:15:35]SAM_PROTO_ClearQueue [15:15:35]wFMCommunicate request_size=4 [15:15:35]MH_SAM_APDU [15:15:35]CAPDU: 80 09 00 00 [15:15:35]Write to MH i2c: E2 08 00 4C 2C 80 09 00 00 00 00 00 00 EA [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:35]Read from MH i2c: E2 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 03 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 03 00 4C 2C 00 90 00 EC [15:15:35]RAPDU: 90 00 [15:15:35]wFMCommunicate OK [15:15:35]SAM_PROTO_ClearQueue done [15:15:35]KKMCreateOFDPacket [15:15:35]OFDProtocolAddRootSTLVToBuf [15:15:35]FM_MakeSignedData [15:15:35]FM_MakeSignedData [15:15:35]SAM_PROTO_SignData [15:15:35]wFMCommunicate request_size=4 [15:15:35]MH_SAM_APDU [15:15:35]CAPDU: 80 0D 01 02 [15:15:35]Write to MH i2c: E2 08 00 4D 2C 80 0D 01 02 00 00 00 00 F2 [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:35]Read from MH i2c: E2 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 03 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 03 00 4D 2C 00 90 00 ED [15:15:35]RAPDU: 90 00 [15:15:35]wFMCommunicate OK [15:15:35]wFMCommunicate request_size=255 [15:15:35]MH_SAM_APDU [15:15: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 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 95 00 00 00 F4 03 04 00 9A F5 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 CB DA 02 00 35 04 06 00 07 [15:15:35]Write to MH i2c: E2 02 01 4E 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 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 95 00 00 00 F4 03 04 00 9A F5 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 CB DA 02 00 35 04 06 00 07 00 00 88 [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:35]Read from MH i2c: E2 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 03 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 03 00 4E 2C 00 90 00 EE [15:15:35]RAPDU: 90 00 [15:15:35]wFMCommunicate OK [15:15:35]wFMCommunicate request_size=10 [15:15:35]MH_SAM_APDU [15:15:35]CAPDU: 80 0D 02 02 05 28 5D 9E 40 5C [15:15:35]Write to MH i2c: E2 0D 00 4F 2C 80 0D 02 02 05 00 28 5D 9E 40 5C 00 00 BE [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:35]Read from MH i2c: E2 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 03 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 03 00 4F 2C 00 90 00 EF [15:15:35]RAPDU: 90 00 [15:15:35]wFMCommunicate OK [15:15:35]wFMCommunicate request_size=4 [15:15:35]MH_SAM_APDU [15:15:35]CAPDU: 80 0D 03 02 [15:15:35]Write to MH i2c: E2 08 00 50 2C 80 0D 03 02 00 00 00 00 F7 [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:35]Read from MH i2c: E2 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 0B 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 0B 00 50 2C 00 70 12 50 F5 6C C7 8D DA 90 00 59 [15:15:35]RAPDU: 70 12 50 F5 6C C7 8D DA 90 00 [15:15:35]wFMCommunicate OK [15:15:35]SAM_PROTO_SignData done [15:15:35]FM_MakeSignedData done [15:15:35]CreateOFDProtocolMessage [15:15:35]wFMCommunicate request_size=4 [15:15:35]MH_SAM_APDU [15:15:35]CAPDU: 80 11 00 00 [15:15:35]Write to MH i2c: E2 08 00 51 2C 80 11 00 00 00 00 00 00 F7 [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:35]Read from MH i2c: E2 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 17 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 17 00 51 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4A [15:15:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:15:35]wFMCommunicate OK [15:15:35]CreateOFDProtocolMessage done [15:15:35]OFDSenderStorePacket 187083 [15:15:35]StoreOFDPacket docnum=187083 [15:15: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 10 D7 07 01 93 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 95 00 00 00 F4 03 04 00 9A F5 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 CB DA 02 00 35 04 06 00 07 28 5D 9E 40 5C 70 12 50 F5 6C C7 8D DA [15:15:35]CheckFolder [15:15:35]dirname=/storage/ofd_packets [15:15:35]CheckFolder done [15:15:35]ProducePacketName [15:15:35]name=ofd_packets/00187083 [15:15:35]NVStorageSaveData ofd_packets/00187083 [15:15:35]File name is /storage/ofd_packets/00187083 [15:15:35]Write 301 bytes [15:15:35]NVStorageSaveData done [15:15:35]OFDSenderStorePacket done [15:15:35]KKMCreateOFDPacket done [15:15:35]NVStorageSaveData kkm_last_timestamp [15:15:35]File name is /storage/kkm_last_timestamp [15:15:35]Write 4 bytes [15:15:35]NVStorageSaveData done [15:15:35]ExternCall_PrintAddStr [15:15:35]wPrintStart [15:15:35]Write to MH i2c: 01 00 00 52 2C 7E [15:15:35]OFD Sender: Processing packet 187083 [packets to send 49, broken 48] [15:15:35]ProducePacketName [15:15:35]name=ofd_packets/00187083 [15:15:35]OFD Sender: To server: pG, [15:15:35]CommunicateWithHost lk.salyk.kg:30040 [15:15:35]ConnectInit lk.salyk.kg [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: 01 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: 01 07 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: 01 07 00 52 2C 00 00 00 00 00 FF 0F 93 [15:15:35]RasterBufferAndPrint [15:15:35]line Счет N : (1)412234 [15:15:35]line ИНН: 02508201610067 [15:15:35]line Контрольно-Кассовый Чек [15:15:35]line ПРОДАЖА [15:15:35]line ТРК (МРК, ГНК) : 12 [15:15:35]line Товар: 2710124130 [15:15:35]line Аи-92-К-2 [15:15:35]line 50.000 * 0.00 [15:15:35]line = 0.00 [15:15:35]line НДС 12% НСП 1% [15:15:35]line > о реализуемом товаре [15:15:35]line ИТОГО: 0.00 [15:15:35]line НСП 1% : 0.00 [15:15:35]line НДС 12% : 0.00 [15:15:35]line Наличными: 0.00 [15:15:35]line Безнал.: 0.00 [15:15:35]line Место: АЗС № 92 "Партнер Нефть" [15:15:35]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:15:35]line СНО: Общий режим [15:15:35]line Чек 149 19.02.2025 15:15 [15:15:35]line Смена: 647 ФФД: 1.0 [15:15:35]line ЗНМ: 0300000118 [15:15:35]line РНМ: 0000000000091857 [15:15:35]line Версия ККМ: 001 [15:15:35]line Талоны: ТК ГПНА Online [15:15:35]line 30075438 [15:15:35]line ФМ: 0000000000871826 [15:15:35]line ФД: 187083 [15:15:35]line ФПД: 7869950738524 [15:15:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T151538&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187083&fm=7869950738524&tin=02508201610067®Number=0000000000091857&sum=0 [15:15:35]written 0, free lines is 4095 [15:15:36]Connected sock=10 [15:15: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 10 D7 07 01 93 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 95 00 00 00 F4 03 04 00 9A F5 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 CB DA 02 00 35 04 06 00 07 28 5D 9E 40 5C 70 12 50 F5 6C C7 8D DA [15:15: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 C1 2B 47 00 45 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CB DA 02 00 F4 03 04 00 ED 9B B5 67 B6 04 01 00 00 97 DE 0D 72 B5 AD 05 4E [15:15:36]CommunicateWithHost err = 0 [15:15:36]CheckOFDResponse [15:15:36]1017 (14) - 77093643461234 [15:15:36]1041 (16) - 0000000000871826 [15:15:36]1040 (4) - 187083 [15:15:36]1012 (4) - 19.02.2025 08:53 [15:15:36]1206 (1) - 0 [15:15:36]OFD Sender: Remove packet 187083 [15:15:36]ProducePacketName [15:15:36]name=ofd_packets/00187083 [15:15:36]NVStorageDeleteData [15:15:36]Write to MH i2c: 01 00 00 7C 2C A8 [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: 01 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: 01 07 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: 01 07 00 7C 2C 00 00 00 00 00 0B 0D C7 [15:15:36]RasterBufferAndPrint [15:15:36]line [15:15:36]line [15:15:36]line [15:15:36]line [15:15:36]line [15:15:36]written 0, free lines is 3345 [15:15:36]MH_Cut [15:15:36]Write to MH i2c: D1 01 00 83 2C 01 81 [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: D1 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: D1 01 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: D1 01 00 83 2C 00 80 [15:15:36]Write to MH i2c: 01 00 00 84 2C B0 [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]OFD Sender: No OFD packet to send [15:15:37]*** Cut start [15:15:37]*** Partial cut [15:15:37]*** CUTSNS_PIN = 1 [15:15:37]*** CUTSNS_PIN = 0 [15:15:37]*** Brake cut motor [15:15:37]Read from MH i2c: 01 [15:15:37]MH_I2C_Read... [15:15:37]*** Stop cut motor [15:15:37]*** Cut end [15:15:37]Read from MH i2c: 01 07 00 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: 01 07 00 84 2C 00 00 00 00 00 FF 0F C5 [15:15:37]process_action close_receipt done [15:15:37]requested_data is exist [15:15:37]produce_requested_data [15:15:37]requested_item fm.sn is exist - process it [15:15:37]wFMCommunicate request_size=4 [15:15:37]MH_SAM_APDU [15:15:37]CAPDU: 80 11 00 00 [15:15:37]Write to MH i2c: E2 08 00 85 2C 80 11 00 00 00 00 00 00 2B [15:15:37]Write i2c OK [15:15:37]MH_I2C_Read... [15:15:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:37]Read from MH i2c: E2 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: E2 17 00 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: E2 17 00 85 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7E [15:15: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:15:37]wFMCommunicate OK [15:15:37]requested_item fd.num is exist - process it [15:15:37]SAM_PROTO_GetFieldsCounters [15:15:37]wFMCommunicate request_size=4 [15:15:37]MH_SAM_APDU [15:15:37]CAPDU: 80 13 00 00 [15:15:37]Write to MH i2c: E2 08 00 86 2C 80 13 00 00 00 00 00 00 2E [15:15:37]Write i2c OK [15:15:37]MH_I2C_Read... [15:15:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:37]Read from MH i2c: E2 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: E2 62 00 [15:15:37]MH_I2C_Read... [15:15:37]Read from MH i2c: E2 62 00 86 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 CB DA 02 00 0E 04 04 00 87 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 43 [15:15: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 CB DA 02 00 0E 04 04 00 87 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 [15:15:38]wFMCommunicate OK [15:15:38]SAM_PROTO_GetFieldsCounters done [15:15:38]requested_item shift.num is exist - process it [15:15:38]requested_item shift.opened is exist - process it [15:15:38]req_shift_opened [15:15:38]FM_GetShiftState [15:15:38]SAM_PROTO_GetShiftState [15:15:38]wFMCommunicate request_size=4 [15:15:38]MH_SAM_APDU [15:15:38]CAPDU: 80 13 01 00 [15:15:38]Write to MH i2c: E2 08 00 87 2C 80 13 01 00 00 00 00 00 30 [15:15:38]Write i2c OK [15:15:38]MH_I2C_Read... [15:15:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:38]Read from MH i2c: E2 [15:15:38]MH_I2C_Read... [15:15:38]Read from MH i2c: E2 0E 00 [15:15:38]MH_I2C_Read... [15:15:38]Read from MH i2c: E2 0E 00 87 2C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 AF [15:15:38]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:15:38]wFMCommunicate OK [15:15:38]SAM_PROTO_GetShiftState done [15:15:38]FM_GetShiftState done [15:15:38]req_shift_opened done [15:15:38]requested_item shift.open_date is exist - process it [15:15:38]req_shift_open_date [15:15:38]req_shift_open_date done [15:15:38]produce_requested_data done [15:15:38]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187083,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:15:38]process_action_free close_receipt [15:15:38]json_value_free [15:15:38]json_value_free done [15:15:38]process_json_proto returns [15:15:38]Send response to host [15:15:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187083,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:15:38]free response buf [15:15:38]execute_script done [15:15:38]execute_script returns [15:15:38]free content buf [15:15:38]Sock 7.Close socket [15:15:38]Sock 7.Thread stoped [15:15:41]OFD Sender: No OFD packet to send [15:15:46]OFD Sender: No OFD packet to send [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:26]OFD Sender: No OFD packet to send [15:16:31]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:46]OFD Sender: No OFD packet to send [15:16:51]OFD Sender: No OFD packet to send [15:16:56]OFD Sender: No OFD packet to send [15:17:01]OFD Sender: No OFD packet to send [15:17:06]OFD Sender: No OFD packet to send [15:17:11]OFD Sender: No OFD packet to send [15:17:16]OFD Sender: No OFD packet to send [15:17:21]OFD Sender: No OFD packet to send [15:17:26]OFD Sender: No OFD packet to send [15:17:31]OFD Sender: No OFD packet to send [15:17:37]OFD Sender: No OFD packet to send [15:17:42]OFD Sender: No OFD packet to send [15:17:47]OFD Sender: No OFD packet to send [15:17:52]OFD Sender: No OFD packet to send [15:17:57]OFD Sender: No OFD packet to send [15:18:02]OFD Sender: No OFD packet to send [15:18:07]OFD Sender: No OFD packet to send [15:18:07]accept exits with 9 [15:18:07]New connection [15:18:07]New thread 3066879332 created [15:18:07]Thread 3067022692 joined [15:18:07]Waiting for new connection... [15:18:07] Sock 9.Parse request [15:18:07]Sock 9.Check first char [15:18:07]Sock 9.First char is OK [15:18:07]request: POST /json_proto HTTP/1.0 [15:18:07]Method: POST [15:18:07]URL: /json_proto [15:18:07]Method is POST - this is cgi request [15:18:07]url: /json_proto [15:18:07]query_string will be loaded in cgi processing [15:18:07]execute_cgi json_proto POST (null) [15:18:07]execute_cgi path=json_proto method=POST [15:18:07]POST find Content-Length [15:18:07]Host: 172.17.46.131:8080 [15:18:07]Content-Length: 677 [15:18:07]Content-Type: application/json [15:18:07] [15:18:07]POST finish read [15:18:07]Found Content-Length = 677 [15:18:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412235", "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:18:07]execute_script... [15:18: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)412235", "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:18:07]POST & json_proto [15:18:07]process_json_proto [15:18:07]json parsed OK: [15:18:07]protocol is kg_v1.0 [15:18:07]action value=close_receipt [15:18:07]process_action close_receipt [15:18:07]cmd_close_receipt [15:18:07]MH_GetDate [15:18:07]Write to MH i2c: F0 00 00 88 2C A3 [15:18:07]Write i2c OK [15:18:07]MH_I2C_Read... [15:18:07]Read from MH i2c: F0 [15:18:07]MH_I2C_Read... [15:18:07]Read from MH i2c: F0 09 00 [15:18:07]MH_I2C_Read... [15:18:07]Read from MH i2c: F0 09 00 88 2C 00 33 F6 B5 67 7E 41 4F 65 64 [15:18:07]GetLastDocTimeStamp 1739978138 [15:18:07]current date 1739978291 [15:18:07]FM_GetShiftState [15:18:07]SAM_PROTO_GetShiftState [15:18:07]wFMCommunicate request_size=4 [15:18:07]MH_SAM_APDU [15:18:07]CAPDU: 80 13 01 00 [15:18:07]Write to MH i2c: E2 08 00 89 2C 80 13 01 00 00 00 00 00 32 [15:18:07]Write i2c OK [15:18:07]MH_I2C_Read... [15:18:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:07]Read from MH i2c: E2 [15:18:07]MH_I2C_Read... [15:18:07]Read from MH i2c: E2 0E 00 [15:18:07]MH_I2C_Read... [15:18:07]Read from MH i2c: E2 0E 00 89 2C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 B1 [15:18:07]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:18:07]wFMCommunicate OK [15:18:07]SAM_PROTO_GetShiftState done [15:18:07]FM_GetShiftState done [15:18:07]opened in 1739929631 [15:18:07]opened+sec_in_day 1740016031 [15:18:07]quantity*price = 50011 [15:18:07]sum+1 = 50013 [15:18:07]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 СНО: Общий режим Чек 150 19.02.2025 15:18 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187084 ФПД: 192245276716012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T151811&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187084&fm=192245276716012&tin=02508201610067®Number=0000000000091857&sum=50000 [15:18:08]StoreToDocumentArchive [15:18:08]shift 647 fd 187084 [15:18:08]save to /storage/0647/doc_00187084 [15:18:08]save last doc name /storage/0647/doc_00187084 to /storage/kkm_last_doc_name [15:18:08]save OK [15:18:08]Clear old archive folders... [15:18:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:18:08]tlvbuf is 0068C450 [15:18:08]SAM_PROTO_ClearQueue [15:18:08]wFMCommunicate request_size=4 [15:18:08]MH_SAM_APDU [15:18:08]CAPDU: 80 09 00 00 [15:18:08]Write to MH i2c: E2 08 00 96 2C 80 09 00 00 00 00 00 00 34 [15:18:08]Write i2c OK [15:18:08]MH_I2C_Read... [15:18:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:08]Read from MH i2c: E2 [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: E2 03 00 [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: E2 03 00 96 2C 00 90 00 36 [15:18:08]RAPDU: 90 00 [15:18:08]wFMCommunicate OK [15:18:08]SAM_PROTO_ClearQueue done [15:18:08]KKMCreateOFDPacket [15:18:08]OFDProtocolAddRootSTLVToBuf [15:18:08]FM_MakeSignedData [15:18:08]FM_MakeSignedData [15:18:08]SAM_PROTO_SignData [15:18:08]wFMCommunicate request_size=4 [15:18:08]MH_SAM_APDU [15:18:08]CAPDU: 80 0D 01 02 [15:18:08]Write to MH i2c: E2 08 00 97 2C 80 0D 01 02 00 00 00 00 3C [15:18:08]Write i2c OK [15:18:08]MH_I2C_Read... [15:18:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:08]Read from MH i2c: E2 [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: E2 03 00 [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: E2 03 00 97 2C 00 90 00 37 [15:18:08]RAPDU: 90 00 [15:18:08]wFMCommunicate OK [15:18:08]wFMCommunicate request_size=255 [15:18:08]MH_SAM_APDU [15:18:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 96 00 00 00 F4 03 04 00 33 F6 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 CC DA 02 00 35 04 06 00 AE [15:18:08]Write to MH i2c: E2 02 01 98 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 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 96 00 00 00 F4 03 04 00 33 F6 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 CC DA 02 00 35 04 06 00 AE 00 00 8F [15:18:08]Write i2c OK [15:18:08]MH_I2C_Read... [15:18:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:08]Read from MH i2c: E2 [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: E2 03 00 [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: E2 03 00 98 2C 00 90 00 38 [15:18:08]RAPDU: 90 00 [15:18:08]wFMCommunicate OK [15:18:08]wFMCommunicate request_size=10 [15:18:08]MH_SAM_APDU [15:18:08]CAPDU: 80 0D 02 02 05 D8 97 6D AB EC [15:18:08]Write to MH i2c: E2 0D 00 99 2C 80 0D 02 02 05 00 D8 97 6D AB EC 00 00 BC [15:18:08]Write i2c OK [15:18:08]MH_I2C_Read... [15:18:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:08]Read from MH i2c: E2 [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: E2 03 00 [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: E2 03 00 99 2C 00 90 00 39 [15:18:08]RAPDU: 90 00 [15:18:08]wFMCommunicate OK [15:18:08]wFMCommunicate request_size=4 [15:18:08]MH_SAM_APDU [15:18:08]CAPDU: 80 0D 03 02 [15:18:08]Write to MH i2c: E2 08 00 9A 2C 80 0D 03 02 00 00 00 00 41 [15:18:08]Write i2c OK [15:18:08]MH_I2C_Read... [15:18:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:08]Read from MH i2c: E2 [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: E2 0B 00 [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: E2 0B 00 9A 2C 00 AE 02 A2 5E 95 BD C5 B5 90 00 BE [15:18:08]RAPDU: AE 02 A2 5E 95 BD C5 B5 90 00 [15:18:08]wFMCommunicate OK [15:18:08]SAM_PROTO_SignData done [15:18:08]FM_MakeSignedData done [15:18:08]CreateOFDProtocolMessage [15:18:08]wFMCommunicate request_size=4 [15:18:08]MH_SAM_APDU [15:18:08]CAPDU: 80 11 00 00 [15:18:08]Write to MH i2c: E2 08 00 9B 2C 80 11 00 00 00 00 00 00 41 [15:18:08]Write i2c OK [15:18:08]MH_I2C_Read... [15:18:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:08]Read from MH i2c: E2 [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: E2 17 00 [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: E2 17 00 9B 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 94 [15: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 [15:18:08]wFMCommunicate OK [15:18:08]CreateOFDProtocolMessage done [15:18:08]OFDSenderStorePacket 187084 [15:18:08]StoreOFDPacket docnum=187084 [15:18: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 FA C2 07 01 4F 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 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 96 00 00 00 F4 03 04 00 33 F6 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 CC DA 02 00 35 04 06 00 AE D8 97 6D AB EC AE 02 A2 5E 95 BD C5 B5 [15:18:08]CheckFolder [15:18:08]dirname=/storage/ofd_packets [15:18:08]CheckFolder done [15:18:08]ProducePacketName [15:18:08]name=ofd_packets/00187084 [15:18:08]NVStorageSaveData ofd_packets/00187084 [15:18:08]File name is /storage/ofd_packets/00187084 [15:18:08]Write 301 bytes [15:18:08]NVStorageSaveData done [15:18:08]OFDSenderStorePacket done [15:18:08]KKMCreateOFDPacket done [15:18:08]NVStorageSaveData kkm_last_timestamp [15:18:08]File name is /storage/kkm_last_timestamp [15:18:08]Write 4 bytes [15:18:08]NVStorageSaveData done [15:18:08]ExternCall_PrintAddStr [15:18:08]wPrintStart [15:18:08]Write to MH i2c: 01 00 00 9C 2C C8 [15:18:08]Write i2c OK [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: 01 [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: 01 07 00 [15:18:08]MH_I2C_Read... [15:18:08]Read from MH i2c: 01 07 00 9C 2C 00 00 00 00 00 FF 0F DD [15:18:08]RasterBufferAndPrint [15:18:08]line Счет N : (1)412235 [15:18:08]line ИНН: 02508201610067 [15:18:08]line Контрольно-Кассовый Чек [15:18:08]line ПРОДАЖА [15:18:08]line ТРК (МРК, ГНК) : 32 [15:18:08]line Товар: 2710124130 [15:18:08]line Аи-92-К-2 [15:18:08]line 7.790 * 64.20 [15:18:08]line = 500.12 [15:18:08]line НДС 12% НСП 1% [15:18:08]line > о реализуемом товаре [15:18:08]line ОКРУГЛЕНИЕ: -0.12 [15:18:08]line ИТОГО: 500.00 [15:18:08]line Внесено: 500.00 [15:18:08]line СДАЧА: 0.00 [15:18:08]line НСП 1% : 4.43 [15:18:08]line НДС 12% : 53.11 [15:18:08]line Наличными: 500.00 [15:18:08]line Безнал.: 0.00 [15:18:08]line Место: АЗС № 92 "Партнер Нефть" [15:18:08]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:18:08]line СНО: Общий режим [15:18:08]line Чек 150 19.02.2025 15:18 [15:18:08]line Смена: 647 ФФД: 1.0 [15:18:08]line ЗНМ: 0300000118 [15:18:08]line РНМ: 0000000000091857 [15:18:08]line Версия ККМ: 001 [15:18:08]line ФМ: 0000000000871826 [15:18:08]line ФД: 187084 [15:18:08]line ФПД: 192245276716012 [15:18:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T151811&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187084&fm=192245276716012&tin=02508201610067®Number=0000000000091857&sum=50000 [15:18:09]OFD Sender: Processing packet 187084 [packets to send 49, broken 48] [15:18:09]ProducePacketName [15:18:09]name=ofd_packets/00187084 [15:18:09]OFD Sender: To server: pG, [15:18:09]CommunicateWithHost lk.salyk.kg:30040 [15:18:09]ConnectInit lk.salyk.kg [15:18:09]written 0, free lines is 4095 [15:18:09]Connected sock=10 [15:18: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 FA C2 07 01 4F 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 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 96 00 00 00 F4 03 04 00 33 F6 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 CC DA 02 00 35 04 06 00 AE D8 97 6D AB EC AE 02 A2 5E 95 BD C5 B5 [15:18: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 2E 83 47 00 BD 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 CC DA 02 00 F4 03 04 00 86 9C B5 67 B6 04 01 00 00 80 DF 7D 10 F9 B2 F5 21 [15:18:09]CommunicateWithHost err = 0 [15:18:09]CheckOFDResponse [15:18:09]1017 (14) - 77093643461234 [15:18:09]1041 (16) - 0000000000871826 [15:18:09]1040 (4) - 187084 [15:18:09]1012 (4) - 19.02.2025 08:55 [15:18:09]1206 (1) - 0 [15:18:09]OFD Sender: Remove packet 187084 [15:18:09]ProducePacketName [15:18:09]name=ofd_packets/00187084 [15:18:09]NVStorageDeleteData [15:18:09]Write to MH i2c: 01 00 00 C7 2C F3 [15:18:09]Write i2c OK [15:18:09]MH_I2C_Read... [15:18:09]Read from MH i2c: 01 [15:18:09]MH_I2C_Read... [15:18:09]Read from MH i2c: 01 07 00 [15:18:09]MH_I2C_Read... [15:18:09]Read from MH i2c: 01 07 00 C7 2C 00 00 00 00 00 F4 0C FA [15:18:09]RasterBufferAndPrint [15:18:09]line [15:18:09]line [15:18:09]line [15:18:09]line [15:18:09]line [15:18:09]written 0, free lines is 3322 [15:18:09]MH_Cut [15:18:09]Write to MH i2c: D1 01 00 CE 2C 01 CC [15:18:09]Write i2c OK [15:18:09]MH_I2C_Read... [15:18:09]Read from MH i2c: D1 [15:18:09]MH_I2C_Read... [15:18:09]Read from MH i2c: D1 01 00 [15:18:09]MH_I2C_Read... [15:18:09]Read from MH i2c: D1 01 00 CE 2C 00 CB [15:18:09]Write to MH i2c: 01 00 00 CF 2C FB [15:18:09]Write i2c OK [15:18:09]MH_I2C_Read... [15:18:10]OFD Sender: No OFD packet to send [15:18:10]*** Cut start [15:18:10]*** Partial cut [15:18:10]*** CUTSNS_PIN = 1 [15:18:10]*** CUTSNS_PIN = 0 [15:18:10]*** Brake cut motor [15:18:10]Read from MH i2c: 01 [15:18:10]MH_I2C_Read... [15:18:10]*** Stop cut motor [15:18:10]*** Cut end [15:18:10]Read from MH i2c: 01 07 00 [15:18:10]MH_I2C_Read... [15:18:10]Read from MH i2c: 01 07 00 CF 2C 00 00 00 00 00 FF 0F 10 [15:18:10]process_action close_receipt done [15:18:10]requested_data is exist [15:18:10]produce_requested_data [15:18:10]requested_item fm.sn is exist - process it [15:18:10]wFMCommunicate request_size=4 [15:18:10]MH_SAM_APDU [15:18:10]CAPDU: 80 11 00 00 [15:18:10]Write to MH i2c: E2 08 00 D0 2C 80 11 00 00 00 00 00 00 76 [15:18:10]Write i2c OK [15:18:10]MH_I2C_Read... [15:18:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:11]Read from MH i2c: E2 [15:18:11]MH_I2C_Read... [15:18:11]Read from MH i2c: E2 17 00 [15:18:11]MH_I2C_Read... [15:18:11]Read from MH i2c: E2 17 00 D0 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C9 [15:18:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:18:11]wFMCommunicate OK [15:18:11]requested_item fd.num is exist - process it [15:18:11]SAM_PROTO_GetFieldsCounters [15:18:11]wFMCommunicate request_size=4 [15:18:11]MH_SAM_APDU [15:18:11]CAPDU: 80 13 00 00 [15:18:11]Write to MH i2c: E2 08 00 D1 2C 80 13 00 00 00 00 00 00 79 [15:18:11]Write i2c OK [15:18:11]MH_I2C_Read... [15:18:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:11]Read from MH i2c: E2 [15:18:11]MH_I2C_Read... [15:18:11]Read from MH i2c: E2 62 00 [15:18:11]MH_I2C_Read... [15:18:11]Read from MH i2c: E2 62 00 D1 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 CC DA 02 00 0E 04 04 00 87 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 92 [15:18: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 DA 02 00 0E 04 04 00 87 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 [15:18:11]wFMCommunicate OK [15:18:11]SAM_PROTO_GetFieldsCounters done [15:18:11]requested_item shift.num is exist - process it [15:18:11]requested_item shift.opened is exist - process it [15:18:11]req_shift_opened [15:18:11]FM_GetShiftState [15:18:11]SAM_PROTO_GetShiftState [15:18:11]wFMCommunicate request_size=4 [15:18:11]MH_SAM_APDU [15:18:11]CAPDU: 80 13 01 00 [15:18:11]Write to MH i2c: E2 08 00 D2 2C 80 13 01 00 00 00 00 00 7B [15:18:11]Write i2c OK [15:18:11]MH_I2C_Read... [15:18:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:11]Read from MH i2c: E2 [15:18:11]MH_I2C_Read... [15:18:11]Read from MH i2c: E2 0E 00 [15:18:11]MH_I2C_Read... [15:18:11]Read from MH i2c: E2 0E 00 D2 2C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 FA [15:18:11]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:18:11]wFMCommunicate OK [15:18:11]SAM_PROTO_GetShiftState done [15:18:11]FM_GetShiftState done [15:18:11]req_shift_opened done [15:18:11]requested_item shift.open_date is exist - process it [15:18:11]req_shift_open_date [15:18:11]req_shift_open_date done [15:18:11]produce_requested_data done [15:18:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187084,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:18:11]process_action_free close_receipt [15:18:11]json_value_free [15:18:11]json_value_free done [15:18:11]process_json_proto returns [15:18:11]Send response to host [15:18:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187084,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:18:11]free response buf [15:18:11]execute_script done [15:18:11]execute_script returns [15:18:11]free content buf [15:18:11]Sock 9.Close socket [15:18:11]Sock 9.Thread stoped [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:26]accept exits with 7 [15:19:26]New connection [15:19:26]New thread 3067022692 created [15:19:26]Thread 3066879332 joined [15:19:26]Waiting for new connection... [15:19:26] Sock 7.Parse request [15:19:26]Sock 7.Check first char [15:19:26]Sock 7.First char is OK [15:19:26]request: POST /json_proto HTTP/1.0 [15:19:26]Method: POST [15:19:26]URL: /json_proto [15:19:26]Method is POST - this is cgi request [15:19:26]url: /json_proto [15:19:26]query_string will be loaded in cgi processing [15:19:26]execute_cgi json_proto POST (null) [15:19:26]execute_cgi path=json_proto method=POST [15:19:26]POST find Content-Length [15:19:26]Host: 172.17.46.131:8080 [15:19:26]Content-Length: 677 [15:19:26]Content-Type: application/json [15:19:26] [15:19:26]POST finish read [15:19:26]Found Content-Length = 677 [15:19:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412237", "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" ] } } [15:19:26]execute_script... [15:19: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)412237", "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" ] } } [15:19:26]POST & json_proto [15:19:26]process_json_proto [15:19:26]json parsed OK: [15:19:26]protocol is kg_v1.0 [15:19:26]action value=close_receipt [15:19:26]process_action close_receipt [15:19:26]cmd_close_receipt [15:19:26]MH_GetDate [15:19:26]Write to MH i2c: F0 00 00 D3 2C EE [15:19:26]Write i2c OK [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: F0 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: F0 09 00 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: F0 09 00 D3 2C 00 82 F6 B5 67 7E 41 4F 65 FE [15:19:26]GetLastDocTimeStamp 1739978291 [15:19:26]current date 1739978370 [15:19:26]FM_GetShiftState [15:19:26]SAM_PROTO_GetShiftState [15:19:26]wFMCommunicate request_size=4 [15:19:26]MH_SAM_APDU [15:19:26]CAPDU: 80 13 01 00 [15:19:26]Write to MH i2c: E2 08 00 D4 2C 80 13 01 00 00 00 00 00 7D [15:19:26]Write i2c OK [15:19:26]MH_I2C_Read... [15:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:26]Read from MH i2c: E2 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: E2 0E 00 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: E2 0E 00 D4 2C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 FC [15:19:26]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:19:26]wFMCommunicate OK [15:19:26]SAM_PROTO_GetShiftState done [15:19:26]FM_GetShiftState done [15:19:26]opened in 1739929631 [15:19:26]opened+sec_in_day 1740016031 [15:19:26]quantity*price = 50011 [15:19:26]sum+1 = 50013 [15:19:26]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 СНО: Общий режим Чек 151 19.02.2025 15:19 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187085 ФПД: 216006457353805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T151930&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187085&fm=216006457353805&tin=02508201610067®Number=0000000000091857&sum=50000 [15:19:27]StoreToDocumentArchive [15:19:27]shift 647 fd 187085 [15:19:27]save to /storage/0647/doc_00187085 [15:19:27]save last doc name /storage/0647/doc_00187085 to /storage/kkm_last_doc_name [15:19:27]save OK [15:19:27]Clear old archive folders... [15:19:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:19:27]tlvbuf is 0065DD40 [15:19:27]SAM_PROTO_ClearQueue [15:19:27]wFMCommunicate request_size=4 [15:19:27]MH_SAM_APDU [15:19:27]CAPDU: 80 09 00 00 [15:19:27]Write to MH i2c: E2 08 00 E1 2C 80 09 00 00 00 00 00 00 7F [15:19:27]Write i2c OK [15:19:27]MH_I2C_Read... [15:19:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:27]Read from MH i2c: E2 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: E2 03 00 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: E2 03 00 E1 2C 00 90 00 81 [15:19:27]RAPDU: 90 00 [15:19:27]wFMCommunicate OK [15:19:27]SAM_PROTO_ClearQueue done [15:19:27]KKMCreateOFDPacket [15:19:27]OFDProtocolAddRootSTLVToBuf [15:19:27]FM_MakeSignedData [15:19:27]FM_MakeSignedData [15:19:27]SAM_PROTO_SignData [15:19:27]wFMCommunicate request_size=4 [15:19:27]MH_SAM_APDU [15:19:27]CAPDU: 80 0D 01 02 [15:19:27]Write to MH i2c: E2 08 00 E2 2C 80 0D 01 02 00 00 00 00 87 [15:19:27]Write i2c OK [15:19:27]MH_I2C_Read... [15:19:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:27]Read from MH i2c: E2 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: E2 03 00 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: E2 03 00 E2 2C 00 90 00 82 [15:19:27]RAPDU: 90 00 [15:19:27]wFMCommunicate OK [15:19:27]wFMCommunicate request_size=255 [15:19:27]MH_SAM_APDU [15:19: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 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 97 00 00 00 F4 03 04 00 82 F6 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 CD DA 02 00 35 04 06 00 C4 [15:19:27]Write to MH i2c: E2 02 01 E3 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 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 97 00 00 00 F4 03 04 00 82 F6 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 CD DA 02 00 35 04 06 00 C4 00 00 41 [15:19:27]Write i2c OK [15:19:27]MH_I2C_Read... [15:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:28]Read from MH i2c: E2 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 03 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 03 00 E3 2C 00 90 00 83 [15:19:28]RAPDU: 90 00 [15:19:28]wFMCommunicate OK [15:19:28]wFMCommunicate request_size=10 [15:19:28]MH_SAM_APDU [15:19:28]CAPDU: 80 0D 02 02 05 74 EC 28 E6 4D [15:19:28]Write to MH i2c: E2 0D 00 E4 2C 80 0D 02 02 05 00 74 EC 28 E6 4D 00 00 4F [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:28]Read from MH i2c: E2 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 03 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 03 00 E4 2C 00 90 00 84 [15:19:28]RAPDU: 90 00 [15:19:28]wFMCommunicate OK [15:19:28]wFMCommunicate request_size=4 [15:19:28]MH_SAM_APDU [15:19:28]CAPDU: 80 0D 03 02 [15:19:28]Write to MH i2c: E2 08 00 E5 2C 80 0D 03 02 00 00 00 00 8C [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:28]Read from MH i2c: E2 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 0B 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 0B 00 E5 2C 00 19 94 B2 0F B3 AD 56 A2 90 00 53 [15:19:28]RAPDU: 19 94 B2 0F B3 AD 56 A2 90 00 [15:19:28]wFMCommunicate OK [15:19:28]SAM_PROTO_SignData done [15:19:28]FM_MakeSignedData done [15:19:28]CreateOFDProtocolMessage [15:19:28]wFMCommunicate request_size=4 [15:19:28]MH_SAM_APDU [15:19:28]CAPDU: 80 11 00 00 [15:19:28]Write to MH i2c: E2 08 00 E6 2C 80 11 00 00 00 00 00 00 8C [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:28]Read from MH i2c: E2 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 17 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 17 00 E6 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DF [15:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:19:28]wFMCommunicate OK [15:19:28]CreateOFDProtocolMessage done [15:19:28]OFDSenderStorePacket 187085 [15:19:28]StoreOFDPacket docnum=187085 [15:19: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 0F 01 00 00 36 A2 07 01 2B 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 97 00 00 00 F4 03 04 00 82 F6 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 CD DA 02 00 35 04 06 00 C4 74 EC 28 E6 4D 19 94 B2 0F B3 AD 56 A2 [15:19:28]CheckFolder [15:19:28]dirname=/storage/ofd_packets [15:19:28]CheckFolder done [15:19:28]ProducePacketName [15:19:28]name=ofd_packets/00187085 [15:19:28]NVStorageSaveData ofd_packets/00187085 [15:19:28]File name is /storage/ofd_packets/00187085 [15:19:28]Write 301 bytes [15:19:28]NVStorageSaveData done [15:19:28]OFDSenderStorePacket done [15:19:28]KKMCreateOFDPacket done [15:19:28]NVStorageSaveData kkm_last_timestamp [15:19:28]File name is /storage/kkm_last_timestamp [15:19:28]Write 4 bytes [15:19:28]OFD Sender: Processing packet 187085 [packets to send 49, broken 48] [15:19:28]ProducePacketName [15:19:28]name=ofd_packets/00187085 [15:19:28]OFD Sender: To server: pG, [15:19:28]CommunicateWithHost lk.salyk.kg:30040 [15:19:28]ConnectInit lk.salyk.kg [15:19:28]NVStorageSaveData done [15:19:28]ExternCall_PrintAddStr [15:19:28]wPrintStart [15:19:28]Write to MH i2c: 01 00 00 E7 2C 13 [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: 01 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: 01 07 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: 01 07 00 E7 2C 00 00 00 00 00 FF 0F 28 [15:19:28]RasterBufferAndPrint [15:19:28]line Счет N : (1)412237 [15:19:28]line ИНН: 02508201610067 [15:19:28]line Контрольно-Кассовый Чек [15:19:28]line ПРОДАЖА [15:19:28]line ТРК (МРК, ГНК) : 22 [15:19:28]line Товар: 2710124130 [15:19:28]line Аи-92-К-2 [15:19:28]line 7.790 * 64.20 [15:19:28]line = 500.12 [15:19:28]line НДС 12% НСП 1% [15:19:28]line > о реализуемом товаре [15:19:28]line ОКРУГЛЕНИЕ: -0.12 [15:19:28]line ИТОГО: 500.00 [15:19:28]line Внесено: 500.00 [15:19:28]line СДАЧА: 0.00 [15:19:28]line НСП 1% : 4.43 [15:19:28]line НДС 12% : 53.11 [15:19:28]line Наличными: 500.00 [15:19:28]line Безнал.: 0.00 [15:19:28]line Место: АЗС № 92 "Партнер Нефть" [15:19:28]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:19:28]line СНО: Общий режим [15:19:28]line Чек 151 19.02.2025 15:19 [15:19:28]line Смена: 647 ФФД: 1.0 [15:19:28]line ЗНМ: 0300000118 [15:19:28]line РНМ: 0000000000091857 [15:19:28]line Версия ККМ: 001 [15:19:28]line ФМ: 0000000000871826 [15:19:28]line ФД: 187085 [15:19:28]line ФПД: 216006457353805 [15:19:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T151930&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187085&fm=216006457353805&tin=02508201610067®Number=0000000000091857&sum=50000 [15:19:28]Connected sock=11 [15:19: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 36 A2 07 01 2B 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 97 00 00 00 F4 03 04 00 82 F6 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 CD DA 02 00 35 04 06 00 C4 74 EC 28 E6 4D 19 94 B2 0F B3 AD 56 A2 [15:19:28]written 0, free lines is 4095 [15:19: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 E7 52 47 00 5F 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 CD DA 02 00 F4 03 04 00 D6 9C B5 67 B6 04 01 00 00 79 7A 07 F1 62 15 5A 56 [15:19:28]CommunicateWithHost err = 0 [15:19:28]CheckOFDResponse [15:19:28]1017 (14) - 77093643461234 [15:19:28]1041 (16) - 0000000000871826 [15:19:28]1040 (4) - 187085 [15:19:28]1012 (4) - 19.02.2025 08:56 [15:19:28]1206 (1) - 0 [15:19:28]OFD Sender: Remove packet 187085 [15:19:28]ProducePacketName [15:19:28]name=ofd_packets/00187085 [15:19:28]NVStorageDeleteData [15:19:28]Write to MH i2c: 01 00 00 12 2D 3F [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: 01 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: 01 07 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: 01 07 00 12 2D 00 00 00 00 00 E4 0C 36 [15:19:28]RasterBufferAndPrint [15:19:28]line [15:19:28]line [15:19:28]line [15:19:28]line [15:19:28]line [15:19:28]written 0, free lines is 3306 [15:19:28]MH_Cut [15:19:28]Write to MH i2c: D1 01 00 19 2D 01 18 [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: D1 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: D1 01 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: D1 01 00 19 2D 00 17 [15:19:28]Write to MH i2c: 01 00 00 1A 2D 47 [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:29]OFD Sender: No OFD packet to send [15:19:29]*** Cut start [15:19:29]*** Partial cut [15:19:29]*** CUTSNS_PIN = 1 [15:19:29]*** CUTSNS_PIN = 0 [15:19:30]*** Brake cut motor [15:19:30]Read from MH i2c: 01 [15:19:30]MH_I2C_Read... [15:19:30]*** Stop cut motor [15:19:30]*** Cut end [15:19:30]Read from MH i2c: 01 07 00 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: 01 07 00 1A 2D 00 00 00 00 00 FF 0F 5C [15:19:30]process_action close_receipt done [15:19:30]requested_data is exist [15:19:30]produce_requested_data [15:19:30]requested_item fm.sn is exist - process it [15:19:30]wFMCommunicate request_size=4 [15:19:30]MH_SAM_APDU [15:19:30]CAPDU: 80 11 00 00 [15:19:30]Write to MH i2c: E2 08 00 1B 2D 80 11 00 00 00 00 00 00 C2 [15:19:30]Write i2c OK [15:19:30]MH_I2C_Read... [15:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:30]Read from MH i2c: E2 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 17 00 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 17 00 1B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 15 [15:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:19:30]wFMCommunicate OK [15:19:30]requested_item fd.num is exist - process it [15:19:30]SAM_PROTO_GetFieldsCounters [15:19:30]wFMCommunicate request_size=4 [15:19:30]MH_SAM_APDU [15:19:30]CAPDU: 80 13 00 00 [15:19:30]Write to MH i2c: E2 08 00 1C 2D 80 13 00 00 00 00 00 00 C5 [15:19:30]Write i2c OK [15:19:30]MH_I2C_Read... [15:19:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:30]Read from MH i2c: E2 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 62 00 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 62 00 1C 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 CD DA 02 00 0E 04 04 00 87 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 E2 [15:19: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 CD DA 02 00 0E 04 04 00 87 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 [15:19:30]wFMCommunicate OK [15:19:30]SAM_PROTO_GetFieldsCounters done [15:19:30]requested_item shift.num is exist - process it [15:19:30]requested_item shift.opened is exist - process it [15:19:30]req_shift_opened [15:19:30]FM_GetShiftState [15:19:30]SAM_PROTO_GetShiftState [15:19:30]wFMCommunicate request_size=4 [15:19:30]MH_SAM_APDU [15:19:30]CAPDU: 80 13 01 00 [15:19:30]Write to MH i2c: E2 08 00 1D 2D 80 13 01 00 00 00 00 00 C7 [15:19:30]Write i2c OK [15:19:30]MH_I2C_Read... [15:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:30]Read from MH i2c: E2 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 0E 00 [15:19:30]MH_I2C_Read... [15:19:30]Read from MH i2c: E2 0E 00 1D 2D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 46 [15:19:30]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:19:30]wFMCommunicate OK [15:19:30]SAM_PROTO_GetShiftState done [15:19:30]FM_GetShiftState done [15:19:30]req_shift_opened done [15:19:30]requested_item shift.open_date is exist - process it [15:19:30]req_shift_open_date [15:19:30]req_shift_open_date done [15:19:30]produce_requested_data done [15:19:30]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187085,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:19:30]process_action_free close_receipt [15:19:30]json_value_free [15:19:30]json_value_free done [15:19:30]process_json_proto returns [15:19:30]Send response to host [15:19:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187085,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:19:30]free response buf [15:19:30]execute_script done [15:19:30]execute_script returns [15:19:30]free content buf [15:19:30]Sock 7.Close socket [15:19:30]Sock 7.Thread stoped [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:16]accept exits with 9 [15:20:16]New connection [15:20:16]New thread 3066879332 created [15:20:16]Thread 3067022692 joined [15:20:16]Waiting for new connection... [15:20:16] Sock 9.Parse request [15:20:16]Sock 9.Check first char [15:20:16]Sock 9.First char is OK [15:20:16]request: POST /json_proto HTTP/1.0 [15:20:16]Method: POST [15:20:16]URL: /json_proto [15:20:16]Method is POST - this is cgi request [15:20:16]url: /json_proto [15:20:16]query_string will be loaded in cgi processing [15:20:16]execute_cgi json_proto POST (null) [15:20:16]execute_cgi path=json_proto method=POST [15:20:16]POST find Content-Length [15:20:16]Host: 172.17.46.131:8080 [15:20:16]Content-Length: 754 [15:20:16]Content-Type: application/json [15:20:16] [15:20:16]POST finish read [15:20:16]Found Content-Length = 754 [15:20:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412236", "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" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30136578", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:16]execute_script... [15:20:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412236", "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" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30136578", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:16]POST & json_proto [15:20:16]process_json_proto [15:20:16]json parsed OK: [15:20:16]protocol is kg_v1.0 [15:20:16]action value=close_receipt [15:20:16]process_action close_receipt [15:20:16]cmd_close_receipt [15:20:16]MH_GetDate [15:20:16]Write to MH i2c: F0 00 00 1E 2D 3A [15:20:16]Write i2c OK [15:20:16]MH_I2C_Read... [15:20:16]Read from MH i2c: F0 [15:20:16]MH_I2C_Read... [15:20:16]Read from MH i2c: F0 09 00 [15:20:16]MH_I2C_Read... [15:20:16]Read from MH i2c: F0 09 00 1E 2D 00 B4 F6 B5 67 7E 41 4F 65 7C [15:20:16]GetLastDocTimeStamp 1739978370 [15:20:16]current date 1739978420 [15:20:16]FM_GetShiftState [15:20:16]SAM_PROTO_GetShiftState [15:20:16]wFMCommunicate request_size=4 [15:20:16]MH_SAM_APDU [15:20:16]CAPDU: 80 13 01 00 [15:20:16]Write to MH i2c: E2 08 00 1F 2D 80 13 01 00 00 00 00 00 C9 [15:20:16]Write i2c OK [15:20:16]MH_I2C_Read... [15:20:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:16]Read from MH i2c: E2 [15:20:16]MH_I2C_Read... [15:20:16]Read from MH i2c: E2 0E 00 [15:20:16]MH_I2C_Read... [15:20:16]Read from MH i2c: E2 0E 00 1F 2D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 48 [15:20:16]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:20:16]wFMCommunicate OK [15:20:16]SAM_PROTO_GetShiftState done [15:20:16]FM_GetShiftState done [15:20:16]opened in 1739929631 [15:20:16]opened+sec_in_day 1740016031 [15:20:16]quantity*price = 0 [15:20:16]sum+1 = 1 [15:20:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 152 19.02.2025 15:20 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30136578 ФМ: 0000000000871826 ФД: 187086 ФПД: 213499336086047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T152020&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187086&fm=213499336086047&tin=02508201610067®Number=0000000000091857&sum=0 [15:20:18]StoreToDocumentArchive [15:20:18]shift 647 fd 187086 [15:20:18]save to /storage/0647/doc_00187086 [15:20:18]save last doc name /storage/0647/doc_00187086 to /storage/kkm_last_doc_name [15:20:18]save OK [15:20:18]Clear old archive folders... [15:20:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:20:18]tlvbuf is B6F69230 [15:20:18]SAM_PROTO_ClearQueue [15:20:18]wFMCommunicate request_size=4 [15:20:18]MH_SAM_APDU [15:20:18]CAPDU: 80 09 00 00 [15:20:18]Write to MH i2c: E2 08 00 2C 2D 80 09 00 00 00 00 00 00 CB [15:20:18]Write i2c OK [15:20:18]MH_I2C_Read... [15:20:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:18]Read from MH i2c: E2 [15:20:18]MH_I2C_Read... [15:20:18]Read from MH i2c: E2 03 00 [15:20:18]MH_I2C_Read... [15:20:18]Read from MH i2c: E2 03 00 2C 2D 00 90 00 CD [15:20:18]RAPDU: 90 00 [15:20:18]wFMCommunicate OK [15:20:18]SAM_PROTO_ClearQueue done [15:20:18]KKMCreateOFDPacket [15:20:18]OFDProtocolAddRootSTLVToBuf [15:20:18]FM_MakeSignedData [15:20:18]FM_MakeSignedData [15:20:18]SAM_PROTO_SignData [15:20:18]wFMCommunicate request_size=4 [15:20:18]MH_SAM_APDU [15:20:18]CAPDU: 80 0D 01 02 [15:20:18]Write to MH i2c: E2 08 00 2D 2D 80 0D 01 02 00 00 00 00 D3 [15:20:18]Write i2c OK [15:20:18]MH_I2C_Read... [15:20:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:18]Read from MH i2c: E2 [15:20:18]MH_I2C_Read... [15:20:18]Read from MH i2c: E2 03 00 [15:20:18]MH_I2C_Read... [15:20:18]Read from MH i2c: E2 03 00 2D 2D 00 90 00 CE [15:20:18]RAPDU: 90 00 [15:20:18]wFMCommunicate OK [15:20:18]wFMCommunicate request_size=255 [15:20:18]MH_SAM_APDU [15:20: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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 B4 F6 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 CE DA 02 00 35 04 06 00 C2 [15:20:18]Write to MH i2c: E2 02 01 2E 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 B4 F6 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 CE DA 02 00 35 04 06 00 C2 00 00 04 [15:20:18]Write i2c OK [15:20:18]MH_I2C_Read... [15:20:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:18]Read from MH i2c: E2 [15:20:18]MH_I2C_Read... [15:20:18]Read from MH i2c: E2 03 00 [15:20:18]MH_I2C_Read... [15:20:18]Read from MH i2c: E2 03 00 2E 2D 00 90 00 CF [15:20:18]RAPDU: 90 00 [15:20:18]wFMCommunicate OK [15:20:18]wFMCommunicate request_size=10 [15:20:18]MH_SAM_APDU [15:20:18]CAPDU: 80 0D 02 02 05 2D 30 16 52 1F [15:20:18]Write to MH i2c: E2 0D 00 2F 2D 80 0D 02 02 05 00 2D 30 16 52 1F 00 00 C4 [15:20:18]Write i2c OK [15:20:18]MH_I2C_Read... [15:20:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:18]Read from MH i2c: E2 [15:20:18]MH_I2C_Read... [15:20:18]Read from MH i2c: E2 03 00 [15:20:18]MH_I2C_Read... [15:20:18]Read from MH i2c: E2 03 00 2F 2D 00 90 00 D0 [15:20:18]RAPDU: 90 00 [15:20:18]wFMCommunicate OK [15:20:18]wFMCommunicate request_size=4 [15:20:18]MH_SAM_APDU [15:20:18]CAPDU: 80 0D 03 02 [15:20:18]Write to MH i2c: E2 08 00 30 2D 80 0D 03 02 00 00 00 00 D8 [15:20:18]Write i2c OK [15:20:18]MH_I2C_Read... [15:20:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:18]Read from MH i2c: E2 [15:20:18]MH_I2C_Read... [15:20:18]Read from MH i2c: E2 0B 00 [15:20:18]MH_I2C_Read... [15:20:18]Read from MH i2c: E2 0B 00 30 2D 00 56 09 FC 54 A7 61 AD B7 90 00 F4 [15:20:18]RAPDU: 56 09 FC 54 A7 61 AD B7 90 00 [15:20:18]wFMCommunicate OK [15:20:18]SAM_PROTO_SignData done [15:20:18]FM_MakeSignedData done [15:20:18]CreateOFDProtocolMessage [15:20:18]wFMCommunicate request_size=4 [15:20:18]MH_SAM_APDU [15:20:18]CAPDU: 80 11 00 00 [15:20:18]Write to MH i2c: E2 08 00 31 2D 80 11 00 00 00 00 00 00 D8 [15:20:18]Write i2c OK [15:20:18]MH_I2C_Read... [15:20:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:18]Read from MH i2c: E2 [15:20:18]MH_I2C_Read... [15:20:18]Read from MH i2c: E2 17 00 [15:20:18]MH_I2C_Read... [15:20:18]Read from MH i2c: E2 17 00 31 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2B [15:20: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:20:18]wFMCommunicate OK [15:20:18]CreateOFDProtocolMessage done [15:20:18]OFDSenderStorePacket 187086 [15:20:18]StoreOFDPacket docnum=187086 [15:20: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 76 7B 07 01 6C C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 B4 F6 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 CE DA 02 00 35 04 06 00 C2 2D 30 16 52 1F 56 09 FC 54 A7 61 AD B7 [15:20:18]CheckFolder [15:20:18]dirname=/storage/ofd_packets [15:20:18]CheckFolder done [15:20:18]ProducePacketName [15:20:18]name=ofd_packets/00187086 [15:20:18]NVStorageSaveData ofd_packets/00187086 [15:20:18]File name is /storage/ofd_packets/00187086 [15:20:18]Write 301 bytes [15:20:18]NVStorageSaveData done [15:20:18]OFDSenderStorePacket done [15:20:18]KKMCreateOFDPacket done [15:20:18]NVStorageSaveData kkm_last_timestamp [15:20:18]File name is /storage/kkm_last_timestamp [15:20:18]Write 4 bytes [15:20:18]NVStorageSaveData done [15:20:18]ExternCall_PrintAddStr [15:20:18]wPrintStart [15:20:18]Write to MH i2c: 01 00 00 32 2D 5F [15:20:18]Write i2c OK [15:20:18]MH_I2C_Read... [15:20:18]Read from MH i2c: 01 [15:20:18]MH_I2C_Read... [15:20:18]Read from MH i2c: 01 07 00 [15:20:18]MH_I2C_Read... [15:20:18]Read from MH i2c: 01 07 00 32 2D 00 00 00 00 00 FF 0F 74 [15:20:18]RasterBufferAndPrint [15:20:18]line Счет N : (1)412236 [15:20:18]line ИНН: 02508201610067 [15:20:18]line Контрольно-Кассовый Чек [15:20:18]line ПРОДАЖА [15:20:18]line ТРК (МРК, ГНК) : 42 [15:20:18]line Товар: 2710124130 [15:20:18]line Аи-92-К-2 [15:20:18]line 15.000 * 0.00 [15:20:18]line = 0.00 [15:20:18]line НДС 12% НСП 1% [15:20:18]line > о реализуемом товаре [15:20:18]line ИТОГО: 0.00 [15:20:18]line НСП 1% : 0.00 [15:20:18]line НДС 12% : 0.00 [15:20:18]line Наличными: 0.00 [15:20:18]line Безнал.: 0.00 [15:20:18]line Место: АЗС № 92 "Партнер Нефть" [15:20:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:20:18]line СНО: Общий режим [15:20:18]line Чек 152 19.02.2025 15:20 [15:20:18]line Смена: 647 ФФД: 1.0 [15:20:18]line ЗНМ: 0300000118 [15:20:18]line РНМ: 0000000000091857 [15:20:18]line Версия ККМ: 001 [15:20:18]line Талоны: ТК ГПНА Online [15:20:18]line 30136578 [15:20:18]line ФМ: 0000000000871826 [15:20:18]line ФД: 187086 [15:20:18]line ФПД: 213499336086047 [15:20:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T152020&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187086&fm=213499336086047&tin=02508201610067®Number=0000000000091857&sum=0 [15:20:18]OFD Sender: Processing packet 187086 [packets to send 49, broken 48] [15:20:18]ProducePacketName [15:20:18]name=ofd_packets/00187086 [15:20:18]OFD Sender: To server: pG, [15:20:18]CommunicateWithHost lk.salyk.kg:30040 [15:20:18]ConnectInit lk.salyk.kg [15:20:18]written 0, free lines is 4095 [15:20:19]Connected sock=10 [15:20: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 76 7B 07 01 6C C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 B4 F6 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 CE DA 02 00 35 04 06 00 C2 2D 30 16 52 1F 56 09 FC 54 A7 61 AD B7 [15:20: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 1C 0A 47 00 20 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 CE DA 02 00 F4 03 04 00 08 9D B5 67 B6 04 01 00 00 E7 A7 E6 58 D5 AF 56 C6 [15:20:19]CommunicateWithHost err = 0 [15:20:19]CheckOFDResponse [15:20:19]1017 (14) - 77093643461234 [15:20:19]1041 (16) - 0000000000871826 [15:20:19]1040 (4) - 187086 [15:20:19]1012 (4) - 19.02.2025 08:57 [15:20:19]1206 (1) - 0 [15:20:19]OFD Sender: Remove packet 187086 [15:20:19]ProducePacketName [15:20:19]name=ofd_packets/00187086 [15:20:19]NVStorageDeleteData [15:20:19]Write to MH i2c: 01 00 00 5C 2D 89 [15:20:19]Write i2c OK [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: 01 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: 01 07 00 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: 01 07 00 5C 2D 00 00 00 00 00 FF 0C 9B [15:20:19]RasterBufferAndPrint [15:20:19]line [15:20:19]line [15:20:19]line [15:20:19]line [15:20:19]line [15:20:19]written 0, free lines is 3333 [15:20:19]MH_Cut [15:20:19]Write to MH i2c: D1 01 00 63 2D 01 62 [15:20:19]Write i2c OK [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: D1 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: D1 01 00 [15:20:19]MH_I2C_Read... [15:20:19]Read from MH i2c: D1 01 00 63 2D 00 61 [15:20:19]Write to MH i2c: 01 00 00 64 2D 91 [15:20:19]Write i2c OK [15:20:19]MH_I2C_Read... [15:20:19]OFD Sender: No OFD packet to send [15:20:19]*** Cut start [15:20:19]*** Partial cut [15:20:19]*** CUTSNS_PIN = 1 [15:20:20]*** CUTSNS_PIN = 0 [15:20:20]*** Brake cut motor [15:20:20]Read from MH i2c: 01 [15:20:20]MH_I2C_Read... [15:20:20]*** Stop cut motor [15:20:20]*** Cut end [15:20:20]Read from MH i2c: 01 07 00 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: 01 07 00 64 2D 00 00 00 00 00 FF 0F A6 [15:20:20]process_action close_receipt done [15:20:20]requested_data is exist [15:20:20]produce_requested_data [15:20:20]requested_item fm.sn is exist - process it [15:20:20]wFMCommunicate request_size=4 [15:20:20]MH_SAM_APDU [15:20:20]CAPDU: 80 11 00 00 [15:20:20]Write to MH i2c: E2 08 00 65 2D 80 11 00 00 00 00 00 00 0C [15:20:20]Write i2c OK [15:20:20]MH_I2C_Read... [15:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:20]Read from MH i2c: E2 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: E2 17 00 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: E2 17 00 65 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5F [15:20:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:20:20]wFMCommunicate OK [15:20:20]requested_item fd.num is exist - process it [15:20:20]SAM_PROTO_GetFieldsCounters [15:20:20]wFMCommunicate request_size=4 [15:20:20]MH_SAM_APDU [15:20:20]CAPDU: 80 13 00 00 [15:20:20]Write to MH i2c: E2 08 00 66 2D 80 13 00 00 00 00 00 00 0F [15:20:20]Write i2c OK [15:20:20]MH_I2C_Read... [15:20:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:20]Read from MH i2c: E2 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: E2 62 00 [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: E2 62 00 66 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 CE DA 02 00 0E 04 04 00 87 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 30 [15:20:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [15:20:20]wFMCommunicate OK [15:20:20]SAM_PROTO_GetFieldsCounters done [15:20:20]requested_item shift.num is exist - process it [15:20:20]requested_item shift.opened is exist - process it [15:20:20]req_shift_opened [15:20:20]FM_GetShiftState [15:20:20]SAM_PROTO_GetShiftState [15:20:20]wFMCommunicate request_size=4 [15:20:20]MH_SAM_APDU [15:20:20]CAPDU: 80 13 01 00 [15:20:20]Write to MH i2c: E2 08 00 67 2D 80 13 01 00 00 00 00 00 11 [15:20:20]Write i2c OK [15:20:20]MH_I2C_Read... [15:20:20]Read from MH i2c: E2 [15:20:20]MH_I2C_Read... [15:20:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:21]Read from MH i2c: E2 0E 00 [15:20:21]MH_I2C_Read... [15:20:21]Read from MH i2c: E2 0E 00 67 2D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 90 [15:20:21]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:20:21]wFMCommunicate OK [15:20:21]SAM_PROTO_GetShiftState done [15:20:21]FM_GetShiftState done [15:20:21]req_shift_opened done [15:20:21]requested_item shift.open_date is exist - process it [15:20:21]req_shift_open_date [15:20:21]req_shift_open_date done [15:20:21]produce_requested_data done [15:20:21]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187086,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:20:21]process_action_free close_receipt [15:20:21]json_value_free [15:20:21]json_value_free done [15:20:21]process_json_proto returns [15:20:21]Send response to host [15:20:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187086,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:20:21]free response buf [15:20:21]execute_script done [15:20:21]execute_script returns [15:20:21]free content buf [15:20:21]Sock 9.Close socket [15:20:21]Sock 9.Thread stoped [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:53]accept exits with 7 [15:22:53]New connection [15:22:53]New thread 3067022692 created [15:22:53]Thread 3066879332 joined [15:22:53]Waiting for new connection... [15:22:53] Sock 7.Parse request [15:22:53]Sock 7.Check first char [15:22:53]Sock 7.First char is OK [15:22:53]request: POST /json_proto HTTP/1.0 [15:22:53]Method: POST [15:22:53]URL: /json_proto [15:22:53]Method is POST - this is cgi request [15:22:53]url: /json_proto [15:22:53]query_string will be loaded in cgi processing [15:22:53]execute_cgi json_proto POST (null) [15:22:53]execute_cgi path=json_proto method=POST [15:22:53]POST find Content-Length [15:22:53]Host: 172.17.46.131:8080 [15:22:53]Content-Length: 677 [15:22:53]Content-Type: application/json [15:22:53] [15:22:53]POST finish read [15:22:53]Found Content-Length = 677 [15:22:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412239", "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" : 5.920, "sum" : 380.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:53]execute_script... [15:22: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)412239", "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" : 5.920, "sum" : 380.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:53]POST & json_proto [15:22:53]process_json_proto [15:22:53]json parsed OK: [15:22:53]protocol is kg_v1.0 [15:22:53]action value=close_receipt [15:22:53]process_action close_receipt [15:22:53]cmd_close_receipt [15:22:53]MH_GetDate [15:22:53]Write to MH i2c: F0 00 00 68 2D 84 [15:22:53]Write i2c OK [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: F0 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: F0 09 00 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: F0 09 00 68 2D 00 51 F7 B5 67 7E 41 4F 65 64 [15:22:53]GetLastDocTimeStamp 1739978420 [15:22:53]current date 1739978577 [15:22:53]FM_GetShiftState [15:22:53]SAM_PROTO_GetShiftState [15:22:53]wFMCommunicate request_size=4 [15:22:53]MH_SAM_APDU [15:22:53]CAPDU: 80 13 01 00 [15:22:53]Write to MH i2c: E2 08 00 69 2D 80 13 01 00 00 00 00 00 13 [15:22:53]Write i2c OK [15:22:53]MH_I2C_Read... [15:22:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:53]Read from MH i2c: E2 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 0E 00 [15:22:53]MH_I2C_Read... [15:22:53]Read from MH i2c: E2 0E 00 69 2D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 92 [15:22:53]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:22:53]wFMCommunicate OK [15:22:53]SAM_PROTO_GetShiftState done [15:22:53]FM_GetShiftState done [15:22:53]opened in 1739929631 [15:22:53]opened+sec_in_day 1740016031 [15:22:53]quantity*price = 38006 [15:22:53]sum+1 = 38007 [15:22:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 380.00 Внесено: 380.00 СДАЧА: 0.00 НСП 1% : 3.36 НДС 12% : 40.36 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 153 19.02.2025 15:22 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187087 ФПД: 70745520176618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T152257&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187087&fm=70745520176618&tin=02508201610067®Number=0000000000091857&sum=38000 [15:22:54]StoreToDocumentArchive [15:22:54]shift 647 fd 187087 [15:22:54]save to /storage/0647/doc_00187087 [15:22:54]save last doc name /storage/0647/doc_00187087 to /storage/kkm_last_doc_name [15:22:54]save OK [15:22:54]Clear old archive folders... [15:22:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:22:54]tlvbuf is 005CCE30 [15:22:54]SAM_PROTO_ClearQueue [15:22:54]wFMCommunicate request_size=4 [15:22:54]MH_SAM_APDU [15:22:54]CAPDU: 80 09 00 00 [15:22:54]Write to MH i2c: E2 08 00 76 2D 80 09 00 00 00 00 00 00 15 [15:22:54]Write i2c OK [15:22:54]MH_I2C_Read... [15:22:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:54]Read from MH i2c: E2 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: E2 03 00 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: E2 03 00 76 2D 00 90 00 17 [15:22:54]RAPDU: 90 00 [15:22:54]wFMCommunicate OK [15:22:54]SAM_PROTO_ClearQueue done [15:22:54]KKMCreateOFDPacket [15:22:54]OFDProtocolAddRootSTLVToBuf [15:22:54]FM_MakeSignedData [15:22:54]FM_MakeSignedData [15:22:54]SAM_PROTO_SignData [15:22:54]wFMCommunicate request_size=4 [15:22:54]MH_SAM_APDU [15:22:54]CAPDU: 80 0D 01 02 [15:22:54]Write to MH i2c: E2 08 00 77 2D 80 0D 01 02 00 00 00 00 1D [15:22:54]Write i2c OK [15:22:54]MH_I2C_Read... [15:22:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:54]Read from MH i2c: E2 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: E2 03 00 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: E2 03 00 77 2D 00 90 00 18 [15:22:54]RAPDU: 90 00 [15:22:54]wFMCommunicate OK [15:22:54]wFMCommunicate request_size=255 [15:22:54]MH_SAM_APDU [15:22: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 20 17 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 76 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 51 F7 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 CF DA 02 00 35 04 06 00 40 [15:22:54]Write to MH i2c: E2 02 01 78 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 20 17 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 76 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 51 F7 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 CF DA 02 00 35 04 06 00 40 00 00 34 [15:22:54]Write i2c OK [15:22:54]MH_I2C_Read... [15:22:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:54]Read from MH i2c: E2 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: E2 03 00 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: E2 03 00 78 2D 00 90 00 19 [15:22:54]RAPDU: 90 00 [15:22:54]wFMCommunicate OK [15:22:54]wFMCommunicate request_size=10 [15:22:54]MH_SAM_APDU [15:22:54]CAPDU: 80 0D 02 02 05 57 B9 99 7D EA [15:22:54]Write to MH i2c: E2 0D 00 79 2D 80 0D 02 02 05 00 57 B9 99 7D EA 00 00 3A [15:22:54]Write i2c OK [15:22:54]MH_I2C_Read... [15:22:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:54]Read from MH i2c: E2 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: E2 03 00 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: E2 03 00 79 2D 00 90 00 1A [15:22:54]RAPDU: 90 00 [15:22:54]wFMCommunicate OK [15:22:54]wFMCommunicate request_size=4 [15:22:54]MH_SAM_APDU [15:22:54]CAPDU: 80 0D 03 02 [15:22:54]Write to MH i2c: E2 08 00 7A 2D 80 0D 03 02 00 00 00 00 22 [15:22:54]Write i2c OK [15:22:54]MH_I2C_Read... [15:22:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:54]Read from MH i2c: E2 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: E2 0B 00 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: E2 0B 00 7A 2D 00 26 40 D8 2E 49 EB 5D FF 90 00 1F [15:22:54]RAPDU: 26 40 D8 2E 49 EB 5D FF 90 00 [15:22:54]wFMCommunicate OK [15:22:54]SAM_PROTO_SignData done [15:22:54]FM_MakeSignedData done [15:22:54]CreateOFDProtocolMessage [15:22:54]wFMCommunicate request_size=4 [15:22:54]MH_SAM_APDU [15:22:54]CAPDU: 80 11 00 00 [15:22:54]Write to MH i2c: E2 08 00 7B 2D 80 11 00 00 00 00 00 00 22 [15:22:54]Write i2c OK [15:22:54]MH_I2C_Read... [15:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:54]Read from MH i2c: E2 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: E2 17 00 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: E2 17 00 7B 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 75 [15:22:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:22:54]wFMCommunicate OK [15:22:54]CreateOFDProtocolMessage done [15:22:54]OFDSenderStorePacket 187087 [15:22:54]StoreOFDPacket docnum=187087 [15:22: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 9F D3 07 01 3C 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 76 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 51 F7 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 CF DA 02 00 35 04 06 00 40 57 B9 99 7D EA 26 40 D8 2E 49 EB 5D FF [15:22:54]CheckFolder [15:22:54]dirname=/storage/ofd_packets [15:22:54]CheckFolder done [15:22:54]ProducePacketName [15:22:54]name=ofd_packets/00187087 [15:22:54]NVStorageSaveData ofd_packets/00187087 [15:22:54]File name is /storage/ofd_packets/00187087 [15:22:54]Write 301 bytes [15:22:54]NVStorageSaveData done [15:22:54]OFDSenderStorePacket done [15:22:54]KKMCreateOFDPacket done [15:22:54]NVStorageSaveData kkm_last_timestamp [15:22:54]File name is /storage/kkm_last_timestamp [15:22:54]Write 4 bytes [15:22:54]NVStorageSaveData done [15:22:54]ExternCall_PrintAddStr [15:22:54]wPrintStart [15:22:54]Write to MH i2c: 01 00 00 7C 2D A9 [15:22:54]Write i2c OK [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: 01 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: 01 07 00 [15:22:54]MH_I2C_Read... [15:22:54]Read from MH i2c: 01 07 00 7C 2D 00 00 00 00 00 FF 0F BE [15:22:54]RasterBufferAndPrint [15:22:54]line Счет N : (1)412239 [15:22:54]line ИНН: 02508201610067 [15:22:54]line Контрольно-Кассовый Чек [15:22:54]line ПРОДАЖА [15:22:54]line ТРК (МРК, ГНК) : 32 [15:22:54]line Товар: 2710124130 [15:22:54]line Аи-92-К-2 [15:22:54]line 5.920 * 64.20 [15:22:54]line = 380.06 [15:22:54]line НДС 12% НСП 1% [15:22:54]line > о реализуемом товаре [15:22:54]line ОКРУГЛЕНИЕ: -0.06 [15:22:54]line ИТОГО: 380.00 [15:22:54]line Внесено: 380.00 [15:22:54]line СДАЧА: 0.00 [15:22:54]line НСП 1% : 3.36 [15:22:54]line НДС 12% : 40.36 [15:22:54]line Наличными: 380.00 [15:22:54]line Безнал.: 0.00 [15:22:54]line Место: АЗС № 92 "Партнер Нефть" [15:22:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:22:54]line СНО: Общий режим [15:22:54]line Чек 153 19.02.2025 15:22 [15:22:54]line Смена: 647 ФФД: 1.0 [15:22:54]line ЗНМ: 0300000118 [15:22:54]line РНМ: 0000000000091857 [15:22:54]line Версия ККМ: 001 [15:22:54]line ФМ: 0000000000871826 [15:22:54]line ФД: 187087 [15:22:54]line ФПД: 70745520176618 [15:22:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T152257&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187087&fm=70745520176618&tin=02508201610067®Number=0000000000091857&sum=38000 [15:22:55]OFD Sender: Processing packet 187087 [packets to send 49, broken 48] [15:22:55]ProducePacketName [15:22:55]name=ofd_packets/00187087 [15:22:55]OFD Sender: To server: pG, [15:22:55]CommunicateWithHost lk.salyk.kg:30040 [15:22:55]ConnectInit lk.salyk.kg [15:22:55]written 0, free lines is 4095 [15:22:55]Connected sock=10 [15:22: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 9F D3 07 01 3C 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 17 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 76 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 51 F7 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 CF DA 02 00 35 04 06 00 40 57 B9 99 7D EA 26 40 D8 2E 49 EB 5D FF [15:22: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 37 D2 47 00 96 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CF DA 02 00 F4 03 04 00 A4 9D B5 67 B6 04 01 00 00 08 9F DD DF F5 DE 0C C5 [15:22:55]CommunicateWithHost err = 0 [15:22:55]CheckOFDResponse [15:22:55]1017 (14) - 77093643461234 [15:22:55]1041 (16) - 0000000000871826 [15:22:55]1040 (4) - 187087 [15:22:55]1012 (4) - 19.02.2025 09:00 [15:22:55]1206 (1) - 0 [15:22:55]OFD Sender: Remove packet 187087 [15:22:55]ProducePacketName [15:22:55]name=ofd_packets/00187087 [15:22:55]NVStorageDeleteData [15:22:55]Write to MH i2c: 01 00 00 A7 2D D4 [15:22:55]Write i2c OK [15:22:55]MH_I2C_Read... [15:22:55]Read from MH i2c: 01 [15:22:55]MH_I2C_Read... [15:22:55]Read from MH i2c: 01 07 00 [15:22:55]MH_I2C_Read... [15:22:55]Read from MH i2c: 01 07 00 A7 2D 00 00 00 00 00 F4 0C DB [15:22:55]RasterBufferAndPrint [15:22:55]line [15:22:55]line [15:22:55]line [15:22:55]line [15:22:55]line [15:22:55]written 0, free lines is 3322 [15:22:55]MH_Cut [15:22:55]Write to MH i2c: D1 01 00 AE 2D 01 AD [15:22:55]Write i2c OK [15:22:55]MH_I2C_Read... [15:22:55]Read from MH i2c: D1 [15:22:55]MH_I2C_Read... [15:22:55]Read from MH i2c: D1 01 00 [15:22:55]MH_I2C_Read... [15:22:55]Read from MH i2c: D1 01 00 AE 2D 00 AC [15:22:55]Write to MH i2c: 01 00 00 AF 2D DC [15:22:55]Write i2c OK [15:22:55]MH_I2C_Read... [15:22:56]OFD Sender: No OFD packet to send [15:22:56]*** Cut start [15:22:56]*** Partial cut [15:22:56]*** CUTSNS_PIN = 1 [15:22:56]*** CUTSNS_PIN = 0 [15:22:56]*** Brake cut motor [15:22:56]Read from MH i2c: 01 [15:22:56]MH_I2C_Read... [15:22:56]*** Stop cut motor [15:22:56]*** Cut end [15:22:56]Read from MH i2c: 01 07 00 [15:22:56]MH_I2C_Read... [15:22:56]Read from MH i2c: 01 07 00 AF 2D 00 00 00 00 00 FF 0F F1 [15:22:56]process_action close_receipt done [15:22:56]requested_data is exist [15:22:56]produce_requested_data [15:22:56]requested_item fm.sn is exist - process it [15:22:56]wFMCommunicate request_size=4 [15:22:56]MH_SAM_APDU [15:22:56]CAPDU: 80 11 00 00 [15:22:56]Write to MH i2c: E2 08 00 B0 2D 80 11 00 00 00 00 00 00 57 [15:22:56]Write i2c OK [15:22:56]MH_I2C_Read... [15:22:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:57]Read from MH i2c: E2 [15:22:57]MH_I2C_Read... [15:22:57]Read from MH i2c: E2 17 00 [15:22:57]MH_I2C_Read... [15:22:57]Read from MH i2c: E2 17 00 B0 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AA [15:22: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:22:57]wFMCommunicate OK [15:22:57]requested_item fd.num is exist - process it [15:22:57]SAM_PROTO_GetFieldsCounters [15:22:57]wFMCommunicate request_size=4 [15:22:57]MH_SAM_APDU [15:22:57]CAPDU: 80 13 00 00 [15:22:57]Write to MH i2c: E2 08 00 B1 2D 80 13 00 00 00 00 00 00 5A [15:22:57]Write i2c OK [15:22:57]MH_I2C_Read... [15:22:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:57]Read from MH i2c: E2 [15:22:57]MH_I2C_Read... [15:22:57]Read from MH i2c: E2 62 00 [15:22:57]MH_I2C_Read... [15:22:57]Read from MH i2c: E2 62 00 B1 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 CF DA 02 00 0E 04 04 00 87 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 7F [15:22: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 CF DA 02 00 0E 04 04 00 87 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 [15:22:57]wFMCommunicate OK [15:22:57]SAM_PROTO_GetFieldsCounters done [15:22:57]requested_item shift.num is exist - process it [15:22:57]requested_item shift.opened is exist - process it [15:22:57]req_shift_opened [15:22:57]FM_GetShiftState [15:22:57]SAM_PROTO_GetShiftState [15:22:57]wFMCommunicate request_size=4 [15:22:57]MH_SAM_APDU [15:22:57]CAPDU: 80 13 01 00 [15:22:57]Write to MH i2c: E2 08 00 B2 2D 80 13 01 00 00 00 00 00 5C [15:22:57]Write i2c OK [15:22:57]MH_I2C_Read... [15:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:57]Read from MH i2c: E2 [15:22:57]MH_I2C_Read... [15:22:57]Read from MH i2c: E2 0E 00 [15:22:57]MH_I2C_Read... [15:22:57]Read from MH i2c: E2 0E 00 B2 2D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 DB [15:22:57]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:22:57]wFMCommunicate OK [15:22:57]SAM_PROTO_GetShiftState done [15:22:57]FM_GetShiftState done [15:22:57]req_shift_opened done [15:22:57]requested_item shift.open_date is exist - process it [15:22:57]req_shift_open_date [15:22:57]req_shift_open_date done [15:22:57]produce_requested_data done [15:22:57]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187087,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:22:57]process_action_free close_receipt [15:22:57]json_value_free [15:22:57]json_value_free done [15:22:57]process_json_proto returns [15:22:57]Send response to host [15:22:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187087,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:22:57]free response buf [15:22:57]execute_script done [15:22:57]execute_script returns [15:22:57]free content buf [15:22:57]Sock 7.Close socket [15:22:57]Sock 7.Thread stoped [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:22]accept exits with 9 [15:23:22]New connection [15:23:22]New thread 3066879332 created [15:23:22]Thread 3067022692 joined [15:23:22]Waiting for new connection... [15:23:22] Sock 9.Parse request [15:23:22]Sock 9.Check first char [15:23:22]Sock 9.First char is OK [15:23:22]request: POST /json_proto HTTP/1.0 [15:23:22]Method: POST [15:23:22]URL: /json_proto [15:23:22]Method is POST - this is cgi request [15:23:22]url: /json_proto [15:23:22]query_string will be loaded in cgi processing [15:23:22]execute_cgi json_proto POST (null) [15:23:22]execute_cgi path=json_proto method=POST [15:23:22]POST find Content-Length [15:23:22]Host: 172.17.46.131:8080 [15:23:22]Content-Length: 682 [15:23:22]Content-Type: application/json [15:23:22] [15:23:22]POST finish read [15:23:22]Found Content-Length = 682 [15:23:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412240", "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" ] } } [15:23:22]execute_script... [15:23: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)412240", "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" ] } } [15:23:22]POST & json_proto [15:23:22]process_json_proto [15:23:22]json parsed OK: [15:23:22]protocol is kg_v1.0 [15:23:22]action value=close_receipt [15:23:22]process_action close_receipt [15:23:22]cmd_close_receipt [15:23:22]MH_GetDate [15:23:22]Write to MH i2c: F0 00 00 B3 2D CF [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: F0 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: F0 09 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: F0 09 00 B3 2D 00 6E F7 B5 67 7E 41 4F 65 CC [15:23:22]GetLastDocTimeStamp 1739978577 [15:23:22]current date 1739978606 [15:23:22]FM_GetShiftState [15:23:22]SAM_PROTO_GetShiftState [15:23:22]wFMCommunicate request_size=4 [15:23:22]MH_SAM_APDU [15:23:22]CAPDU: 80 13 01 00 [15:23:22]Write to MH i2c: E2 08 00 B4 2D 80 13 01 00 00 00 00 00 5E [15:23:22]Write i2c OK [15:23:22]MH_I2C_Read... [15:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:22]Read from MH i2c: E2 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 0E 00 [15:23:22]MH_I2C_Read... [15:23:22]Read from MH i2c: E2 0E 00 B4 2D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 DD [15:23:22]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:23:22]wFMCommunicate OK [15:23:22]SAM_PROTO_GetShiftState done [15:23:22]FM_GetShiftState done [15:23:22]opened in 1739929631 [15:23:22]opened+sec_in_day 1740016031 [15:23:22]quantity*price = 200025 [15:23:22]sum+1 = 200027 [15:23:22]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 СНО: Общий режим Чек 154 19.02.2025 15:23 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187088 ФПД: 263284744080506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T152326&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187088&fm=263284744080506&tin=02508201610067®Number=0000000000091857&sum=200000 [15:23:23]StoreToDocumentArchive [15:23:23]shift 647 fd 187088 [15:23:23]save to /storage/0647/doc_00187088 [15:23:23]save last doc name /storage/0647/doc_00187088 to /storage/kkm_last_doc_name [15:23:23]save OK [15:23:23]Clear old archive folders... [15:23:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:23]tlvbuf is 005E5030 [15:23:23]SAM_PROTO_ClearQueue [15:23:23]wFMCommunicate request_size=4 [15:23:23]MH_SAM_APDU [15:23:23]CAPDU: 80 09 00 00 [15:23:23]Write to MH i2c: E2 08 00 C1 2D 80 09 00 00 00 00 00 00 60 [15:23:23]Write i2c OK [15:23:23]MH_I2C_Read... [15:23:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:23]Read from MH i2c: E2 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 03 00 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 03 00 C1 2D 00 90 00 62 [15:23:23]RAPDU: 90 00 [15:23:23]wFMCommunicate OK [15:23:23]SAM_PROTO_ClearQueue done [15:23:23]KKMCreateOFDPacket [15:23:23]OFDProtocolAddRootSTLVToBuf [15:23:23]FM_MakeSignedData [15:23:23]FM_MakeSignedData [15:23:23]SAM_PROTO_SignData [15:23:23]wFMCommunicate request_size=4 [15:23:23]MH_SAM_APDU [15:23:23]CAPDU: 80 0D 01 02 [15:23:23]Write to MH i2c: E2 08 00 C2 2D 80 0D 01 02 00 00 00 00 68 [15:23:23]Write i2c OK [15:23:23]MH_I2C_Read... [15:23:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:23]Read from MH i2c: E2 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 03 00 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 03 00 C2 2D 00 90 00 63 [15:23:23]RAPDU: 90 00 [15:23:23]wFMCommunicate OK [15:23:23]wFMCommunicate request_size=255 [15:23:23]MH_SAM_APDU [15:23: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 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 9A 00 00 00 F4 03 04 00 6E F7 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 D0 DA 02 00 35 04 06 00 EF [15:23:23]Write to MH i2c: E2 02 01 C3 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 9A 00 00 00 F4 03 04 00 6E F7 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 D0 DA 02 00 35 04 06 00 EF 00 00 4A [15:23:23]Write i2c OK [15:23:23]MH_I2C_Read... [15:23:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:23]Read from MH i2c: E2 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 03 00 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 03 00 C3 2D 00 90 00 64 [15:23:23]RAPDU: 90 00 [15:23:23]wFMCommunicate OK [15:23:23]wFMCommunicate request_size=10 [15:23:23]MH_SAM_APDU [15:23:23]CAPDU: 80 0D 02 02 05 74 C1 A5 4C 7A [15:23:23]Write to MH i2c: E2 0D 00 C4 2D 80 0D 02 02 05 00 74 C1 A5 4C 7A 00 00 15 [15:23:23]Write i2c OK [15:23:23]MH_I2C_Read... [15:23:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:23]Read from MH i2c: E2 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 03 00 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 03 00 C4 2D 00 90 00 65 [15:23:23]RAPDU: 90 00 [15:23:23]wFMCommunicate OK [15:23:23]wFMCommunicate request_size=4 [15:23:23]MH_SAM_APDU [15:23:23]CAPDU: 80 0D 03 02 [15:23:23]Write to MH i2c: E2 08 00 C5 2D 80 0D 03 02 00 00 00 00 6D [15:23:23]Write i2c OK [15:23:23]MH_I2C_Read... [15:23:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:23]Read from MH i2c: E2 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 0B 00 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 0B 00 C5 2D 00 16 19 D8 F8 1E 71 D1 CC 90 00 99 [15:23:23]RAPDU: 16 19 D8 F8 1E 71 D1 CC 90 00 [15:23:23]wFMCommunicate OK [15:23:23]SAM_PROTO_SignData done [15:23:23]FM_MakeSignedData done [15:23:23]CreateOFDProtocolMessage [15:23:23]wFMCommunicate request_size=4 [15:23:23]MH_SAM_APDU [15:23:23]CAPDU: 80 11 00 00 [15:23:23]Write to MH i2c: E2 08 00 C6 2D 80 11 00 00 00 00 00 00 6D [15:23:23]Write i2c OK [15:23:23]MH_I2C_Read... [15:23:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:23]Read from MH i2c: E2 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 17 00 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: E2 17 00 C6 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C0 [15:23: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:23:23]wFMCommunicate OK [15:23:23]CreateOFDProtocolMessage done [15:23:23]OFDSenderStorePacket 187088 [15:23:23]StoreOFDPacket docnum=187088 [15:23: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 6C B0 07 01 02 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 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 9A 00 00 00 F4 03 04 00 6E F7 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 D0 DA 02 00 35 04 06 00 EF 74 C1 A5 4C 7A 16 19 D8 F8 1E 71 D1 CC [15:23:23]CheckFolder [15:23:23]dirname=/storage/ofd_packets [15:23:23]CheckFolder done [15:23:23]ProducePacketName [15:23:23]name=ofd_packets/00187088 [15:23:23]NVStorageSaveData ofd_packets/00187088 [15:23:23]File name is /storage/ofd_packets/00187088 [15:23:23]Write 301 bytes [15:23:23]NVStorageSaveData done [15:23:23]OFDSenderStorePacket done [15:23:23]KKMCreateOFDPacket done [15:23:23]NVStorageSaveData kkm_last_timestamp [15:23:23]File name is /storage/kkm_last_timestamp [15:23:23]Write 4 bytes [15:23:23]NVStorageSaveData done [15:23:23]ExternCall_PrintAddStr [15:23:23]wPrintStart [15:23:23]Write to MH i2c: 01 00 00 C7 2D F4 [15:23:23]Write i2c OK [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: 01 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: 01 07 00 [15:23:23]MH_I2C_Read... [15:23:23]Read from MH i2c: 01 07 00 C7 2D 00 00 00 00 00 FF 0F 09 [15:23:23]RasterBufferAndPrint [15:23:23]line Счет N : (1)412240 [15:23:23]line ИНН: 02508201610067 [15:23:23]line Контрольно-Кассовый Чек [15:23:23]line ПРОДАЖА [15:23:23]line ТРК (МРК, ГНК) : 23 [15:23:23]line Товар: 2710124500 [15:23:23]line Аи-95-К-5 [15:23:23]line 27.820 * 71.90 [15:23:23]line = 2000.26 [15:23:23]line НДС 12% НСП 1% [15:23:23]line > о реализуемом товаре [15:23:23]line ОКРУГЛЕНИЕ: -0.26 [15:23:23]line ИТОГО: 2000.00 [15:23:23]line Внесено: 2000.00 [15:23:23]line СДАЧА: 0.00 [15:23:23]line НСП 1% : 17.70 [15:23:23]line НДС 12% : 212.42 [15:23:23]line Наличными: 2000.00 [15:23:23]line Безнал.: 0.00 [15:23:23]line Место: АЗС № 92 "Партнер Нефть" [15:23:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:23:23]line СНО: Общий режим [15:23:23]line Чек 154 19.02.2025 15:23 [15:23:23]line Смена: 647 ФФД: 1.0 [15:23:23]line ЗНМ: 0300000118 [15:23:23]line РНМ: 0000000000091857 [15:23:23]line Версия ККМ: 001 [15:23:23]line ФМ: 0000000000871826 [15:23:23]line ФД: 187088 [15:23:23]line ФПД: 263284744080506 [15:23:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T152326&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187088&fm=263284744080506&tin=02508201610067®Number=0000000000091857&sum=200000 [15:23:24]OFD Sender: Processing packet 187088 [packets to send 49, broken 48] [15:23:24]ProducePacketName [15:23:24]name=ofd_packets/00187088 [15:23:24]OFD Sender: To server: pG, [15:23:24]CommunicateWithHost lk.salyk.kg:30040 [15:23:24]ConnectInit lk.salyk.kg [15:23:24]written 0, free lines is 4095 [15:23:24]Connected sock=10 [15:23: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 6C B0 07 01 02 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 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 9A 00 00 00 F4 03 04 00 6E F7 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 D0 DA 02 00 35 04 06 00 EF 74 C1 A5 4C 7A 16 19 D8 F8 1E 71 D1 CC [15:23: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 29 36 47 00 E5 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 D0 DA 02 00 F4 03 04 00 C1 9D B5 67 B6 04 01 00 00 19 F5 0E CB 08 DF C0 8C [15:23:24]CommunicateWithHost err = 0 [15:23:24]CheckOFDResponse [15:23:24]1017 (14) - 77093643461234 [15:23:24]1041 (16) - 0000000000871826 [15:23:24]1040 (4) - 187088 [15:23:24]1012 (4) - 19.02.2025 09:00 [15:23:24]1206 (1) - 0 [15:23:24]OFD Sender: Remove packet 187088 [15:23:24]ProducePacketName [15:23:24]name=ofd_packets/00187088 [15:23:24]NVStorageDeleteData [15:23:24]Write to MH i2c: 01 00 00 F2 2D 1F [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: 01 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: 01 07 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: 01 07 00 F2 2D 00 00 00 00 00 FD 0C 2F [15:23:24]RasterBufferAndPrint [15:23:24]line [15:23:24]line [15:23:24]line [15:23:24]line [15:23:24]line [15:23:24]written 0, free lines is 3334 [15:23:24]MH_Cut [15:23:24]Write to MH i2c: D1 01 00 F9 2D 01 F8 [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: D1 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: D1 01 00 [15:23:24]MH_I2C_Read... [15:23:24]Read from MH i2c: D1 01 00 F9 2D 00 F7 [15:23:24]Write to MH i2c: 01 00 00 FA 2D 27 [15:23:24]Write i2c OK [15:23:24]MH_I2C_Read... [15:23:25]OFD Sender: No OFD packet to send [15:23:25]*** Cut start [15:23:25]*** Partial cut [15:23:25]*** CUTSNS_PIN = 1 [15:23:25]*** CUTSNS_PIN = 0 [15:23:25]*** Brake cut motor [15:23:26]Read from MH i2c: 01 [15:23:26]MH_I2C_Read... [15:23:26]*** Stop cut motor [15:23:26]*** Cut end [15:23:26]Read from MH i2c: 01 07 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: 01 07 00 FA 2D 00 00 00 00 00 FF 0F 3C [15:23:26]process_action close_receipt done [15:23:26]requested_data is exist [15:23:26]produce_requested_data [15:23:26]requested_item fm.sn is exist - process it [15:23:26]wFMCommunicate request_size=4 [15:23:26]MH_SAM_APDU [15:23:26]CAPDU: 80 11 00 00 [15:23:26]Write to MH i2c: E2 08 00 FB 2D 80 11 00 00 00 00 00 00 A2 [15:23:26]Write i2c OK [15:23:26]MH_I2C_Read... [15:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:26]Read from MH i2c: E2 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 17 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 17 00 FB 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F5 [15:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:23:26]wFMCommunicate OK [15:23:26]requested_item fd.num is exist - process it [15:23:26]SAM_PROTO_GetFieldsCounters [15:23:26]wFMCommunicate request_size=4 [15:23:26]MH_SAM_APDU [15:23:26]CAPDU: 80 13 00 00 [15:23:26]Write to MH i2c: E2 08 00 FC 2D 80 13 00 00 00 00 00 00 A5 [15:23:26]Write i2c OK [15:23:26]MH_I2C_Read... [15:23:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:26]Read from MH i2c: E2 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 62 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 62 00 FC 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 D0 DA 02 00 0E 04 04 00 87 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 CE [15:23: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 D0 DA 02 00 0E 04 04 00 87 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 [15:23:26]wFMCommunicate OK [15:23:26]SAM_PROTO_GetFieldsCounters done [15:23:26]requested_item shift.num is exist - process it [15:23:26]requested_item shift.opened is exist - process it [15:23:26]req_shift_opened [15:23:26]FM_GetShiftState [15:23:26]SAM_PROTO_GetShiftState [15:23:26]wFMCommunicate request_size=4 [15:23:26]MH_SAM_APDU [15:23:26]CAPDU: 80 13 01 00 [15:23:26]Write to MH i2c: E2 08 00 FD 2D 80 13 01 00 00 00 00 00 A7 [15:23:26]Write i2c OK [15:23:26]MH_I2C_Read... [15:23:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:26]Read from MH i2c: E2 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 0E 00 [15:23:26]MH_I2C_Read... [15:23:26]Read from MH i2c: E2 0E 00 FD 2D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 26 [15:23:26]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:23:26]wFMCommunicate OK [15:23:26]SAM_PROTO_GetShiftState done [15:23:26]FM_GetShiftState done [15:23:26]req_shift_opened done [15:23:26]requested_item shift.open_date is exist - process it [15:23:26]req_shift_open_date [15:23:26]req_shift_open_date done [15:23:26]produce_requested_data done [15:23:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187088,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:23:26]process_action_free close_receipt [15:23:26]json_value_free [15:23:26]json_value_free done [15:23:26]process_json_proto returns [15:23:26]Send response to host [15:23:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187088,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:23:26]free response buf [15:23:26]execute_script done [15:23:26]execute_script returns [15:23:26]free content buf [15:23:26]Sock 9.Close socket [15:23:26]Sock 9.Thread stoped [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:49]accept exits with 7 [15:23:49]New connection [15:23:49]New thread 3067022692 created [15:23:49]Thread 3066879332 joined [15:23:49]Waiting for new connection... [15:23:49] Sock 7.Parse request [15:23:49]Sock 7.Check first char [15:23:49]Sock 7.First char is OK [15:23:49]request: POST /json_proto HTTP/1.0 [15:23:49]Method: POST [15:23:49]URL: /json_proto [15:23:49]Method is POST - this is cgi request [15:23:49]url: /json_proto [15:23:49]query_string will be loaded in cgi processing [15:23:49]execute_cgi json_proto POST (null) [15:23:49]execute_cgi path=json_proto method=POST [15:23:49]POST find Content-Length [15:23:49]Host: 172.17.46.131:8080 [15:23:49]Content-Length: 799 [15:23:49]Content-Type: application/json [15:23:49] [15:23:49]POST finish read [15:23:49]Found Content-Length = 799 [15:23:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412238", "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" : 55.890, "sum" : 4057.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" : 4057.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:49]execute_script... [15:23: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)412238", "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" : 55.890, "sum" : 4057.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" : 4057.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:49]POST & json_proto [15:23:49]process_json_proto [15:23:49]json parsed OK: [15:23:49]protocol is kg_v1.0 [15:23:49]action value=close_receipt [15:23:49]process_action close_receipt [15:23:49]cmd_close_receipt [15:23:49]MH_GetDate [15:23:49]Write to MH i2c: F0 00 00 FE 2D 1A [15:23:49]Write i2c OK [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: F0 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: F0 09 00 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: F0 09 00 FE 2D 00 89 F7 B5 67 7E 41 4F 65 32 [15:23:49]GetLastDocTimeStamp 1739978606 [15:23:49]current date 1739978633 [15:23:49]FM_GetShiftState [15:23:49]SAM_PROTO_GetShiftState [15:23:49]wFMCommunicate request_size=4 [15:23:49]MH_SAM_APDU [15:23:49]CAPDU: 80 13 01 00 [15:23:49]Write to MH i2c: E2 08 00 FF 2D 80 13 01 00 00 00 00 00 A9 [15:23:49]Write i2c OK [15:23:49]MH_I2C_Read... [15:23:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:49]Read from MH i2c: E2 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: E2 0E 00 [15:23:49]MH_I2C_Read... [15:23:49]Read from MH i2c: E2 0E 00 FF 2D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 28 [15:23:49]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:23:49]wFMCommunicate OK [15:23:49]SAM_PROTO_GetShiftState done [15:23:49]FM_GetShiftState done [15:23:49]opened in 1739929631 [15:23:49]opened+sec_in_day 1740016031 [15:23:49]quantity*price = 405761 [15:23:49]sum+1 = 405762 [15:23:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4057.61 НСП 1% : 35.91 НДС 12% : 430.90 Наличными: 0.00 Безнал.: 4057.61 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 155 19.02.2025 15:23 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187089 ФПД: 241904724117333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T152353&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187089&fm=241904724117333&tin=02508201610067®Number=0000000000091857&sum=405761 [15:23:50]StoreToDocumentArchive [15:23:50]shift 647 fd 187089 [15:23:50]save to /storage/0647/doc_00187089 [15:23:50]save last doc name /storage/0647/doc_00187089 to /storage/kkm_last_doc_name [15:23:50]save OK [15:23:50]Clear old archive folders... [15:23:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:23:50]tlvbuf is B6F66130 [15:23:50]SAM_PROTO_ClearQueue [15:23:50]wFMCommunicate request_size=4 [15:23:50]MH_SAM_APDU [15:23:50]CAPDU: 80 09 00 00 [15:23:50]Write to MH i2c: E2 08 00 0C 2E 80 09 00 00 00 00 00 00 AC [15:23:50]Write i2c OK [15:23:50]MH_I2C_Read... [15:23:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:50]Read from MH i2c: E2 [15:23:50]MH_I2C_Read... [15:23:50]Read from MH i2c: E2 03 00 [15:23:50]MH_I2C_Read... [15:23:50]Read from MH i2c: E2 03 00 0C 2E 00 90 00 AE [15:23:50]RAPDU: 90 00 [15:23:50]wFMCommunicate OK [15:23:50]SAM_PROTO_ClearQueue done [15:23:50]KKMCreateOFDPacket [15:23:50]OFDProtocolAddRootSTLVToBuf [15:23:50]FM_MakeSignedData [15:23:50]FM_MakeSignedData [15:23:50]SAM_PROTO_SignData [15:23:50]wFMCommunicate request_size=4 [15:23:50]MH_SAM_APDU [15:23:50]CAPDU: 80 0D 01 02 [15:23:50]Write to MH i2c: E2 08 00 0D 2E 80 0D 01 02 00 00 00 00 B4 [15:23:50]Write i2c OK [15:23:50]MH_I2C_Read... [15:23:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:51]Read from MH i2c: E2 [15:23:51]MH_I2C_Read... [15:23:51]Read from MH i2c: E2 03 00 [15:23:51]MH_I2C_Read... [15:23:51]Read from MH i2c: E2 03 00 0D 2E 00 90 00 AF [15:23:51]RAPDU: 90 00 [15:23:51]wFMCommunicate OK [15:23:51]wFMCommunicate request_size=255 [15:23:51]MH_SAM_APDU [15:23:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 DA 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 01 31 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 31 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 A8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 31 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 89 F7 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 D1 DA 02 00 35 04 06 00 DC 02 D5 26 [15:23:51]Write to MH i2c: E2 02 01 0E 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 52 DA 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 01 31 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 31 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 A8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 31 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 89 F7 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 D1 DA 02 00 35 04 06 00 DC 02 D5 26 00 00 B7 [15:23:51]Write i2c OK [15:23:51]MH_I2C_Read... [15:23:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:51]Read from MH i2c: E2 [15:23:51]MH_I2C_Read... [15:23:51]Read from MH i2c: E2 03 00 [15:23:51]MH_I2C_Read... [15:23:51]Read from MH i2c: E2 03 00 0E 2E 00 90 00 B0 [15:23:51]RAPDU: 90 00 [15:23:51]wFMCommunicate OK [15:23:51]wFMCommunicate request_size=7 [15:23:51]MH_SAM_APDU [15:23:51]CAPDU: 80 0D 02 02 02 87 55 [15:23:51]Write to MH i2c: E2 0A 00 0F 2E 80 0D 02 02 02 00 87 55 00 00 97 [15:23:51]Write i2c OK [15:23:51]MH_I2C_Read... [15:23:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:51]Read from MH i2c: E2 [15:23:51]MH_I2C_Read... [15:23:51]Read from MH i2c: E2 03 00 [15:23:51]MH_I2C_Read... [15:23:51]Read from MH i2c: E2 03 00 0F 2E 00 90 00 B1 [15:23:51]RAPDU: 90 00 [15:23:51]wFMCommunicate OK [15:23:51]wFMCommunicate request_size=4 [15:23:51]MH_SAM_APDU [15:23:51]CAPDU: 80 0D 03 02 [15:23:51]Write to MH i2c: E2 08 00 10 2E 80 0D 03 02 00 00 00 00 B9 [15:23:51]Write i2c OK [15:23:51]MH_I2C_Read... [15:23:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:51]Read from MH i2c: E2 [15:23:51]MH_I2C_Read... [15:23:51]Read from MH i2c: E2 0B 00 [15:23:51]MH_I2C_Read... [15:23:51]Read from MH i2c: E2 0B 00 10 2E 00 7D FB 8F CC BB 63 52 6B 90 00 68 [15:23:51]RAPDU: 7D FB 8F CC BB 63 52 6B 90 00 [15:23:51]wFMCommunicate OK [15:23:51]SAM_PROTO_SignData done [15:23:51]FM_MakeSignedData done [15:23:51]CreateOFDProtocolMessage [15:23:51]wFMCommunicate request_size=4 [15:23:51]MH_SAM_APDU [15:23:51]CAPDU: 80 11 00 00 [15:23:51]Write to MH i2c: E2 08 00 11 2E 80 11 00 00 00 00 00 00 B9 [15:23:51]Write i2c OK [15:23:51]MH_I2C_Read... [15:23:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:51]Read from MH i2c: E2 [15:23:51]MH_I2C_Read... [15:23:51]Read from MH i2c: E2 17 00 [15:23:51]MH_I2C_Read... [15:23:51]Read from MH i2c: E2 17 00 11 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0C [15:23:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:23:51]wFMCommunicate OK [15:23:51]CreateOFDProtocolMessage done [15:23:51]OFDSenderStorePacket 187089 [15:23:51]StoreOFDPacket docnum=187089 [15:23: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 15 84 04 01 EC 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 52 DA 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 01 31 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 31 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 A8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 31 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 89 F7 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 D1 DA 02 00 35 04 06 00 DC 02 D5 26 87 55 7D FB 8F CC BB 63 52 6B [15:23:51]CheckFolder [15:23:51]dirname=/storage/ofd_packets [15:23:51]CheckFolder done [15:23:51]ProducePacketName [15:23:51]name=ofd_packets/00187089 [15:23:51]NVStorageSaveData ofd_packets/00187089 [15:23:51]File name is /storage/ofd_packets/00187089 [15:23:51]Write 298 bytes [15:23:51]NVStorageSaveData done [15:23:51]OFDSenderStorePacket done [15:23:51]KKMCreateOFDPacket done [15:23:51]NVStorageSaveData kkm_last_timestamp [15:23:51]File name is /storage/kkm_last_timestamp [15:23:51]Write 4 bytes [15:23:51]NVStorageSaveData done [15:23:51]ExternCall_PrintAddStr [15:23:51]wPrintStart [15:23:51]Write to MH i2c: 01 00 00 12 2E 40 [15:23:51]Write i2c OK [15:23:51]MH_I2C_Read... [15:23:51]Read from MH i2c: 01 [15:23:51]MH_I2C_Read... [15:23:51]Read from MH i2c: 01 07 00 [15:23:51]MH_I2C_Read... [15:23:51]Read from MH i2c: 01 07 00 12 2E 00 00 00 00 00 FF 0F 55 [15:23:51]RasterBufferAndPrint [15:23:51]line Счет N : (1)412238 [15:23:51]line ИНН: 02508201610067 [15:23:51]line Контрольно-Кассовый Чек [15:23:51]line ПРОДАЖА [15:23:51]line ТРК (МРК, ГНК) : 6 [15:23:51]line Товар: 2710194210 [15:23:51]line ДТ-К-5 [15:23:51]line 55.890 * 72.60 [15:23:51]line = 4057.61 [15:23:51]line НДС 12% НСП 1% [15:23:51]line > о реализуемом товаре [15:23:51]line ИТОГО: 4057.61 [15:23:51]line НСП 1% : 35.91 [15:23:51]line НДС 12% : 430.90 [15:23:51]line Наличными: 0.00 [15:23:51]line Безнал.: 4057.61 [15:23:51]line Место: АЗС № 92 "Партнер Нефть" [15:23:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:23:51]line СНО: Общий режим [15:23:51]line Чек 155 19.02.2025 15:23 [15:23:51]line Смена: 647 ФФД: 1.0 [15:23:51]line ЗНМ: 0300000118 [15:23:51]line РНМ: 0000000000091857 [15:23:51]line Версия ККМ: 001 [15:23:51]line Платежная система: O! деньги [15:23:51]line ФМ: 0000000000871826 [15:23:51]line ФД: 187089 [15:23:51]line ФПД: 241904724117333 [15:23:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T152353&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187089&fm=241904724117333&tin=02508201610067®Number=0000000000091857&sum=405761 [15:23:51]OFD Sender: Processing packet 187089 [packets to send 49, broken 48] [15:23:51]ProducePacketName [15:23:51]name=ofd_packets/00187089 [15:23:51]OFD Sender: To server: pG, [15:23:51]CommunicateWithHost lk.salyk.kg:30040 [15:23:51]ConnectInit lk.salyk.kg [15:23:51]written 0, free lines is 4095 [15:23:51]Connected sock=10 [15:23: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 15 84 04 01 EC 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 52 DA 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 01 31 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 01 31 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 A8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 01 31 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 89 F7 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 D1 DA 02 00 35 04 06 00 DC 02 D5 26 87 55 7D FB 8F CC BB 63 52 6B [15:23: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 B0 7D 47 00 55 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 D1 DA 02 00 F4 03 04 00 DD 9D B5 67 B6 04 01 00 00 2F 07 53 AD 37 A3 3A F0 [15:23:52]CommunicateWithHost err = 0 [15:23:52]CheckOFDResponse [15:23:52]1017 (14) - 77093643461234 [15:23:52]1041 (16) - 0000000000871826 [15:23:52]1040 (4) - 187089 [15:23:52]1012 (4) - 19.02.2025 09:01 [15:23:52]1206 (1) - 0 [15:23:52]OFD Sender: Remove packet 187089 [15:23:52]ProducePacketName [15:23:52]name=ofd_packets/00187089 [15:23:52]NVStorageDeleteData [15:23:52]Write to MH i2c: 01 00 00 3C 2E 6A [15:23:52]Write i2c OK [15:23:52]MH_I2C_Read... [15:23:52]Read from MH i2c: 01 [15:23:52]MH_I2C_Read... [15:23:52]Read from MH i2c: 01 07 00 [15:23:52]MH_I2C_Read... [15:23:52]Read from MH i2c: 01 07 00 3C 2E 00 00 00 00 00 09 0D 87 [15:23:52]RasterBufferAndPrint [15:23:52]line [15:23:52]line [15:23:52]line [15:23:52]line [15:23:52]line [15:23:52]written 0, free lines is 3347 [15:23:52]MH_Cut [15:23:52]Write to MH i2c: D1 01 00 43 2E 01 43 [15:23:52]Write i2c OK [15:23:52]MH_I2C_Read... [15:23:52]Read from MH i2c: D1 [15:23:52]MH_I2C_Read... [15:23:52]Read from MH i2c: D1 01 00 [15:23:52]MH_I2C_Read... [15:23:52]Read from MH i2c: D1 01 00 43 2E 00 42 [15:23:52]Write to MH i2c: 01 00 00 44 2E 72 [15:23:52]Write i2c OK [15:23:52]MH_I2C_Read... [15:23:52]OFD Sender: No OFD packet to send [15:23:52]*** Cut start [15:23:52]*** Partial cut [15:23:52]*** CUTSNS_PIN = 1 [15:23:52]*** CUTSNS_PIN = 0 [15:23:53]*** Brake cut motor [15:23:53]Read from MH i2c: 01 [15:23:53]MH_I2C_Read... [15:23:53]*** Stop cut motor [15:23:53]*** Cut end [15:23:53]Read from MH i2c: 01 07 00 [15:23:53]MH_I2C_Read... [15:23:53]Read from MH i2c: 01 07 00 44 2E 00 00 00 00 00 FF 0F 87 [15:23:53]process_action close_receipt done [15:23:53]requested_data is exist [15:23:53]produce_requested_data [15:23:53]requested_item fm.sn is exist - process it [15:23:53]wFMCommunicate request_size=4 [15:23:53]MH_SAM_APDU [15:23:53]CAPDU: 80 11 00 00 [15:23:53]Write to MH i2c: E2 08 00 45 2E 80 11 00 00 00 00 00 00 ED [15:23:53]Write i2c OK [15:23:53]MH_I2C_Read... [15:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:53]Read from MH i2c: E2 [15:23:53]MH_I2C_Read... [15:23:53]Read from MH i2c: E2 17 00 [15:23:53]MH_I2C_Read... [15:23:53]Read from MH i2c: E2 17 00 45 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 40 [15:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:23:53]wFMCommunicate OK [15:23:53]requested_item fd.num is exist - process it [15:23:53]SAM_PROTO_GetFieldsCounters [15:23:53]wFMCommunicate request_size=4 [15:23:53]MH_SAM_APDU [15:23:53]CAPDU: 80 13 00 00 [15:23:53]Write to MH i2c: E2 08 00 46 2E 80 13 00 00 00 00 00 00 F0 [15:23:53]Write i2c OK [15:23:53]MH_I2C_Read... [15:23:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:53]Read from MH i2c: E2 [15:23:53]MH_I2C_Read... [15:23:53]Read from MH i2c: E2 62 00 [15:23:53]MH_I2C_Read... [15:23:53]Read from MH i2c: E2 62 00 46 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 D1 DA 02 00 0E 04 04 00 87 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 1D [15:23: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 D1 DA 02 00 0E 04 04 00 87 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 [15:23:53]wFMCommunicate OK [15:23:53]SAM_PROTO_GetFieldsCounters done [15:23:53]requested_item shift.num is exist - process it [15:23:53]requested_item shift.opened is exist - process it [15:23:53]req_shift_opened [15:23:53]FM_GetShiftState [15:23:53]SAM_PROTO_GetShiftState [15:23:53]wFMCommunicate request_size=4 [15:23:53]MH_SAM_APDU [15:23:53]CAPDU: 80 13 01 00 [15:23:53]Write to MH i2c: E2 08 00 47 2E 80 13 01 00 00 00 00 00 F2 [15:23:53]Write i2c OK [15:23:53]MH_I2C_Read... [15:23:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:53]Read from MH i2c: E2 [15:23:53]MH_I2C_Read... [15:23:53]Read from MH i2c: E2 0E 00 [15:23:53]MH_I2C_Read... [15:23:53]Read from MH i2c: E2 0E 00 47 2E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 71 [15:23:53]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:23:53]wFMCommunicate OK [15:23:53]SAM_PROTO_GetShiftState done [15:23:53]FM_GetShiftState done [15:23:53]req_shift_opened done [15:23:53]requested_item shift.open_date is exist - process it [15:23:53]req_shift_open_date [15:23:53]req_shift_open_date done [15:23:53]produce_requested_data done [15:23:53]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187089,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:23:53]process_action_free close_receipt [15:23:53]json_value_free [15:23:53]json_value_free done [15:23:53]process_json_proto returns [15:23:53]Send response to host [15:23:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187089,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:23:53]free response buf [15:23:53]execute_script done [15:23:53]execute_script returns [15:23:53]free content buf [15:23:53]Sock 7.Close socket [15:23:53]Sock 7.Thread stoped [15:23:57]OFD Sender: No OFD packet to send [15:24:02]OFD Sender: No OFD packet to send [15:24:07]OFD Sender: No OFD packet to send [15:24:12]OFD Sender: No OFD packet to send [15:24:17]OFD Sender: No OFD packet to send [15:24:22]OFD Sender: No OFD packet to send [15:24:27]OFD Sender: No OFD packet to send [15:24:32]OFD Sender: No OFD packet to send [15:24:37]OFD Sender: No OFD packet to send [15:24:42]OFD Sender: No OFD packet to send [15:24:47]OFD Sender: No OFD packet to send [15:24:52]OFD Sender: No OFD packet to send [15:24:57]OFD Sender: No OFD packet to send [15:25:02]OFD Sender: No OFD packet to send [15:25:07]OFD Sender: No OFD packet to send [15:25:12]OFD Sender: No OFD packet to send [15:25:17]OFD Sender: No OFD packet to send [15:25:22]OFD Sender: No OFD packet to send [15:25:27]OFD Sender: No OFD packet to send [15:25:32]OFD Sender: No OFD packet to send [15:25:37]OFD Sender: No OFD packet to send [15:25:42]OFD Sender: No OFD packet to send [15:25:47]OFD Sender: No OFD packet to send [15:25:52]OFD Sender: No OFD packet to send [15:25:57]OFD Sender: No OFD packet to send [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:37]OFD Sender: No OFD packet to send [15:26:42]OFD Sender: No OFD packet to send [15:26:47]OFD Sender: No OFD packet to send [15:26:48]accept exits with 9 [15:26:48]New connection [15:26:48]New thread 3066879332 created [15:26:48]Thread 3067022692 joined [15:26:48]Waiting for new connection... [15:26:48] Sock 9.Parse request [15:26:48]Sock 9.Check first char [15:26:48]Sock 9.First char is OK [15:26:48]request: POST /json_proto HTTP/1.0 [15:26:48]Method: POST [15:26:48]URL: /json_proto [15:26:48]Method is POST - this is cgi request [15:26:48]url: /json_proto [15:26:48]query_string will be loaded in cgi processing [15:26:48]execute_cgi json_proto POST (null) [15:26:48]execute_cgi path=json_proto method=POST [15:26:48]POST find Content-Length [15:26:48]Host: 172.17.46.131:8080 [15:26:48]Content-Length: 677 [15:26:48]Content-Type: application/json [15:26:48] [15:26:48]POST finish read [15:26:48]Found Content-Length = 677 [15:26:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412241", "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" : 2.340, "sum" : 150.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:48]execute_script... [15: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)412241", "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" : 2.340, "sum" : 150.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:48]POST & json_proto [15:26:48]process_json_proto [15:26:48]json parsed OK: [15:26:48]protocol is kg_v1.0 [15:26:48]action value=close_receipt [15:26:48]process_action close_receipt [15:26:48]cmd_close_receipt [15:26:48]MH_GetDate [15:26:48]Write to MH i2c: F0 00 00 48 2E 65 [15:26:48]Write i2c OK [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: F0 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: F0 09 00 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: F0 09 00 48 2E 00 3C F8 B5 67 7E 41 4F 65 31 [15:26:48]GetLastDocTimeStamp 1739978633 [15:26:48]current date 1739978812 [15:26:48]FM_GetShiftState [15:26:48]SAM_PROTO_GetShiftState [15:26:48]wFMCommunicate request_size=4 [15:26:48]MH_SAM_APDU [15:26:48]CAPDU: 80 13 01 00 [15:26:48]Write to MH i2c: E2 08 00 49 2E 80 13 01 00 00 00 00 00 F4 [15:26:48]Write i2c OK [15:26:48]MH_I2C_Read... [15:26:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:48]Read from MH i2c: E2 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: E2 0E 00 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: E2 0E 00 49 2E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 73 [15:26:48]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:26:48]wFMCommunicate OK [15:26:48]SAM_PROTO_GetShiftState done [15:26:48]FM_GetShiftState done [15:26:48]opened in 1739929631 [15:26:48]opened+sec_in_day 1740016031 [15:26:48]quantity*price = 15022 [15:26:48]sum+1 = 15024 [15:26:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.95 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 156 19.02.2025 15:26 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187090 ФПД: 148171236233862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T152652&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187090&fm=148171236233862&tin=02508201610067®Number=0000000000091857&sum=15000 [15:26:49]StoreToDocumentArchive [15:26:49]shift 647 fd 187090 [15:26:49]save to /storage/0647/doc_00187090 [15:26:49]save last doc name /storage/0647/doc_00187090 to /storage/kkm_last_doc_name [15:26:49]save OK [15:26:49]Clear old archive folders... [15:26:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:49]tlvbuf is 005C68B0 [15:26:49]SAM_PROTO_ClearQueue [15:26:49]wFMCommunicate request_size=4 [15:26:49]MH_SAM_APDU [15:26:49]CAPDU: 80 09 00 00 [15:26:49]Write to MH i2c: E2 08 00 56 2E 80 09 00 00 00 00 00 00 F6 [15:26:49]Write i2c OK [15:26:49]MH_I2C_Read... [15:26:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:49]Read from MH i2c: E2 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 03 00 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 03 00 56 2E 00 90 00 F8 [15:26:49]RAPDU: 90 00 [15:26:49]wFMCommunicate OK [15:26:49]SAM_PROTO_ClearQueue done [15:26:49]KKMCreateOFDPacket [15:26:49]OFDProtocolAddRootSTLVToBuf [15:26:49]FM_MakeSignedData [15:26:49]FM_MakeSignedData [15:26:49]SAM_PROTO_SignData [15:26:49]wFMCommunicate request_size=4 [15:26:49]MH_SAM_APDU [15:26:49]CAPDU: 80 0D 01 02 [15:26:49]Write to MH i2c: E2 08 00 57 2E 80 0D 01 02 00 00 00 00 FE [15:26:49]Write i2c OK [15:26:49]MH_I2C_Read... [15:26:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:49]Read from MH i2c: E2 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 03 00 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 03 00 57 2E 00 90 00 F9 [15:26:49]RAPDU: 90 00 [15:26:49]wFMCommunicate OK [15:26:49]wFMCommunicate request_size=255 [15:26:49]MH_SAM_APDU [15:26: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 24 09 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 AF 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 3C F8 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 D2 DA 02 00 35 04 06 00 86 [15:26:49]Write to MH i2c: E2 02 01 58 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 AF 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 3C F8 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 D2 DA 02 00 35 04 06 00 86 00 00 60 [15:26:49]Write i2c OK [15:26:49]MH_I2C_Read... [15:26:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:50]Read from MH i2c: E2 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: E2 03 00 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: E2 03 00 58 2E 00 90 00 FA [15:26:50]RAPDU: 90 00 [15:26:50]wFMCommunicate OK [15:26:50]wFMCommunicate request_size=10 [15:26:50]MH_SAM_APDU [15:26:50]CAPDU: 80 0D 02 02 05 C2 CD E6 D2 86 [15:26:50]Write to MH i2c: E2 0D 00 59 2E 80 0D 02 02 05 00 C2 CD E6 D2 86 00 00 D8 [15:26:50]Write i2c OK [15:26:50]MH_I2C_Read... [15:26:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:50]Read from MH i2c: E2 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: E2 03 00 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: E2 03 00 59 2E 00 90 00 FB [15:26:50]RAPDU: 90 00 [15:26:50]wFMCommunicate OK [15:26:50]wFMCommunicate request_size=4 [15:26:50]MH_SAM_APDU [15:26:50]CAPDU: 80 0D 03 02 [15:26:50]Write to MH i2c: E2 08 00 5A 2E 80 0D 03 02 00 00 00 00 03 [15:26:50]Write i2c OK [15:26:50]MH_I2C_Read... [15:26:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:50]Read from MH i2c: E2 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: E2 0B 00 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: E2 0B 00 5A 2E 00 36 91 8E 5F 6B 83 84 FF 90 00 29 [15:26:50]RAPDU: 36 91 8E 5F 6B 83 84 FF 90 00 [15:26:50]wFMCommunicate OK [15:26:50]SAM_PROTO_SignData done [15:26:50]FM_MakeSignedData done [15:26:50]CreateOFDProtocolMessage [15:26:50]wFMCommunicate request_size=4 [15:26:50]MH_SAM_APDU [15:26:50]CAPDU: 80 11 00 00 [15:26:50]Write to MH i2c: E2 08 00 5B 2E 80 11 00 00 00 00 00 00 03 [15:26:50]Write i2c OK [15:26:50]MH_I2C_Read... [15:26:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:50]Read from MH i2c: E2 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: E2 17 00 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: E2 17 00 5B 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 56 [15: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 [15:26:50]wFMCommunicate OK [15:26:50]CreateOFDProtocolMessage done [15:26:50]OFDSenderStorePacket 187090 [15:26:50]StoreOFDPacket docnum=187090 [15: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 7C 8E 07 01 0F 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 AF 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 3C F8 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 D2 DA 02 00 35 04 06 00 86 C2 CD E6 D2 86 36 91 8E 5F 6B 83 84 FF [15:26:50]CheckFolder [15:26:50]dirname=/storage/ofd_packets [15:26:50]CheckFolder done [15:26:50]ProducePacketName [15:26:50]name=ofd_packets/00187090 [15:26:50]NVStorageSaveData ofd_packets/00187090 [15:26:50]File name is /storage/ofd_packets/00187090 [15:26:50]Write 301 bytes [15:26:50]NVStorageSaveData done [15:26:50]OFDSenderStorePacket done [15:26:50]KKMCreateOFDPacket done [15:26:50]NVStorageSaveData kkm_last_timestamp [15:26:50]File name is /storage/kkm_last_timestamp [15:26:50]Write 4 bytes [15:26:50]NVStorageSaveData done [15:26:50]ExternCall_PrintAddStr [15:26:50]wPrintStart [15:26:50]Write to MH i2c: 01 00 00 5C 2E 8A [15:26:50]Write i2c OK [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: 01 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: 01 07 00 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: 01 07 00 5C 2E 00 00 00 00 00 FF 0F 9F [15:26:50]RasterBufferAndPrint [15:26:50]line Счет N : (1)412241 [15:26:50]line ИНН: 02508201610067 [15:26:50]line Контрольно-Кассовый Чек [15:26:50]line ПРОДАЖА [15:26:50]line ТРК (МРК, ГНК) : 12 [15:26:50]line Товар: 2710124130 [15:26:50]line Аи-92-К-2 [15:26:50]line 2.340 * 64.20 [15:26:50]line = 150.23 [15:26:50]line НДС 12% НСП 1% [15:26:50]line > о реализуемом товаре [15:26:50]line ОКРУГЛЕНИЕ: -0.23 [15:26:50]line ИТОГО: 150.00 [15:26:50]line Внесено: 150.00 [15:26:50]line СДАЧА: 0.00 [15:26:50]line НСП 1% : 1.33 [15:26:50]line НДС 12% : 15.95 [15:26:50]line Наличными: 150.00 [15:26:50]line Безнал.: 0.00 [15:26:50]line Место: АЗС № 92 "Партнер Нефть" [15:26:50]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:26:50]line СНО: Общий режим [15:26:50]line Чек 156 19.02.2025 15:26 [15:26:50]line Смена: 647 ФФД: 1.0 [15:26:50]line ЗНМ: 0300000118 [15:26:50]line РНМ: 0000000000091857 [15:26:50]line Версия ККМ: 001 [15:26:50]line ФМ: 0000000000871826 [15:26:50]line ФД: 187090 [15:26:50]line ФПД: 148171236233862 [15:26:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T152652&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187090&fm=148171236233862&tin=02508201610067®Number=0000000000091857&sum=15000 [15:26:50]written 0, free lines is 4095 [15:26:50]OFD Sender: Processing packet 187090 [packets to send 49, broken 48] [15:26:50]ProducePacketName [15:26:50]name=ofd_packets/00187090 [15:26:50]OFD Sender: To server: pG, [15:26:50]CommunicateWithHost lk.salyk.kg:30040 [15:26:50]ConnectInit lk.salyk.kg [15:26:50]Connected sock=10 [15: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 7C 8E 07 01 0F 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 AF 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 3C F8 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 D2 DA 02 00 35 04 06 00 86 C2 CD E6 D2 86 36 91 8E 5F 6B 83 84 FF [15:26: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 66 8C 47 00 1E 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 D2 DA 02 00 F4 03 04 00 90 9E B5 67 B6 04 01 00 00 32 17 36 F9 56 FA 18 88 [15:26:50]CommunicateWithHost err = 0 [15:26:50]CheckOFDResponse [15:26:50]1017 (14) - 77093643461234 [15:26:50]1041 (16) - 0000000000871826 [15:26:50]1040 (4) - 187090 [15:26:50]1012 (4) - 19.02.2025 09:04 [15:26:50]1206 (1) - 0 [15:26:50]OFD Sender: Remove packet 187090 [15:26:50]ProducePacketName [15:26:50]name=ofd_packets/00187090 [15:26:50]NVStorageDeleteData [15:26:50]Write to MH i2c: 01 00 00 87 2E B5 [15:26:50]Write i2c OK [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: 01 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: 01 07 00 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: 01 07 00 87 2E 00 00 00 00 00 F2 0C BA [15:26:50]RasterBufferAndPrint [15:26:50]line [15:26:50]line [15:26:50]line [15:26:50]line [15:26:50]line [15:26:50]written 0, free lines is 3320 [15:26:50]MH_Cut [15:26:50]Write to MH i2c: D1 01 00 8E 2E 01 8E [15:26:50]Write i2c OK [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: D1 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: D1 01 00 [15:26:50]MH_I2C_Read... [15:26:50]Read from MH i2c: D1 01 00 8E 2E 00 8D [15:26:50]Write to MH i2c: 01 00 00 8F 2E BD [15:26:50]Write i2c OK [15:26:50]MH_I2C_Read... [15:26:51]OFD Sender: No OFD packet to send [15:26:51]*** Cut start [15:26:51]*** Partial cut [15:26:51]*** CUTSNS_PIN = 1 [15:26:51]*** CUTSNS_PIN = 0 [15:26:52]*** Brake cut motor [15:26:52]Read from MH i2c: 01 [15:26:52]MH_I2C_Read... [15:26:52]*** Stop cut motor [15:26:52]*** Cut end [15:26:52]Read from MH i2c: 01 07 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: 01 07 00 8F 2E 00 00 00 00 00 FF 0F D2 [15:26:52]process_action close_receipt done [15:26:52]requested_data is exist [15:26:52]produce_requested_data [15:26:52]requested_item fm.sn is exist - process it [15:26:52]wFMCommunicate request_size=4 [15:26:52]MH_SAM_APDU [15:26:52]CAPDU: 80 11 00 00 [15:26:52]Write to MH i2c: E2 08 00 90 2E 80 11 00 00 00 00 00 00 38 [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:52]Read from MH i2c: E2 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 17 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 17 00 90 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8B [15: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 [15:26:52]wFMCommunicate OK [15:26:52]requested_item fd.num is exist - process it [15:26:52]SAM_PROTO_GetFieldsCounters [15:26:52]wFMCommunicate request_size=4 [15:26:52]MH_SAM_APDU [15:26:52]CAPDU: 80 13 00 00 [15:26:52]Write to MH i2c: E2 08 00 91 2E 80 13 00 00 00 00 00 00 3B [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:52]Read from MH i2c: E2 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 62 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 62 00 91 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 D2 DA 02 00 0E 04 04 00 87 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 6C [15: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 D2 DA 02 00 0E 04 04 00 87 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 [15:26:52]wFMCommunicate OK [15:26:52]SAM_PROTO_GetFieldsCounters done [15:26:52]requested_item shift.num is exist - process it [15:26:52]requested_item shift.opened is exist - process it [15:26:52]req_shift_opened [15:26:52]FM_GetShiftState [15:26:52]SAM_PROTO_GetShiftState [15:26:52]wFMCommunicate request_size=4 [15:26:52]MH_SAM_APDU [15:26:52]CAPDU: 80 13 01 00 [15:26:52]Write to MH i2c: E2 08 00 92 2E 80 13 01 00 00 00 00 00 3D [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:52]Read from MH i2c: E2 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 0E 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: E2 0E 00 92 2E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 BC [15:26:52]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:26:52]wFMCommunicate OK [15:26:52]SAM_PROTO_GetShiftState done [15:26:52]FM_GetShiftState done [15:26:52]req_shift_opened done [15:26:52]requested_item shift.open_date is exist - process it [15:26:52]req_shift_open_date [15:26:52]req_shift_open_date done [15:26:52]produce_requested_data done [15:26:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187090,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:26:52]process_action_free close_receipt [15:26:52]json_value_free [15:26:52]json_value_free done [15:26:52]process_json_proto returns [15:26:52]Send response to host [15:26:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187090,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:26:52]free response buf [15:26:52]execute_script done [15:26:52]execute_script returns [15:26:52]free content buf [15:26:52]Sock 9.Close socket [15:26:52]Sock 9.Thread stoped [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27:56]OFD Sender: No OFD packet to send [15:28:01]OFD Sender: No OFD packet to send [15:28:06]OFD Sender: No OFD packet to send [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:21]OFD Sender: No OFD packet to send [15:28:26]OFD Sender: No OFD packet to send [15:28:31]OFD Sender: No OFD packet to send [15:28:36]OFD Sender: No OFD packet to send [15:28:41]OFD Sender: No OFD packet to send [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:14]accept exits with 7 [15:31:14]New connection [15:31:14]New thread 3067022692 created [15:31:14]Thread 3066879332 joined [15:31:14]Waiting for new connection... [15:31:14] Sock 7.Parse request [15:31:14]Sock 7.Check first char [15:31:14]Sock 7.First char is OK [15:31:14]request: POST /json_proto HTTP/1.0 [15:31:14]Method: POST [15:31:14]URL: /json_proto [15:31:14]Method is POST - this is cgi request [15:31:14]url: /json_proto [15:31:14]query_string will be loaded in cgi processing [15:31:14]execute_cgi json_proto POST (null) [15:31:14]execute_cgi path=json_proto method=POST [15:31:14]POST find Content-Length [15:31:14]Host: 172.17.46.131:8080 [15:31:14]Content-Length: 799 [15:31:14]Content-Type: application/json [15:31:14] [15:31:14]POST finish read [15:31:14]Found Content-Length = 799 [15:31:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412242", "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" : 33.060, "sum" : 2400.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2400.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:14]execute_script... [15:31: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)412242", "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" : 33.060, "sum" : 2400.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2400.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:14]POST & json_proto [15:31:14]process_json_proto [15:31:14]json parsed OK: [15:31:14]protocol is kg_v1.0 [15:31:14]action value=close_receipt [15:31:14]process_action close_receipt [15:31:14]cmd_close_receipt [15:31:14]MH_GetDate [15:31:14]Write to MH i2c: F0 00 00 93 2E B0 [15:31:14]Write i2c OK [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: F0 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: F0 09 00 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: F0 09 00 93 2E 00 46 F9 B5 67 7E 41 4F 65 87 [15:31:14]GetLastDocTimeStamp 1739978812 [15:31:14]current date 1739979078 [15:31:14]FM_GetShiftState [15:31:14]SAM_PROTO_GetShiftState [15:31:14]wFMCommunicate request_size=4 [15:31:14]MH_SAM_APDU [15:31:14]CAPDU: 80 13 01 00 [15:31:14]Write to MH i2c: E2 08 00 94 2E 80 13 01 00 00 00 00 00 3F [15:31:14]Write i2c OK [15:31:14]MH_I2C_Read... [15:31:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:14]Read from MH i2c: E2 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: E2 0E 00 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: E2 0E 00 94 2E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 BE [15:31:14]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:31:14]wFMCommunicate OK [15:31:14]SAM_PROTO_GetShiftState done [15:31:14]FM_GetShiftState done [15:31:14]opened in 1739929631 [15:31:14]opened+sec_in_day 1740016031 [15:31:14]quantity*price = 240015 [15:31:14]sum+1 = 240017 [15:31:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2400.16 НСП 1% : 21.24 НДС 12% : 254.88 Наличными: 0.00 Безнал.: 2400.16 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 157 19.02.2025 15:31 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187091 ФПД: 269124172251023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T153118&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187091&fm=269124172251023&tin=02508201610067®Number=0000000000091857&sum=240016 [15:31:15]StoreToDocumentArchive [15:31:15]shift 647 fd 187091 [15:31:15]save to /storage/0647/doc_00187091 [15:31:15]save last doc name /storage/0647/doc_00187091 to /storage/kkm_last_doc_name [15:31:15]save OK [15:31:15]Clear old archive folders... [15:31:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:31:15]tlvbuf is 0065DF10 [15:31:15]SAM_PROTO_ClearQueue [15:31:15]wFMCommunicate request_size=4 [15:31:15]MH_SAM_APDU [15:31:15]CAPDU: 80 09 00 00 [15:31:15]Write to MH i2c: E2 08 00 A1 2E 80 09 00 00 00 00 00 00 41 [15:31:15]Write i2c OK [15:31:15]MH_I2C_Read... [15:31:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:15]Read from MH i2c: E2 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 03 00 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 03 00 A1 2E 00 90 00 43 [15:31:15]RAPDU: 90 00 [15:31:15]wFMCommunicate OK [15:31:15]SAM_PROTO_ClearQueue done [15:31:15]KKMCreateOFDPacket [15:31:15]OFDProtocolAddRootSTLVToBuf [15:31:15]FM_MakeSignedData [15:31:15]FM_MakeSignedData [15:31:15]SAM_PROTO_SignData [15:31:15]wFMCommunicate request_size=4 [15:31:15]MH_SAM_APDU [15:31:15]CAPDU: 80 0D 01 02 [15:31:15]Write to MH i2c: E2 08 00 A2 2E 80 0D 01 02 00 00 00 00 49 [15:31:15]Write i2c OK [15:31:15]MH_I2C_Read... [15:31:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:15]Read from MH i2c: E2 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 03 00 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 03 00 A2 2E 00 90 00 44 [15:31:15]RAPDU: 90 00 [15:31:15]wFMCommunicate OK [15:31:15]wFMCommunicate request_size=255 [15:31:15]MH_SAM_APDU [15:31:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 90 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 00 00 00 00 00 00 39 04 06 00 90 A9 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 46 F9 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 D3 DA 02 00 35 04 06 00 F4 C4 5A AF [15:31:15]Write to MH i2c: E2 02 01 A3 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 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 90 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 00 00 00 00 00 00 39 04 06 00 90 A9 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 46 F9 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 D3 DA 02 00 35 04 06 00 F4 C4 5A AF 00 00 B4 [15:31:15]Write i2c OK [15:31:15]MH_I2C_Read... [15:31:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:15]Read from MH i2c: E2 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 03 00 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 03 00 A3 2E 00 90 00 45 [15:31:15]RAPDU: 90 00 [15:31:15]wFMCommunicate OK [15:31:15]wFMCommunicate request_size=7 [15:31:15]MH_SAM_APDU [15:31:15]CAPDU: 80 0D 02 02 02 FF 8F [15:31:15]Write to MH i2c: E2 0A 00 A4 2E 80 0D 02 02 02 00 FF 8F 00 00 DE [15:31:15]Write i2c OK [15:31:15]MH_I2C_Read... [15:31:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:15]Read from MH i2c: E2 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 03 00 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 03 00 A4 2E 00 90 00 46 [15:31:15]RAPDU: 90 00 [15:31:15]wFMCommunicate OK [15:31:15]wFMCommunicate request_size=4 [15:31:15]MH_SAM_APDU [15:31:15]CAPDU: 80 0D 03 02 [15:31:15]Write to MH i2c: E2 08 00 A5 2E 80 0D 03 02 00 00 00 00 4E [15:31:15]Write i2c OK [15:31:15]MH_I2C_Read... [15:31:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:15]Read from MH i2c: E2 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 0B 00 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 0B 00 A5 2E 00 A4 8B F3 6B A6 15 5F F2 90 00 E8 [15:31:15]RAPDU: A4 8B F3 6B A6 15 5F F2 90 00 [15:31:15]wFMCommunicate OK [15:31:15]SAM_PROTO_SignData done [15:31:15]FM_MakeSignedData done [15:31:15]CreateOFDProtocolMessage [15:31:15]wFMCommunicate request_size=4 [15:31:15]MH_SAM_APDU [15:31:15]CAPDU: 80 11 00 00 [15:31:15]Write to MH i2c: E2 08 00 A6 2E 80 11 00 00 00 00 00 00 4E [15:31:15]Write i2c OK [15:31:15]MH_I2C_Read... [15:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:15]Read from MH i2c: E2 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 17 00 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 17 00 A6 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A1 [15:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:31:15]wFMCommunicate OK [15:31:15]CreateOFDProtocolMessage done [15:31:15]OFDSenderStorePacket 187091 [15:31:15]StoreOFDPacket docnum=187091 [15:31: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 0C 01 00 00 1E 97 04 01 83 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 90 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 00 00 00 00 00 00 39 04 06 00 90 A9 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 46 F9 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 D3 DA 02 00 35 04 06 00 F4 C4 5A AF FF 8F A4 8B F3 6B A6 15 5F F2 [15:31:15]CheckFolder [15:31:15]dirname=/storage/ofd_packets [15:31:15]CheckFolder done [15:31:15]ProducePacketName [15:31:15]name=ofd_packets/00187091 [15:31:15]NVStorageSaveData ofd_packets/00187091 [15:31:15]File name is /storage/ofd_packets/00187091 [15:31:15]Write 298 bytes [15:31:15]NVStorageSaveData done [15:31:15]OFDSenderStorePacket done [15:31:15]KKMCreateOFDPacket done [15:31:15]NVStorageSaveData kkm_last_timestamp [15:31:15]File name is /storage/kkm_last_timestamp [15:31:15]Write 4 bytes [15:31:15]NVStorageSaveData done [15:31:15]ExternCall_PrintAddStr [15:31:15]wPrintStart [15:31:15]Write to MH i2c: 01 00 00 A7 2E D5 [15:31:15]Write i2c OK [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: 01 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: 01 07 00 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: 01 07 00 A7 2E 00 00 00 00 00 FF 0F EA [15:31:15]RasterBufferAndPrint [15:31:15]line Счет N : (1)412242 [15:31:15]line ИНН: 02508201610067 [15:31:15]line Контрольно-Кассовый Чек [15:31:15]line ПРОДАЖА [15:31:15]line ТРК (МРК, ГНК) : 6 [15:31:15]line Товар: 2710194210 [15:31:15]line ДТ-К-5 [15:31:15]line 33.060 * 72.60 [15:31:15]line = 2400.16 [15:31:15]line НДС 12% НСП 1% [15:31:15]line > о реализуемом товаре [15:31:15]line ИТОГО: 2400.16 [15:31:15]line НСП 1% : 21.24 [15:31:15]line НДС 12% : 254.88 [15:31:15]line Наличными: 0.00 [15:31:15]line Безнал.: 2400.16 [15:31:15]line Место: АЗС № 92 "Партнер Нефть" [15:31:15]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:31:15]line СНО: Общий режим [15:31:15]line Чек 157 19.02.2025 15:31 [15:31:15]line Смена: 647 ФФД: 1.0 [15:31:15]line ЗНМ: 0300000118 [15:31:15]line РНМ: 0000000000091857 [15:31:15]line Версия ККМ: 001 [15:31:15]line Платежная система: O! деньги [15:31:15]line ФМ: 0000000000871826 [15:31:15]line ФД: 187091 [15:31:15]line ФПД: 269124172251023 [15:31:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T153118&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187091&fm=269124172251023&tin=02508201610067®Number=0000000000091857&sum=240016 [15:31:16]OFD Sender: Processing packet 187091 [packets to send 49, broken 48] [15:31:16]ProducePacketName [15:31:16]name=ofd_packets/00187091 [15:31:16]OFD Sender: To server: pG, [15:31:16]CommunicateWithHost lk.salyk.kg:30040 [15:31:16]ConnectInit lk.salyk.kg [15:31:16]written 0, free lines is 4095 [15:31:16]Connected sock=10 [15:31: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 0C 01 00 00 1E 97 04 01 83 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 90 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 00 00 00 00 00 00 39 04 06 00 90 A9 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 46 F9 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 D3 DA 02 00 35 04 06 00 F4 C4 5A AF FF 8F A4 8B F3 6B A6 15 5F F2 [15:31:16]Write to MH i2c: 01 00 00 D1 2E FF [15:31:16]Write i2c OK [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: 01 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: 01 07 00 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: 01 07 00 D1 2E 00 00 00 00 00 03 0D 16 [15:31:16]RasterBufferAndPrint [15:31:16]line [15:31:16]line [15:31:16]line [15:31:16]line [15:31:16]line [15:31:16]written 0, free lines is 3340 [15:31:16]MH_Cut [15:31:16]Write to MH i2c: D1 01 00 D8 2E 01 D8 [15:31:16]Write i2c OK [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: D1 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: D1 01 00 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: D1 01 00 D8 2E 00 D7 [15:31:16]Write to MH i2c: 01 00 00 D9 2E 07 [15:31:16]Write i2c OK [15:31:16]MH_I2C_Read... [15:31: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 64 D2 47 00 B4 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 D3 DA 02 00 F4 03 04 00 9A 9F B5 67 B6 04 01 00 00 AB B1 8C 9D 7E A9 C1 AA [15:31:16]CommunicateWithHost err = 0 [15:31:16]CheckOFDResponse [15:31:16]1017 (14) - 77093643461234 [15:31:16]1041 (16) - 0000000000871826 [15:31:16]1040 (4) - 187091 [15:31:16]1012 (4) - 19.02.2025 09:08 [15:31:16]1206 (1) - 0 [15:31:16]OFD Sender: Remove packet 187091 [15:31:16]ProducePacketName [15:31:16]name=ofd_packets/00187091 [15:31:16]NVStorageDeleteData [15:31:17]OFD Sender: No OFD packet to send [15:31:17]*** Cut start [15:31:17]*** Partial cut [15:31:17]*** CUTSNS_PIN = 1 [15:31:17]*** CUTSNS_PIN = 0 [15:31:17]*** Brake cut motor [15:31:18]Read from MH i2c: 01 [15:31:18]MH_I2C_Read... [15:31:18]*** Stop cut motor [15:31:18]*** Cut end [15:31:18]Read from MH i2c: 01 07 00 [15:31:18]MH_I2C_Read... [15:31:18]Read from MH i2c: 01 07 00 D9 2E 00 00 00 00 00 FF 0F 1C [15:31:18]process_action close_receipt done [15:31:18]requested_data is exist [15:31:18]produce_requested_data [15:31:18]requested_item fm.sn is exist - process it [15:31:18]wFMCommunicate request_size=4 [15:31:18]MH_SAM_APDU [15:31:18]CAPDU: 80 11 00 00 [15:31:18]Write to MH i2c: E2 08 00 DA 2E 80 11 00 00 00 00 00 00 82 [15:31:18]Write i2c OK [15:31:18]MH_I2C_Read... [15:31:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:18]Read from MH i2c: E2 [15:31:18]MH_I2C_Read... [15:31:18]Read from MH i2c: E2 17 00 [15:31:18]MH_I2C_Read... [15:31:18]Read from MH i2c: E2 17 00 DA 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D5 [15:31: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:31:18]wFMCommunicate OK [15:31:18]requested_item fd.num is exist - process it [15:31:18]SAM_PROTO_GetFieldsCounters [15:31:18]wFMCommunicate request_size=4 [15:31:18]MH_SAM_APDU [15:31:18]CAPDU: 80 13 00 00 [15:31:18]Write to MH i2c: E2 08 00 DB 2E 80 13 00 00 00 00 00 00 85 [15:31:18]Write i2c OK [15:31:18]MH_I2C_Read... [15:31:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:18]Read from MH i2c: E2 [15:31:18]MH_I2C_Read... [15:31:18]Read from MH i2c: E2 62 00 [15:31:18]MH_I2C_Read... [15:31:18]Read from MH i2c: E2 62 00 DB 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 D3 DA 02 00 0E 04 04 00 87 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 [15:31: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 D3 DA 02 00 0E 04 04 00 87 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 [15:31:18]wFMCommunicate OK [15:31:18]SAM_PROTO_GetFieldsCounters done [15:31:18]requested_item shift.num is exist - process it [15:31:18]requested_item shift.opened is exist - process it [15:31:18]req_shift_opened [15:31:18]FM_GetShiftState [15:31:18]SAM_PROTO_GetShiftState [15:31:18]wFMCommunicate request_size=4 [15:31:18]MH_SAM_APDU [15:31:18]CAPDU: 80 13 01 00 [15:31:18]Write to MH i2c: E2 08 00 DC 2E 80 13 01 00 00 00 00 00 87 [15:31:18]Write i2c OK [15:31:18]MH_I2C_Read... [15:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:18]Read from MH i2c: E2 [15:31:18]MH_I2C_Read... [15:31:18]Read from MH i2c: E2 0E 00 [15:31:18]MH_I2C_Read... [15:31:18]Read from MH i2c: E2 0E 00 DC 2E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 06 [15:31:18]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:31:18]wFMCommunicate OK [15:31:18]SAM_PROTO_GetShiftState done [15:31:18]FM_GetShiftState done [15:31:18]req_shift_opened done [15:31:18]requested_item shift.open_date is exist - process it [15:31:18]req_shift_open_date [15:31:18]req_shift_open_date done [15:31:18]produce_requested_data done [15:31:18]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187091,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:31:18]process_action_free close_receipt [15:31:18]json_value_free [15:31:18]json_value_free done [15:31:18]process_json_proto returns [15:31:18]Send response to host [15:31:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187091,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:31:18]free response buf [15:31:18]execute_script done [15:31:18]execute_script returns [15:31:18]free content buf [15:31:18]Sock 7.Close socket [15:31:18]Sock 7.Thread stoped [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:11]accept exits with 9 [15:34:11]New connection [15:34:11]New thread 3066879332 created [15:34:11]Thread 3067022692 joined [15:34:11]Waiting for new connection... [15:34:11] Sock 9.Parse request [15:34:11]Sock 9.Check first char [15:34:11]Sock 9.First char is OK [15:34:11]request: POST /json_proto HTTP/1.0 [15:34:11]Method: POST [15:34:11]URL: /json_proto [15:34:11]Method is POST - this is cgi request [15:34:11]url: /json_proto [15:34:11]query_string will be loaded in cgi processing [15:34:11]execute_cgi json_proto POST (null) [15:34:11]execute_cgi path=json_proto method=POST [15:34:11]POST find Content-Length [15:34:11]Host: 172.17.46.131:8080 [15:34:11]Content-Length: 682 [15:34:11]Content-Type: application/json [15:34:11] [15:34:11]POST finish read [15:34:11]Found Content-Length = 682 [15:34:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412243", "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.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" ] } } [15:34:11]execute_script... [15:34: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)412243", "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.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" ] } } [15:34:11]POST & json_proto [15:34:11]process_json_proto [15:34:11]json parsed OK: [15:34:11]protocol is kg_v1.0 [15:34:11]action value=close_receipt [15:34:11]process_action close_receipt [15:34:11]cmd_close_receipt [15:34:11]MH_GetDate [15:34:11]Write to MH i2c: F0 00 00 DD 2E FA [15:34:11]Write i2c OK [15:34:11]MH_I2C_Read... [15:34:11]Read from MH i2c: F0 [15:34:11]MH_I2C_Read... [15:34:11]Read from MH i2c: F0 09 00 [15:34:11]MH_I2C_Read... [15:34:11]Read from MH i2c: F0 09 00 DD 2E 00 F7 F9 B5 67 7E 41 4F 65 82 [15:34:11]GetLastDocTimeStamp 1739979078 [15:34:11]current date 1739979255 [15:34:11]FM_GetShiftState [15:34:11]SAM_PROTO_GetShiftState [15:34:11]wFMCommunicate request_size=4 [15:34:11]MH_SAM_APDU [15:34:11]CAPDU: 80 13 01 00 [15:34:11]Write to MH i2c: E2 08 00 DE 2E 80 13 01 00 00 00 00 00 89 [15:34:11]Write i2c OK [15:34:11]MH_I2C_Read... [15:34:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:11]Read from MH i2c: E2 [15:34:11]MH_I2C_Read... [15:34:11]Read from MH i2c: E2 0E 00 [15:34:11]MH_I2C_Read... [15:34:11]Read from MH i2c: E2 0E 00 DE 2E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 08 [15:34:11]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:34:11]wFMCommunicate OK [15:34:11]SAM_PROTO_GetShiftState done [15:34:11]FM_GetShiftState done [15:34:11]opened in 1739929631 [15:34:11]opened+sec_in_day 1740016031 [15:34:11]quantity*price = 200047 [15:34:11]sum+1 = 200048 [15:34:11]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 СНО: Общий режим Чек 158 19.02.2025 15:34 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187092 ФПД: 28349713208833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T153415&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187092&fm=28349713208833&tin=02508201610067®Number=0000000000091857&sum=200000 [15:34:13]StoreToDocumentArchive [15:34:13]shift 647 fd 187092 [15:34:13]save to /storage/0647/doc_00187092 [15:34:13]save last doc name /storage/0647/doc_00187092 to /storage/kkm_last_doc_name [15:34:13]save OK [15:34:13]Clear old archive folders... [15:34:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:34:13]tlvbuf is 005E2570 [15:34:13]SAM_PROTO_ClearQueue [15:34:13]wFMCommunicate request_size=4 [15:34:13]MH_SAM_APDU [15:34:13]CAPDU: 80 09 00 00 [15:34:13]Write to MH i2c: E2 08 00 EB 2E 80 09 00 00 00 00 00 00 8B [15:34:13]Write i2c OK [15:34:13]MH_I2C_Read... [15:34:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:13]Read from MH i2c: E2 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 03 00 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 03 00 EB 2E 00 90 00 8D [15:34:13]RAPDU: 90 00 [15:34:13]wFMCommunicate OK [15:34:13]SAM_PROTO_ClearQueue done [15:34:13]KKMCreateOFDPacket [15:34:13]OFDProtocolAddRootSTLVToBuf [15:34:13]FM_MakeSignedData [15:34:13]FM_MakeSignedData [15:34:13]SAM_PROTO_SignData [15:34:13]wFMCommunicate request_size=4 [15:34:13]MH_SAM_APDU [15:34:13]CAPDU: 80 0D 01 02 [15:34:13]Write to MH i2c: E2 08 00 EC 2E 80 0D 01 02 00 00 00 00 93 [15:34:13]Write i2c OK [15:34:13]MH_I2C_Read... [15:34:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:13]Read from MH i2c: E2 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 03 00 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 03 00 EC 2E 00 90 00 8E [15:34:13]RAPDU: 90 00 [15:34:13]wFMCommunicate OK [15:34:13]wFMCommunicate request_size=255 [15:34:13]MH_SAM_APDU [15:34: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 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 9E 00 00 00 F4 03 04 00 F7 F9 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 D4 DA 02 00 35 04 06 00 19 [15:34:13]Write to MH i2c: E2 02 01 ED 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 9E 00 00 00 F4 03 04 00 F7 F9 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 D4 DA 02 00 35 04 06 00 19 00 00 56 [15:34:13]Write i2c OK [15:34:13]MH_I2C_Read... [15:34:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:13]Read from MH i2c: E2 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 03 00 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 03 00 ED 2E 00 90 00 8F [15:34:13]RAPDU: 90 00 [15:34:13]wFMCommunicate OK [15:34:13]wFMCommunicate request_size=10 [15:34:13]MH_SAM_APDU [15:34:13]CAPDU: 80 0D 02 02 05 C8 AE 95 D6 01 [15:34:13]Write to MH i2c: E2 0D 00 EE 2E 80 0D 02 02 05 00 C8 AE 95 D6 01 00 00 82 [15:34:13]Write i2c OK [15:34:13]MH_I2C_Read... [15:34:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:13]Read from MH i2c: E2 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 03 00 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 03 00 EE 2E 00 90 00 90 [15:34:13]RAPDU: 90 00 [15:34:13]wFMCommunicate OK [15:34:13]wFMCommunicate request_size=4 [15:34:13]MH_SAM_APDU [15:34:13]CAPDU: 80 0D 03 02 [15:34:13]Write to MH i2c: E2 08 00 EF 2E 80 0D 03 02 00 00 00 00 98 [15:34:13]Write i2c OK [15:34:13]MH_I2C_Read... [15:34:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:13]Read from MH i2c: E2 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 0B 00 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 0B 00 EF 2E 00 5C 20 F4 36 89 66 92 0A 90 00 CA [15:34:13]RAPDU: 5C 20 F4 36 89 66 92 0A 90 00 [15:34:13]wFMCommunicate OK [15:34:13]SAM_PROTO_SignData done [15:34:13]FM_MakeSignedData done [15:34:13]CreateOFDProtocolMessage [15:34:13]wFMCommunicate request_size=4 [15:34:13]MH_SAM_APDU [15:34:13]CAPDU: 80 11 00 00 [15:34:13]Write to MH i2c: E2 08 00 F0 2E 80 11 00 00 00 00 00 00 98 [15:34:13]Write i2c OK [15:34:13]MH_I2C_Read... [15:34:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:13]Read from MH i2c: E2 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 17 00 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 17 00 F0 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EB [15:34:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:34:13]wFMCommunicate OK [15:34:13]CreateOFDProtocolMessage done [15:34:13]OFDSenderStorePacket 187092 [15:34:13]StoreOFDPacket docnum=187092 [15:34: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 D7 D3 07 01 A6 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 9E 00 00 00 F4 03 04 00 F7 F9 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 D4 DA 02 00 35 04 06 00 19 C8 AE 95 D6 01 5C 20 F4 36 89 66 92 0A [15:34:13]CheckFolder [15:34:13]dirname=/storage/ofd_packets [15:34:13]CheckFolder done [15:34:13]ProducePacketName [15:34:13]name=ofd_packets/00187092 [15:34:13]NVStorageSaveData ofd_packets/00187092 [15:34:13]File name is /storage/ofd_packets/00187092 [15:34:13]Write 301 bytes [15:34:13]NVStorageSaveData done [15:34:13]OFDSenderStorePacket done [15:34:13]KKMCreateOFDPacket done [15:34:13]NVStorageSaveData kkm_last_timestamp [15:34:13]File name is /storage/kkm_last_timestamp [15:34:13]Write 4 bytes [15:34:13]NVStorageSaveData done [15:34:13]ExternCall_PrintAddStr [15:34:13]wPrintStart [15:34:13]Write to MH i2c: 01 00 00 F1 2E 1F [15:34:13]OFD Sender: Processing packet 187092 [packets to send 49, broken 48] [15:34:13]ProducePacketName [15:34:13]name=ofd_packets/00187092 [15:34:13]OFD Sender: To server: pG, [15:34:13]CommunicateWithHost lk.salyk.kg:30040 [15:34:13]ConnectInit lk.salyk.kg [15:34:13]Write i2c OK [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: 01 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: 01 07 00 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: 01 07 00 F1 2E 00 00 00 00 00 FF 0F 34 [15:34:13]RasterBufferAndPrint [15:34:13]line Счет N : (1)412243 [15:34:13]line ИНН: 02508201610067 [15:34:13]line Контрольно-Кассовый Чек [15:34:13]line ПРОДАЖА [15:34:13]line ТРК (МРК, ГНК) : 22 [15:34:13]line Товар: 2710124130 [15:34:13]line Аи-92-К-2 [15:34:13]line 31.160 * 64.20 [15:34:13]line = 2000.47 [15:34:13]line НДС 12% НСП 1% [15:34:13]line > о реализуемом товаре [15:34:13]line ОКРУГЛЕНИЕ: -0.47 [15:34:13]line ИТОГО: 2000.00 [15:34:13]line Внесено: 2000.00 [15:34:13]line СДАЧА: 0.00 [15:34:13]line НСП 1% : 17.70 [15:34:13]line НДС 12% : 212.44 [15:34:13]line Наличными: 2000.00 [15:34:13]line Безнал.: 0.00 [15:34:13]line Место: АЗС № 92 "Партнер Нефть" [15:34:13]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:34:13]line СНО: Общий режим [15:34:13]line Чек 158 19.02.2025 15:34 [15:34:13]line Смена: 647 ФФД: 1.0 [15:34:13]line ЗНМ: 0300000118 [15:34:13]line РНМ: 0000000000091857 [15:34:13]line Версия ККМ: 001 [15:34:13]line ФМ: 0000000000871826 [15:34:13]line ФД: 187092 [15:34:13]line ФПД: 28349713208833 [15:34:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T153415&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187092&fm=28349713208833&tin=02508201610067®Number=0000000000091857&sum=200000 [15:34:13]Connected sock=10 [15:34:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D7 D3 07 01 A6 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 9E 00 00 00 F4 03 04 00 F7 F9 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 D4 DA 02 00 35 04 06 00 19 C8 AE 95 D6 01 5C 20 F4 36 89 66 92 0A [15:34:14]written 0, free lines is 4095 [15:34: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 11 80 47 00 22 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 D4 DA 02 00 F4 03 04 00 4B A0 B5 67 B6 04 01 00 00 02 A0 E4 B5 3B FE 87 AE [15:34:14]CommunicateWithHost err = 0 [15:34:14]CheckOFDResponse [15:34:14]1017 (14) - 77093643461234 [15:34:14]1041 (16) - 0000000000871826 [15:34:14]1040 (4) - 187092 [15:34:14]1012 (4) - 19.02.2025 09:11 [15:34:14]1206 (1) - 0 [15:34:14]OFD Sender: Remove packet 187092 [15:34:14]ProducePacketName [15:34:14]name=ofd_packets/00187092 [15:34:14]NVStorageDeleteData [15:34:14]Write to MH i2c: 01 00 00 1C 2F 4B [15:34:14]Write i2c OK [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: 01 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: 01 07 00 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: 01 07 00 1C 2F 00 00 00 00 00 EE 0C 4C [15:34:14]RasterBufferAndPrint [15:34:14]line [15:34:14]line [15:34:14]line [15:34:14]line [15:34:14]line [15:34:14]written 0, free lines is 3316 [15:34:14]MH_Cut [15:34:14]Write to MH i2c: D1 01 00 23 2F 01 24 [15:34:14]Write i2c OK [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: D1 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: D1 01 00 [15:34:14]MH_I2C_Read... [15:34:14]Read from MH i2c: D1 01 00 23 2F 00 23 [15:34:14]Write to MH i2c: 01 00 00 24 2F 53 [15:34:14]Write i2c OK [15:34:14]MH_I2C_Read... [15:34:14]OFD Sender: No OFD packet to send [15:34:15]*** Cut start [15:34:15]*** Partial cut [15:34:15]*** CUTSNS_PIN = 1 [15:34:15]*** CUTSNS_PIN = 0 [15:34:15]*** Brake cut motor [15:34:15]Read from MH i2c: 01 [15:34:15]MH_I2C_Read... [15:34:15]*** Stop cut motor [15:34:15]*** Cut end [15:34:15]Read from MH i2c: 01 07 00 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: 01 07 00 24 2F 00 00 00 00 00 FF 0F 68 [15:34:15]process_action close_receipt done [15:34:15]requested_data is exist [15:34:15]produce_requested_data [15:34:15]requested_item fm.sn is exist - process it [15:34:15]wFMCommunicate request_size=4 [15:34:15]MH_SAM_APDU [15:34:15]CAPDU: 80 11 00 00 [15:34:15]Write to MH i2c: E2 08 00 25 2F 80 11 00 00 00 00 00 00 CE [15:34:15]Write i2c OK [15:34:15]MH_I2C_Read... [15:34:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:15]Read from MH i2c: E2 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: E2 17 00 [15:34:15]MH_I2C_Read... [15:34:15]Read from MH i2c: E2 17 00 25 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 21 [15:34:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:34:15]wFMCommunicate OK [15:34:15]requested_item fd.num is exist - process it [15:34:15]SAM_PROTO_GetFieldsCounters [15:34:15]wFMCommunicate request_size=4 [15:34:15]MH_SAM_APDU [15:34:15]CAPDU: 80 13 00 00 [15:34:15]Write to MH i2c: E2 08 00 26 2F 80 13 00 00 00 00 00 00 D1 [15:34:15]Write i2c OK [15:34:15]MH_I2C_Read... [15:34:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:16]Read from MH i2c: E2 [15:34:16]MH_I2C_Read... [15:34:16]Read from MH i2c: E2 62 00 [15:34:16]MH_I2C_Read... [15:34:16]Read from MH i2c: E2 62 00 26 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 D4 DA 02 00 0E 04 04 00 87 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 0A [15:34:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [15:34:16]wFMCommunicate OK [15:34:16]SAM_PROTO_GetFieldsCounters done [15:34:16]requested_item shift.num is exist - process it [15:34:16]requested_item shift.opened is exist - process it [15:34:16]req_shift_opened [15:34:16]FM_GetShiftState [15:34:16]SAM_PROTO_GetShiftState [15:34:16]wFMCommunicate request_size=4 [15:34:16]MH_SAM_APDU [15:34:16]CAPDU: 80 13 01 00 [15:34:16]Write to MH i2c: E2 08 00 27 2F 80 13 01 00 00 00 00 00 D3 [15:34:16]Write i2c OK [15:34:16]MH_I2C_Read... [15:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:16]Read from MH i2c: E2 [15:34:16]MH_I2C_Read... [15:34:16]Read from MH i2c: E2 0E 00 [15:34:16]MH_I2C_Read... [15:34:16]Read from MH i2c: E2 0E 00 27 2F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 52 [15:34:16]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:34:16]wFMCommunicate OK [15:34:16]SAM_PROTO_GetShiftState done [15:34:16]FM_GetShiftState done [15:34:16]req_shift_opened done [15:34:16]requested_item shift.open_date is exist - process it [15:34:16]req_shift_open_date [15:34:16]req_shift_open_date done [15:34:16]produce_requested_data done [15:34:16]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187092,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:34:16]process_action_free close_receipt [15:34:16]json_value_free [15:34:16]json_value_free done [15:34:16]process_json_proto returns [15:34:16]Send response to host [15:34:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187092,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:34:16]free response buf [15:34:16]execute_script done [15:34:16]execute_script returns [15:34:16]free content buf [15:34:16]Sock 9.Close socket [15:34:16]Sock 9.Thread stoped [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:48]accept exits with 7 [15:35:48]New connection [15:35:48]New thread 3067022692 created [15:35:48]Thread 3066879332 joined [15:35:48]Waiting for new connection... [15:35:48] Sock 7.Parse request [15:35:48]Sock 7.Check first char [15:35:48]Sock 7.First char is OK [15:35:48]request: POST /json_proto HTTP/1.0 [15:35:48]Method: POST [15:35:48]URL: /json_proto [15:35:48]Method is POST - this is cgi request [15:35:48]url: /json_proto [15:35:48]query_string will be loaded in cgi processing [15:35:48]execute_cgi json_proto POST (null) [15:35:48]execute_cgi path=json_proto method=POST [15:35:48]POST find Content-Length [15:35:48]Host: 172.17.46.131:8080 [15:35:48]Content-Length: 803 [15:35:48]Content-Type: application/json [15:35:48] [15:35:48]POST finish read [15:35:48]Found Content-Length = 803 [15:35:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412244", "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" ] } } [15:35:48]execute_script... [15:35: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)412244", "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" ] } } [15:35:48]POST & json_proto [15:35:48]process_json_proto [15:35:48]json parsed OK: [15:35:48]protocol is kg_v1.0 [15:35:48]action value=close_receipt [15:35:48]process_action close_receipt [15:35:48]cmd_close_receipt [15:35:48]MH_GetDate [15:35:48]Write to MH i2c: F0 00 00 28 2F 46 [15:35:48]Write i2c OK [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: F0 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: F0 09 00 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: F0 09 00 28 2F 00 58 FA B5 67 7E 41 4F 65 30 [15:35:48]GetLastDocTimeStamp 1739979255 [15:35:48]current date 1739979352 [15:35:48]FM_GetShiftState [15:35:48]SAM_PROTO_GetShiftState [15:35:48]wFMCommunicate request_size=4 [15:35:48]MH_SAM_APDU [15:35:48]CAPDU: 80 13 01 00 [15:35:48]Write to MH i2c: E2 08 00 29 2F 80 13 01 00 00 00 00 00 D5 [15:35:48]Write i2c OK [15:35:48]MH_I2C_Read... [15:35:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:48]Read from MH i2c: E2 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 0E 00 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 0E 00 29 2F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 54 [15:35:48]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:35:48]wFMCommunicate OK [15:35:48]SAM_PROTO_GetShiftState done [15:35:48]FM_GetShiftState done [15:35:48]opened in 1739929631 [15:35:48]opened+sec_in_day 1740016031 [15:35:48]quantity*price = 100023 [15:35:48]sum+1 = 100025 [15:35:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 159 19.02.2025 15:35 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187093 ФПД: 94414937198992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T153552&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187093&fm=94414937198992&tin=02508201610067®Number=0000000000091857&sum=100024 [15:35:49]StoreToDocumentArchive [15:35:49]shift 647 fd 187093 [15:35:49]save to /storage/0647/doc_00187093 [15:35:49]save last doc name /storage/0647/doc_00187093 to /storage/kkm_last_doc_name [15:35:49]save OK [15:35:49]Clear old archive folders... [15:35:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:49]tlvbuf is 00641BC0 [15:35:49]SAM_PROTO_ClearQueue [15:35:49]wFMCommunicate request_size=4 [15:35:49]MH_SAM_APDU [15:35:49]CAPDU: 80 09 00 00 [15:35:49]Write to MH i2c: E2 08 00 36 2F 80 09 00 00 00 00 00 00 D7 [15:35:49]Write i2c OK [15:35:49]MH_I2C_Read... [15:35:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:49]Read from MH i2c: E2 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: E2 03 00 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: E2 03 00 36 2F 00 90 00 D9 [15:35:49]RAPDU: 90 00 [15:35:49]wFMCommunicate OK [15:35:49]SAM_PROTO_ClearQueue done [15:35:49]KKMCreateOFDPacket [15:35:49]OFDProtocolAddRootSTLVToBuf [15:35:49]FM_MakeSignedData [15:35:49]FM_MakeSignedData [15:35:49]SAM_PROTO_SignData [15:35:49]wFMCommunicate request_size=4 [15:35:49]MH_SAM_APDU [15:35:49]CAPDU: 80 0D 01 02 [15:35:49]Write to MH i2c: E2 08 00 37 2F 80 0D 01 02 00 00 00 00 DF [15:35:49]Write i2c OK [15:35:49]MH_I2C_Read... [15:35:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:49]Read from MH i2c: E2 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: E2 03 00 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: E2 03 00 37 2F 00 90 00 DA [15:35:49]RAPDU: 90 00 [15:35:49]wFMCommunicate OK [15:35:49]wFMCommunicate request_size=255 [15:35:49]MH_SAM_APDU [15:35: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 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 9F 00 00 00 F4 03 04 00 58 FA 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 D5 DA 02 00 35 04 06 00 55 [15:35:49]Write to MH i2c: E2 02 01 38 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 9F 00 00 00 F4 03 04 00 58 FA 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 D5 DA 02 00 35 04 06 00 55 00 00 A8 [15:35:49]Write i2c OK [15:35:49]MH_I2C_Read... [15:35:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:49]Read from MH i2c: E2 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: E2 03 00 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: E2 03 00 38 2F 00 90 00 DB [15:35:49]RAPDU: 90 00 [15:35:49]wFMCommunicate OK [15:35:49]wFMCommunicate request_size=10 [15:35:49]MH_SAM_APDU [15:35:49]CAPDU: 80 0D 02 02 05 DE B0 CB 11 90 [15:35:49]Write to MH i2c: E2 0D 00 39 2F 80 0D 02 02 05 00 DE B0 CB 11 90 00 00 E6 [15:35:49]Write i2c OK [15:35:49]MH_I2C_Read... [15:35:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:49]Read from MH i2c: E2 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: E2 03 00 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: E2 03 00 39 2F 00 90 00 DC [15:35:49]RAPDU: 90 00 [15:35:49]wFMCommunicate OK [15:35:49]wFMCommunicate request_size=4 [15:35:49]MH_SAM_APDU [15:35:49]CAPDU: 80 0D 03 02 [15:35:49]Write to MH i2c: E2 08 00 3A 2F 80 0D 03 02 00 00 00 00 E4 [15:35:49]Write i2c OK [15:35:49]MH_I2C_Read... [15:35:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:49]Read from MH i2c: E2 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: E2 0B 00 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: E2 0B 00 3A 2F 00 FE 24 F6 5D 4B 44 18 56 90 00 57 [15:35:49]RAPDU: FE 24 F6 5D 4B 44 18 56 90 00 [15:35:49]wFMCommunicate OK [15:35:49]SAM_PROTO_SignData done [15:35:49]FM_MakeSignedData done [15:35:49]CreateOFDProtocolMessage [15:35:49]wFMCommunicate request_size=4 [15:35:49]MH_SAM_APDU [15:35:49]CAPDU: 80 11 00 00 [15:35:49]Write to MH i2c: E2 08 00 3B 2F 80 11 00 00 00 00 00 00 E4 [15:35:49]Write i2c OK [15:35:49]MH_I2C_Read... [15:35:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:49]Read from MH i2c: E2 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: E2 17 00 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: E2 17 00 3B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 37 [15:35:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:35:49]wFMCommunicate OK [15:35:49]CreateOFDProtocolMessage done [15:35:49]OFDSenderStorePacket 187093 [15:35:49]StoreOFDPacket docnum=187093 [15:35: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 D4 5D 07 01 46 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 9F 00 00 00 F4 03 04 00 58 FA 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 D5 DA 02 00 35 04 06 00 55 DE B0 CB 11 90 FE 24 F6 5D 4B 44 18 56 [15:35:49]CheckFolder [15:35:49]dirname=/storage/ofd_packets [15:35:49]CheckFolder done [15:35:49]ProducePacketName [15:35:49]name=ofd_packets/00187093 [15:35:49]NVStorageSaveData ofd_packets/00187093 [15:35:49]File name is /storage/ofd_packets/00187093 [15:35:49]Write 301 bytes [15:35:49]NVStorageSaveData done [15:35:49]OFDSenderStorePacket done [15:35:49]KKMCreateOFDPacket done [15:35:49]NVStorageSaveData kkm_last_timestamp [15:35:49]File name is /storage/kkm_last_timestamp [15:35:49]Write 4 bytes [15:35:49]NVStorageSaveData done [15:35:49]ExternCall_PrintAddStr [15:35:49]wPrintStart [15:35:49]Write to MH i2c: 01 00 00 3C 2F 6B [15:35:49]Write i2c OK [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: 01 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: 01 07 00 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: 01 07 00 3C 2F 00 00 00 00 00 FF 0F 80 [15:35:49]RasterBufferAndPrint [15:35:49]line Счет N : (1)412244 [15:35:49]line ИНН: 02508201610067 [15:35:49]line Контрольно-Кассовый Чек [15:35:49]line ПРОДАЖА [15:35:49]line ТРК (МРК, ГНК) : 42 [15:35:49]line Товар: 2710124130 [15:35:49]line Аи-92-К-2 [15:35:49]line 15.580 * 64.20 [15:35:49]line = 1000.24 [15:35:49]line НДС 12% НСП 1% [15:35:49]line > о реализуемом товаре [15:35:49]line ИТОГО: 1000.24 [15:35:49]line НСП 1% : 8.85 [15:35:49]line НДС 12% : 106.22 [15:35:49]line Наличными: 0.00 [15:35:49]line Безнал.: 1000.24 [15:35:49]line Место: АЗС № 92 "Партнер Нефть" [15:35:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:35:49]line СНО: Общий режим [15:35:49]line Чек 159 19.02.2025 15:35 [15:35:49]line Смена: 647 ФФД: 1.0 [15:35:49]line ЗНМ: 0300000118 [15:35:49]line РНМ: 0000000000091857 [15:35:49]line Версия ККМ: 001 [15:35:49]line Платежная система: O! деньги [15:35:49]line ФМ: 0000000000871826 [15:35:49]line ФД: 187093 [15:35:49]line ФПД: 94414937198992 [15:35:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T153552&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187093&fm=94414937198992&tin=02508201610067®Number=0000000000091857&sum=100024 [15:35:50]written 0, free lines is 4095 [15:35:50]OFD Sender: Processing packet 187093 [packets to send 49, broken 48] [15:35:50]ProducePacketName [15:35:50]name=ofd_packets/00187093 [15:35:50]OFD Sender: To server: pG, [15:35:50]CommunicateWithHost lk.salyk.kg:30040 [15:35:50]ConnectInit lk.salyk.kg [15:35:50]Connected sock=10 [15:35: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 D4 5D 07 01 46 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 9F 00 00 00 F4 03 04 00 58 FA 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 D5 DA 02 00 35 04 06 00 55 DE B0 CB 11 90 FE 24 F6 5D 4B 44 18 56 [15:35:50]Write to MH i2c: 01 00 00 66 2F 95 [15:35:50]Write i2c OK [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: 01 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: 01 07 00 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: 01 07 00 66 2F 00 00 00 00 00 FB 0C A3 [15:35:50]RasterBufferAndPrint [15:35:50]line [15:35:50]line [15:35:50]line [15:35:50]line [15:35:50]line [15:35:50]written 0, free lines is 3332 [15:35:50]MH_Cut [15:35:50]Write to MH i2c: D1 01 00 6D 2F 01 6E [15:35:50]Write i2c OK [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: D1 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: D1 01 00 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: D1 01 00 6D 2F 00 6D [15:35:50]Write to MH i2c: 01 00 00 6E 2F 9D [15:35: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 DD 92 47 00 0D 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 D5 DA 02 00 F4 03 04 00 AB A0 B5 67 B6 04 01 00 00 03 D2 92 1B FB 13 FC F9 [15:35:50]CommunicateWithHost err = 0 [15:35:50]CheckOFDResponse [15:35:50]1017 (14) - 77093643461234 [15:35:50]1041 (16) - 0000000000871826 [15:35:50]1040 (4) - 187093 [15:35:50]1012 (4) - 19.02.2025 09:13 [15:35:50]1206 (1) - 0 [15:35:50]OFD Sender: Remove packet 187093 [15:35:50]ProducePacketName [15:35:50]name=ofd_packets/00187093 [15:35:50]NVStorageDeleteData [15:35:50]Write i2c OK [15:35:50]MH_I2C_Read... [15:35:51]OFD Sender: No OFD packet to send [15:35:51]*** Cut start [15:35:51]*** Partial cut [15:35:51]*** CUTSNS_PIN = 1 [15:35:51]*** CUTSNS_PIN = 0 [15:35:51]*** Brake cut motor [15:35:51]Read from MH i2c: 01 [15:35:52]MH_I2C_Read... [15:35:52]*** Stop cut motor [15:35:52]*** Cut end [15:35:52]Read from MH i2c: 01 07 00 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: 01 07 00 6E 2F 00 00 00 00 00 FF 0F B2 [15:35:52]process_action close_receipt done [15:35:52]requested_data is exist [15:35:52]produce_requested_data [15:35:52]requested_item fm.sn is exist - process it [15:35:52]wFMCommunicate request_size=4 [15:35:52]MH_SAM_APDU [15:35:52]CAPDU: 80 11 00 00 [15:35:52]Write to MH i2c: E2 08 00 6F 2F 80 11 00 00 00 00 00 00 18 [15:35:52]Write i2c OK [15:35:52]MH_I2C_Read... [15:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:52]Read from MH i2c: E2 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 17 00 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 17 00 6F 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6B [15: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 [15:35:52]wFMCommunicate OK [15:35:52]requested_item fd.num is exist - process it [15:35:52]SAM_PROTO_GetFieldsCounters [15:35:52]wFMCommunicate request_size=4 [15:35:52]MH_SAM_APDU [15:35:52]CAPDU: 80 13 00 00 [15:35:52]Write to MH i2c: E2 08 00 70 2F 80 13 00 00 00 00 00 00 1B [15:35:52]Write i2c OK [15:35:52]MH_I2C_Read... [15:35:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:52]Read from MH i2c: E2 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 62 00 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 62 00 70 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 D5 DA 02 00 0E 04 04 00 87 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 58 [15: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 D5 DA 02 00 0E 04 04 00 87 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 [15:35:52]wFMCommunicate OK [15:35:52]SAM_PROTO_GetFieldsCounters done [15:35:52]requested_item shift.num is exist - process it [15:35:52]requested_item shift.opened is exist - process it [15:35:52]req_shift_opened [15:35:52]FM_GetShiftState [15:35:52]SAM_PROTO_GetShiftState [15:35:52]wFMCommunicate request_size=4 [15:35:52]MH_SAM_APDU [15:35:52]CAPDU: 80 13 01 00 [15:35:52]Write to MH i2c: E2 08 00 71 2F 80 13 01 00 00 00 00 00 1D [15:35:52]Write i2c OK [15:35:52]MH_I2C_Read... [15:35:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:52]Read from MH i2c: E2 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 0E 00 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 0E 00 71 2F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 9C [15:35:52]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:35:52]wFMCommunicate OK [15:35:52]SAM_PROTO_GetShiftState done [15:35:52]FM_GetShiftState done [15:35:52]req_shift_opened done [15:35:52]requested_item shift.open_date is exist - process it [15:35:52]req_shift_open_date [15:35:52]req_shift_open_date done [15:35:52]produce_requested_data done [15:35:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187093,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:35:52]process_action_free close_receipt [15:35:52]json_value_free [15:35:52]json_value_free done [15:35:52]process_json_proto returns [15:35:52]Send response to host [15:35:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187093,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:35:52]free response buf [15:35:52]execute_script done [15:35:52]execute_script returns [15:35:52]free content buf [15:35:52]Sock 7.Close socket [15:35:52]Sock 7.Thread stoped [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:29]accept exits with 9 [15:37:29]New connection [15:37:29]New thread 3066879332 created [15:37:29]Thread 3067022692 joined [15:37:29]Waiting for new connection... [15:37:29] Sock 9.Parse request [15:37:29]Sock 9.Check first char [15:37:29]Sock 9.First char is OK [15:37:29]request: POST /json_proto HTTP/1.0 [15:37:29]Method: POST [15:37:29]URL: /json_proto [15:37:29]Method is POST - this is cgi request [15:37:29]url: /json_proto [15:37:29]query_string will be loaded in cgi processing [15:37:29]execute_cgi json_proto POST (null) [15:37:29]execute_cgi path=json_proto method=POST [15:37:29]POST find Content-Length [15:37:29]Host: 172.17.46.131:8080 [15:37:29]Content-Length: 792 [15:37:29]Content-Type: application/json [15:37:29] [15:37:29]POST finish read [15:37:29]Found Content-Length = 792 [15:37:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412245", "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\u000A02705", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:29]execute_script... [15:37:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412245", "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\u000A02705", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:29]POST & json_proto [15:37:29]process_json_proto [15:37:29]json parsed OK: [15:37:29]protocol is kg_v1.0 [15:37:29]action value=close_receipt [15:37:29]process_action close_receipt [15:37:29]cmd_close_receipt [15:37:29]MH_GetDate [15:37:29]Write to MH i2c: F0 00 00 72 2F 90 [15:37:29]Write i2c OK [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: F0 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: F0 09 00 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: F0 09 00 72 2F 00 BD FA B5 67 7E 41 4F 65 DF [15:37:29]GetLastDocTimeStamp 1739979352 [15:37:29]current date 1739979453 [15:37:29]FM_GetShiftState [15:37:29]SAM_PROTO_GetShiftState [15:37:29]wFMCommunicate request_size=4 [15:37:29]MH_SAM_APDU [15:37:29]CAPDU: 80 13 01 00 [15:37:29]Write to MH i2c: E2 08 00 73 2F 80 13 01 00 00 00 00 00 1F [15:37:29]Write i2c OK [15:37:29]MH_I2C_Read... [15:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:29]Read from MH i2c: E2 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 0E 00 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 0E 00 73 2F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 9E [15:37:29]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:37:29]wFMCommunicate OK [15:37:29]SAM_PROTO_GetShiftState done [15:37:29]FM_GetShiftState done [15:37:29]opened in 1739929631 [15:37:29]opened+sec_in_day 1740016031 [15:37:29]quantity*price = 0 [15:37:29]sum+1 = 1 [15:37:29]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 19.02.2025 15:37 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 02705 ФМ: 0000000000871826 ФД: 187094 ФПД: 53407385354581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T153733&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187094&fm=53407385354581&tin=02508201610067®Number=0000000000091857&sum=0 [15:37:30]StoreToDocumentArchive [15:37:30]shift 647 fd 187094 [15:37:30]save to /storage/0647/doc_00187094 [15:37:30]save last doc name /storage/0647/doc_00187094 to /storage/kkm_last_doc_name [15:37:30]save OK [15:37:30]Clear old archive folders... [15:37:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:30]tlvbuf is 0069D8A0 [15:37:30]SAM_PROTO_ClearQueue [15:37:30]wFMCommunicate request_size=4 [15:37:30]MH_SAM_APDU [15:37:30]CAPDU: 80 09 00 00 [15:37:30]Write to MH i2c: E2 08 00 80 2F 80 09 00 00 00 00 00 00 21 [15:37:30]Write i2c OK [15:37:30]MH_I2C_Read... [15:37:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:30]Read from MH i2c: E2 [15:37:30]MH_I2C_Read... [15:37:30]Read from MH i2c: E2 03 00 [15:37:30]MH_I2C_Read... [15:37:30]Read from MH i2c: E2 03 00 80 2F 00 90 00 23 [15:37:30]RAPDU: 90 00 [15:37:30]wFMCommunicate OK [15:37:30]SAM_PROTO_ClearQueue done [15:37:30]KKMCreateOFDPacket [15:37:30]OFDProtocolAddRootSTLVToBuf [15:37:30]FM_MakeSignedData [15:37:30]FM_MakeSignedData [15:37:30]SAM_PROTO_SignData [15:37:30]wFMCommunicate request_size=4 [15:37:30]MH_SAM_APDU [15:37:30]CAPDU: 80 0D 01 02 [15:37:30]Write to MH i2c: E2 08 00 81 2F 80 0D 01 02 00 00 00 00 29 [15:37:30]Write i2c OK [15:37:30]MH_I2C_Read... [15:37:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:31]Read from MH i2c: E2 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 03 00 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 03 00 81 2F 00 90 00 24 [15:37:31]RAPDU: 90 00 [15:37:31]wFMCommunicate OK [15:37:31]wFMCommunicate request_size=255 [15:37:31]MH_SAM_APDU [15:37:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A0 00 00 00 F4 03 04 00 BD FA 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 D6 DA 02 00 35 04 06 00 30 [15:37:31]Write to MH i2c: E2 02 01 82 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 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 A0 00 00 00 F4 03 04 00 BD FA 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 D6 DA 02 00 35 04 06 00 30 00 00 B8 [15:37:31]Write i2c OK [15:37:31]MH_I2C_Read... [15:37:31]OFD Sender: No OFD packet to send [15:37:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:31]Read from MH i2c: E2 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 03 00 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 03 00 82 2F 00 90 00 25 [15:37:31]RAPDU: 90 00 [15:37:31]wFMCommunicate OK [15:37:31]wFMCommunicate request_size=10 [15:37:31]MH_SAM_APDU [15:37:31]CAPDU: 80 0D 02 02 05 92 E0 3B 81 55 [15:37:31]Write to MH i2c: E2 0D 00 83 2F 80 0D 02 02 05 00 92 E0 3B 81 55 00 00 B9 [15:37:31]Write i2c OK [15:37:31]MH_I2C_Read... [15:37:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:31]Read from MH i2c: E2 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 03 00 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 03 00 83 2F 00 90 00 26 [15:37:31]RAPDU: 90 00 [15:37:31]wFMCommunicate OK [15:37:31]wFMCommunicate request_size=4 [15:37:31]MH_SAM_APDU [15:37:31]CAPDU: 80 0D 03 02 [15:37:31]Write to MH i2c: E2 08 00 84 2F 80 0D 03 02 00 00 00 00 2E [15:37:31]Write i2c OK [15:37:31]MH_I2C_Read... [15:37:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:31]Read from MH i2c: E2 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 0B 00 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 0B 00 84 2F 00 81 2C F5 15 61 02 7A 3F 90 00 02 [15:37:31]RAPDU: 81 2C F5 15 61 02 7A 3F 90 00 [15:37:31]wFMCommunicate OK [15:37:31]SAM_PROTO_SignData done [15:37:31]FM_MakeSignedData done [15:37:31]CreateOFDProtocolMessage [15:37:31]wFMCommunicate request_size=4 [15:37:31]MH_SAM_APDU [15:37:31]CAPDU: 80 11 00 00 [15:37:31]Write to MH i2c: E2 08 00 85 2F 80 11 00 00 00 00 00 00 2E [15:37:31]Write i2c OK [15:37:31]MH_I2C_Read... [15:37:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:31]Read from MH i2c: E2 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 17 00 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 17 00 85 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 81 [15:37:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:37:31]wFMCommunicate OK [15:37:31]CreateOFDProtocolMessage done [15:37:31]OFDSenderStorePacket 187094 [15:37:31]StoreOFDPacket docnum=187094 [15:37: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 0F 01 00 00 F2 A9 07 01 AF 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 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 A0 00 00 00 F4 03 04 00 BD FA 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 D6 DA 02 00 35 04 06 00 30 92 E0 3B 81 55 81 2C F5 15 61 02 7A 3F [15:37:31]CheckFolder [15:37:31]dirname=/storage/ofd_packets [15:37:31]CheckFolder done [15:37:31]ProducePacketName [15:37:31]name=ofd_packets/00187094 [15:37:31]NVStorageSaveData ofd_packets/00187094 [15:37:31]File name is /storage/ofd_packets/00187094 [15:37:31]Write 301 bytes [15:37:31]NVStorageSaveData done [15:37:31]OFDSenderStorePacket done [15:37:31]KKMCreateOFDPacket done [15:37:31]NVStorageSaveData kkm_last_timestamp [15:37:31]File name is /storage/kkm_last_timestamp [15:37:31]Write 4 bytes [15:37:31]NVStorageSaveData done [15:37:31]ExternCall_PrintAddStr [15:37:31]wPrintStart [15:37:31]Write to MH i2c: 01 00 00 86 2F B5 [15:37:31]Write i2c OK [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: 01 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: 01 07 00 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: 01 07 00 86 2F 00 00 00 00 00 FF 0F CA [15:37:31]RasterBufferAndPrint [15:37:31]line Счет N : (1)412245 [15:37:31]line ИНН: 02508201610067 [15:37:31]line Контрольно-Кассовый Чек [15:37:31]line ПРОДАЖА [15:37:31]line ТРК (МРК, ГНК) : 12 [15:37:31]line Товар: 2710124130 [15:37:31]line Аи-92-К-2 [15:37:31]line 30.000 * 0.00 [15:37:31]line = 0.00 [15:37:31]line НДС 12% НСП 1% [15:37:31]line > о реализуемом товаре [15:37:31]line ИТОГО: 0.00 [15:37:31]line НСП 1% : 0.00 [15:37:31]line НДС 12% : 0.00 [15:37:31]line Наличными: 0.00 [15:37:31]line Безнал.: 0.00 [15:37:31]line Место: АЗС № 92 "Партнер Нефть" [15:37:31]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:37:31]line СНО: Общий режим [15:37:31]line Чек 160 19.02.2025 15:37 [15:37:31]line Смена: 647 ФФД: 1.0 [15:37:31]line ЗНМ: 0300000118 [15:37:31]line РНМ: 0000000000091857 [15:37:31]line Версия ККМ: 001 [15:37:31]line Талоны: Топливная Карта [15:37:31]line 02705 [15:37:31]line ФМ: 0000000000871826 [15:37:31]line ФД: 187094 [15:37:31]line ФПД: 53407385354581 [15:37:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T153733&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187094&fm=53407385354581&tin=02508201610067®Number=0000000000091857&sum=0 [15:37:31]written 0, free lines is 4095 [15:37:31]OFD Sender: Processing packet 187094 [packets to send 49, broken 48] [15:37:31]ProducePacketName [15:37:31]name=ofd_packets/00187094 [15:37:31]OFD Sender: To server: pG, [15:37:31]CommunicateWithHost lk.salyk.kg:30040 [15:37:31]ConnectInit lk.salyk.kg [15:37:32]Write to MH i2c: 01 00 00 B0 2F DF [15:37:32]Write i2c OK [15:37:32]MH_I2C_Read... [15:37:32]Read from MH i2c: 01 [15:37:32]MH_I2C_Read... [15:37:32]Read from MH i2c: 01 07 00 [15:37:32]MH_I2C_Read... [15:37:32]Read from MH i2c: 01 07 00 B0 2F 00 00 00 00 00 F9 0C EB [15:37:32]RasterBufferAndPrint [15:37:32]line [15:37:32]line [15:37:32]line [15:37:32]line [15:37:32]line [15:37:32]written 0, free lines is 3327 [15:37:32]MH_Cut [15:37:32]Write to MH i2c: D1 01 00 B7 2F 01 B8 [15:37:32]Write i2c OK [15:37:32]MH_I2C_Read... [15:37:32]Read from MH i2c: D1 [15:37:32]MH_I2C_Read... [15:37:32]Read from MH i2c: D1 01 00 [15:37:32]MH_I2C_Read... [15:37:32]Read from MH i2c: D1 01 00 B7 2F 00 B7 [15:37:32]Write to MH i2c: 01 00 00 B8 2F E7 [15:37:32]Write i2c OK [15:37:32]MH_I2C_Read... [15:37:32]Connected sock=10 [15:37:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F2 A9 07 01 AF 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 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 A0 00 00 00 F4 03 04 00 BD FA 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 D6 DA 02 00 35 04 06 00 30 92 E0 3B 81 55 81 2C F5 15 61 02 7A 3F [15:37:32]*** Cut start [15:37:32]*** Partial cut [15:37:32]*** CUTSNS_PIN = 1 [15:37:32]*** CUTSNS_PIN = 0 [15:37:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 66 94 47 00 28 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 D6 DA 02 00 F4 03 04 00 12 A1 B5 67 B6 04 01 00 00 FE B4 05 8C C6 52 0B B0 [15:37:33]CommunicateWithHost err = 0 [15:37:33]CheckOFDResponse [15:37:33]1017 (14) - 77093643461234 [15:37:33]1041 (16) - 0000000000871826 [15:37:33]1040 (4) - 187094 [15:37:33]1012 (4) - 19.02.2025 09:14 [15:37:33]1206 (1) - 0 [15:37:33]OFD Sender: Remove packet 187094 [15:37:33]ProducePacketName [15:37:33]name=ofd_packets/00187094 [15:37:33]NVStorageDeleteData [15:37:33]*** Brake cut motor [15:37:33]OFD Sender: No OFD packet to send [15:37:33]Read from MH i2c: 01 [15:37:33]MH_I2C_Read... [15:37:33]*** Stop cut motor [15:37:33]*** Cut end [15:37:33]Read from MH i2c: 01 07 00 [15:37:33]MH_I2C_Read... [15:37:33]Read from MH i2c: 01 07 00 B8 2F 00 00 00 00 00 FF 0F FC [15:37:33]process_action close_receipt done [15:37:33]requested_data is exist [15:37:33]produce_requested_data [15:37:33]requested_item fm.sn is exist - process it [15:37:33]wFMCommunicate request_size=4 [15:37:33]MH_SAM_APDU [15:37:33]CAPDU: 80 11 00 00 [15:37:33]Write to MH i2c: E2 08 00 B9 2F 80 11 00 00 00 00 00 00 62 [15:37:33]Write i2c OK [15:37:33]MH_I2C_Read... [15:37:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:33]Read from MH i2c: E2 [15:37:33]MH_I2C_Read... [15:37:33]Read from MH i2c: E2 17 00 [15:37:33]MH_I2C_Read... [15:37:33]Read from MH i2c: E2 17 00 B9 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B5 [15:37: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:37:33]wFMCommunicate OK [15:37:33]requested_item fd.num is exist - process it [15:37:33]SAM_PROTO_GetFieldsCounters [15:37:33]wFMCommunicate request_size=4 [15:37:33]MH_SAM_APDU [15:37:33]CAPDU: 80 13 00 00 [15:37:33]Write to MH i2c: E2 08 00 BA 2F 80 13 00 00 00 00 00 00 65 [15:37:33]Write i2c OK [15:37:33]MH_I2C_Read... [15:37:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:33]Read from MH i2c: E2 [15:37:33]MH_I2C_Read... [15:37:33]Read from MH i2c: E2 62 00 [15:37:33]MH_I2C_Read... [15:37:33]Read from MH i2c: E2 62 00 BA 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 D6 DA 02 00 0E 04 04 00 87 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 A6 [15:37: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 D6 DA 02 00 0E 04 04 00 87 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 [15:37:33]wFMCommunicate OK [15:37:33]SAM_PROTO_GetFieldsCounters done [15:37:33]requested_item shift.num is exist - process it [15:37:33]requested_item shift.opened is exist - process it [15:37:33]req_shift_opened [15:37:33]FM_GetShiftState [15:37:33]SAM_PROTO_GetShiftState [15:37:33]wFMCommunicate request_size=4 [15:37:33]MH_SAM_APDU [15:37:33]CAPDU: 80 13 01 00 [15:37:33]Write to MH i2c: E2 08 00 BB 2F 80 13 01 00 00 00 00 00 67 [15:37:33]Write i2c OK [15:37:33]MH_I2C_Read... [15:37:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:33]Read from MH i2c: E2 [15:37:33]MH_I2C_Read... [15:37:33]Read from MH i2c: E2 0E 00 [15:37:33]MH_I2C_Read... [15:37:33]Read from MH i2c: E2 0E 00 BB 2F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E6 [15:37:33]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:37:33]wFMCommunicate OK [15:37:33]SAM_PROTO_GetShiftState done [15:37:33]FM_GetShiftState done [15:37:33]req_shift_opened done [15:37:33]requested_item shift.open_date is exist - process it [15:37:33]req_shift_open_date [15:37:33]req_shift_open_date done [15:37:33]produce_requested_data done [15:37:33]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187094,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:37:33]process_action_free close_receipt [15:37:33]json_value_free [15:37:33]json_value_free done [15:37:33]process_json_proto returns [15:37:33]Send response to host [15:37:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187094,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:37:33]free response buf [15:37:33]execute_script done [15:37:33]execute_script returns [15:37:33]free content buf [15:37:33]Sock 9.Close socket [15:37:33]Sock 9.Thread stoped [15:37:35]accept exits with 7 [15:37:35]New connection [15:37:35]New thread 3067022692 created [15:37:35]Thread 3066879332 joined [15:37:35]Waiting for new connection... [15:37:35] Sock 7.Parse request [15:37:35]Sock 7.Check first char [15:37:35]Sock 7.First char is OK [15:37:35]request: POST /json_proto HTTP/1.0 [15:37:35]Method: POST [15:37:35]URL: /json_proto [15:37:35]Method is POST - this is cgi request [15:37:35]url: /json_proto [15:37:35]query_string will be loaded in cgi processing [15:37:35]execute_cgi json_proto POST (null) [15:37:35]execute_cgi path=json_proto method=POST [15:37:35]POST find Content-Length [15:37:35]Host: 172.17.46.131:8080 [15:37:35]Content-Length: 682 [15:37:35]Content-Type: application/json [15:37:35] [15:37:35]POST finish read [15:37:35]Found Content-Length = 682 [15:37:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412246", "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" ] } } [15:37:35]execute_script... [15:37: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)412246", "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" ] } } [15:37:35]POST & json_proto [15:37:35]process_json_proto [15:37:35]json parsed OK: [15:37:35]protocol is kg_v1.0 [15:37:35]action value=close_receipt [15:37:35]process_action close_receipt [15:37:35]cmd_close_receipt [15:37:35]MH_GetDate [15:37:35]Write to MH i2c: F0 00 00 BC 2F DA [15:37:35]Write i2c OK [15:37:35]MH_I2C_Read... [15:37:35]Read from MH i2c: F0 [15:37:35]MH_I2C_Read... [15:37:35]Read from MH i2c: F0 09 00 [15:37:35]MH_I2C_Read... [15:37:35]Read from MH i2c: F0 09 00 BC 2F 00 C3 FA B5 67 7E 41 4F 65 2F [15:37:35]GetLastDocTimeStamp 1739979453 [15:37:35]current date 1739979459 [15:37:35]FM_GetShiftState [15:37:35]SAM_PROTO_GetShiftState [15:37:35]wFMCommunicate request_size=4 [15:37:35]MH_SAM_APDU [15:37:35]CAPDU: 80 13 01 00 [15:37:35]Write to MH i2c: E2 08 00 BD 2F 80 13 01 00 00 00 00 00 69 [15:37:35]Write i2c OK [15:37:35]MH_I2C_Read... [15:37:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:35]Read from MH i2c: E2 [15:37:35]MH_I2C_Read... [15:37:35]Read from MH i2c: E2 0E 00 [15:37:35]MH_I2C_Read... [15:37:35]Read from MH i2c: E2 0E 00 BD 2F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E8 [15:37:35]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:37:35]wFMCommunicate OK [15:37:35]SAM_PROTO_GetShiftState done [15:37:35]FM_GetShiftState done [15:37:35]opened in 1739929631 [15:37:35]opened+sec_in_day 1740016031 [15:37:35]quantity*price = 100023 [15:37:35]sum+1 = 100025 [15:37:35]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 СНО: Общий режим Чек 161 19.02.2025 15:37 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187095 ФПД: 260018426275989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T153739&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187095&fm=260018426275989&tin=02508201610067®Number=0000000000091857&sum=100000 [15:37:36]StoreToDocumentArchive [15:37:36]shift 647 fd 187095 [15:37:36]save to /storage/0647/doc_00187095 [15:37:36]save last doc name /storage/0647/doc_00187095 to /storage/kkm_last_doc_name [15:37:36]save OK [15:37:36]Clear old archive folders... [15:37:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:36]tlvbuf is 00641B70 [15:37:36]SAM_PROTO_ClearQueue [15:37:36]wFMCommunicate request_size=4 [15:37:36]MH_SAM_APDU [15:37:36]CAPDU: 80 09 00 00 [15:37:36]Write to MH i2c: E2 08 00 CA 2F 80 09 00 00 00 00 00 00 6B [15:37:36]Write i2c OK [15:37:36]MH_I2C_Read... [15:37:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:36]Read from MH i2c: E2 [15:37:36]MH_I2C_Read... [15:37:36]Read from MH i2c: E2 03 00 [15:37:36]MH_I2C_Read... [15:37:36]Read from MH i2c: E2 03 00 CA 2F 00 90 00 6D [15:37:36]RAPDU: 90 00 [15:37:36]wFMCommunicate OK [15:37:36]SAM_PROTO_ClearQueue done [15:37:36]KKMCreateOFDPacket [15:37:36]OFDProtocolAddRootSTLVToBuf [15:37:36]FM_MakeSignedData [15:37:36]FM_MakeSignedData [15:37:36]SAM_PROTO_SignData [15:37:36]wFMCommunicate request_size=4 [15:37:36]MH_SAM_APDU [15:37:36]CAPDU: 80 0D 01 02 [15:37:36]Write to MH i2c: E2 08 00 CB 2F 80 0D 01 02 00 00 00 00 73 [15:37:36]Write i2c OK [15:37:36]MH_I2C_Read... [15:37:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:36]Read from MH i2c: E2 [15:37:36]MH_I2C_Read... [15:37:36]Read from MH i2c: E2 03 00 [15:37:36]MH_I2C_Read... [15:37:36]Read from MH i2c: E2 03 00 CB 2F 00 90 00 6E [15:37:36]RAPDU: 90 00 [15:37:36]wFMCommunicate OK [15:37:36]wFMCommunicate request_size=255 [15:37:36]MH_SAM_APDU [15:37:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A1 00 00 00 F4 03 04 00 C3 FA 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 D7 DA 02 00 35 04 06 00 EC [15:37:36]Write to MH i2c: E2 02 01 CC 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A1 00 00 00 F4 03 04 00 C3 FA 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 D7 DA 02 00 35 04 06 00 EC 00 00 12 [15:37:36]Write i2c OK [15:37:36]MH_I2C_Read... [15:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:36]Read from MH i2c: E2 [15:37:36]MH_I2C_Read... [15:37:36]Read from MH i2c: E2 03 00 [15:37:36]MH_I2C_Read... [15:37:36]Read from MH i2c: E2 03 00 CC 2F 00 90 00 6F [15:37:36]RAPDU: 90 00 [15:37:36]wFMCommunicate OK [15:37:36]wFMCommunicate request_size=10 [15:37:36]MH_SAM_APDU [15:37:36]CAPDU: 80 0D 02 02 05 7C 41 EE E8 95 [15:37:36]Write to MH i2c: E2 0D 00 CD 2F 80 0D 02 02 05 00 7C 41 EE E8 95 00 00 A8 [15:37:36]Write i2c OK [15:37:36]MH_I2C_Read... [15:37:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:36]Read from MH i2c: E2 [15:37:36]MH_I2C_Read... [15:37:36]Read from MH i2c: E2 03 00 [15:37:36]MH_I2C_Read... [15:37:36]Read from MH i2c: E2 03 00 CD 2F 00 90 00 70 [15:37:36]RAPDU: 90 00 [15:37:36]wFMCommunicate OK [15:37:36]wFMCommunicate request_size=4 [15:37:36]MH_SAM_APDU [15:37:36]CAPDU: 80 0D 03 02 [15:37:36]Write to MH i2c: E2 08 00 CE 2F 80 0D 03 02 00 00 00 00 78 [15:37:36]Write i2c OK [15:37:36]MH_I2C_Read... [15:37:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:36]Read from MH i2c: E2 [15:37:36]MH_I2C_Read... [15:37:36]Read from MH i2c: E2 0B 00 [15:37:36]MH_I2C_Read... [15:37:36]Read from MH i2c: E2 0B 00 CE 2F 00 FE E6 B3 30 13 38 00 61 90 00 EC [15:37:36]RAPDU: FE E6 B3 30 13 38 00 61 90 00 [15:37:36]wFMCommunicate OK [15:37:36]SAM_PROTO_SignData done [15:37:36]FM_MakeSignedData done [15:37:36]CreateOFDProtocolMessage [15:37:36]wFMCommunicate request_size=4 [15:37:36]MH_SAM_APDU [15:37:36]CAPDU: 80 11 00 00 [15:37:36]Write to MH i2c: E2 08 00 CF 2F 80 11 00 00 00 00 00 00 78 [15:37:36]Write i2c OK [15:37:36]MH_I2C_Read... [15:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:36]Read from MH i2c: E2 [15:37:36]MH_I2C_Read... [15:37:36]Read from MH i2c: E2 17 00 [15:37:36]MH_I2C_Read... [15:37:36]Read from MH i2c: E2 17 00 CF 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CB [15:37: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:37:36]wFMCommunicate OK [15:37:36]CreateOFDProtocolMessage done [15:37:36]OFDSenderStorePacket 187095 [15:37:36]StoreOFDPacket docnum=187095 [15:37: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 AC E9 07 01 9C 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 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 A1 00 00 00 F4 03 04 00 C3 FA 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 D7 DA 02 00 35 04 06 00 EC 7C 41 EE E8 95 FE E6 B3 30 13 38 00 61 [15:37:36]CheckFolder [15:37:36]dirname=/storage/ofd_packets [15:37:36]CheckFolder done [15:37:36]ProducePacketName [15:37:36]name=ofd_packets/00187095 [15:37:36]NVStorageSaveData ofd_packets/00187095 [15:37:36]File name is /storage/ofd_packets/00187095 [15:37:36]Write 301 bytes [15:37:36]NVStorageSaveData done [15:37:36]OFDSenderStorePacket done [15:37:36]KKMCreateOFDPacket done [15:37:36]NVStorageSaveData kkm_last_timestamp [15:37:36]File name is /storage/kkm_last_timestamp [15:37:36]Write 4 bytes [15:37:36]NVStorageSaveData done [15:37:36]ExternCall_PrintAddStr [15:37:36]wPrintStart [15:37:36]Write to MH i2c: 01 00 00 D0 2F FF [15:37:36]Write i2c OK [15:37:36]MH_I2C_Read... [15:37:36]Read from MH i2c: 01 [15:37:36]MH_I2C_Read... [15:37:36]Read from MH i2c: 01 07 00 [15:37:36]MH_I2C_Read... [15:37:36]Read from MH i2c: 01 07 00 D0 2F 00 00 00 00 00 FF 0F 14 [15:37:36]RasterBufferAndPrint [15:37:36]line Счет N : (1)412246 [15:37:36]line ИНН: 02508201610067 [15:37:36]line Контрольно-Кассовый Чек [15:37:36]line ПРОДАЖА [15:37:36]line ТРК (МРК, ГНК) : 22 [15:37:36]line Товар: 2710124130 [15:37:36]line Аи-92-К-2 [15:37:36]line 15.580 * 64.20 [15:37:36]line = 1000.24 [15:37:36]line НДС 12% НСП 1% [15:37:36]line > о реализуемом товаре [15:37:36]line ОКРУГЛЕНИЕ: -0.24 [15:37:36]line ИТОГО: 1000.00 [15:37:36]line Внесено: 1000.00 [15:37:36]line СДАЧА: 0.00 [15:37:36]line НСП 1% : 8.85 [15:37:36]line НДС 12% : 106.22 [15:37:36]line Наличными: 1000.00 [15:37:36]line Безнал.: 0.00 [15:37:36]line Место: АЗС № 92 "Партнер Нефть" [15:37:36]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:37:36]line СНО: Общий режим [15:37:36]line Чек 161 19.02.2025 15:37 [15:37:36]line Смена: 647 ФФД: 1.0 [15:37:36]line ЗНМ: 0300000118 [15:37:36]line РНМ: 0000000000091857 [15:37:36]line Версия ККМ: 001 [15:37:36]line ФМ: 0000000000871826 [15:37:36]line ФД: 187095 [15:37:36]line ФПД: 260018426275989 [15:37:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T153739&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187095&fm=260018426275989&tin=02508201610067®Number=0000000000091857&sum=100000 [15:37:37]OFD Sender: Processing packet 187095 [packets to send 49, broken 48] [15:37:37]ProducePacketName [15:37:37]name=ofd_packets/00187095 [15:37:37]OFD Sender: To server: pG, [15:37:37]CommunicateWithHost lk.salyk.kg:30040 [15:37:37]ConnectInit lk.salyk.kg [15:37:37]written 0, free lines is 4095 [15:37:37]Connected sock=10 [15:37: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 AC E9 07 01 9C 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 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 A1 00 00 00 F4 03 04 00 C3 FA 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 D7 DA 02 00 35 04 06 00 EC 7C 41 EE E8 95 FE E6 B3 30 13 38 00 61 [15:37: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 66 3D 47 00 22 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 D7 DA 02 00 F4 03 04 00 16 A1 B5 67 B6 04 01 00 00 50 CE 9A FE 81 55 18 B2 [15:37:37]CommunicateWithHost err = 0 [15:37:37]CheckOFDResponse [15:37:37]1017 (14) - 77093643461234 [15:37:37]1041 (16) - 0000000000871826 [15:37:37]1040 (4) - 187095 [15:37:37]1012 (4) - 19.02.2025 09:15 [15:37:37]1206 (1) - 0 [15:37:37]OFD Sender: Remove packet 187095 [15:37:37]ProducePacketName [15:37:37]name=ofd_packets/00187095 [15:37:37]NVStorageDeleteData [15:37:37]Write to MH i2c: 01 00 00 FB 2F 2A [15:37:37]Write i2c OK [15:37:37]MH_I2C_Read... [15:37:37]Read from MH i2c: 01 [15:37:37]MH_I2C_Read... [15:37:37]Read from MH i2c: 01 07 00 [15:37:37]MH_I2C_Read... [15:37:37]Read from MH i2c: 01 07 00 FB 2F 00 00 00 00 00 05 0D 43 [15:37:37]RasterBufferAndPrint [15:37:37]line [15:37:37]line [15:37:37]line [15:37:37]line [15:37:37]line [15:37:37]written 0, free lines is 3345 [15:37:37]MH_Cut [15:37:37]Write to MH i2c: D1 01 00 02 30 01 04 [15:37:37]Write i2c OK [15:37:37]MH_I2C_Read... [15:37:37]Read from MH i2c: D1 [15:37:37]MH_I2C_Read... [15:37:37]Read from MH i2c: D1 01 00 [15:37:37]MH_I2C_Read... [15:37:37]Read from MH i2c: D1 01 00 02 30 00 03 [15:37:37]Write to MH i2c: 01 00 00 03 30 33 [15:37:37]Write i2c OK [15:37:37]MH_I2C_Read... [15:37:37]OFD Sender: No OFD packet to send [15:37:38]*** Cut start [15:37:38]*** Partial cut [15:37:38]*** CUTSNS_PIN = 1 [15:37:38]*** CUTSNS_PIN = 0 [15:37:38]*** Brake cut motor [15:37:38]Read from MH i2c: 01 [15:37:38]MH_I2C_Read... [15:37:38]*** Stop cut motor [15:37:38]*** Cut end [15:37:38]Read from MH i2c: 01 07 00 [15:37:38]MH_I2C_Read... [15:37:38]Read from MH i2c: 01 07 00 03 30 00 00 00 00 00 FF 0F 48 [15:37:38]process_action close_receipt done [15:37:38]requested_data is exist [15:37:38]produce_requested_data [15:37:38]requested_item fm.sn is exist - process it [15:37:38]wFMCommunicate request_size=4 [15:37:38]MH_SAM_APDU [15:37:38]CAPDU: 80 11 00 00 [15:37:38]Write to MH i2c: E2 08 00 04 30 80 11 00 00 00 00 00 00 AE [15:37:38]Write i2c OK [15:37:38]MH_I2C_Read... [15:37:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:38]Read from MH i2c: E2 [15:37:38]MH_I2C_Read... [15:37:38]Read from MH i2c: E2 17 00 [15:37:38]MH_I2C_Read... [15:37:38]Read from MH i2c: E2 17 00 04 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 01 [15:37:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:37:38]wFMCommunicate OK [15:37:38]requested_item fd.num is exist - process it [15:37:38]SAM_PROTO_GetFieldsCounters [15:37:38]wFMCommunicate request_size=4 [15:37:38]MH_SAM_APDU [15:37:38]CAPDU: 80 13 00 00 [15:37:38]Write to MH i2c: E2 08 00 05 30 80 13 00 00 00 00 00 00 B1 [15:37:38]Write i2c OK [15:37:38]MH_I2C_Read... [15:37:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:39]Read from MH i2c: E2 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: E2 62 00 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: E2 62 00 05 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 D7 DA 02 00 0E 04 04 00 87 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 F6 [15:37: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 D7 DA 02 00 0E 04 04 00 87 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 [15:37:39]wFMCommunicate OK [15:37:39]SAM_PROTO_GetFieldsCounters done [15:37:39]requested_item shift.num is exist - process it [15:37:39]requested_item shift.opened is exist - process it [15:37:39]req_shift_opened [15:37:39]FM_GetShiftState [15:37:39]SAM_PROTO_GetShiftState [15:37:39]wFMCommunicate request_size=4 [15:37:39]MH_SAM_APDU [15:37:39]CAPDU: 80 13 01 00 [15:37:39]Write to MH i2c: E2 08 00 06 30 80 13 01 00 00 00 00 00 B3 [15:37:39]Write i2c OK [15:37:39]MH_I2C_Read... [15:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:39]Read from MH i2c: E2 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: E2 0E 00 [15:37:39]MH_I2C_Read... [15:37:39]Read from MH i2c: E2 0E 00 06 30 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 32 [15:37:39]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:37:39]wFMCommunicate OK [15:37:39]SAM_PROTO_GetShiftState done [15:37:39]FM_GetShiftState done [15:37:39]req_shift_opened done [15:37:39]requested_item shift.open_date is exist - process it [15:37:39]req_shift_open_date [15:37:39]req_shift_open_date done [15:37:39]produce_requested_data done [15:37:39]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187095,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:37:39]process_action_free close_receipt [15:37:39]json_value_free [15:37:39]json_value_free done [15:37:39]process_json_proto returns [15:37:39]Send response to host [15:37:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187095,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:37:39]free response buf [15:37:39]execute_script done [15:37:39]execute_script returns [15:37:39]free content buf [15:37:39]Sock 7.Close socket [15:37:39]Sock 7.Thread stoped [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:23]OFD Sender: No OFD packet to send [15:38:28]OFD Sender: No OFD packet to send [15:38:33]OFD Sender: No OFD packet to send [15:38:38]OFD Sender: No OFD packet to send [15:38:43]OFD Sender: No OFD packet to send [15:38:48]OFD Sender: No OFD packet to send [15:38:53]OFD Sender: No OFD packet to send [15:38:58]OFD Sender: No OFD packet to send [15:39:03]OFD Sender: No OFD packet to send [15:39:08]OFD Sender: No OFD packet to send [15:39:13]OFD Sender: No OFD packet to send [15:39:18]OFD Sender: No OFD packet to send [15:39:23]OFD Sender: No OFD packet to send [15:39:28]OFD Sender: No OFD packet to send [15:39:33]OFD Sender: No OFD packet to send [15:39:38]OFD Sender: No OFD packet to send [15:39:43]OFD Sender: No OFD packet to send [15:39:48]OFD Sender: No OFD packet to send [15:39:53]OFD Sender: No OFD packet to send [15:39:58]OFD Sender: No OFD packet to send [15:40:03]OFD Sender: No OFD packet to send [15:40:08]OFD Sender: No OFD packet to send [15:40:13]OFD Sender: No OFD packet to send [15:40:16]accept exits with 9 [15:40:16]New connection [15:40:16]New thread 3066879332 created [15:40:16]Thread 3067022692 joined [15:40:16]Waiting for new connection... [15:40:16] Sock 9.Parse request [15:40:16]Sock 9.Check first char [15:40:16]Sock 9.First char is OK [15:40:16]request: POST /json_proto HTTP/1.0 [15:40:16]Method: POST [15:40:16]URL: /json_proto [15:40:16]Method is POST - this is cgi request [15:40:16]url: /json_proto [15:40:16]query_string will be loaded in cgi processing [15:40:16]execute_cgi json_proto POST (null) [15:40:16]execute_cgi path=json_proto method=POST [15:40:16]POST find Content-Length [15:40:16]Host: 172.17.46.131:8080 [15:40:16]Content-Length: 682 [15:40:16]Content-Type: application/json [15:40:16] [15:40:16]POST finish read [15:40:16]Found Content-Length = 682 [15:40:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412247", "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:40:16]execute_script... [15:40: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)412247", "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:40:16]POST & json_proto [15:40:16]process_json_proto [15:40:16]json parsed OK: [15:40:16]protocol is kg_v1.0 [15:40:16]action value=close_receipt [15:40:16]process_action close_receipt [15:40:16]cmd_close_receipt [15:40:16]MH_GetDate [15:40:16]Write to MH i2c: F0 00 00 07 30 26 [15:40:16]Write i2c OK [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: F0 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: F0 09 00 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: F0 09 00 07 30 00 64 FB B5 67 7E 41 4F 65 1D [15:40:16]GetLastDocTimeStamp 1739979459 [15:40:16]current date 1739979620 [15:40:16]FM_GetShiftState [15:40:16]SAM_PROTO_GetShiftState [15:40:16]wFMCommunicate request_size=4 [15:40:16]MH_SAM_APDU [15:40:16]CAPDU: 80 13 01 00 [15:40:16]Write to MH i2c: E2 08 00 08 30 80 13 01 00 00 00 00 00 B5 [15:40:16]Write i2c OK [15:40:16]MH_I2C_Read... [15:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:16]Read from MH i2c: E2 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: E2 0E 00 [15:40:16]MH_I2C_Read... [15:40:16]Read from MH i2c: E2 0E 00 08 30 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 34 [15:40:16]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:40:16]wFMCommunicate OK [15:40:16]SAM_PROTO_GetShiftState done [15:40:16]FM_GetShiftState done [15:40:16]opened in 1739929631 [15:40:16]opened+sec_in_day 1740016031 [15:40:16]quantity*price = 100023 [15:40:16]sum+1 = 100025 [15:40:16]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 СНО: Общий режим Чек 162 19.02.2025 15:40 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187096 ФПД: 47702664169966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T154020&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187096&fm=47702664169966&tin=02508201610067®Number=0000000000091857&sum=100000 [15:40:17]StoreToDocumentArchive [15:40:17]shift 647 fd 187096 [15:40:17]save to /storage/0647/doc_00187096 [15:40:17]save last doc name /storage/0647/doc_00187096 to /storage/kkm_last_doc_name [15:40:17]save OK [15:40:17]Clear old archive folders... [15:40:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:40:17]tlvbuf is 00683C30 [15:40:17]SAM_PROTO_ClearQueue [15:40:17]wFMCommunicate request_size=4 [15:40:17]MH_SAM_APDU [15:40:17]CAPDU: 80 09 00 00 [15:40:17]Write to MH i2c: E2 08 00 15 30 80 09 00 00 00 00 00 00 B7 [15:40:17]Write i2c OK [15:40:17]MH_I2C_Read... [15:40:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:17]Read from MH i2c: E2 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 03 00 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 03 00 15 30 00 90 00 B9 [15:40:17]RAPDU: 90 00 [15:40:17]wFMCommunicate OK [15:40:17]SAM_PROTO_ClearQueue done [15:40:17]KKMCreateOFDPacket [15:40:17]OFDProtocolAddRootSTLVToBuf [15:40:17]FM_MakeSignedData [15:40:17]FM_MakeSignedData [15:40:17]SAM_PROTO_SignData [15:40:17]wFMCommunicate request_size=4 [15:40:17]MH_SAM_APDU [15:40:17]CAPDU: 80 0D 01 02 [15:40:17]Write to MH i2c: E2 08 00 16 30 80 0D 01 02 00 00 00 00 BF [15:40:17]Write i2c OK [15:40:17]MH_I2C_Read... [15:40:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:17]Read from MH i2c: E2 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 03 00 [15:40:17]MH_I2C_Read... [15:40:17]Read from MH i2c: E2 03 00 16 30 00 90 00 BA [15:40:17]RAPDU: 90 00 [15:40:17]wFMCommunicate OK [15:40:17]wFMCommunicate request_size=255 [15:40:17]MH_SAM_APDU [15:40: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 A2 00 00 00 F4 03 04 00 64 FB 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 D8 DA 02 00 35 04 06 00 2B [15:40:17]Write to MH i2c: E2 02 01 17 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 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 A2 00 00 00 F4 03 04 00 64 FB 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 D8 DA 02 00 35 04 06 00 2B 00 00 41 [15:40:17]Write i2c OK [15:40:17]MH_I2C_Read... [15:40:18]OFD Sender: No OFD packet to send [15:40:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:18]Read from MH i2c: E2 [15:40:18]MH_I2C_Read... [15:40:18]Read from MH i2c: E2 03 00 [15:40:18]MH_I2C_Read... [15:40:18]Read from MH i2c: E2 03 00 17 30 00 90 00 BB [15:40:18]RAPDU: 90 00 [15:40:18]wFMCommunicate OK [15:40:18]wFMCommunicate request_size=10 [15:40:18]MH_SAM_APDU [15:40:18]CAPDU: 80 0D 02 02 05 62 A4 5A 49 EE [15:40:18]Write to MH i2c: E2 0D 00 18 30 80 0D 02 02 05 00 62 A4 5A 49 EE 00 00 63 [15:40:18]Write i2c OK [15:40:18]MH_I2C_Read... [15:40:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:18]Read from MH i2c: E2 [15:40:18]MH_I2C_Read... [15:40:18]Read from MH i2c: E2 03 00 [15:40:18]MH_I2C_Read... [15:40:18]Read from MH i2c: E2 03 00 18 30 00 90 00 BC [15:40:18]RAPDU: 90 00 [15:40:18]wFMCommunicate OK [15:40:18]wFMCommunicate request_size=4 [15:40:18]MH_SAM_APDU [15:40:18]CAPDU: 80 0D 03 02 [15:40:18]Write to MH i2c: E2 08 00 19 30 80 0D 03 02 00 00 00 00 C4 [15:40:18]Write i2c OK [15:40:18]MH_I2C_Read... [15:40:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:18]Read from MH i2c: E2 [15:40:18]MH_I2C_Read... [15:40:18]Read from MH i2c: E2 0B 00 [15:40:18]MH_I2C_Read... [15:40:18]Read from MH i2c: E2 0B 00 19 30 00 5E AA BB 20 A6 76 31 6D 90 00 62 [15:40:18]RAPDU: 5E AA BB 20 A6 76 31 6D 90 00 [15:40:18]wFMCommunicate OK [15:40:18]SAM_PROTO_SignData done [15:40:18]FM_MakeSignedData done [15:40:18]CreateOFDProtocolMessage [15:40:18]wFMCommunicate request_size=4 [15:40:18]MH_SAM_APDU [15:40:18]CAPDU: 80 11 00 00 [15:40:18]Write to MH i2c: E2 08 00 1A 30 80 11 00 00 00 00 00 00 C4 [15:40:18]Write i2c OK [15:40:18]MH_I2C_Read... [15:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:18]Read from MH i2c: E2 [15:40:18]MH_I2C_Read... [15:40:18]Read from MH i2c: E2 17 00 [15:40:18]MH_I2C_Read... [15:40:18]Read from MH i2c: E2 17 00 1A 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 17 [15:40: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:40:18]wFMCommunicate OK [15:40:18]CreateOFDProtocolMessage done [15:40:18]OFDSenderStorePacket 187096 [15:40:18]StoreOFDPacket docnum=187096 [15:40: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 F8 12 07 01 E2 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A2 00 00 00 F4 03 04 00 64 FB 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 D8 DA 02 00 35 04 06 00 2B 62 A4 5A 49 EE 5E AA BB 20 A6 76 31 6D [15:40:18]CheckFolder [15:40:18]dirname=/storage/ofd_packets [15:40:18]CheckFolder done [15:40:18]ProducePacketName [15:40:18]name=ofd_packets/00187096 [15:40:18]NVStorageSaveData ofd_packets/00187096 [15:40:18]File name is /storage/ofd_packets/00187096 [15:40:18]Write 301 bytes [15:40:18]NVStorageSaveData done [15:40:18]OFDSenderStorePacket done [15:40:18]KKMCreateOFDPacket done [15:40:18]NVStorageSaveData kkm_last_timestamp [15:40:18]File name is /storage/kkm_last_timestamp [15:40:18]Write 4 bytes [15:40:18]NVStorageSaveData done [15:40:18]ExternCall_PrintAddStr [15:40:18]wPrintStart [15:40:18]Write to MH i2c: 01 00 00 1B 30 4B [15:40:18]Write i2c OK [15:40:18]MH_I2C_Read... [15:40:18]Read from MH i2c: 01 [15:40:18]MH_I2C_Read... [15:40:18]Read from MH i2c: 01 07 00 [15:40:18]MH_I2C_Read... [15:40:18]Read from MH i2c: 01 07 00 1B 30 00 00 00 00 00 FF 0F 60 [15:40:18]RasterBufferAndPrint [15:40:18]line Счет N : (1)412247 [15:40:18]line ИНН: 02508201610067 [15:40:18]line Контрольно-Кассовый Чек [15:40:18]line ПРОДАЖА [15:40:18]line ТРК (МРК, ГНК) : 32 [15:40:18]line Товар: 2710124130 [15:40:18]line Аи-92-К-2 [15:40:18]line 15.580 * 64.20 [15:40:18]line = 1000.24 [15:40:18]line НДС 12% НСП 1% [15:40:18]line > о реализуемом товаре [15:40:18]line ОКРУГЛЕНИЕ: -0.24 [15:40:18]line ИТОГО: 1000.00 [15:40:18]line Внесено: 1000.00 [15:40:18]line СДАЧА: 0.00 [15:40:18]line НСП 1% : 8.85 [15:40:18]line НДС 12% : 106.22 [15:40:18]line Наличными: 1000.00 [15:40:18]line Безнал.: 0.00 [15:40:18]line Место: АЗС № 92 "Партнер Нефть" [15:40:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:40:18]line СНО: Общий режим [15:40:18]line Чек 162 19.02.2025 15:40 [15:40:18]line Смена: 647 ФФД: 1.0 [15:40:18]line ЗНМ: 0300000118 [15:40:18]line РНМ: 0000000000091857 [15:40:18]line Версия ККМ: 001 [15:40:18]line ФМ: 0000000000871826 [15:40:18]line ФД: 187096 [15:40:18]line ФПД: 47702664169966 [15:40:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T154020&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187096&fm=47702664169966&tin=02508201610067®Number=0000000000091857&sum=100000 [15:40:18]OFD Sender: Processing packet 187096 [packets to send 49, broken 48] [15:40:18]ProducePacketName [15:40:18]name=ofd_packets/00187096 [15:40:18]OFD Sender: To server: pG, [15:40:18]CommunicateWithHost lk.salyk.kg:30040 [15:40:18]ConnectInit lk.salyk.kg [15:40:18]written 0, free lines is 4095 [15:40:18]Connected sock=10 [15:40: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 F8 12 07 01 E2 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A2 00 00 00 F4 03 04 00 64 FB 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 D8 DA 02 00 35 04 06 00 2B 62 A4 5A 49 EE 5E AA BB 20 A6 76 31 6D [15:40: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 66 CB 47 00 35 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 D8 DA 02 00 F4 03 04 00 B8 A1 B5 67 B6 04 01 00 00 99 F6 A7 02 7D 65 7C C5 [15:40:19]CommunicateWithHost err = 0 [15:40:19]CheckOFDResponse [15:40:19]1017 (14) - 77093643461234 [15:40:19]1041 (16) - 0000000000871826 [15:40:19]1040 (4) - 187096 [15:40:19]1012 (4) - 19.02.2025 09:17 [15:40:19]1206 (1) - 0 [15:40:19]OFD Sender: Remove packet 187096 [15:40:19]ProducePacketName [15:40:19]name=ofd_packets/00187096 [15:40:19]NVStorageDeleteData [15:40:19]Write to MH i2c: 01 00 00 46 30 76 [15:40:19]Write i2c OK [15:40:19]MH_I2C_Read... [15:40:19]Read from MH i2c: 01 [15:40:19]MH_I2C_Read... [15:40:19]Read from MH i2c: 01 07 00 [15:40:19]MH_I2C_Read... [15:40:19]Read from MH i2c: 01 07 00 46 30 00 00 00 00 00 F8 0C 81 [15:40:19]RasterBufferAndPrint [15:40:19]line [15:40:19]line [15:40:19]line [15:40:19]line [15:40:19]line [15:40:19]written 0, free lines is 3327 [15:40:19]MH_Cut [15:40:19]Write to MH i2c: D1 01 00 4D 30 01 4F [15:40:19]Write i2c OK [15:40:19]MH_I2C_Read... [15:40:19]Read from MH i2c: D1 [15:40:19]MH_I2C_Read... [15:40:19]Read from MH i2c: D1 01 00 [15:40:19]MH_I2C_Read... [15:40:19]Read from MH i2c: D1 01 00 4D 30 00 4E [15:40:19]Write to MH i2c: 01 00 00 4E 30 7E [15:40:19]Write i2c OK [15:40:19]MH_I2C_Read... [15:40:19]OFD Sender: No OFD packet to send [15:40:19]*** Cut start [15:40:19]*** Partial cut [15:40:19]*** CUTSNS_PIN = 1 [15:40:19]*** CUTSNS_PIN = 0 [15:40:20]*** Brake cut motor [15:40:20]Read from MH i2c: 01 [15:40:20]MH_I2C_Read... [15:40:20]*** Stop cut motor [15:40:20]*** Cut end [15:40:20]Read from MH i2c: 01 07 00 [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: 01 07 00 4E 30 00 00 00 00 00 FF 0F 93 [15:40:20]process_action close_receipt done [15:40:20]requested_data is exist [15:40:20]produce_requested_data [15:40:20]requested_item fm.sn is exist - process it [15:40:20]wFMCommunicate request_size=4 [15:40:20]MH_SAM_APDU [15:40:20]CAPDU: 80 11 00 00 [15:40:20]Write to MH i2c: E2 08 00 4F 30 80 11 00 00 00 00 00 00 F9 [15:40:20]Write i2c OK [15:40:20]MH_I2C_Read... [15:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:20]Read from MH i2c: E2 [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: E2 17 00 [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: E2 17 00 4F 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4C [15:40:20]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:20]wFMCommunicate OK [15:40:20]requested_item fd.num is exist - process it [15:40:20]SAM_PROTO_GetFieldsCounters [15:40:20]wFMCommunicate request_size=4 [15:40:20]MH_SAM_APDU [15:40:20]CAPDU: 80 13 00 00 [15:40:20]Write to MH i2c: E2 08 00 50 30 80 13 00 00 00 00 00 00 FC [15:40:20]Write i2c OK [15:40:20]MH_I2C_Read... [15:40:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:20]Read from MH i2c: E2 [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: E2 62 00 [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: E2 62 00 50 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 D8 DA 02 00 0E 04 04 00 87 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 45 [15:40: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 D8 DA 02 00 0E 04 04 00 87 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 [15:40:20]wFMCommunicate OK [15:40:20]SAM_PROTO_GetFieldsCounters done [15:40:20]requested_item shift.num is exist - process it [15:40:20]requested_item shift.opened is exist - process it [15:40:20]req_shift_opened [15:40:20]FM_GetShiftState [15:40:20]SAM_PROTO_GetShiftState [15:40:20]wFMCommunicate request_size=4 [15:40:20]MH_SAM_APDU [15:40:20]CAPDU: 80 13 01 00 [15:40:20]Write to MH i2c: E2 08 00 51 30 80 13 01 00 00 00 00 00 FE [15:40:20]Write i2c OK [15:40:20]MH_I2C_Read... [15:40:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:20]Read from MH i2c: E2 [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: E2 0E 00 [15:40:20]MH_I2C_Read... [15:40:20]Read from MH i2c: E2 0E 00 51 30 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 7D [15:40:20]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:40:20]wFMCommunicate OK [15:40:20]SAM_PROTO_GetShiftState done [15:40:20]FM_GetShiftState done [15:40:20]req_shift_opened done [15:40:20]requested_item shift.open_date is exist - process it [15:40:20]req_shift_open_date [15:40:20]req_shift_open_date done [15:40:20]produce_requested_data done [15:40:20]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187096,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:40:20]process_action_free close_receipt [15:40:20]json_value_free [15:40:20]json_value_free done [15:40:20]process_json_proto returns [15:40:20]Send response to host [15:40:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187096,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:40:20]free response buf [15:40:20]execute_script done [15:40:20]execute_script returns [15:40:20]free content buf [15:40:20]Sock 9.Close socket [15:40:20]Sock 9.Thread stoped [15:40:21]accept exits with 7 [15:40:21]New connection [15:40:21]New thread 3067022692 created [15:40:21]Thread 3066879332 joined [15:40:21]Waiting for new connection... [15:40:21] Sock 7.Parse request [15:40:21]Sock 7.Check first char [15:40:21]Sock 7.First char is OK [15:40:21]request: POST /json_proto HTTP/1.0 [15:40:21]Method: POST [15:40:21]URL: /json_proto [15:40:21]Method is POST - this is cgi request [15:40:21]url: /json_proto [15:40:21]query_string will be loaded in cgi processing [15:40:21]execute_cgi json_proto POST (null) [15:40:21]execute_cgi path=json_proto method=POST [15:40:21]POST find Content-Length [15:40:21]Host: 172.17.46.131:8080 [15:40:21]Content-Length: 677 [15:40:21]Content-Type: application/json [15:40:21] [15:40:21]POST finish read [15:40:21]Found Content-Length = 677 [15:40:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412248", "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" ] } } [15:40:21]execute_script... [15:40: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)412248", "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" ] } } [15:40:21]POST & json_proto [15:40:21]process_json_proto [15:40:21]json parsed OK: [15:40:21]protocol is kg_v1.0 [15:40:21]action value=close_receipt [15:40:21]process_action close_receipt [15:40:21]cmd_close_receipt [15:40:21]MH_GetDate [15:40:21]Write to MH i2c: F0 00 00 52 30 71 [15:40:21]Write i2c OK [15:40:21]MH_I2C_Read... [15:40:21]Read from MH i2c: F0 [15:40:21]MH_I2C_Read... [15:40:21]Read from MH i2c: F0 09 00 [15:40:21]MH_I2C_Read... [15:40:21]Read from MH i2c: F0 09 00 52 30 00 69 FB B5 67 7E 41 4F 65 6D [15:40:21]GetLastDocTimeStamp 1739979620 [15:40:21]current date 1739979625 [15:40:21]FM_GetShiftState [15:40:21]SAM_PROTO_GetShiftState [15:40:21]wFMCommunicate request_size=4 [15:40:21]MH_SAM_APDU [15:40:21]CAPDU: 80 13 01 00 [15:40:21]Write to MH i2c: E2 08 00 53 30 80 13 01 00 00 00 00 00 00 [15:40:21]Write i2c OK [15:40:21]MH_I2C_Read... [15:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:21]Read from MH i2c: E2 [15:40:21]MH_I2C_Read... [15:40:21]Read from MH i2c: E2 0E 00 [15:40:21]MH_I2C_Read... [15:40:21]Read from MH i2c: E2 0E 00 53 30 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 7F [15:40:21]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:40:21]wFMCommunicate OK [15:40:21]SAM_PROTO_GetShiftState done [15:40:21]FM_GetShiftState done [15:40:21]opened in 1739929631 [15:40:21]opened+sec_in_day 1740016031 [15:40:21]quantity*price = 50011 [15:40:21]sum+1 = 50013 [15:40:21]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 СНО: Общий режим Чек 163 19.02.2025 15:40 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187097 ФПД: 142718253083216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T154025&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187097&fm=142718253083216&tin=02508201610067®Number=0000000000091857&sum=50000 [15:40:22]StoreToDocumentArchive [15:40:22]shift 647 fd 187097 [15:40:22]save to /storage/0647/doc_00187097 [15:40:22]save last doc name /storage/0647/doc_00187097 to /storage/kkm_last_doc_name [15:40:22]save OK [15:40:22]Clear old archive folders... [15:40:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:40:22]tlvbuf is 00683AE0 [15:40:22]SAM_PROTO_ClearQueue [15:40:22]wFMCommunicate request_size=4 [15:40:22]MH_SAM_APDU [15:40:22]CAPDU: 80 09 00 00 [15:40:22]Write to MH i2c: E2 08 00 60 30 80 09 00 00 00 00 00 00 02 [15:40:22]Write i2c OK [15:40:22]MH_I2C_Read... [15:40:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:22]Read from MH i2c: E2 [15:40:22]MH_I2C_Read... [15:40:22]Read from MH i2c: E2 03 00 [15:40:22]MH_I2C_Read... [15:40:22]Read from MH i2c: E2 03 00 60 30 00 90 00 04 [15:40:22]RAPDU: 90 00 [15:40:22]wFMCommunicate OK [15:40:22]SAM_PROTO_ClearQueue done [15:40:22]KKMCreateOFDPacket [15:40:22]OFDProtocolAddRootSTLVToBuf [15:40:22]FM_MakeSignedData [15:40:22]FM_MakeSignedData [15:40:22]SAM_PROTO_SignData [15:40:22]wFMCommunicate request_size=4 [15:40:22]MH_SAM_APDU [15:40:22]CAPDU: 80 0D 01 02 [15:40:22]Write to MH i2c: E2 08 00 61 30 80 0D 01 02 00 00 00 00 0A [15:40:22]Write i2c OK [15:40:22]MH_I2C_Read... [15:40:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:22]Read from MH i2c: E2 [15:40:22]MH_I2C_Read... [15:40:22]Read from MH i2c: E2 03 00 [15:40:22]MH_I2C_Read... [15:40:22]Read from MH i2c: E2 03 00 61 30 00 90 00 05 [15:40:22]RAPDU: 90 00 [15:40:22]wFMCommunicate OK [15:40:22]wFMCommunicate request_size=255 [15:40:22]MH_SAM_APDU [15:40:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A3 00 00 00 F4 03 04 00 69 FB 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 D9 DA 02 00 35 04 06 00 81 [15:40:22]Write to MH i2c: E2 02 01 62 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 A3 00 00 00 F4 03 04 00 69 FB 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 D9 DA 02 00 35 04 06 00 81 00 00 85 [15:40:22]Write i2c OK [15:40:22]MH_I2C_Read... [15:40:23]Read from MH i2c: E2 [15:40:23]MH_I2C_Read... [15:40:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:23]Read from MH i2c: E2 03 00 [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: E2 03 00 62 30 00 90 00 06 [15:40:23]RAPDU: 90 00 [15:40:23]wFMCommunicate OK [15:40:23]wFMCommunicate request_size=10 [15:40:23]MH_SAM_APDU [15:40:23]CAPDU: 80 0D 02 02 05 CD 2E C7 2A 50 [15:40:23]Write to MH i2c: E2 0D 00 63 30 80 0D 02 02 05 00 CD 2E C7 2A 50 00 00 53 [15:40:23]Write i2c OK [15:40:23]MH_I2C_Read... [15:40:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:23]Read from MH i2c: E2 [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: E2 03 00 [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: E2 03 00 63 30 00 90 00 07 [15:40:23]RAPDU: 90 00 [15:40:23]wFMCommunicate OK [15:40:23]wFMCommunicate request_size=4 [15:40:23]MH_SAM_APDU [15:40:23]CAPDU: 80 0D 03 02 [15:40:23]Write to MH i2c: E2 08 00 64 30 80 0D 03 02 00 00 00 00 0F [15:40:23]Write i2c OK [15:40:23]MH_I2C_Read... [15:40:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:23]Read from MH i2c: E2 [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: E2 0B 00 [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: E2 0B 00 64 30 00 B3 51 4B 00 09 5D 35 90 90 00 8A [15:40:23]RAPDU: B3 51 4B 00 09 5D 35 90 90 00 [15:40:23]wFMCommunicate OK [15:40:23]SAM_PROTO_SignData done [15:40:23]FM_MakeSignedData done [15:40:23]CreateOFDProtocolMessage [15:40:23]wFMCommunicate request_size=4 [15:40:23]MH_SAM_APDU [15:40:23]CAPDU: 80 11 00 00 [15:40:23]Write to MH i2c: E2 08 00 65 30 80 11 00 00 00 00 00 00 0F [15:40:23]Write i2c OK [15:40:23]MH_I2C_Read... [15:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:23]Read from MH i2c: E2 [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: E2 17 00 [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: E2 17 00 65 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 62 [15: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 [15:40:23]wFMCommunicate OK [15:40:23]CreateOFDProtocolMessage done [15:40:23]OFDSenderStorePacket 187097 [15:40:23]StoreOFDPacket docnum=187097 [15: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 89 4E 07 01 2A 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 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 A3 00 00 00 F4 03 04 00 69 FB 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 D9 DA 02 00 35 04 06 00 81 CD 2E C7 2A 50 B3 51 4B 00 09 5D 35 90 [15:40:23]CheckFolder [15:40:23]dirname=/storage/ofd_packets [15:40:23]CheckFolder done [15:40:23]ProducePacketName [15:40:23]name=ofd_packets/00187097 [15:40:23]NVStorageSaveData ofd_packets/00187097 [15:40:23]File name is /storage/ofd_packets/00187097 [15:40:23]Write 301 bytes [15:40:23]NVStorageSaveData done [15:40:23]OFDSenderStorePacket done [15:40:23]KKMCreateOFDPacket done [15:40:23]NVStorageSaveData kkm_last_timestamp [15:40:23]File name is /storage/kkm_last_timestamp [15:40:23]Write 4 bytes [15:40:23]NVStorageSaveData done [15:40:23]ExternCall_PrintAddStr [15:40:23]wPrintStart [15:40:23]Write to MH i2c: 01 00 00 66 30 96 [15:40:23]Write i2c OK [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: 01 [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: 01 07 00 [15:40:23]MH_I2C_Read... [15:40:23]Read from MH i2c: 01 07 00 66 30 00 00 00 00 00 FF 0F AB [15:40:23]RasterBufferAndPrint [15:40:23]line Счет N : (1)412248 [15:40:23]line ИНН: 02508201610067 [15:40:23]line Контрольно-Кассовый Чек [15:40:23]line ПРОДАЖА [15:40:23]line ТРК (МРК, ГНК) : 22 [15:40:23]line Товар: 2710124130 [15:40:23]line Аи-92-К-2 [15:40:23]line 7.790 * 64.20 [15:40:23]line = 500.12 [15:40:23]line НДС 12% НСП 1% [15:40:23]line > о реализуемом товаре [15:40:23]line ОКРУГЛЕНИЕ: -0.12 [15:40:23]line ИТОГО: 500.00 [15:40:23]line Внесено: 500.00 [15:40:23]line СДАЧА: 0.00 [15:40:23]line НСП 1% : 4.43 [15:40:23]line НДС 12% : 53.11 [15:40:23]line Наличными: 500.00 [15:40:23]line Безнал.: 0.00 [15:40:23]line Место: АЗС № 92 "Партнер Нефть" [15:40:23]OFD Sender: Processing packet 187097 [packets to send 49, broken 48] [15:40:23]ProducePacketName [15:40:23]name=ofd_packets/00187097 [15:40:23]OFD Sender: To server: pG, [15:40:23]CommunicateWithHost lk.salyk.kg:30040 [15:40:23]ConnectInit lk.salyk.kg [15:40:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:40:23]line СНО: Общий режим [15:40:23]line Чек 163 19.02.2025 15:40 [15:40:23]line Смена: 647 ФФД: 1.0 [15:40:23]line ЗНМ: 0300000118 [15:40:23]line РНМ: 0000000000091857 [15:40:23]line Версия ККМ: 001 [15:40:23]line ФМ: 0000000000871826 [15:40:23]line ФД: 187097 [15:40:23]line ФПД: 142718253083216 [15:40:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T154025&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187097&fm=142718253083216&tin=02508201610067®Number=0000000000091857&sum=50000 [15:40:23]Connected sock=11 [15:40:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 89 4E 07 01 2A 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 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 A3 00 00 00 F4 03 04 00 69 FB 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 D9 DA 02 00 35 04 06 00 81 CD 2E C7 2A 50 B3 51 4B 00 09 5D 35 90 [15:40:23]written 0, free lines is 4095 [15:40:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 34 ED 47 00 D4 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 D9 DA 02 00 F4 03 04 00 BD A1 B5 67 B6 04 01 00 00 D2 6E ED 9B 7D E2 AD 79 [15:40:23]CommunicateWithHost err = 0 [15:40:23]CheckOFDResponse [15:40:23]1017 (14) - 77093643461234 [15:40:23]1041 (16) - 0000000000871826 [15:40:23]1040 (4) - 187097 [15:40:23]1012 (4) - 19.02.2025 09:17 [15:40:23]1206 (1) - 0 [15:40:23]OFD Sender: Remove packet 187097 [15:40:23]ProducePacketName [15:40:23]name=ofd_packets/00187097 [15:40:23]NVStorageDeleteData [15:40:24]Write to MH i2c: 01 00 00 91 30 C1 [15:40:24]Write i2c OK [15:40:24]MH_I2C_Read... [15:40:24]Read from MH i2c: 01 [15:40:24]MH_I2C_Read... [15:40:24]Read from MH i2c: 01 07 00 [15:40:24]MH_I2C_Read... [15:40:24]Read from MH i2c: 01 07 00 91 30 00 00 00 00 00 F3 0C C7 [15:40:24]RasterBufferAndPrint [15:40:24]line [15:40:24]line [15:40:24]line [15:40:24]line [15:40:24]line [15:40:24]written 0, free lines is 3327 [15:40:24]MH_Cut [15:40:24]Write to MH i2c: D1 01 00 98 30 01 9A [15:40:24]Write i2c OK [15:40:24]MH_I2C_Read... [15:40:24]Read from MH i2c: D1 [15:40:24]MH_I2C_Read... [15:40:24]Read from MH i2c: D1 01 00 [15:40:24]MH_I2C_Read... [15:40:24]Read from MH i2c: D1 01 00 98 30 00 99 [15:40:24]Write to MH i2c: 01 00 00 99 30 C9 [15:40:24]Write i2c OK [15:40:24]MH_I2C_Read... [15:40:24]OFD Sender: No OFD packet to send [15:40:24]*** Cut start [15:40:24]*** Partial cut [15:40:24]*** CUTSNS_PIN = 1 [15:40:24]*** CUTSNS_PIN = 0 [15:40:25]*** Brake cut motor [15:40:25]Read from MH i2c: 01 [15:40:25]MH_I2C_Read... [15:40:25]*** Stop cut motor [15:40:25]*** Cut end [15:40:25]Read from MH i2c: 01 07 00 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: 01 07 00 99 30 00 00 00 00 00 FF 0F DE [15:40:25]process_action close_receipt done [15:40:25]requested_data is exist [15:40:25]produce_requested_data [15:40:25]requested_item fm.sn is exist - process it [15:40:25]wFMCommunicate request_size=4 [15:40:25]MH_SAM_APDU [15:40:25]CAPDU: 80 11 00 00 [15:40:25]Write to MH i2c: E2 08 00 9A 30 80 11 00 00 00 00 00 00 44 [15:40:25]Write i2c OK [15:40:25]MH_I2C_Read... [15:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:25]Read from MH i2c: E2 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: E2 17 00 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: E2 17 00 9A 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 97 [15:40:25]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:25]wFMCommunicate OK [15:40:25]requested_item fd.num is exist - process it [15:40:25]SAM_PROTO_GetFieldsCounters [15:40:25]wFMCommunicate request_size=4 [15:40:25]MH_SAM_APDU [15:40:25]CAPDU: 80 13 00 00 [15:40:25]Write to MH i2c: E2 08 00 9B 30 80 13 00 00 00 00 00 00 47 [15:40:25]Write i2c OK [15:40:25]MH_I2C_Read... [15:40:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:25]Read from MH i2c: E2 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: E2 62 00 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: E2 62 00 9B 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 D9 DA 02 00 0E 04 04 00 87 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 94 [15:40:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [15:40:25]wFMCommunicate OK [15:40:25]SAM_PROTO_GetFieldsCounters done [15:40:25]requested_item shift.num is exist - process it [15:40:25]requested_item shift.opened is exist - process it [15:40:25]req_shift_opened [15:40:25]FM_GetShiftState [15:40:25]SAM_PROTO_GetShiftState [15:40:25]wFMCommunicate request_size=4 [15:40:25]MH_SAM_APDU [15:40:25]CAPDU: 80 13 01 00 [15:40:25]Write to MH i2c: E2 08 00 9C 30 80 13 01 00 00 00 00 00 49 [15:40:25]Write i2c OK [15:40:25]MH_I2C_Read... [15:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:25]Read from MH i2c: E2 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: E2 0E 00 [15:40:25]MH_I2C_Read... [15:40:25]Read from MH i2c: E2 0E 00 9C 30 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C8 [15:40:25]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:40:25]wFMCommunicate OK [15:40:25]SAM_PROTO_GetShiftState done [15:40:25]FM_GetShiftState done [15:40:25]req_shift_opened done [15:40:25]requested_item shift.open_date is exist - process it [15:40:25]req_shift_open_date [15:40:25]req_shift_open_date done [15:40:25]produce_requested_data done [15:40:25]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187097,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:40:25]process_action_free close_receipt [15:40:25]json_value_free [15:40:25]json_value_free done [15:40:25]process_json_proto returns [15:40:25]Send response to host [15:40:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187097,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:40:25]free response buf [15:40:25]execute_script done [15:40:25]execute_script returns [15:40:25]free content buf [15:40:25]Sock 7.Close socket [15:40:25]Sock 7.Thread stoped [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]accept exits with 9 [15:44:29]New connection [15:44:29]New thread 3066879332 created [15:44:29]Thread 3067022692 joined [15:44:29]Waiting for new connection... [15:44:29] Sock 9.Parse request [15:44:29]Sock 9.Check first char [15:44:29]Sock 9.First char is OK [15:44:29]request: POST /json_proto HTTP/1.0 [15:44:29]Method: POST [15:44:29]URL: /json_proto [15:44:29]Method is POST - this is cgi request [15:44:29]url: /json_proto [15:44:29]query_string will be loaded in cgi processing [15:44:29]execute_cgi json_proto POST (null) [15:44:29]execute_cgi path=json_proto method=POST [15:44:29]POST find Content-Length [15:44:29]Host: 172.17.46.131:8080 [15:44:29]Content-Length: 677 [15:44:29]Content-Type: application/json [15:44:29] [15:44:29]POST finish read [15:44:29]Found Content-Length = 677 [15:44:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412251", "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" ] } } [15:44:29]execute_script... [15: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)412251", "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" ] } } [15:44:29]POST & json_proto [15:44:29]process_json_proto [15:44:29]json parsed OK: [15:44:29]protocol is kg_v1.0 [15:44:29]action value=close_receipt [15:44:29]process_action close_receipt [15:44:29]cmd_close_receipt [15:44:29]MH_GetDate [15:44:29]Write to MH i2c: F0 00 00 9D 30 BC [15:44:29]Write i2c OK [15:44:29]MH_I2C_Read... [15:44:29]Read from MH i2c: F0 [15:44:29]MH_I2C_Read... [15:44:29]Read from MH i2c: F0 09 00 [15:44:29]MH_I2C_Read... [15:44:29]Read from MH i2c: F0 09 00 9D 30 00 61 FC B5 67 7E 41 4F 65 B1 [15:44:29]GetLastDocTimeStamp 1739979625 [15:44:29]current date 1739979873 [15:44:29]FM_GetShiftState [15:44:29]SAM_PROTO_GetShiftState [15:44:29]wFMCommunicate request_size=4 [15:44:29]MH_SAM_APDU [15:44:29]CAPDU: 80 13 01 00 [15:44:29]Write to MH i2c: E2 08 00 9E 30 80 13 01 00 00 00 00 00 4B [15:44:29]Write i2c OK [15:44:29]MH_I2C_Read... [15:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:29]Read from MH i2c: E2 [15:44:29]MH_I2C_Read... [15:44:29]Read from MH i2c: E2 0E 00 [15:44:29]MH_I2C_Read... [15:44:29]Read from MH i2c: E2 0E 00 9E 30 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 CA [15:44:29]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:44:29]wFMCommunicate OK [15:44:29]SAM_PROTO_GetShiftState done [15:44:29]FM_GetShiftState done [15:44:29]opened in 1739929631 [15:44:29]opened+sec_in_day 1740016031 [15:44:29]quantity*price = 60027 [15:44:29]sum+1 = 60028 [15:44:29]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 СНО: Общий режим Чек 164 19.02.2025 15:44 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187098 ФПД: 7234167860572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T154433&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187098&fm=7234167860572&tin=02508201610067®Number=0000000000091857&sum=60000 [15:44:30]StoreToDocumentArchive [15:44:30]shift 647 fd 187098 [15:44:30]save to /storage/0647/doc_00187098 [15:44:30]save last doc name /storage/0647/doc_00187098 to /storage/kkm_last_doc_name [15:44:30]save OK [15:44:30]Clear old archive folders... [15:44:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:30]tlvbuf is 005E3230 [15:44:30]SAM_PROTO_ClearQueue [15:44:30]wFMCommunicate request_size=4 [15:44:30]MH_SAM_APDU [15:44:30]CAPDU: 80 09 00 00 [15:44:30]Write to MH i2c: E2 08 00 AB 30 80 09 00 00 00 00 00 00 4D [15:44:30]Write i2c OK [15:44:30]MH_I2C_Read... [15:44:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:30]Read from MH i2c: E2 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 03 00 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 03 00 AB 30 00 90 00 4F [15:44:30]RAPDU: 90 00 [15:44:30]wFMCommunicate OK [15:44:30]SAM_PROTO_ClearQueue done [15:44:30]KKMCreateOFDPacket [15:44:30]OFDProtocolAddRootSTLVToBuf [15:44:30]FM_MakeSignedData [15:44:30]FM_MakeSignedData [15:44:30]SAM_PROTO_SignData [15:44:30]wFMCommunicate request_size=4 [15:44:30]MH_SAM_APDU [15:44:30]CAPDU: 80 0D 01 02 [15:44:30]Write to MH i2c: E2 08 00 AC 30 80 0D 01 02 00 00 00 00 55 [15:44:30]Write i2c OK [15:44:30]MH_I2C_Read... [15:44:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:30]Read from MH i2c: E2 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 03 00 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 03 00 AC 30 00 90 00 50 [15:44:30]RAPDU: 90 00 [15:44:30]wFMCommunicate OK [15:44:30]wFMCommunicate request_size=255 [15:44:30]MH_SAM_APDU [15:44:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A4 00 00 00 F4 03 04 00 61 FC 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 DA DA 02 00 35 04 06 00 06 [15:44:30]Write to MH i2c: E2 02 01 AD 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 A4 00 00 00 F4 03 04 00 61 FC 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 DA DA 02 00 35 04 06 00 06 00 00 A6 [15:44:30]Write i2c OK [15:44:30]MH_I2C_Read... [15:44:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:30]Read from MH i2c: E2 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 03 00 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 03 00 AD 30 00 90 00 51 [15:44:30]RAPDU: 90 00 [15:44:30]wFMCommunicate OK [15:44:30]wFMCommunicate request_size=10 [15:44:30]MH_SAM_APDU [15:44:30]CAPDU: 80 0D 02 02 05 94 56 01 6D 5C [15:44:30]Write to MH i2c: E2 0D 00 AE 30 80 0D 02 02 05 00 94 56 01 6D 5C 00 00 16 [15:44:30]Write i2c OK [15:44:30]MH_I2C_Read... [15:44:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:30]Read from MH i2c: E2 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 03 00 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 03 00 AE 30 00 90 00 52 [15:44:30]RAPDU: 90 00 [15:44:30]wFMCommunicate OK [15:44:30]wFMCommunicate request_size=4 [15:44:30]MH_SAM_APDU [15:44:30]CAPDU: 80 0D 03 02 [15:44:30]Write to MH i2c: E2 08 00 AF 30 80 0D 03 02 00 00 00 00 5A [15:44:30]Write i2c OK [15:44:30]MH_I2C_Read... [15:44:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:30]Read from MH i2c: E2 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 0B 00 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 0B 00 AF 30 00 72 93 DF 89 54 B4 EF CD 90 00 8C [15:44:30]RAPDU: 72 93 DF 89 54 B4 EF CD 90 00 [15:44:30]wFMCommunicate OK [15:44:30]SAM_PROTO_SignData done [15:44:30]FM_MakeSignedData done [15:44:30]CreateOFDProtocolMessage [15:44:30]wFMCommunicate request_size=4 [15:44:30]MH_SAM_APDU [15:44:30]CAPDU: 80 11 00 00 [15:44:30]Write to MH i2c: E2 08 00 B0 30 80 11 00 00 00 00 00 00 5A [15:44:30]Write i2c OK [15:44:30]MH_I2C_Read... [15:44:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:30]Read from MH i2c: E2 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 17 00 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 17 00 B0 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AD [15:44:30]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:30]wFMCommunicate OK [15:44:30]CreateOFDProtocolMessage done [15:44:30]OFDSenderStorePacket 187098 [15:44:30]StoreOFDPacket docnum=187098 [15:44: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 0F 01 00 00 9F FD 07 01 5D 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 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 A4 00 00 00 F4 03 04 00 61 FC 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 DA DA 02 00 35 04 06 00 06 94 56 01 6D 5C 72 93 DF 89 54 B4 EF CD [15:44:30]CheckFolder [15:44:30]dirname=/storage/ofd_packets [15:44:30]CheckFolder done [15:44:30]ProducePacketName [15:44:30]name=ofd_packets/00187098 [15:44:30]NVStorageSaveData ofd_packets/00187098 [15:44:30]File name is /storage/ofd_packets/00187098 [15:44:30]Write 301 bytes [15:44:30]NVStorageSaveData done [15:44:30]OFDSenderStorePacket done [15:44:30]KKMCreateOFDPacket done [15:44:30]NVStorageSaveData kkm_last_timestamp [15:44:30]File name is /storage/kkm_last_timestamp [15:44:30]Write 4 bytes [15:44:30]NVStorageSaveData done [15:44:30]ExternCall_PrintAddStr [15:44:30]wPrintStart [15:44:30]Write to MH i2c: 01 00 00 B1 30 E1 [15:44:30]Write i2c OK [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: 01 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: 01 07 00 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: 01 07 00 B1 30 00 00 00 00 00 FF 0F F6 [15:44:30]RasterBufferAndPrint [15:44:30]line Счет N : (1)412251 [15:44:30]line ИНН: 02508201610067 [15:44:30]line Контрольно-Кассовый Чек [15:44:30]line ПРОДАЖА [15:44:30]line ТРК (МРК, ГНК) : 32 [15:44:30]line Товар: 2710124130 [15:44:30]line Аи-92-К-2 [15:44:30]line 9.350 * 64.20 [15:44:30]line = 600.27 [15:44:30]line НДС 12% НСП 1% [15:44:30]line > о реализуемом товаре [15:44:30]line ОКРУГЛЕНИЕ: -0.27 [15:44:30]line ИТОГО: 600.00 [15:44:30]line Внесено: 600.00 [15:44:30]line СДАЧА: 0.00 [15:44:30]line НСП 1% : 5.31 [15:44:30]line НДС 12% : 63.74 [15:44:30]line Наличными: 600.00 [15:44:30]line Безнал.: 0.00 [15:44:30]line Место: АЗС № 92 "Партнер Нефть" [15:44:30]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:44:30]line СНО: Общий режим [15:44:30]line Чек 164 19.02.2025 15:44 [15:44:30]line Смена: 647 ФФД: 1.0 [15:44:30]line ЗНМ: 0300000118 [15:44:30]line РНМ: 0000000000091857 [15:44:30]line Версия ККМ: 001 [15:44:30]line ФМ: 0000000000871826 [15:44:30]line ФД: 187098 [15:44:30]line ФПД: 7234167860572 [15:44:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T154433&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187098&fm=7234167860572&tin=02508201610067®Number=0000000000091857&sum=60000 [15:44:31]written 0, free lines is 4095 [15:44:31]OFD Sender: Processing packet 187098 [packets to send 49, broken 48] [15:44:31]ProducePacketName [15:44:31]name=ofd_packets/00187098 [15:44:31]OFD Sender: To server: pG, [15:44:31]CommunicateWithHost lk.salyk.kg:30040 [15:44:31]ConnectInit lk.salyk.kg [15:44:31]Connected sock=10 [15:44:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9F FD 07 01 5D 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 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 A4 00 00 00 F4 03 04 00 61 FC 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 DA DA 02 00 35 04 06 00 06 94 56 01 6D 5C 72 93 DF 89 54 B4 EF CD [15:44:31]Write to MH i2c: 01 00 00 DC 30 0C [15:44:31]Write i2c OK [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: 01 [15:44:31]MH_I2C_Read... [15:44:31]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 47 47 00 66 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 DA DA 02 00 F4 03 04 00 B5 A2 B5 67 B6 04 01 00 00 4A 11 2E 40 1C 17 DB 95 [15:44:31]CommunicateWithHost err = 0 [15:44:31]CheckOFDResponse [15:44:31]1017 (14) - 77093643461234 [15:44:31]1041 (16) - 0000000000871826 [15:44:31]1040 (4) - 187098 [15:44:31]1012 (4) - 19.02.2025 09:21 [15:44:31]1206 (1) - 0 [15:44:31]OFD Sender: Remove packet 187098 [15:44:31]ProducePacketName [15:44:31]name=ofd_packets/00187098 [15:44:31]NVStorageDeleteData [15:44:31]Read from MH i2c: 01 07 00 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: 01 07 00 DC 30 00 00 00 00 00 EC 0C 0B [15:44:31]RasterBufferAndPrint [15:44:31]line [15:44:31]line [15:44:31]line [15:44:31]line [15:44:31]line [15:44:31]written 0, free lines is 3320 [15:44:31]MH_Cut [15:44:31]Write to MH i2c: D1 01 00 E3 30 01 E5 [15:44:31]Write i2c OK [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: D1 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: D1 01 00 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: D1 01 00 E3 30 00 E4 [15:44:31]Write to MH i2c: 01 00 00 E4 30 14 [15:44:31]Write i2c OK [15:44:31]MH_I2C_Read... [15:44:32]OFD Sender: No OFD packet to send [15:44:32]*** Cut start [15:44:32]*** Partial cut [15:44:32]*** CUTSNS_PIN = 1 [15:44:32]*** CUTSNS_PIN = 0 [15:44:32]*** Brake cut motor [15:44:33]Read from MH i2c: 01 [15:44:33]MH_I2C_Read... [15:44:33]*** Stop cut motor [15:44:33]*** Cut end [15:44:33]Read from MH i2c: 01 07 00 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: 01 07 00 E4 30 00 00 00 00 00 FF 0F 29 [15:44:33]process_action close_receipt done [15:44:33]requested_data is exist [15:44:33]produce_requested_data [15:44:33]requested_item fm.sn is exist - process it [15:44:33]wFMCommunicate request_size=4 [15:44:33]MH_SAM_APDU [15:44:33]CAPDU: 80 11 00 00 [15:44:33]Write to MH i2c: E2 08 00 E5 30 80 11 00 00 00 00 00 00 8F [15:44:33]Write i2c OK [15:44:33]MH_I2C_Read... [15:44:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:33]Read from MH i2c: E2 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: E2 17 00 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: E2 17 00 E5 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E2 [15: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 [15:44:33]wFMCommunicate OK [15:44:33]requested_item fd.num is exist - process it [15:44:33]SAM_PROTO_GetFieldsCounters [15:44:33]wFMCommunicate request_size=4 [15:44:33]MH_SAM_APDU [15:44:33]CAPDU: 80 13 00 00 [15:44:33]Write to MH i2c: E2 08 00 E6 30 80 13 00 00 00 00 00 00 92 [15:44:33]Write i2c OK [15:44:33]MH_I2C_Read... [15:44:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:33]Read from MH i2c: E2 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: E2 62 00 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: E2 62 00 E6 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 DA DA 02 00 0E 04 04 00 87 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 E3 [15: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 DA DA 02 00 0E 04 04 00 87 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 [15:44:33]wFMCommunicate OK [15:44:33]SAM_PROTO_GetFieldsCounters done [15:44:33]requested_item shift.num is exist - process it [15:44:33]requested_item shift.opened is exist - process it [15:44:33]req_shift_opened [15:44:33]FM_GetShiftState [15:44:33]SAM_PROTO_GetShiftState [15:44:33]wFMCommunicate request_size=4 [15:44:33]MH_SAM_APDU [15:44:33]CAPDU: 80 13 01 00 [15:44:33]Write to MH i2c: E2 08 00 E7 30 80 13 01 00 00 00 00 00 94 [15:44:33]Write i2c OK [15:44:33]MH_I2C_Read... [15:44:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:33]Read from MH i2c: E2 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: E2 0E 00 [15:44:33]MH_I2C_Read... [15:44:33]Read from MH i2c: E2 0E 00 E7 30 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 13 [15:44:33]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:44:33]wFMCommunicate OK [15:44:33]SAM_PROTO_GetShiftState done [15:44:33]FM_GetShiftState done [15:44:33]req_shift_opened done [15:44:33]requested_item shift.open_date is exist - process it [15:44:33]req_shift_open_date [15:44:33]req_shift_open_date done [15:44:33]produce_requested_data done [15:44:33]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187098,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:44:33]process_action_free close_receipt [15:44:33]json_value_free [15:44:33]json_value_free done [15:44:33]process_json_proto returns [15:44:33]Send response to host [15:44:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187098,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:44:33]free response buf [15:44:33]execute_script done [15:44:33]execute_script returns [15:44:33]free content buf [15:44:33]Sock 9.Close socket [15:44:33]Sock 9.Thread stoped [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:50]accept exits with 7 [15:44:50]New connection [15:44:50]New thread 3067022692 created [15:44:50]Thread 3066879332 joined [15:44:50]Waiting for new connection... [15:44:50] Sock 7.Parse request [15:44:50]Sock 7.Check first char [15:44:50]Sock 7.First char is OK [15:44:50]request: POST /json_proto HTTP/1.0 [15:44:50]Method: POST [15:44:50]URL: /json_proto [15:44:50]Method is POST - this is cgi request [15:44:50]url: /json_proto [15:44:50]query_string will be loaded in cgi processing [15:44:50]execute_cgi json_proto POST (null) [15:44:50]execute_cgi path=json_proto method=POST [15:44:50]POST find Content-Length [15:44:50]Host: 172.17.46.131:8080 [15:44:50]Content-Length: 682 [15:44:50]Content-Type: application/json [15:44:50] [15:44:50]POST finish read [15:44:50]Found Content-Length = 682 [15:44:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412250", "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" : 25.050, "sum" : 1801.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1801.00, "payments": [ { "type": 0, "sum" : 1801.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:50]execute_script... [15:44:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412250", "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" : 25.050, "sum" : 1801.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1801.00, "payments": [ { "type": 0, "sum" : 1801.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:50]POST & json_proto [15:44:50]process_json_proto [15:44:50]json parsed OK: [15:44:50]protocol is kg_v1.0 [15:44:50]action value=close_receipt [15:44:50]process_action close_receipt [15:44:50]cmd_close_receipt [15:44:50]MH_GetDate [15:44:50]Write to MH i2c: F0 00 00 E8 30 07 [15:44:50]Write i2c OK [15:44:50]MH_I2C_Read... [15:44:50]Read from MH i2c: F0 [15:44:50]MH_I2C_Read... [15:44:50]Read from MH i2c: F0 09 00 [15:44:50]MH_I2C_Read... [15:44:50]Read from MH i2c: F0 09 00 E8 30 00 76 FC B5 67 7E 41 4F 65 11 [15:44:50]GetLastDocTimeStamp 1739979873 [15:44:50]current date 1739979894 [15:44:50]FM_GetShiftState [15:44:50]SAM_PROTO_GetShiftState [15:44:50]wFMCommunicate request_size=4 [15:44:50]MH_SAM_APDU [15:44:50]CAPDU: 80 13 01 00 [15:44:50]Write to MH i2c: E2 08 00 E9 30 80 13 01 00 00 00 00 00 96 [15:44:50]Write i2c OK [15:44:50]MH_I2C_Read... [15:44:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:50]Read from MH i2c: E2 [15:44:50]MH_I2C_Read... [15:44:50]Read from MH i2c: E2 0E 00 [15:44:50]MH_I2C_Read... [15:44:50]Read from MH i2c: E2 0E 00 E9 30 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 15 [15:44:50]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:44:50]wFMCommunicate OK [15:44:50]SAM_PROTO_GetShiftState done [15:44:50]FM_GetShiftState done [15:44:50]opened in 1739929631 [15:44:50]opened+sec_in_day 1740016031 [15:44:50]quantity*price = 180109 [15:44:50]sum+1 = 180111 [15:44:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 1801.00 Внесено: 2000.00 СДАЧА: 199.00 НСП 1% : 15.94 НДС 12% : 191.27 Наличными: 1801.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 165 19.02.2025 15:44 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187099 ФПД: 41875321012547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T154454&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187099&fm=41875321012547&tin=02508201610067®Number=0000000000091857&sum=180100 [15:44:51]StoreToDocumentArchive [15:44:51]shift 647 fd 187099 [15:44:51]save to /storage/0647/doc_00187099 [15:44:51]save last doc name /storage/0647/doc_00187099 to /storage/kkm_last_doc_name [15:44:51]save OK [15:44:51]Clear old archive folders... [15:44:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:51]tlvbuf is 005E4D80 [15:44:51]SAM_PROTO_ClearQueue [15:44:51]wFMCommunicate request_size=4 [15:44:51]MH_SAM_APDU [15:44:51]CAPDU: 80 09 00 00 [15:44:51]Write to MH i2c: E2 08 00 F6 30 80 09 00 00 00 00 00 00 98 [15:44:51]Write i2c OK [15:44:51]MH_I2C_Read... [15:44:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:51]Read from MH i2c: E2 [15:44:51]MH_I2C_Read... [15:44:51]Read from MH i2c: E2 03 00 [15:44:51]MH_I2C_Read... [15:44:51]Read from MH i2c: E2 03 00 F6 30 00 90 00 9A [15:44:51]RAPDU: 90 00 [15:44:51]wFMCommunicate OK [15:44:51]SAM_PROTO_ClearQueue done [15:44:51]KKMCreateOFDPacket [15:44:51]OFDProtocolAddRootSTLVToBuf [15:44:51]FM_MakeSignedData [15:44:51]FM_MakeSignedData [15:44:51]SAM_PROTO_SignData [15:44:51]wFMCommunicate request_size=4 [15:44:51]MH_SAM_APDU [15:44:51]CAPDU: 80 0D 01 02 [15:44:51]Write to MH i2c: E2 08 00 F7 30 80 0D 01 02 00 00 00 00 A0 [15:44:51]Write i2c OK [15:44:51]MH_I2C_Read... [15:44:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:51]Read from MH i2c: E2 [15:44:51]MH_I2C_Read... [15:44:51]Read from MH i2c: E2 03 00 [15:44:51]MH_I2C_Read... [15:44:51]Read from MH i2c: E2 03 00 F7 30 00 90 00 9B [15:44:51]RAPDU: 90 00 [15:44:51]wFMCommunicate OK [15:44:51]wFMCommunicate request_size=255 [15:44:51]MH_SAM_APDU [15:44:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DA 61 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8E BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 4A 00 00 00 00 07 04 06 00 84 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 A5 00 00 00 F4 03 04 00 76 FC 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 DB DA 02 00 35 04 06 00 26 [15:44:51]Write to MH i2c: E2 02 01 F8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DA 61 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8E BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 4A 00 00 00 00 07 04 06 00 84 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 A5 00 00 00 F4 03 04 00 76 FC 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 DB DA 02 00 35 04 06 00 26 00 00 D3 [15:44:51]Write i2c OK [15:44:51]MH_I2C_Read... [15:44:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:51]Read from MH i2c: E2 [15:44:51]MH_I2C_Read... [15:44:51]Read from MH i2c: E2 03 00 [15:44:51]MH_I2C_Read... [15:44:51]Read from MH i2c: E2 03 00 F8 30 00 90 00 9C [15:44:51]RAPDU: 90 00 [15:44:51]wFMCommunicate OK [15:44:51]wFMCommunicate request_size=10 [15:44:51]MH_SAM_APDU [15:44:51]CAPDU: 80 0D 02 02 05 15 DB A2 41 43 [15:44:51]Write to MH i2c: E2 0D 00 F9 30 80 0D 02 02 05 00 15 DB A2 41 43 00 00 C3 [15:44:51]Write i2c OK [15:44:51]MH_I2C_Read... [15:44:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:51]Read from MH i2c: E2 [15:44:51]MH_I2C_Read... [15:44:51]Read from MH i2c: E2 03 00 [15:44:51]MH_I2C_Read... [15:44:51]Read from MH i2c: E2 03 00 F9 30 00 90 00 9D [15:44:51]RAPDU: 90 00 [15:44:51]wFMCommunicate OK [15:44:51]wFMCommunicate request_size=4 [15:44:51]MH_SAM_APDU [15:44:51]CAPDU: 80 0D 03 02 [15:44:51]Write to MH i2c: E2 08 00 FA 30 80 0D 03 02 00 00 00 00 A5 [15:44:51]Write i2c OK [15:44:51]MH_I2C_Read... [15:44:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:51]Read from MH i2c: E2 [15:44:51]MH_I2C_Read... [15:44:51]Read from MH i2c: E2 0B 00 [15:44:51]MH_I2C_Read... [15:44:51]Read from MH i2c: E2 0B 00 FA 30 00 FD 4B EC 01 90 FE C0 41 90 00 6A [15:44:51]RAPDU: FD 4B EC 01 90 FE C0 41 90 00 [15:44:51]wFMCommunicate OK [15:44:51]SAM_PROTO_SignData done [15:44:51]FM_MakeSignedData done [15:44:51]CreateOFDProtocolMessage [15:44:51]wFMCommunicate request_size=4 [15:44:51]MH_SAM_APDU [15:44:51]CAPDU: 80 11 00 00 [15:44:51]Write to MH i2c: E2 08 00 FB 30 80 11 00 00 00 00 00 00 A5 [15:44:51]Write i2c OK [15:44:51]MH_I2C_Read... [15:44:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:51]Read from MH i2c: E2 [15:44:51]MH_I2C_Read... [15:44:51]Read from MH i2c: E2 17 00 [15:44:51]MH_I2C_Read... [15:44:51]Read from MH i2c: E2 17 00 FB 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F8 [15:44:51]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:51]wFMCommunicate OK [15:44:51]CreateOFDProtocolMessage done [15:44:51]OFDSenderStorePacket 187099 [15:44:51]StoreOFDPacket docnum=187099 [15:44: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 3C 40 07 01 2D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DA 61 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8E BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 4A 00 00 00 00 07 04 06 00 84 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 A5 00 00 00 F4 03 04 00 76 FC 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 DB DA 02 00 35 04 06 00 26 15 DB A2 41 43 FD 4B EC 01 90 FE C0 41 [15:44:51]CheckFolder [15:44:51]dirname=/storage/ofd_packets [15:44:51]CheckFolder done [15:44:51]ProducePacketName [15:44:51]name=ofd_packets/00187099 [15:44:51]NVStorageSaveData ofd_packets/00187099 [15:44:51]File name is /storage/ofd_packets/00187099 [15:44:51]Write 301 bytes [15:44:51]NVStorageSaveData done [15:44:51]OFDSenderStorePacket done [15:44:51]KKMCreateOFDPacket done [15:44:51]NVStorageSaveData kkm_last_timestamp [15:44:51]File name is /storage/kkm_last_timestamp [15:44:51]Write 4 bytes [15:44:51]NVStorageSaveData done [15:44:51]ExternCall_PrintAddStr [15:44:51]wPrintStart [15:44:51]Write to MH i2c: 01 00 00 FC 30 2C [15:44:51]Write i2c OK [15:44:51]MH_I2C_Read... [15:44:51]Read from MH i2c: 01 [15:44:51]MH_I2C_Read... [15:44:51]Read from MH i2c: 01 07 00 [15:44:51]MH_I2C_Read... [15:44:51]Read from MH i2c: 01 07 00 FC 30 00 00 00 00 00 FF 0F 41 [15:44:51]RasterBufferAndPrint [15:44:51]line Счет N : (1)412250 [15:44:51]line ИНН: 02508201610067 [15:44:51]line Контрольно-Кассовый Чек [15:44:51]line ПРОДАЖА [15:44:51]line ТРК (МРК, ГНК) : 23 [15:44:51]line Товар: 2710124500 [15:44:51]line Аи-95-К-5 [15:44:51]line 25.050 * 71.90 [15:44:51]line = 1801.10 [15:44:52]line НДС 12% НСП 1% [15:44:52]line > о реализуемом товаре [15:44:52]line ОКРУГЛЕНИЕ: -0.10 [15:44:52]line ИТОГО: 1801.00 [15:44:52]line Внесено: 2000.00 [15:44:52]line СДАЧА: 199.00 [15:44:52]line НСП 1% : 15.94 [15:44:52]line НДС 12% : 191.27 [15:44:52]line Наличными: 1801.00 [15:44:52]line Безнал.: 0.00 [15:44:52]line Место: АЗС № 92 "Партнер Нефть" [15:44:52]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:44:52]line СНО: Общий режим [15:44:52]line Чек 165 19.02.2025 15:44 [15:44:52]line Смена: 647 ФФД: 1.0 [15:44:52]line ЗНМ: 0300000118 [15:44:52]line РНМ: 0000000000091857 [15:44:52]line Версия ККМ: 001 [15:44:52]line ФМ: 0000000000871826 [15:44:52]line ФД: 187099 [15:44:52]line ФПД: 41875321012547 [15:44:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T154454&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187099&fm=41875321012547&tin=02508201610067®Number=0000000000091857&sum=180100 [15:44:52]OFD Sender: Processing packet 187099 [packets to send 49, broken 48] [15:44:52]ProducePacketName [15:44:52]name=ofd_packets/00187099 [15:44:52]OFD Sender: To server: pG, [15:44:52]CommunicateWithHost lk.salyk.kg:30040 [15:44:52]ConnectInit lk.salyk.kg [15:44:52]written 0, free lines is 4095 [15:44:52]Connected sock=10 [15:44:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3C 40 07 01 2D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DA 61 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8E BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 4A 00 00 00 00 07 04 06 00 84 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 A5 00 00 00 F4 03 04 00 76 FC 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 DB DA 02 00 35 04 06 00 26 15 DB A2 41 43 FD 4B EC 01 90 FE C0 41 [15:44: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 06 10 47 00 D9 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 DB DA 02 00 F4 03 04 00 CA A2 B5 67 B6 04 01 00 00 62 03 3C C3 DB 1B 16 EC [15:44:52]CommunicateWithHost err = 0 [15:44:52]CheckOFDResponse [15:44:52]1017 (14) - 77093643461234 [15:44:52]1041 (16) - 0000000000871826 [15:44:52]1040 (4) - 187099 [15:44:52]1012 (4) - 19.02.2025 09:22 [15:44:52]1206 (1) - 0 [15:44:52]OFD Sender: Remove packet 187099 [15:44:52]ProducePacketName [15:44:52]name=ofd_packets/00187099 [15:44:52]NVStorageDeleteData [15:44:52]Write to MH i2c: 01 00 00 27 31 58 [15:44:52]Write i2c OK [15:44:52]MH_I2C_Read... [15:44:52]Read from MH i2c: 01 [15:44:52]MH_I2C_Read... [15:44:52]Read from MH i2c: 01 07 00 [15:44:52]MH_I2C_Read... [15:44:52]Read from MH i2c: 01 07 00 27 31 00 00 00 00 00 F5 0C 60 [15:44:52]RasterBufferAndPrint [15:44:52]line [15:44:52]line [15:44:52]line [15:44:52]line [15:44:52]line [15:44:52]written 0, free lines is 3327 [15:44:52]MH_Cut [15:44:52]Write to MH i2c: D1 01 00 2E 31 01 31 [15:44:52]Write i2c OK [15:44:52]MH_I2C_Read... [15:44:52]Read from MH i2c: D1 [15:44:52]MH_I2C_Read... [15:44:52]Read from MH i2c: D1 01 00 [15:44:52]MH_I2C_Read... [15:44:52]Read from MH i2c: D1 01 00 2E 31 00 30 [15:44:52]Write to MH i2c: 01 00 00 2F 31 60 [15:44:52]Write i2c OK [15:44:52]MH_I2C_Read... [15:44:53]OFD Sender: No OFD packet to send [15:44:53]*** Cut start [15:44:53]*** Partial cut [15:44:53]*** CUTSNS_PIN = 1 [15:44:53]*** CUTSNS_PIN = 0 [15:44:53]*** Brake cut motor [15:44:54]Read from MH i2c: 01 [15:44:54]MH_I2C_Read... [15:44:54]*** Stop cut motor [15:44:54]*** Cut end [15:44:54]Read from MH i2c: 01 07 00 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: 01 07 00 2F 31 00 00 00 00 00 FF 0F 75 [15:44:54]process_action close_receipt done [15:44:54]requested_data is exist [15:44:54]produce_requested_data [15:44:54]requested_item fm.sn is exist - process it [15:44:54]wFMCommunicate request_size=4 [15:44:54]MH_SAM_APDU [15:44:54]CAPDU: 80 11 00 00 [15:44:54]Write to MH i2c: E2 08 00 30 31 80 11 00 00 00 00 00 00 DB [15:44:54]Write i2c OK [15:44:54]MH_I2C_Read... [15:44:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:54]Read from MH i2c: E2 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 17 00 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 17 00 30 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2E [15:44:54]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:54]wFMCommunicate OK [15:44:54]requested_item fd.num is exist - process it [15:44:54]SAM_PROTO_GetFieldsCounters [15:44:54]wFMCommunicate request_size=4 [15:44:54]MH_SAM_APDU [15:44:54]CAPDU: 80 13 00 00 [15:44:54]Write to MH i2c: E2 08 00 31 31 80 13 00 00 00 00 00 00 DE [15:44:54]Write i2c OK [15:44:54]MH_I2C_Read... [15:44:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:54]Read from MH i2c: E2 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 62 00 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 62 00 31 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 DB DA 02 00 0E 04 04 00 87 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 33 [15:44:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [15:44:54]wFMCommunicate OK [15:44:54]SAM_PROTO_GetFieldsCounters done [15:44:54]requested_item shift.num is exist - process it [15:44:54]requested_item shift.opened is exist - process it [15:44:54]req_shift_opened [15:44:54]FM_GetShiftState [15:44:54]SAM_PROTO_GetShiftState [15:44:54]wFMCommunicate request_size=4 [15:44:54]MH_SAM_APDU [15:44:54]CAPDU: 80 13 01 00 [15:44:54]Write to MH i2c: E2 08 00 32 31 80 13 01 00 00 00 00 00 E0 [15:44:54]Write i2c OK [15:44:54]MH_I2C_Read... [15:44:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:54]Read from MH i2c: E2 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 0E 00 [15:44:54]MH_I2C_Read... [15:44:54]Read from MH i2c: E2 0E 00 32 31 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 5F [15:44:54]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:44:54]wFMCommunicate OK [15:44:54]SAM_PROTO_GetShiftState done [15:44:54]FM_GetShiftState done [15:44:54]req_shift_opened done [15:44:54]requested_item shift.open_date is exist - process it [15:44:54]req_shift_open_date [15:44:54]req_shift_open_date done [15:44:54]produce_requested_data done [15:44:54]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187099,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:44:54]process_action_free close_receipt [15:44:54]json_value_free [15:44:54]json_value_free done [15:44:54]process_json_proto returns [15:44:54]Send response to host [15:44:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187099,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:44:54]free response buf [15:44:54]execute_script done [15:44:54]execute_script returns [15:44:54]free content buf [15:44:54]Sock 7.Close socket [15:44:54]Sock 7.Thread stoped [15:44:58]OFD Sender: No OFD packet to send [15:45:03]OFD Sender: No OFD packet to send [15:45:08]OFD Sender: No OFD packet to send [15:45:13]OFD Sender: No OFD packet to send [15:45:18]OFD Sender: No OFD packet to send [15:45:23]OFD Sender: No OFD packet to send [15:45:28]OFD Sender: No OFD packet to send [15:45:33]OFD Sender: No OFD packet to send [15:45:38]OFD Sender: No OFD packet to send [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:58]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:08]OFD Sender: No OFD packet to send [15:46:13]OFD Sender: No OFD packet to send [15:46:18]OFD Sender: No OFD packet to send [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:53]OFD Sender: No OFD packet to send [15:47:58]OFD Sender: No OFD packet to send [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:18]OFD Sender: No OFD packet to send [15:48:23]OFD Sender: No OFD packet to send [15:48:28]OFD Sender: No OFD packet to send [15:48:33]OFD Sender: No OFD packet to send [15:48:38]OFD Sender: No OFD packet to send [15:48:43]OFD Sender: No OFD packet to send [15:48:48]OFD Sender: No OFD packet to send [15:48:53]OFD Sender: No OFD packet to send [15:48:58]OFD Sender: No OFD packet to send [15:48:59]accept exits with 9 [15:48:59]New connection [15:48:59]New thread 3066879332 created [15:48:59]Thread 3067022692 joined [15:48:59]Waiting for new connection... [15:48:59] Sock 9.Parse request [15:48:59]Sock 9.Check first char [15:48:59]Sock 9.First char is OK [15:48:59]request: POST /json_proto HTTP/1.0 [15:48:59]Method: POST [15:48:59]URL: /json_proto [15:48:59]Method is POST - this is cgi request [15:48:59]url: /json_proto [15:48:59]query_string will be loaded in cgi processing [15:48:59]execute_cgi json_proto POST (null) [15:48:59]execute_cgi path=json_proto method=POST [15:48:59]POST find Content-Length [15:48:59]Host: 172.17.46.131:8080 [15:48:59]Content-Length: 678 [15:48:59]Content-Type: application/json [15:48:59] [15:48:59]POST finish read [15:48:59]Found Content-Length = 678 [15:48:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412252", "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" ] } } [15:48:59]execute_script... [15:48:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412252", "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" ] } } [15:48:59]POST & json_proto [15:48:59]process_json_proto [15:48:59]json parsed OK: [15:48:59]protocol is kg_v1.0 [15:48:59]action value=close_receipt [15:48:59]process_action close_receipt [15:48:59]cmd_close_receipt [15:48:59]MH_GetDate [15:48:59]Write to MH i2c: F0 00 00 33 31 53 [15:48:59]Write i2c OK [15:48:59]MH_I2C_Read... [15:48:59]Read from MH i2c: F0 [15:48:59]MH_I2C_Read... [15:48:59]Read from MH i2c: F0 09 00 [15:48:59]MH_I2C_Read... [15:48:59]Read from MH i2c: F0 09 00 33 31 00 6F FD B5 67 7E 41 4F 65 57 [15:48:59]GetLastDocTimeStamp 1739979894 [15:48:59]current date 1739980143 [15:48:59]FM_GetShiftState [15:48:59]SAM_PROTO_GetShiftState [15:48:59]wFMCommunicate request_size=4 [15:48:59]MH_SAM_APDU [15:48:59]CAPDU: 80 13 01 00 [15:48:59]Write to MH i2c: E2 08 00 34 31 80 13 01 00 00 00 00 00 E2 [15:48:59]Write i2c OK [15:48:59]MH_I2C_Read... [15:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:59]Read from MH i2c: E2 [15:48:59]MH_I2C_Read... [15:48:59]Read from MH i2c: E2 0E 00 [15:48:59]MH_I2C_Read... [15:48:59]Read from MH i2c: E2 0E 00 34 31 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 61 [15:48:59]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:48:59]wFMCommunicate OK [15:48:59]SAM_PROTO_GetShiftState done [15:48:59]FM_GetShiftState done [15:48:59]opened in 1739929631 [15:48:59]opened+sec_in_day 1740016031 [15:48:59]quantity*price = 100042 [15:48:59]sum+1 = 100044 [15:48: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 СНО: Общий режим Чек 166 19.02.2025 15:49 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187100 ФПД: 145775460274200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T154903&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187100&fm=145775460274200&tin=02508201610067®Number=0000000000091857&sum=100000 [15:49:00]StoreToDocumentArchive [15:49:00]shift 647 fd 187100 [15:49:00]save to /storage/0647/doc_00187100 [15:49:00]save last doc name /storage/0647/doc_00187100 to /storage/kkm_last_doc_name [15:49:00]save OK [15:49:00]Clear old archive folders... [15:49:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:49:00]tlvbuf is B6F66140 [15:49:00]SAM_PROTO_ClearQueue [15:49:00]wFMCommunicate request_size=4 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 09 00 00 [15:49:00]Write to MH i2c: E2 08 00 41 31 80 09 00 00 00 00 00 00 E4 [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 [15:49:00]MH_I2C_Read... [15:49:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:00]Read from MH i2c: E2 03 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 41 31 00 90 00 E6 [15:49:00]RAPDU: 90 00 [15:49:00]wFMCommunicate OK [15:49:00]SAM_PROTO_ClearQueue done [15:49:00]KKMCreateOFDPacket [15:49:00]OFDProtocolAddRootSTLVToBuf [15:49:00]FM_MakeSignedData [15:49:00]FM_MakeSignedData [15:49:00]SAM_PROTO_SignData [15:49:00]wFMCommunicate request_size=4 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 0D 01 02 [15:49:00]Write to MH i2c: E2 08 00 42 31 80 0D 01 02 00 00 00 00 EC [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:00]Read from MH i2c: E2 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 42 31 00 90 00 E7 [15:49:00]RAPDU: 90 00 [15:49:00]wFMCommunicate OK [15:49:00]wFMCommunicate request_size=255 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A6 00 00 00 F4 03 04 00 6F FD 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 DC DA 02 00 35 04 06 00 84 94 FE 86 [15:49:00]Write to MH i2c: E2 02 01 43 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 A6 00 00 00 F4 03 04 00 6F FD 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 DC DA 02 00 35 04 06 00 84 94 FE 86 00 00 9B [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:00]Read from MH i2c: E2 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 43 31 00 90 00 E8 [15:49:00]RAPDU: 90 00 [15:49:00]wFMCommunicate OK [15:49:00]wFMCommunicate request_size=7 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 0D 02 02 02 D0 18 [15:49:00]Write to MH i2c: E2 0A 00 44 31 80 0D 02 02 02 00 D0 18 00 00 DB [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:00]Read from MH i2c: E2 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 44 31 00 90 00 E9 [15:49:00]RAPDU: 90 00 [15:49:00]wFMCommunicate OK [15:49:00]wFMCommunicate request_size=4 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 0D 03 02 [15:49:00]Write to MH i2c: E2 08 00 45 31 80 0D 03 02 00 00 00 00 F1 [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:00]Read from MH i2c: E2 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 0B 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 0B 00 45 31 00 F5 D3 D8 1C B1 BB E0 4F 90 00 49 [15:49:00]RAPDU: F5 D3 D8 1C B1 BB E0 4F 90 00 [15:49:00]wFMCommunicate OK [15:49:00]SAM_PROTO_SignData done [15:49:00]FM_MakeSignedData done [15:49:00]CreateOFDProtocolMessage [15:49:00]wFMCommunicate request_size=4 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 11 00 00 [15:49:00]Write to MH i2c: E2 08 00 46 31 80 11 00 00 00 00 00 00 F1 [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:00]Read from MH i2c: E2 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 17 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 17 00 46 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 44 [15:49:00]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:00]wFMCommunicate OK [15:49:00]CreateOFDProtocolMessage done [15:49:00]OFDSenderStorePacket 187100 [15:49:00]StoreOFDPacket docnum=187100 [15:49: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 D4 2F 04 01 F9 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 A6 00 00 00 F4 03 04 00 6F FD 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 DC DA 02 00 35 04 06 00 84 94 FE 86 D0 18 F5 D3 D8 1C B1 BB E0 4F [15:49:00]CheckFolder [15:49:00]dirname=/storage/ofd_packets [15:49:00]CheckFolder done [15:49:00]ProducePacketName [15:49:00]name=ofd_packets/00187100 [15:49:00]NVStorageSaveData ofd_packets/00187100 [15:49:00]File name is /storage/ofd_packets/00187100 [15:49:00]Write 298 bytes [15:49:00]NVStorageSaveData done [15:49:00]OFDSenderStorePacket done [15:49:00]KKMCreateOFDPacket done [15:49:00]NVStorageSaveData kkm_last_timestamp [15:49:00]File name is /storage/kkm_last_timestamp [15:49:00]Write 4 bytes [15:49:00]NVStorageSaveData done [15:49:00]ExternCall_PrintAddStr [15:49:00]wPrintStart [15:49:00]Write to MH i2c: 01 00 00 47 31 78 [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: 01 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: 01 07 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: 01 07 00 47 31 00 00 00 00 00 FF 0F 8D [15:49:00]RasterBufferAndPrint [15:49:00]line Счет N : (1)412252 [15:49:00]line ИНН: 02508201610067 [15:49:00]line Контрольно-Кассовый Чек [15:49:00]line ПРОДАЖА [15:49:00]line ТРК (МРК, ГНК) : 5 [15:49:00]line Товар: 2710194210 [15:49:00]line ДТ-К-5 [15:49:00]line 13.780 * 72.60 [15:49:00]line = 1000.43 [15:49:00]line НДС 12% НСП 1% [15:49:00]line > о реализуемом товаре [15:49:00]line ОКРУГЛЕНИЕ: -0.43 [15:49:00]line ИТОГО: 1000.00 [15:49:00]line Внесено: 1000.00 [15:49:00]line СДАЧА: 0.00 [15:49:00]line НСП 1% : 8.85 [15:49:00]line НДС 12% : 106.24 [15:49:00]line Наличными: 1000.00 [15:49:00]line Безнал.: 0.00 [15:49:00]line Место: АЗС № 92 "Партнер Нефть" [15:49:00]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:49:00]line СНО: Общий режим [15:49:00]line Чек 166 19.02.2025 15:49 [15:49:00]line Смена: 647 ФФД: 1.0 [15:49:00]line ЗНМ: 0300000118 [15:49:00]line РНМ: 0000000000091857 [15:49:00]line Версия ККМ: 001 [15:49:00]line ФМ: 0000000000871826 [15:49:00]line ФД: 187100 [15:49:00]line ФПД: 145775460274200 [15:49:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T154903&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187100&fm=145775460274200&tin=02508201610067®Number=0000000000091857&sum=100000 [15:49:01]OFD Sender: Processing packet 187100 [packets to send 49, broken 48] [15:49:01]ProducePacketName [15:49:01]name=ofd_packets/00187100 [15:49:01]OFD Sender: To server: pG, [15:49:01]CommunicateWithHost lk.salyk.kg:30040 [15:49:01]ConnectInit lk.salyk.kg [15:49:01]written 0, free lines is 4095 [15:49:01]Connected sock=10 [15:49:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 D4 2F 04 01 F9 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 A6 00 00 00 F4 03 04 00 6F FD 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 DC DA 02 00 35 04 06 00 84 94 FE 86 D0 18 F5 D3 D8 1C B1 BB E0 4F [15:49:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4D AD 47 00 35 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DC DA 02 00 F4 03 04 00 C3 A3 B5 67 B6 04 01 00 00 02 B1 E8 49 19 4F F9 5A [15:49:01]CommunicateWithHost err = 0 [15:49:01]CheckOFDResponse [15:49:01]1017 (14) - 77093643461234 [15:49:01]1041 (16) - 0000000000871826 [15:49:01]1040 (4) - 187100 [15:49:01]1012 (4) - 19.02.2025 09:26 [15:49:01]1206 (1) - 0 [15:49:01]OFD Sender: Remove packet 187100 [15:49:01]ProducePacketName [15:49:01]name=ofd_packets/00187100 [15:49:01]NVStorageDeleteData [15:49:01]Write to MH i2c: 01 00 00 72 31 A3 [15:49:01]Write i2c OK [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: 01 [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: 01 07 00 [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: 01 07 00 72 31 00 00 00 00 00 EE 0C A4 [15:49:01]RasterBufferAndPrint [15:49:01]line [15:49:01]line [15:49:01]line [15:49:01]line [15:49:01]line [15:49:01]written 0, free lines is 3319 [15:49:01]MH_Cut [15:49:01]Write to MH i2c: D1 01 00 79 31 01 7C [15:49:01]Write i2c OK [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: D1 [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: D1 01 00 [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: D1 01 00 79 31 00 7B [15:49:01]Write to MH i2c: 01 00 00 7A 31 AB [15:49:01]Write i2c OK [15:49:01]MH_I2C_Read... [15:49:02]OFD Sender: No OFD packet to send [15:49:02]*** Cut start [15:49:02]*** Partial cut [15:49:02]*** CUTSNS_PIN = 1 [15:49:02]*** CUTSNS_PIN = 0 [15:49:02]*** Brake cut motor [15:49:03]Read from MH i2c: 01 [15:49:03]MH_I2C_Read... [15:49:03]*** Stop cut motor [15:49:03]*** Cut end [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 7A 31 00 00 00 00 00 FF 0F C0 [15:49:03]process_action close_receipt done [15:49:03]requested_data is exist [15:49:03]produce_requested_data [15:49:03]requested_item fm.sn is exist - process it [15:49:03]wFMCommunicate request_size=4 [15:49:03]MH_SAM_APDU [15:49:03]CAPDU: 80 11 00 00 [15:49:03]Write to MH i2c: E2 08 00 7B 31 80 11 00 00 00 00 00 00 26 [15:49:03]Write i2c OK [15:49:03]MH_I2C_Read... [15:49:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:03]Read from MH i2c: E2 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: E2 17 00 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: E2 17 00 7B 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 79 [15:49:03]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:03]wFMCommunicate OK [15:49:03]requested_item fd.num is exist - process it [15:49:03]SAM_PROTO_GetFieldsCounters [15:49:03]wFMCommunicate request_size=4 [15:49:03]MH_SAM_APDU [15:49:03]CAPDU: 80 13 00 00 [15:49:03]Write to MH i2c: E2 08 00 7C 31 80 13 00 00 00 00 00 00 29 [15:49:03]Write i2c OK [15:49:03]MH_I2C_Read... [15:49:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:03]Read from MH i2c: E2 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: E2 62 00 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: E2 62 00 7C 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 DC DA 02 00 0E 04 04 00 87 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 82 [15:49:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [15:49:03]wFMCommunicate OK [15:49:03]SAM_PROTO_GetFieldsCounters done [15:49:03]requested_item shift.num is exist - process it [15:49:03]requested_item shift.opened is exist - process it [15:49:03]req_shift_opened [15:49:03]FM_GetShiftState [15:49:03]SAM_PROTO_GetShiftState [15:49:03]wFMCommunicate request_size=4 [15:49:03]MH_SAM_APDU [15:49:03]CAPDU: 80 13 01 00 [15:49:03]Write to MH i2c: E2 08 00 7D 31 80 13 01 00 00 00 00 00 2B [15:49:03]Write i2c OK [15:49:03]MH_I2C_Read... [15:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:03]Read from MH i2c: E2 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: E2 0E 00 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: E2 0E 00 7D 31 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 AA [15:49:03]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:49:03]wFMCommunicate OK [15:49:03]SAM_PROTO_GetShiftState done [15:49:03]FM_GetShiftState done [15:49:03]req_shift_opened done [15:49:03]requested_item shift.open_date is exist - process it [15:49:03]req_shift_open_date [15:49:03]req_shift_open_date done [15:49:03]produce_requested_data done [15:49:03]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187100,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:49:03]process_action_free close_receipt [15:49:03]json_value_free [15:49:03]json_value_free done [15:49:03]process_json_proto returns [15:49:03]Send response to host [15:49:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187100,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:49:03]free response buf [15:49:03]execute_script done [15:49:03]execute_script returns [15:49:03]free content buf [15:49:03]Sock 9.Close socket [15:49:03]Sock 9.Thread stoped [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:21]accept exits with 7 [15:51:21]New connection [15:51:21]New thread 3067022692 created [15:51:21]Thread 3066879332 joined [15:51:21]Waiting for new connection... [15:51:21] Sock 7.Parse request [15:51:21]Sock 7.Check first char [15:51:21]Sock 7.First char is OK [15:51:21]request: POST /json_proto HTTP/1.0 [15:51:21]Method: POST [15:51:21]URL: /json_proto [15:51:21]Method is POST - this is cgi request [15:51:21]url: /json_proto [15:51:21]query_string will be loaded in cgi processing [15:51:21]execute_cgi json_proto POST (null) [15:51:21]execute_cgi path=json_proto method=POST [15:51:21]POST find Content-Length [15:51:21]Host: 172.17.46.131:8080 [15:51:21]Content-Length: 674 [15:51:21]Content-Type: application/json [15:51:21] [15:51:21]POST finish read [15:51:21]Found Content-Length = 674 [15:51:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412253", "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.710, "sum" : 850.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:21]execute_script... [15:51: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)412253", "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.710, "sum" : 850.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:21]POST & json_proto [15:51:21]process_json_proto [15:51:21]json parsed OK: [15:51:21]protocol is kg_v1.0 [15:51:21]action value=close_receipt [15:51:21]process_action close_receipt [15:51:21]cmd_close_receipt [15:51:21]MH_GetDate [15:51:21]Write to MH i2c: F0 00 00 7E 31 9E [15:51:21]Write i2c OK [15:51:21]MH_I2C_Read... [15:51:21]Read from MH i2c: F0 [15:51:21]MH_I2C_Read... [15:51:21]Read from MH i2c: F0 09 00 [15:51:21]MH_I2C_Read... [15:51:21]Read from MH i2c: F0 09 00 7E 31 00 FD FD B5 67 7E 41 4F 65 30 [15:51:21]GetLastDocTimeStamp 1739980143 [15:51:21]current date 1739980285 [15:51:21]FM_GetShiftState [15:51:21]SAM_PROTO_GetShiftState [15:51:21]wFMCommunicate request_size=4 [15:51:21]MH_SAM_APDU [15:51:21]CAPDU: 80 13 01 00 [15:51:21]Write to MH i2c: E2 08 00 7F 31 80 13 01 00 00 00 00 00 2D [15:51:21]Write i2c OK [15:51:21]MH_I2C_Read... [15:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:21]Read from MH i2c: E2 [15:51:21]MH_I2C_Read... [15:51:21]Read from MH i2c: E2 0E 00 [15:51:21]MH_I2C_Read... [15:51:21]Read from MH i2c: E2 0E 00 7F 31 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 AC [15:51:21]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:51:21]wFMCommunicate OK [15:51:21]SAM_PROTO_GetShiftState done [15:51:21]FM_GetShiftState done [15:51:21]opened in 1739929631 [15:51:21]opened+sec_in_day 1740016031 [15:51:21]quantity*price = 85014 [15:51:21]sum+1 = 85016 [15:51:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.28 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 167 19.02.2025 15:51 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187101 ФПД: 65487012953754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T155125&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187101&fm=65487012953754&tin=02508201610067®Number=0000000000091857&sum=85000 [15:51:22]StoreToDocumentArchive [15:51:22]shift 647 fd 187101 [15:51:22]save to /storage/0647/doc_00187101 [15:51:22]save last doc name /storage/0647/doc_00187101 to /storage/kkm_last_doc_name [15:51:22]save OK [15:51:22]Clear old archive folders... [15:51:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:51:22]tlvbuf is 005EDB70 [15:51:22]SAM_PROTO_ClearQueue [15:51:22]wFMCommunicate request_size=4 [15:51:22]MH_SAM_APDU [15:51:22]CAPDU: 80 09 00 00 [15:51:22]Write to MH i2c: E2 08 00 8C 31 80 09 00 00 00 00 00 00 2F [15:51:22]Write i2c OK [15:51:22]MH_I2C_Read... [15:51:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:22]Read from MH i2c: E2 [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: E2 03 00 [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: E2 03 00 8C 31 00 90 00 31 [15:51:22]RAPDU: 90 00 [15:51:22]wFMCommunicate OK [15:51:22]SAM_PROTO_ClearQueue done [15:51:22]KKMCreateOFDPacket [15:51:22]OFDProtocolAddRootSTLVToBuf [15:51:22]FM_MakeSignedData [15:51:22]FM_MakeSignedData [15:51:22]SAM_PROTO_SignData [15:51:22]wFMCommunicate request_size=4 [15:51:22]MH_SAM_APDU [15:51:22]CAPDU: 80 0D 01 02 [15:51:22]Write to MH i2c: E2 08 00 8D 31 80 0D 01 02 00 00 00 00 37 [15:51:22]Write i2c OK [15:51:22]MH_I2C_Read... [15:51:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:22]Read from MH i2c: E2 [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: E2 03 00 [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: E2 03 00 8D 31 00 90 00 32 [15:51:22]RAPDU: 90 00 [15:51:22]wFMCommunicate OK [15:51:22]wFMCommunicate request_size=255 [15:51:22]MH_SAM_APDU [15:51: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 BE 2D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 17 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 FD FD 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 DD DA 02 00 35 04 06 00 3B 8F 62 24 [15:51:22]Write to MH i2c: E2 02 01 8E 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 2D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 17 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 FD FD 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 DD DA 02 00 35 04 06 00 3B 8F 62 24 00 00 B2 [15:51:22]Write i2c OK [15:51:22]MH_I2C_Read... [15:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:23]Read from MH i2c: E2 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: E2 03 00 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: E2 03 00 8E 31 00 90 00 33 [15:51:23]RAPDU: 90 00 [15:51:23]wFMCommunicate OK [15:51:23]wFMCommunicate request_size=7 [15:51:23]MH_SAM_APDU [15:51:23]CAPDU: 80 0D 02 02 02 FE 9A [15:51:23]Write to MH i2c: E2 0A 00 8F 31 80 0D 02 02 02 00 FE 9A 00 00 D6 [15:51:23]Write i2c OK [15:51:23]MH_I2C_Read... [15:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:23]Read from MH i2c: E2 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: E2 03 00 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: E2 03 00 8F 31 00 90 00 34 [15:51:23]RAPDU: 90 00 [15:51:23]wFMCommunicate OK [15:51:23]wFMCommunicate request_size=4 [15:51:23]MH_SAM_APDU [15:51:23]CAPDU: 80 0D 03 02 [15:51:23]Write to MH i2c: E2 08 00 90 31 80 0D 03 02 00 00 00 00 3C [15:51:23]Write i2c OK [15:51:23]MH_I2C_Read... [15:51:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:23]Read from MH i2c: E2 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: E2 0B 00 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: E2 0B 00 90 31 00 93 42 2C DF AB 18 53 FE 90 00 31 [15:51:23]RAPDU: 93 42 2C DF AB 18 53 FE 90 00 [15:51:23]wFMCommunicate OK [15:51:23]SAM_PROTO_SignData done [15:51:23]FM_MakeSignedData done [15:51:23]CreateOFDProtocolMessage [15:51:23]wFMCommunicate request_size=4 [15:51:23]MH_SAM_APDU [15:51:23]CAPDU: 80 11 00 00 [15:51:23]Write to MH i2c: E2 08 00 91 31 80 11 00 00 00 00 00 00 3C [15:51:23]Write i2c OK [15:51:23]MH_I2C_Read... [15:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:23]Read from MH i2c: E2 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: E2 17 00 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: E2 17 00 91 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8F [15:51: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:51:23]wFMCommunicate OK [15:51:23]CreateOFDProtocolMessage done [15:51:23]OFDSenderStorePacket 187101 [15:51:23]StoreOFDPacket docnum=187101 [15:51: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 0C 01 00 00 56 B3 04 01 62 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 BE 2D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 17 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 FD FD 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 DD DA 02 00 35 04 06 00 3B 8F 62 24 FE 9A 93 42 2C DF AB 18 53 FE [15:51:23]CheckFolder [15:51:23]dirname=/storage/ofd_packets [15:51:23]CheckFolder done [15:51:23]ProducePacketName [15:51:23]name=ofd_packets/00187101 [15:51:23]NVStorageSaveData ofd_packets/00187101 [15:51:23]File name is /storage/ofd_packets/00187101 [15:51:23]Write 298 bytes [15:51:23]NVStorageSaveData done [15:51:23]OFDSenderStorePacket done [15:51:23]KKMCreateOFDPacket done [15:51:23]NVStorageSaveData kkm_last_timestamp [15:51:23]File name is /storage/kkm_last_timestamp [15:51:23]Write 4 bytes [15:51:23]NVStorageSaveData done [15:51:23]ExternCall_PrintAddStr [15:51:23]wPrintStart [15:51:23]Write to MH i2c: 01 00 00 92 31 C3 [15:51:23]Write i2c OK [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: 01 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: 01 07 00 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: 01 07 00 92 31 00 00 00 00 00 FF 0F D8 [15:51:23]RasterBufferAndPrint [15:51:23]line Счет N : (1)412253 [15:51:23]line ИНН: 02508201610067 [15:51:23]line Контрольно-Кассовый Чек [15:51:23]line ПРОДАЖА [15:51:23]line ТРК (МРК, ГНК) : 6 [15:51:23]line Товар: 2710194210 [15:51:23]line ДТ-К-5 [15:51:23]line 11.710 * 72.60 [15:51:23]line = 850.15 [15:51:23]line НДС 12% НСП 1% [15:51:23]line > о реализуемом товаре [15:51:23]line ОКРУГЛЕНИЕ: -0.15 [15:51:23]line ИТОГО: 850.00 [15:51:23]line Внесено: 850.00 [15:51:23]line СДАЧА: 0.00 [15:51:23]line НСП 1% : 7.52 [15:51:23]line НДС 12% : 90.28 [15:51:23]line Наличными: 850.00 [15:51:23]line Безнал.: 0.00 [15:51:23]line Место: АЗС № 92 "Партнер Нефть" [15:51:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:51:23]line СНО: Общий режим [15:51:23]line Чек 167 19.02.2025 15:51 [15:51:23]line Смена: 647 ФФД: 1.0 [15:51:23]line ЗНМ: 0300000118 [15:51:23]line РНМ: 0000000000091857 [15:51:23]line Версия ККМ: 001 [15:51:23]line ФМ: 0000000000871826 [15:51:23]line ФД: 187101 [15:51:23]line ФПД: 65487012953754 [15:51:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T155125&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187101&fm=65487012953754&tin=02508201610067®Number=0000000000091857&sum=85000 [15:51:23]written 0, free lines is 4095 [15:51:23]OFD Sender: Processing packet 187101 [packets to send 49, broken 48] [15:51:23]ProducePacketName [15:51:23]name=ofd_packets/00187101 [15:51:23]OFD Sender: To server: pG, [15:51:23]CommunicateWithHost lk.salyk.kg:30040 [15:51:23]ConnectInit lk.salyk.kg [15:51:23]Connected sock=11 [15:51:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 56 B3 04 01 62 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 BE 2D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 17 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 FD FD 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 DD DA 02 00 35 04 06 00 3B 8F 62 24 FE 9A 93 42 2C DF AB 18 53 FE [15:51:23]Write to MH i2c: 01 00 00 BD 31 EE [15:51:23]Write i2c OK [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: 01 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: 01 07 00 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: 01 07 00 BD 31 00 00 00 00 00 F3 0C F4 [15:51:23]RasterBufferAndPrint [15:51:23]line [15:51:23]line [15:51:23]line [15:51:23]line [15:51:23]line [15:51:23]written 0, free lines is 3321 [15:51:23]MH_Cut [15:51:23]Write to MH i2c: D1 01 00 C4 31 01 C7 [15:51:23]Write i2c OK [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: D1 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: D1 01 00 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: D1 01 00 C4 31 00 C6 [15:51:23]Write to MH i2c: 01 00 00 C5 31 F6 [15:51:23]Write i2c OK [15:51:23]MH_I2C_Read... [15:51: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 A7 A5 47 00 49 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DD DA 02 00 F4 03 04 00 51 A4 B5 67 B6 04 01 00 00 E4 48 DA 72 B5 B6 E3 45 [15:51:23]CommunicateWithHost err = 0 [15:51:23]CheckOFDResponse [15:51:23]1017 (14) - 77093643461234 [15:51:23]1041 (16) - 0000000000871826 [15:51:23]1040 (4) - 187101 [15:51:23]1012 (4) - 19.02.2025 09:28 [15:51:23]1206 (1) - 0 [15:51:23]OFD Sender: Remove packet 187101 [15:51:23]ProducePacketName [15:51:23]name=ofd_packets/00187101 [15:51:23]NVStorageDeleteData [15:51:24]OFD Sender: No OFD packet to send [15:51:24]*** Cut start [15:51:24]*** Partial cut [15:51:24]*** CUTSNS_PIN = 1 [15:51:24]*** CUTSNS_PIN = 0 [15:51:24]*** Brake cut motor [15:51:25]Read from MH i2c: 01 [15:51:25]MH_I2C_Read... [15:51:25]*** Stop cut motor [15:51:25]*** Cut end [15:51:25]Read from MH i2c: 01 07 00 [15:51:25]MH_I2C_Read... [15:51:25]Read from MH i2c: 01 07 00 C5 31 00 00 00 00 00 FF 0F 0B [15:51:25]process_action close_receipt done [15:51:25]requested_data is exist [15:51:25]produce_requested_data [15:51:25]requested_item fm.sn is exist - process it [15:51:25]wFMCommunicate request_size=4 [15:51:25]MH_SAM_APDU [15:51:25]CAPDU: 80 11 00 00 [15:51:25]Write to MH i2c: E2 08 00 C6 31 80 11 00 00 00 00 00 00 71 [15:51:25]Write i2c OK [15:51:25]MH_I2C_Read... [15:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:25]Read from MH i2c: E2 [15:51:25]MH_I2C_Read... [15:51:25]Read from MH i2c: E2 17 00 [15:51:25]MH_I2C_Read... [15:51:25]Read from MH i2c: E2 17 00 C6 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C4 [15:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:51:25]wFMCommunicate OK [15:51:25]requested_item fd.num is exist - process it [15:51:25]SAM_PROTO_GetFieldsCounters [15:51:25]wFMCommunicate request_size=4 [15:51:25]MH_SAM_APDU [15:51:25]CAPDU: 80 13 00 00 [15:51:25]Write to MH i2c: E2 08 00 C7 31 80 13 00 00 00 00 00 00 74 [15:51:25]Write i2c OK [15:51:25]MH_I2C_Read... [15:51:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:25]Read from MH i2c: E2 [15:51:25]MH_I2C_Read... [15:51:25]Read from MH i2c: E2 62 00 [15:51:25]MH_I2C_Read... [15:51:25]Read from MH i2c: E2 62 00 C7 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 DD DA 02 00 0E 04 04 00 87 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 D1 [15:51:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [15:51:25]wFMCommunicate OK [15:51:25]SAM_PROTO_GetFieldsCounters done [15:51:25]requested_item shift.num is exist - process it [15:51:25]requested_item shift.opened is exist - process it [15:51:25]req_shift_opened [15:51:25]FM_GetShiftState [15:51:25]SAM_PROTO_GetShiftState [15:51:25]wFMCommunicate request_size=4 [15:51:25]MH_SAM_APDU [15:51:25]CAPDU: 80 13 01 00 [15:51:25]Write to MH i2c: E2 08 00 C8 31 80 13 01 00 00 00 00 00 76 [15:51:25]Write i2c OK [15:51:25]MH_I2C_Read... [15:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:25]Read from MH i2c: E2 [15:51:25]MH_I2C_Read... [15:51:25]Read from MH i2c: E2 0E 00 [15:51:25]MH_I2C_Read... [15:51:25]Read from MH i2c: E2 0E 00 C8 31 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F5 [15:51:25]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:51:25]wFMCommunicate OK [15:51:25]SAM_PROTO_GetShiftState done [15:51:25]FM_GetShiftState done [15:51:25]req_shift_opened done [15:51:25]requested_item shift.open_date is exist - process it [15:51:25]req_shift_open_date [15:51:25]req_shift_open_date done [15:51:25]produce_requested_data done [15:51:25]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187101,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:51:25]process_action_free close_receipt [15:51:25]json_value_free [15:51:25]json_value_free done [15:51:25]process_json_proto returns [15:51:25]Send response to host [15:51:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187101,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:51:25]free response buf [15:51:25]execute_script done [15:51:25]execute_script returns [15:51:25]free content buf [15:51:25]Sock 7.Close socket [15:51:25]Sock 7.Thread stoped [15:51:29]OFD Sender: No OFD packet to send [15:51:34]OFD Sender: No OFD packet to send [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:54]OFD Sender: No OFD packet to send [15:51:59]OFD Sender: No OFD packet to send [15:52:04]OFD Sender: No OFD packet to send [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:19]OFD Sender: No OFD packet to send [15:53:24]OFD Sender: No OFD packet to send [15:53:29]OFD Sender: No OFD packet to send [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]OFD Sender: No OFD packet to send [15:57:22]accept exits with 9 [15:57:22]New connection [15:57:22]New thread 3066879332 created [15:57:22]Thread 3067022692 joined [15:57:22]Waiting for new connection... [15:57:22] Sock 9.Parse request [15:57:22]Sock 9.Check first char [15:57:22]Sock 9.First char is OK [15:57:22]request: POST /json_proto HTTP/1.0 [15:57:22]Method: POST [15:57:22]URL: /json_proto [15:57:22]Method is POST - this is cgi request [15:57:22]url: /json_proto [15:57:22]query_string will be loaded in cgi processing [15:57:22]execute_cgi json_proto POST (null) [15:57:22]execute_cgi path=json_proto method=POST [15:57:22]POST find Content-Length [15:57:22]Host: 172.17.46.131:8080 [15:57:22]Content-Length: 677 [15:57:22]Content-Type: application/json [15:57:22] [15:57:22]POST finish read [15:57:22]Found Content-Length = 677 [15:57:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412255", "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" ] } } [15:57:22]execute_script... [15:57:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412255", "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" ] } } [15:57:22]POST & json_proto [15:57:22]process_json_proto [15:57:22]json parsed OK: [15:57:22]protocol is kg_v1.0 [15:57:22]action value=close_receipt [15:57:22]process_action close_receipt [15:57:22]cmd_close_receipt [15:57:22]MH_GetDate [15:57:22]Write to MH i2c: F0 00 00 C9 31 E9 [15:57:22]Write i2c OK [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: F0 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: F0 09 00 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: F0 09 00 C9 31 00 66 FF B5 67 7E 41 4F 65 E6 [15:57:22]GetLastDocTimeStamp 1739980285 [15:57:22]current date 1739980646 [15:57:22]FM_GetShiftState [15:57:22]SAM_PROTO_GetShiftState [15:57:22]wFMCommunicate request_size=4 [15:57:22]MH_SAM_APDU [15:57:22]CAPDU: 80 13 01 00 [15:57:22]Write to MH i2c: E2 08 00 CA 31 80 13 01 00 00 00 00 00 78 [15:57:22]Write i2c OK [15:57:22]MH_I2C_Read... [15:57:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:22]Read from MH i2c: E2 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 0E 00 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 0E 00 CA 31 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F7 [15:57:22]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:57:22]wFMCommunicate OK [15:57:22]SAM_PROTO_GetShiftState done [15:57:22]FM_GetShiftState done [15:57:22]opened in 1739929631 [15:57:22]opened+sec_in_day 1740016031 [15:57:22]quantity*price = 30045 [15:57:22]sum+1 = 30047 [15:57:22]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 СНО: Общий режим Чек 168 19.02.2025 15:57 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187102 ФПД: 101896795982971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T155726&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187102&fm=101896795982971&tin=02508201610067®Number=0000000000091857&sum=30000 [15:57:23]StoreToDocumentArchive [15:57:23]shift 647 fd 187102 [15:57:23]save to /storage/0647/doc_00187102 [15:57:23]save last doc name /storage/0647/doc_00187102 to /storage/kkm_last_doc_name [15:57:23]save OK [15:57:23]Clear old archive folders... [15:57:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:57:23]tlvbuf is 00661F90 [15:57:23]SAM_PROTO_ClearQueue [15:57:23]wFMCommunicate request_size=4 [15:57:23]MH_SAM_APDU [15:57:23]CAPDU: 80 09 00 00 [15:57:23]Write to MH i2c: E2 08 00 D7 31 80 09 00 00 00 00 00 00 7A [15:57:23]Write i2c OK [15:57:23]MH_I2C_Read... [15:57:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:23]Read from MH i2c: E2 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: E2 03 00 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: E2 03 00 D7 31 00 90 00 7C [15:57:23]RAPDU: 90 00 [15:57:23]wFMCommunicate OK [15:57:23]SAM_PROTO_ClearQueue done [15:57:23]KKMCreateOFDPacket [15:57:23]OFDProtocolAddRootSTLVToBuf [15:57:23]FM_MakeSignedData [15:57:23]FM_MakeSignedData [15:57:23]SAM_PROTO_SignData [15:57:23]wFMCommunicate request_size=4 [15:57:23]MH_SAM_APDU [15:57:23]CAPDU: 80 0D 01 02 [15:57:23]Write to MH i2c: E2 08 00 D8 31 80 0D 01 02 00 00 00 00 82 [15:57:23]Write i2c OK [15:57:23]MH_I2C_Read... [15:57:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:23]Read from MH i2c: E2 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: E2 03 00 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: E2 03 00 D8 31 00 90 00 7D [15:57:23]RAPDU: 90 00 [15:57:23]wFMCommunicate OK [15:57:23]wFMCommunicate request_size=255 [15:57:23]MH_SAM_APDU [15:57:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 A8 00 00 00 F4 03 04 00 66 FF 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 DE DA 02 00 35 04 06 00 5C [15:57:23]Write to MH i2c: E2 02 01 D9 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 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 A8 00 00 00 F4 03 04 00 66 FF 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 DE DA 02 00 35 04 06 00 5C 00 00 88 [15:57:23]Write i2c OK [15:57:23]MH_I2C_Read... [15:57:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:23]Read from MH i2c: E2 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: E2 03 00 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: E2 03 00 D9 31 00 90 00 7E [15:57:23]RAPDU: 90 00 [15:57:23]wFMCommunicate OK [15:57:23]wFMCommunicate request_size=10 [15:57:23]MH_SAM_APDU [15:57:23]CAPDU: 80 0D 02 02 05 AC B2 54 0C 7B [15:57:23]Write to MH i2c: E2 0D 00 DA 31 80 0D 02 02 05 00 AC B2 54 0C 7B 00 00 C8 [15:57:23]Write i2c OK [15:57:23]MH_I2C_Read... [15:57:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:23]Read from MH i2c: E2 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: E2 03 00 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: E2 03 00 DA 31 00 90 00 7F [15:57:23]RAPDU: 90 00 [15:57:23]wFMCommunicate OK [15:57:23]wFMCommunicate request_size=4 [15:57:23]MH_SAM_APDU [15:57:23]CAPDU: 80 0D 03 02 [15:57:23]Write to MH i2c: E2 08 00 DB 31 80 0D 03 02 00 00 00 00 87 [15:57:23]Write i2c OK [15:57:23]MH_I2C_Read... [15:57:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:23]Read from MH i2c: E2 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: E2 0B 00 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: E2 0B 00 DB 31 00 E2 CC 26 8F FF 51 71 E7 90 00 93 [15:57:23]RAPDU: E2 CC 26 8F FF 51 71 E7 90 00 [15:57:23]wFMCommunicate OK [15:57:23]SAM_PROTO_SignData done [15:57:23]FM_MakeSignedData done [15:57:23]CreateOFDProtocolMessage [15:57:23]wFMCommunicate request_size=4 [15:57:23]MH_SAM_APDU [15:57:23]CAPDU: 80 11 00 00 [15:57:23]Write to MH i2c: E2 08 00 DC 31 80 11 00 00 00 00 00 00 87 [15:57:23]Write i2c OK [15:57:23]MH_I2C_Read... [15:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:23]Read from MH i2c: E2 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: E2 17 00 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: E2 17 00 DC 31 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:57: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:57:23]wFMCommunicate OK [15:57:23]CreateOFDProtocolMessage done [15:57:23]OFDSenderStorePacket 187102 [15:57:23]StoreOFDPacket docnum=187102 [15:57: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 70 C9 07 01 A9 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 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 A8 00 00 00 F4 03 04 00 66 FF 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 DE DA 02 00 35 04 06 00 5C AC B2 54 0C 7B E2 CC 26 8F FF 51 71 E7 [15:57:23]CheckFolder [15:57:23]dirname=/storage/ofd_packets [15:57:23]CheckFolder done [15:57:23]ProducePacketName [15:57:23]name=ofd_packets/00187102 [15:57:23]NVStorageSaveData ofd_packets/00187102 [15:57:23]File name is /storage/ofd_packets/00187102 [15:57:23]Write 301 bytes [15:57:23]NVStorageSaveData done [15:57:23]OFDSenderStorePacket done [15:57:23]KKMCreateOFDPacket done [15:57:23]NVStorageSaveData kkm_last_timestamp [15:57:23]File name is /storage/kkm_last_timestamp [15:57:23]Write 4 bytes [15:57:23]NVStorageSaveData done [15:57:23]ExternCall_PrintAddStr [15:57:23]wPrintStart [15:57:23]Write to MH i2c: 01 00 00 DD 31 0E [15:57:23]Write i2c OK [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: 01 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: 01 07 00 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: 01 07 00 DD 31 00 00 00 00 00 FF 0F 23 [15:57:23]RasterBufferAndPrint [15:57:23]line Счет N : (1)412255 [15:57:23]line ИНН: 02508201610067 [15:57:23]line Контрольно-Кассовый Чек [15:57:23]line ПРОДАЖА [15:57:23]line ТРК (МРК, ГНК) : 12 [15:57:23]line Товар: 2710124130 [15:57:23]line Аи-92-К-2 [15:57:23]line 4.680 * 64.20 [15:57:23]line = 300.46 [15:57:23]line НДС 12% НСП 1% [15:57:23]line > о реализуемом товаре [15:57:23]line ОКРУГЛЕНИЕ: -0.46 [15:57:23]line ИТОГО: 300.00 [15:57:23]line Внесено: 300.00 [15:57:23]line СДАЧА: 0.00 [15:57:23]line НСП 1% : 2.66 [15:57:23]line НДС 12% : 31.91 [15:57:23]line Наличными: 300.00 [15:57:23]line Безнал.: 0.00 [15:57:23]line Место: АЗС № 92 "Партнер Нефть" [15:57:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:57:23]line СНО: Общий режим [15:57:23]line Чек 168 19.02.2025 15:57 [15:57:23]line Смена: 647 ФФД: 1.0 [15:57:23]line ЗНМ: 0300000118 [15:57:23]line РНМ: 0000000000091857 [15:57:23]line Версия ККМ: 001 [15:57:23]line ФМ: 0000000000871826 [15:57:23]line ФД: 187102 [15:57:23]line ФПД: 101896795982971 [15:57:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T155726&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187102&fm=101896795982971&tin=02508201610067®Number=0000000000091857&sum=30000 [15:57:24]written 0, free lines is 4095 [15:57:24]OFD Sender: Processing packet 187102 [packets to send 49, broken 48] [15:57:24]ProducePacketName [15:57:24]name=ofd_packets/00187102 [15:57:24]OFD Sender: To server: pG, [15:57:24]CommunicateWithHost lk.salyk.kg:30040 [15:57:24]ConnectInit lk.salyk.kg [15:57:24]Connected sock=10 [15:57:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 70 C9 07 01 A9 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 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 A8 00 00 00 F4 03 04 00 66 FF 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 DE DA 02 00 35 04 06 00 5C AC B2 54 0C 7B E2 CC 26 8F FF 51 71 E7 [15:57:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7C 17 47 00 D2 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DE DA 02 00 F4 03 04 00 B9 A5 B5 67 B6 04 01 00 00 F0 9B 1F 30 B0 9D 22 62 [15:57:24]CommunicateWithHost err = 0 [15:57:24]CheckOFDResponse [15:57:24]1017 (14) - 77093643461234 [15:57:24]1041 (16) - 0000000000871826 [15:57:24]1040 (4) - 187102 [15:57:24]1012 (4) - 19.02.2025 09:34 [15:57:24]1206 (1) - 0 [15:57:24]OFD Sender: Remove packet 187102 [15:57:24]ProducePacketName [15:57:24]name=ofd_packets/00187102 [15:57:24]NVStorageDeleteData [15:57:24]Write to MH i2c: 01 00 00 08 32 3A [15:57:24]Write i2c OK [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: 01 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: 01 07 00 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: 01 07 00 08 32 00 00 00 00 00 EF 0C 3C [15:57:24]RasterBufferAndPrint [15:57:24]line [15:57:24]line [15:57:24]line [15:57:24]line [15:57:24]line [15:57:24]written 0, free lines is 3320 [15:57:24]MH_Cut [15:57:24]Write to MH i2c: D1 01 00 0F 32 01 13 [15:57:24]Write i2c OK [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: D1 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: D1 01 00 [15:57:24]MH_I2C_Read... [15:57:24]Read from MH i2c: D1 01 00 0F 32 00 12 [15:57:24]Write to MH i2c: 01 00 00 10 32 42 [15:57:24]Write i2c OK [15:57:24]MH_I2C_Read... [15:57:25]OFD Sender: No OFD packet to send [15:57:25]*** Cut start [15:57:25]*** Partial cut [15:57:25]*** CUTSNS_PIN = 1 [15:57:25]*** CUTSNS_PIN = 0 [15:57:25]*** Brake cut motor [15:57:26]Read from MH i2c: 01 [15:57:26]MH_I2C_Read... [15:57:26]*** Stop cut motor [15:57:26]*** Cut end [15:57:26]Read from MH i2c: 01 07 00 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: 01 07 00 10 32 00 00 00 00 00 FF 0F 57 [15:57:26]process_action close_receipt done [15:57:26]requested_data is exist [15:57:26]produce_requested_data [15:57:26]requested_item fm.sn is exist - process it [15:57:26]wFMCommunicate request_size=4 [15:57:26]MH_SAM_APDU [15:57:26]CAPDU: 80 11 00 00 [15:57:26]Write to MH i2c: E2 08 00 11 32 80 11 00 00 00 00 00 00 BD [15:57:26]Write i2c OK [15:57:26]MH_I2C_Read... [15:57:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:26]Read from MH i2c: E2 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 17 00 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 17 00 11 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 10 [15:57:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:57:26]wFMCommunicate OK [15:57:26]requested_item fd.num is exist - process it [15:57:26]SAM_PROTO_GetFieldsCounters [15:57:26]wFMCommunicate request_size=4 [15:57:26]MH_SAM_APDU [15:57:26]CAPDU: 80 13 00 00 [15:57:26]Write to MH i2c: E2 08 00 12 32 80 13 00 00 00 00 00 00 C0 [15:57:26]Write i2c OK [15:57:26]MH_I2C_Read... [15:57:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:26]Read from MH i2c: E2 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 62 00 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 62 00 12 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 DE DA 02 00 0E 04 04 00 87 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 21 [15:57:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [15:57:26]wFMCommunicate OK [15:57:26]SAM_PROTO_GetFieldsCounters done [15:57:26]requested_item shift.num is exist - process it [15:57:26]requested_item shift.opened is exist - process it [15:57:26]req_shift_opened [15:57:26]FM_GetShiftState [15:57:26]SAM_PROTO_GetShiftState [15:57:26]wFMCommunicate request_size=4 [15:57:26]MH_SAM_APDU [15:57:26]CAPDU: 80 13 01 00 [15:57:26]Write to MH i2c: E2 08 00 13 32 80 13 01 00 00 00 00 00 C2 [15:57:26]Write i2c OK [15:57:26]MH_I2C_Read... [15:57:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:26]Read from MH i2c: E2 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 0E 00 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 0E 00 13 32 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 41 [15:57:26]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:57:26]wFMCommunicate OK [15:57:26]SAM_PROTO_GetShiftState done [15:57:26]FM_GetShiftState done [15:57:26]req_shift_opened done [15:57:26]requested_item shift.open_date is exist - process it [15:57:26]req_shift_open_date [15:57:26]req_shift_open_date done [15:57:26]produce_requested_data done [15:57:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187102,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:57:26]process_action_free close_receipt [15:57:26]json_value_free [15:57:26]json_value_free done [15:57:26]process_json_proto returns [15:57:26]Send response to host [15:57:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187102,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:57:26]free response buf [15:57:26]execute_script done [15:57:26]execute_script returns [15:57:26]free content buf [15:57:26]Sock 9.Close socket [15:57:26]Sock 9.Thread stoped [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:42]accept exits with 7 [15:57:42]New connection [15:57:42]New thread 3067022692 created [15:57:42]Thread 3066879332 joined [15:57:42]Waiting for new connection... [15:57:42] Sock 7.Parse request [15:57:42]Sock 7.Check first char [15:57:42]Sock 7.First char is OK [15:57:42]request: POST /json_proto HTTP/1.0 [15:57:42]Method: POST [15:57:42]URL: /json_proto [15:57:42]Method is POST - this is cgi request [15:57:42]url: /json_proto [15:57:42]query_string will be loaded in cgi processing [15:57:42]execute_cgi json_proto POST (null) [15:57:42]execute_cgi path=json_proto method=POST [15:57:42]POST find Content-Length [15:57:42]Host: 172.17.46.131:8080 [15:57:42]Content-Length: 678 [15:57:42]Content-Type: application/json [15:57:42] [15:57:42]POST finish read [15:57:42]Found Content-Length = 678 [15:57:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412256", "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" ] } } [15:57:42]execute_script... [15:57: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)412256", "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" ] } } [15:57:42]POST & json_proto [15:57:42]process_json_proto [15:57:42]json parsed OK: [15:57:42]protocol is kg_v1.0 [15:57:42]action value=close_receipt [15:57:42]process_action close_receipt [15:57:42]cmd_close_receipt [15:57:42]MH_GetDate [15:57:42]Write to MH i2c: F0 00 00 14 32 35 [15:57:42]Write i2c OK [15:57:42]MH_I2C_Read... [15:57:42]Read from MH i2c: F0 [15:57:42]MH_I2C_Read... [15:57:42]Read from MH i2c: F0 09 00 [15:57:42]MH_I2C_Read... [15:57:42]Read from MH i2c: F0 09 00 14 32 00 7A FF B5 67 7E 41 4F 65 46 [15:57:42]GetLastDocTimeStamp 1739980646 [15:57:42]current date 1739980666 [15:57:42]FM_GetShiftState [15:57:42]SAM_PROTO_GetShiftState [15:57:42]wFMCommunicate request_size=4 [15:57:42]MH_SAM_APDU [15:57:42]CAPDU: 80 13 01 00 [15:57:42]Write to MH i2c: E2 08 00 15 32 80 13 01 00 00 00 00 00 C4 [15:57:42]Write i2c OK [15:57:42]MH_I2C_Read... [15:57:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:42]Read from MH i2c: E2 [15:57:42]MH_I2C_Read... [15:57:42]Read from MH i2c: E2 0E 00 [15:57:42]MH_I2C_Read... [15:57:42]Read from MH i2c: E2 0E 00 15 32 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 43 [15:57:42]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:57:42]wFMCommunicate OK [15:57:42]SAM_PROTO_GetShiftState done [15:57:42]FM_GetShiftState done [15:57:42]opened in 1739929631 [15:57:42]opened+sec_in_day 1740016031 [15:57:42]quantity*price = 140045 [15:57:42]sum+1 = 140046 [15:57:42]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 СНО: Общий режим Чек 169 19.02.2025 15:57 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187103 ФПД: 175099924482483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T155746&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187103&fm=175099924482483&tin=02508201610067®Number=0000000000091857&sum=140000 [15:57:43]StoreToDocumentArchive [15:57:43]shift 647 fd 187103 [15:57:43]save to /storage/0647/doc_00187103 [15:57:43]save last doc name /storage/0647/doc_00187103 to /storage/kkm_last_doc_name [15:57:43]save OK [15:57:43]Clear old archive folders... [15:57:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:57:43]tlvbuf is 005C6A30 [15:57:43]SAM_PROTO_ClearQueue [15:57:43]wFMCommunicate request_size=4 [15:57:43]MH_SAM_APDU [15:57:43]CAPDU: 80 09 00 00 [15:57:43]Write to MH i2c: E2 08 00 22 32 80 09 00 00 00 00 00 00 C6 [15:57:43]Write i2c OK [15:57:43]MH_I2C_Read... [15:57:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:43]Read from MH i2c: E2 [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: E2 03 00 [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: E2 03 00 22 32 00 90 00 C8 [15:57:43]RAPDU: 90 00 [15:57:43]wFMCommunicate OK [15:57:43]SAM_PROTO_ClearQueue done [15:57:43]KKMCreateOFDPacket [15:57:43]OFDProtocolAddRootSTLVToBuf [15:57:43]FM_MakeSignedData [15:57:43]FM_MakeSignedData [15:57:43]SAM_PROTO_SignData [15:57:43]wFMCommunicate request_size=4 [15:57:43]MH_SAM_APDU [15:57:43]CAPDU: 80 0D 01 02 [15:57:43]Write to MH i2c: E2 08 00 23 32 80 0D 01 02 00 00 00 00 CE [15:57:43]Write i2c OK [15:57:43]MH_I2C_Read... [15:57:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:43]Read from MH i2c: E2 [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: E2 03 00 [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: E2 03 00 23 32 00 90 00 C9 [15:57:43]RAPDU: 90 00 [15:57:43]wFMCommunicate OK [15:57:43]wFMCommunicate request_size=255 [15:57:43]MH_SAM_APDU [15:57: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 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 A9 00 00 00 F4 03 04 00 7A FF 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 DF DA 02 00 35 04 06 00 9F 40 A0 CC [15:57:43]Write to MH i2c: E2 02 01 24 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 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 A9 00 00 00 F4 03 04 00 7A FF 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 DF DA 02 00 35 04 06 00 9F 40 A0 CC 00 00 81 [15:57:43]Write i2c OK [15:57:43]MH_I2C_Read... [15:57:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:43]Read from MH i2c: E2 [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: E2 03 00 [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: E2 03 00 24 32 00 90 00 CA [15:57:43]RAPDU: 90 00 [15:57:43]wFMCommunicate OK [15:57:43]wFMCommunicate request_size=7 [15:57:43]MH_SAM_APDU [15:57:43]CAPDU: 80 0D 02 02 02 89 B3 [15:57:43]Write to MH i2c: E2 0A 00 25 32 80 0D 02 02 02 00 89 B3 00 00 11 [15:57:43]Write i2c OK [15:57:43]MH_I2C_Read... [15:57:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:43]Read from MH i2c: E2 [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: E2 03 00 [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: E2 03 00 25 32 00 90 00 CB [15:57:43]RAPDU: 90 00 [15:57:43]wFMCommunicate OK [15:57:43]wFMCommunicate request_size=4 [15:57:43]MH_SAM_APDU [15:57:43]CAPDU: 80 0D 03 02 [15:57:43]Write to MH i2c: E2 08 00 26 32 80 0D 03 02 00 00 00 00 D3 [15:57:43]Write i2c OK [15:57:43]MH_I2C_Read... [15:57:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:43]Read from MH i2c: E2 [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: E2 0B 00 [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: E2 0B 00 26 32 00 75 2B 4E E7 AC AD 8C AB 90 00 39 [15:57:43]RAPDU: 75 2B 4E E7 AC AD 8C AB 90 00 [15:57:43]wFMCommunicate OK [15:57:43]SAM_PROTO_SignData done [15:57:43]FM_MakeSignedData done [15:57:43]CreateOFDProtocolMessage [15:57:43]wFMCommunicate request_size=4 [15:57:43]MH_SAM_APDU [15:57:43]CAPDU: 80 11 00 00 [15:57:43]Write to MH i2c: E2 08 00 27 32 80 11 00 00 00 00 00 00 D3 [15:57:43]Write i2c OK [15:57:43]MH_I2C_Read... [15:57:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:43]Read from MH i2c: E2 [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: E2 17 00 [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: E2 17 00 27 32 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:57: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:57:43]wFMCommunicate OK [15:57:43]CreateOFDProtocolMessage done [15:57:43]OFDSenderStorePacket 187103 [15:57:43]StoreOFDPacket docnum=187103 [15:57: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 5A 20 04 01 20 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 A9 00 00 00 F4 03 04 00 7A FF 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 DF DA 02 00 35 04 06 00 9F 40 A0 CC 89 B3 75 2B 4E E7 AC AD 8C AB [15:57:43]CheckFolder [15:57:43]dirname=/storage/ofd_packets [15:57:43]CheckFolder done [15:57:43]ProducePacketName [15:57:43]name=ofd_packets/00187103 [15:57:43]NVStorageSaveData ofd_packets/00187103 [15:57:43]File name is /storage/ofd_packets/00187103 [15:57:43]Write 298 bytes [15:57:43]NVStorageSaveData done [15:57:43]OFDSenderStorePacket done [15:57:43]KKMCreateOFDPacket done [15:57:43]NVStorageSaveData kkm_last_timestamp [15:57:43]File name is /storage/kkm_last_timestamp [15:57:43]Write 4 bytes [15:57:43]NVStorageSaveData done [15:57:43]ExternCall_PrintAddStr [15:57:43]wPrintStart [15:57:43]Write to MH i2c: 01 00 00 28 32 5A [15:57:43]Write i2c OK [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: 01 [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: 01 07 00 [15:57:43]MH_I2C_Read... [15:57:43]Read from MH i2c: 01 07 00 28 32 00 00 00 00 00 FF 0F 6F [15:57:43]RasterBufferAndPrint [15:57:43]line Счет N : (1)412256 [15:57:43]line ИНН: 02508201610067 [15:57:43]line Контрольно-Кассовый Чек [15:57:43]line ПРОДАЖА [15:57:43]line ТРК (МРК, ГНК) : 5 [15:57:43]line Товар: 2710194210 [15:57:43]line ДТ-К-5 [15:57:43]line 19.290 * 72.60 [15:57:43]line = 1400.45 [15:57:43]line НДС 12% НСП 1% [15:57:43]line > о реализуемом товаре [15:57:43]line ОКРУГЛЕНИЕ: -0.45 [15:57:43]line ИТОГО: 1400.00 [15:57:43]line Внесено: 1400.00 [15:57:43]line СДАЧА: 0.00 [15:57:43]line НСП 1% : 12.39 [15:57:43]line НДС 12% : 148.72 [15:57:43]line Наличными: 1400.00 [15:57:43]line Безнал.: 0.00 [15:57:43]line Место: АЗС № 92 "Партнер Нефть" [15:57:43]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [15:57:43]line СНО: Общий режим [15:57:43]line Чек 169 19.02.2025 15:57 [15:57:43]line Смена: 647 ФФД: 1.0 [15:57:43]line ЗНМ: 0300000118 [15:57:43]line РНМ: 0000000000091857 [15:57:43]line Версия ККМ: 001 [15:57:43]line ФМ: 0000000000871826 [15:57:43]line ФД: 187103 [15:57:43]line ФПД: 175099924482483 [15:57:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T155746&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187103&fm=175099924482483&tin=02508201610067®Number=0000000000091857&sum=140000 [15:57:44]OFD Sender: Processing packet 187103 [packets to send 49, broken 48] [15:57:44]ProducePacketName [15:57:44]name=ofd_packets/00187103 [15:57:44]OFD Sender: To server: pG, [15:57:44]CommunicateWithHost lk.salyk.kg:30040 [15:57:44]ConnectInit lk.salyk.kg [15:57:44]written 0, free lines is 4095 [15:57:44]Connected sock=10 [15:57: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 5A 20 04 01 20 42 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 A9 00 00 00 F4 03 04 00 7A FF 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 DF DA 02 00 35 04 06 00 9F 40 A0 CC 89 B3 75 2B 4E E7 AC AD 8C AB [15:57: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 E1 6B 47 00 7C 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 DF DA 02 00 F4 03 04 00 CD A5 B5 67 B6 04 01 00 00 BE 00 FC D8 97 DA AC 85 [15:57:44]CommunicateWithHost err = 0 [15:57:44]CheckOFDResponse [15:57:44]1017 (14) - 77093643461234 [15:57:44]1041 (16) - 0000000000871826 [15:57:44]1040 (4) - 187103 [15:57:44]1012 (4) - 19.02.2025 09:35 [15:57:44]1206 (1) - 0 [15:57:44]OFD Sender: Remove packet 187103 [15:57:44]ProducePacketName [15:57:44]name=ofd_packets/00187103 [15:57:44]NVStorageDeleteData [15:57:44]Write to MH i2c: 01 00 00 53 32 85 [15:57:44]Write i2c OK [15:57:44]MH_I2C_Read... [15:57:44]Read from MH i2c: 01 [15:57:44]MH_I2C_Read... [15:57:44]Read from MH i2c: 01 07 00 [15:57:44]MH_I2C_Read... [15:57:44]Read from MH i2c: 01 07 00 53 32 00 00 00 00 00 FE 0C 96 [15:57:44]RasterBufferAndPrint [15:57:44]line [15:57:44]line [15:57:44]line [15:57:44]line [15:57:44]line [15:57:44]written 0, free lines is 3335 [15:57:44]MH_Cut [15:57:44]Write to MH i2c: D1 01 00 5A 32 01 5E [15:57:44]Write i2c OK [15:57:44]MH_I2C_Read... [15:57:44]Read from MH i2c: D1 [15:57:44]MH_I2C_Read... [15:57:44]Read from MH i2c: D1 01 00 [15:57:44]MH_I2C_Read... [15:57:44]Read from MH i2c: D1 01 00 5A 32 00 5D [15:57:44]Write to MH i2c: 01 00 00 5B 32 8D [15:57:44]Write i2c OK [15:57:44]MH_I2C_Read... [15:57:45]OFD Sender: No OFD packet to send [15:57:45]*** Cut start [15:57:45]*** Partial cut [15:57:45]*** CUTSNS_PIN = 1 [15:57:45]*** CUTSNS_PIN = 0 [15:57:45]*** Brake cut motor [15:57:46]Read from MH i2c: 01 [15:57:46]MH_I2C_Read... [15:57:46]*** Stop cut motor [15:57:46]*** Cut end [15:57:46]Read from MH i2c: 01 07 00 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: 01 07 00 5B 32 00 00 00 00 00 FF 0F A2 [15:57:46]process_action close_receipt done [15:57:46]requested_data is exist [15:57:46]produce_requested_data [15:57:46]requested_item fm.sn is exist - process it [15:57:46]wFMCommunicate request_size=4 [15:57:46]MH_SAM_APDU [15:57:46]CAPDU: 80 11 00 00 [15:57:46]Write to MH i2c: E2 08 00 5C 32 80 11 00 00 00 00 00 00 08 [15:57:46]Write i2c OK [15:57:46]MH_I2C_Read... [15:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:46]Read from MH i2c: E2 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: E2 17 00 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: E2 17 00 5C 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5B [15:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [15:57:46]wFMCommunicate OK [15:57:46]requested_item fd.num is exist - process it [15:57:46]SAM_PROTO_GetFieldsCounters [15:57:46]wFMCommunicate request_size=4 [15:57:46]MH_SAM_APDU [15:57:46]CAPDU: 80 13 00 00 [15:57:46]Write to MH i2c: E2 08 00 5D 32 80 13 00 00 00 00 00 00 0B [15:57:46]Write i2c OK [15:57:46]MH_I2C_Read... [15:57:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:46]Read from MH i2c: E2 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: E2 62 00 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: E2 62 00 5D 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 DF DA 02 00 0E 04 04 00 87 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 [15:57: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 DF DA 02 00 0E 04 04 00 87 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 [15:57:46]wFMCommunicate OK [15:57:46]SAM_PROTO_GetFieldsCounters done [15:57:46]requested_item shift.num is exist - process it [15:57:46]requested_item shift.opened is exist - process it [15:57:46]req_shift_opened [15:57:46]FM_GetShiftState [15:57:46]SAM_PROTO_GetShiftState [15:57:46]wFMCommunicate request_size=4 [15:57:46]MH_SAM_APDU [15:57:46]CAPDU: 80 13 01 00 [15:57:46]Write to MH i2c: E2 08 00 5E 32 80 13 01 00 00 00 00 00 0D [15:57:46]Write i2c OK [15:57:46]MH_I2C_Read... [15:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:46]Read from MH i2c: E2 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: E2 0E 00 [15:57:46]MH_I2C_Read... [15:57:46]Read from MH i2c: E2 0E 00 5E 32 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 8C [15:57:46]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [15:57:46]wFMCommunicate OK [15:57:46]SAM_PROTO_GetShiftState done [15:57:46]FM_GetShiftState done [15:57:46]req_shift_opened done [15:57:46]requested_item shift.open_date is exist - process it [15:57:46]req_shift_open_date [15:57:46]req_shift_open_date done [15:57:46]produce_requested_data done [15:57:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187103,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [15:57:46]process_action_free close_receipt [15:57:46]json_value_free [15:57:46]json_value_free done [15:57:46]process_json_proto returns [15:57:46]Send response to host [15:57:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187103,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [15:57:46]free response buf [15:57:46]execute_script done [15:57:46]execute_script returns [15:57:46]free content buf [15:57:46]Sock 7.Close socket [15:57:46]Sock 7.Thread stoped [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:25]OFD Sender: No OFD packet to send [15:59:30]OFD Sender: No OFD packet to send [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:17]accept exits with 9 [16:01:17]New connection [16:01:17]New thread 3066879332 created [16:01:17]Thread 3067022692 joined [16:01:17]Waiting for new connection... [16:01:17] Sock 9.Parse request [16:01:17]Sock 9.Check first char [16:01:17]Sock 9.First char is OK [16:01:17]request: POST /json_proto HTTP/1.0 [16:01:17]Method: POST [16:01:17]URL: /json_proto [16:01:17]Method is POST - this is cgi request [16:01:17]url: /json_proto [16:01:17]query_string will be loaded in cgi processing [16:01:17]execute_cgi json_proto POST (null) [16:01:17]execute_cgi path=json_proto method=POST [16:01:17]POST find Content-Length [16:01:17]Host: 172.17.46.131:8080 [16:01:17]Content-Length: 797 [16:01:17]Content-Type: application/json [16:01:17] [16:01:17]POST finish read [16:01:17]Found Content-Length = 797 [16:01:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412257", "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.340, "sum" : 750.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 750.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:17]execute_script... [16:01: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)412257", "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.340, "sum" : 750.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 750.68 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:17]POST & json_proto [16:01:17]process_json_proto [16:01:17]json parsed OK: [16:01:17]protocol is kg_v1.0 [16:01:17]action value=close_receipt [16:01:17]process_action close_receipt [16:01:17]cmd_close_receipt [16:01:17]MH_GetDate [16:01:17]Write to MH i2c: F0 00 00 5F 32 80 [16:01:18]Write i2c OK [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: F0 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: F0 09 00 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: F0 09 00 5F 32 00 52 00 B6 67 7E 41 4F 65 6B [16:01:18]GetLastDocTimeStamp 1739980666 [16:01:18]current date 1739980882 [16:01:18]FM_GetShiftState [16:01:18]SAM_PROTO_GetShiftState [16:01:18]wFMCommunicate request_size=4 [16:01:18]MH_SAM_APDU [16:01:18]CAPDU: 80 13 01 00 [16:01:18]Write to MH i2c: E2 08 00 60 32 80 13 01 00 00 00 00 00 0F [16:01:18]Write i2c OK [16:01:18]MH_I2C_Read... [16:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:18]Read from MH i2c: E2 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 0E 00 [16:01:18]MH_I2C_Read... [16:01:18]Read from MH i2c: E2 0E 00 60 32 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 8E [16:01:18]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:01:18]wFMCommunicate OK [16:01:18]SAM_PROTO_GetShiftState done [16:01:18]FM_GetShiftState done [16:01:18]opened in 1739929631 [16:01:18]opened+sec_in_day 1740016031 [16:01:18]quantity*price = 75068 [16:01:18]sum+1 = 75069 [16:01:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 750.68 НСП 1% : 6.64 НДС 12% : 79.72 Наличными: 0.00 Безнал.: 750.68 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 170 19.02.2025 16:01 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187104 ФПД: 242908493161092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T160122&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187104&fm=242908493161092&tin=02508201610067®Number=0000000000091857&sum=75068 [16:01:19]StoreToDocumentArchive [16:01:19]shift 647 fd 187104 [16:01:19]save to /storage/0647/doc_00187104 [16:01:19]save last doc name /storage/0647/doc_00187104 to /storage/kkm_last_doc_name [16:01:19]save OK [16:01:19]Clear old archive folders... [16:01:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:01:19]tlvbuf is B6F69420 [16:01:19]SAM_PROTO_ClearQueue [16:01:19]wFMCommunicate request_size=4 [16:01:19]MH_SAM_APDU [16:01:19]CAPDU: 80 09 00 00 [16:01:19]Write to MH i2c: E2 08 00 6D 32 80 09 00 00 00 00 00 00 11 [16:01:19]Write i2c OK [16:01:19]MH_I2C_Read... [16:01:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:19]Read from MH i2c: E2 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: E2 03 00 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: E2 03 00 6D 32 00 90 00 13 [16:01:19]RAPDU: 90 00 [16:01:19]wFMCommunicate OK [16:01:19]SAM_PROTO_ClearQueue done [16:01:19]KKMCreateOFDPacket [16:01:19]OFDProtocolAddRootSTLVToBuf [16:01:19]FM_MakeSignedData [16:01:19]FM_MakeSignedData [16:01:19]SAM_PROTO_SignData [16:01:19]wFMCommunicate request_size=4 [16:01:19]MH_SAM_APDU [16:01:19]CAPDU: 80 0D 01 02 [16:01:19]Write to MH i2c: E2 08 00 6E 32 80 0D 01 02 00 00 00 00 19 [16:01:19]Write i2c OK [16:01:19]MH_I2C_Read... [16:01:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:19]Read from MH i2c: E2 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: E2 03 00 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: E2 03 00 6E 32 00 90 00 14 [16:01:19]RAPDU: 90 00 [16:01:19]wFMCommunicate OK [16:01:19]wFMCommunicate request_size=255 [16:01:19]MH_SAM_APDU [16:01:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 3C 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 52 00 B6 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 E0 DA 02 00 35 04 06 00 DC EC 8A 72 [16:01:19]Write to MH i2c: E2 02 01 6F 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 64 28 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 3C 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 52 00 B6 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 E0 DA 02 00 35 04 06 00 DC EC 8A 72 00 00 A4 [16:01:19]Write i2c OK [16:01:19]MH_I2C_Read... [16:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:19]Read from MH i2c: E2 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: E2 03 00 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: E2 03 00 6F 32 00 90 00 15 [16:01:19]RAPDU: 90 00 [16:01:19]wFMCommunicate OK [16:01:19]wFMCommunicate request_size=7 [16:01:19]MH_SAM_APDU [16:01:19]CAPDU: 80 0D 02 02 02 A2 84 [16:01:19]Write to MH i2c: E2 0A 00 70 32 80 0D 02 02 02 00 A2 84 00 00 46 [16:01:19]Write i2c OK [16:01:19]MH_I2C_Read... [16:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:19]Read from MH i2c: E2 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: E2 03 00 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: E2 03 00 70 32 00 90 00 16 [16:01:19]RAPDU: 90 00 [16:01:19]wFMCommunicate OK [16:01:19]wFMCommunicate request_size=4 [16:01:19]MH_SAM_APDU [16:01:19]CAPDU: 80 0D 03 02 [16:01:19]Write to MH i2c: E2 08 00 71 32 80 0D 03 02 00 00 00 00 1E [16:01:19]Write i2c OK [16:01:19]MH_I2C_Read... [16:01:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:19]Read from MH i2c: E2 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: E2 0B 00 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: E2 0B 00 71 32 00 9A FC CC DC 2D D6 3E 51 90 00 EF [16:01:19]RAPDU: 9A FC CC DC 2D D6 3E 51 90 00 [16:01:19]wFMCommunicate OK [16:01:19]SAM_PROTO_SignData done [16:01:19]FM_MakeSignedData done [16:01:19]CreateOFDProtocolMessage [16:01:19]wFMCommunicate request_size=4 [16:01:19]MH_SAM_APDU [16:01:19]CAPDU: 80 11 00 00 [16:01:19]Write to MH i2c: E2 08 00 72 32 80 11 00 00 00 00 00 00 1E [16:01:19]Write i2c OK [16:01:19]MH_I2C_Read... [16:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:19]Read from MH i2c: E2 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: E2 17 00 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: E2 17 00 72 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 71 [16:01:19]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:19]wFMCommunicate OK [16:01:19]CreateOFDProtocolMessage done [16:01:19]OFDSenderStorePacket 187104 [16:01:19]StoreOFDPacket docnum=187104 [16:01:19]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 06 04 01 A4 A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 3C 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 52 00 B6 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 E0 DA 02 00 35 04 06 00 DC EC 8A 72 A2 84 9A FC CC DC 2D D6 3E 51 [16:01:19]CheckFolder [16:01:19]dirname=/storage/ofd_packets [16:01:19]CheckFolder done [16:01:19]ProducePacketName [16:01:19]name=ofd_packets/00187104 [16:01:19]NVStorageSaveData ofd_packets/00187104 [16:01:19]File name is /storage/ofd_packets/00187104 [16:01:19]Write 298 bytes [16:01:19]NVStorageSaveData done [16:01:19]OFDSenderStorePacket done [16:01:19]KKMCreateOFDPacket done [16:01:19]NVStorageSaveData kkm_last_timestamp [16:01:19]File name is /storage/kkm_last_timestamp [16:01:19]Write 4 bytes [16:01:19]NVStorageSaveData done [16:01:19]ExternCall_PrintAddStr [16:01:19]wPrintStart [16:01:19]Write to MH i2c: 01 00 00 73 32 A5 [16:01:19]Write i2c OK [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: 01 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: 01 07 00 [16:01:19]MH_I2C_Read... [16:01:19]Read from MH i2c: 01 07 00 73 32 00 00 00 00 00 FF 0F BA [16:01:19]RasterBufferAndPrint [16:01:19]line Счет N : (1)412257 [16:01:19]line ИНН: 02508201610067 [16:01:19]line Контрольно-Кассовый Чек [16:01:19]line ПРОДАЖА [16:01:19]line ТРК (МРК, ГНК) : 5 [16:01:19]line Товар: 2710194210 [16:01:19]line ДТ-К-5 [16:01:19]line 10.340 * 72.60 [16:01:19]line = 750.68 [16:01:19]line НДС 12% НСП 1% [16:01:19]line > о реализуемом товаре [16:01:19]line ИТОГО: 750.68 [16:01:19]line НСП 1% : 6.64 [16:01:19]line НДС 12% : 79.72 [16:01:19]line Наличными: 0.00 [16:01:19]line Безнал.: 750.68 [16:01:19]line Место: АЗС № 92 "Партнер Нефть" [16:01:19]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:01:19]line СНО: Общий режим [16:01:19]line Чек 170 19.02.2025 16:01 [16:01:19]line Смена: 647 ФФД: 1.0 [16:01:19]line ЗНМ: 0300000118 [16:01:19]line РНМ: 0000000000091857 [16:01:19]line Версия ККМ: 001 [16:01:19]line Платежная система: O! деньги [16:01:19]line ФМ: 0000000000871826 [16:01:19]line ФД: 187104 [16:01:19]line ФПД: 242908493161092 [16:01:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T160122&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187104&fm=242908493161092&tin=02508201610067®Number=0000000000091857&sum=75068 [16:01:20]OFD Sender: Processing packet 187104 [packets to send 49, broken 48] [16:01:20]ProducePacketName [16:01:20]name=ofd_packets/00187104 [16:01:20]OFD Sender: To server: pG, [16:01:20]CommunicateWithHost lk.salyk.kg:30040 [16:01:20]ConnectInit lk.salyk.kg [16:01:20]written 0, free lines is 4095 [16:01:20]Connected sock=10 [16:01: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 0C 01 00 00 2A 06 04 01 A4 A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 28 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 3C 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 52 00 B6 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 E0 DA 02 00 35 04 06 00 DC EC 8A 72 A2 84 9A FC CC DC 2D D6 3E 51 [16:01: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 DC 41 47 00 2D 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 E0 DA 02 00 F4 03 04 00 A5 A6 B5 67 B6 04 01 00 00 F2 91 7C 7A 0C B2 88 69 [16:01:20]CommunicateWithHost err = 0 [16:01:20]CheckOFDResponse [16:01:20]1017 (14) - 77093643461234 [16:01:20]1041 (16) - 0000000000871826 [16:01:20]1040 (4) - 187104 [16:01:20]1012 (4) - 19.02.2025 09:38 [16:01:20]1206 (1) - 0 [16:01:20]OFD Sender: Remove packet 187104 [16:01:20]ProducePacketName [16:01:20]name=ofd_packets/00187104 [16:01:20]NVStorageDeleteData [16:01:20]Write to MH i2c: 01 00 00 9D 32 CF [16:01:20]Write i2c OK [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: 01 [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: 01 07 00 [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: 01 07 00 9D 32 00 00 00 00 00 FB 0C DD [16:01:20]RasterBufferAndPrint [16:01:20]line [16:01:20]line [16:01:20]line [16:01:20]line [16:01:20]line [16:01:20]written 0, free lines is 3329 [16:01:20]MH_Cut [16:01:20]Write to MH i2c: D1 01 00 A4 32 01 A8 [16:01:20]Write i2c OK [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: D1 [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: D1 01 00 [16:01:20]MH_I2C_Read... [16:01:20]Read from MH i2c: D1 01 00 A4 32 00 A7 [16:01:20]Write to MH i2c: 01 00 00 A5 32 D7 [16:01:20]Write i2c OK [16:01:20]MH_I2C_Read... [16:01:20]OFD Sender: No OFD packet to send [16:01:21]*** Cut start [16:01:21]*** Partial cut [16:01:21]*** CUTSNS_PIN = 1 [16:01:21]*** CUTSNS_PIN = 0 [16:01:21]*** Brake cut motor [16:01:21]Read from MH i2c: 01 [16:01:21]MH_I2C_Read... [16:01:21]*** Stop cut motor [16:01:21]*** Cut end [16:01:21]Read from MH i2c: 01 07 00 [16:01:21]MH_I2C_Read... [16:01:21]Read from MH i2c: 01 07 00 A5 32 00 00 00 00 00 FF 0F EC [16:01:21]process_action close_receipt done [16:01:21]requested_data is exist [16:01:21]produce_requested_data [16:01:21]requested_item fm.sn is exist - process it [16:01:21]wFMCommunicate request_size=4 [16:01:21]MH_SAM_APDU [16:01:21]CAPDU: 80 11 00 00 [16:01:21]Write to MH i2c: E2 08 00 A6 32 80 11 00 00 00 00 00 00 52 [16:01:21]Write i2c OK [16:01:21]MH_I2C_Read... [16:01:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:21]Read from MH i2c: E2 [16:01:21]MH_I2C_Read... [16:01:21]Read from MH i2c: E2 17 00 [16:01:21]MH_I2C_Read... [16:01:21]Read from MH i2c: E2 17 00 A6 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A5 [16:01:21]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:21]wFMCommunicate OK [16:01:21]requested_item fd.num is exist - process it [16:01:21]SAM_PROTO_GetFieldsCounters [16:01:21]wFMCommunicate request_size=4 [16:01:21]MH_SAM_APDU [16:01:21]CAPDU: 80 13 00 00 [16:01:21]Write to MH i2c: E2 08 00 A7 32 80 13 00 00 00 00 00 00 55 [16:01:21]Write i2c OK [16:01:21]MH_I2C_Read... [16:01:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:22]Read from MH i2c: E2 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 62 00 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 62 00 A7 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 E0 DA 02 00 0E 04 04 00 87 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 BE [16:01: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 E0 DA 02 00 0E 04 04 00 87 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 [16:01:22]wFMCommunicate OK [16:01:22]SAM_PROTO_GetFieldsCounters done [16:01:22]requested_item shift.num is exist - process it [16:01:22]requested_item shift.opened is exist - process it [16:01:22]req_shift_opened [16:01:22]FM_GetShiftState [16:01:22]SAM_PROTO_GetShiftState [16:01:22]wFMCommunicate request_size=4 [16:01:22]MH_SAM_APDU [16:01:22]CAPDU: 80 13 01 00 [16:01:22]Write to MH i2c: E2 08 00 A8 32 80 13 01 00 00 00 00 00 57 [16:01:22]Write i2c OK [16:01:22]MH_I2C_Read... [16:01:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:22]Read from MH i2c: E2 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 0E 00 [16:01:22]MH_I2C_Read... [16:01:22]Read from MH i2c: E2 0E 00 A8 32 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D6 [16:01:22]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:01:22]wFMCommunicate OK [16:01:22]SAM_PROTO_GetShiftState done [16:01:22]FM_GetShiftState done [16:01:22]req_shift_opened done [16:01:22]requested_item shift.open_date is exist - process it [16:01:22]req_shift_open_date [16:01:22]req_shift_open_date done [16:01:22]produce_requested_data done [16:01:22]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187104,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [16:01:22]process_action_free close_receipt [16:01:22]json_value_free [16:01:22]json_value_free done [16:01:22]process_json_proto returns [16:01:22]Send response to host [16:01:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187104,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [16:01:22]free response buf [16:01:22]execute_script done [16:01:22]execute_script returns [16:01:22]free content buf [16:01:22]Sock 9.Close socket [16:01:22]Sock 9.Thread stoped [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:55]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:17]accept exits with 7 [16:02:17]New connection [16:02:17]New thread 3067022692 created [16:02:17]Thread 3066879332 joined [16:02:17]Waiting for new connection... [16:02:17] Sock 7.Parse request [16:02:17]Sock 7.Check first char [16:02:17]Sock 7.First char is OK [16:02:17]request: POST /json_proto HTTP/1.0 [16:02:17]Method: POST [16:02:17]URL: /json_proto [16:02:17]Method is POST - this is cgi request [16:02:17]url: /json_proto [16:02:17]query_string will be loaded in cgi processing [16:02:17]execute_cgi json_proto POST (null) [16:02:17]execute_cgi path=json_proto method=POST [16:02:17]POST find Content-Length [16:02:17]Host: 172.17.46.131:8080 [16:02:17]Content-Length: 751 [16:02:17]Content-Type: application/json [16:02:17] [16:02:17]POST finish read [16:02:17]Found Content-Length = 751 [16:02:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412258", "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" : 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30106530", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:17]execute_script... [16:02: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)412258", "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" : 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30106530", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:17]POST & json_proto [16:02:17]process_json_proto [16:02:17]json parsed OK: [16:02:17]protocol is kg_v1.0 [16:02:17]action value=close_receipt [16:02:17]process_action close_receipt [16:02:17]cmd_close_receipt [16:02:17]MH_GetDate [16:02:17]Write to MH i2c: F0 00 00 A9 32 CA [16:02:17]Write i2c OK [16:02:17]MH_I2C_Read... [16:02:17]Read from MH i2c: F0 [16:02:17]MH_I2C_Read... [16:02:17]Read from MH i2c: F0 09 00 [16:02:17]MH_I2C_Read... [16:02:17]Read from MH i2c: F0 09 00 A9 32 00 8D 00 B6 67 7E 41 4F 65 F0 [16:02:17]GetLastDocTimeStamp 1739980882 [16:02:17]current date 1739980941 [16:02:17]FM_GetShiftState [16:02:17]SAM_PROTO_GetShiftState [16:02:17]wFMCommunicate request_size=4 [16:02:17]MH_SAM_APDU [16:02:17]CAPDU: 80 13 01 00 [16:02:17]Write to MH i2c: E2 08 00 AA 32 80 13 01 00 00 00 00 00 59 [16:02:17]Write i2c OK [16:02:17]MH_I2C_Read... [16:02:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:17]Read from MH i2c: E2 [16:02:17]MH_I2C_Read... [16:02:17]Read from MH i2c: E2 0E 00 [16:02:17]MH_I2C_Read... [16:02:17]Read from MH i2c: E2 0E 00 AA 32 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D8 [16:02:17]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:02:17]wFMCommunicate OK [16:02:17]SAM_PROTO_GetShiftState done [16:02:17]FM_GetShiftState done [16:02:17]opened in 1739929631 [16:02:17]opened+sec_in_day 1740016031 [16:02:17]quantity*price = 0 [16:02:17]sum+1 = 1 [16:02:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 171 19.02.2025 16:02 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30106530 ФМ: 0000000000871826 ФД: 187105 ФПД: 178729513793058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T160222&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187105&fm=178729513793058&tin=02508201610067®Number=0000000000091857&sum=0 [16:02:19]StoreToDocumentArchive [16:02:19]shift 647 fd 187105 [16:02:19]save to /storage/0647/doc_00187105 [16:02:19]save last doc name /storage/0647/doc_00187105 to /storage/kkm_last_doc_name [16:02:19]save OK [16:02:19]Clear old archive folders... [16:02:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:02:19]tlvbuf is 005E2570 [16:02:19]SAM_PROTO_ClearQueue [16:02:19]wFMCommunicate request_size=4 [16:02:19]MH_SAM_APDU [16:02:19]CAPDU: 80 09 00 00 [16:02:19]Write to MH i2c: E2 08 00 B7 32 80 09 00 00 00 00 00 00 5B [16:02:19]Write i2c OK [16:02:19]MH_I2C_Read... [16:02:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:19]Read from MH i2c: E2 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: E2 03 00 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: E2 03 00 B7 32 00 90 00 5D [16:02:19]RAPDU: 90 00 [16:02:19]wFMCommunicate OK [16:02:19]SAM_PROTO_ClearQueue done [16:02:19]KKMCreateOFDPacket [16:02:19]OFDProtocolAddRootSTLVToBuf [16:02:19]FM_MakeSignedData [16:02:19]FM_MakeSignedData [16:02:19]SAM_PROTO_SignData [16:02:19]wFMCommunicate request_size=4 [16:02:19]MH_SAM_APDU [16:02:19]CAPDU: 80 0D 01 02 [16:02:19]Write to MH i2c: E2 08 00 B8 32 80 0D 01 02 00 00 00 00 63 [16:02:19]Write i2c OK [16:02:19]MH_I2C_Read... [16:02:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:19]Read from MH i2c: E2 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: E2 03 00 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: E2 03 00 B8 32 00 90 00 5E [16:02:19]RAPDU: 90 00 [16:02:19]wFMCommunicate OK [16:02:19]wFMCommunicate request_size=255 [16:02:19]MH_SAM_APDU [16:02:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 AB 00 00 00 F4 03 04 00 8E 00 B6 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 E1 DA 02 00 35 04 06 00 A2 8D B5 2E [16:02:19]Write to MH i2c: E2 02 01 B9 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 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 AB 00 00 00 F4 03 04 00 8E 00 B6 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 E1 DA 02 00 35 04 06 00 A2 8D B5 2E 00 00 A7 [16:02:19]Write i2c OK [16:02:19]MH_I2C_Read... [16:02:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:19]Read from MH i2c: E2 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: E2 03 00 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: E2 03 00 B9 32 00 90 00 5F [16:02:19]RAPDU: 90 00 [16:02:19]wFMCommunicate OK [16:02:19]wFMCommunicate request_size=7 [16:02:19]MH_SAM_APDU [16:02:19]CAPDU: 80 0D 02 02 02 36 22 [16:02:19]Write to MH i2c: E2 0A 00 BA 32 80 0D 02 02 02 00 36 22 00 00 C2 [16:02:19]Write i2c OK [16:02:19]MH_I2C_Read... [16:02:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:19]Read from MH i2c: E2 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: E2 03 00 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: E2 03 00 BA 32 00 90 00 60 [16:02:19]RAPDU: 90 00 [16:02:19]wFMCommunicate OK [16:02:19]wFMCommunicate request_size=4 [16:02:19]MH_SAM_APDU [16:02:19]CAPDU: 80 0D 03 02 [16:02:19]Write to MH i2c: E2 08 00 BB 32 80 0D 03 02 00 00 00 00 68 [16:02:19]Write i2c OK [16:02:19]MH_I2C_Read... [16:02:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:19]Read from MH i2c: E2 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: E2 0B 00 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: E2 0B 00 BB 32 00 C5 78 AA 3E 21 3B 69 03 90 00 56 [16:02:19]RAPDU: C5 78 AA 3E 21 3B 69 03 90 00 [16:02:19]wFMCommunicate OK [16:02:19]SAM_PROTO_SignData done [16:02:19]FM_MakeSignedData done [16:02:19]CreateOFDProtocolMessage [16:02:19]wFMCommunicate request_size=4 [16:02:19]MH_SAM_APDU [16:02:19]CAPDU: 80 11 00 00 [16:02:19]Write to MH i2c: E2 08 00 BC 32 80 11 00 00 00 00 00 00 68 [16:02:19]Write i2c OK [16:02:19]MH_I2C_Read... [16:02:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:19]Read from MH i2c: E2 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: E2 17 00 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: E2 17 00 BC 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BB [16:02:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:02:19]wFMCommunicate OK [16:02:19]CreateOFDProtocolMessage done [16:02:19]OFDSenderStorePacket 187105 [16:02:19]StoreOFDPacket docnum=187105 [16:02:19]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 1A 4E 04 01 B6 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 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 AB 00 00 00 F4 03 04 00 8E 00 B6 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 E1 DA 02 00 35 04 06 00 A2 8D B5 2E 36 22 C5 78 AA 3E 21 3B 69 03 [16:02:19]CheckFolder [16:02:19]dirname=/storage/ofd_packets [16:02:19]CheckFolder done [16:02:19]ProducePacketName [16:02:19]name=ofd_packets/00187105 [16:02:19]NVStorageSaveData ofd_packets/00187105 [16:02:19]File name is /storage/ofd_packets/00187105 [16:02:19]Write 298 bytes [16:02:19]NVStorageSaveData done [16:02:19]OFDSenderStorePacket done [16:02:19]KKMCreateOFDPacket done [16:02:19]NVStorageSaveData kkm_last_timestamp [16:02:19]File name is /storage/kkm_last_timestamp [16:02:19]Write 4 bytes [16:02:19]NVStorageSaveData done [16:02:19]ExternCall_PrintAddStr [16:02:19]wPrintStart [16:02:19]Write to MH i2c: 01 00 00 BD 32 EF [16:02:19]Write i2c OK [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: 01 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: 01 07 00 [16:02:19]MH_I2C_Read... [16:02:19]Read from MH i2c: 01 07 00 BD 32 00 00 00 00 00 FF 0F 04 [16:02:19]RasterBufferAndPrint [16:02:19]line Счет N : (1)412258 [16:02:19]line ИНН: 02508201610067 [16:02:19]line Контрольно-Кассовый Чек [16:02:19]line ПРОДАЖА [16:02:19]line ТРК (МРК, ГНК) : 41 [16:02:19]line Товар: 2710194210 [16:02:19]line ДТ-К-2 [16:02:19]line 10.000 * 0.00 [16:02:19]line = 0.00 [16:02:19]line НДС 12% НСП 1% [16:02:19]line > о реализуемом товаре [16:02:19]line ИТОГО: 0.00 [16:02:19]line НСП 1% : 0.00 [16:02:19]line НДС 12% : 0.00 [16:02:19]line Наличными: 0.00 [16:02:19]line Безнал.: 0.00 [16:02:19]line Место: АЗС № 92 "Партнер Нефть" [16:02:19]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:02:19]line СНО: Общий режим [16:02:19]line Чек 171 19.02.2025 16:02 [16:02:19]line Смена: 647 ФФД: 1.0 [16:02:19]line ЗНМ: 0300000118 [16:02:19]line РНМ: 0000000000091857 [16:02:19]line Версия ККМ: 001 [16:02:19]line Талоны: ТК ГПНА Online [16:02:19]line 30106530 [16:02:19]line ФМ: 0000000000871826 [16:02:19]line ФД: 187105 [16:02:19]line ФПД: 178729513793058 [16:02:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T160222&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187105&fm=178729513793058&tin=02508201610067®Number=0000000000091857&sum=0 [16:02:19]OFD Sender: Processing packet 187105 [packets to send 49, broken 48] [16:02:19]ProducePacketName [16:02:19]name=ofd_packets/00187105 [16:02:19]OFD Sender: To server: pG, [16:02:19]CommunicateWithHost lk.salyk.kg:30040 [16:02:19]ConnectInit lk.salyk.kg [16:02:19]written 0, free lines is 4095 [16:02:20]Connected sock=9 [16:02: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 0C 01 00 00 1A 4E 04 01 B6 52 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 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 AB 00 00 00 F4 03 04 00 8E 00 B6 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 E1 DA 02 00 35 04 06 00 A2 8D B5 2E 36 22 C5 78 AA 3E 21 3B 69 03 [16:02:20]Write to MH i2c: 01 00 00 E7 32 19 [16:02:20]Write i2c OK [16:02:20]MH_I2C_Read... [16:02:20]Read from MH i2c: 01 [16:02:20]MH_I2C_Read... [16:02:20]Read from MH i2c: 01 07 00 [16:02:20]MH_I2C_Read... [16:02:20]Read from MH i2c: 01 07 00 E7 32 00 00 00 00 00 EE 0C 1A [16:02:20]RasterBufferAndPrint [16:02:20]line [16:02:20]line [16:02:20]line [16:02:20]line [16:02:20]line [16:02: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 C4 C3 47 00 60 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 E1 DA 02 00 F4 03 04 00 E1 A6 B5 67 B6 04 01 00 00 7F 9B 11 CB CA 13 7A BC [16:02:20]CommunicateWithHost err = 0 [16:02:20]CheckOFDResponse [16:02:20]1017 (14) - 77093643461234 [16:02:20]1041 (16) - 0000000000871826 [16:02:20]1040 (4) - 187105 [16:02:20]1012 (4) - 19.02.2025 09:39 [16:02:20]1206 (1) - 0 [16:02:20]OFD Sender: Remove packet 187105 [16:02:20]ProducePacketName [16:02:20]name=ofd_packets/00187105 [16:02:20]NVStorageDeleteData [16:02:20]written 0, free lines is 3318 [16:02:20]MH_Cut [16:02:20]Write to MH i2c: D1 01 00 EE 32 01 F2 [16:02:20]Write i2c OK [16:02:20]MH_I2C_Read... [16:02:20]Read from MH i2c: D1 [16:02:20]MH_I2C_Read... [16:02:20]Read from MH i2c: D1 01 00 [16:02:20]MH_I2C_Read... [16:02:20]Read from MH i2c: D1 01 00 EE 32 00 F1 [16:02:20]Write to MH i2c: 01 00 00 EF 32 21 [16:02:20]Write i2c OK [16:02:20]MH_I2C_Read... [16:02:20]OFD Sender: No OFD packet to send [16:02:20]*** Cut start [16:02:20]*** Partial cut [16:02:20]*** CUTSNS_PIN = 1 [16:02:21]*** CUTSNS_PIN = 0 [16:02:21]*** Brake cut motor [16:02:21]Read from MH i2c: 01 [16:02:21]MH_I2C_Read... [16:02:21]*** Stop cut motor [16:02:21]*** Cut end [16:02:21]Read from MH i2c: 01 07 00 [16:02:21]MH_I2C_Read... [16:02:21]Read from MH i2c: 01 07 00 EF 32 00 00 00 00 00 FF 0F 36 [16:02:21]process_action close_receipt done [16:02:21]requested_data is exist [16:02:21]produce_requested_data [16:02:21]requested_item fm.sn is exist - process it [16:02:21]wFMCommunicate request_size=4 [16:02:21]MH_SAM_APDU [16:02:21]CAPDU: 80 11 00 00 [16:02:21]Write to MH i2c: E2 08 00 F0 32 80 11 00 00 00 00 00 00 9C [16:02:21]Write i2c OK [16:02:21]MH_I2C_Read... [16:02:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:21]Read from MH i2c: E2 [16:02:21]MH_I2C_Read... [16:02:21]Read from MH i2c: E2 17 00 [16:02:21]MH_I2C_Read... [16:02:21]Read from MH i2c: E2 17 00 F0 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EF [16:02:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:02:21]wFMCommunicate OK [16:02:21]requested_item fd.num is exist - process it [16:02:21]SAM_PROTO_GetFieldsCounters [16:02:21]wFMCommunicate request_size=4 [16:02:21]MH_SAM_APDU [16:02:21]CAPDU: 80 13 00 00 [16:02:21]Write to MH i2c: E2 08 00 F1 32 80 13 00 00 00 00 00 00 9F [16:02:21]Write i2c OK [16:02:21]MH_I2C_Read... [16:02:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:21]Read from MH i2c: E2 [16:02:21]MH_I2C_Read... [16:02:21]Read from MH i2c: E2 62 00 [16:02:21]MH_I2C_Read... [16:02:21]Read from MH i2c: E2 62 00 F1 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 E1 DA 02 00 0E 04 04 00 87 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 0C [16:02: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 E1 DA 02 00 0E 04 04 00 87 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 [16:02:21]wFMCommunicate OK [16:02:21]SAM_PROTO_GetFieldsCounters done [16:02:21]requested_item shift.num is exist - process it [16:02:21]requested_item shift.opened is exist - process it [16:02:21]req_shift_opened [16:02:21]FM_GetShiftState [16:02:21]SAM_PROTO_GetShiftState [16:02:21]wFMCommunicate request_size=4 [16:02:21]MH_SAM_APDU [16:02:21]CAPDU: 80 13 01 00 [16:02:21]Write to MH i2c: E2 08 00 F2 32 80 13 01 00 00 00 00 00 A1 [16:02:21]Write i2c OK [16:02:21]MH_I2C_Read... [16:02:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:21]Read from MH i2c: E2 [16:02:21]MH_I2C_Read... [16:02:21]Read from MH i2c: E2 0E 00 [16:02:21]MH_I2C_Read... [16:02:21]Read from MH i2c: E2 0E 00 F2 32 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 20 [16:02:21]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:02:21]wFMCommunicate OK [16:02:21]SAM_PROTO_GetShiftState done [16:02:21]FM_GetShiftState done [16:02:21]req_shift_opened done [16:02:21]requested_item shift.open_date is exist - process it [16:02:21]req_shift_open_date [16:02:21]req_shift_open_date done [16:02:21]produce_requested_data done [16:02:21]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187105,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [16:02:21]process_action_free close_receipt [16:02:21]json_value_free [16:02:21]json_value_free done [16:02:21]process_json_proto returns [16:02:21]Send response to host [16:02:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187105,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [16:02:21]free response buf [16:02:21]execute_script done [16:02:21]execute_script returns [16:02:21]free content buf [16:02:21]Sock 7.Close socket [16:02:21]Sock 7.Thread stoped [16:02:25]OFD Sender: No OFD packet to send [16:02:30]OFD Sender: No OFD packet to send [16:02:35]OFD Sender: No OFD packet to send [16:02:40]OFD Sender: No OFD packet to send [16:02:45]OFD Sender: No OFD packet to send [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:03:00]OFD Sender: No OFD packet to send [16:03:05]OFD Sender: No OFD packet to send [16:03:10]OFD Sender: No OFD packet to send [16:03:15]OFD Sender: No OFD packet to send [16:03:20]OFD Sender: No OFD packet to send [16:03:25]OFD Sender: No OFD packet to send [16:03:30]accept exits with 10 [16:03:30]New connection [16:03:30]New thread 3066879332 created [16:03:30]Thread 3067022692 joined [16:03:30]Waiting for new connection... [16:03:30] Sock 10.Parse request [16:03:30]Sock 10.Check first char [16:03:30]Sock 10.First char is OK [16:03:30]request: POST /json_proto HTTP/1.0 [16:03:30]Method: POST [16:03:30]URL: /json_proto [16:03:30]Method is POST - this is cgi request [16:03:30]url: /json_proto [16:03:30]query_string will be loaded in cgi processing [16:03:30]execute_cgi json_proto POST (null) [16:03:30]execute_cgi path=json_proto method=POST [16:03:30]POST find Content-Length [16:03:30]Host: 172.17.46.131:8080 [16:03:30]Content-Length: 673 [16:03:30]Content-Type: application/json [16:03:30] [16:03:30]POST finish read [16:03:30]Found Content-Length = 673 [16:03:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412259", "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:03:30]execute_script... [16:03: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)412259", "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:03:30]POST & json_proto [16:03:30]process_json_proto [16:03:30]json parsed OK: [16:03:30]protocol is kg_v1.0 [16:03:30]action value=close_receipt [16:03:30]process_action close_receipt [16:03:30]cmd_close_receipt [16:03:30]MH_GetDate [16:03:30]Write to MH i2c: F0 00 00 F3 32 14 [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: F0 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: F0 09 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: F0 09 00 F3 32 00 D6 00 B6 67 7E 41 4F 65 83 [16:03:30]GetLastDocTimeStamp 1739980942 [16:03:30]current date 1739981014 [16:03:30]FM_GetShiftState [16:03:30]SAM_PROTO_GetShiftState [16:03:30]wFMCommunicate request_size=4 [16:03:30]MH_SAM_APDU [16:03:30]CAPDU: 80 13 01 00 [16:03:30]Write to MH i2c: E2 08 00 F4 32 80 13 01 00 00 00 00 00 A3 [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:30]Read from MH i2c: E2 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 0E 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 0E 00 F4 32 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 22 [16:03:30]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:03:30]wFMCommunicate OK [16:03:30]SAM_PROTO_GetShiftState done [16:03:30]FM_GetShiftState done [16:03:30]opened in 1739929631 [16:03:30]opened+sec_in_day 1740016031 [16:03:30]quantity*price = 50021 [16:03:30]sum+1 = 50022 [16:03: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 СНО: Общий режим Чек 172 19.02.2025 16:03 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187106 ФПД: 9259234329607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T160334&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187106&fm=9259234329607&tin=02508201610067®Number=0000000000091857&sum=50000 [16:03:31]StoreToDocumentArchive [16:03:31]shift 647 fd 187106 [16:03:31]save to /storage/0647/doc_00187106 [16:03:31]save last doc name /storage/0647/doc_00187106 to /storage/kkm_last_doc_name [16:03:31]save OK [16:03:31]Clear old archive folders... [16:03:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:03:31]tlvbuf is B6DB9850 [16:03:31]SAM_PROTO_ClearQueue [16:03:31]wFMCommunicate request_size=4 [16:03:31]MH_SAM_APDU [16:03:31]CAPDU: 80 09 00 00 [16:03:31]Write to MH i2c: E2 08 00 01 33 80 09 00 00 00 00 00 00 A6 [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:31]Read from MH i2c: E2 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 03 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 03 00 01 33 00 90 00 A8 [16:03:31]RAPDU: 90 00 [16:03:31]wFMCommunicate OK [16:03:31]SAM_PROTO_ClearQueue done [16:03:31]KKMCreateOFDPacket [16:03:31]OFDProtocolAddRootSTLVToBuf [16:03:31]FM_MakeSignedData [16:03:31]FM_MakeSignedData [16:03:31]SAM_PROTO_SignData [16:03:31]wFMCommunicate request_size=4 [16:03:31]MH_SAM_APDU [16:03:31]CAPDU: 80 0D 01 02 [16:03:31]Write to MH i2c: E2 08 00 02 33 80 0D 01 02 00 00 00 00 AE [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:31]Read from MH i2c: E2 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 03 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 03 00 02 33 00 90 00 A9 [16:03:31]RAPDU: 90 00 [16:03:31]wFMCommunicate OK [16:03:31]wFMCommunicate request_size=255 [16:03:31]MH_SAM_APDU [16:03:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 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 AC 00 00 00 F4 03 04 00 D6 00 B6 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 E2 DA 02 00 35 04 06 00 08 6B D5 5F [16:03:31]Write to MH i2c: E2 02 01 03 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 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 AC 00 00 00 F4 03 04 00 D6 00 B6 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 E2 DA 02 00 35 04 06 00 08 6B D5 5F 00 00 F7 [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:32]Read from MH i2c: E2 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 03 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 03 00 03 33 00 90 00 AA [16:03:32]RAPDU: 90 00 [16:03:32]wFMCommunicate OK [16:03:32]wFMCommunicate request_size=7 [16:03:32]MH_SAM_APDU [16:03:32]CAPDU: 80 0D 02 02 02 84 07 [16:03:32]Write to MH i2c: E2 0A 00 04 33 80 0D 02 02 02 00 84 07 00 00 40 [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:32]Read from MH i2c: E2 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 03 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 03 00 04 33 00 90 00 AB [16:03:32]RAPDU: 90 00 [16:03:32]wFMCommunicate OK [16:03:32]wFMCommunicate request_size=4 [16:03:32]MH_SAM_APDU [16:03:32]CAPDU: 80 0D 03 02 [16:03:32]Write to MH i2c: E2 08 00 05 33 80 0D 03 02 00 00 00 00 B3 [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:32]Read from MH i2c: E2 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 0B 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 0B 00 05 33 00 32 EC 11 4B 9D 34 75 5F 90 00 D3 [16:03:32]RAPDU: 32 EC 11 4B 9D 34 75 5F 90 00 [16:03:32]wFMCommunicate OK [16:03:32]SAM_PROTO_SignData done [16:03:32]FM_MakeSignedData done [16:03:32]CreateOFDProtocolMessage [16:03:32]wFMCommunicate request_size=4 [16:03:32]MH_SAM_APDU [16:03:32]CAPDU: 80 11 00 00 [16:03:32]Write to MH i2c: E2 08 00 06 33 80 11 00 00 00 00 00 00 B3 [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:32]Read from MH i2c: E2 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 17 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: E2 17 00 06 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 06 [16:03:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:03:32]wFMCommunicate OK [16:03:32]CreateOFDProtocolMessage done [16:03:32]OFDSenderStorePacket 187106 [16:03:32]StoreOFDPacket docnum=187106 [16:03: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 68 27 04 01 C6 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 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 AC 00 00 00 F4 03 04 00 D6 00 B6 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 E2 DA 02 00 35 04 06 00 08 6B D5 5F 84 07 32 EC 11 4B 9D 34 75 5F [16:03:32]CheckFolder [16:03:32]dirname=/storage/ofd_packets [16:03:32]CheckFolder done [16:03:32]ProducePacketName [16:03:32]name=ofd_packets/00187106 [16:03:32]NVStorageSaveData ofd_packets/00187106 [16:03:32]File name is /storage/ofd_packets/00187106 [16:03:32]Write 298 bytes [16:03:32]NVStorageSaveData done [16:03:32]OFDSenderStorePacket done [16:03:32]KKMCreateOFDPacket done [16:03:32]NVStorageSaveData kkm_last_timestamp [16:03:32]File name is /storage/kkm_last_timestamp [16:03:32]Write 4 bytes [16:03:32]NVStorageSaveData done [16:03:32]ExternCall_PrintAddStr [16:03:32]wPrintStart [16:03:32]Write to MH i2c: 01 00 00 07 33 3A [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: 01 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: 01 07 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: 01 07 00 07 33 00 00 00 00 00 FF 0F 4F [16:03:32]RasterBufferAndPrint [16:03:32]line Счет N : (1)412259 [16:03:32]line ИНН: 02508201610067 [16:03:32]line Контрольно-Кассовый Чек [16:03:32]line ПРОДАЖА [16:03:32]line ТРК (МРК, ГНК) : 5 [16:03:32]line Товар: 2710194210 [16:03:32]line ДТ-К-5 [16:03:32]line 6.890 * 72.60 [16:03:32]line = 500.21 [16:03:32]line НДС 12% НСП 1% [16:03:32]line > о реализуемом товаре [16:03:32]line ОКРУГЛЕНИЕ: -0.21 [16:03:32]line ИТОГО: 500.00 [16:03:32]line Внесено: 500.00 [16:03:32]line СДАЧА: 0.00 [16:03:32]line НСП 1% : 4.43 [16:03:32]line НДС 12% : 53.12 [16:03:32]line Наличными: 500.00 [16:03:32]line Безнал.: 0.00 [16:03:32]line Место: АЗС № 92 "Партнер Нефть" [16:03:32]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:03:32]line СНО: Общий режим [16:03:32]line Чек 172 19.02.2025 16:03 [16:03:32]line Смена: 647 ФФД: 1.0 [16:03:32]line ЗНМ: 0300000118 [16:03:32]line РНМ: 0000000000091857 [16:03:32]line Версия ККМ: 001 [16:03:32]line ФМ: 0000000000871826 [16:03:32]line ФД: 187106 [16:03:32]line ФПД: 9259234329607 [16:03:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T160334&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187106&fm=9259234329607&tin=02508201610067®Number=0000000000091857&sum=50000 [16:03:32]OFD Sender: Processing packet 187106 [packets to send 49, broken 48] [16:03:32]ProducePacketName [16:03:32]name=ofd_packets/00187106 [16:03:32]OFD Sender: To server: pG, [16:03:32]CommunicateWithHost lk.salyk.kg:30040 [16:03:32]ConnectInit lk.salyk.kg [16:03:32]written 0, free lines is 4095 [16:03:32]Connected sock=9 [16:03: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 68 27 04 01 C6 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 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 AC 00 00 00 F4 03 04 00 D6 00 B6 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 E2 DA 02 00 35 04 06 00 08 6B D5 5F 84 07 32 EC 11 4B 9D 34 75 5F [16:03: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 12 4A 47 00 C5 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 E2 DA 02 00 F4 03 04 00 2A A7 B5 67 B6 04 01 00 00 D3 E4 50 C8 DC D4 D0 6E [16:03:32]CommunicateWithHost err = 0 [16:03:32]CheckOFDResponse [16:03:32]1017 (14) - 77093643461234 [16:03:32]1041 (16) - 0000000000871826 [16:03:32]1040 (4) - 187106 [16:03:32]1012 (4) - 19.02.2025 09:40 [16:03:32]1206 (1) - 0 [16:03:32]OFD Sender: Remove packet 187106 [16:03:32]ProducePacketName [16:03:32]name=ofd_packets/00187106 [16:03:32]NVStorageDeleteData [16:03:32]Write to MH i2c: 01 00 00 32 33 65 [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: 01 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: 01 07 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: 01 07 00 32 33 00 00 00 00 00 E1 0C 59 [16:03:32]RasterBufferAndPrint [16:03:32]line [16:03:32]line [16:03:32]line [16:03:32]line [16:03:32]line [16:03:32]written 0, free lines is 3306 [16:03:32]MH_Cut [16:03:32]Write to MH i2c: D1 01 00 39 33 01 3E [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: D1 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: D1 01 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: D1 01 00 39 33 00 3D [16:03:32]Write to MH i2c: 01 00 00 3A 33 6D [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:33]OFD Sender: No OFD packet to send [16:03:33]*** Cut start [16:03:33]*** Partial cut [16:03:33]*** CUTSNS_PIN = 1 [16:03:33]*** CUTSNS_PIN = 0 [16:03:34]*** Brake cut motor [16:03:34]Read from MH i2c: 01 [16:03:34]MH_I2C_Read... [16:03:34]*** Stop cut motor [16:03:34]*** Cut end [16:03:34]Read from MH i2c: 01 07 00 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: 01 07 00 3A 33 00 00 00 00 00 FF 0F 82 [16:03:34]process_action close_receipt done [16:03:34]requested_data is exist [16:03:34]produce_requested_data [16:03:34]requested_item fm.sn is exist - process it [16:03:34]wFMCommunicate request_size=4 [16:03:34]MH_SAM_APDU [16:03:34]CAPDU: 80 11 00 00 [16:03:34]Write to MH i2c: E2 08 00 3B 33 80 11 00 00 00 00 00 00 E8 [16:03:34]Write i2c OK [16:03:34]MH_I2C_Read... [16:03:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:34]Read from MH i2c: E2 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 17 00 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 17 00 3B 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3B [16:03:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:03:34]wFMCommunicate OK [16:03:34]requested_item fd.num is exist - process it [16:03:34]SAM_PROTO_GetFieldsCounters [16:03:34]wFMCommunicate request_size=4 [16:03:34]MH_SAM_APDU [16:03:34]CAPDU: 80 13 00 00 [16:03:34]Write to MH i2c: E2 08 00 3C 33 80 13 00 00 00 00 00 00 EB [16:03:34]Write i2c OK [16:03:34]MH_I2C_Read... [16:03:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:34]Read from MH i2c: E2 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 62 00 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 62 00 3C 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 E2 DA 02 00 0E 04 04 00 87 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 5C [16:03: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 E2 DA 02 00 0E 04 04 00 87 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 [16:03:34]wFMCommunicate OK [16:03:34]SAM_PROTO_GetFieldsCounters done [16:03:34]requested_item shift.num is exist - process it [16:03:34]requested_item shift.opened is exist - process it [16:03:34]req_shift_opened [16:03:34]FM_GetShiftState [16:03:34]SAM_PROTO_GetShiftState [16:03:34]wFMCommunicate request_size=4 [16:03:34]MH_SAM_APDU [16:03:34]CAPDU: 80 13 01 00 [16:03:34]Write to MH i2c: E2 08 00 3D 33 80 13 01 00 00 00 00 00 ED [16:03:34]Write i2c OK [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:34] [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 0E 00 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 0E 00 3D 33 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 6C [16:03:34]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:03:34]wFMCommunicate OK [16:03:34]SAM_PROTO_GetShiftState done [16:03:34]FM_GetShiftState done [16:03:34]req_shift_opened done [16:03:34]requested_item shift.open_date is exist - process it [16:03:34]req_shift_open_date [16:03:34]req_shift_open_date done [16:03:34]produce_requested_data done [16:03:34]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187106,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [16:03:34]process_action_free close_receipt [16:03:34]json_value_free [16:03:34]json_value_free done [16:03:34]process_json_proto returns [16:03:34]Send response to host [16:03:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187106,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [16:03:34]free response buf [16:03:34]execute_script done [16:03:34]execute_script returns [16:03:34]free content buf [16:03:34]Sock 10.Close socket [16:03:34]Sock 10.Thread stoped [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]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:10]accept exits with 7 [16:06:10]New connection [16:06:10]New thread 3067022692 created [16:06:10]Thread 3066879332 joined [16:06:10]Waiting for new connection... [16:06:10] Sock 7.Parse request [16:06:10]Sock 7.Check first char [16:06:10]Sock 7.First char is OK [16:06:10]request: POST /json_proto HTTP/1.0 [16:06:10]Method: POST [16:06:10]URL: /json_proto [16:06:10]Method is POST - this is cgi request [16:06:10]url: /json_proto [16:06:10]query_string will be loaded in cgi processing [16:06:10]execute_cgi json_proto POST (null) [16:06:10]execute_cgi path=json_proto method=POST [16:06:10]POST find Content-Length [16:06:10]Host: 172.17.46.131:8080 [16:06:10]Content-Length: 673 [16:06:10]Content-Type: application/json [16:06:10] [16:06:10]POST finish read [16:06:10]Found Content-Length = 673 [16:06:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412260", "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:06:10]execute_script... [16:06: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)412260", "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:06:10]POST & json_proto [16:06:10]process_json_proto [16:06:10]json parsed OK: [16:06:10]protocol is kg_v1.0 [16:06:10]action value=close_receipt [16:06:10]process_action close_receipt [16:06:10]cmd_close_receipt [16:06:10]MH_GetDate [16:06:10]Write to MH i2c: F0 00 00 3E 33 60 [16:06:10]Write i2c OK [16:06:10]MH_I2C_Read... [16:06:10]Read from MH i2c: F0 [16:06:10]MH_I2C_Read... [16:06:10]Read from MH i2c: F0 09 00 [16:06:10]MH_I2C_Read... [16:06:10]Read from MH i2c: F0 09 00 3E 33 00 76 01 B6 67 7E 41 4F 65 70 [16:06:10]GetLastDocTimeStamp 1739981014 [16:06:10]current date 1739981174 [16:06:10]FM_GetShiftState [16:06:10]SAM_PROTO_GetShiftState [16:06:10]wFMCommunicate request_size=4 [16:06:10]MH_SAM_APDU [16:06:10]CAPDU: 80 13 01 00 [16:06:10]Write to MH i2c: E2 08 00 3F 33 80 13 01 00 00 00 00 00 EF [16:06:10]Write i2c OK [16:06:10]MH_I2C_Read... [16:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:10]Read from MH i2c: E2 [16:06:10]MH_I2C_Read... [16:06:10]Read from MH i2c: E2 0E 00 [16:06:10]MH_I2C_Read... [16:06:10]Read from MH i2c: E2 0E 00 3F 33 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 6E [16:06:10]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:06:10]wFMCommunicate OK [16:06:10]SAM_PROTO_GetShiftState done [16:06:10]FM_GetShiftState done [16:06:10]opened in 1739929631 [16:06:10]opened+sec_in_day 1740016031 [16:06:10]quantity*price = 50021 [16:06:10]sum+1 = 50022 [16:06:10]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 СНО: Общий режим Чек 173 19.02.2025 16:06 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187107 ФПД: 86885222491023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T160614&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187107&fm=86885222491023&tin=02508201610067®Number=0000000000091857&sum=50000 [16:06:11]StoreToDocumentArchive [16:06:11]shift 647 fd 187107 [16:06:11]save to /storage/0647/doc_00187107 [16:06:11]save last doc name /storage/0647/doc_00187107 to /storage/kkm_last_doc_name [16:06:11]save OK [16:06:11]Clear old archive folders... [16:06:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:06:11]tlvbuf is 0065A780 [16:06:11]SAM_PROTO_ClearQueue [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 09 00 00 [16:06:11]Write to MH i2c: E2 08 00 4C 33 80 09 00 00 00 00 00 00 F1 [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 4C 33 00 90 00 F3 [16:06:11]RAPDU: 90 00 [16:06:11]wFMCommunicate OK [16:06:11]SAM_PROTO_ClearQueue done [16:06:11]KKMCreateOFDPacket [16:06:11]OFDProtocolAddRootSTLVToBuf [16:06:11]FM_MakeSignedData [16:06:11]FM_MakeSignedData [16:06:11]SAM_PROTO_SignData [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 0D 01 02 [16:06:11]Write to MH i2c: E2 08 00 4D 33 80 0D 01 02 00 00 00 00 F9 [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 4D 33 00 90 00 F4 [16:06:11]RAPDU: 90 00 [16:06:11]wFMCommunicate OK [16:06:11]wFMCommunicate request_size=255 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 AD 00 00 00 F4 03 04 00 76 01 B6 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 E3 DA 02 00 35 04 06 00 4F 05 8A D2 [16:06:11]Write to MH i2c: E2 02 01 4E 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 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 AD 00 00 00 F4 03 04 00 76 01 B6 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 E3 DA 02 00 35 04 06 00 4F 05 8A D2 00 00 EE [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 4E 33 00 90 00 F5 [16:06:11]RAPDU: 90 00 [16:06:11]wFMCommunicate OK [16:06:11]wFMCommunicate request_size=7 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 0D 02 02 02 A3 8F [16:06:11]Write to MH i2c: E2 0A 00 4F 33 80 0D 02 02 02 00 A3 8F 00 00 32 [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 03 00 4F 33 00 90 00 F6 [16:06:11]RAPDU: 90 00 [16:06:11]wFMCommunicate OK [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 0D 03 02 [16:06:11]Write to MH i2c: E2 08 00 50 33 80 0D 03 02 00 00 00 00 FE [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 0B 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 0B 00 50 33 00 70 A8 E8 52 28 FC 31 70 90 00 16 [16:06:11]RAPDU: 70 A8 E8 52 28 FC 31 70 90 00 [16:06:11]wFMCommunicate OK [16:06:11]SAM_PROTO_SignData done [16:06:11]FM_MakeSignedData done [16:06:11]CreateOFDProtocolMessage [16:06:11]wFMCommunicate request_size=4 [16:06:11]MH_SAM_APDU [16:06:11]CAPDU: 80 11 00 00 [16:06:11]Write to MH i2c: E2 08 00 51 33 80 11 00 00 00 00 00 00 FE [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:11]Read from MH i2c: E2 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 17 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: E2 17 00 51 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 51 [16:06: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:06:11]wFMCommunicate OK [16:06:11]CreateOFDProtocolMessage done [16:06:11]OFDSenderStorePacket 187107 [16:06:11]StoreOFDPacket docnum=187107 [16:06: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 0C 01 00 00 63 19 04 01 6D 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 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 AD 00 00 00 F4 03 04 00 76 01 B6 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 E3 DA 02 00 35 04 06 00 4F 05 8A D2 A3 8F 70 A8 E8 52 28 FC 31 70 [16:06:11]CheckFolder [16:06:11]dirname=/storage/ofd_packets [16:06:11]CheckFolder done [16:06:11]ProducePacketName [16:06:11]name=ofd_packets/00187107 [16:06:11]NVStorageSaveData ofd_packets/00187107 [16:06:11]File name is /storage/ofd_packets/00187107 [16:06:11]Write 298 bytes [16:06:11]NVStorageSaveData done [16:06:11]OFDSenderStorePacket done [16:06:11]KKMCreateOFDPacket done [16:06:11]NVStorageSaveData kkm_last_timestamp [16:06:11]File name is /storage/kkm_last_timestamp [16:06:11]Write 4 bytes [16:06:11]NVStorageSaveData done [16:06:11]OFD Sender: Processing packet 187107 [packets to send 49, broken 48] [16:06:11]ProducePacketName [16:06:11]name=ofd_packets/00187107 [16:06:11]OFD Sender: To server: pG, [16:06:11]CommunicateWithHost lk.salyk.kg:30040 [16:06:11]ConnectInit lk.salyk.kg [16:06:11]ExternCall_PrintAddStr [16:06:11]wPrintStart [16:06:11]Write to MH i2c: 01 00 00 52 33 85 [16:06:11]Write i2c OK [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: 01 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: 01 07 00 [16:06:11]MH_I2C_Read... [16:06:11]Read from MH i2c: 01 07 00 52 33 00 00 00 00 00 FF 0F 9A [16:06:11]RasterBufferAndPrint [16:06:11]line Счет N : (1)412260 [16:06:11]line ИНН: 02508201610067 [16:06:11]line Контрольно-Кассовый Чек [16:06:11]line ПРОДАЖА [16:06:11]line ТРК (МРК, ГНК) : 5 [16:06:11]line Товар: 2710194210 [16:06:11]line ДТ-К-5 [16:06:11]line 6.890 * 72.60 [16:06:11]line = 500.21 [16:06:11]line НДС 12% НСП 1% [16:06:11]line > о реализуемом товаре [16:06:11]line ОКРУГЛЕНИЕ: -0.21 [16:06:11]line ИТОГО: 500.00 [16:06:11]line Внесено: 500.00 [16:06:11]line СДАЧА: 0.00 [16:06:11]line НСП 1% : 4.43 [16:06:11]line НДС 12% : 53.12 [16:06:11]line Наличными: 500.00 [16:06:11]line Безнал.: 0.00 [16:06:11]line Место: АЗС № 92 "Партнер Нефть" [16:06:11]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:06:11]line СНО: Общий режим [16:06:12]line Чек 173 19.02.2025 16:06 [16:06:12]line Смена: 647 ФФД: 1.0 [16:06:12]line ЗНМ: 0300000118 [16:06:12]line РНМ: 0000000000091857 [16:06:12]line Версия ККМ: 001 [16:06:12]line ФМ: 0000000000871826 [16:06:12]line ФД: 187107 [16:06:12]line ФПД: 86885222491023 [16:06:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T160614&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187107&fm=86885222491023&tin=02508201610067®Number=0000000000091857&sum=50000 [16:06:12]Connected sock=11 [16:06: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 0C 01 00 00 63 19 04 01 6D 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 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 AD 00 00 00 F4 03 04 00 76 01 B6 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 E3 DA 02 00 35 04 06 00 4F 05 8A D2 A3 8F 70 A8 E8 52 28 FC 31 70 [16:06:12]written 0, free lines is 4095 [16:06: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 2C 14 47 00 83 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E3 DA 02 00 F4 03 04 00 C9 A7 B5 67 B6 04 01 00 00 C5 C0 6D 08 58 23 30 56 [16:06:12]CommunicateWithHost err = 0 [16:06:12]CheckOFDResponse [16:06:12]1017 (14) - 77093643461234 [16:06:12]1041 (16) - 0000000000871826 [16:06:12]1040 (4) - 187107 [16:06:12]1012 (4) - 19.02.2025 09:43 [16:06:12]1206 (1) - 0 [16:06:12]OFD Sender: Remove packet 187107 [16:06:12]ProducePacketName [16:06:12]name=ofd_packets/00187107 [16:06:12]NVStorageDeleteData [16:06:12]Write to MH i2c: 01 00 00 7D 33 B0 [16:06:12]Write i2c OK [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: 01 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: 01 07 00 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: 01 07 00 7D 33 00 00 00 00 00 E3 0C A6 [16:06:12]RasterBufferAndPrint [16:06:12]line [16:06:12]line [16:06:12]line [16:06:12]line [16:06:12]line [16:06:12]written 0, free lines is 3305 [16:06:12]MH_Cut [16:06:12]Write to MH i2c: D1 01 00 84 33 01 89 [16:06:12]Write i2c OK [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: D1 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: D1 01 00 [16:06:12]MH_I2C_Read... [16:06:12]Read from MH i2c: D1 01 00 84 33 00 88 [16:06:12]Write to MH i2c: 01 00 00 85 33 B8 [16:06:12]Write i2c OK [16:06:12]MH_I2C_Read... [16:06:12]OFD Sender: No OFD packet to send [16:06:13]*** Cut start [16:06:13]*** Partial cut [16:06:13]*** CUTSNS_PIN = 1 [16:06:13]*** CUTSNS_PIN = 0 [16:06:13]*** Brake cut motor [16:06:13]Read from MH i2c: 01 [16:06:13]MH_I2C_Read... [16:06:13]*** Stop cut motor [16:06:13]*** Cut end [16:06:13]Read from MH i2c: 01 07 00 [16:06:13]MH_I2C_Read... [16:06:13]Read from MH i2c: 01 07 00 85 33 00 00 00 00 00 FF 0F CD [16:06:13]process_action close_receipt done [16:06:13]requested_data is exist [16:06:13]produce_requested_data [16:06:13]requested_item fm.sn is exist - process it [16:06:13]wFMCommunicate request_size=4 [16:06:13]MH_SAM_APDU [16:06:13]CAPDU: 80 11 00 00 [16:06:13]Write to MH i2c: E2 08 00 86 33 80 11 00 00 00 00 00 00 33 [16:06:13]Write i2c OK [16:06:13]MH_I2C_Read... [16:06:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:14]Read from MH i2c: E2 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 17 00 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 17 00 86 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 86 [16:06: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:06:14]wFMCommunicate OK [16:06:14]requested_item fd.num is exist - process it [16:06:14]SAM_PROTO_GetFieldsCounters [16:06:14]wFMCommunicate request_size=4 [16:06:14]MH_SAM_APDU [16:06:14]CAPDU: 80 13 00 00 [16:06:14]Write to MH i2c: E2 08 00 87 33 80 13 00 00 00 00 00 00 36 [16:06:14]Write i2c OK [16:06:14]MH_I2C_Read... [16:06:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:14]Read from MH i2c: E2 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 62 00 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 62 00 87 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 E3 DA 02 00 0E 04 04 00 87 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 AB [16:06: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 E3 DA 02 00 0E 04 04 00 87 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 [16:06:14]wFMCommunicate OK [16:06:14]SAM_PROTO_GetFieldsCounters done [16:06:14]requested_item shift.num is exist - process it [16:06:14]requested_item shift.opened is exist - process it [16:06:14]req_shift_opened [16:06:14]FM_GetShiftState [16:06:14]SAM_PROTO_GetShiftState [16:06:14]wFMCommunicate request_size=4 [16:06:14]MH_SAM_APDU [16:06:14]CAPDU: 80 13 01 00 [16:06:14]Write to MH i2c: E2 08 00 88 33 80 13 01 00 00 00 00 00 38 [16:06:14]Write i2c OK [16:06:14]MH_I2C_Read... [16:06:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:14]Read from MH i2c: E2 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 0E 00 [16:06:14]MH_I2C_Read... [16:06:14]Read from MH i2c: E2 0E 00 88 33 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 B7 [16:06:14]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:06:14]wFMCommunicate OK [16:06:14]SAM_PROTO_GetShiftState done [16:06:14]FM_GetShiftState done [16:06:14]req_shift_opened done [16:06:14]requested_item shift.open_date is exist - process it [16:06:14]req_shift_open_date [16:06:14]req_shift_open_date done [16:06:14]produce_requested_data done [16:06:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187107,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [16:06:14]process_action_free close_receipt [16:06:14]json_value_free [16:06:14]json_value_free done [16:06:14]process_json_proto returns [16:06:14]Send response to host [16:06:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187107,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [16:06:14]free response buf [16:06:14]execute_script done [16:06:14]execute_script returns [16:06:14]free content buf [16:06:14]Sock 7.Close socket [16:06:14]Sock 7.Thread stoped [16:06:17]OFD Sender: No OFD packet to send [16:06:22]OFD Sender: No OFD packet to send [16:06:27]OFD Sender: No OFD packet to send [16:06:32]OFD Sender: No OFD packet to send [16:06:37]OFD Sender: No OFD packet to send [16:06:42]OFD Sender: No OFD packet to send [16:06:47]OFD Sender: No OFD packet to send [16:06:52]OFD Sender: No OFD packet to send [16:06:57]OFD Sender: No OFD packet to send [16:07:02]OFD Sender: No OFD packet to send [16:07:07]OFD Sender: No OFD packet to send [16:07:12]OFD Sender: No OFD packet to send [16:07:13]accept exits with 9 [16:07:13]New connection [16:07:13]New thread 3066879332 created [16:07:13]Thread 3067022692 joined [16:07:13]Waiting for new connection... [16:07:13] Sock 9.Parse request [16:07:13]Sock 9.Check first char [16:07:13]Sock 9.First char is OK [16:07:13]request: POST /json_proto HTTP/1.0 [16:07:13]Method: POST [16:07:13]URL: /json_proto [16:07:13]Method is POST - this is cgi request [16:07:13]url: /json_proto [16:07:13]query_string will be loaded in cgi processing [16:07:13]execute_cgi json_proto POST (null) [16:07:13]execute_cgi path=json_proto method=POST [16:07:13]POST find Content-Length [16:07:13]Host: 172.17.46.131:8080 [16:07:13]Content-Length: 682 [16:07:13]Content-Type: application/json [16:07:13] [16:07:13]POST finish read [16:07:13]Found Content-Length = 682 [16:07:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412261", "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" ] } } [16:07:13]execute_script... [16:07:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412261", "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" ] } } [16:07:13]POST & json_proto [16:07:13]process_json_proto [16:07:13]json parsed OK: [16:07:13]protocol is kg_v1.0 [16:07:13]action value=close_receipt [16:07:13]process_action close_receipt [16:07:13]cmd_close_receipt [16:07:13]MH_GetDate [16:07:13]Write to MH i2c: F0 00 00 89 33 AB [16:07:13]Write i2c OK [16:07:13]MH_I2C_Read... [16:07:13]Read from MH i2c: F0 [16:07:13]MH_I2C_Read... [16:07:13]Read from MH i2c: F0 09 00 [16:07:13]MH_I2C_Read... [16:07:13]Read from MH i2c: F0 09 00 89 33 00 B5 01 B6 67 7E 41 4F 65 FA [16:07:13]GetLastDocTimeStamp 1739981174 [16:07:13]current date 1739981237 [16:07:13]FM_GetShiftState [16:07:13]SAM_PROTO_GetShiftState [16:07:13]wFMCommunicate request_size=4 [16:07:13]MH_SAM_APDU [16:07:13]CAPDU: 80 13 01 00 [16:07:13]Write to MH i2c: E2 08 00 8A 33 80 13 01 00 00 00 00 00 3A [16:07:13]Write i2c OK [16:07:13]MH_I2C_Read... [16:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:13]Read from MH i2c: E2 [16:07:13]MH_I2C_Read... [16:07:13]Read from MH i2c: E2 0E 00 [16:07:13]MH_I2C_Read... [16:07:13]Read from MH i2c: E2 0E 00 8A 33 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 B9 [16:07:13]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:07:13]wFMCommunicate OK [16:07:13]SAM_PROTO_GetShiftState done [16:07:13]FM_GetShiftState done [16:07:13]opened in 1739929631 [16:07:13]opened+sec_in_day 1740016031 [16:07:13]quantity*price = 100023 [16:07:13]sum+1 = 100025 [16:07:13]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 СНО: Общий режим Чек 174 19.02.2025 16:07 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187108 ФПД: 205991058773710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T160717&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187108&fm=205991058773710&tin=02508201610067®Number=0000000000091857&sum=100000 [16:07:14]StoreToDocumentArchive [16:07:14]shift 647 fd 187108 [16:07:14]save to /storage/0647/doc_00187108 [16:07:14]save last doc name /storage/0647/doc_00187108 to /storage/kkm_last_doc_name [16:07:14]save OK [16:07:14]Clear old archive folders... [16:07:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:07:14]tlvbuf is 005EE3A0 [16:07:14]SAM_PROTO_ClearQueue [16:07:14]wFMCommunicate request_size=4 [16:07:14]MH_SAM_APDU [16:07:14]CAPDU: 80 09 00 00 [16:07:14]Write to MH i2c: E2 08 00 97 33 80 09 00 00 00 00 00 00 3C [16:07:14]Write i2c OK [16:07:14]MH_I2C_Read... [16:07:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:14]Read from MH i2c: E2 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 03 00 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 03 00 97 33 00 90 00 3E [16:07:14]RAPDU: 90 00 [16:07:14]wFMCommunicate OK [16:07:14]SAM_PROTO_ClearQueue done [16:07:14]KKMCreateOFDPacket [16:07:14]OFDProtocolAddRootSTLVToBuf [16:07:14]FM_MakeSignedData [16:07:14]FM_MakeSignedData [16:07:14]SAM_PROTO_SignData [16:07:14]wFMCommunicate request_size=4 [16:07:14]MH_SAM_APDU [16:07:14]CAPDU: 80 0D 01 02 [16:07:14]Write to MH i2c: E2 08 00 98 33 80 0D 01 02 00 00 00 00 44 [16:07:14]Write i2c OK [16:07:14]MH_I2C_Read... [16:07:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:14]Read from MH i2c: E2 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 03 00 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 03 00 98 33 00 90 00 3F [16:07:14]RAPDU: 90 00 [16:07:14]wFMCommunicate OK [16:07:14]wFMCommunicate request_size=255 [16:07:14]MH_SAM_APDU [16:07:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 AE 00 00 00 F4 03 04 00 B5 01 B6 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 E4 DA 02 00 35 04 06 00 BB [16:07:14]Write to MH i2c: E2 02 01 99 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 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 AE 00 00 00 F4 03 04 00 B5 01 B6 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 E4 DA 02 00 35 04 06 00 BB 00 00 C6 [16:07:14]Write i2c OK [16:07:14]MH_I2C_Read... [16:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:14]Read from MH i2c: E2 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 03 00 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 03 00 99 33 00 90 00 40 [16:07:14]RAPDU: 90 00 [16:07:14]wFMCommunicate OK [16:07:14]wFMCommunicate request_size=10 [16:07:14]MH_SAM_APDU [16:07:14]CAPDU: 80 0D 02 02 05 59 07 E2 96 CE [16:07:14]Write to MH i2c: E2 0D 00 9A 33 80 0D 02 02 05 00 59 07 E2 96 CE 00 00 F7 [16:07:14]Write i2c OK [16:07:14]MH_I2C_Read... [16:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:14]Read from MH i2c: E2 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 03 00 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 03 00 9A 33 00 90 00 41 [16:07:14]RAPDU: 90 00 [16:07:14]wFMCommunicate OK [16:07:14]wFMCommunicate request_size=4 [16:07:14]MH_SAM_APDU [16:07:14]CAPDU: 80 0D 03 02 [16:07:14]Write to MH i2c: E2 08 00 9B 33 80 0D 03 02 00 00 00 00 49 [16:07:14]Write i2c OK [16:07:14]MH_I2C_Read... [16:07:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:14]Read from MH i2c: E2 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 0B 00 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 0B 00 9B 33 00 3A 0B 6D 41 5F DE 14 4A 90 00 D8 [16:07:14]RAPDU: 3A 0B 6D 41 5F DE 14 4A 90 00 [16:07:14]wFMCommunicate OK [16:07:14]SAM_PROTO_SignData done [16:07:14]FM_MakeSignedData done [16:07:14]CreateOFDProtocolMessage [16:07:14]wFMCommunicate request_size=4 [16:07:14]MH_SAM_APDU [16:07:14]CAPDU: 80 11 00 00 [16:07:14]Write to MH i2c: E2 08 00 9C 33 80 11 00 00 00 00 00 00 49 [16:07:14]Write i2c OK [16:07:14]MH_I2C_Read... [16:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:14]Read from MH i2c: E2 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 17 00 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 17 00 9C 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9C [16:07: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:07:14]wFMCommunicate OK [16:07:14]CreateOFDProtocolMessage done [16:07:14]OFDSenderStorePacket 187108 [16:07:14]StoreOFDPacket docnum=187108 [16:07: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 15 2E 07 01 A1 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 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 AE 00 00 00 F4 03 04 00 B5 01 B6 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 E4 DA 02 00 35 04 06 00 BB 59 07 E2 96 CE 3A 0B 6D 41 5F DE 14 4A [16:07:14]CheckFolder [16:07:14]dirname=/storage/ofd_packets [16:07:14]CheckFolder done [16:07:14]ProducePacketName [16:07:14]name=ofd_packets/00187108 [16:07:14]NVStorageSaveData ofd_packets/00187108 [16:07:14]File name is /storage/ofd_packets/00187108 [16:07:14]Write 301 bytes [16:07:14]NVStorageSaveData done [16:07:14]OFDSenderStorePacket done [16:07:14]KKMCreateOFDPacket done [16:07:14]NVStorageSaveData kkm_last_timestamp [16:07:14]File name is /storage/kkm_last_timestamp [16:07:14]Write 4 bytes [16:07:14]NVStorageSaveData done [16:07:15]ExternCall_PrintAddStr [16:07:15]wPrintStart [16:07:15]Write to MH i2c: 01 00 00 9D 33 D0 [16:07:15]Write i2c OK [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: 01 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: 01 07 00 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: 01 07 00 9D 33 00 00 00 00 00 FF 0F E5 [16:07:15]RasterBufferAndPrint [16:07:15]line Счет N : (1)412261 [16:07:15]line ИНН: 02508201610067 [16:07:15]line Контрольно-Кассовый Чек [16:07:15]line ПРОДАЖА [16:07:15]line ТРК (МРК, ГНК) : 32 [16:07:15]line Товар: 2710124130 [16:07:15]line Аи-92-К-2 [16:07:15]line 15.580 * 64.20 [16:07:15]line = 1000.24 [16:07:15]line НДС 12% НСП 1% [16:07:15]line > о реализуемом товаре [16:07:15]line ОКРУГЛЕНИЕ: -0.24 [16:07:15]line ИТОГО: 1000.00 [16:07:15]line Внесено: 1000.00 [16:07:15]line СДАЧА: 0.00 [16:07:15]line НСП 1% : 8.85 [16:07:15]line НДС 12% : 106.22 [16:07:15]line Наличными: 1000.00 [16:07:15]line Безнал.: 0.00 [16:07:15]line Место: АЗС № 92 "Партнер Нефть" [16:07:15]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:07:15]line СНО: Общий режим [16:07:15]line Чек 174 19.02.2025 16:07 [16:07:15]line Смена: 647 ФФД: 1.0 [16:07:15]line ЗНМ: 0300000118 [16:07:15]line РНМ: 0000000000091857 [16:07:15]line Версия ККМ: 001 [16:07:15]line ФМ: 0000000000871826 [16:07:15]line ФД: 187108 [16:07:15]line ФПД: 205991058773710 [16:07:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T160717&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187108&fm=205991058773710&tin=02508201610067®Number=0000000000091857&sum=100000 [16:07:15]written 0, free lines is 4095 [16:07:15]OFD Sender: Processing packet 187108 [packets to send 49, broken 48] [16:07:15]ProducePacketName [16:07:15]name=ofd_packets/00187108 [16:07:15]OFD Sender: To server: pG, [16:07:15]CommunicateWithHost lk.salyk.kg:30040 [16:07:15]ConnectInit lk.salyk.kg [16:07:15]Connected sock=10 [16:07: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 15 2E 07 01 A1 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 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 AE 00 00 00 F4 03 04 00 B5 01 B6 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 E4 DA 02 00 35 04 06 00 BB 59 07 E2 96 CE 3A 0B 6D 41 5F DE 14 4A [16:07: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 1C 35 47 00 80 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E4 DA 02 00 F4 03 04 00 08 A8 B5 67 B6 04 01 00 00 C1 53 34 40 C9 65 14 DE [16:07:15]CommunicateWithHost err = 0 [16:07:15]CheckOFDResponse [16:07:15]1017 (14) - 77093643461234 [16:07:15]1041 (16) - 0000000000871826 [16:07:15]1040 (4) - 187108 [16:07:15]1012 (4) - 19.02.2025 09:44 [16:07:15]1206 (1) - 0 [16:07:15]OFD Sender: Remove packet 187108 [16:07:15]ProducePacketName [16:07:15]name=ofd_packets/00187108 [16:07:15]NVStorageDeleteData [16:07:15]Write to MH i2c: 01 00 00 C8 33 FB [16:07:15]Write i2c OK [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: 01 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: 01 07 00 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: 01 07 00 C8 33 00 00 00 00 00 F7 0C 05 [16:07:15]RasterBufferAndPrint [16:07:15]line [16:07:15]line [16:07:15]line [16:07:15]line [16:07:15]line [16:07:15]written 0, free lines is 3329 [16:07:15]MH_Cut [16:07:15]Write to MH i2c: D1 01 00 CF 33 01 D4 [16:07:15]Write i2c OK [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: D1 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: D1 01 00 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: D1 01 00 CF 33 00 D3 [16:07:15]Write to MH i2c: 01 00 00 D0 33 03 [16:07:15]Write i2c OK [16:07:15]MH_I2C_Read... [16:07:15]OFD Sender: No OFD packet to send [16:07:16]*** Cut start [16:07:16]*** Partial cut [16:07:16]*** CUTSNS_PIN = 1 [16:07:16]*** CUTSNS_PIN = 0 [16:07:16]*** Brake cut motor [16:07:16]Read from MH i2c: 01 [16:07:16]MH_I2C_Read... [16:07:16]*** Stop cut motor [16:07:16]*** Cut end [16:07:16]Read from MH i2c: 01 07 00 [16:07:16]MH_I2C_Read... [16:07:16]Read from MH i2c: 01 07 00 D0 33 00 00 00 00 00 FF 0F 18 [16:07:16]process_action close_receipt done [16:07:16]requested_data is exist [16:07:16]produce_requested_data [16:07:16]requested_item fm.sn is exist - process it [16:07:16]wFMCommunicate request_size=4 [16:07:16]MH_SAM_APDU [16:07:16]CAPDU: 80 11 00 00 [16:07:16]Write to MH i2c: E2 08 00 D1 33 80 11 00 00 00 00 00 00 7E [16:07:16]Write i2c OK [16:07:16]MH_I2C_Read... [16:07:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:16]Read from MH i2c: E2 [16:07:16]MH_I2C_Read... [16:07:16]Read from MH i2c: E2 17 00 [16:07:16]MH_I2C_Read... [16:07:16]Read from MH i2c: E2 17 00 D1 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D1 [16:07:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:07:16]wFMCommunicate OK [16:07:16]requested_item fd.num is exist - process it [16:07:16]SAM_PROTO_GetFieldsCounters [16:07:16]wFMCommunicate request_size=4 [16:07:16]MH_SAM_APDU [16:07:16]CAPDU: 80 13 00 00 [16:07:16]Write to MH i2c: E2 08 00 D2 33 80 13 00 00 00 00 00 00 81 [16:07:16]Write i2c OK [16:07:16]MH_I2C_Read... [16:07:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:17]Read from MH i2c: E2 [16:07:17]MH_I2C_Read... [16:07:17]Read from MH i2c: E2 62 00 [16:07:17]MH_I2C_Read... [16:07:17]Read from MH i2c: E2 62 00 D2 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 E4 DA 02 00 0E 04 04 00 87 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 FA [16:07:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [16:07:17]wFMCommunicate OK [16:07:17]SAM_PROTO_GetFieldsCounters done [16:07:17]requested_item shift.num is exist - process it [16:07:17]requested_item shift.opened is exist - process it [16:07:17]req_shift_opened [16:07:17]FM_GetShiftState [16:07:17]SAM_PROTO_GetShiftState [16:07:17]wFMCommunicate request_size=4 [16:07:17]MH_SAM_APDU [16:07:17]CAPDU: 80 13 01 00 [16:07:17]Write to MH i2c: E2 08 00 D3 33 80 13 01 00 00 00 00 00 83 [16:07:17]Write i2c OK [16:07:17]MH_I2C_Read... [16:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:17]Read from MH i2c: E2 [16:07:17]MH_I2C_Read... [16:07:17]Read from MH i2c: E2 0E 00 [16:07:17]MH_I2C_Read... [16:07:17]Read from MH i2c: E2 0E 00 D3 33 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 02 [16:07:17]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:07:17]wFMCommunicate OK [16:07:17]SAM_PROTO_GetShiftState done [16:07:17]FM_GetShiftState done [16:07:17]req_shift_opened done [16:07:17]requested_item shift.open_date is exist - process it [16:07:17]req_shift_open_date [16:07:17]req_shift_open_date done [16:07:17]produce_requested_data done [16:07:17]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187108,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [16:07:17]process_action_free close_receipt [16:07:17]json_value_free [16:07:17]json_value_free done [16:07:17]process_json_proto returns [16:07:17]Send response to host [16:07:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187108,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [16:07:17]free response buf [16:07:17]execute_script done [16:07:17]execute_script returns [16:07:17]free content buf [16:07:17]Sock 9.Close socket [16:07:17]Sock 9.Thread stoped [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:46]accept exits with 7 [16:07:46]New connection [16:07:46]New thread 3067022692 created [16:07:46]Thread 3066879332 joined [16:07:46]Waiting for new connection... [16:07:46] Sock 7.Parse request [16:07:46]Sock 7.Check first char [16:07:46]Sock 7.First char is OK [16:07:46]request: POST /json_proto HTTP/1.0 [16:07:46]Method: POST [16:07:46]URL: /json_proto [16:07:46]Method is POST - this is cgi request [16:07:46]url: /json_proto [16:07:46]query_string will be loaded in cgi processing [16:07:46]execute_cgi json_proto POST (null) [16:07:46]execute_cgi path=json_proto method=POST [16:07:46]POST find Content-Length [16:07:46]Host: 172.17.46.131:8080 [16:07:46]Content-Length: 800 [16:07:46]Content-Type: application/json [16:07:46] [16:07:46]POST finish read [16:07:46]Found Content-Length = 800 [16:07:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412262", "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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4997479", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:46]execute_script... [16:07:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412262", "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\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4997479", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:46]POST & json_proto [16:07:46]process_json_proto [16:07:46]json parsed OK: [16:07:46]protocol is kg_v1.0 [16:07:46]action value=close_receipt [16:07:46]process_action close_receipt [16:07:46]cmd_close_receipt [16:07:46]MH_GetDate [16:07:46]Write to MH i2c: F0 00 00 D4 33 F6 [16:07:46]Write i2c OK [16:07:46]MH_I2C_Read... [16:07:46]Read from MH i2c: F0 [16:07:46]MH_I2C_Read... [16:07:46]Read from MH i2c: F0 09 00 [16:07:46]MH_I2C_Read... [16:07:46]Read from MH i2c: F0 09 00 D4 33 00 D7 01 B6 67 7E 41 4F 65 67 [16:07:46]GetLastDocTimeStamp 1739981237 [16:07:46]current date 1739981271 [16:07:46]FM_GetShiftState [16:07:46]SAM_PROTO_GetShiftState [16:07:46]wFMCommunicate request_size=4 [16:07:46]MH_SAM_APDU [16:07:46]CAPDU: 80 13 01 00 [16:07:46]Write to MH i2c: E2 08 00 D5 33 80 13 01 00 00 00 00 00 85 [16:07:46]Write i2c OK [16:07:46]MH_I2C_Read... [16:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:46]Read from MH i2c: E2 [16:07:46]MH_I2C_Read... [16:07:46]Read from MH i2c: E2 0E 00 [16:07:46]MH_I2C_Read... [16:07:46]Read from MH i2c: E2 0E 00 D5 33 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 04 [16:07:46]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:07:46]wFMCommunicate OK [16:07:46]SAM_PROTO_GetShiftState done [16:07:46]FM_GetShiftState done [16:07:46]opened in 1739929631 [16:07:46]opened+sec_in_day 1740016031 [16:07:46]quantity*price = 0 [16:07:46]sum+1 = 1 [16:07:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 175 19.02.2025 16:07 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4997479 ФМ: 0000000000871826 ФД: 187109 ФПД: 146472486312677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T160751&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187109&fm=146472486312677&tin=02508201610067®Number=0000000000091857&sum=0 [16:07:48]StoreToDocumentArchive [16:07:48]shift 647 fd 187109 [16:07:48]save to /storage/0647/doc_00187109 [16:07:48]save last doc name /storage/0647/doc_00187109 to /storage/kkm_last_doc_name [16:07:48]save OK [16:07:48]Clear old archive folders... [16:07:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:07:48]tlvbuf is 006837F0 [16:07:48]SAM_PROTO_ClearQueue [16:07:48]wFMCommunicate request_size=4 [16:07:48]MH_SAM_APDU [16:07:48]CAPDU: 80 09 00 00 [16:07:48]Write to MH i2c: E2 08 00 E2 33 80 09 00 00 00 00 00 00 87 [16:07:48]Write i2c OK [16:07:48]MH_I2C_Read... [16:07:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:48]Read from MH i2c: E2 [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: E2 03 00 [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: E2 03 00 E2 33 00 90 00 89 [16:07:48]RAPDU: 90 00 [16:07:48]wFMCommunicate OK [16:07:48]SAM_PROTO_ClearQueue done [16:07:48]KKMCreateOFDPacket [16:07:48]OFDProtocolAddRootSTLVToBuf [16:07:48]FM_MakeSignedData [16:07:48]FM_MakeSignedData [16:07:48]SAM_PROTO_SignData [16:07:48]wFMCommunicate request_size=4 [16:07:48]MH_SAM_APDU [16:07:48]CAPDU: 80 0D 01 02 [16:07:48]Write to MH i2c: E2 08 00 E3 33 80 0D 01 02 00 00 00 00 8F [16:07:48]Write i2c OK [16:07:48]MH_I2C_Read... [16:07:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:48]Read from MH i2c: E2 [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: E2 03 00 [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: E2 03 00 E3 33 00 90 00 8A [16:07:48]RAPDU: 90 00 [16:07:48]wFMCommunicate OK [16:07:48]wFMCommunicate request_size=255 [16:07:48]MH_SAM_APDU [16:07: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 AF 00 00 00 F4 03 04 00 D7 01 B6 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 E5 DA 02 00 35 04 06 00 85 [16:07:48]Write to MH i2c: E2 02 01 E4 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 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 AF 00 00 00 F4 03 04 00 D7 01 B6 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 E5 DA 02 00 35 04 06 00 85 00 00 45 [16:07:48]Write i2c OK [16:07:48]MH_I2C_Read... [16:07:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:48]Read from MH i2c: E2 [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: E2 03 00 [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: E2 03 00 E4 33 00 90 00 8B [16:07:48]RAPDU: 90 00 [16:07:48]wFMCommunicate OK [16:07:48]wFMCommunicate request_size=10 [16:07:48]MH_SAM_APDU [16:07:48]CAPDU: 80 0D 02 02 05 37 48 84 1A E5 [16:07:48]Write to MH i2c: E2 0D 00 E5 33 80 0D 02 02 05 00 37 48 84 1A E5 00 00 9E [16:07:48]Write i2c OK [16:07:48]MH_I2C_Read... [16:07:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:48]Read from MH i2c: E2 [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: E2 03 00 [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: E2 03 00 E5 33 00 90 00 8C [16:07:48]RAPDU: 90 00 [16:07:48]wFMCommunicate OK [16:07:48]wFMCommunicate request_size=4 [16:07:48]MH_SAM_APDU [16:07:48]CAPDU: 80 0D 03 02 [16:07:48]Write to MH i2c: E2 08 00 E6 33 80 0D 03 02 00 00 00 00 94 [16:07:48]Write i2c OK [16:07:48]MH_I2C_Read... [16:07:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:48]Read from MH i2c: E2 [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: E2 0B 00 [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: E2 0B 00 E6 33 00 26 FF 22 E8 AB E0 EF AC 90 00 EA [16:07:48]RAPDU: 26 FF 22 E8 AB E0 EF AC 90 00 [16:07:48]wFMCommunicate OK [16:07:48]SAM_PROTO_SignData done [16:07:48]FM_MakeSignedData done [16:07:48]CreateOFDProtocolMessage [16:07:48]wFMCommunicate request_size=4 [16:07:48]MH_SAM_APDU [16:07:48]CAPDU: 80 11 00 00 [16:07:48]Write to MH i2c: E2 08 00 E7 33 80 11 00 00 00 00 00 00 94 [16:07:48]Write i2c OK [16:07:48]MH_I2C_Read... [16:07:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:48]Read from MH i2c: E2 [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: E2 17 00 [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: E2 17 00 E7 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E7 [16:07: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:07:48]wFMCommunicate OK [16:07:48]CreateOFDProtocolMessage done [16:07:48]OFDSenderStorePacket 187109 [16:07:48]StoreOFDPacket docnum=187109 [16:07: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 25 D1 07 01 ED A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 AF 00 00 00 F4 03 04 00 D7 01 B6 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 E5 DA 02 00 35 04 06 00 85 37 48 84 1A E5 26 FF 22 E8 AB E0 EF AC [16:07:48]CheckFolder [16:07:48]dirname=/storage/ofd_packets [16:07:48]CheckFolder done [16:07:48]ProducePacketName [16:07:48]name=ofd_packets/00187109 [16:07:48]NVStorageSaveData ofd_packets/00187109 [16:07:48]File name is /storage/ofd_packets/00187109 [16:07:48]Write 301 bytes [16:07:48]NVStorageSaveData done [16:07:48]OFDSenderStorePacket done [16:07:48]KKMCreateOFDPacket done [16:07:48]NVStorageSaveData kkm_last_timestamp [16:07:48]File name is /storage/kkm_last_timestamp [16:07:48]Write 4 bytes [16:07:48]NVStorageSaveData done [16:07:48]ExternCall_PrintAddStr [16:07:48]wPrintStart [16:07:48]Write to MH i2c: 01 00 00 E8 33 1B [16:07:48]Write i2c OK [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: 01 [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: 01 07 00 [16:07:48]MH_I2C_Read... [16:07:48]Read from MH i2c: 01 07 00 E8 33 00 00 00 00 00 FF 0F 30 [16:07:48]RasterBufferAndPrint [16:07:48]line Счет N : (1)412262 [16:07:48]line ИНН: 02508201610067 [16:07:48]line Контрольно-Кассовый Чек [16:07:48]line ПРОДАЖА [16:07:48]line ТРК (МРК, ГНК) : 22 [16:07:48]line Товар: 2710124130 [16:07:48]line Аи-92-К-2 [16:07:48]line 10.000 * 0.00 [16:07:48]line = 0.00 [16:07:48]line НДС 12% НСП 1% [16:07:48]line > о реализуемом товаре [16:07:48]line ИТОГО: 0.00 [16:07:48]line НСП 1% : 0.00 [16:07:48]line НДС 12% : 0.00 [16:07:48]line Наличными: 0.00 [16:07:48]line Безнал.: 0.00 [16:07:48]line Место: АЗС № 92 "Партнер Нефть" [16:07:48]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:07:48]line СНО: Общий режим [16:07:48]line Чек 175 19.02.2025 16:07 [16:07:48]line Смена: 647 ФФД: 1.0 [16:07:48]line ЗНМ: 0300000118 [16:07:48]line РНМ: 0000000000091857 [16:07:48]line Версия ККМ: 001 [16:07:48]line Талоны: Топливные Талоны [16:07:48]line 4997479 [16:07:48]line ФМ: 0000000000871826 [16:07:48]line ФД: 187109 [16:07:48]line ФПД: 146472486312677 [16:07:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T160751&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187109&fm=146472486312677&tin=02508201610067®Number=0000000000091857&sum=0 [16:07:48]written 0, free lines is 4095 [16:07:48]OFD Sender: Processing packet 187109 [packets to send 49, broken 48] [16:07:48]ProducePacketName [16:07:48]name=ofd_packets/00187109 [16:07:48]OFD Sender: To server: pG, [16:07:48]CommunicateWithHost lk.salyk.kg:30040 [16:07:48]ConnectInit lk.salyk.kg [16:07:48]Connected sock=11 [16:07:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 25 D1 07 01 ED A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 AF 00 00 00 F4 03 04 00 D7 01 B6 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 E5 DA 02 00 35 04 06 00 85 37 48 84 1A E5 26 FF 22 E8 AB E0 EF AC [16:07:49]Write to MH i2c: 01 00 00 12 34 46 [16:07:49]Write i2c OK [16:07:49]MH_I2C_Read... [16:07:49]Read from MH i2c: 01 [16:07:49]MH_I2C_Read... [16:07:49]Read from MH i2c: 01 07 00 [16:07:49]MH_I2C_Read... [16:07:49]Read from MH i2c: 01 07 00 12 34 00 00 00 00 00 F7 0C 50 [16:07:49]RasterBufferAndPrint [16:07:49]line [16:07:49]line [16:07:49]line [16:07:49]line [16:07:49]line [16:07:49]written 0, free lines is 3325 [16:07:49]MH_Cut [16:07:49]Write to MH i2c: D1 01 00 19 34 01 1F [16:07:49]Write i2c OK [16:07:49]MH_I2C_Read... [16:07:49]Read from MH i2c: D1 [16:07:49]MH_I2C_Read... [16:07:49]Read from MH i2c: D1 01 00 [16:07:49]MH_I2C_Read... [16:07:49]Read from MH i2c: D1 01 00 19 34 00 1E [16:07:49]Write to MH i2c: 01 00 00 1A 34 4E [16:07:49]Write i2c OK [16:07:49]MH_I2C_Read... [16:07: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 82 3D 47 00 39 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E5 DA 02 00 F4 03 04 00 2A A8 B5 67 B6 04 01 00 00 87 2B 95 93 CD 7D C6 45 [16:07:49]CommunicateWithHost err = 0 [16:07:49]CheckOFDResponse [16:07:49]1017 (14) - 77093643461234 [16:07:49]1041 (16) - 0000000000871826 [16:07:49]1040 (4) - 187109 [16:07:49]1012 (4) - 19.02.2025 09:45 [16:07:49]1206 (1) - 0 [16:07:49]OFD Sender: Remove packet 187109 [16:07:49]ProducePacketName [16:07:49]name=ofd_packets/00187109 [16:07:49]NVStorageDeleteData [16:07:49]OFD Sender: No OFD packet to send [16:07:49]*** Cut start [16:07:49]*** Partial cut [16:07:49]*** CUTSNS_PIN = 1 [16:07:49]*** CUTSNS_PIN = 0 [16:07:50]*** Brake cut motor [16:07:50]Read from MH i2c: 01 [16:07:50]MH_I2C_Read... [16:07:50]*** Stop cut motor [16:07:50]*** Cut end [16:07:50]Read from MH i2c: 01 07 00 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: 01 07 00 1A 34 00 00 00 00 00 FF 0F 63 [16:07:50]process_action close_receipt done [16:07:50]requested_data is exist [16:07:50]produce_requested_data [16:07:50]requested_item fm.sn is exist - process it [16:07:50]wFMCommunicate request_size=4 [16:07:50]MH_SAM_APDU [16:07:50]CAPDU: 80 11 00 00 [16:07:50]Write to MH i2c: E2 08 00 1B 34 80 11 00 00 00 00 00 00 C9 [16:07:50]Write i2c OK [16:07:50]MH_I2C_Read... [16:07:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:50]Read from MH i2c: E2 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 17 00 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 17 00 1B 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1C [16:07: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:07:50]wFMCommunicate OK [16:07:50]requested_item fd.num is exist - process it [16:07:50]SAM_PROTO_GetFieldsCounters [16:07:50]wFMCommunicate request_size=4 [16:07:50]MH_SAM_APDU [16:07:50]CAPDU: 80 13 00 00 [16:07:50]Write to MH i2c: E2 08 00 1C 34 80 13 00 00 00 00 00 00 CC [16:07:50]Write i2c OK [16:07:50]MH_I2C_Read... [16:07:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:50]Read from MH i2c: E2 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 62 00 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 62 00 1C 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 E5 DA 02 00 0E 04 04 00 87 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 49 [16:07:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [16:07:50]wFMCommunicate OK [16:07:50]SAM_PROTO_GetFieldsCounters done [16:07:50]requested_item shift.num is exist - process it [16:07:50]requested_item shift.opened is exist - process it [16:07:50]req_shift_opened [16:07:50]FM_GetShiftState [16:07:50]SAM_PROTO_GetShiftState [16:07:50]wFMCommunicate request_size=4 [16:07:50]MH_SAM_APDU [16:07:50]CAPDU: 80 13 01 00 [16:07:50]Write to MH i2c: E2 08 00 1D 34 80 13 01 00 00 00 00 00 CE [16:07:50]Write i2c OK [16:07:50]MH_I2C_Read... [16:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:50]Read from MH i2c: E2 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 0E 00 [16:07:50]MH_I2C_Read... [16:07:50]Read from MH i2c: E2 0E 00 1D 34 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 4D [16:07:50]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:07:50]wFMCommunicate OK [16:07:50]SAM_PROTO_GetShiftState done [16:07:50]FM_GetShiftState done [16:07:50]req_shift_opened done [16:07:50]requested_item shift.open_date is exist - process it [16:07:50]req_shift_open_date [16:07:50]req_shift_open_date done [16:07:50]produce_requested_data done [16:07:50]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187109,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [16:07:50]process_action_free close_receipt [16:07:50]json_value_free [16:07:50]json_value_free done [16:07:50]process_json_proto returns [16:07:50]Send response to host [16:07:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187109,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [16:07:50]free response buf [16:07:50]execute_script done [16:07:50]execute_script returns [16:07:50]free content buf [16:07:50]Sock 7.Close socket [16:07:50]Sock 7.Thread stoped [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:19]OFD Sender: No OFD packet to send [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:59]OFD Sender: No OFD packet to send [16:09:04]OFD Sender: No OFD packet to send [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:54]OFD Sender: No OFD packet to send [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:24]OFD Sender: No OFD packet to send [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12: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:51]accept exits with 9 [16:13:51]New connection [16:13:51]New thread 3066879332 created [16:13:51]Thread 3067022692 joined [16:13:51]Waiting for new connection... [16:13:51] Sock 9.Parse request [16:13:51]Sock 9.Check first char [16:13:51]Sock 9.First char is OK [16:13:51]request: POST /json_proto HTTP/1.0 [16:13:51]Method: POST [16:13:51]URL: /json_proto [16:13:51]Method is POST - this is cgi request [16:13:51]url: /json_proto [16:13:51]query_string will be loaded in cgi processing [16:13:51]execute_cgi json_proto POST (null) [16:13:51]execute_cgi path=json_proto method=POST [16:13:51]POST find Content-Length [16:13:51]Host: 172.17.46.131:8080 [16:13:51]Content-Length: 678 [16:13:51]Content-Type: application/json [16:13:51] [16:13:51]POST finish read [16:13:51]Found Content-Length = 678 [16:13:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412264", "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:13:51]execute_script... [16:13: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)412264", "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:13:51]POST & json_proto [16:13:51]process_json_proto [16:13:51]json parsed OK: [16:13:51]protocol is kg_v1.0 [16:13:51]action value=close_receipt [16:13:51]process_action close_receipt [16:13:51]cmd_close_receipt [16:13:51]MH_GetDate [16:13:51]Write to MH i2c: F0 00 00 1E 34 41 [16:13:51]Write i2c OK [16:13:51]MH_I2C_Read... [16:13:51]Read from MH i2c: F0 [16:13:51]MH_I2C_Read... [16:13:51]Read from MH i2c: F0 09 00 [16:13:51]MH_I2C_Read... [16:13:51]Read from MH i2c: F0 09 00 1E 34 00 43 03 B6 67 7E 41 4F 65 20 [16:13:51]GetLastDocTimeStamp 1739981271 [16:13:51]current date 1739981635 [16:13:51]FM_GetShiftState [16:13:51]SAM_PROTO_GetShiftState [16:13:51]wFMCommunicate request_size=4 [16:13:51]MH_SAM_APDU [16:13:51]CAPDU: 80 13 01 00 [16:13:51]Write to MH i2c: E2 08 00 1F 34 80 13 01 00 00 00 00 00 D0 [16:13:51]Write i2c OK [16:13:51]MH_I2C_Read... [16:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:51]Read from MH i2c: E2 [16:13:51]MH_I2C_Read... [16:13:51]Read from MH i2c: E2 0E 00 [16:13:51]MH_I2C_Read... [16:13:51]Read from MH i2c: E2 0E 00 1F 34 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 4F [16:13:51]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:13:51]wFMCommunicate OK [16:13:51]SAM_PROTO_GetShiftState done [16:13:51]FM_GetShiftState done [16:13:51]opened in 1739929631 [16:13:51]opened+sec_in_day 1740016031 [16:13:51]quantity*price = 100042 [16:13:51]sum+1 = 100044 [16:13:51]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 СНО: Общий режим Чек 176 19.02.2025 16:13 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187110 ФПД: 230961766761259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T161356&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187110&fm=230961766761259&tin=02508201610067®Number=0000000000091857&sum=100000 [16:13:52]StoreToDocumentArchive [16:13:52]shift 647 fd 187110 [16:13:52]save to /storage/0647/doc_00187110 [16:13:52]save last doc name /storage/0647/doc_00187110 to /storage/kkm_last_doc_name [16:13:52]save OK [16:13:52]Clear old archive folders... [16:13:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:13:52]tlvbuf is B6DB9A60 [16:13:52]SAM_PROTO_ClearQueue [16:13:52]wFMCommunicate request_size=4 [16:13:52]MH_SAM_APDU [16:13:52]CAPDU: 80 09 00 00 [16:13:52]Write to MH i2c: E2 08 00 2C 34 80 09 00 00 00 00 00 00 D2 [16:13:52]Write i2c OK [16:13:52]MH_I2C_Read... [16:13:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:53]Read from MH i2c: E2 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 03 00 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 03 00 2C 34 00 90 00 D4 [16:13:53]RAPDU: 90 00 [16:13:53]wFMCommunicate OK [16:13:53]SAM_PROTO_ClearQueue done [16:13:53]KKMCreateOFDPacket [16:13:53]OFDProtocolAddRootSTLVToBuf [16:13:53]FM_MakeSignedData [16:13:53]FM_MakeSignedData [16:13:53]SAM_PROTO_SignData [16:13:53]wFMCommunicate request_size=4 [16:13:53]MH_SAM_APDU [16:13:53]CAPDU: 80 0D 01 02 [16:13:53]Write to MH i2c: E2 08 00 2D 34 80 0D 01 02 00 00 00 00 DA [16:13:53]Write i2c OK [16:13:53]MH_I2C_Read... [16:13:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:53]Read from MH i2c: E2 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 03 00 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 03 00 2D 34 00 90 00 D5 [16:13:53]RAPDU: 90 00 [16:13:53]wFMCommunicate OK [16:13:53]wFMCommunicate request_size=255 [16:13:53]MH_SAM_APDU [16:13:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 B0 00 00 00 F4 03 04 00 44 03 B6 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 E6 DA 02 00 35 04 06 00 D2 0E FA 10 [16:13:53]Write to MH i2c: E2 02 01 2E 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 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 B0 00 00 00 F4 03 04 00 44 03 B6 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 E6 DA 02 00 35 04 06 00 D2 0E FA 10 00 00 C7 [16:13:53]Write i2c OK [16:13:53]MH_I2C_Read... [16:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:53]Read from MH i2c: E2 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 03 00 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 03 00 2E 34 00 90 00 D6 [16:13:53]RAPDU: 90 00 [16:13:53]wFMCommunicate OK [16:13:53]wFMCommunicate request_size=7 [16:13:53]MH_SAM_APDU [16:13:53]CAPDU: 80 0D 02 02 02 83 2B [16:13:53]Write to MH i2c: E2 0A 00 2F 34 80 0D 02 02 02 00 83 2B 00 00 8F [16:13:53]Write i2c OK [16:13:53]MH_I2C_Read... [16:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:53]Read from MH i2c: E2 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 03 00 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 03 00 2F 34 00 90 00 D7 [16:13:53]RAPDU: 90 00 [16:13:53]wFMCommunicate OK [16:13:53]wFMCommunicate request_size=4 [16:13:53]MH_SAM_APDU [16:13:53]CAPDU: 80 0D 03 02 [16:13:53]Write to MH i2c: E2 08 00 30 34 80 0D 03 02 00 00 00 00 DF [16:13:53]Write i2c OK [16:13:53]MH_I2C_Read... [16:13:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:53]Read from MH i2c: E2 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 0B 00 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 0B 00 30 34 00 7A D7 8C E7 CF 4B 47 D7 90 00 DC [16:13:53]RAPDU: 7A D7 8C E7 CF 4B 47 D7 90 00 [16:13:53]wFMCommunicate OK [16:13:53]SAM_PROTO_SignData done [16:13:53]FM_MakeSignedData done [16:13:53]CreateOFDProtocolMessage [16:13:53]wFMCommunicate request_size=4 [16:13:53]MH_SAM_APDU [16:13:53]CAPDU: 80 11 00 00 [16:13:53]Write to MH i2c: E2 08 00 31 34 80 11 00 00 00 00 00 00 DF [16:13:53]Write i2c OK [16:13:53]MH_I2C_Read... [16:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:53]Read from MH i2c: E2 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 17 00 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: E2 17 00 31 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 32 [16:13: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:13:53]wFMCommunicate OK [16:13:53]CreateOFDProtocolMessage done [16:13:53]OFDSenderStorePacket 187110 [16:13:53]StoreOFDPacket docnum=187110 [16:13: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 0C 01 00 00 5A 9B 04 01 DE 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 B0 00 00 00 F4 03 04 00 44 03 B6 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 E6 DA 02 00 35 04 06 00 D2 0E FA 10 83 2B 7A D7 8C E7 CF 4B 47 D7 [16:13:53]CheckFolder [16:13:53]dirname=/storage/ofd_packets [16:13:53]CheckFolder done [16:13:53]ProducePacketName [16:13:53]name=ofd_packets/00187110 [16:13:53]NVStorageSaveData ofd_packets/00187110 [16:13:53]File name is /storage/ofd_packets/00187110 [16:13:53]Write 298 bytes [16:13:53]NVStorageSaveData done [16:13:53]OFDSenderStorePacket done [16:13:53]KKMCreateOFDPacket done [16:13:53]NVStorageSaveData kkm_last_timestamp [16:13:53]File name is /storage/kkm_last_timestamp [16:13:53]Write 4 bytes [16:13:53]NVStorageSaveData done [16:13:53]ExternCall_PrintAddStr [16:13:53]wPrintStart [16:13:53]Write to MH i2c: 01 00 00 32 34 66 [16:13:53]Write i2c OK [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: 01 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: 01 07 00 [16:13:53]MH_I2C_Read... [16:13:53]Read from MH i2c: 01 07 00 32 34 00 00 00 00 00 FF 0F 7B [16:13:53]RasterBufferAndPrint [16:13:53]line Счет N : (1)412264 [16:13:53]line ИНН: 02508201610067 [16:13:53]line Контрольно-Кассовый Чек [16:13:53]line ПРОДАЖА [16:13:53]line ТРК (МРК, ГНК) : 6 [16:13:53]line Товар: 2710194210 [16:13:53]line ДТ-К-5 [16:13:53]line 13.780 * 72.60 [16:13:53]line = 1000.43 [16:13:53]line НДС 12% НСП 1% [16:13:53]line > о реализуемом товаре [16:13:53]line ОКРУГЛЕНИЕ: -0.43 [16:13:53]line ИТОГО: 1000.00 [16:13:53]line Внесено: 1000.00 [16:13:53]line СДАЧА: 0.00 [16:13:53]line НСП 1% : 8.85 [16:13:53]line НДС 12% : 106.24 [16:13:53]line Наличными: 1000.00 [16:13:53]line Безнал.: 0.00 [16:13:53]line Место: АЗС № 92 "Партнер Нефть" [16:13:53]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:13:53]line СНО: Общий режим [16:13:53]line Чек 176 19.02.2025 16:13 [16:13:53]line Смена: 647 ФФД: 1.0 [16:13:53]line ЗНМ: 0300000118 [16:13:53]line РНМ: 0000000000091857 [16:13:53]line Версия ККМ: 001 [16:13:53]line ФМ: 0000000000871826 [16:13:53]line ФД: 187110 [16:13:53]line ФПД: 230961766761259 [16:13:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T161356&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187110&fm=230961766761259&tin=02508201610067®Number=0000000000091857&sum=100000 [16:13:53]OFD Sender: Processing packet 187110 [packets to send 49, broken 48] [16:13:53]ProducePacketName [16:13:53]name=ofd_packets/00187110 [16:13:53]OFD Sender: To server: pG, [16:13:53]CommunicateWithHost lk.salyk.kg:30040 [16:13:53]ConnectInit lk.salyk.kg [16:13:53]written 0, free lines is 4095 [16:13:53]Connected sock=10 [16:13:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 5A 9B 04 01 DE 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 B0 00 00 00 F4 03 04 00 44 03 B6 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 E6 DA 02 00 35 04 06 00 D2 0E FA 10 83 2B 7A D7 8C E7 CF 4B 47 D7 [16:13: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 E1 9E 47 00 FA FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E6 DA 02 00 F4 03 04 00 97 A9 B5 67 B6 04 01 00 00 DB 56 E5 12 95 F9 53 B9 [16:13:54]CommunicateWithHost err = 0 [16:13:54]CheckOFDResponse [16:13:54]1017 (14) - 77093643461234 [16:13:54]1041 (16) - 0000000000871826 [16:13:54]1040 (4) - 187110 [16:13:54]1012 (4) - 19.02.2025 09:51 [16:13:54]1206 (1) - 0 [16:13:54]OFD Sender: Remove packet 187110 [16:13:54]ProducePacketName [16:13:54]name=ofd_packets/00187110 [16:13:54]NVStorageDeleteData [16:13:54]Write to MH i2c: 01 00 00 5D 34 91 [16:13:54]Write i2c OK [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: 01 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: 01 07 00 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: 01 07 00 5D 34 00 00 00 00 00 F1 0C 95 [16:13:54]RasterBufferAndPrint [16:13:54]line [16:13:54]line [16:13:54]line [16:13:54]line [16:13:54]line [16:13:54]written 0, free lines is 3322 [16:13:54]MH_Cut [16:13:54]Write to MH i2c: D1 01 00 64 34 01 6A [16:13:54]Write i2c OK [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: D1 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: D1 01 00 [16:13:54]MH_I2C_Read... [16:13:54]Read from MH i2c: D1 01 00 64 34 00 69 [16:13:54]Write to MH i2c: 01 00 00 65 34 99 [16:13:54]Write i2c OK [16:13:54]MH_I2C_Read... [16:13:54]OFD Sender: No OFD packet to send [16:13:54]*** Cut start [16:13:54]*** Partial cut [16:13:54]*** CUTSNS_PIN = 1 [16:13:55]*** CUTSNS_PIN = 0 [16:13:55]*** Brake cut motor [16:13:55]Read from MH i2c: 01 [16:13:55]MH_I2C_Read... [16:13:55]*** Stop cut motor [16:13:55]*** Cut end [16:13:55]Read from MH i2c: 01 07 00 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: 01 07 00 65 34 00 00 00 00 00 FF 0F AE [16:13:55]process_action close_receipt done [16:13:55]requested_data is exist [16:13:55]produce_requested_data [16:13:55]requested_item fm.sn is exist - process it [16:13:55]wFMCommunicate request_size=4 [16:13:55]MH_SAM_APDU [16:13:55]CAPDU: 80 11 00 00 [16:13:55]Write to MH i2c: E2 08 00 66 34 80 11 00 00 00 00 00 00 14 [16:13:55]Write i2c OK [16:13:55]MH_I2C_Read... [16:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:55]Read from MH i2c: E2 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 17 00 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 17 00 66 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 67 [16:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:13:55]wFMCommunicate OK [16:13:55]requested_item fd.num is exist - process it [16:13:55]SAM_PROTO_GetFieldsCounters [16:13:55]wFMCommunicate request_size=4 [16:13:55]MH_SAM_APDU [16:13:55]CAPDU: 80 13 00 00 [16:13:55]Write to MH i2c: E2 08 00 67 34 80 13 00 00 00 00 00 00 17 [16:13:55]Write i2c OK [16:13:55]MH_I2C_Read... [16:13:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:55]Read from MH i2c: E2 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 62 00 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 62 00 67 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 E6 DA 02 00 0E 04 04 00 87 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 98 [16:13:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [16:13:55]wFMCommunicate OK [16:13:55]SAM_PROTO_GetFieldsCounters done [16:13:55]requested_item shift.num is exist - process it [16:13:55]requested_item shift.opened is exist - process it [16:13:55]req_shift_opened [16:13:55]FM_GetShiftState [16:13:55]SAM_PROTO_GetShiftState [16:13:55]wFMCommunicate request_size=4 [16:13:55]MH_SAM_APDU [16:13:55]CAPDU: 80 13 01 00 [16:13:55]Write to MH i2c: E2 08 00 68 34 80 13 01 00 00 00 00 00 19 [16:13:55]Write i2c OK [16:13:55]MH_I2C_Read... [16:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:55]Read from MH i2c: E2 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 0E 00 [16:13:55]MH_I2C_Read... [16:13:55]Read from MH i2c: E2 0E 00 68 34 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 98 [16:13:55]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:13:55]wFMCommunicate OK [16:13:55]SAM_PROTO_GetShiftState done [16:13:55]FM_GetShiftState done [16:13:55]req_shift_opened done [16:13:55]requested_item shift.open_date is exist - process it [16:13:55]req_shift_open_date [16:13:55]req_shift_open_date done [16:13:55]produce_requested_data done [16:13:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187110,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [16:13:55]process_action_free close_receipt [16:13:55]json_value_free [16:13:55]json_value_free done [16:13:55]process_json_proto returns [16:13:55]Send response to host [16:13:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187110,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [16:13:55]free response buf [16:13:55]execute_script done [16:13:55]execute_script returns [16:13:55]free content buf [16:13:55]Sock 9.Close socket [16:13:55]Sock 9.Thread stoped [16:13:59]OFD Sender: No OFD packet to send [16:14:02]accept exits with 7 [16:14:02]New connection [16:14:02]New thread 3067022692 created [16:14:02]Thread 3066879332 joined [16:14:02]Waiting for new connection... [16:14:02] Sock 7.Parse request [16:14:02]Sock 7.Check first char [16:14:02]Sock 7.First char is OK [16:14:02]request: POST /json_proto HTTP/1.0 [16:14:02]Method: POST [16:14:02]URL: /json_proto [16:14:02]Method is POST - this is cgi request [16:14:02]url: /json_proto [16:14:02]query_string will be loaded in cgi processing [16:14:02]execute_cgi json_proto POST (null) [16:14:02]execute_cgi path=json_proto method=POST [16:14:02]POST find Content-Length [16:14:02]Host: 172.17.46.131:8080 [16:14:02]Content-Length: 800 [16:14:02]Content-Type: application/json [16:14:02] [16:14:02]POST finish read [16:14:02]Found Content-Length = 800 [16:14:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412263", "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" ] } } [16:14:02]execute_script... [16:14: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)412263", "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" ] } } [16:14:02]POST & json_proto [16:14:02]process_json_proto [16:14:02]json parsed OK: [16:14:02]protocol is kg_v1.0 [16:14:02]action value=close_receipt [16:14:02]process_action close_receipt [16:14:02]cmd_close_receipt [16:14:02]MH_GetDate [16:14:02]Write to MH i2c: F0 00 00 69 34 8C [16:14:02]Write i2c OK [16:14:02]MH_I2C_Read... [16:14:02]Read from MH i2c: F0 [16:14:02]MH_I2C_Read... [16:14:02]Read from MH i2c: F0 09 00 [16:14:02]MH_I2C_Read... [16:14:02]Read from MH i2c: F0 09 00 69 34 00 4E 03 B6 67 7E 41 4F 65 76 [16:14:02]GetLastDocTimeStamp 1739981636 [16:14:02]current date 1739981646 [16:14:02]FM_GetShiftState [16:14:02]SAM_PROTO_GetShiftState [16:14:02]wFMCommunicate request_size=4 [16:14:02]MH_SAM_APDU [16:14:02]CAPDU: 80 13 01 00 [16:14:02]Write to MH i2c: E2 08 00 6A 34 80 13 01 00 00 00 00 00 1B [16:14:02]Write i2c OK [16:14:02]MH_I2C_Read... [16:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:02]Read from MH i2c: E2 [16:14:02]MH_I2C_Read... [16:14:02]Read from MH i2c: E2 0E 00 [16:14:02]MH_I2C_Read... [16:14:02]Read from MH i2c: E2 0E 00 6A 34 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 9A [16:14:02]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:14:02]wFMCommunicate OK [16:14:02]SAM_PROTO_GetShiftState done [16:14:02]FM_GetShiftState done [16:14:02]opened in 1739929631 [16:14:02]opened+sec_in_day 1740016031 [16:14:02]quantity*price = 50011 [16:14:02]sum+1 = 50013 [16:14:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.12 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.12 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 177 19.02.2025 16:14 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187111 ФПД: 213805295042485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T161406&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187111&fm=213805295042485&tin=02508201610067®Number=0000000000091857&sum=50012 [16:14:03]StoreToDocumentArchive [16:14:03]shift 647 fd 187111 [16:14:03]save to /storage/0647/doc_00187111 [16:14:03]save last doc name /storage/0647/doc_00187111 to /storage/kkm_last_doc_name [16:14:03]save OK [16:14:03]Clear old archive folders... [16:14:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:14:03]tlvbuf is 00659F30 [16:14:03]SAM_PROTO_ClearQueue [16:14:03]wFMCommunicate request_size=4 [16:14:03]MH_SAM_APDU [16:14:03]CAPDU: 80 09 00 00 [16:14:03]Write to MH i2c: E2 08 00 77 34 80 09 00 00 00 00 00 00 1D [16:14:03]Write i2c OK [16:14:03]MH_I2C_Read... [16:14:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:03]Read from MH i2c: E2 [16:14:03]MH_I2C_Read... [16:14:03]Read from MH i2c: E2 03 00 [16:14:03]MH_I2C_Read... [16:14:03]Read from MH i2c: E2 03 00 77 34 00 90 00 1F [16:14:03]RAPDU: 90 00 [16:14:03]wFMCommunicate OK [16:14:03]SAM_PROTO_ClearQueue done [16:14:03]KKMCreateOFDPacket [16:14:03]OFDProtocolAddRootSTLVToBuf [16:14:03]FM_MakeSignedData [16:14:03]FM_MakeSignedData [16:14:03]SAM_PROTO_SignData [16:14:03]wFMCommunicate request_size=4 [16:14:03]MH_SAM_APDU [16:14:03]CAPDU: 80 0D 01 02 [16:14:03]Write to MH i2c: E2 08 00 78 34 80 0D 01 02 00 00 00 00 25 [16:14:03]Write i2c OK [16:14:03]MH_I2C_Read... [16:14:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:03]Read from MH i2c: E2 [16:14:03]MH_I2C_Read... [16:14:03]Read from MH i2c: E2 03 00 [16:14:03]MH_I2C_Read... [16:14:03]Read from MH i2c: E2 03 00 78 34 00 90 00 20 [16:14:03]RAPDU: 90 00 [16:14:03]wFMCommunicate OK [16:14:03]wFMCommunicate request_size=255 [16:14:03]MH_SAM_APDU [16:14: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 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 B1 00 00 00 F4 03 04 00 4E 03 B6 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 E7 DA 02 00 35 04 06 00 C2 [16:14:03]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 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 B1 00 00 00 F4 03 04 00 4E 03 B6 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 E7 DA 02 00 35 04 06 00 C2 00 00 03 [16:14:03]Write i2c OK [16:14:03]MH_I2C_Read... [16:14:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:03]Read from MH i2c: E2 [16:14:03]MH_I2C_Read... [16:14:03]Read from MH i2c: E2 03 00 [16:14:03]MH_I2C_Read... [16:14:03]Read from MH i2c: E2 03 00 79 34 00 90 00 21 [16:14:03]RAPDU: 90 00 [16:14:03]wFMCommunicate OK [16:14:03]wFMCommunicate request_size=10 [16:14:03]MH_SAM_APDU [16:14:03]CAPDU: 80 0D 02 02 05 74 6C A9 7F B5 [16:14:03]Write to MH i2c: E2 0D 00 7A 34 80 0D 02 02 05 00 74 6C A9 7F B5 00 00 EF [16:14:03]Write i2c OK [16:14:03]MH_I2C_Read... [16:14:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:03]Read from MH i2c: E2 [16:14:03]MH_I2C_Read... [16:14:03]Read from MH i2c: E2 03 00 [16:14:03]MH_I2C_Read... [16:14:03]Read from MH i2c: E2 03 00 7A 34 00 90 00 22 [16:14:03]RAPDU: 90 00 [16:14:03]wFMCommunicate OK [16:14:03]wFMCommunicate request_size=4 [16:14:03]MH_SAM_APDU [16:14:03]CAPDU: 80 0D 03 02 [16:14:03]Write to MH i2c: E2 08 00 7B 34 80 0D 03 02 00 00 00 00 2A [16:14:03]Write i2c OK [16:14:03]MH_I2C_Read... [16:14:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:03]Read from MH i2c: E2 [16:14:03]MH_I2C_Read... [16:14:03]Read from MH i2c: E2 0B 00 [16:14:03]MH_I2C_Read... [16:14:03]Read from MH i2c: E2 0B 00 7B 34 00 E5 1E E8 D0 0D F1 E0 86 90 00 4A [16:14:03]RAPDU: E5 1E E8 D0 0D F1 E0 86 90 00 [16:14:03]wFMCommunicate OK [16:14:03]SAM_PROTO_SignData done [16:14:03]FM_MakeSignedData done [16:14:03]CreateOFDProtocolMessage [16:14:03]wFMCommunicate request_size=4 [16:14:03]MH_SAM_APDU [16:14:03]CAPDU: 80 11 00 00 [16:14:03]Write to MH i2c: E2 08 00 7C 34 80 11 00 00 00 00 00 00 2A [16:14:03]Write i2c OK [16:14:03]MH_I2C_Read... [16:14:04]Read from MH i2c: E2 [16:14:04]MH_I2C_Read... [16:14:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:04]Read from MH i2c: E2 17 00 [16:14:04]MH_I2C_Read... [16:14:04]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 [16:14: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:14:04]wFMCommunicate OK [16:14:04]CreateOFDProtocolMessage done [16:14:04]OFDSenderStorePacket 187111 [16:14:04]StoreOFDPacket docnum=187111 [16:14: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 8A B4 07 01 79 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B1 00 00 00 F4 03 04 00 4E 03 B6 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 E7 DA 02 00 35 04 06 00 C2 74 6C A9 7F B5 E5 1E E8 D0 0D F1 E0 86 [16:14:04]CheckFolder [16:14:04]dirname=/storage/ofd_packets [16:14:04]CheckFolder done [16:14:04]ProducePacketName [16:14:04]name=ofd_packets/00187111 [16:14:04]NVStorageSaveData ofd_packets/00187111 [16:14:04]File name is /storage/ofd_packets/00187111 [16:14:04]Write 301 bytes [16:14:04]NVStorageSaveData done [16:14:04]OFDSenderStorePacket done [16:14:04]KKMCreateOFDPacket done [16:14:04]NVStorageSaveData kkm_last_timestamp [16:14:04]File name is /storage/kkm_last_timestamp [16:14:04]Write 4 bytes [16:14:04]NVStorageSaveData done [16:14:04]ExternCall_PrintAddStr [16:14:04]wPrintStart [16:14:04]Write to MH i2c: 01 00 00 7D 34 B1 [16:14:04]Write i2c OK [16:14:04]MH_I2C_Read... [16:14:04]Read from MH i2c: 01 [16:14:04]MH_I2C_Read... [16:14:04]Read from MH i2c: 01 07 00 [16:14:04]MH_I2C_Read... [16:14:04]Read from MH i2c: 01 07 00 7D 34 00 00 00 00 00 FF 0F C6 [16:14:04]RasterBufferAndPrint [16:14:04]line Счет N : (1)412263 [16:14:04]line ИНН: 02508201610067 [16:14:04]line Контрольно-Кассовый Чек [16:14:04]line ПРОДАЖА [16:14:04]line ТРК (МРК, ГНК) : 32 [16:14:04]line Товар: 2710124130 [16:14:04]line Аи-92-К-2 [16:14:04]line 7.790 * 64.20 [16:14:04]line = 500.12 [16:14:04]line НДС 12% НСП 1% [16:14:04]line > о реализуемом товаре [16:14:04]line ИТОГО: 500.12 [16:14:04]line НСП 1% : 4.43 [16:14:04]line НДС 12% : 53.11 [16:14:04]line Наличными: 0.00 [16:14:04]line Безнал.: 500.12 [16:14:04]line Место: АЗС № 92 "Партнер Нефть" [16:14:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:14:04]line СНО: Общий режим [16:14:04]line Чек 177 19.02.2025 16:14 [16:14:04]line Смена: 647 ФФД: 1.0 [16:14:04]line ЗНМ: 0300000118 [16:14:04]line РНМ: 0000000000091857 [16:14:04]line Версия ККМ: 001 [16:14:04]line Платежная система: O! деньги [16:14:04]line ФМ: 0000000000871826 [16:14:04]line ФД: 187111 [16:14:04]line ФПД: 213805295042485 [16:14:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T161406&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187111&fm=213805295042485&tin=02508201610067®Number=0000000000091857&sum=50012 [16:14:04]OFD Sender: Processing packet 187111 [packets to send 49, broken 48] [16:14:04]ProducePacketName [16:14:04]name=ofd_packets/00187111 [16:14:04]OFD Sender: To server: pG, [16:14:04]CommunicateWithHost lk.salyk.kg:30040 [16:14:04]ConnectInit lk.salyk.kg [16:14:04]written 0, free lines is 4095 [16:14:04]Connected sock=10 [16:14:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8A B4 07 01 79 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B1 00 00 00 F4 03 04 00 4E 03 B6 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 E7 DA 02 00 35 04 06 00 C2 74 6C A9 7F B5 E5 1E E8 D0 0D F1 E0 86 [16:14: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 3D 99 47 00 5C 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 E7 DA 02 00 F4 03 04 00 A1 A9 B5 67 B6 04 01 00 00 BE 6F B1 C9 88 16 5E 1C [16:14:04]CommunicateWithHost err = 0 [16:14:04]CheckOFDResponse [16:14:04]1017 (14) - 77093643461234 [16:14:04]1041 (16) - 0000000000871826 [16:14:04]1040 (4) - 187111 [16:14:04]1012 (4) - 19.02.2025 09:51 [16:14:04]1206 (1) - 0 [16:14:04]OFD Sender: Remove packet 187111 [16:14:04]ProducePacketName [16:14:04]name=ofd_packets/00187111 [16:14:04]NVStorageDeleteData [16:14:04]Write to MH i2c: 01 00 00 A7 34 DB [16:14:04]Write i2c OK [16:14:04]MH_I2C_Read... [16:14:04]Read from MH i2c: 01 [16:14:04]MH_I2C_Read... [16:14:04]Read from MH i2c: 01 07 00 [16:14:04]MH_I2C_Read... [16:14:04]Read from MH i2c: 01 07 00 A7 34 00 00 00 00 00 09 0D F8 [16:14:04]RasterBufferAndPrint [16:14:04]line [16:14:04]line [16:14:04]line [16:14:04]line [16:14:04]line [16:14:04]written 0, free lines is 3350 [16:14:04]MH_Cut [16:14:04]Write to MH i2c: D1 01 00 AE 34 01 B4 [16:14:04]Write i2c OK [16:14:04]MH_I2C_Read... [16:14:04]Read from MH i2c: D1 [16:14:04]MH_I2C_Read... [16:14:04]Read from MH i2c: D1 01 00 [16:14:04]MH_I2C_Read... [16:14:04]Read from MH i2c: D1 01 00 AE 34 00 B3 [16:14:04]Write to MH i2c: 01 00 00 AF 34 E3 [16:14:04]Write i2c OK [16:14:04]MH_I2C_Read... [16:14:05]OFD Sender: No OFD packet to send [16:14:05]*** Cut start [16:14:05]*** Partial cut [16:14:05]*** CUTSNS_PIN = 1 [16:14:05]*** CUTSNS_PIN = 0 [16:14:05]*** Brake cut motor [16:14:05]Read from MH i2c: 01 [16:14:05]MH_I2C_Read... [16:14:05]*** Stop cut motor [16:14:05]*** Cut end [16:14:05]Read from MH i2c: 01 07 00 [16:14:05]MH_I2C_Read... [16:14:05]Read from MH i2c: 01 07 00 AF 34 00 00 00 00 00 FF 0F F8 [16:14:05]process_action close_receipt done [16:14:05]requested_data is exist [16:14:05]produce_requested_data [16:14:05]requested_item fm.sn is exist - process it [16:14:05]wFMCommunicate request_size=4 [16:14:05]MH_SAM_APDU [16:14:05]CAPDU: 80 11 00 00 [16:14:05]Write to MH i2c: E2 08 00 B0 34 80 11 00 00 00 00 00 00 5E [16:14:05]Write i2c OK [16:14:05]MH_I2C_Read... [16:14:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:05]Read from MH i2c: E2 [16:14:05]MH_I2C_Read... [16:14:05]Read from MH i2c: E2 17 00 [16:14:05]MH_I2C_Read... [16:14:05]Read from MH i2c: E2 17 00 B0 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B1 [16:14:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:14:06]wFMCommunicate OK [16:14:06]requested_item fd.num is exist - process it [16:14:06]SAM_PROTO_GetFieldsCounters [16:14:06]wFMCommunicate request_size=4 [16:14:06]MH_SAM_APDU [16:14:06]CAPDU: 80 13 00 00 [16:14:06]Write to MH i2c: E2 08 00 B1 34 80 13 00 00 00 00 00 00 61 [16:14:06]Write i2c OK [16:14:06]MH_I2C_Read... [16:14:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:06]Read from MH i2c: E2 [16:14:06]MH_I2C_Read... [16:14:06]Read from MH i2c: E2 62 00 [16:14:06]MH_I2C_Read... [16:14:06]Read from MH i2c: E2 62 00 B1 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 E7 DA 02 00 0E 04 04 00 87 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 E6 [16:14:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [16:14:06]wFMCommunicate OK [16:14:06]SAM_PROTO_GetFieldsCounters done [16:14:06]requested_item shift.num is exist - process it [16:14:06]requested_item shift.opened is exist - process it [16:14:06]req_shift_opened [16:14:06]FM_GetShiftState [16:14:06]SAM_PROTO_GetShiftState [16:14:06]wFMCommunicate request_size=4 [16:14:06]MH_SAM_APDU [16:14:06]CAPDU: 80 13 01 00 [16:14:06]Write to MH i2c: E2 08 00 B2 34 80 13 01 00 00 00 00 00 63 [16:14:06]Write i2c OK [16:14:06]MH_I2C_Read... [16:14:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:06]Read from MH i2c: E2 [16:14:06]MH_I2C_Read... [16:14:06]Read from MH i2c: E2 0E 00 [16:14:06]MH_I2C_Read... [16:14:06]Read from MH i2c: E2 0E 00 B2 34 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E2 [16:14:06]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:14:06]wFMCommunicate OK [16:14:06]SAM_PROTO_GetShiftState done [16:14:06]FM_GetShiftState done [16:14:06]req_shift_opened done [16:14:06]requested_item shift.open_date is exist - process it [16:14:06]req_shift_open_date [16:14:06]req_shift_open_date done [16:14:06]produce_requested_data done [16:14:06]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187111,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [16:14:06]process_action_free close_receipt [16:14:06]json_value_free [16:14:06]json_value_free done [16:14:06]process_json_proto returns [16:14:06]Send response to host [16:14:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187111,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [16:14:06]free response buf [16:14:06]execute_script done [16:14:06]execute_script returns [16:14:06]free content buf [16:14:06]Sock 7.Close socket [16:14:06]Sock 7.Thread stoped [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:45]OFD Sender: No OFD packet to send [16:14:50]OFD Sender: No OFD packet to send [16:14:55]OFD Sender: No OFD packet to send [16:14:55]accept exits with 9 [16:14:55]New connection [16:14:55]New thread 3066879332 created [16:14:55]Thread 3067022692 joined [16:14:55]Waiting for new connection... [16:14:55] Sock 9.Parse request [16:14:55]Sock 9.Check first char [16:14:55]Sock 9.First char is OK [16:14:55]request: POST /json_proto HTTP/1.0 [16:14:55]Method: POST [16:14:55]URL: /json_proto [16:14:55]Method is POST - this is cgi request [16:14:55]url: /json_proto [16:14:55]query_string will be loaded in cgi processing [16:14:55]execute_cgi json_proto POST (null) [16:14:55]execute_cgi path=json_proto method=POST [16:14:55]POST find Content-Length [16:14:55]Host: 172.17.46.131:8080 [16:14:55]Content-Length: 800 [16:14:55]Content-Type: application/json [16:14:55] [16:14:55]POST finish read [16:14:55]Found Content-Length = 800 [16:14:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412265", "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" ] } } [16:14:55]execute_script... [16:14:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412265", "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" ] } } [16:14:55]POST & json_proto [16:14:55]process_json_proto [16:14:55]json parsed OK: [16:14:55]protocol is kg_v1.0 [16:14:55]action value=close_receipt [16:14:55]process_action close_receipt [16:14:55]cmd_close_receipt [16:14:55]MH_GetDate [16:14:55]Write to MH i2c: F0 00 00 B3 34 D6 [16:14:55]Write i2c OK [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: F0 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: F0 09 00 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: F0 09 00 B3 34 00 83 03 B6 67 7E 41 4F 65 F5 [16:14:55]GetLastDocTimeStamp 1739981646 [16:14:55]current date 1739981699 [16:14:55]FM_GetShiftState [16:14:55]SAM_PROTO_GetShiftState [16:14:55]wFMCommunicate request_size=4 [16:14:55]MH_SAM_APDU [16:14:55]CAPDU: 80 13 01 00 [16:14:55]Write to MH i2c: E2 08 00 B4 34 80 13 01 00 00 00 00 00 65 [16:14:55]Write i2c OK [16:14:55]MH_I2C_Read... [16:14:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:55]Read from MH i2c: E2 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 0E 00 [16:14:55]MH_I2C_Read... [16:14:55]Read from MH i2c: E2 0E 00 B4 34 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E4 [16:14:55]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:14:55]wFMCommunicate OK [16:14:55]SAM_PROTO_GetShiftState done [16:14:55]FM_GetShiftState done [16:14:55]opened in 1739929631 [16:14:55]opened+sec_in_day 1740016031 [16:14:55]quantity*price = 50011 [16:14:55]sum+1 = 50013 [16:14:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.12 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.12 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 178 19.02.2025 16:14 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187112 ФПД: 27312278651463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T161459&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187112&fm=27312278651463&tin=02508201610067®Number=0000000000091857&sum=50012 [16:14:56]StoreToDocumentArchive [16:14:56]shift 647 fd 187112 [16:14:56]save to /storage/0647/doc_00187112 [16:14:56]save last doc name /storage/0647/doc_00187112 to /storage/kkm_last_doc_name [16:14:56]save OK [16:14:56]Clear old archive folders... [16:14:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:14:56]tlvbuf is 005C6770 [16:14:56]SAM_PROTO_ClearQueue [16:14:56]wFMCommunicate request_size=4 [16:14:56]MH_SAM_APDU [16:14:56]CAPDU: 80 09 00 00 [16:14:56]Write to MH i2c: E2 08 00 C1 34 80 09 00 00 00 00 00 00 67 [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:56]Read from MH i2c: E2 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 03 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 03 00 C1 34 00 90 00 69 [16:14:56]RAPDU: 90 00 [16:14:56]wFMCommunicate OK [16:14:56]SAM_PROTO_ClearQueue done [16:14:56]KKMCreateOFDPacket [16:14:56]OFDProtocolAddRootSTLVToBuf [16:14:56]FM_MakeSignedData [16:14:56]FM_MakeSignedData [16:14:56]SAM_PROTO_SignData [16:14:56]wFMCommunicate request_size=4 [16:14:56]MH_SAM_APDU [16:14:56]CAPDU: 80 0D 01 02 [16:14:56]Write to MH i2c: E2 08 00 C2 34 80 0D 01 02 00 00 00 00 6F [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:56]Read from MH i2c: E2 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 03 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 03 00 C2 34 00 90 00 6A [16:14:56]RAPDU: 90 00 [16:14:56]wFMCommunicate OK [16:14:56]wFMCommunicate request_size=255 [16:14:56]MH_SAM_APDU [16:14:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B2 00 00 00 F4 03 04 00 83 03 B6 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 E8 DA 02 00 35 04 06 00 18 [16:14:56]Write to MH i2c: E2 02 01 C3 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 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 B2 00 00 00 F4 03 04 00 83 03 B6 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 E8 DA 02 00 35 04 06 00 18 00 00 DA [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:56]Read from MH i2c: E2 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 03 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 03 00 C3 34 00 90 00 6B [16:14:56]RAPDU: 90 00 [16:14:56]wFMCommunicate OK [16:14:56]wFMCommunicate request_size=10 [16:14:56]MH_SAM_APDU [16:14:56]CAPDU: 80 0D 02 02 05 D7 22 AA C2 47 [16:14:56]Write to MH i2c: E2 0D 00 C4 34 80 0D 02 02 05 00 D7 22 AA C2 47 00 00 28 [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:56]Read from MH i2c: E2 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 03 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 03 00 C4 34 00 90 00 6C [16:14:56]RAPDU: 90 00 [16:14:56]wFMCommunicate OK [16:14:56]wFMCommunicate request_size=4 [16:14:56]MH_SAM_APDU [16:14:56]CAPDU: 80 0D 03 02 [16:14:56]Write to MH i2c: E2 08 00 C5 34 80 0D 03 02 00 00 00 00 74 [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:56]Read from MH i2c: E2 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 0B 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 0B 00 C5 34 00 4D 57 6E 8B 0B 9D 24 1D 90 00 FB [16:14:56]RAPDU: 4D 57 6E 8B 0B 9D 24 1D 90 00 [16:14:56]wFMCommunicate OK [16:14:56]SAM_PROTO_SignData done [16:14:56]FM_MakeSignedData done [16:14:56]CreateOFDProtocolMessage [16:14:56]wFMCommunicate request_size=4 [16:14:56]MH_SAM_APDU [16:14:56]CAPDU: 80 11 00 00 [16:14:56]Write to MH i2c: E2 08 00 C6 34 80 11 00 00 00 00 00 00 74 [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:56]Read from MH i2c: E2 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 17 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: E2 17 00 C6 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C7 [16:14:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:14:56]wFMCommunicate OK [16:14:56]CreateOFDProtocolMessage done [16:14:56]OFDSenderStorePacket 187112 [16:14:56]StoreOFDPacket docnum=187112 [16:14: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 68 9F 07 01 5A 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B2 00 00 00 F4 03 04 00 83 03 B6 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 E8 DA 02 00 35 04 06 00 18 D7 22 AA C2 47 4D 57 6E 8B 0B 9D 24 1D [16:14:56]CheckFolder [16:14:56]dirname=/storage/ofd_packets [16:14:56]CheckFolder done [16:14:56]ProducePacketName [16:14:56]name=ofd_packets/00187112 [16:14:56]NVStorageSaveData ofd_packets/00187112 [16:14:56]File name is /storage/ofd_packets/00187112 [16:14:56]Write 301 bytes [16:14:56]NVStorageSaveData done [16:14:56]OFDSenderStorePacket done [16:14:56]KKMCreateOFDPacket done [16:14:56]NVStorageSaveData kkm_last_timestamp [16:14:56]File name is /storage/kkm_last_timestamp [16:14:56]Write 4 bytes [16:14:56]NVStorageSaveData done [16:14:56]ExternCall_PrintAddStr [16:14:56]wPrintStart [16:14:56]Write to MH i2c: 01 00 00 C7 34 FB [16:14:56]Write i2c OK [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: 01 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: 01 07 00 [16:14:56]MH_I2C_Read... [16:14:56]Read from MH i2c: 01 07 00 C7 34 00 00 00 00 00 FF 0F 10 [16:14:56]RasterBufferAndPrint [16:14:56]line Счет N : (1)412265 [16:14:56]line ИНН: 02508201610067 [16:14:56]line Контрольно-Кассовый Чек [16:14:56]line ПРОДАЖА [16:14:56]line ТРК (МРК, ГНК) : 42 [16:14:56]line Товар: 2710124130 [16:14:56]line Аи-92-К-2 [16:14:56]line 7.790 * 64.20 [16:14:56]line = 500.12 [16:14:56]line НДС 12% НСП 1% [16:14:56]line > о реализуемом товаре [16:14:56]line ИТОГО: 500.12 [16:14:56]line НСП 1% : 4.43 [16:14:56]line НДС 12% : 53.11 [16:14:56]line Наличными: 0.00 [16:14:56]line Безнал.: 500.12 [16:14:56]line Место: АЗС № 92 "Партнер Нефть" [16:14:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:14:56]line СНО: Общий режим [16:14:56]line Чек 178 19.02.2025 16:14 [16:14:56]line Смена: 647 ФФД: 1.0 [16:14:56]line ЗНМ: 0300000118 [16:14:56]line РНМ: 0000000000091857 [16:14:56]line Версия ККМ: 001 [16:14:56]line Платежная система: O! деньги [16:14:56]line ФМ: 0000000000871826 [16:14:56]line ФД: 187112 [16:14:56]line ФПД: 27312278651463 [16:14:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T161459&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187112&fm=27312278651463&tin=02508201610067®Number=0000000000091857&sum=50012 [16:14:56]written 0, free lines is 4095 [16:14:57]OFD Sender: Processing packet 187112 [packets to send 49, broken 48] [16:14:57]ProducePacketName [16:14:57]name=ofd_packets/00187112 [16:14:57]OFD Sender: To server: pG, [16:14:57]CommunicateWithHost lk.salyk.kg:30040 [16:14:57]ConnectInit lk.salyk.kg [16:14:57]Connected sock=7 [16:14:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 68 9F 07 01 5A 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B2 00 00 00 F4 03 04 00 83 03 B6 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 E8 DA 02 00 35 04 06 00 18 D7 22 AA C2 47 4D 57 6E 8B 0B 9D 24 1D [16:14:57]Write to MH i2c: 01 00 00 F1 34 25 [16:14:57]Write i2c OK [16:14:57]MH_I2C_Read... [16:14:57]Read from MH i2c: 01 [16:14:57]MH_I2C_Read... [16:14:57]Read from MH i2c: 01 07 00 [16:14:57]MH_I2C_Read... [16:14:57]Read from MH i2c: 01 07 00 F1 34 00 00 00 00 00 F3 0C 2B [16:14:57]RasterBufferAndPrint [16:14:57]line [16:14:57]line [16:14:57]line [16:14:57]line [16:14:57]line [16:14:57]written 0, free lines is 3324 [16:14:57]MH_Cut [16:14:57]Write to MH i2c: D1 01 00 F8 34 01 FE [16:14:57]Write i2c OK [16:14:57]MH_I2C_Read... [16:14:57]Read from MH i2c: D1 [16:14:57]MH_I2C_Read... [16:14:57]Read from MH i2c: D1 01 00 [16:14:57]MH_I2C_Read... [16:14:57]Read from MH i2c: D1 01 00 F8 34 00 FD [16:14:57]Write to MH i2c: 01 00 00 F9 34 2D [16:14:57]Write i2c OK [16:14:57]MH_I2C_Read... [16:14: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 31 05 47 00 94 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 E8 DA 02 00 F4 03 04 00 D6 A9 B5 67 B6 04 01 00 00 C7 19 94 FF AD AD CD 2F [16:14:57]CommunicateWithHost err = 0 [16:14:57]CheckOFDResponse [16:14:57]1017 (14) - 77093643461234 [16:14:57]1041 (16) - 0000000000871826 [16:14:57]1040 (4) - 187112 [16:14:57]1012 (4) - 19.02.2025 09:52 [16:14:57]1206 (1) - 0 [16:14:57]OFD Sender: Remove packet 187112 [16:14:57]ProducePacketName [16:14:57]name=ofd_packets/00187112 [16:14:57]NVStorageDeleteData [16:14:57]OFD Sender: No OFD packet to send [16:14:58]*** Cut start [16:14:58]*** Partial cut [16:14:58]*** CUTSNS_PIN = 1 [16:14:58]*** CUTSNS_PIN = 0 [16:14:58]*** Brake cut motor [16:14:58]Read from MH i2c: 01 [16:14:58]MH_I2C_Read... [16:14:58]*** Stop cut motor [16:14:58]*** Cut end [16:14:58]Read from MH i2c: 01 07 00 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: 01 07 00 F9 34 00 00 00 00 00 FF 0F 42 [16:14:58]process_action close_receipt done [16:14:58]requested_data is exist [16:14:58]produce_requested_data [16:14:58]requested_item fm.sn is exist - process it [16:14:58]wFMCommunicate request_size=4 [16:14:58]MH_SAM_APDU [16:14:58]CAPDU: 80 11 00 00 [16:14:58]Write to MH i2c: E2 08 00 FA 34 80 11 00 00 00 00 00 00 A8 [16:14:58]Write i2c OK [16:14:58]MH_I2C_Read... [16:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:58]Read from MH i2c: E2 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: E2 17 00 [16:14:58]MH_I2C_Read... [16:14:58]Read from MH i2c: E2 17 00 FA 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FB [16:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:14:58]wFMCommunicate OK [16:14:58]requested_item fd.num is exist - process it [16:14:58]SAM_PROTO_GetFieldsCounters [16:14:58]wFMCommunicate request_size=4 [16:14:58]MH_SAM_APDU [16:14:58]CAPDU: 80 13 00 00 [16:14:58]Write to MH i2c: E2 08 00 FB 34 80 13 00 00 00 00 00 00 AB [16:14:58]Write i2c OK [16:14:58]MH_I2C_Read... [16:14:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:59]Read from MH i2c: E2 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 62 00 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 62 00 FB 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 E8 DA 02 00 0E 04 04 00 87 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 34 [16:14:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [16:14:59]wFMCommunicate OK [16:14:59]SAM_PROTO_GetFieldsCounters done [16:14:59]requested_item shift.num is exist - process it [16:14:59]requested_item shift.opened is exist - process it [16:14:59]req_shift_opened [16:14:59]FM_GetShiftState [16:14:59]SAM_PROTO_GetShiftState [16:14:59]wFMCommunicate request_size=4 [16:14:59]MH_SAM_APDU [16:14:59]CAPDU: 80 13 01 00 [16:14:59]Write to MH i2c: E2 08 00 FC 34 80 13 01 00 00 00 00 00 AD [16:14:59]Write i2c OK [16:14:59]MH_I2C_Read... [16:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:59]Read from MH i2c: E2 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 0E 00 [16:14:59]MH_I2C_Read... [16:14:59]Read from MH i2c: E2 0E 00 FC 34 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 2C [16:14:59]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:14:59]wFMCommunicate OK [16:14:59]SAM_PROTO_GetShiftState done [16:14:59]FM_GetShiftState done [16:14:59]req_shift_opened done [16:14:59]requested_item shift.open_date is exist - process it [16:14:59]req_shift_open_date [16:14:59]req_shift_open_date done [16:14:59]produce_requested_data done [16:14:59]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187112,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [16:14:59]process_action_free close_receipt [16:14:59]json_value_free [16:14:59]json_value_free done [16:14:59]process_json_proto returns [16:14:59]Send response to host [16:14:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187112,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [16:14:59]free response buf [16:14:59]execute_script done [16:14:59]execute_script returns [16:14:59]free content buf [16:14:59]Sock 9.Close socket [16:14:59]Sock 9.Thread stoped [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:26]accept exits with 10 [16:19:26]New connection [16:19:26]New thread 3067022692 created [16:19:26]Thread 3066879332 joined [16:19:26]Waiting for new connection... [16:19:26] Sock 10.Parse request [16:19:26]Sock 10.Check first char [16:19:26]Sock 10.First char is OK [16:19:26]request: POST /json_proto HTTP/1.0 [16:19:26]Method: POST [16:19:26]URL: /json_proto [16:19:26]Method is POST - this is cgi request [16:19:26]url: /json_proto [16:19:26]query_string will be loaded in cgi processing [16:19:26]execute_cgi json_proto POST (null) [16:19:26]execute_cgi path=json_proto method=POST [16:19:26]POST find Content-Length [16:19:26]Host: 172.17.46.131:8080 [16:19:26]Content-Length: 800 [16:19:26]Content-Type: application/json [16:19:26] [16:19:26]POST finish read [16:19:26]Found Content-Length = 800 [16:19:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412266", "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" : 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\u000A4997542", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:26]execute_script... [16:19: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)412266", "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" : 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\u000A4997542", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:26]POST & json_proto [16:19:26]process_json_proto [16:19:26]json parsed OK: [16:19:26]protocol is kg_v1.0 [16:19:26]action value=close_receipt [16:19:26]process_action close_receipt [16:19:26]cmd_close_receipt [16:19:26]MH_GetDate [16:19:26]Write to MH i2c: F0 00 00 FD 34 20 [16:19:26]Write i2c OK [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: F0 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: F0 09 00 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: F0 09 00 FD 34 00 92 04 B6 67 7E 41 4F 65 4F [16:19:26]GetLastDocTimeStamp 1739981699 [16:19:26]current date 1739981970 [16:19:26]FM_GetShiftState [16:19:26]SAM_PROTO_GetShiftState [16:19:26]wFMCommunicate request_size=4 [16:19:26]MH_SAM_APDU [16:19:26]CAPDU: 80 13 01 00 [16:19:26]Write to MH i2c: E2 08 00 FE 34 80 13 01 00 00 00 00 00 AF [16:19:26]Write i2c OK [16:19:26]MH_I2C_Read... [16:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:26]Read from MH i2c: E2 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 0E 00 [16:19:26]MH_I2C_Read... [16:19:26]Read from MH i2c: E2 0E 00 FE 34 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 2E [16:19:26]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:19:26]wFMCommunicate OK [16:19:26]SAM_PROTO_GetShiftState done [16:19:26]FM_GetShiftState done [16:19:26]opened in 1739929631 [16:19:26]opened+sec_in_day 1740016031 [16:19:26]quantity*price = 0 [16:19:26]sum+1 = 1 [16:19:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 179 19.02.2025 16:19 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4997542 ФМ: 0000000000871826 ФД: 187113 ФПД: 235458214990349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T161930&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187113&fm=235458214990349&tin=02508201610067®Number=0000000000091857&sum=0 [16:19:27]StoreToDocumentArchive [16:19:27]shift 647 fd 187113 [16:19:27]save to /storage/0647/doc_00187113 [16:19:27]save last doc name /storage/0647/doc_00187113 to /storage/kkm_last_doc_name [16:19:27]save OK [16:19:27]Clear old archive folders... [16:19:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:19:27]tlvbuf is 005C6FC0 [16:19:27]SAM_PROTO_ClearQueue [16:19:27]wFMCommunicate request_size=4 [16:19:27]MH_SAM_APDU [16:19:27]CAPDU: 80 09 00 00 [16:19:27]Write to MH i2c: E2 08 00 0B 35 80 09 00 00 00 00 00 00 B2 [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:27]Read from MH i2c: E2 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 03 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 03 00 0B 35 00 90 00 B4 [16:19:27]RAPDU: 90 00 [16:19:27]wFMCommunicate OK [16:19:27]SAM_PROTO_ClearQueue done [16:19:27]KKMCreateOFDPacket [16:19:27]OFDProtocolAddRootSTLVToBuf [16:19:27]FM_MakeSignedData [16:19:27]FM_MakeSignedData [16:19:27]SAM_PROTO_SignData [16:19:27]wFMCommunicate request_size=4 [16:19:27]MH_SAM_APDU [16:19:27]CAPDU: 80 0D 01 02 [16:19:27]Write to MH i2c: E2 08 00 0C 35 80 0D 01 02 00 00 00 00 BA [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:27]Read from MH i2c: E2 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 03 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 03 00 0C 35 00 90 00 B5 [16:19:27]RAPDU: 90 00 [16:19:27]wFMCommunicate OK [16:19:27]wFMCommunicate request_size=255 [16:19:27]MH_SAM_APDU [16:19: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 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 B3 00 00 00 F4 03 04 00 92 04 B6 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 E9 DA 02 00 35 04 06 00 D6 [16:19:27]Write to MH i2c: E2 02 01 0D 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 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 B3 00 00 00 F4 03 04 00 92 04 B6 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 E9 DA 02 00 35 04 06 00 D6 00 00 87 [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:27]Read from MH i2c: E2 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 03 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 03 00 0D 35 00 90 00 B6 [16:19:27]RAPDU: 90 00 [16:19:27]wFMCommunicate OK [16:19:27]wFMCommunicate request_size=10 [16:19:27]MH_SAM_APDU [16:19:27]CAPDU: 80 0D 02 02 05 25 E3 43 92 0D [16:19:27]Write to MH i2c: E2 0D 00 0E 35 80 0D 02 02 05 00 25 E3 43 92 0D 00 00 B1 [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:27]Read from MH i2c: E2 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 03 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 03 00 0E 35 00 90 00 B7 [16:19:27]RAPDU: 90 00 [16:19:27]wFMCommunicate OK [16:19:27]wFMCommunicate request_size=4 [16:19:27]MH_SAM_APDU [16:19:27]CAPDU: 80 0D 03 02 [16:19:27]Write to MH i2c: E2 08 00 0F 35 80 0D 03 02 00 00 00 00 BF [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:27]Read from MH i2c: E2 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 0B 00 [16:19:27]MH_I2C_Read... [16:19:27]Read from MH i2c: E2 0B 00 0F 35 00 9E 91 7B 51 3D D3 31 E5 90 00 E1 [16:19:27]RAPDU: 9E 91 7B 51 3D D3 31 E5 90 00 [16:19:27]wFMCommunicate OK [16:19:27]SAM_PROTO_SignData done [16:19:27]FM_MakeSignedData done [16:19:27]CreateOFDProtocolMessage [16:19:27]wFMCommunicate request_size=4 [16:19:27]MH_SAM_APDU [16:19:27]CAPDU: 80 11 00 00 [16:19:27]Write to MH i2c: E2 08 00 10 35 80 11 00 00 00 00 00 00 BF [16:19:27]Write i2c OK [16:19:27]MH_I2C_Read... [16:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:28]Read from MH i2c: E2 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 17 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: E2 17 00 10 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 12 [16:19: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:19:28]wFMCommunicate OK [16:19:28]CreateOFDProtocolMessage done [16:19:28]OFDSenderStorePacket 187113 [16:19:28]StoreOFDPacket docnum=187113 [16:19: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 0F 01 00 00 D2 8F 07 01 4B 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B3 00 00 00 F4 03 04 00 92 04 B6 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 E9 DA 02 00 35 04 06 00 D6 25 E3 43 92 0D 9E 91 7B 51 3D D3 31 E5 [16:19:28]CheckFolder [16:19:28]dirname=/storage/ofd_packets [16:19:28]CheckFolder done [16:19:28]ProducePacketName [16:19:28]name=ofd_packets/00187113 [16:19:28]NVStorageSaveData ofd_packets/00187113 [16:19:28]File name is /storage/ofd_packets/00187113 [16:19:28]Write 301 bytes [16:19:28]NVStorageSaveData done [16:19:28]OFDSenderStorePacket done [16:19:28]KKMCreateOFDPacket done [16:19:28]NVStorageSaveData kkm_last_timestamp [16:19:28]File name is /storage/kkm_last_timestamp [16:19:28]OFD Sender: Processing packet 187113 [packets to send 49, broken 48] [16:19:28]ProducePacketName [16:19:28]name=ofd_packets/00187113 [16:19:28]OFD Sender: To server: pG, [16:19:28]CommunicateWithHost lk.salyk.kg:30040 [16:19:28]ConnectInit lk.salyk.kg [16:19:28]Write 4 bytes [16:19:28]NVStorageSaveData done [16:19:28]ExternCall_PrintAddStr [16:19:28]wPrintStart [16:19:28]Write to MH i2c: 01 00 00 11 35 46 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 07 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 07 00 11 35 00 00 00 00 00 FF 0F 5B [16:19:28]RasterBufferAndPrint [16:19:28]line Счет N : (1)412266 [16:19:28]line ИНН: 02508201610067 [16:19:28]line Контрольно-Кассовый Чек [16:19:28]line ПРОДАЖА [16:19:28]line ТРК (МРК, ГНК) : 12 [16:19:28]line Товар: 2710124130 [16:19:28]line Аи-92-К-2 [16:19:28]line 10.000 * 0.00 [16:19:28]line = 0.00 [16:19:28]line НДС 12% НСП 1% [16:19:28]line > о реализуемом товаре [16:19:28]line ИТОГО: 0.00 [16:19:28]line НСП 1% : 0.00 [16:19:28]line НДС 12% : 0.00 [16:19:28]line Наличными: 0.00 [16:19:28]line Безнал.: 0.00 [16:19:28]line Место: АЗС № 92 "Партнер Нефть" [16:19:28]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:19:28]line СНО: Общий режим [16:19:28]line Чек 179 19.02.2025 16:19 [16:19:28]line Смена: 647 ФФД: 1.0 [16:19:28]line ЗНМ: 0300000118 [16:19:28]line РНМ: 0000000000091857 [16:19:28]line Версия ККМ: 001 [16:19:28]line Талоны: Топливные Талоны [16:19:28]line 4997542 [16:19:28]line ФМ: 0000000000871826 [16:19:28]line ФД: 187113 [16:19:28]line ФПД: 235458214990349 [16:19:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T161930&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187113&fm=235458214990349&tin=02508201610067®Number=0000000000091857&sum=0 [16:19:28]Connected sock=11 [16:19: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 D2 8F 07 01 4B 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B3 00 00 00 F4 03 04 00 92 04 B6 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 E9 DA 02 00 35 04 06 00 D6 25 E3 43 92 0D 9E 91 7B 51 3D D3 31 E5 [16:19:28]written 0, free lines is 4095 [16:19: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 A0 FE 47 00 30 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 E9 DA 02 00 F4 03 04 00 E5 AA B5 67 B6 04 01 00 00 D9 0F B0 82 C0 F0 9B A3 [16:19:28]CommunicateWithHost err = 0 [16:19:28]CheckOFDResponse [16:19:28]1017 (14) - 77093643461234 [16:19:28]1041 (16) - 0000000000871826 [16:19:28]1040 (4) - 187113 [16:19:28]1012 (4) - 19.02.2025 09:56 [16:19:28]1206 (1) - 0 [16:19:28]OFD Sender: Remove packet 187113 [16:19:28]ProducePacketName [16:19:28]name=ofd_packets/00187113 [16:19:28]NVStorageDeleteData [16:19:28]Write to MH i2c: 01 00 00 3B 35 70 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 07 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: 01 07 00 3B 35 00 00 00 00 00 F6 0C 79 [16:19:28]RasterBufferAndPrint [16:19:28]line [16:19:28]line [16:19:28]line [16:19:28]line [16:19:28]line [16:19:28]written 0, free lines is 3327 [16:19:28]MH_Cut [16:19:28]Write to MH i2c: D1 01 00 42 35 01 49 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: D1 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: D1 01 00 [16:19:28]MH_I2C_Read... [16:19:28]Read from MH i2c: D1 01 00 42 35 00 48 [16:19:28]Write to MH i2c: 01 00 00 43 35 78 [16:19:28]Write i2c OK [16:19:28]MH_I2C_Read... [16:19:29]OFD Sender: No OFD packet to send [16:19:29]*** Cut start [16:19:29]*** Partial cut [16:19:29]*** CUTSNS_PIN = 1 [16:19:29]*** CUTSNS_PIN = 0 [16:19:29]*** Brake cut motor [16:19:30]Read from MH i2c: 01 [16:19:30]MH_I2C_Read... [16:19:30]*** Stop cut motor [16:19:30]*** Cut end [16:19:30]Read from MH i2c: 01 07 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: 01 07 00 43 35 00 00 00 00 00 FF 0F 8D [16:19:30]process_action close_receipt done [16:19:30]requested_data is exist [16:19:30]produce_requested_data [16:19:30]requested_item fm.sn is exist - process it [16:19:30]wFMCommunicate request_size=4 [16:19:30]MH_SAM_APDU [16:19:30]CAPDU: 80 11 00 00 [16:19:30]Write to MH i2c: E2 08 00 44 35 80 11 00 00 00 00 00 00 F3 [16:19:30]Write i2c OK [16:19:30]MH_I2C_Read... [16:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:30]Read from MH i2c: E2 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 17 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 17 00 44 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 46 [16:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:19:30]wFMCommunicate OK [16:19:30]requested_item fd.num is exist - process it [16:19:30]SAM_PROTO_GetFieldsCounters [16:19:30]wFMCommunicate request_size=4 [16:19:30]MH_SAM_APDU [16:19:30]CAPDU: 80 13 00 00 [16:19:30]Write to MH i2c: E2 08 00 45 35 80 13 00 00 00 00 00 00 F6 [16:19:30]Write i2c OK [16:19:30]MH_I2C_Read... [16:19:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:30]Read from MH i2c: E2 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 62 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 62 00 45 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 E9 DA 02 00 0E 04 04 00 87 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 83 [16:19: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 E9 DA 02 00 0E 04 04 00 87 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 [16:19:30]wFMCommunicate OK [16:19:30]SAM_PROTO_GetFieldsCounters done [16:19:30]requested_item shift.num is exist - process it [16:19:30]requested_item shift.opened is exist - process it [16:19:30]req_shift_opened [16:19:30]FM_GetShiftState [16:19:30]SAM_PROTO_GetShiftState [16:19:30]wFMCommunicate request_size=4 [16:19:30]MH_SAM_APDU [16:19:30]CAPDU: 80 13 01 00 [16:19:30]Write to MH i2c: E2 08 00 46 35 80 13 01 00 00 00 00 00 F8 [16:19:30]Write i2c OK [16:19:30]MH_I2C_Read... [16:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:30]Read from MH i2c: E2 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 0E 00 [16:19:30]MH_I2C_Read... [16:19:30]Read from MH i2c: E2 0E 00 46 35 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 77 [16:19:30]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:19:30]wFMCommunicate OK [16:19:30]SAM_PROTO_GetShiftState done [16:19:30]FM_GetShiftState done [16:19:30]req_shift_opened done [16:19:30]requested_item shift.open_date is exist - process it [16:19:30]req_shift_open_date [16:19:30]req_shift_open_date done [16:19:30]produce_requested_data done [16:19:30]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187113,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [16:19:30]process_action_free close_receipt [16:19:30]json_value_free [16:19:30]json_value_free done [16:19:30]process_json_proto returns [16:19:30]Send response to host [16:19:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187113,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [16:19:30]free response buf [16:19:30]execute_script done [16:19:30]execute_script returns [16:19:30]free content buf [16:19:30]Sock 10.Close socket [16:19:30]Sock 10.Thread stoped [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:10]accept exits with 7 [16:25:10]New connection [16:25:10]New thread 3066879332 created [16:25:10]Thread 3067022692 joined [16:25:10]Waiting for new connection... [16:25:10] Sock 7.Parse request [16:25:10]Sock 7.Check first char [16:25:10]Sock 7.First char is OK [16:25:10]request: POST /json_proto HTTP/1.0 [16:25:10]Method: POST [16:25:10]URL: /json_proto [16:25:10]Method is POST - this is cgi request [16:25:10]url: /json_proto [16:25:10]query_string will be loaded in cgi processing [16:25:10]execute_cgi json_proto POST (null) [16:25:10]execute_cgi path=json_proto method=POST [16:25:10]POST find Content-Length [16:25:10]Host: 172.17.46.131:8080 [16:25:10]Content-Length: 678 [16:25:10]Content-Type: application/json [16:25:10] [16:25:10]POST finish read [16:25:10]Found Content-Length = 678 [16:25:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412268", "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" ] } } [16:25:10]execute_script... [16:25: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)412268", "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" ] } } [16:25:10]POST & json_proto [16:25:10]process_json_proto [16:25:10]json parsed OK: [16:25:10]protocol is kg_v1.0 [16:25:10]action value=close_receipt [16:25:10]process_action close_receipt [16:25:10]cmd_close_receipt [16:25:10]MH_GetDate [16:25:10]Write to MH i2c: F0 00 00 47 35 6B [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: F0 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: F0 09 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: F0 09 00 47 35 00 EA 05 B6 67 7E 41 4F 65 F3 [16:25:10]GetLastDocTimeStamp 1739981970 [16:25:10]current date 1739982314 [16:25:10]FM_GetShiftState [16:25:10]SAM_PROTO_GetShiftState [16:25:10]wFMCommunicate request_size=4 [16:25:10]MH_SAM_APDU [16:25:10]CAPDU: 80 13 01 00 [16:25:10]Write to MH i2c: E2 08 00 48 35 80 13 01 00 00 00 00 00 FA [16:25:10]Write i2c OK [16:25:10]MH_I2C_Read... [16:25:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:10]Read from MH i2c: E2 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 0E 00 [16:25:10]MH_I2C_Read... [16:25:10]Read from MH i2c: E2 0E 00 48 35 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 79 [16:25:10]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:25:10]wFMCommunicate OK [16:25:10]SAM_PROTO_GetShiftState done [16:25:10]FM_GetShiftState done [16:25:10]opened in 1739929631 [16:25:10]opened+sec_in_day 1740016031 [16:25:10]quantity*price = 240015 [16:25:10]sum+1 = 240017 [16:25:10]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 СНО: Общий режим Чек 180 19.02.2025 16:25 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187114 ФПД: 50215972269688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T162514&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187114&fm=50215972269688&tin=02508201610067®Number=0000000000091857&sum=240000 [16:25:11]StoreToDocumentArchive [16:25:11]shift 647 fd 187114 [16:25:11]save to /storage/0647/doc_00187114 [16:25:11]save last doc name /storage/0647/doc_00187114 to /storage/kkm_last_doc_name [16:25:11]save OK [16:25:11]Clear old archive folders... [16:25:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:25:11]tlvbuf is B6F667C0 [16:25:11]SAM_PROTO_ClearQueue [16:25:11]wFMCommunicate request_size=4 [16:25:11]MH_SAM_APDU [16:25:11]CAPDU: 80 09 00 00 [16:25:11]Write to MH i2c: E2 08 00 55 35 80 09 00 00 00 00 00 00 FC [16:25:11]Write i2c OK [16:25:11]MH_I2C_Read... [16:25:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:11]Read from MH i2c: E2 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 03 00 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 03 00 55 35 00 90 00 FE [16:25:11]RAPDU: 90 00 [16:25:11]wFMCommunicate OK [16:25:11]SAM_PROTO_ClearQueue done [16:25:11]KKMCreateOFDPacket [16:25:11]OFDProtocolAddRootSTLVToBuf [16:25:11]FM_MakeSignedData [16:25:11]FM_MakeSignedData [16:25:11]SAM_PROTO_SignData [16:25:11]wFMCommunicate request_size=4 [16:25:11]MH_SAM_APDU [16:25:11]CAPDU: 80 0D 01 02 [16:25:11]Write to MH i2c: E2 08 00 56 35 80 0D 01 02 00 00 00 00 04 [16:25:11]Write i2c OK [16:25:11]MH_I2C_Read... [16:25:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:11]Read from MH i2c: E2 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 03 00 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 03 00 56 35 00 90 00 FF [16:25:11]RAPDU: 90 00 [16:25:11]wFMCommunicate OK [16:25:11]wFMCommunicate request_size=255 [16:25:11]MH_SAM_APDU [16:25:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 B4 00 00 00 F4 03 04 00 EA 05 B6 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 EA DA 02 00 35 04 06 00 2D AB D1 30 [16:25:11]Write to MH i2c: E2 02 01 57 35 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 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 B4 00 00 00 F4 03 04 00 EA 05 B6 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 EA DA 02 00 35 04 06 00 2D AB D1 30 00 00 46 [16:25:11]Write i2c OK [16:25:11]MH_I2C_Read... [16:25:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:11]Read from MH i2c: E2 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 03 00 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 03 00 57 35 00 90 00 00 [16:25:11]RAPDU: 90 00 [16:25:11]wFMCommunicate OK [16:25:11]wFMCommunicate request_size=7 [16:25:11]MH_SAM_APDU [16:25:11]CAPDU: 80 0D 02 02 02 6E 78 [16:25:11]Write to MH i2c: E2 0A 00 58 35 80 0D 02 02 02 00 6E 78 00 00 F1 [16:25:11]Write i2c OK [16:25:11]MH_I2C_Read... [16:25:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:12]Read from MH i2c: E2 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 03 00 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 03 00 58 35 00 90 00 01 [16:25:12]RAPDU: 90 00 [16:25:12]wFMCommunicate OK [16:25:12]wFMCommunicate request_size=4 [16:25:12]MH_SAM_APDU [16:25:12]CAPDU: 80 0D 03 02 [16:25:12]Write to MH i2c: E2 08 00 59 35 80 0D 03 02 00 00 00 00 09 [16:25:12]Write i2c OK [16:25:12]MH_I2C_Read... [16:25:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:12]Read from MH i2c: E2 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 0B 00 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 0B 00 59 35 00 89 61 3B F3 7C 6A 7C 86 90 00 0A [16:25:12]RAPDU: 89 61 3B F3 7C 6A 7C 86 90 00 [16:25:12]wFMCommunicate OK [16:25:12]SAM_PROTO_SignData done [16:25:12]FM_MakeSignedData done [16:25:12]CreateOFDProtocolMessage [16:25:12]wFMCommunicate request_size=4 [16:25:12]MH_SAM_APDU [16:25:12]CAPDU: 80 11 00 00 [16:25:12]Write to MH i2c: E2 08 00 5A 35 80 11 00 00 00 00 00 00 09 [16:25:12]Write i2c OK [16:25:12]MH_I2C_Read... [16:25:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:12]Read from MH i2c: E2 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 17 00 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: E2 17 00 5A 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5C [16:25: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:25:12]wFMCommunicate OK [16:25:12]CreateOFDProtocolMessage done [16:25:12]OFDSenderStorePacket 187114 [16:25:12]StoreOFDPacket docnum=187114 [16:25: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 0C 01 00 00 52 FC 04 01 A8 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 B4 00 00 00 F4 03 04 00 EA 05 B6 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 EA DA 02 00 35 04 06 00 2D AB D1 30 6E 78 89 61 3B F3 7C 6A 7C 86 [16:25:12]CheckFolder [16:25:12]dirname=/storage/ofd_packets [16:25:12]CheckFolder done [16:25:12]ProducePacketName [16:25:12]name=ofd_packets/00187114 [16:25:12]NVStorageSaveData ofd_packets/00187114 [16:25:12]File name is /storage/ofd_packets/00187114 [16:25:12]Write 298 bytes [16:25:12]NVStorageSaveData done [16:25:12]OFDSenderStorePacket done [16:25:12]KKMCreateOFDPacket done [16:25:12]NVStorageSaveData kkm_last_timestamp [16:25:12]File name is /storage/kkm_last_timestamp [16:25:12]Write 4 bytes [16:25:12]NVStorageSaveData done [16:25:12]ExternCall_PrintAddStr [16:25:12]wPrintStart [16:25:12]Write to MH i2c: 01 00 00 5B 35 90 [16:25:12]Write i2c OK [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: 01 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: 01 07 00 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: 01 07 00 5B 35 00 00 00 00 00 FF 0F A5 [16:25:12]RasterBufferAndPrint [16:25:12]line Счет N : (1)412268 [16:25:12]line ИНН: 02508201610067 [16:25:12]line Контрольно-Кассовый Чек [16:25:12]line ПРОДАЖА [16:25:12]line ТРК (МРК, ГНК) : 5 [16:25:12]line Товар: 2710194210 [16:25:12]line ДТ-К-5 [16:25:12]line 33.060 * 72.60 [16:25:12]line = 2400.16 [16:25:12]line НДС 12% НСП 1% [16:25:12]line > о реализуемом товаре [16:25:12]line ОКРУГЛЕНИЕ: -0.16 [16:25:12]line ИТОГО: 2400.00 [16:25:12]line Внесено: 2400.00 [16:25:12]line СДАЧА: 0.00 [16:25:12]line НСП 1% : 21.24 [16:25:12]line НДС 12% : 254.88 [16:25:12]line Наличными: 2400.00 [16:25:12]line Безнал.: 0.00 [16:25:12]line Место: АЗС № 92 "Партнер Нефть" [16:25:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:25:12]line СНО: Общий режим [16:25:12]line Чек 180 19.02.2025 16:25 [16:25:12]line Смена: 647 ФФД: 1.0 [16:25:12]line ЗНМ: 0300000118 [16:25:12]line РНМ: 0000000000091857 [16:25:12]line Версия ККМ: 001 [16:25:12]line ФМ: 0000000000871826 [16:25:12]line ФД: 187114 [16:25:12]line ФПД: 50215972269688 [16:25:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T162514&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187114&fm=50215972269688&tin=02508201610067®Number=0000000000091857&sum=240000 [16:25:12]OFD Sender: Processing packet 187114 [packets to send 49, broken 48] [16:25:12]ProducePacketName [16:25:12]name=ofd_packets/00187114 [16:25:12]OFD Sender: To server: pG, [16:25:12]CommunicateWithHost lk.salyk.kg:30040 [16:25:12]ConnectInit lk.salyk.kg [16:25:12]written 0, free lines is 4095 [16:25:12]Connected sock=10 [16:25: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 0C 01 00 00 52 FC 04 01 A8 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 B4 00 00 00 F4 03 04 00 EA 05 B6 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 EA DA 02 00 35 04 06 00 2D AB D1 30 6E 78 89 61 3B F3 7C 6A 7C 86 [16:25: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 64 B1 47 00 FD 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 EA DA 02 00 F4 03 04 00 3E AC B5 67 B6 04 01 00 00 4A 97 7D F9 A0 EF AE 3E [16:25:12]CommunicateWithHost err = 0 [16:25:12]CheckOFDResponse [16:25:12]1017 (14) - 77093643461234 [16:25:12]1041 (16) - 0000000000871826 [16:25:12]1040 (4) - 187114 [16:25:12]1012 (4) - 19.02.2025 10:02 [16:25:12]1206 (1) - 0 [16:25:12]OFD Sender: Remove packet 187114 [16:25:12]ProducePacketName [16:25:12]name=ofd_packets/00187114 [16:25:12]NVStorageDeleteData [16:25:12]Write to MH i2c: 01 00 00 86 35 BB [16:25:12]Write i2c OK [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: 01 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: 01 07 00 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: 01 07 00 86 35 00 00 00 00 00 F5 0C C3 [16:25:12]RasterBufferAndPrint [16:25:12]line [16:25:12]line [16:25:12]line [16:25:12]line [16:25:12]line [16:25:12]written 0, free lines is 3323 [16:25:12]MH_Cut [16:25:12]Write to MH i2c: D1 01 00 8D 35 01 94 [16:25:12]Write i2c OK [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: D1 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: D1 01 00 [16:25:12]MH_I2C_Read... [16:25:12]Read from MH i2c: D1 01 00 8D 35 00 93 [16:25:12]Write to MH i2c: 01 00 00 8E 35 C3 [16:25:12]Write i2c OK [16:25:12]MH_I2C_Read... [16:25:13]OFD Sender: No OFD packet to send [16:25:13]*** Cut start [16:25:13]*** Partial cut [16:25:13]*** CUTSNS_PIN = 1 [16:25:13]*** CUTSNS_PIN = 0 [16:25:13]*** Brake cut motor [16:25:14]Read from MH i2c: 01 [16:25:14]MH_I2C_Read... [16:25:14]*** Stop cut motor [16:25:14]*** Cut end [16:25:14]Read from MH i2c: 01 07 00 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: 01 07 00 8E 35 00 00 00 00 00 FF 0F D8 [16:25:14]process_action close_receipt done [16:25:14]requested_data is exist [16:25:14]produce_requested_data [16:25:14]requested_item fm.sn is exist - process it [16:25:14]wFMCommunicate request_size=4 [16:25:14]MH_SAM_APDU [16:25:14]CAPDU: 80 11 00 00 [16:25:14]Write to MH i2c: E2 08 00 8F 35 80 11 00 00 00 00 00 00 3E [16:25:14]Write i2c OK [16:25:14]MH_I2C_Read... [16:25:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:14]Read from MH i2c: E2 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: E2 17 00 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: E2 17 00 8F 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 91 [16:25: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:25:14]wFMCommunicate OK [16:25:14]requested_item fd.num is exist - process it [16:25:14]SAM_PROTO_GetFieldsCounters [16:25:14]wFMCommunicate request_size=4 [16:25:14]MH_SAM_APDU [16:25:14]CAPDU: 80 13 00 00 [16:25:14]Write to MH i2c: E2 08 00 90 35 80 13 00 00 00 00 00 00 41 [16:25:14]Write i2c OK [16:25:14]MH_I2C_Read... [16:25:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:14]Read from MH i2c: E2 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: E2 62 00 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: E2 62 00 90 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 EA DA 02 00 0E 04 04 00 87 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 D2 [16:25: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 EA DA 02 00 0E 04 04 00 87 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 [16:25:14]wFMCommunicate OK [16:25:14]SAM_PROTO_GetFieldsCounters done [16:25:14]requested_item shift.num is exist - process it [16:25:14]requested_item shift.opened is exist - process it [16:25:14]req_shift_opened [16:25:14]FM_GetShiftState [16:25:14]SAM_PROTO_GetShiftState [16:25:14]wFMCommunicate request_size=4 [16:25:14]MH_SAM_APDU [16:25:14]CAPDU: 80 13 01 00 [16:25:14]Write to MH i2c: E2 08 00 91 35 80 13 01 00 00 00 00 00 43 [16:25:14]Write i2c OK [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: E2 [16:25:14]MH_I2C_Read... [16:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:14]Read from MH i2c: E2 0E 00 [16:25:14]MH_I2C_Read... [16:25:14]Read from MH i2c: E2 0E 00 91 35 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C2 [16:25:14]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:25:14]wFMCommunicate OK [16:25:14]SAM_PROTO_GetShiftState done [16:25:14]FM_GetShiftState done [16:25:14]req_shift_opened done [16:25:14]requested_item shift.open_date is exist - process it [16:25:14]req_shift_open_date [16:25:14]req_shift_open_date done [16:25:14]produce_requested_data done [16:25:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187114,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [16:25:14]process_action_free close_receipt [16:25:14]json_value_free [16:25:14]json_value_free done [16:25:14]process_json_proto returns [16:25:14]Send response to host [16:25:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187114,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [16:25:14]free response buf [16:25:14]execute_script done [16:25:14]execute_script returns [16:25:14]free content buf [16:25:14]Sock 7.Close socket [16:25:14]Sock 7.Thread stoped [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]OFD Sender: No OFD packet to send [16:27:53]OFD Sender: No OFD packet to send [16:27:58]OFD Sender: No OFD packet to send [16:28:03]OFD Sender: No OFD packet to send [16:28:08]OFD Sender: No OFD packet to send [16:28:13]OFD Sender: No OFD packet to send [16:28:18]OFD Sender: No OFD packet to send [16:28:23]OFD Sender: No OFD packet to send [16:28:28]OFD Sender: No OFD packet to send [16:28:33]OFD Sender: No OFD packet to send [16:28:38]OFD Sender: No OFD packet to send [16:28:43]OFD Sender: No OFD packet to send [16:28:48]OFD Sender: No OFD packet to send [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [16:29:43]OFD Sender: No OFD packet to send [16:29:48]accept exits with 9 [16:29:48]New connection [16:29:48]New thread 3067022692 created [16:29:48]Thread 3066879332 joined [16:29:48]Waiting for new connection... [16:29:48] Sock 9.Parse request [16:29:48]Sock 9.Check first char [16:29:48]Sock 9.First char is OK [16:29:48]request: POST /json_proto HTTP/1.0 [16:29:48]Method: POST [16:29:48]URL: /json_proto [16:29:48]Method is POST - this is cgi request [16:29:48]url: /json_proto [16:29:48]query_string will be loaded in cgi processing [16:29:48]execute_cgi json_proto POST (null) [16:29:48]execute_cgi path=json_proto method=POST [16:29:48]POST find Content-Length [16:29:48]Host: 172.17.46.131:8080 [16:29:48]Content-Length: 678 [16:29:48]Content-Type: application/json [16:29:48] [16:29:48]POST finish read [16:29:48]Found Content-Length = 678 [16:29:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412270", "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" ] } } [16:29:48]execute_script... [16:29:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412270", "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" ] } } [16:29:48]POST & json_proto [16:29:48]process_json_proto [16:29:48]json parsed OK: [16:29:48]protocol is kg_v1.0 [16:29:48]action value=close_receipt [16:29:48]process_action close_receipt [16:29:48]cmd_close_receipt [16:29:48]MH_GetDate [16:29:48]Write to MH i2c: F0 00 00 92 35 B6 [16:29:48]Write i2c OK [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: F0 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: F0 09 00 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: F0 09 00 92 35 00 00 07 B6 67 7E 41 4F 65 56 [16:29:48]GetLastDocTimeStamp 1739982314 [16:29:48]current date 1739982592 [16:29:48]FM_GetShiftState [16:29:48]SAM_PROTO_GetShiftState [16:29:48]wFMCommunicate request_size=4 [16:29:48]MH_SAM_APDU [16:29:48]CAPDU: 80 13 01 00 [16:29:48]Write to MH i2c: E2 08 00 93 35 80 13 01 00 00 00 00 00 45 [16:29:48]Write i2c OK [16:29:48]MH_I2C_Read... [16:29:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:48]Read from MH i2c: E2 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: E2 0E 00 [16:29:48]MH_I2C_Read... [16:29:48]Read from MH i2c: E2 0E 00 93 35 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C4 [16:29:48]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:29:48]wFMCommunicate OK [16:29:48]SAM_PROTO_GetShiftState done [16:29:48]FM_GetShiftState done [16:29:48]opened in 1739929631 [16:29:48]opened+sec_in_day 1740016031 [16:29:48]quantity*price = 150064 [16:29:48]sum+1 = 150065 [16:29:48]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 СНО: Общий режим Чек 181 19.02.2025 16:29 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187115 ФПД: 215012917330219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T162952&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187115&fm=215012917330219&tin=02508201610067®Number=0000000000091857&sum=150000 [16:29:49]StoreToDocumentArchive [16:29:49]shift 647 fd 187115 [16:29:49]save to /storage/0647/doc_00187115 [16:29:49]save last doc name /storage/0647/doc_00187115 to /storage/kkm_last_doc_name [16:29:49]save OK [16:29:49]Clear old archive folders... [16:29:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:29:49]tlvbuf is 0065E3B0 [16:29:49]SAM_PROTO_ClearQueue [16:29:49]wFMCommunicate request_size=4 [16:29:49]MH_SAM_APDU [16:29:49]CAPDU: 80 09 00 00 [16:29:49]Write to MH i2c: E2 08 00 A0 35 80 09 00 00 00 00 00 00 47 [16:29:49]Write i2c OK [16:29:49]MH_I2C_Read... [16:29:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:49]Read from MH i2c: E2 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 03 00 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 03 00 A0 35 00 90 00 49 [16:29:49]RAPDU: 90 00 [16:29:49]wFMCommunicate OK [16:29:49]SAM_PROTO_ClearQueue done [16:29:49]KKMCreateOFDPacket [16:29:49]OFDProtocolAddRootSTLVToBuf [16:29:49]FM_MakeSignedData [16:29:49]FM_MakeSignedData [16:29:49]SAM_PROTO_SignData [16:29:49]wFMCommunicate request_size=4 [16:29:49]MH_SAM_APDU [16:29:49]CAPDU: 80 0D 01 02 [16:29:49]Write to MH i2c: E2 08 00 A1 35 80 0D 01 02 00 00 00 00 4F [16:29:49]Write i2c OK [16:29:49]MH_I2C_Read... [16:29:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:49]Read from MH i2c: E2 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 03 00 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 03 00 A1 35 00 90 00 4A [16:29:49]RAPDU: 90 00 [16:29:49]wFMCommunicate OK [16:29:49]wFMCommunicate request_size=255 [16:29:49]MH_SAM_APDU [16:29: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 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 B5 00 00 00 F4 03 04 00 00 07 B6 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 EB DA 02 00 35 04 06 00 C3 8D 98 8F [16:29:49]Write to MH i2c: E2 02 01 A2 35 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 B5 00 00 00 F4 03 04 00 00 07 B6 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 EB DA 02 00 35 04 06 00 C3 8D 98 8F 00 00 7C [16:29:49]Write i2c OK [16:29:49]MH_I2C_Read... [16:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:49]Read from MH i2c: E2 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 03 00 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 03 00 A2 35 00 90 00 4B [16:29:49]RAPDU: 90 00 [16:29:49]wFMCommunicate OK [16:29:49]wFMCommunicate request_size=7 [16:29:49]MH_SAM_APDU [16:29:49]CAPDU: 80 0D 02 02 02 41 2B [16:29:49]Write to MH i2c: E2 0A 00 A3 35 80 0D 02 02 02 00 41 2B 00 00 C2 [16:29:49]Write i2c OK [16:29:49]MH_I2C_Read... [16:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:49]Read from MH i2c: E2 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 03 00 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 03 00 A3 35 00 90 00 4C [16:29:49]RAPDU: 90 00 [16:29:49]wFMCommunicate OK [16:29:49]wFMCommunicate request_size=4 [16:29:49]MH_SAM_APDU [16:29:49]CAPDU: 80 0D 03 02 [16:29:49]Write to MH i2c: E2 08 00 A4 35 80 0D 03 02 00 00 00 00 54 [16:29:49]Write i2c OK [16:29:49]MH_I2C_Read... [16:29:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:49]Read from MH i2c: E2 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 0B 00 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 0B 00 A4 35 00 40 61 A0 F0 1B F3 A7 E4 90 00 1F [16:29:49]RAPDU: 40 61 A0 F0 1B F3 A7 E4 90 00 [16:29:49]wFMCommunicate OK [16:29:49]SAM_PROTO_SignData done [16:29:49]FM_MakeSignedData done [16:29:49]CreateOFDProtocolMessage [16:29:49]wFMCommunicate request_size=4 [16:29:49]MH_SAM_APDU [16:29:49]CAPDU: 80 11 00 00 [16:29:49]Write to MH i2c: E2 08 00 A5 35 80 11 00 00 00 00 00 00 54 [16:29:49]Write i2c OK [16:29:49]MH_I2C_Read... [16:29:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:49]Read from MH i2c: E2 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 17 00 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: E2 17 00 A5 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A7 [16:29:49]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:49]wFMCommunicate OK [16:29:49]CreateOFDProtocolMessage done [16:29:49]OFDSenderStorePacket 187115 [16:29:49]StoreOFDPacket docnum=187115 [16:29: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 0C 01 00 00 36 2F 04 01 34 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 B5 00 00 00 F4 03 04 00 00 07 B6 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 EB DA 02 00 35 04 06 00 C3 8D 98 8F 41 2B 40 61 A0 F0 1B F3 A7 E4 [16:29:49]CheckFolder [16:29:49]dirname=/storage/ofd_packets [16:29:49]CheckFolder done [16:29:49]ProducePacketName [16:29:49]name=ofd_packets/00187115 [16:29:49]NVStorageSaveData ofd_packets/00187115 [16:29:49]File name is /storage/ofd_packets/00187115 [16:29:49]Write 298 bytes [16:29:49]NVStorageSaveData done [16:29:49]OFDSenderStorePacket done [16:29:49]KKMCreateOFDPacket done [16:29:49]NVStorageSaveData kkm_last_timestamp [16:29:49]File name is /storage/kkm_last_timestamp [16:29:49]Write 4 bytes [16:29:49]NVStorageSaveData done [16:29:49]ExternCall_PrintAddStr [16:29:49]wPrintStart [16:29:49]Write to MH i2c: 01 00 00 A6 35 DB [16:29:49]Write i2c OK [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: 01 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: 01 07 00 [16:29:49]MH_I2C_Read... [16:29:49]Read from MH i2c: 01 07 00 A6 35 00 00 00 00 00 FF 0F F0 [16:29:49]RasterBufferAndPrint [16:29:49]line Счет N : (1)412270 [16:29:49]line ИНН: 02508201610067 [16:29:49]line Контрольно-Кассовый Чек [16:29:49]line ПРОДАЖА [16:29:49]line ТРК (МРК, ГНК) : 5 [16:29:49]line Товар: 2710194210 [16:29:49]line ДТ-К-5 [16:29:49]line 20.670 * 72.60 [16:29:49]line = 1500.64 [16:29:49]line НДС 12% НСП 1% [16:29:49]line > о реализуемом товаре [16:29:49]line ОКРУГЛЕНИЕ: -0.64 [16:29:49]line ИТОГО: 1500.00 [16:29:49]line Внесено: 1500.00 [16:29:49]line СДАЧА: 0.00 [16:29:49]line НСП 1% : 13.28 [16:29:49]line НДС 12% : 159.36 [16:29:49]line Наличными: 1500.00 [16:29:49]line Безнал.: 0.00 [16:29:49]line Место: АЗС № 92 "Партнер Нефть" [16:29:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:29:49]line СНО: Общий режим [16:29:49]line Чек 181 19.02.2025 16:29 [16:29:49]line Смена: 647 ФФД: 1.0 [16:29:49]line ЗНМ: 0300000118 [16:29:49]line РНМ: 0000000000091857 [16:29:49]line Версия ККМ: 001 [16:29:49]line ФМ: 0000000000871826 [16:29:49]line ФД: 187115 [16:29:49]line ФПД: 215012917330219 [16:29:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T162952&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187115&fm=215012917330219&tin=02508201610067®Number=0000000000091857&sum=150000 [16:29:50]OFD Sender: Processing packet 187115 [packets to send 49, broken 48] [16:29:50]ProducePacketName [16:29:50]name=ofd_packets/00187115 [16:29:50]OFD Sender: To server: pG, [16:29:50]CommunicateWithHost lk.salyk.kg:30040 [16:29:50]ConnectInit lk.salyk.kg [16:29:50]written 0, free lines is 4095 [16:29:50]Connected sock=10 [16:29: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 36 2F 04 01 34 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 B5 00 00 00 F4 03 04 00 00 07 B6 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 EB DA 02 00 35 04 06 00 C3 8D 98 8F 41 2B 40 61 A0 F0 1B F3 A7 E4 [16:29: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 5B 78 47 00 67 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 EB DA 02 00 F4 03 04 00 53 AD B5 67 B6 04 01 00 00 9A FC 7C 37 50 0D 2B B1 [16:29:50]CommunicateWithHost err = 0 [16:29:50]CheckOFDResponse [16:29:50]1017 (14) - 77093643461234 [16:29:50]1041 (16) - 0000000000871826 [16:29:50]1040 (4) - 187115 [16:29:50]1012 (4) - 19.02.2025 10:07 [16:29:50]1206 (1) - 0 [16:29:50]OFD Sender: Remove packet 187115 [16:29:50]ProducePacketName [16:29:50]name=ofd_packets/00187115 [16:29:50]NVStorageDeleteData [16:29:50]Write to MH i2c: 01 00 00 D1 35 06 [16:29:50]Write i2c OK [16:29:50]MH_I2C_Read... [16:29:50]Read from MH i2c: 01 [16:29:50]MH_I2C_Read... [16:29:50]Read from MH i2c: 01 07 00 [16:29:50]MH_I2C_Read... [16:29:50]Read from MH i2c: 01 07 00 D1 35 00 00 00 00 00 03 0D 1D [16:29:50]RasterBufferAndPrint [16:29:50]line [16:29:50]line [16:29:50]line [16:29:50]line [16:29:50]line [16:29:50]written 0, free lines is 3340 [16:29:50]MH_Cut [16:29:50]Write to MH i2c: D1 01 00 D8 35 01 DF [16:29:50]Write i2c OK [16:29:50]MH_I2C_Read... [16:29:50]Read from MH i2c: D1 [16:29:50]MH_I2C_Read... [16:29:50]Read from MH i2c: D1 01 00 [16:29:50]MH_I2C_Read... [16:29:50]Read from MH i2c: D1 01 00 D8 35 00 DE [16:29:50]Write to MH i2c: 01 00 00 D9 35 0E [16:29:50]Write i2c OK [16:29:50]MH_I2C_Read... [16:29:50]OFD Sender: No OFD packet to send [16:29:51]*** Cut start [16:29:51]*** Partial cut [16:29:51]*** CUTSNS_PIN = 1 [16:29:51]*** CUTSNS_PIN = 0 [16:29:51]*** Brake cut motor [16:29:51]Read from MH i2c: 01 [16:29:51]MH_I2C_Read... [16:29:51]*** Stop cut motor [16:29:51]*** Cut end [16:29:51]Read from MH i2c: 01 07 00 [16:29:51]MH_I2C_Read... [16:29:51]Read from MH i2c: 01 07 00 D9 35 00 00 00 00 00 FF 0F 23 [16:29:51]process_action close_receipt done [16:29:51]requested_data is exist [16:29:51]produce_requested_data [16:29:51]requested_item fm.sn is exist - process it [16:29:51]wFMCommunicate request_size=4 [16:29:51]MH_SAM_APDU [16:29:51]CAPDU: 80 11 00 00 [16:29:51]Write to MH i2c: E2 08 00 DA 35 80 11 00 00 00 00 00 00 89 [16:29:51]Write i2c OK [16:29:51]MH_I2C_Read... [16:29:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:52]Read from MH i2c: E2 [16:29:52]MH_I2C_Read... [16:29:52]Read from MH i2c: E2 17 00 [16:29:52]MH_I2C_Read... [16:29:52]Read from MH i2c: E2 17 00 DA 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DC [16:29:52]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:52]wFMCommunicate OK [16:29:52]requested_item fd.num is exist - process it [16:29:52]SAM_PROTO_GetFieldsCounters [16:29:52]wFMCommunicate request_size=4 [16:29:52]MH_SAM_APDU [16:29:52]CAPDU: 80 13 00 00 [16:29:52]Write to MH i2c: E2 08 00 DB 35 80 13 00 00 00 00 00 00 8C [16:29:52]Write i2c OK [16:29:52]MH_I2C_Read... [16:29:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:52]Read from MH i2c: E2 [16:29:52]MH_I2C_Read... [16:29:52]Read from MH i2c: E2 62 00 [16:29:52]MH_I2C_Read... [16:29:52]Read from MH i2c: E2 62 00 DB 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 EB DA 02 00 0E 04 04 00 87 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 21 [16:29: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 EB DA 02 00 0E 04 04 00 87 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 [16:29:52]wFMCommunicate OK [16:29:52]SAM_PROTO_GetFieldsCounters done [16:29:52]requested_item shift.num is exist - process it [16:29:52]requested_item shift.opened is exist - process it [16:29:52]req_shift_opened [16:29:52]FM_GetShiftState [16:29:52]SAM_PROTO_GetShiftState [16:29:52]wFMCommunicate request_size=4 [16:29:52]MH_SAM_APDU [16:29:52]CAPDU: 80 13 01 00 [16:29:52]Write to MH i2c: E2 08 00 DC 35 80 13 01 00 00 00 00 00 8E [16:29:52]Write i2c OK [16:29:52]MH_I2C_Read... [16:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:52]Read from MH i2c: E2 [16:29:52]MH_I2C_Read... [16:29:52]Read from MH i2c: E2 0E 00 [16:29:52]MH_I2C_Read... [16:29:52]Read from MH i2c: E2 0E 00 DC 35 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 0D [16:29:52]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:29:52]wFMCommunicate OK [16:29:52]SAM_PROTO_GetShiftState done [16:29:52]FM_GetShiftState done [16:29:52]req_shift_opened done [16:29:52]requested_item shift.open_date is exist - process it [16:29:52]req_shift_open_date [16:29:52]req_shift_open_date done [16:29:52]produce_requested_data done [16:29:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187115,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [16:29:52]process_action_free close_receipt [16:29:52]json_value_free [16:29:52]json_value_free done [16:29:52]process_json_proto returns [16:29:52]Send response to host [16:29:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187115,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [16:29:52]free response buf [16:29:52]execute_script done [16:29:52]execute_script returns [16:29:52]free content buf [16:29:52]Sock 9.Close socket [16:29:52]Sock 9.Thread stoped [16:29:55]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:06]OFD Sender: No OFD packet to send [16:30:11]OFD Sender: No OFD packet to send [16:30:16]OFD Sender: No OFD packet to send [16:30:21]OFD Sender: No OFD packet to send [16:30:26]OFD Sender: No OFD packet to send [16:30:31]OFD Sender: No OFD packet to send [16:30:36]OFD Sender: No OFD packet to send [16:30:41]OFD Sender: No OFD packet to send [16:30:46]OFD Sender: No OFD packet to send [16:30:51]OFD Sender: No OFD packet to send [16:30:56]OFD Sender: No OFD packet to send [16:31:01]OFD Sender: No OFD packet to send [16:31:06]OFD Sender: No OFD packet to send [16:31:11]OFD Sender: No OFD packet to send [16:31:11]accept exits with 7 [16:31:11]New connection [16:31:11]New thread 3066879332 created [16:31:11]Thread 3067022692 joined [16:31:11]Waiting for new connection... [16:31:11] Sock 7.Parse request [16:31:11]Sock 7.Check first char [16:31:11]Sock 7.First char is OK [16:31:11]request: POST /json_proto HTTP/1.0 [16:31:11]Method: POST [16:31:11]URL: /json_proto [16:31:11]Method is POST - this is cgi request [16:31:11]url: /json_proto [16:31:11]query_string will be loaded in cgi processing [16:31:11]execute_cgi json_proto POST (null) [16:31:11]execute_cgi path=json_proto method=POST [16:31:11]POST find Content-Length [16:31:11]Host: 172.17.46.131:8080 [16:31:11]Content-Length: 803 [16:31:11]Content-Type: application/json [16:31:11] [16:31:11]POST finish read [16:31:11]Found Content-Length = 803 [16:31:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412269", "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" : 62.590, "sum" : 4500.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4500.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:11]execute_script... [16:31:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412269", "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" : 62.590, "sum" : 4500.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4500.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:11]POST & json_proto [16:31:11]process_json_proto [16:31:11]json parsed OK: [16:31:11]protocol is kg_v1.0 [16:31:11]action value=close_receipt [16:31:11]process_action close_receipt [16:31:11]cmd_close_receipt [16:31:11]MH_GetDate [16:31:11]Write to MH i2c: F0 00 00 DD 35 01 [16:31:11]Write i2c OK [16:31:11]MH_I2C_Read... [16:31:11]Read from MH i2c: F0 [16:31:11]MH_I2C_Read... [16:31:11]Read from MH i2c: F0 09 00 [16:31:11]MH_I2C_Read... [16:31:11]Read from MH i2c: F0 09 00 DD 35 00 53 07 B6 67 7E 41 4F 65 F4 [16:31:11]GetLastDocTimeStamp 1739982592 [16:31:11]current date 1739982675 [16:31:11]FM_GetShiftState [16:31:11]SAM_PROTO_GetShiftState [16:31:11]wFMCommunicate request_size=4 [16:31:11]MH_SAM_APDU [16:31:11]CAPDU: 80 13 01 00 [16:31:11]Write to MH i2c: E2 08 00 DE 35 80 13 01 00 00 00 00 00 90 [16:31:11]Write i2c OK [16:31:11]MH_I2C_Read... [16:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:11]Read from MH i2c: E2 [16:31:11]MH_I2C_Read... [16:31:11]Read from MH i2c: E2 0E 00 [16:31:11]MH_I2C_Read... [16:31:11]Read from MH i2c: E2 0E 00 DE 35 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 0F [16:31:11]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:31:11]wFMCommunicate OK [16:31:11]SAM_PROTO_GetShiftState done [16:31:11]FM_GetShiftState done [16:31:11]opened in 1739929631 [16:31:11]opened+sec_in_day 1740016031 [16:31:11]quantity*price = 450022 [16:31:11]sum+1 = 450023 [16:31:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4500.22 НСП 1% : 39.82 НДС 12% : 477.90 Наличными: 0.00 Безнал.: 4500.22 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 182 19.02.2025 16:31 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187116 ФПД: 188548042874560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T163115&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187116&fm=188548042874560&tin=02508201610067®Number=0000000000091857&sum=450022 [16:31:12]StoreToDocumentArchive [16:31:12]shift 647 fd 187116 [16:31:12]save to /storage/0647/doc_00187116 [16:31:12]save last doc name /storage/0647/doc_00187116 to /storage/kkm_last_doc_name [16:31:12]save OK [16:31:12]Clear old archive folders... [16:31:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:31:12]tlvbuf is 006DEB50 [16:31:12]SAM_PROTO_ClearQueue [16:31:12]wFMCommunicate request_size=4 [16:31:12]MH_SAM_APDU [16:31:12]CAPDU: 80 09 00 00 [16:31:12]Write to MH i2c: E2 08 00 EB 35 80 09 00 00 00 00 00 00 92 [16:31:12]Write i2c OK [16:31:12]MH_I2C_Read... [16:31:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:12]Read from MH i2c: E2 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 03 00 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 03 00 EB 35 00 90 00 94 [16:31:12]RAPDU: 90 00 [16:31:12]wFMCommunicate OK [16:31:12]SAM_PROTO_ClearQueue done [16:31:12]KKMCreateOFDPacket [16:31:12]OFDProtocolAddRootSTLVToBuf [16:31:12]FM_MakeSignedData [16:31:12]FM_MakeSignedData [16:31:12]SAM_PROTO_SignData [16:31:12]wFMCommunicate request_size=4 [16:31:12]MH_SAM_APDU [16:31:12]CAPDU: 80 0D 01 02 [16:31:12]Write to MH i2c: E2 08 00 EC 35 80 0D 01 02 00 00 00 00 9A [16:31:12]Write i2c OK [16:31:12]MH_I2C_Read... [16:31:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:12]Read from MH i2c: E2 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 03 00 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 03 00 EC 35 00 90 00 95 [16:31:12]RAPDU: 90 00 [16:31:12]wFMCommunicate OK [16:31:12]wFMCommunicate request_size=255 [16:31:12]MH_SAM_APDU [16:31:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E F4 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 E6 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 53 07 B6 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 EC DA 02 00 35 04 06 00 AB [16:31:12]Write to MH i2c: E2 02 01 ED 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 7E F4 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 E6 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 53 07 B6 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 EC DA 02 00 35 04 06 00 AB 00 00 DA [16:31:12]Write i2c OK [16:31:12]MH_I2C_Read... [16:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:12]Read from MH i2c: E2 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 03 00 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 03 00 ED 35 00 90 00 96 [16:31:12]RAPDU: 90 00 [16:31:12]wFMCommunicate OK [16:31:12]wFMCommunicate request_size=10 [16:31:12]MH_SAM_APDU [16:31:12]CAPDU: 80 0D 02 02 05 7B C3 1E 5E C0 [16:31:12]Write to MH i2c: E2 0D 00 EE 35 80 0D 02 02 05 00 7B C3 1E 5E C0 00 00 21 [16:31:12]Write i2c OK [16:31:12]MH_I2C_Read... [16:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:12]Read from MH i2c: E2 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 03 00 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 03 00 EE 35 00 90 00 97 [16:31:12]RAPDU: 90 00 [16:31:12]wFMCommunicate OK [16:31:12]wFMCommunicate request_size=4 [16:31:12]MH_SAM_APDU [16:31:12]CAPDU: 80 0D 03 02 [16:31:12]Write to MH i2c: E2 08 00 EF 35 80 0D 03 02 00 00 00 00 9F [16:31:12]Write i2c OK [16:31:12]MH_I2C_Read... [16:31:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:12]Read from MH i2c: E2 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 0B 00 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 0B 00 EF 35 00 28 CC 34 2D 77 65 28 9E 90 00 97 [16:31:12]RAPDU: 28 CC 34 2D 77 65 28 9E 90 00 [16:31:12]wFMCommunicate OK [16:31:12]SAM_PROTO_SignData done [16:31:12]FM_MakeSignedData done [16:31:12]CreateOFDProtocolMessage [16:31:12]wFMCommunicate request_size=4 [16:31:12]MH_SAM_APDU [16:31:12]CAPDU: 80 11 00 00 [16:31:12]Write to MH i2c: E2 08 00 F0 35 80 11 00 00 00 00 00 00 9F [16:31:12]Write i2c OK [16:31:12]MH_I2C_Read... [16:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:12]Read from MH i2c: E2 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 17 00 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: E2 17 00 F0 35 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:31: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:31:12]wFMCommunicate OK [16:31:12]CreateOFDProtocolMessage done [16:31:12]OFDSenderStorePacket 187116 [16:31:12]StoreOFDPacket docnum=187116 [16:31: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 0F 01 00 00 0A D9 07 01 6D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E F4 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 E6 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 53 07 B6 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 EC DA 02 00 35 04 06 00 AB 7B C3 1E 5E C0 28 CC 34 2D 77 65 28 9E [16:31:12]CheckFolder [16:31:12]dirname=/storage/ofd_packets [16:31:12]CheckFolder done [16:31:12]ProducePacketName [16:31:12]name=ofd_packets/00187116 [16:31:12]NVStorageSaveData ofd_packets/00187116 [16:31:12]File name is /storage/ofd_packets/00187116 [16:31:12]Write 301 bytes [16:31:12]NVStorageSaveData done [16:31:12]OFDSenderStorePacket done [16:31:12]KKMCreateOFDPacket done [16:31:12]NVStorageSaveData kkm_last_timestamp [16:31:12]File name is /storage/kkm_last_timestamp [16:31:12]Write 4 bytes [16:31:12]NVStorageSaveData done [16:31:12]ExternCall_PrintAddStr [16:31:12]wPrintStart [16:31:12]Write to MH i2c: 01 00 00 F1 35 26 [16:31:12]Write i2c OK [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: 01 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: 01 07 00 [16:31:12]MH_I2C_Read... [16:31:12]Read from MH i2c: 01 07 00 F1 35 00 00 00 00 00 FF 0F 3B [16:31:12]RasterBufferAndPrint [16:31:12]line Счет N : (1)412269 [16:31:12]line ИНН: 02508201610067 [16:31:12]line Контрольно-Кассовый Чек [16:31:12]line ПРОДАЖА [16:31:12]line ТРК (МРК, ГНК) : 23 [16:31:12]line Товар: 2710124500 [16:31:12]line Аи-95-К-5 [16:31:12]line 62.590 * 71.90 [16:31:12]line = 4500.22 [16:31:12]line НДС 12% НСП 1% [16:31:12]line > о реализуемом товаре [16:31:12]line ИТОГО: 4500.22 [16:31:12]line НСП 1% : 39.82 [16:31:12]line НДС 12% : 477.90 [16:31:12]line Наличными: 0.00 [16:31:12]line Безнал.: 4500.22 [16:31:12]line Место: АЗС № 92 "Партнер Нефть" [16:31:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:31:12]line СНО: Общий режим [16:31:12]line Чек 182 19.02.2025 16:31 [16:31:12]line Смена: 647 ФФД: 1.0 [16:31:12]line ЗНМ: 0300000118 [16:31:12]line РНМ: 0000000000091857 [16:31:12]line Версия ККМ: 001 [16:31:12]line Платежная система: O! деньги [16:31:12]line ФМ: 0000000000871826 [16:31:12]line ФД: 187116 [16:31:12]line ФПД: 188548042874560 [16:31:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T163115&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187116&fm=188548042874560&tin=02508201610067®Number=0000000000091857&sum=450022 [16:31:13]written 0, free lines is 4095 [16:31:13]OFD Sender: Processing packet 187116 [packets to send 49, broken 48] [16:31:13]ProducePacketName [16:31:13]name=ofd_packets/00187116 [16:31:13]OFD Sender: To server: pG, [16:31:13]CommunicateWithHost lk.salyk.kg:30040 [16:31:13]ConnectInit lk.salyk.kg [16:31:13]Connected sock=10 [16:31: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 0A D9 07 01 6D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7E F4 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 E6 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 53 07 B6 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 EC DA 02 00 35 04 06 00 AB 7B C3 1E 5E C0 28 CC 34 2D 77 65 28 9E [16:31: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 36 25 47 00 B1 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EC DA 02 00 F4 03 04 00 A7 AD B5 67 B6 04 01 00 00 E7 F6 E0 1F 3D D5 0C A4 [16:31:13]CommunicateWithHost err = 0 [16:31:13]CheckOFDResponse [16:31:13]1017 (14) - 77093643461234 [16:31:13]1041 (16) - 0000000000871826 [16:31:13]1040 (4) - 187116 [16:31:13]1012 (4) - 19.02.2025 10:08 [16:31:13]1206 (1) - 0 [16:31:13]OFD Sender: Remove packet 187116 [16:31:13]ProducePacketName [16:31:13]name=ofd_packets/00187116 [16:31:13]NVStorageDeleteData [16:31:13]Write to MH i2c: 01 00 00 1B 36 51 [16:31:13]Write i2c OK [16:31:13]MH_I2C_Read... [16:31:13]Read from MH i2c: 01 [16:31:13]MH_I2C_Read... [16:31:13]Read from MH i2c: 01 07 00 [16:31:13]MH_I2C_Read... [16:31:13]Read from MH i2c: 01 07 00 1B 36 00 00 00 00 00 01 0D 66 [16:31:13]RasterBufferAndPrint [16:31:13]line [16:31:13]line [16:31:13]line [16:31:13]line [16:31:13]line [16:31:13]written 0, free lines is 3338 [16:31:13]MH_Cut [16:31:13]Write to MH i2c: D1 01 00 22 36 01 2A [16:31:13]Write i2c OK [16:31:13]MH_I2C_Read... [16:31:13]Read from MH i2c: D1 [16:31:13]MH_I2C_Read... [16:31:13]Read from MH i2c: D1 01 00 [16:31:13]MH_I2C_Read... [16:31:13]Read from MH i2c: D1 01 00 22 36 00 29 [16:31:13]Write to MH i2c: 01 00 00 23 36 59 [16:31:13]Write i2c OK [16:31:13]MH_I2C_Read... [16:31:14]OFD Sender: No OFD packet to send [16:31:14]*** Cut start [16:31:14]*** Partial cut [16:31:14]*** CUTSNS_PIN = 1 [16:31:14]*** CUTSNS_PIN = 0 [16:31:14]*** Brake cut motor [16:31:15]Read from MH i2c: 01 [16:31:15]MH_I2C_Read... [16:31:15]*** Stop cut motor [16:31:15]*** Cut end [16:31:15]Read from MH i2c: 01 07 00 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: 01 07 00 23 36 00 00 00 00 00 FF 0F 6E [16:31:15]process_action close_receipt done [16:31:15]requested_data is exist [16:31:15]produce_requested_data [16:31:15]requested_item fm.sn is exist - process it [16:31:15]wFMCommunicate request_size=4 [16:31:15]MH_SAM_APDU [16:31:15]CAPDU: 80 11 00 00 [16:31:15]Write to MH i2c: E2 08 00 24 36 80 11 00 00 00 00 00 00 D4 [16:31:15]Write i2c OK [16:31:15]MH_I2C_Read... [16:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:15]Read from MH i2c: E2 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: E2 17 00 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: E2 17 00 24 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 27 [16:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:31:15]wFMCommunicate OK [16:31:15]requested_item fd.num is exist - process it [16:31:15]SAM_PROTO_GetFieldsCounters [16:31:15]wFMCommunicate request_size=4 [16:31:15]MH_SAM_APDU [16:31:15]CAPDU: 80 13 00 00 [16:31:15]Write to MH i2c: E2 08 00 25 36 80 13 00 00 00 00 00 00 D7 [16:31:15]Write i2c OK [16:31:15]MH_I2C_Read... [16:31:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:15]Read from MH i2c: E2 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: E2 62 00 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: E2 62 00 25 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 EC DA 02 00 0E 04 04 00 87 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 70 [16:31:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [16:31:15]wFMCommunicate OK [16:31:15]SAM_PROTO_GetFieldsCounters done [16:31:15]requested_item shift.num is exist - process it [16:31:15]requested_item shift.opened is exist - process it [16:31:15]req_shift_opened [16:31:15]FM_GetShiftState [16:31:15]SAM_PROTO_GetShiftState [16:31:15]wFMCommunicate request_size=4 [16:31:15]MH_SAM_APDU [16:31:15]CAPDU: 80 13 01 00 [16:31:15]Write to MH i2c: E2 08 00 26 36 80 13 01 00 00 00 00 00 D9 [16:31:15]Write i2c OK [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: E2 [16:31:15]MH_I2C_Read... [16:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:15]Read from MH i2c: E2 0E 00 [16:31:15]MH_I2C_Read... [16:31:15]Read from MH i2c: E2 0E 00 26 36 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 58 [16:31:15]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:31:15]wFMCommunicate OK [16:31:15]SAM_PROTO_GetShiftState done [16:31:15]FM_GetShiftState done [16:31:15]req_shift_opened done [16:31:15]requested_item shift.open_date is exist - process it [16:31:15]req_shift_open_date [16:31:15]req_shift_open_date done [16:31:15]produce_requested_data done [16:31:15]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187116,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [16:31:15]process_action_free close_receipt [16:31:15]json_value_free [16:31:15]json_value_free done [16:31:15]process_json_proto returns [16:31:15]Send response to host [16:31:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187116,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [16:31:15]free response buf [16:31:15]execute_script done [16:31:15]execute_script returns [16:31:15]free content buf [16:31:15]Sock 7.Close socket [16:31:15]Sock 7.Thread stoped [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]accept exits with 9 [16:39:44]New connection [16:39:44]New thread 3067022692 created [16:39:44]Thread 3066879332 joined [16:39:44]Waiting for new connection... [16:39:44] Sock 9.Parse request [16:39:44]Sock 9.Check first char [16:39:44]Sock 9.First char is OK [16:39:44]request: POST /json_proto HTTP/1.0 [16:39:44]Method: POST [16:39:44]URL: /json_proto [16:39:44]Method is POST - this is cgi request [16:39:44]url: /json_proto [16:39:44]query_string will be loaded in cgi processing [16:39:44]execute_cgi json_proto POST (null) [16:39:44]execute_cgi path=json_proto method=POST [16:39:44]POST find Content-Length [16:39:44]Host: 172.17.46.131:8080 [16:39:44]Content-Length: 682 [16:39:44]Content-Type: application/json [16:39:44] [16:39:44]POST finish read [16:39:44]Found Content-Length = 682 [16:39:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412271", "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" ] } } [16:39:44]execute_script... [16:39: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)412271", "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" ] } } [16:39:44]POST & json_proto [16:39:44]process_json_proto [16:39:44]json parsed OK: [16:39:44]protocol is kg_v1.0 [16:39:44]action value=close_receipt [16:39:44]process_action close_receipt [16:39:44]cmd_close_receipt [16:39:44]MH_GetDate [16:39:44]Write to MH i2c: F0 00 00 27 36 4C [16:39:44]Write i2c OK [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: F0 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: F0 09 00 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: F0 09 00 27 36 00 54 09 B6 67 7E 41 4F 65 42 [16:39:44]GetLastDocTimeStamp 1739982675 [16:39:44]current date 1739983188 [16:39:44]FM_GetShiftState [16:39:44]SAM_PROTO_GetShiftState [16:39:44]wFMCommunicate request_size=4 [16:39:44]MH_SAM_APDU [16:39:44]CAPDU: 80 13 01 00 [16:39:44]Write to MH i2c: E2 08 00 28 36 80 13 01 00 00 00 00 00 DB [16:39:44]Write i2c OK [16:39:44]MH_I2C_Read... [16:39:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:44]Read from MH i2c: E2 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: E2 0E 00 [16:39:44]MH_I2C_Read... [16:39:44]Read from MH i2c: E2 0E 00 28 36 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 5A [16:39:44]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:39:44]wFMCommunicate OK [16:39:44]SAM_PROTO_GetShiftState done [16:39:44]FM_GetShiftState done [16:39:44]opened in 1739929631 [16:39:44]opened+sec_in_day 1740016031 [16:39:44]quantity*price = 100023 [16:39:44]sum+1 = 100025 [16:39:44]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 СНО: Общий режим Чек 183 19.02.2025 16:39 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187117 ФПД: 38464396015094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T163948&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187117&fm=38464396015094&tin=02508201610067®Number=0000000000091857&sum=100000 [16:39:45]StoreToDocumentArchive [16:39:45]shift 647 fd 187117 [16:39:45]save to /storage/0647/doc_00187117 [16:39:45]save last doc name /storage/0647/doc_00187117 to /storage/kkm_last_doc_name [16:39:45]save OK [16:39:45]Clear old archive folders... [16:39:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:39:45]tlvbuf is B6F69540 [16:39:45]SAM_PROTO_ClearQueue [16:39:45]wFMCommunicate request_size=4 [16:39:45]MH_SAM_APDU [16:39:45]CAPDU: 80 09 00 00 [16:39:45]Write to MH i2c: E2 08 00 35 36 80 09 00 00 00 00 00 00 DD [16:39:45]Write i2c OK [16:39:45]MH_I2C_Read... [16:39:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:45]Read from MH i2c: E2 [16:39:45]MH_I2C_Read... [16:39:45]Read from MH i2c: E2 03 00 [16:39:45]MH_I2C_Read... [16:39:45]Read from MH i2c: E2 03 00 35 36 00 90 00 DF [16:39:45]RAPDU: 90 00 [16:39:45]wFMCommunicate OK [16:39:45]SAM_PROTO_ClearQueue done [16:39:45]KKMCreateOFDPacket [16:39:45]OFDProtocolAddRootSTLVToBuf [16:39:45]FM_MakeSignedData [16:39:45]FM_MakeSignedData [16:39:45]SAM_PROTO_SignData [16:39:45]wFMCommunicate request_size=4 [16:39:45]MH_SAM_APDU [16:39:45]CAPDU: 80 0D 01 02 [16:39:45]Write to MH i2c: E2 08 00 36 36 80 0D 01 02 00 00 00 00 E5 [16:39:45]Write i2c OK [16:39:45]MH_I2C_Read... [16:39:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:45]Read from MH i2c: E2 [16:39:45]MH_I2C_Read... [16:39:45]Read from MH i2c: E2 03 00 [16:39:45]MH_I2C_Read... [16:39:45]Read from MH i2c: E2 03 00 36 36 00 90 00 E0 [16:39:45]RAPDU: 90 00 [16:39:45]wFMCommunicate OK [16:39:45]wFMCommunicate request_size=255 [16:39:45]MH_SAM_APDU [16:39:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 B7 00 00 00 F4 03 04 00 54 09 B6 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 ED DA 02 00 35 04 06 00 22 [16:39:45]Write to MH i2c: E2 02 01 37 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 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 B7 00 00 00 F4 03 04 00 54 09 B6 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 ED DA 02 00 35 04 06 00 22 00 00 87 [16:39:45]Write i2c OK [16:39:45]MH_I2C_Read... [16:39:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:45]Read from MH i2c: E2 [16:39:45]MH_I2C_Read... [16:39:45]Read from MH i2c: E2 03 00 [16:39:45]MH_I2C_Read... [16:39:45]Read from MH i2c: E2 03 00 37 36 00 90 00 E1 [16:39:45]RAPDU: 90 00 [16:39:45]wFMCommunicate OK [16:39:45]wFMCommunicate request_size=10 [16:39:45]MH_SAM_APDU [16:39:45]CAPDU: 80 0D 02 02 05 FB B0 A9 35 F6 [16:39:45]Write to MH i2c: E2 0D 00 38 36 80 0D 02 02 05 00 FB B0 A9 35 F6 00 00 71 [16:39:45]Write i2c OK [16:39:45]MH_I2C_Read... [16:39:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:46]Read from MH i2c: E2 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 03 00 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 03 00 38 36 00 90 00 E2 [16:39:46]RAPDU: 90 00 [16:39:46]wFMCommunicate OK [16:39:46]wFMCommunicate request_size=4 [16:39:46]MH_SAM_APDU [16:39:46]CAPDU: 80 0D 03 02 [16:39:46]Write to MH i2c: E2 08 00 39 36 80 0D 03 02 00 00 00 00 EA [16:39:46]Write i2c OK [16:39:46]MH_I2C_Read... [16:39:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:46]Read from MH i2c: E2 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 0B 00 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 0B 00 39 36 00 05 EB BA D8 FF 00 91 2E 90 00 2B [16:39:46]RAPDU: 05 EB BA D8 FF 00 91 2E 90 00 [16:39:46]wFMCommunicate OK [16:39:46]SAM_PROTO_SignData done [16:39:46]FM_MakeSignedData done [16:39:46]CreateOFDProtocolMessage [16:39:46]wFMCommunicate request_size=4 [16:39:46]MH_SAM_APDU [16:39:46]CAPDU: 80 11 00 00 [16:39:46]Write to MH i2c: E2 08 00 3A 36 80 11 00 00 00 00 00 00 EA [16:39:46]Write i2c OK [16:39:46]MH_I2C_Read... [16:39:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:46]Read from MH i2c: E2 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 17 00 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: E2 17 00 3A 36 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:39: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:39:46]wFMCommunicate OK [16:39:46]CreateOFDProtocolMessage done [16:39:46]OFDSenderStorePacket 187117 [16:39:46]StoreOFDPacket docnum=187117 [16:39: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 1E C8 07 01 BF 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 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 B7 00 00 00 F4 03 04 00 54 09 B6 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 ED DA 02 00 35 04 06 00 22 FB B0 A9 35 F6 05 EB BA D8 FF 00 91 2E [16:39:46]CheckFolder [16:39:46]dirname=/storage/ofd_packets [16:39:46]CheckFolder done [16:39:46]ProducePacketName [16:39:46]name=ofd_packets/00187117 [16:39:46]NVStorageSaveData ofd_packets/00187117 [16:39:46]File name is /storage/ofd_packets/00187117 [16:39:46]Write 301 bytes [16:39:46]NVStorageSaveData done [16:39:46]OFDSenderStorePacket done [16:39:46]KKMCreateOFDPacket done [16:39:46]NVStorageSaveData kkm_last_timestamp [16:39:46]File name is /storage/kkm_last_timestamp [16:39:46]Write 4 bytes [16:39:46]NVStorageSaveData done [16:39:46]ExternCall_PrintAddStr [16:39:46]wPrintStart [16:39:46]Write to MH i2c: 01 00 00 3B 36 71 [16:39:46]Write i2c OK [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: 01 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: 01 07 00 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: 01 07 00 3B 36 00 00 00 00 00 FF 0F 86 [16:39:46]RasterBufferAndPrint [16:39:46]line Счет N : (1)412271 [16:39:46]line ИНН: 02508201610067 [16:39:46]line Контрольно-Кассовый Чек [16:39:46]line ПРОДАЖА [16:39:46]line ТРК (МРК, ГНК) : 22 [16:39:46]line Товар: 2710124130 [16:39:46]line Аи-92-К-2 [16:39:46]line 15.580 * 64.20 [16:39:46]line = 1000.24 [16:39:46]line НДС 12% НСП 1% [16:39:46]line > о реализуемом товаре [16:39:46]line ОКРУГЛЕНИЕ: -0.24 [16:39:46]line ИТОГО: 1000.00 [16:39:46]line Внесено: 1000.00 [16:39:46]line СДАЧА: 0.00 [16:39:46]line НСП 1% : 8.85 [16:39:46]line НДС 12% : 106.22 [16:39:46]line Наличными: 1000.00 [16:39:46]line Безнал.: 0.00 [16:39:46]line Место: АЗС № 92 "Партнер Нефть" [16:39:46]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:39:46]line СНО: Общий режим [16:39:46]line Чек 183 19.02.2025 16:39 [16:39:46]line Смена: 647 ФФД: 1.0 [16:39:46]line ЗНМ: 0300000118 [16:39:46]line РНМ: 0000000000091857 [16:39:46]line Версия ККМ: 001 [16:39:46]line ФМ: 0000000000871826 [16:39:46]line ФД: 187117 [16:39:46]line ФПД: 38464396015094 [16:39:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T163948&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187117&fm=38464396015094&tin=02508201610067®Number=0000000000091857&sum=100000 [16:39:46]written 0, free lines is 4095 [16:39:46]OFD Sender: Processing packet 187117 [packets to send 49, broken 48] [16:39:46]ProducePacketName [16:39:46]name=ofd_packets/00187117 [16:39:46]OFD Sender: To server: pG, [16:39:46]CommunicateWithHost lk.salyk.kg:30040 [16:39:46]ConnectInit lk.salyk.kg [16:39:46]Connected sock=10 [16:39: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 1E C8 07 01 BF 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 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 B7 00 00 00 F4 03 04 00 54 09 B6 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 ED DA 02 00 35 04 06 00 22 FB B0 A9 35 F6 05 EB BA D8 FF 00 91 2E [16:39: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 76 00 47 00 F1 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 ED DA 02 00 F4 03 04 00 A7 AF B5 67 B6 04 01 00 00 43 D1 E6 E7 88 8B 91 DE [16:39:46]CommunicateWithHost err = 0 [16:39:46]CheckOFDResponse [16:39:46]1017 (14) - 77093643461234 [16:39:46]1041 (16) - 0000000000871826 [16:39:46]1040 (4) - 187117 [16:39:46]1012 (4) - 19.02.2025 10:17 [16:39:46]1206 (1) - 0 [16:39:46]OFD Sender: Remove packet 187117 [16:39:46]ProducePacketName [16:39:46]name=ofd_packets/00187117 [16:39:46]NVStorageDeleteData [16:39:46]Write to MH i2c: 01 00 00 66 36 9C [16:39:46]Write i2c OK [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: 01 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: 01 07 00 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: 01 07 00 66 36 00 00 00 00 00 EE 0C 9D [16:39:46]RasterBufferAndPrint [16:39:46]line [16:39:46]line [16:39:46]line [16:39:46]line [16:39:46]line [16:39:46]written 0, free lines is 3319 [16:39:46]MH_Cut [16:39:46]Write to MH i2c: D1 01 00 6D 36 01 75 [16:39:46]Write i2c OK [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: D1 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: D1 01 00 [16:39:46]MH_I2C_Read... [16:39:46]Read from MH i2c: D1 01 00 6D 36 00 74 [16:39:46]Write to MH i2c: 01 00 00 6E 36 A4 [16:39:46]Write i2c OK [16:39:46]MH_I2C_Read... [16:39:47]OFD Sender: No OFD packet to send [16:39:47]*** Cut start [16:39:47]*** Partial cut [16:39:47]*** CUTSNS_PIN = 1 [16:39:47]*** CUTSNS_PIN = 0 [16:39:47]*** Brake cut motor [16:39:47]Read from MH i2c: 01 [16:39:47]MH_I2C_Read... [16:39:47]*** Stop cut motor [16:39:47]*** Cut end [16:39:47]Read from MH i2c: 01 07 00 [16:39:47]MH_I2C_Read... [16:39:47]Read from MH i2c: 01 07 00 6E 36 00 00 00 00 00 FF 0F B9 [16:39:47]process_action close_receipt done [16:39:47]requested_data is exist [16:39:47]produce_requested_data [16:39:47]requested_item fm.sn is exist - process it [16:39:47]wFMCommunicate request_size=4 [16:39:47]MH_SAM_APDU [16:39:47]CAPDU: 80 11 00 00 [16:39:47]Write to MH i2c: E2 08 00 6F 36 80 11 00 00 00 00 00 00 1F [16:39:47]Write i2c OK [16:39:47]MH_I2C_Read... [16:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:48]Read from MH i2c: E2 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 17 00 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 17 00 6F 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 72 [16:39: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:39:48]wFMCommunicate OK [16:39:48]requested_item fd.num is exist - process it [16:39:48]SAM_PROTO_GetFieldsCounters [16:39:48]wFMCommunicate request_size=4 [16:39:48]MH_SAM_APDU [16:39:48]CAPDU: 80 13 00 00 [16:39:48]Write to MH i2c: E2 08 00 70 36 80 13 00 00 00 00 00 00 22 [16:39:48]Write i2c OK [16:39:48]MH_I2C_Read... [16:39:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:48]Read from MH i2c: E2 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 62 00 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 62 00 70 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 ED DA 02 00 0E 04 04 00 87 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 BF [16:39: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 ED DA 02 00 0E 04 04 00 87 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 [16:39:48]wFMCommunicate OK [16:39:48]SAM_PROTO_GetFieldsCounters done [16:39:48]requested_item shift.num is exist - process it [16:39:48]requested_item shift.opened is exist - process it [16:39:48]req_shift_opened [16:39:48]FM_GetShiftState [16:39:48]SAM_PROTO_GetShiftState [16:39:48]wFMCommunicate request_size=4 [16:39:48]MH_SAM_APDU [16:39:48]CAPDU: 80 13 01 00 [16:39:48]Write to MH i2c: E2 08 00 71 36 80 13 01 00 00 00 00 00 24 [16:39:48]Write i2c OK [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 [16:39:48]MH_I2C_Read... [16:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:48]Read from MH i2c: E2 0E 00 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 0E 00 71 36 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A3 [16:39:48]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:39:48]wFMCommunicate OK [16:39:48]SAM_PROTO_GetShiftState done [16:39:48]FM_GetShiftState done [16:39:48]req_shift_opened done [16:39:48]requested_item shift.open_date is exist - process it [16:39:48]req_shift_open_date [16:39:48]req_shift_open_date done [16:39:48]produce_requested_data done [16:39:48]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187117,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [16:39:48]process_action_free close_receipt [16:39:48]json_value_free [16:39:48]json_value_free done [16:39:48]process_json_proto returns [16:39:48]Send response to host [16:39:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187117,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [16:39:48]free response buf [16:39:48]execute_script done [16:39:48]execute_script returns [16:39:48]free content buf [16:39:48]Sock 9.Close socket [16:39:48]Sock 9.Thread stoped [16:39:52]OFD Sender: No OFD packet to send [16:39:57]OFD Sender: No OFD packet to send [16:40:02]OFD Sender: No OFD packet to send [16:40:07]OFD Sender: No OFD packet to send [16:40:12]OFD Sender: No OFD packet to send [16:40:17]OFD Sender: No OFD packet to send [16:40:22]OFD Sender: No OFD packet to send [16:40:27]OFD Sender: No OFD packet to send [16:40:32]OFD Sender: No OFD packet to send [16:40:37]OFD Sender: No OFD packet to send [16:40:42]OFD Sender: No OFD packet to send [16:40:45]accept exits with 7 [16:40:45]New connection [16:40:45]New thread 3066879332 created [16:40:45]Thread 3067022692 joined [16:40:45]Waiting for new connection... [16:40:45] Sock 7.Parse request [16:40:45]Sock 7.Check first char [16:40:45]Sock 7.First char is OK [16:40:45]request: POST /json_proto HTTP/1.0 [16:40:45]Method: POST [16:40:45]URL: /json_proto [16:40:45]Method is POST - this is cgi request [16:40:45]url: /json_proto [16:40:45]query_string will be loaded in cgi processing [16:40:45]execute_cgi json_proto POST (null) [16:40:45]execute_cgi path=json_proto method=POST [16:40:45]POST find Content-Length [16:40:45]Host: 172.17.46.131:8080 [16:40:45]Content-Length: 677 [16:40:45]Content-Type: application/json [16:40:45] [16:40:45]POST finish read [16:40:45]Found Content-Length = 677 [16:40:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412273", "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" ] } } [16:40:45]execute_script... [16:40: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)412273", "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" ] } } [16:40:45]POST & json_proto [16:40:45]process_json_proto [16:40:45]json parsed OK: [16:40:45]protocol is kg_v1.0 [16:40:45]action value=close_receipt [16:40:45]process_action close_receipt [16:40:45]cmd_close_receipt [16:40:45]MH_GetDate [16:40:45]Write to MH i2c: F0 00 00 72 36 97 [16:40:45]Write i2c OK [16:40:45]MH_I2C_Read... [16:40:45]Read from MH i2c: F0 [16:40:45]MH_I2C_Read... [16:40:45]Read from MH i2c: F0 09 00 [16:40:45]MH_I2C_Read... [16:40:45]Read from MH i2c: F0 09 00 72 36 00 91 09 B6 67 7E 41 4F 65 CA [16:40:45]GetLastDocTimeStamp 1739983188 [16:40:45]current date 1739983249 [16:40:45]FM_GetShiftState [16:40:45]SAM_PROTO_GetShiftState [16:40:45]wFMCommunicate request_size=4 [16:40:45]MH_SAM_APDU [16:40:45]CAPDU: 80 13 01 00 [16:40:45]Write to MH i2c: E2 08 00 73 36 80 13 01 00 00 00 00 00 26 [16:40:45]Write i2c OK [16:40:45]MH_I2C_Read... [16:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:45]Read from MH i2c: E2 [16:40:45]MH_I2C_Read... [16:40:45]Read from MH i2c: E2 0E 00 [16:40:45]MH_I2C_Read... [16:40:45]Read from MH i2c: E2 0E 00 73 36 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A5 [16:40:45]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:40:45]wFMCommunicate OK [16:40:45]SAM_PROTO_GetShiftState done [16:40:45]FM_GetShiftState done [16:40:45]opened in 1739929631 [16:40:45]opened+sec_in_day 1740016031 [16:40:45]quantity*price = 30045 [16:40:45]sum+1 = 30047 [16:40:45]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 СНО: Общий режим Чек 184 19.02.2025 16:40 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187118 ФПД: 72997991005496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T164049&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187118&fm=72997991005496&tin=02508201610067®Number=0000000000091857&sum=30000 [16:40:46]StoreToDocumentArchive [16:40:46]shift 647 fd 187118 [16:40:46]save to /storage/0647/doc_00187118 [16:40:46]save last doc name /storage/0647/doc_00187118 to /storage/kkm_last_doc_name [16:40:46]save OK [16:40:46]Clear old archive folders... [16:40:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:46]tlvbuf is B6DB92E0 [16:40:46]SAM_PROTO_ClearQueue [16:40:46]wFMCommunicate request_size=4 [16:40:46]MH_SAM_APDU [16:40:46]CAPDU: 80 09 00 00 [16:40:46]Write to MH i2c: E2 08 00 80 36 80 09 00 00 00 00 00 00 28 [16:40:46]Write i2c OK [16:40:46]MH_I2C_Read... [16:40:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:46]Read from MH i2c: E2 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 03 00 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 03 00 80 36 00 90 00 2A [16:40:46]RAPDU: 90 00 [16:40:46]wFMCommunicate OK [16:40:46]SAM_PROTO_ClearQueue done [16:40:46]KKMCreateOFDPacket [16:40:46]OFDProtocolAddRootSTLVToBuf [16:40:46]FM_MakeSignedData [16:40:46]FM_MakeSignedData [16:40:46]SAM_PROTO_SignData [16:40:46]wFMCommunicate request_size=4 [16:40:46]MH_SAM_APDU [16:40:46]CAPDU: 80 0D 01 02 [16:40:46]Write to MH i2c: E2 08 00 81 36 80 0D 01 02 00 00 00 00 30 [16:40:46]Write i2c OK [16:40:46]MH_I2C_Read... [16:40:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:46]Read from MH i2c: E2 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 03 00 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 03 00 81 36 00 90 00 2B [16:40:46]RAPDU: 90 00 [16:40:46]wFMCommunicate OK [16:40:46]wFMCommunicate request_size=255 [16:40:46]MH_SAM_APDU [16:40: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 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 B8 00 00 00 F4 03 04 00 91 09 B6 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 EE DA 02 00 35 04 06 00 42 [16:40:46]Write to MH i2c: E2 02 01 82 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 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 B8 00 00 00 F4 03 04 00 91 09 B6 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 EE DA 02 00 35 04 06 00 42 00 00 72 [16:40:46]Write i2c OK [16:40:46]MH_I2C_Read... [16:40:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:46]Read from MH i2c: E2 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 03 00 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 03 00 82 36 00 90 00 2C [16:40:46]RAPDU: 90 00 [16:40:46]wFMCommunicate OK [16:40:46]wFMCommunicate request_size=10 [16:40:46]MH_SAM_APDU [16:40:46]CAPDU: 80 0D 02 02 05 64 2B 52 BD 38 [16:40:46]Write to MH i2c: E2 0D 00 83 36 80 0D 02 02 05 00 64 2B 52 BD 38 00 00 13 [16:40:46]Write i2c OK [16:40:46]MH_I2C_Read... [16:40:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:46]Read from MH i2c: E2 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 03 00 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 03 00 83 36 00 90 00 2D [16:40:46]RAPDU: 90 00 [16:40:46]wFMCommunicate OK [16:40:46]wFMCommunicate request_size=4 [16:40:46]MH_SAM_APDU [16:40:46]CAPDU: 80 0D 03 02 [16:40:46]Write to MH i2c: E2 08 00 84 36 80 0D 03 02 00 00 00 00 35 [16:40:46]Write i2c OK [16:40:46]MH_I2C_Read... [16:40:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:46]Read from MH i2c: E2 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 0B 00 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 0B 00 84 36 00 88 0D 69 8A 45 4A 83 18 90 00 E8 [16:40:46]RAPDU: 88 0D 69 8A 45 4A 83 18 90 00 [16:40:46]wFMCommunicate OK [16:40:46]SAM_PROTO_SignData done [16:40:46]FM_MakeSignedData done [16:40:46]CreateOFDProtocolMessage [16:40:46]wFMCommunicate request_size=4 [16:40:46]MH_SAM_APDU [16:40:46]CAPDU: 80 11 00 00 [16:40:46]Write to MH i2c: E2 08 00 85 36 80 11 00 00 00 00 00 00 35 [16:40:46]Write i2c OK [16:40:46]MH_I2C_Read... [16:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:46]Read from MH i2c: E2 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 17 00 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: E2 17 00 85 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 88 [16:40: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:40:46]wFMCommunicate OK [16:40:46]CreateOFDProtocolMessage done [16:40:46]OFDSenderStorePacket 187118 [16:40:46]StoreOFDPacket docnum=187118 [16:40: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 F7 CA 07 01 FD 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 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 B8 00 00 00 F4 03 04 00 91 09 B6 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 EE DA 02 00 35 04 06 00 42 64 2B 52 BD 38 88 0D 69 8A 45 4A 83 18 [16:40:46]CheckFolder [16:40:46]dirname=/storage/ofd_packets [16:40:46]CheckFolder done [16:40:46]ProducePacketName [16:40:46]name=ofd_packets/00187118 [16:40:46]NVStorageSaveData ofd_packets/00187118 [16:40:46]File name is /storage/ofd_packets/00187118 [16:40:46]Write 301 bytes [16:40:46]NVStorageSaveData done [16:40:46]OFDSenderStorePacket done [16:40:46]KKMCreateOFDPacket done [16:40:46]NVStorageSaveData kkm_last_timestamp [16:40:46]File name is /storage/kkm_last_timestamp [16:40:46]Write 4 bytes [16:40:46]NVStorageSaveData done [16:40:46]ExternCall_PrintAddStr [16:40:46]wPrintStart [16:40:46]Write to MH i2c: 01 00 00 86 36 BC [16:40:46]Write i2c OK [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: 01 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: 01 07 00 [16:40:46]MH_I2C_Read... [16:40:46]Read from MH i2c: 01 07 00 86 36 00 00 00 00 00 FF 0F D1 [16:40:46]RasterBufferAndPrint [16:40:46]line Счет N : (1)412273 [16:40:46]line ИНН: 02508201610067 [16:40:46]line Контрольно-Кассовый Чек [16:40:46]line ПРОДАЖА [16:40:46]line ТРК (МРК, ГНК) : 32 [16:40:46]line Товар: 2710124130 [16:40:46]line Аи-92-К-2 [16:40:46]line 4.680 * 64.20 [16:40:46]line = 300.46 [16:40:46]line НДС 12% НСП 1% [16:40:46]line > о реализуемом товаре [16:40:46]line ОКРУГЛЕНИЕ: -0.46 [16:40:46]line ИТОГО: 300.00 [16:40:46]line Внесено: 300.00 [16:40:46]line СДАЧА: 0.00 [16:40:46]line НСП 1% : 2.66 [16:40:46]line НДС 12% : 31.91 [16:40:46]line Наличными: 300.00 [16:40:46]line Безнал.: 0.00 [16:40:46]line Место: АЗС № 92 "Партнер Нефть" [16:40:46]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:40:46]line СНО: Общий режим [16:40:46]line Чек 184 19.02.2025 16:40 [16:40:46]line Смена: 647 ФФД: 1.0 [16:40:46]line ЗНМ: 0300000118 [16:40:46]line РНМ: 0000000000091857 [16:40:46]line Версия ККМ: 001 [16:40:46]line ФМ: 0000000000871826 [16:40:46]line ФД: 187118 [16:40:46]line ФПД: 72997991005496 [16:40:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T164049&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187118&fm=72997991005496&tin=02508201610067®Number=0000000000091857&sum=30000 [16:40:46]written 0, free lines is 4095 [16:40:46]OFD Sender: Processing packet 187118 [packets to send 49, broken 48] [16:40:46]ProducePacketName [16:40:46]name=ofd_packets/00187118 [16:40:46]OFD Sender: To server: pG, [16:40:46]CommunicateWithHost lk.salyk.kg:30040 [16:40:46]ConnectInit lk.salyk.kg [16:40:47]Connected sock=11 [16:40: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 F7 CA 07 01 FD 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 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 B8 00 00 00 F4 03 04 00 91 09 B6 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 EE DA 02 00 35 04 06 00 42 64 2B 52 BD 38 88 0D 69 8A 45 4A 83 18 [16:40:47]Write to MH i2c: 01 00 00 B1 36 E7 [16:40:47]Write i2c OK [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: 01 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: 01 07 00 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: 01 07 00 B1 36 00 00 00 00 00 E4 0C DE [16:40:47]RasterBufferAndPrint [16:40:47]line [16:40:47]line [16:40:47]line [16:40:47]line [16:40:47]line [16:40:47]written 0, free lines is 3306 [16:40:47]MH_Cut [16:40:47]Write to MH i2c: D1 01 00 B8 36 01 C0 [16:40:47]Write i2c OK [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: D1 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: D1 01 00 [16:40:47]MH_I2C_Read... [16:40:47]Read from MH i2c: D1 01 00 B8 36 00 BF [16:40:47]Write to MH i2c: 01 00 00 B9 36 EF [16:40:47]Write i2c OK [16:40:47]MH_I2C_Read... [16:40: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 88 CB 47 00 B1 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 EE DA 02 00 F4 03 04 00 E4 AF B5 67 B6 04 01 00 00 59 FF 2D 83 CB 92 D2 1F [16:40:47]CommunicateWithHost err = 0 [16:40:47]CheckOFDResponse [16:40:47]1017 (14) - 77093643461234 [16:40:47]1041 (16) - 0000000000871826 [16:40:47]1040 (4) - 187118 [16:40:47]1012 (4) - 19.02.2025 10:18 [16:40:47]1206 (1) - 0 [16:40:47]OFD Sender: Remove packet 187118 [16:40:47]ProducePacketName [16:40:47]name=ofd_packets/00187118 [16:40:47]NVStorageDeleteData [16:40:47]OFD Sender: No OFD packet to send [16:40:47]*** Cut start [16:40:47]*** Partial cut [16:40:47]*** CUTSNS_PIN = 1 [16:40:48]*** CUTSNS_PIN = 0 [16:40:48]*** Brake cut motor [16:40:48]Read from MH i2c: 01 [16:40:48]MH_I2C_Read... [16:40:48]*** Stop cut motor [16:40:48]*** Cut end [16:40:48]Read from MH i2c: 01 07 00 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: 01 07 00 B9 36 00 00 00 00 00 FF 0F 04 [16:40:48]process_action close_receipt done [16:40:48]requested_data is exist [16:40:48]produce_requested_data [16:40:48]requested_item fm.sn is exist - process it [16:40:48]wFMCommunicate request_size=4 [16:40:48]MH_SAM_APDU [16:40:48]CAPDU: 80 11 00 00 [16:40:48]Write to MH i2c: E2 08 00 BA 36 80 11 00 00 00 00 00 00 6A [16:40:48]Write i2c OK [16:40:48]MH_I2C_Read... [16:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:48]Read from MH i2c: E2 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: E2 17 00 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: E2 17 00 BA 36 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:40: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:40:48]wFMCommunicate OK [16:40:48]requested_item fd.num is exist - process it [16:40:48]SAM_PROTO_GetFieldsCounters [16:40:48]wFMCommunicate request_size=4 [16:40:48]MH_SAM_APDU [16:40:48]CAPDU: 80 13 00 00 [16:40:48]Write to MH i2c: E2 08 00 BB 36 80 13 00 00 00 00 00 00 6D [16:40:48]Write i2c OK [16:40:48]MH_I2C_Read... [16:40:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:48]Read from MH i2c: E2 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: E2 62 00 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: E2 62 00 BB 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 EE DA 02 00 0E 04 04 00 87 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 0E [16:40: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 EE DA 02 00 0E 04 04 00 87 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 [16:40:48]wFMCommunicate OK [16:40:48]SAM_PROTO_GetFieldsCounters done [16:40:48]requested_item shift.num is exist - process it [16:40:48]requested_item shift.opened is exist - process it [16:40:48]req_shift_opened [16:40:48]FM_GetShiftState [16:40:48]SAM_PROTO_GetShiftState [16:40:48]wFMCommunicate request_size=4 [16:40:48]MH_SAM_APDU [16:40:48]CAPDU: 80 13 01 00 [16:40:48]Write to MH i2c: E2 08 00 BC 36 80 13 01 00 00 00 00 00 6F [16:40:48]Write i2c OK [16:40:48]MH_I2C_Read... [16:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:48]Read from MH i2c: E2 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: E2 0E 00 [16:40:48]MH_I2C_Read... [16:40:48]Read from MH i2c: E2 0E 00 BC 36 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 EE [16:40:48]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:40:48]wFMCommunicate OK [16:40:48]SAM_PROTO_GetShiftState done [16:40:48]FM_GetShiftState done [16:40:48]req_shift_opened done [16:40:48]requested_item shift.open_date is exist - process it [16:40:48]req_shift_open_date [16:40:48]req_shift_open_date done [16:40:48]produce_requested_data done [16:40:48]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187118,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [16:40:48]process_action_free close_receipt [16:40:48]json_value_free [16:40:48]json_value_free done [16:40:48]process_json_proto returns [16:40:48]Send response to host [16:40:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187118,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [16:40:48]free response buf [16:40:48]execute_script done [16:40:48]execute_script returns [16:40:48]free content buf [16:40:48]Sock 7.Close socket [16:40:48]Sock 7.Thread stoped [16:40:49]accept exits with 9 [16:40:49]New connection [16:40:49]New thread 3067022692 created [16:40:49]Thread 3066879332 joined [16:40:49]Waiting for new connection... [16:40:49] Sock 9.Parse request [16:40:49]Sock 9.Check first char [16:40:49]Sock 9.First char is OK [16:40:49]request: POST /json_proto HTTP/1.0 [16:40:49]Method: POST [16:40:49]URL: /json_proto [16:40:49]Method is POST - this is cgi request [16:40:49]url: /json_proto [16:40:49]query_string will be loaded in cgi processing [16:40:49]execute_cgi json_proto POST (null) [16:40:49]execute_cgi path=json_proto method=POST [16:40:49]POST find Content-Length [16:40:49]Host: 172.17.46.131:8080 [16:40:49]Content-Length: 682 [16:40:49]Content-Type: application/json [16:40:49] [16:40:49]POST finish read [16:40:49]Found Content-Length = 682 [16:40:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412272", "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" ] } } [16:40:49]execute_script... [16:40: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)412272", "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" ] } } [16:40:49]POST & json_proto [16:40:49]process_json_proto [16:40:49]json parsed OK: [16:40:49]protocol is kg_v1.0 [16:40:49]action value=close_receipt [16:40:49]process_action close_receipt [16:40:49]cmd_close_receipt [16:40:49]MH_GetDate [16:40:49]Write to MH i2c: F0 00 00 BD 36 E2 [16:40:49]Write i2c OK [16:40:49]MH_I2C_Read... [16:40:49]Read from MH i2c: F0 [16:40:49]MH_I2C_Read... [16:40:49]Read from MH i2c: F0 09 00 [16:40:49]MH_I2C_Read... [16:40:49]Read from MH i2c: F0 09 00 BD 36 00 95 09 B6 67 7E 41 4F 65 19 [16:40:49]GetLastDocTimeStamp 1739983249 [16:40:49]current date 1739983253 [16:40:49]FM_GetShiftState [16:40:49]SAM_PROTO_GetShiftState [16:40:49]wFMCommunicate request_size=4 [16:40:49]MH_SAM_APDU [16:40:49]CAPDU: 80 13 01 00 [16:40:49]Write to MH i2c: E2 08 00 BE 36 80 13 01 00 00 00 00 00 71 [16:40:49]Write i2c OK [16:40:49]MH_I2C_Read... [16:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:49]Read from MH i2c: E2 [16:40:49]MH_I2C_Read... [16:40:49]Read from MH i2c: E2 0E 00 [16:40:49]MH_I2C_Read... [16:40:49]Read from MH i2c: E2 0E 00 BE 36 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F0 [16:40:49]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:40:49]wFMCommunicate OK [16:40:49]SAM_PROTO_GetShiftState done [16:40:49]FM_GetShiftState done [16:40:49]opened in 1739929631 [16:40:49]opened+sec_in_day 1740016031 [16:40:49]quantity*price = 100023 [16:40:49]sum+1 = 100025 [16:40: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 СНО: Общий режим Чек 185 19.02.2025 16:40 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187119 ФПД: 40089515745502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T164053&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187119&fm=40089515745502&tin=02508201610067®Number=0000000000091857&sum=100000 [16:40:50]StoreToDocumentArchive [16:40:50]shift 647 fd 187119 [16:40:50]save to /storage/0647/doc_00187119 [16:40:50]save last doc name /storage/0647/doc_00187119 to /storage/kkm_last_doc_name [16:40:50]save OK [16:40:50]Clear old archive folders... [16:40:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:50]tlvbuf is 006E1B10 [16:40:50]SAM_PROTO_ClearQueue [16:40:50]wFMCommunicate request_size=4 [16:40:50]MH_SAM_APDU [16:40:50]CAPDU: 80 09 00 00 [16:40:50]Write to MH i2c: E2 08 00 CB 36 80 09 00 00 00 00 00 00 73 [16:40:50]Write i2c OK [16:40:50]MH_I2C_Read... [16:40:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:50]Read from MH i2c: E2 [16:40:50]MH_I2C_Read... [16:40:50]Read from MH i2c: E2 03 00 [16:40:50]MH_I2C_Read... [16:40:50]Read from MH i2c: E2 03 00 CB 36 00 90 00 75 [16:40:50]RAPDU: 90 00 [16:40:50]wFMCommunicate OK [16:40:50]SAM_PROTO_ClearQueue done [16:40:50]KKMCreateOFDPacket [16:40:50]OFDProtocolAddRootSTLVToBuf [16:40:50]FM_MakeSignedData [16:40:50]FM_MakeSignedData [16:40:50]SAM_PROTO_SignData [16:40:50]wFMCommunicate request_size=4 [16:40:50]MH_SAM_APDU [16:40:50]CAPDU: 80 0D 01 02 [16:40:50]Write to MH i2c: E2 08 00 CC 36 80 0D 01 02 00 00 00 00 7B [16:40:50]Write i2c OK [16:40:50]MH_I2C_Read... [16:40:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:50]Read from MH i2c: E2 [16:40:50]MH_I2C_Read... [16:40:50]Read from MH i2c: E2 03 00 [16:40:50]MH_I2C_Read... [16:40:50]Read from MH i2c: E2 03 00 CC 36 00 90 00 76 [16:40:50]RAPDU: 90 00 [16:40:50]wFMCommunicate OK [16:40:50]wFMCommunicate request_size=255 [16:40:50]MH_SAM_APDU [16:40: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 B9 00 00 00 F4 03 04 00 95 09 B6 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 EF DA 02 00 35 04 06 00 24 [16:40:50]Write to MH i2c: E2 02 01 CD 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 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 B9 00 00 00 F4 03 04 00 95 09 B6 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 EF DA 02 00 35 04 06 00 24 00 00 64 [16:40:50]Write i2c OK [16:40:50]MH_I2C_Read... [16:40:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:51]Read from MH i2c: E2 [16:40:51]MH_I2C_Read... [16:40:51]Read from MH i2c: E2 03 00 [16:40:51]MH_I2C_Read... [16:40:51]Read from MH i2c: E2 03 00 CD 36 00 90 00 77 [16:40:51]RAPDU: 90 00 [16:40:51]wFMCommunicate OK [16:40:51]wFMCommunicate request_size=10 [16:40:51]MH_SAM_APDU [16:40:51]CAPDU: 80 0D 02 02 05 76 11 58 60 DE [16:40:51]Write to MH i2c: E2 0D 00 CE 36 80 0D 02 02 05 00 76 11 58 60 DE 00 00 A5 [16:40:51]Write i2c OK [16:40:51]MH_I2C_Read... [16:40:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:51]Read from MH i2c: E2 [16:40:51]MH_I2C_Read... [16:40:51]Read from MH i2c: E2 03 00 [16:40:51]MH_I2C_Read... [16:40:51]Read from MH i2c: E2 03 00 CE 36 00 90 00 78 [16:40:51]RAPDU: 90 00 [16:40:51]wFMCommunicate OK [16:40:51]wFMCommunicate request_size=4 [16:40:51]MH_SAM_APDU [16:40:51]CAPDU: 80 0D 03 02 [16:40:51]Write to MH i2c: E2 08 00 CF 36 80 0D 03 02 00 00 00 00 80 [16:40:51]Write i2c OK [16:40:51]MH_I2C_Read... [16:40:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:51]Read from MH i2c: E2 [16:40:51]MH_I2C_Read... [16:40:51]Read from MH i2c: E2 0B 00 [16:40:51]MH_I2C_Read... [16:40:51]Read from MH i2c: E2 0B 00 CF 36 00 18 E5 E1 33 D4 3E 30 5F 90 00 33 [16:40:51]RAPDU: 18 E5 E1 33 D4 3E 30 5F 90 00 [16:40:51]wFMCommunicate OK [16:40:51]SAM_PROTO_SignData done [16:40:51]FM_MakeSignedData done [16:40:51]CreateOFDProtocolMessage [16:40:51]wFMCommunicate request_size=4 [16:40:51]MH_SAM_APDU [16:40:51]CAPDU: 80 11 00 00 [16:40:51]Write to MH i2c: E2 08 00 D0 36 80 11 00 00 00 00 00 00 80 [16:40:51]Write i2c OK [16:40:51]MH_I2C_Read... [16:40:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:51]Read from MH i2c: E2 [16:40:51]MH_I2C_Read... [16:40:51]Read from MH i2c: E2 17 00 [16:40:51]MH_I2C_Read... [16:40:51]Read from MH i2c: E2 17 00 D0 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D3 [16:40: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:40:51]wFMCommunicate OK [16:40:51]CreateOFDProtocolMessage done [16:40:51]OFDSenderStorePacket 187119 [16:40:51]StoreOFDPacket docnum=187119 [16:40: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 4C A0 07 01 2F 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B9 00 00 00 F4 03 04 00 95 09 B6 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 EF DA 02 00 35 04 06 00 24 76 11 58 60 DE 18 E5 E1 33 D4 3E 30 5F [16:40:51]CheckFolder [16:40:51]dirname=/storage/ofd_packets [16:40:51]CheckFolder done [16:40:51]ProducePacketName [16:40:51]name=ofd_packets/00187119 [16:40:51]NVStorageSaveData ofd_packets/00187119 [16:40:51]File name is /storage/ofd_packets/00187119 [16:40:51]Write 301 bytes [16:40:51]NVStorageSaveData done [16:40:51]OFDSenderStorePacket done [16:40:51]KKMCreateOFDPacket done [16:40:51]NVStorageSaveData kkm_last_timestamp [16:40:51]File name is /storage/kkm_last_timestamp [16:40:51]Write 4 bytes [16:40:51]NVStorageSaveData done [16:40:51]ExternCall_PrintAddStr [16:40:51]wPrintStart [16:40:51]Write to MH i2c: 01 00 00 D1 36 07 [16:40:51]Write i2c OK [16:40:51]MH_I2C_Read... [16:40:51]Read from MH i2c: 01 [16:40:51]MH_I2C_Read... [16:40:51]Read from MH i2c: 01 07 00 [16:40:51]MH_I2C_Read... [16:40:51]Read from MH i2c: 01 07 00 D1 36 00 00 00 00 00 FF 0F 1C [16:40:51]RasterBufferAndPrint [16:40:51]line Счет N : (1)412272 [16:40:51]line ИНН: 02508201610067 [16:40:51]line Контрольно-Кассовый Чек [16:40:51]line ПРОДАЖА [16:40:51]line ТРК (МРК, ГНК) : 42 [16:40:51]line Товар: 2710124130 [16:40:51]line Аи-92-К-2 [16:40:51]line 15.580 * 64.20 [16:40:51]line = 1000.24 [16:40:51]line НДС 12% НСП 1% [16:40:51]line > о реализуемом товаре [16:40:51]line ОКРУГЛЕНИЕ: -0.24 [16:40:51]line ИТОГО: 1000.00 [16:40:51]line Внесено: 1000.00 [16:40:51]line СДАЧА: 0.00 [16:40:51]line НСП 1% : 8.85 [16:40:51]line НДС 12% : 106.22 [16:40:51]line Наличными: 1000.00 [16:40:51]line Безнал.: 0.00 [16:40:51]line Место: АЗС № 92 "Партнер Нефть" [16:40:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:40:51]line СНО: Общий режим [16:40:51]line Чек 185 19.02.2025 16:40 [16:40:51]line Смена: 647 ФФД: 1.0 [16:40:51]line ЗНМ: 0300000118 [16:40:51]line РНМ: 0000000000091857 [16:40:51]line Версия ККМ: 001 [16:40:51]line ФМ: 0000000000871826 [16:40:51]line ФД: 187119 [16:40:51]line ФПД: 40089515745502 [16:40:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T164053&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187119&fm=40089515745502&tin=02508201610067®Number=0000000000091857&sum=100000 [16:40:51]OFD Sender: Processing packet 187119 [packets to send 49, broken 48] [16:40:51]ProducePacketName [16:40:51]name=ofd_packets/00187119 [16:40:51]OFD Sender: To server: pG, [16:40:51]CommunicateWithHost lk.salyk.kg:30040 [16:40:51]ConnectInit lk.salyk.kg [16:40:51]written 0, free lines is 4095 [16:40:51]Connected sock=10 [16:40: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 4C A0 07 01 2F 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B9 00 00 00 F4 03 04 00 95 09 B6 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 EF DA 02 00 35 04 06 00 24 76 11 58 60 DE 18 E5 E1 33 D4 3E 30 5F [16:40: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 81 4A 47 00 DA 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 EF DA 02 00 F4 03 04 00 E9 AF B5 67 B6 04 01 00 00 D3 D6 21 D8 C3 40 D7 55 [16:40:52]CommunicateWithHost err = 0 [16:40:52]CheckOFDResponse [16:40:52]1017 (14) - 77093643461234 [16:40:52]1041 (16) - 0000000000871826 [16:40:52]1040 (4) - 187119 [16:40:52]1012 (4) - 19.02.2025 10:18 [16:40:52]1206 (1) - 0 [16:40:52]OFD Sender: Remove packet 187119 [16:40:52]ProducePacketName [16:40:52]name=ofd_packets/00187119 [16:40:52]NVStorageDeleteData [16:40:52]Write to MH i2c: 01 00 00 FC 36 32 [16:40:52]Write i2c OK [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: 01 [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: 01 07 00 [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: 01 07 00 FC 36 00 00 00 00 00 FF 0C 44 [16:40:52]RasterBufferAndPrint [16:40:52]line [16:40:52]line [16:40:52]line [16:40:52]line [16:40:52]line [16:40:52]written 0, free lines is 3339 [16:40:52]MH_Cut [16:40:52]Write to MH i2c: D1 01 00 03 37 01 0C [16:40:52]Write i2c OK [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: D1 [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: D1 01 00 [16:40:52]MH_I2C_Read... [16:40:52]Read from MH i2c: D1 01 00 03 37 00 0B [16:40:52]Write to MH i2c: 01 00 00 04 37 3B [16:40:52]Write i2c OK [16:40:52]MH_I2C_Read... [16:40:52]OFD Sender: No OFD packet to send [16:40:52]*** Cut start [16:40:52]*** Partial cut [16:40:52]*** CUTSNS_PIN = 1 [16:40:52]*** CUTSNS_PIN = 0 [16:40:53]*** Brake cut motor [16:40:53]Read from MH i2c: 01 [16:40:53]MH_I2C_Read... [16:40:53]*** Stop cut motor [16:40:53]*** Cut end [16:40:53]Read from MH i2c: 01 07 00 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: 01 07 00 04 37 00 00 00 00 00 FF 0F 50 [16:40:53]process_action close_receipt done [16:40:53]requested_data is exist [16:40:53]produce_requested_data [16:40:53]requested_item fm.sn is exist - process it [16:40:53]wFMCommunicate request_size=4 [16:40:53]MH_SAM_APDU [16:40:53]CAPDU: 80 11 00 00 [16:40:53]Write to MH i2c: E2 08 00 05 37 80 11 00 00 00 00 00 00 B6 [16:40:53]Write i2c OK [16:40:53]MH_I2C_Read... [16:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:53]Read from MH i2c: E2 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 17 00 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 17 00 05 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 09 [16:40: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:40:53]wFMCommunicate OK [16:40:53]requested_item fd.num is exist - process it [16:40:53]SAM_PROTO_GetFieldsCounters [16:40:53]wFMCommunicate request_size=4 [16:40:53]MH_SAM_APDU [16:40:53]CAPDU: 80 13 00 00 [16:40:53]Write to MH i2c: E2 08 00 06 37 80 13 00 00 00 00 00 00 B9 [16:40:53]Write i2c OK [16:40:53]MH_I2C_Read... [16:40:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:53]Read from MH i2c: E2 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 62 00 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 62 00 06 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 EF DA 02 00 0E 04 04 00 87 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 5E [16:40: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 EF DA 02 00 0E 04 04 00 87 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 [16:40:53]wFMCommunicate OK [16:40:53]SAM_PROTO_GetFieldsCounters done [16:40:53]requested_item shift.num is exist - process it [16:40:53]requested_item shift.opened is exist - process it [16:40:53]req_shift_opened [16:40:53]FM_GetShiftState [16:40:53]SAM_PROTO_GetShiftState [16:40:53]wFMCommunicate request_size=4 [16:40:53]MH_SAM_APDU [16:40:53]CAPDU: 80 13 01 00 [16:40:53]Write to MH i2c: E2 08 00 07 37 80 13 01 00 00 00 00 00 BB [16:40:53]Write i2c OK [16:40:53]MH_I2C_Read... [16:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:53]Read from MH i2c: E2 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 0E 00 [16:40:53]MH_I2C_Read... [16:40:53]Read from MH i2c: E2 0E 00 07 37 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 3A [16:40:53]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:40:53]wFMCommunicate OK [16:40:53]SAM_PROTO_GetShiftState done [16:40:53]FM_GetShiftState done [16:40:53]req_shift_opened done [16:40:53]requested_item shift.open_date is exist - process it [16:40:53]req_shift_open_date [16:40:53]req_shift_open_date done [16:40:53]produce_requested_data done [16:40:53]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187119,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [16:40:53]process_action_free close_receipt [16:40:53]json_value_free [16:40:53]json_value_free done [16:40:53]process_json_proto returns [16:40:53]Send response to host [16:40:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187119,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [16:40:53]free response buf [16:40:53]execute_script done [16:40:53]execute_script returns [16:40:53]free content buf [16:40:53]Sock 9.Close socket [16:40:53]Sock 9.Thread stoped [16:40:57]OFD Sender: No OFD packet to send [16:41:02]OFD Sender: No OFD packet to send [16:41:07]OFD Sender: No OFD packet to send [16:41:12]OFD Sender: No OFD packet to send [16:41:17]OFD Sender: No OFD packet to send [16:41:22]OFD Sender: No OFD packet to send [16:41:27]OFD Sender: No OFD packet to send [16:41:32]OFD Sender: No OFD packet to send [16:41:37]OFD Sender: No OFD packet to send [16:41:42]OFD Sender: No OFD packet to send [16:41:47]OFD Sender: No OFD packet to send [16:41:52]OFD Sender: No OFD packet to send [16:41:57]OFD Sender: No OFD packet to send [16:41:59]accept exits with 7 [16:41:59]New connection [16:41:59]New thread 3066879332 created [16:41:59]Thread 3067022692 joined [16:41:59]Waiting for new connection... [16:41:59] Sock 7.Parse request [16:41:59]Sock 7.Check first char [16:41:59]Sock 7.First char is OK [16:41:59]request: POST /json_proto HTTP/1.0 [16:41:59]Method: POST [16:41:59]URL: /json_proto [16:41:59]Method is POST - this is cgi request [16:41:59]url: /json_proto [16:41:59]query_string will be loaded in cgi processing [16:41:59]execute_cgi json_proto POST (null) [16:41:59]execute_cgi path=json_proto method=POST [16:41:59]POST find Content-Length [16:41:59]Host: 172.17.46.131:8080 [16:41:59]Content-Length: 682 [16:41:59]Content-Type: application/json [16:41:59] [16:41:59]POST finish read [16:41:59]Found Content-Length = 682 [16:41:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412274", "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" ] } } [16:41:59]execute_script... [16:41: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)412274", "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" ] } } [16:41:59]POST & json_proto [16:41:59]process_json_proto [16:41:59]json parsed OK: [16:41:59]protocol is kg_v1.0 [16:41:59]action value=close_receipt [16:41:59]process_action close_receipt [16:41:59]cmd_close_receipt [16:41:59]MH_GetDate [16:41:59]Write to MH i2c: F0 00 00 08 37 2E [16:41:59]Write i2c OK [16:41:59]MH_I2C_Read... [16:41:59]Read from MH i2c: F0 [16:41:59]MH_I2C_Read... [16:41:59]Read from MH i2c: F0 09 00 [16:41:59]MH_I2C_Read... [16:41:59]Read from MH i2c: F0 09 00 08 37 00 DC 09 B6 67 7E 41 4F 65 AC [16:41:59]GetLastDocTimeStamp 1739983253 [16:41:59]current date 1739983324 [16:41:59]FM_GetShiftState [16:41:59]SAM_PROTO_GetShiftState [16:41:59]wFMCommunicate request_size=4 [16:41:59]MH_SAM_APDU [16:41:59]CAPDU: 80 13 01 00 [16:41:59]Write to MH i2c: E2 08 00 09 37 80 13 01 00 00 00 00 00 BD [16:41:59]Write i2c OK [16:41:59]MH_I2C_Read... [16:41:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:59]Read from MH i2c: E2 [16:41:59]MH_I2C_Read... [16:41:59]Read from MH i2c: E2 0E 00 [16:41:59]MH_I2C_Read... [16:41:59]Read from MH i2c: E2 0E 00 09 37 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 3C [16:41:59]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:41:59]wFMCommunicate OK [16:41:59]SAM_PROTO_GetShiftState done [16:41:59]FM_GetShiftState done [16:41:59]opened in 1739929631 [16:41:59]opened+sec_in_day 1740016031 [16:41:59]quantity*price = 100023 [16:41:59]sum+1 = 100025 [16:41: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 СНО: Общий режим Чек 186 19.02.2025 16:42 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187120 ФПД: 208312779523337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T164204&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187120&fm=208312779523337&tin=02508201610067®Number=0000000000091857&sum=100000 [16:42:01]StoreToDocumentArchive [16:42:01]shift 647 fd 187120 [16:42:01]save to /storage/0647/doc_00187120 [16:42:01]save last doc name /storage/0647/doc_00187120 to /storage/kkm_last_doc_name [16:42:01]save OK [16:42:01]Clear old archive folders... [16:42:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:01]tlvbuf is 00679290 [16:42:01]SAM_PROTO_ClearQueue [16:42:01]wFMCommunicate request_size=4 [16:42:01]MH_SAM_APDU [16:42:01]CAPDU: 80 09 00 00 [16:42:01]Write to MH i2c: E2 08 00 16 37 80 09 00 00 00 00 00 00 BF [16:42:01]Write i2c OK [16:42:01]MH_I2C_Read... [16:42:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:01]Read from MH i2c: E2 [16:42:01]MH_I2C_Read... [16:42:01]Read from MH i2c: E2 03 00 [16:42:01]MH_I2C_Read... [16:42:01]Read from MH i2c: E2 03 00 16 37 00 90 00 C1 [16:42:01]RAPDU: 90 00 [16:42:01]wFMCommunicate OK [16:42:01]SAM_PROTO_ClearQueue done [16:42:01]KKMCreateOFDPacket [16:42:01]OFDProtocolAddRootSTLVToBuf [16:42:01]FM_MakeSignedData [16:42:01]FM_MakeSignedData [16:42:01]SAM_PROTO_SignData [16:42:01]wFMCommunicate request_size=4 [16:42:01]MH_SAM_APDU [16:42:01]CAPDU: 80 0D 01 02 [16:42:01]Write to MH i2c: E2 08 00 17 37 80 0D 01 02 00 00 00 00 C7 [16:42:01]Write i2c OK [16:42:01]MH_I2C_Read... [16:42:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:01]Read from MH i2c: E2 [16:42:01]MH_I2C_Read... [16:42:01]Read from MH i2c: E2 03 00 [16:42:01]MH_I2C_Read... [16:42:01]Read from MH i2c: E2 03 00 17 37 00 90 00 C2 [16:42:01]RAPDU: 90 00 [16:42:01]wFMCommunicate OK [16:42:01]wFMCommunicate request_size=255 [16:42:01]MH_SAM_APDU [16: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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BA 00 00 00 F4 03 04 00 DC 09 B6 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 F0 DA 02 00 35 04 06 00 BD [16:42:01]Write to MH i2c: E2 02 01 18 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 BA 00 00 00 F4 03 04 00 DC 09 B6 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 F0 DA 02 00 35 04 06 00 BD 00 00 92 [16:42:01]Write i2c OK [16:42:01]MH_I2C_Read... [16:42:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:01]Read from MH i2c: E2 [16:42:01]MH_I2C_Read... [16:42:01]Read from MH i2c: E2 03 00 [16:42:01]MH_I2C_Read... [16:42:01]Read from MH i2c: E2 03 00 18 37 00 90 00 C3 [16:42:01]RAPDU: 90 00 [16:42:01]wFMCommunicate OK [16:42:01]wFMCommunicate request_size=10 [16:42:01]MH_SAM_APDU [16:42:01]CAPDU: 80 0D 02 02 05 75 99 39 C5 09 [16:42:01]Write to MH i2c: E2 0D 00 19 37 80 0D 02 02 05 00 75 99 39 C5 09 00 00 E9 [16:42:01]Write i2c OK [16:42:01]MH_I2C_Read... [16:42:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:01]Read from MH i2c: E2 [16:42:01]MH_I2C_Read... [16:42:01]Read from MH i2c: E2 03 00 [16:42:01]MH_I2C_Read... [16:42:01]Read from MH i2c: E2 03 00 19 37 00 90 00 C4 [16:42:01]RAPDU: 90 00 [16:42:01]wFMCommunicate OK [16:42:01]wFMCommunicate request_size=4 [16:42:01]MH_SAM_APDU [16:42:01]CAPDU: 80 0D 03 02 [16:42:01]Write to MH i2c: E2 08 00 1A 37 80 0D 03 02 00 00 00 00 CC [16:42:01]Write i2c OK [16:42:01]MH_I2C_Read... [16:42:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:01]Read from MH i2c: E2 [16:42:01]MH_I2C_Read... [16:42:01]Read from MH i2c: E2 0B 00 [16:42:01]MH_I2C_Read... [16:42:01]Read from MH i2c: E2 0B 00 1A 37 00 42 59 10 1D A5 96 0C E5 90 00 C1 [16:42:01]RAPDU: 42 59 10 1D A5 96 0C E5 90 00 [16:42:01]wFMCommunicate OK [16:42:01]SAM_PROTO_SignData done [16:42:01]FM_MakeSignedData done [16:42:01]CreateOFDProtocolMessage [16:42:01]wFMCommunicate request_size=4 [16:42:01]MH_SAM_APDU [16:42:01]CAPDU: 80 11 00 00 [16:42:01]Write to MH i2c: E2 08 00 1B 37 80 11 00 00 00 00 00 00 CC [16:42:01]Write i2c OK [16:42:01]MH_I2C_Read... [16:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:01]Read from MH i2c: E2 [16:42:01]MH_I2C_Read... [16:42:01]Read from MH i2c: E2 17 00 [16:42:01]MH_I2C_Read... [16:42:01]Read from MH i2c: E2 17 00 1B 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1F [16:42: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:42:01]wFMCommunicate OK [16:42:01]CreateOFDProtocolMessage done [16:42:01]OFDSenderStorePacket 187120 [16:42:01]StoreOFDPacket docnum=187120 [16:42: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 9B 14 07 01 8B B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 BA 00 00 00 F4 03 04 00 DC 09 B6 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 F0 DA 02 00 35 04 06 00 BD 75 99 39 C5 09 42 59 10 1D A5 96 0C E5 [16:42:01]CheckFolder [16:42:01]dirname=/storage/ofd_packets [16:42:01]CheckFolder done [16:42:01]ProducePacketName [16:42:01]name=ofd_packets/00187120 [16:42:01]NVStorageSaveData ofd_packets/00187120 [16:42:01]File name is /storage/ofd_packets/00187120 [16:42:01]Write 301 bytes [16:42:01]NVStorageSaveData done [16:42:01]OFDSenderStorePacket done [16:42:01]KKMCreateOFDPacket done [16:42:01]NVStorageSaveData kkm_last_timestamp [16:42:01]File name is /storage/kkm_last_timestamp [16:42:01]Write 4 bytes [16:42:01]NVStorageSaveData done [16:42:01]ExternCall_PrintAddStr [16:42:01]wPrintStart [16:42:01]Write to MH i2c: 01 00 00 1C 37 53 [16:42:01]Write i2c OK [16:42:01]MH_I2C_Read... [16:42:01]Read from MH i2c: 01 [16:42:01]MH_I2C_Read... [16:42:01]Read from MH i2c: 01 07 00 [16:42:01]MH_I2C_Read... [16:42:01]Read from MH i2c: 01 07 00 1C 37 00 00 00 00 00 FF 0F 68 [16:42:01]RasterBufferAndPrint [16:42:01]line Счет N : (1)412274 [16:42:01]line ИНН: 02508201610067 [16:42:01]line Контрольно-Кассовый Чек [16:42:01]line ПРОДАЖА [16:42:01]line ТРК (МРК, ГНК) : 12 [16:42:01]line Товар: 2710124130 [16:42:01]line Аи-92-К-2 [16:42:01]line 15.580 * 64.20 [16:42:01]line = 1000.24 [16:42:01]line НДС 12% НСП 1% [16:42:01]line > о реализуемом товаре [16:42:01]line ОКРУГЛЕНИЕ: -0.24 [16:42:01]line ИТОГО: 1000.00 [16:42:01]line Внесено: 1000.00 [16:42:01]line СДАЧА: 0.00 [16:42:01]line НСП 1% : 8.85 [16:42:01]line НДС 12% : 106.22 [16:42:01]line Наличными: 1000.00 [16:42:01]line Безнал.: 0.00 [16:42:01]line Место: АЗС № 92 "Партнер Нефть" [16:42:01]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:42:01]line СНО: Общий режим [16:42:01]line Чек 186 19.02.2025 16:42 [16:42:01]line Смена: 647 ФФД: 1.0 [16:42:01]line ЗНМ: 0300000118 [16:42:01]line РНМ: 0000000000091857 [16:42:01]line Версия ККМ: 001 [16:42:01]line ФМ: 0000000000871826 [16:42:01]line ФД: 187120 [16:42:01]line ФПД: 208312779523337 [16:42:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T164204&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187120&fm=208312779523337&tin=02508201610067®Number=0000000000091857&sum=100000 [16:42:01]written 0, free lines is 4095 [16:42:01]OFD Sender: Processing packet 187120 [packets to send 49, broken 48] [16:42:01]ProducePacketName [16:42:01]name=ofd_packets/00187120 [16:42:01]OFD Sender: To server: pG, [16:42:01]CommunicateWithHost lk.salyk.kg:30040 [16:42:01]ConnectInit lk.salyk.kg [16:42:01]Connected sock=10 [16:42: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 9B 14 07 01 8B B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 BA 00 00 00 F4 03 04 00 DC 09 B6 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 F0 DA 02 00 35 04 06 00 BD 75 99 39 C5 09 42 59 10 1D A5 96 0C E5 [16:42:02]Write to MH i2c: 01 00 00 47 37 7E [16:42:02]Write i2c OK [16:42:02]MH_I2C_Read... [16:42:02]Read from MH i2c: 01 [16:42:02]MH_I2C_Read... [16:42:02]Read from MH i2c: 01 07 00 [16:42:02]MH_I2C_Read... [16:42:02]Read from MH i2c: 01 07 00 47 37 00 00 00 00 00 FB 0C 8C [16:42:02]RasterBufferAndPrint [16:42:02]line [16:42:02]line [16:42:02]line [16:42:02]line [16:42:02]line [16:42:02]written 0, free lines is 3332 [16:42:02]MH_Cut [16:42:02]Write to MH i2c: D1 01 00 4E 37 01 57 [16:42:02]Write i2c OK [16:42:02]MH_I2C_Read... [16:42:02]Read from MH i2c: D1 [16:42:02]MH_I2C_Read... [16:42:02]Read from MH i2c: D1 01 00 [16:42:02]MH_I2C_Read... [16:42:02]Read from MH i2c: D1 01 00 4E 37 00 56 [16:42:02]Write to MH i2c: 01 00 00 4F 37 86 [16:42: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 0B ED 47 00 9C 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F0 DA 02 00 F4 03 04 00 2F B0 B5 67 B6 04 01 00 00 96 FA 1B 78 E6 05 90 7E [16:42:02]CommunicateWithHost err = 0 [16:42:02]CheckOFDResponse [16:42:02]1017 (14) - 77093643461234 [16:42:02]1041 (16) - 0000000000871826 [16:42:02]1040 (4) - 187120 [16:42:02]1012 (4) - 19.02.2025 10:19 [16:42:02]1206 (1) - 0 [16:42:02]OFD Sender: Remove packet 187120 [16:42:02]ProducePacketName [16:42:02]name=ofd_packets/00187120 [16:42:02]NVStorageDeleteData [16:42:02]Write i2c OK [16:42:02]MH_I2C_Read... [16:42:02]OFD Sender: No OFD packet to send [16:42:02]*** Cut start [16:42:02]*** Partial cut [16:42:02]*** CUTSNS_PIN = 1 [16:42:02]*** CUTSNS_PIN = 0 [16:42:03]*** Brake cut motor [16:42:03]Read from MH i2c: 01 [16:42:03]MH_I2C_Read... [16:42:03]*** Stop cut motor [16:42:03]*** Cut end [16:42:03]Read from MH i2c: 01 07 00 [16:42:03]MH_I2C_Read... [16:42:03]Read from MH i2c: 01 07 00 4F 37 00 00 00 00 00 FF 0F 9B [16:42:03]process_action close_receipt done [16:42:03]requested_data is exist [16:42:03]produce_requested_data [16:42:03]requested_item fm.sn is exist - process it [16:42:03]wFMCommunicate request_size=4 [16:42:03]MH_SAM_APDU [16:42:03]CAPDU: 80 11 00 00 [16:42:03]Write to MH i2c: E2 08 00 50 37 80 11 00 00 00 00 00 00 01 [16:42:03]Write i2c OK [16:42:03]MH_I2C_Read... [16:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:03]Read from MH i2c: E2 [16:42:03]MH_I2C_Read... [16:42:03]Read from MH i2c: E2 17 00 [16:42:03]MH_I2C_Read... [16:42:03]Read from MH i2c: E2 17 00 50 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 54 [16:42:03]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:03]wFMCommunicate OK [16:42:03]requested_item fd.num is exist - process it [16:42:03]SAM_PROTO_GetFieldsCounters [16:42:03]wFMCommunicate request_size=4 [16:42:03]MH_SAM_APDU [16:42:03]CAPDU: 80 13 00 00 [16:42:03]Write to MH i2c: E2 08 00 51 37 80 13 00 00 00 00 00 00 04 [16:42:03]Write i2c OK [16:42:03]MH_I2C_Read... [16:42:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:03]Read from MH i2c: E2 [16:42:03]MH_I2C_Read... [16:42:03]Read from MH i2c: E2 62 00 [16:42:03]MH_I2C_Read... [16:42:03]Read from MH i2c: E2 62 00 51 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 F0 DA 02 00 0E 04 04 00 87 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 AD [16:42: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 F0 DA 02 00 0E 04 04 00 87 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 [16:42:03]wFMCommunicate OK [16:42:03]SAM_PROTO_GetFieldsCounters done [16:42:03]requested_item shift.num is exist - process it [16:42:03]requested_item shift.opened is exist - process it [16:42:03]req_shift_opened [16:42:03]FM_GetShiftState [16:42:03]SAM_PROTO_GetShiftState [16:42:03]wFMCommunicate request_size=4 [16:42:03]MH_SAM_APDU [16:42:03]CAPDU: 80 13 01 00 [16:42:03]Write to MH i2c: E2 08 00 52 37 80 13 01 00 00 00 00 00 06 [16:42:03]Write i2c OK [16:42:03]MH_I2C_Read... [16:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:03]Read from MH i2c: E2 [16:42:03]MH_I2C_Read... [16:42:03]Read from MH i2c: E2 0E 00 [16:42:03]MH_I2C_Read... [16:42:03]Read from MH i2c: E2 0E 00 52 37 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 85 [16:42:03]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:42:03]wFMCommunicate OK [16:42:03]SAM_PROTO_GetShiftState done [16:42:03]FM_GetShiftState done [16:42:03]req_shift_opened done [16:42:03]requested_item shift.open_date is exist - process it [16:42:03]req_shift_open_date [16:42:03]req_shift_open_date done [16:42:03]produce_requested_data done [16:42:03]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187120,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [16:42:03]process_action_free close_receipt [16:42:03]json_value_free [16:42:03]json_value_free done [16:42:03]process_json_proto returns [16:42:03]Send response to host [16:42:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187120,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [16:42:03]free response buf [16:42:03]execute_script done [16:42:03]execute_script returns [16:42:03]free content buf [16:42:03]Sock 7.Close socket [16:42:03]Sock 7.Thread stoped [16:42:07]OFD Sender: No OFD packet to send [16:42:12]OFD Sender: No OFD packet to send [16:42:17]OFD Sender: No OFD packet to send [16:42:22]OFD Sender: No OFD packet to send [16:42:27]OFD Sender: No OFD packet to send [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:52]OFD Sender: No OFD packet to send [16:43:57]OFD Sender: No OFD packet to send [16:44:02]OFD Sender: No OFD packet to send [16:44:07]OFD Sender: No OFD packet to send [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44: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:43]accept exits with 9 [16:44:43]New connection [16:44:43]New thread 3067022692 created [16:44:43]Thread 3066879332 joined [16:44:43]Waiting for new connection... [16:44:43] Sock 9.Parse request [16:44:43]Sock 9.Check first char [16:44:43]Sock 9.First char is OK [16:44:43]request: POST /json_proto HTTP/1.0 [16:44:43]Method: POST [16:44:43]URL: /json_proto [16:44:43]Method is POST - this is cgi request [16:44:43]url: /json_proto [16:44:43]query_string will be loaded in cgi processing [16:44:43]execute_cgi json_proto POST (null) [16:44:43]execute_cgi path=json_proto method=POST [16:44:43]POST find Content-Length [16:44:43]Host: 172.17.46.131:8080 [16:44:43]Content-Length: 678 [16:44:43]Content-Type: application/json [16:44:43] [16:44:43]POST finish read [16:44:43]Found Content-Length = 678 [16:44:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412275", "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" ] } } [16:44:43]execute_script... [16:44: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)412275", "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" ] } } [16:44:43]POST & json_proto [16:44:43]process_json_proto [16:44:43]json parsed OK: [16:44:43]protocol is kg_v1.0 [16:44:43]action value=close_receipt [16:44:43]process_action close_receipt [16:44:43]cmd_close_receipt [16:44:43]MH_GetDate [16:44:43]Write to MH i2c: F0 00 00 53 37 79 [16:44:43]Write i2c OK [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: F0 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: F0 09 00 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: F0 09 00 53 37 00 7F 0A B6 67 7E 41 4F 65 9B [16:44:43]GetLastDocTimeStamp 1739983324 [16:44:43]current date 1739983487 [16:44:43]FM_GetShiftState [16:44:43]SAM_PROTO_GetShiftState [16:44:43]wFMCommunicate request_size=4 [16:44:43]MH_SAM_APDU [16:44:43]CAPDU: 80 13 01 00 [16:44:43]Write to MH i2c: E2 08 00 54 37 80 13 01 00 00 00 00 00 08 [16:44:43]Write i2c OK [16:44:43]MH_I2C_Read... [16:44:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:43]Read from MH i2c: E2 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 0E 00 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 0E 00 54 37 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 87 [16:44:43]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:44:43]wFMCommunicate OK [16:44:43]SAM_PROTO_GetShiftState done [16:44:43]FM_GetShiftState done [16:44:43]opened in 1739929631 [16:44:43]opened+sec_in_day 1740016031 [16:44:43]quantity*price = 150064 [16:44:43]sum+1 = 150065 [16:44:43]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 СНО: Общий режим Чек 187 19.02.2025 16:44 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187121 ФПД: 180515447788917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T164447&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187121&fm=180515447788917&tin=02508201610067®Number=0000000000091857&sum=150000 [16:44:44]StoreToDocumentArchive [16:44:44]shift 647 fd 187121 [16:44:44]save to /storage/0647/doc_00187121 [16:44:44]save last doc name /storage/0647/doc_00187121 to /storage/kkm_last_doc_name [16:44:44]save OK [16:44:44]Clear old archive folders... [16:44:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:44:44]tlvbuf is 0069DA50 [16:44:44]SAM_PROTO_ClearQueue [16:44:44]wFMCommunicate request_size=4 [16:44:44]MH_SAM_APDU [16:44:44]CAPDU: 80 09 00 00 [16:44:44]Write to MH i2c: E2 08 00 61 37 80 09 00 00 00 00 00 00 0A [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:44]Read from MH i2c: E2 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 03 00 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 03 00 61 37 00 90 00 0C [16:44:44]RAPDU: 90 00 [16:44:44]wFMCommunicate OK [16:44:44]SAM_PROTO_ClearQueue done [16:44:44]KKMCreateOFDPacket [16:44:44]OFDProtocolAddRootSTLVToBuf [16:44:44]FM_MakeSignedData [16:44:44]FM_MakeSignedData [16:44:44]SAM_PROTO_SignData [16:44:44]wFMCommunicate request_size=4 [16:44:44]MH_SAM_APDU [16:44:44]CAPDU: 80 0D 01 02 [16:44:44]Write to MH i2c: E2 08 00 62 37 80 0D 01 02 00 00 00 00 12 [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:44]Read from MH i2c: E2 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 03 00 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 03 00 62 37 00 90 00 0D [16:44:44]RAPDU: 90 00 [16:44:44]wFMCommunicate OK [16:44:44]wFMCommunicate request_size=255 [16:44:44]MH_SAM_APDU [16:44: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 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 BB 00 00 00 F4 03 04 00 7F 0A B6 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 F1 DA 02 00 35 04 06 00 A4 2D 87 24 [16:44:44]Write to MH i2c: E2 02 01 63 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 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 BB 00 00 00 F4 03 04 00 7F 0A B6 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 F1 DA 02 00 35 04 06 00 A4 2D 87 24 00 00 D2 [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:44]Read from MH i2c: E2 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 03 00 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 03 00 63 37 00 90 00 0E [16:44:44]RAPDU: 90 00 [16:44:44]wFMCommunicate OK [16:44:44]wFMCommunicate request_size=7 [16:44:44]MH_SAM_APDU [16:44:44]CAPDU: 80 0D 02 02 02 55 75 [16:44:44]Write to MH i2c: E2 0A 00 64 37 80 0D 02 02 02 00 55 75 00 00 E3 [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:44]Read from MH i2c: E2 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 03 00 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 03 00 64 37 00 90 00 0F [16:44:44]RAPDU: 90 00 [16:44:44]wFMCommunicate OK [16:44:44]wFMCommunicate request_size=4 [16:44:44]MH_SAM_APDU [16:44:44]CAPDU: 80 0D 03 02 [16:44:44]Write to MH i2c: E2 08 00 65 37 80 0D 03 02 00 00 00 00 17 [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:44]Read from MH i2c: E2 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 0B 00 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 0B 00 65 37 00 4B BB 66 70 03 16 65 7C 90 00 EE [16:44:44]RAPDU: 4B BB 66 70 03 16 65 7C 90 00 [16:44:44]wFMCommunicate OK [16:44:44]SAM_PROTO_SignData done [16:44:44]FM_MakeSignedData done [16:44:44]CreateOFDProtocolMessage [16:44:44]wFMCommunicate request_size=4 [16:44:44]MH_SAM_APDU [16:44:44]CAPDU: 80 11 00 00 [16:44:44]Write to MH i2c: E2 08 00 66 37 80 11 00 00 00 00 00 00 17 [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:44]Read from MH i2c: E2 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 17 00 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 17 00 66 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6A [16:44: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:44:44]wFMCommunicate OK [16:44:44]CreateOFDProtocolMessage done [16:44:44]OFDSenderStorePacket 187121 [16:44:44]StoreOFDPacket docnum=187121 [16:44: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 A6 FD 04 01 34 D4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BB 00 00 00 F4 03 04 00 7F 0A B6 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 F1 DA 02 00 35 04 06 00 A4 2D 87 24 55 75 4B BB 66 70 03 16 65 7C [16:44:44]CheckFolder [16:44:44]dirname=/storage/ofd_packets [16:44:44]CheckFolder done [16:44:44]ProducePacketName [16:44:44]name=ofd_packets/00187121 [16:44:44]NVStorageSaveData ofd_packets/00187121 [16:44:44]File name is /storage/ofd_packets/00187121 [16:44:44]Write 298 bytes [16:44:44]NVStorageSaveData done [16:44:44]OFDSenderStorePacket done [16:44:44]KKMCreateOFDPacket done [16:44:44]NVStorageSaveData kkm_last_timestamp [16:44:44]File name is /storage/kkm_last_timestamp [16:44:44]Write 4 bytes [16:44:44]NVStorageSaveData done [16:44:44]ExternCall_PrintAddStr [16:44:44]wPrintStart [16:44:44]Write to MH i2c: 01 00 00 67 37 9E [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: 01 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: 01 07 00 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: 01 07 00 67 37 00 00 00 00 00 FF 0F B3 [16:44:44]RasterBufferAndPrint [16:44:44]line Счет N : (1)412275 [16:44:44]line ИНН: 02508201610067 [16:44:44]line Контрольно-Кассовый Чек [16:44:44]line ПРОДАЖА [16:44:44]line ТРК (МРК, ГНК) : 5 [16:44:44]line Товар: 2710194210 [16:44:44]line ДТ-К-5 [16:44:44]line 20.670 * 72.60 [16:44:44]line = 1500.64 [16:44:44]line НДС 12% НСП 1% [16:44:44]line > о реализуемом товаре [16:44:44]line ОКРУГЛЕНИЕ: -0.64 [16:44:44]line ИТОГО: 1500.00 [16:44:44]line Внесено: 1500.00 [16:44:44]line СДАЧА: 0.00 [16:44:44]line НСП 1% : 13.28 [16:44:44]line НДС 12% : 159.36 [16:44:44]line Наличными: 1500.00 [16:44:44]line Безнал.: 0.00 [16:44:44]line Место: АЗС № 92 "Партнер Нефть" [16:44:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:44:44]line СНО: Общий режим [16:44:44]line Чек 187 19.02.2025 16:44 [16:44:44]line Смена: 647 ФФД: 1.0 [16:44:44]line ЗНМ: 0300000118 [16:44:44]line РНМ: 0000000000091857 [16:44:44]line Версия ККМ: 001 [16:44:44]line ФМ: 0000000000871826 [16:44:44]line ФД: 187121 [16:44:44]line ФПД: 180515447788917 [16:44:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T164447&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187121&fm=180515447788917&tin=02508201610067®Number=0000000000091857&sum=150000 [16:44:45]OFD Sender: Processing packet 187121 [packets to send 49, broken 48] [16:44:45]ProducePacketName [16:44:45]name=ofd_packets/00187121 [16:44:45]OFD Sender: To server: pG, [16:44:45]CommunicateWithHost lk.salyk.kg:30040 [16:44:45]ConnectInit lk.salyk.kg [16:44:45]written 0, free lines is 4095 [16:44:45]Connected sock=10 [16:44: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 A6 FD 04 01 34 D4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BB 00 00 00 F4 03 04 00 7F 0A B6 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 F1 DA 02 00 35 04 06 00 A4 2D 87 24 55 75 4B BB 66 70 03 16 65 7C [16:44: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 FA F1 47 00 E5 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 F1 DA 02 00 F4 03 04 00 D3 B0 B5 67 B6 04 01 00 00 9A 14 20 54 15 6D DD 05 [16:44:45]CommunicateWithHost err = 0 [16:44:45]CheckOFDResponse [16:44:45]1017 (14) - 77093643461234 [16:44:45]1041 (16) - 0000000000871826 [16:44:45]1040 (4) - 187121 [16:44:45]1012 (4) - 19.02.2025 10:22 [16:44:45]1206 (1) - 0 [16:44:45]OFD Sender: Remove packet 187121 [16:44:45]ProducePacketName [16:44:45]name=ofd_packets/00187121 [16:44:45]NVStorageDeleteData [16:44:45]Write to MH i2c: 01 00 00 92 37 C9 [16:44:45]Write i2c OK [16:44:45]MH_I2C_Read... [16:44:45]Read from MH i2c: 01 [16:44:45]MH_I2C_Read... [16:44:45]Read from MH i2c: 01 07 00 [16:44:45]MH_I2C_Read... [16:44:45]Read from MH i2c: 01 07 00 92 37 00 00 00 00 00 00 0D DD [16:44:45]RasterBufferAndPrint [16:44:45]line [16:44:45]line [16:44:45]line [16:44:45]line [16:44:45]line [16:44:45]written 0, free lines is 3334 [16:44:45]MH_Cut [16:44:45]Write to MH i2c: D1 01 00 99 37 01 A2 [16:44:45]Write i2c OK [16:44:45]MH_I2C_Read... [16:44:45]Read from MH i2c: D1 [16:44:45]MH_I2C_Read... [16:44:45]Read from MH i2c: D1 01 00 [16:44:45]MH_I2C_Read... [16:44:45]Read from MH i2c: D1 01 00 99 37 00 A1 [16:44:45]Write to MH i2c: 01 00 00 9A 37 D1 [16:44:45]Write i2c OK [16:44:45]MH_I2C_Read... [16:44:46]OFD Sender: No OFD packet to send [16:44:46]*** Cut start [16:44:46]*** Partial cut [16:44:46]*** CUTSNS_PIN = 1 [16:44:46]*** CUTSNS_PIN = 0 [16:44:46]*** Brake cut motor [16:44:47]Read from MH i2c: 01 [16:44:47]MH_I2C_Read... [16:44:47]*** Stop cut motor [16:44:47]*** Cut end [16:44:47]Read from MH i2c: 01 07 00 [16:44:47]MH_I2C_Read... [16:44:47]Read from MH i2c: 01 07 00 9A 37 00 00 00 00 00 FF 0F E6 [16:44:47]process_action close_receipt done [16:44:47]requested_data is exist [16:44:47]produce_requested_data [16:44:47]requested_item fm.sn is exist - process it [16:44:47]wFMCommunicate request_size=4 [16:44:47]MH_SAM_APDU [16:44:47]CAPDU: 80 11 00 00 [16:44:47]Write to MH i2c: E2 08 00 9B 37 80 11 00 00 00 00 00 00 4C [16:44:47]Write i2c OK [16:44:47]MH_I2C_Read... [16:44:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:47]Read from MH i2c: E2 [16:44:47]MH_I2C_Read... [16:44:47]Read from MH i2c: E2 17 00 [16:44:47]MH_I2C_Read... [16:44:47]Read from MH i2c: E2 17 00 9B 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9F [16: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 [16:44:47]wFMCommunicate OK [16:44:47]requested_item fd.num is exist - process it [16:44:47]SAM_PROTO_GetFieldsCounters [16:44:47]wFMCommunicate request_size=4 [16:44:47]MH_SAM_APDU [16:44:47]CAPDU: 80 13 00 00 [16:44:47]Write to MH i2c: E2 08 00 9C 37 80 13 00 00 00 00 00 00 4F [16:44:47]Write i2c OK [16:44:47]MH_I2C_Read... [16:44:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:47]Read from MH i2c: E2 [16:44:47]MH_I2C_Read... [16:44:47]Read from MH i2c: E2 62 00 [16:44:47]MH_I2C_Read... [16:44:47]Read from MH i2c: E2 62 00 9C 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 F1 DA 02 00 0E 04 04 00 87 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 FC [16:44: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 F1 DA 02 00 0E 04 04 00 87 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 [16:44:47]wFMCommunicate OK [16:44:47]SAM_PROTO_GetFieldsCounters done [16:44:47]requested_item shift.num is exist - process it [16:44:47]requested_item shift.opened is exist - process it [16:44:47]req_shift_opened [16:44:47]FM_GetShiftState [16:44:47]SAM_PROTO_GetShiftState [16:44:47]wFMCommunicate request_size=4 [16:44:47]MH_SAM_APDU [16:44:47]CAPDU: 80 13 01 00 [16:44:47]Write to MH i2c: E2 08 00 9D 37 80 13 01 00 00 00 00 00 51 [16:44:47]Write i2c OK [16:44:47]MH_I2C_Read... [16:44:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:47]Read from MH i2c: E2 [16:44:47]MH_I2C_Read... [16:44:47]Read from MH i2c: E2 0E 00 [16:44:47]MH_I2C_Read... [16:44:47]Read from MH i2c: E2 0E 00 9D 37 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D0 [16:44:47]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:44:47]wFMCommunicate OK [16:44:47]SAM_PROTO_GetShiftState done [16:44:47]FM_GetShiftState done [16:44:47]req_shift_opened done [16:44:47]requested_item shift.open_date is exist - process it [16:44:47]req_shift_open_date [16:44:47]req_shift_open_date done [16:44:47]produce_requested_data done [16:44:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187121,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [16:44:47]process_action_free close_receipt [16:44:47]json_value_free [16:44:47]json_value_free done [16:44:47]process_json_proto returns [16:44:47]Send response to host [16:44:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187121,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [16:44:47]free response buf [16:44:47]execute_script done [16:44:47]execute_script returns [16:44:47]free content buf [16:44:47]Sock 9.Close socket [16:44:47]Sock 9.Thread stoped [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:01]OFD Sender: No OFD packet to send [16:45:06]OFD Sender: No OFD packet to send [16:45:11]OFD Sender: No OFD packet to send [16:45:16]OFD Sender: No OFD packet to send [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:16]OFD Sender: No OFD packet to send [16:46:21]OFD Sender: No OFD packet to send [16:46:26]OFD Sender: No OFD packet to send [16:46:31]OFD Sender: No OFD packet to send [16:46:33]accept exits with 7 [16:46:33]New connection [16:46:33]New thread 3066879332 created [16:46:33]Thread 3067022692 joined [16:46:33]Waiting for new connection... [16:46:33] Sock 7.Parse request [16:46:33]Sock 7.Check first char [16:46:33]Sock 7.First char is OK [16:46:33]request: POST /json_proto HTTP/1.0 [16:46:33]Method: POST [16:46:33]URL: /json_proto [16:46:33]Method is POST - this is cgi request [16:46:33]url: /json_proto [16:46:33]query_string will be loaded in cgi processing [16:46:33]execute_cgi json_proto POST (null) [16:46:33]execute_cgi path=json_proto method=POST [16:46:33]POST find Content-Length [16:46:33]Host: 172.17.46.131:8080 [16:46:33]Content-Length: 791 [16:46:33]Content-Type: application/json [16:46:33] [16:46:33]POST finish read [16:46:33]Found Content-Length = 791 [16:46:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412276", "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" : 12.870, "sum" : 826.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 826.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:33]execute_script... [16:46: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)412276", "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" : 12.870, "sum" : 826.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 826.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:33]POST & json_proto [16:46:33]process_json_proto [16:46:33]json parsed OK: [16:46:33]protocol is kg_v1.0 [16:46:33]action value=close_receipt [16:46:33]process_action close_receipt [16:46:33]cmd_close_receipt [16:46:33]MH_GetDate [16:46:33]Write to MH i2c: F0 00 00 9E 37 C4 [16:46:33]Write i2c OK [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: F0 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: F0 09 00 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: F0 09 00 9E 37 00 ED 0A B6 67 7E 41 4F 65 54 [16:46:33]GetLastDocTimeStamp 1739983487 [16:46:33]current date 1739983597 [16:46:33]FM_GetShiftState [16:46:33]SAM_PROTO_GetShiftState [16:46:33]wFMCommunicate request_size=4 [16:46:33]MH_SAM_APDU [16:46:33]CAPDU: 80 13 01 00 [16:46:33]Write to MH i2c: E2 08 00 9F 37 80 13 01 00 00 00 00 00 53 [16:46:33]Write i2c OK [16:46:33]MH_I2C_Read... [16:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:33]Read from MH i2c: E2 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: E2 0E 00 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: E2 0E 00 9F 37 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D2 [16:46:33]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:46:33]wFMCommunicate OK [16:46:33]SAM_PROTO_GetShiftState done [16:46:33]FM_GetShiftState done [16:46:33]opened in 1739929631 [16:46:33]opened+sec_in_day 1740016031 [16:46:33]quantity*price = 82625 [16:46:33]sum+1 = 82626 [16:46:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 826.25 НСП 1% : 7.31 НДС 12% : 87.74 Наличными: 0.00 Безнал.: 826.25 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 188 19.02.2025 16:46 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000871826 ФД: 187122 ФПД: 188210911308632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T164637&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187122&fm=188210911308632&tin=02508201610067®Number=0000000000091857&sum=82625 [16:46:34]StoreToDocumentArchive [16:46:34]shift 647 fd 187122 [16:46:34]save to /storage/0647/doc_00187122 [16:46:34]save last doc name /storage/0647/doc_00187122 to /storage/kkm_last_doc_name [16:46:34]save OK [16:46:34]Clear old archive folders... [16:46:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:46:34]tlvbuf is 00649380 [16:46:34]SAM_PROTO_ClearQueue [16:46:34]wFMCommunicate request_size=4 [16:46:34]MH_SAM_APDU [16:46:34]CAPDU: 80 09 00 00 [16:46:34]Write to MH i2c: E2 08 00 AC 37 80 09 00 00 00 00 00 00 55 [16:46:34]Write i2c OK [16:46:34]MH_I2C_Read... [16:46:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:34]Read from MH i2c: E2 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 03 00 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 03 00 AC 37 00 90 00 57 [16:46:34]RAPDU: 90 00 [16:46:34]wFMCommunicate OK [16:46:34]SAM_PROTO_ClearQueue done [16:46:34]KKMCreateOFDPacket [16:46:34]OFDProtocolAddRootSTLVToBuf [16:46:34]FM_MakeSignedData [16:46:34]FM_MakeSignedData [16:46:34]SAM_PROTO_SignData [16:46:34]wFMCommunicate request_size=4 [16:46:34]MH_SAM_APDU [16:46:34]CAPDU: 80 0D 01 02 [16:46:34]Write to MH i2c: E2 08 00 AD 37 80 0D 01 02 00 00 00 00 5D [16:46:34]Write i2c OK [16:46:34]MH_I2C_Read... [16:46:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:34]Read from MH i2c: E2 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 03 00 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 03 00 AD 37 00 90 00 58 [16:46:34]RAPDU: 90 00 [16:46:34]wFMCommunicate OK [16:46:34]wFMCommunicate request_size=255 [16:46:34]MH_SAM_APDU [16:46: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 46 32 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 C1 42 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 42 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 22 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 42 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 ED 0A B6 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 F2 DA 02 00 35 04 06 00 AB [16:46:34]Write to MH i2c: E2 02 01 AE 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 46 32 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 C1 42 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 42 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 22 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 42 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 ED 0A B6 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 F2 DA 02 00 35 04 06 00 AB 00 00 31 [16:46:34]Write i2c OK [16:46:34]MH_I2C_Read... [16:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:34]Read from MH i2c: E2 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 03 00 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 03 00 AE 37 00 90 00 59 [16:46:34]RAPDU: 90 00 [16:46:34]wFMCommunicate OK [16:46:34]wFMCommunicate request_size=10 [16:46:34]MH_SAM_APDU [16:46:34]CAPDU: 80 0D 02 02 05 2D 44 82 EB 58 [16:46:34]Write to MH i2c: E2 0D 00 AF 37 80 0D 02 02 05 00 2D 44 82 EB 58 00 00 A0 [16:46:34]Write i2c OK [16:46:34]MH_I2C_Read... [16:46:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:35]Read from MH i2c: E2 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 03 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 03 00 AF 37 00 90 00 5A [16:46:35]RAPDU: 90 00 [16:46:35]wFMCommunicate OK [16:46:35]wFMCommunicate request_size=4 [16:46:35]MH_SAM_APDU [16:46:35]CAPDU: 80 0D 03 02 [16:46:35]Write to MH i2c: E2 08 00 B0 37 80 0D 03 02 00 00 00 00 62 [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:35]Read from MH i2c: E2 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 0B 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 0B 00 B0 37 00 56 EF 80 03 06 FA 61 8A 90 00 16 [16:46:35]RAPDU: 56 EF 80 03 06 FA 61 8A 90 00 [16:46:35]wFMCommunicate OK [16:46:35]SAM_PROTO_SignData done [16:46:35]FM_MakeSignedData done [16:46:35]CreateOFDProtocolMessage [16:46:35]wFMCommunicate request_size=4 [16:46:35]MH_SAM_APDU [16:46:35]CAPDU: 80 11 00 00 [16:46:35]Write to MH i2c: E2 08 00 B1 37 80 11 00 00 00 00 00 00 62 [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:35]Read from MH i2c: E2 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 17 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 17 00 B1 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B5 [16:46: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:46:35]wFMCommunicate OK [16:46:35]CreateOFDProtocolMessage done [16:46:35]OFDSenderStorePacket 187122 [16:46:35]StoreOFDPacket docnum=187122 [16:46: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 67 C9 07 01 D9 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 46 32 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 C1 42 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 42 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 22 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 42 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 ED 0A B6 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 F2 DA 02 00 35 04 06 00 AB 2D 44 82 EB 58 56 EF 80 03 06 FA 61 8A [16:46:35]CheckFolder [16:46:35]dirname=/storage/ofd_packets [16:46:35]CheckFolder done [16:46:35]ProducePacketName [16:46:35]name=ofd_packets/00187122 [16:46:35]NVStorageSaveData ofd_packets/00187122 [16:46:35]File name is /storage/ofd_packets/00187122 [16:46:35]Write 301 bytes [16:46:35]NVStorageSaveData done [16:46:35]OFDSenderStorePacket done [16:46:35]KKMCreateOFDPacket done [16:46:35]NVStorageSaveData kkm_last_timestamp [16:46:35]File name is /storage/kkm_last_timestamp [16:46:35]Write 4 bytes [16:46:35]NVStorageSaveData done [16:46:35]ExternCall_PrintAddStr [16:46:35]wPrintStart [16:46:35]Write to MH i2c: 01 00 00 B2 37 E9 [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: 01 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: 01 07 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: 01 07 00 B2 37 00 00 00 00 00 FF 0F FE [16:46:35]RasterBufferAndPrint [16:46:35]line Счет N : (1)412276 [16:46:35]line ИНН: 02508201610067 [16:46:35]line Контрольно-Кассовый Чек [16:46:35]line ПРОДАЖА [16:46:35]line ТРК (МРК, ГНК) : 22 [16:46:35]line Товар: 2710124130 [16:46:35]line Аи-92-К-2 [16:46:35]line 12.870 * 64.20 [16:46:35]line = 826.25 [16:46:35]line НДС 12% НСП 1% [16:46:35]line > о реализуемом товаре [16:46:35]line ИТОГО: 826.25 [16:46:35]line НСП 1% : 7.31 [16:46:35]line НДС 12% : 87.74 [16:46:35]line Наличными: 0.00 [16:46:35]line Безнал.: 826.25 [16:46:35]line Место: АЗС № 92 "Партнер Нефть" [16:46:35]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:46:35]line СНО: Общий режим [16:46:35]line Чек 188 19.02.2025 16:46 [16:46:35]line Смена: 647 ФФД: 1.0 [16:46:35]line ЗНМ: 0300000118 [16:46:35]line РНМ: 0000000000091857 [16:46:35]line Версия ККМ: 001 [16:46:35]line Платежная система: KICB Банк [16:46:35]line ФМ: 0000000000871826 [16:46:35]line ФД: 187122 [16:46:35]line ФПД: 188210911308632 [16:46:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T164637&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187122&fm=188210911308632&tin=02508201610067®Number=0000000000091857&sum=82625 [16:46:35]written 0, free lines is 4095 [16:46:35]OFD Sender: Processing packet 187122 [packets to send 49, broken 48] [16:46:35]ProducePacketName [16:46:35]name=ofd_packets/00187122 [16:46:35]OFD Sender: To server: pG, [16:46:35]CommunicateWithHost lk.salyk.kg:30040 [16:46:35]ConnectInit lk.salyk.kg [16:46:35]Connected sock=10 [16:46: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 67 C9 07 01 D9 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 46 32 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 C1 42 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 42 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 22 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 42 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 ED 0A B6 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 F2 DA 02 00 35 04 06 00 AB 2D 44 82 EB 58 56 EF 80 03 06 FA 61 8A [16:46:35]Write to MH i2c: 01 00 00 DC 37 13 [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: 01 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: 01 07 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: 01 07 00 DC 37 00 00 00 00 00 12 0D 39 [16:46:35]RasterBufferAndPrint [16:46:35]line [16:46:35]line [16:46:35]line [16:46:35]line [16:46:35]line [16:46:35]written 0, free lines is 3355 [16:46: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 B4 3E 47 00 BE 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F2 DA 02 00 F4 03 04 00 40 B1 B5 67 B6 04 01 00 00 0F 35 EC 9E 7D A1 B3 13 [16:46:35]CommunicateWithHost err = 0 [16:46:35]CheckOFDResponse [16:46:35]1017 (14) - 77093643461234 [16:46:35]1041 (16) - 0000000000871826 [16:46:35]1040 (4) - 187122 [16:46:35]1012 (4) - 19.02.2025 10:24 [16:46:35]1206 (1) - 0 [16:46:35]OFD Sender: Remove packet 187122 [16:46:35]ProducePacketName [16:46:35]name=ofd_packets/00187122 [16:46:35]NVStorageDeleteData [16:46:35]MH_Cut [16:46:35]Write to MH i2c: D1 01 00 E3 37 01 EC [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: D1 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: D1 01 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: D1 01 00 E3 37 00 EB [16:46:35]Write to MH i2c: 01 00 00 E4 37 1B [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:36]OFD Sender: No OFD packet to send [16:46:36]*** Cut start [16:46:36]*** Partial cut [16:46:36]*** CUTSNS_PIN = 1 [16:46:36]*** CUTSNS_PIN = 0 [16:46:36]*** Brake cut motor [16:46:37]Read from MH i2c: 01 [16:46:37]MH_I2C_Read... [16:46:37]*** Stop cut motor [16:46:37]*** Cut end [16:46:37]Read from MH i2c: 01 07 00 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: 01 07 00 E4 37 00 00 00 00 00 FF 0F 30 [16:46:37]process_action close_receipt done [16:46:37]requested_data is exist [16:46:37]produce_requested_data [16:46:37]requested_item fm.sn is exist - process it [16:46:37]wFMCommunicate request_size=4 [16:46:37]MH_SAM_APDU [16:46:37]CAPDU: 80 11 00 00 [16:46:37]Write to MH i2c: E2 08 00 E5 37 80 11 00 00 00 00 00 00 96 [16:46:37]Write i2c OK [16:46:37]MH_I2C_Read... [16:46:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:37]Read from MH i2c: E2 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 17 00 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 17 00 E5 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E9 [16:46: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:46:37]wFMCommunicate OK [16:46:37]requested_item fd.num is exist - process it [16:46:37]SAM_PROTO_GetFieldsCounters [16:46:37]wFMCommunicate request_size=4 [16:46:37]MH_SAM_APDU [16:46:37]CAPDU: 80 13 00 00 [16:46:37]Write to MH i2c: E2 08 00 E6 37 80 13 00 00 00 00 00 00 99 [16:46:37]Write i2c OK [16:46:37]MH_I2C_Read... [16:46:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:37]Read from MH i2c: E2 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 62 00 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 62 00 E6 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 F2 DA 02 00 0E 04 04 00 87 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 4A [16:46: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 F2 DA 02 00 0E 04 04 00 87 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 [16:46:37]wFMCommunicate OK [16:46:37]SAM_PROTO_GetFieldsCounters done [16:46:37]requested_item shift.num is exist - process it [16:46:37]requested_item shift.opened is exist - process it [16:46:37]req_shift_opened [16:46:37]FM_GetShiftState [16:46:37]SAM_PROTO_GetShiftState [16:46:37]wFMCommunicate request_size=4 [16:46:37]MH_SAM_APDU [16:46:37]CAPDU: 80 13 01 00 [16:46:37]Write to MH i2c: E2 08 00 E7 37 80 13 01 00 00 00 00 00 9B [16:46:37]Write i2c OK [16:46:37]MH_I2C_Read... [16:46:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:37]Read from MH i2c: E2 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 0E 00 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 0E 00 E7 37 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 1A [16:46:37]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:46:37]wFMCommunicate OK [16:46:37]SAM_PROTO_GetShiftState done [16:46:37]FM_GetShiftState done [16:46:37]req_shift_opened done [16:46:37]requested_item shift.open_date is exist - process it [16:46:37]req_shift_open_date [16:46:37]req_shift_open_date done [16:46:37]produce_requested_data done [16:46:37]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187122,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [16:46:37]process_action_free close_receipt [16:46:37]json_value_free [16:46:37]json_value_free done [16:46:37]process_json_proto returns [16:46:37]Send response to host [16:46:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187122,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [16:46:37]free response buf [16:46:37]execute_script done [16:46:37]execute_script returns [16:46:37]free content buf [16:46:37]Sock 7.Close socket [16:46:37]Sock 7.Thread stoped [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:06]OFD Sender: No OFD packet to send [16:47:11]OFD Sender: No OFD packet to send [16:47:16]OFD Sender: No OFD packet to send [16:47:21]OFD Sender: No OFD packet to send [16:47:26]OFD Sender: No OFD packet to send [16:47:31]OFD Sender: No OFD packet to send [16:47:36]OFD Sender: No OFD packet to send [16:47:41]OFD Sender: No OFD packet to send [16:47:46]OFD Sender: No OFD packet to send [16:47:51]OFD Sender: No OFD packet to send [16:47:56]OFD Sender: No OFD packet to send [16:48:01]OFD Sender: No OFD packet to send [16:48:06]OFD Sender: No OFD packet to send [16:48:11]OFD Sender: No OFD packet to send [16:48:16]OFD Sender: No OFD packet to send [16:48:21]OFD Sender: No OFD packet to send [16:48:26]OFD Sender: No OFD packet to send [16:48:31]OFD Sender: No OFD packet to send [16:48:36]OFD Sender: No OFD packet to send [16:48:41]OFD Sender: No OFD packet to send [16:48:46]OFD Sender: No OFD packet to send [16:48:51]OFD Sender: No OFD packet to send [16:48:56]OFD Sender: No OFD packet to send [16:49:01]OFD Sender: No OFD packet to send [16:49:06]OFD Sender: No OFD packet to send [16:49:11]OFD Sender: No OFD packet to send [16:49:16]OFD Sender: No OFD packet to send [16:49:21]OFD Sender: No OFD packet to send [16:49:26]OFD Sender: No OFD packet to send [16:49:31]OFD Sender: No OFD packet to send [16:49:36]OFD Sender: No OFD packet to send [16:49:41]OFD Sender: No OFD packet to send [16:49:46]OFD Sender: No OFD packet to send [16:49:51]OFD Sender: No OFD packet to send [16:49:56]OFD Sender: No OFD packet to send [16:50:01]OFD Sender: No OFD packet to send [16:50:06]OFD Sender: No OFD packet to send [16:50:11]OFD Sender: No OFD packet to send [16:50:16]OFD Sender: No OFD packet to send [16:50:21]OFD Sender: No OFD packet to send [16:50:26]OFD Sender: No OFD packet to send [16:50:31]OFD Sender: No OFD packet to send [16:50:36]OFD Sender: No OFD packet to send [16:50:41]OFD Sender: No OFD packet to send [16:50:46]OFD Sender: No OFD packet to send [16:50:51]OFD Sender: No OFD packet to send [16:50:56]OFD Sender: No OFD packet to send [16:51:01]OFD Sender: No OFD packet to send [16:51:06]OFD Sender: No OFD packet to send [16:51:11]OFD Sender: No OFD packet to send [16:51:16]OFD Sender: No OFD packet to send [16:51:21]OFD Sender: No OFD packet to send [16:51:26]OFD Sender: No OFD packet to send [16:51:31]OFD Sender: No OFD packet to send [16:51:36]OFD Sender: No OFD packet to send [16:51:41]OFD Sender: No OFD packet to send [16:51:46]OFD Sender: No OFD packet to send [16:51:51]OFD Sender: No OFD packet to send [16:51:56]OFD Sender: No OFD packet to send [16:52:01]OFD Sender: No OFD packet to send [16:52:06]OFD Sender: No OFD packet to send [16:52:11]OFD Sender: No OFD packet to send [16:52:16]OFD Sender: No OFD packet to send [16:52:21]OFD Sender: No OFD packet to send [16:52:26]OFD Sender: No OFD packet to send [16:52:31]OFD Sender: No OFD packet to send [16:52:36]OFD Sender: No OFD packet to send [16:52:41]OFD Sender: No OFD packet to send [16:52:46]OFD Sender: No OFD packet to send [16:52:51]OFD Sender: No OFD packet to send [16:52:56]OFD Sender: No OFD packet to send [16:53:01]OFD Sender: No OFD packet to send [16:53:06]OFD Sender: No OFD packet to send [16:53:11]OFD Sender: No OFD packet to send [16:53:16]OFD Sender: No OFD packet to send [16:53:21]OFD Sender: No OFD packet to send [16:53:26]OFD Sender: No OFD packet to send [16:53:31]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:28]accept exits with 9 [16:59:28]New connection [16:59:28]New thread 3067022692 created [16:59:28]Thread 3066879332 joined [16:59:28]Waiting for new connection... [16:59:28] Sock 9.Parse request [16:59:28]Sock 9.Check first char [16:59:28]Sock 9.First char is OK [16:59:28]request: POST /json_proto HTTP/1.0 [16:59:28]Method: POST [16:59:28]URL: /json_proto [16:59:28]Method is POST - this is cgi request [16:59:28]url: /json_proto [16:59:28]query_string will be loaded in cgi processing [16:59:28]execute_cgi json_proto POST (null) [16:59:28]execute_cgi path=json_proto method=POST [16:59:28]POST find Content-Length [16:59:28]Host: 172.17.46.131:8080 [16:59:28]Content-Length: 677 [16:59:28]Content-Type: application/json [16:59:28] [16:59:28]POST finish read [16:59:28]Found Content-Length = 677 [16:59:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412277", "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" ] } } [16:59:28]execute_script... [16:59: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)412277", "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" ] } } [16:59:28]POST & json_proto [16:59:28]process_json_proto [16:59:28]json parsed OK: [16:59:28]protocol is kg_v1.0 [16:59:28]action value=close_receipt [16:59:28]process_action close_receipt [16:59:28]cmd_close_receipt [16:59:28]MH_GetDate [16:59:28]Write to MH i2c: F0 00 00 E8 37 0E [16:59:28]Write i2c OK [16:59:28]MH_I2C_Read... [16:59:28]Read from MH i2c: F0 [16:59:28]MH_I2C_Read... [16:59:28]Read from MH i2c: F0 09 00 [16:59:28]MH_I2C_Read... [16:59:28]Read from MH i2c: F0 09 00 E8 37 00 F5 0D B6 67 7E 41 4F 65 A9 [16:59:28]GetLastDocTimeStamp 1739983597 [16:59:28]current date 1739984373 [16:59:28]FM_GetShiftState [16:59:28]SAM_PROTO_GetShiftState [16:59:28]wFMCommunicate request_size=4 [16:59:28]MH_SAM_APDU [16:59:28]CAPDU: 80 13 01 00 [16:59:28]Write to MH i2c: E2 08 00 E9 37 80 13 01 00 00 00 00 00 9D [16:59:28]Write i2c OK [16:59:28]MH_I2C_Read... [16:59:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:28]Read from MH i2c: E2 [16:59:28]MH_I2C_Read... [16:59:28]Read from MH i2c: E2 0E 00 [16:59:28]MH_I2C_Read... [16:59:28]Read from MH i2c: E2 0E 00 E9 37 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 1C [16:59:28]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:59:28]wFMCommunicate OK [16:59:28]SAM_PROTO_GetShiftState done [16:59:28]FM_GetShiftState done [16:59:28]opened in 1739929631 [16:59:28]opened+sec_in_day 1740016031 [16:59:28]quantity*price = 50011 [16:59:28]sum+1 = 50013 [16:59:28]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 19.02.2025 16:59 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187123 ФПД: 238693536814884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T165933&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187123&fm=238693536814884&tin=02508201610067®Number=0000000000091857&sum=50000 [16:59:30]StoreToDocumentArchive [16:59:30]shift 647 fd 187123 [16:59:30]save to /storage/0647/doc_00187123 [16:59:30]save last doc name /storage/0647/doc_00187123 to /storage/kkm_last_doc_name [16:59:30]save OK [16:59:30]Clear old archive folders... [16:59:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:59:30]tlvbuf is 005E4D20 [16:59:30]SAM_PROTO_ClearQueue [16:59:30]wFMCommunicate request_size=4 [16:59:30]MH_SAM_APDU [16:59:30]CAPDU: 80 09 00 00 [16:59:30]Write to MH i2c: E2 08 00 F6 37 80 09 00 00 00 00 00 00 9F [16:59:30]Write i2c OK [16:59:30]MH_I2C_Read... [16:59:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:30]Read from MH i2c: E2 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 03 00 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 03 00 F6 37 00 90 00 A1 [16:59:30]RAPDU: 90 00 [16:59:30]wFMCommunicate OK [16:59:30]SAM_PROTO_ClearQueue done [16:59:30]KKMCreateOFDPacket [16:59:30]OFDProtocolAddRootSTLVToBuf [16:59:30]FM_MakeSignedData [16:59:30]FM_MakeSignedData [16:59:30]SAM_PROTO_SignData [16:59:30]wFMCommunicate request_size=4 [16:59:30]MH_SAM_APDU [16:59:30]CAPDU: 80 0D 01 02 [16:59:30]Write to MH i2c: E2 08 00 F7 37 80 0D 01 02 00 00 00 00 A7 [16:59:30]Write i2c OK [16:59:30]MH_I2C_Read... [16:59:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:30]Read from MH i2c: E2 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 03 00 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 03 00 F7 37 00 90 00 A2 [16:59:30]RAPDU: 90 00 [16:59:30]wFMCommunicate OK [16:59:30]wFMCommunicate request_size=255 [16:59:30]MH_SAM_APDU [16:59:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F5 0D B6 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 F3 DA 02 00 35 04 06 00 D9 [16:59:30]Write to MH i2c: E2 02 01 F8 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F5 0D B6 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 F3 DA 02 00 35 04 06 00 D9 00 00 4D [16:59:30]Write i2c OK [16:59:30]MH_I2C_Read... [16:59:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:30]Read from MH i2c: E2 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 03 00 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 03 00 F8 37 00 90 00 A3 [16:59:30]RAPDU: 90 00 [16:59:30]wFMCommunicate OK [16:59:30]wFMCommunicate request_size=10 [16:59:30]MH_SAM_APDU [16:59:30]CAPDU: 80 0D 02 02 05 17 2B 78 D7 24 [16:59:30]Write to MH i2c: E2 0D 00 F9 37 80 0D 02 02 05 00 17 2B 78 D7 24 00 00 69 [16:59:30]Write i2c OK [16:59:30]MH_I2C_Read... [16:59:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:30]Read from MH i2c: E2 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 03 00 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 03 00 F9 37 00 90 00 A4 [16:59:30]RAPDU: 90 00 [16:59:30]wFMCommunicate OK [16:59:30]wFMCommunicate request_size=4 [16:59:30]MH_SAM_APDU [16:59:30]CAPDU: 80 0D 03 02 [16:59:30]Write to MH i2c: E2 08 00 FA 37 80 0D 03 02 00 00 00 00 AC [16:59:30]Write i2c OK [16:59:30]MH_I2C_Read... [16:59:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:30]Read from MH i2c: E2 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 0B 00 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 0B 00 FA 37 00 58 BF 3A E0 23 FB AC 8F 90 00 37 [16:59:30]RAPDU: 58 BF 3A E0 23 FB AC 8F 90 00 [16:59:30]wFMCommunicate OK [16:59:30]SAM_PROTO_SignData done [16:59:30]FM_MakeSignedData done [16:59:30]CreateOFDProtocolMessage [16:59:30]wFMCommunicate request_size=4 [16:59:30]MH_SAM_APDU [16:59:30]CAPDU: 80 11 00 00 [16:59:30]Write to MH i2c: E2 08 00 FB 37 80 11 00 00 00 00 00 00 AC [16:59:30]Write i2c OK [16:59:30]MH_I2C_Read... [16:59:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:30]Read from MH i2c: E2 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 17 00 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: E2 17 00 FB 37 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:59:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:59:30]wFMCommunicate OK [16:59:30]CreateOFDProtocolMessage done [16:59:30]OFDSenderStorePacket 187123 [16:59:30]StoreOFDPacket docnum=187123 [16:59: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 0F 01 00 00 CA DC 07 01 1D 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F5 0D B6 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 F3 DA 02 00 35 04 06 00 D9 17 2B 78 D7 24 58 BF 3A E0 23 FB AC 8F [16:59:30]CheckFolder [16:59:30]dirname=/storage/ofd_packets [16:59:30]CheckFolder done [16:59:30]ProducePacketName [16:59:30]name=ofd_packets/00187123 [16:59:30]NVStorageSaveData ofd_packets/00187123 [16:59:30]File name is /storage/ofd_packets/00187123 [16:59:30]Write 301 bytes [16:59:30]NVStorageSaveData done [16:59:30]OFDSenderStorePacket done [16:59:30]KKMCreateOFDPacket done [16:59:30]NVStorageSaveData kkm_last_timestamp [16:59:30]File name is /storage/kkm_last_timestamp [16:59:30]Write 4 bytes [16:59:30]NVStorageSaveData done [16:59:30]ExternCall_PrintAddStr [16:59:30]wPrintStart [16:59:30]Write to MH i2c: 01 00 00 FC 37 33 [16:59:30]Write i2c OK [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: 01 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: 01 07 00 [16:59:30]MH_I2C_Read... [16:59:30]Read from MH i2c: 01 07 00 FC 37 00 00 00 00 00 FF 0F 48 [16:59:30]RasterBufferAndPrint [16:59:30]line Счет N : (1)412277 [16:59:30]line ИНН: 02508201610067 [16:59:30]line Контрольно-Кассовый Чек [16:59:30]line ПРОДАЖА [16:59:30]line ТРК (МРК, ГНК) : 12 [16:59:30]line Товар: 2710124130 [16:59:30]line Аи-92-К-2 [16:59:30]line 7.790 * 64.20 [16:59:30]line = 500.12 [16:59:30]line НДС 12% НСП 1% [16:59:30]line > о реализуемом товаре [16:59:30]line ОКРУГЛЕНИЕ: -0.12 [16:59:30]line ИТОГО: 500.00 [16:59:30]line Внесено: 500.00 [16:59:30]line СДАЧА: 0.00 [16:59:30]line НСП 1% : 4.43 [16:59:30]line НДС 12% : 53.11 [16:59:30]line Наличными: 500.00 [16:59:30]line Безнал.: 0.00 [16:59:30]line Место: АЗС № 92 "Партнер Нефть" [16:59:30]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [16:59:30]line СНО: Общий режим [16:59:30]line Чек 189 19.02.2025 16:59 [16:59:30]line Смена: 647 ФФД: 1.0 [16:59:30]line ЗНМ: 0300000118 [16:59:30]line РНМ: 0000000000091857 [16:59:30]line Версия ККМ: 001 [16:59:30]line ФМ: 0000000000871826 [16:59:30]line ФД: 187123 [16:59:30]line ФПД: 238693536814884 [16:59:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T165933&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187123&fm=238693536814884&tin=02508201610067®Number=0000000000091857&sum=50000 [16:59:30]written 0, free lines is 4095 [16:59:30]OFD Sender: Processing packet 187123 [packets to send 49, broken 48] [16:59:30]ProducePacketName [16:59:30]name=ofd_packets/00187123 [16:59:30]OFD Sender: To server: pG, [16:59:30]CommunicateWithHost lk.salyk.kg:30040 [16:59:30]ConnectInit lk.salyk.kg [16:59:31]Connected sock=11 [16:59:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CA DC 07 01 1D 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F5 0D B6 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 F3 DA 02 00 35 04 06 00 D9 17 2B 78 D7 24 58 BF 3A E0 23 FB AC 8F [16:59:31]Write to MH i2c: 01 00 00 27 38 5F [16:59:31]Write i2c OK [16:59:31]MH_I2C_Read... [16:59:31]Read from MH i2c: 01 [16:59:31]MH_I2C_Read... [16:59:31]Read from MH i2c: 01 07 00 [16:59:31]MH_I2C_Read... [16:59:31]Read from MH i2c: 01 07 00 27 38 00 00 00 00 00 FB 0C 6D [16:59:31]RasterBufferAndPrint [16:59:31]line [16:59:31]line [16:59:31]line [16:59:31]line [16:59:31]line [16:59:31]written 0, free lines is 3329 [16:59:31]MH_Cut [16:59:31]Write to MH i2c: D1 01 00 2E 38 01 38 [16:59:31]Write i2c OK [16:59:31]MH_I2C_Read... [16:59:31]Read from MH i2c: D1 [16:59:31]MH_I2C_Read... [16:59:31]Read from MH i2c: D1 01 00 [16:59:31]MH_I2C_Read... [16:59:31]Read from MH i2c: D1 01 00 2E 38 00 37 [16:59:31]Write to MH i2c: 01 00 00 2F 38 67 [16:59:31]Write i2c OK [16:59:31]MH_I2C_Read... [16:59:31]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 0E 47 00 35 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 F3 DA 02 00 F4 03 04 00 48 B4 B5 67 B6 04 01 00 00 02 E3 21 A5 8D 57 41 93 [16:59:31]CommunicateWithHost err = 0 [16:59:31]CheckOFDResponse [16:59:31]1017 (14) - 77093643461234 [16:59:31]1041 (16) - 0000000000871826 [16:59:31]1040 (4) - 187123 [16:59:31]1012 (4) - 19.02.2025 10:36 [16:59:31]1206 (1) - 0 [16:59:31]OFD Sender: Remove packet 187123 [16:59:31]ProducePacketName [16:59:31]name=ofd_packets/00187123 [16:59:31]NVStorageDeleteData [16:59:32]OFD Sender: No OFD packet to send [16:59:32]*** Cut start [16:59:32]*** Partial cut [16:59:32]*** CUTSNS_PIN = 1 [16:59:32]*** CUTSNS_PIN = 0 [16:59:32]*** Brake cut motor [16:59:32]Read from MH i2c: 01 [16:59:32]MH_I2C_Read... [16:59:32]*** Stop cut motor [16:59:32]*** Cut end [16:59:32]Read from MH i2c: 01 07 00 [16:59:32]MH_I2C_Read... [16:59:32]Read from MH i2c: 01 07 00 2F 38 00 00 00 00 00 FF 0F 7C [16:59:32]process_action close_receipt done [16:59:32]requested_data is exist [16:59:32]produce_requested_data [16:59:32]requested_item fm.sn is exist - process it [16:59:32]wFMCommunicate request_size=4 [16:59:32]MH_SAM_APDU [16:59:32]CAPDU: 80 11 00 00 [16:59:32]Write to MH i2c: E2 08 00 30 38 80 11 00 00 00 00 00 00 E2 [16:59:32]Write i2c OK [16:59:32]MH_I2C_Read... [16:59:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:32]Read from MH i2c: E2 [16:59:32]MH_I2C_Read... [16:59:32]Read from MH i2c: E2 17 00 [16:59:32]MH_I2C_Read... [16:59:32]Read from MH i2c: E2 17 00 30 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 35 [16:59:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [16:59:32]wFMCommunicate OK [16:59:32]requested_item fd.num is exist - process it [16:59:32]SAM_PROTO_GetFieldsCounters [16:59:32]wFMCommunicate request_size=4 [16:59:32]MH_SAM_APDU [16:59:32]CAPDU: 80 13 00 00 [16:59:32]Write to MH i2c: E2 08 00 31 38 80 13 00 00 00 00 00 00 E5 [16:59:32]Write i2c OK [16:59:32]MH_I2C_Read... [16:59:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:32]Read from MH i2c: E2 [16:59:32]MH_I2C_Read... [16:59:32]Read from MH i2c: E2 62 00 [16:59:32]MH_I2C_Read... [16:59:33]Read from MH i2c: E2 62 00 31 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 F3 DA 02 00 0E 04 04 00 87 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 9A [16:59: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 DA 02 00 0E 04 04 00 87 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 [16:59:33]wFMCommunicate OK [16:59:33]SAM_PROTO_GetFieldsCounters done [16:59:33]requested_item shift.num is exist - process it [16:59:33]requested_item shift.opened is exist - process it [16:59:33]req_shift_opened [16:59:33]FM_GetShiftState [16:59:33]SAM_PROTO_GetShiftState [16:59:33]wFMCommunicate request_size=4 [16:59:33]MH_SAM_APDU [16:59:33]CAPDU: 80 13 01 00 [16:59:33]Write to MH i2c: E2 08 00 32 38 80 13 01 00 00 00 00 00 E7 [16:59:33]Write i2c OK [16:59:33]MH_I2C_Read... [16:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:33]Read from MH i2c: E2 [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: E2 0E 00 [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: E2 0E 00 32 38 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 66 [16:59:33]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [16:59:33]wFMCommunicate OK [16:59:33]SAM_PROTO_GetShiftState done [16:59:33]FM_GetShiftState done [16:59:33]req_shift_opened done [16:59:33]requested_item shift.open_date is exist - process it [16:59:33]req_shift_open_date [16:59:33]req_shift_open_date done [16:59:33]produce_requested_data done [16:59:33]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187123,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [16:59:33]process_action_free close_receipt [16:59:33]json_value_free [16:59:33]json_value_free done [16:59:33]process_json_proto returns [16:59:33]Send response to host [16:59:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187123,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [16:59:33]free response buf [16:59:33]execute_script done [16:59:33]execute_script returns [16:59:33]free content buf [16:59:33]Sock 9.Close socket [16:59:33]Sock 9.Thread stoped [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:17]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [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:25]accept exits with 7 [17:06:25]New connection [17:06:25]New thread 3066879332 created [17:06:25]Thread 3067022692 joined [17:06:25]Waiting for new connection... [17:06:25] Sock 7.Parse request [17:06:25]Sock 7.Check first char [17:06:25]Sock 7.First char is OK [17:06:25]request: POST /json_proto HTTP/1.0 [17:06:25]Method: POST [17:06:25]URL: /json_proto [17:06:25]Method is POST - this is cgi request [17:06:25]url: /json_proto [17:06:25]query_string will be loaded in cgi processing [17:06:25]execute_cgi json_proto POST (null) [17:06:25]execute_cgi path=json_proto method=POST [17:06:25]POST find Content-Length [17:06:25]Host: 172.17.46.131:8080 [17:06:25]Content-Length: 677 [17:06:25]Content-Type: application/json [17:06:25] [17:06:25]POST finish read [17:06:25]Found Content-Length = 677 [17:06:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412278", "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" ] } } [17:06:25]execute_script... [17:06: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)412278", "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" ] } } [17:06:25]POST & json_proto [17:06:25]process_json_proto [17:06:25]json parsed OK: [17:06:25]protocol is kg_v1.0 [17:06:25]action value=close_receipt [17:06:25]process_action close_receipt [17:06:25]cmd_close_receipt [17:06:25]MH_GetDate [17:06:25]Write to MH i2c: F0 00 00 33 38 5A [17:06:25]Write i2c OK [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: F0 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: F0 09 00 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: F0 09 00 33 38 00 95 0F B6 67 7E 41 4F 65 97 [17:06:25]GetLastDocTimeStamp 1739984373 [17:06:25]current date 1739984789 [17:06:25]FM_GetShiftState [17:06:25]SAM_PROTO_GetShiftState [17:06:25]wFMCommunicate request_size=4 [17:06:25]MH_SAM_APDU [17:06:25]CAPDU: 80 13 01 00 [17:06:25]Write to MH i2c: E2 08 00 34 38 80 13 01 00 00 00 00 00 E9 [17:06:25]Write i2c OK [17:06:25]MH_I2C_Read... [17:06:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:25]Read from MH i2c: E2 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: E2 0E 00 [17:06:25]MH_I2C_Read... [17:06:25]Read from MH i2c: E2 0E 00 34 38 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 68 [17:06:25]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [17:06:25]wFMCommunicate OK [17:06:25]SAM_PROTO_GetShiftState done [17:06:25]FM_GetShiftState done [17:06:25]opened in 1739929631 [17:06:25]opened+sec_in_day 1740016031 [17:06:25]quantity*price = 40060 [17:06:25]sum+1 = 40062 [17:06:25]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 СНО: Общий режим Чек 190 19.02.2025 17:06 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187124 ФПД: 148183881464466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T170629&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187124&fm=148183881464466&tin=02508201610067®Number=0000000000091857&sum=40000 [17:06:26]StoreToDocumentArchive [17:06:26]shift 647 fd 187124 [17:06:26]save to /storage/0647/doc_00187124 [17:06:26]save last doc name /storage/0647/doc_00187124 to /storage/kkm_last_doc_name [17:06:26]save OK [17:06:26]Clear old archive folders... [17:06:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:06:26]tlvbuf is 005DEDC0 [17:06:26]SAM_PROTO_ClearQueue [17:06:26]wFMCommunicate request_size=4 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 09 00 00 [17:06:26]Write to MH i2c: E2 08 00 41 38 80 09 00 00 00 00 00 00 EB [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 41 38 00 90 00 ED [17:06:26]RAPDU: 90 00 [17:06:26]wFMCommunicate OK [17:06:26]SAM_PROTO_ClearQueue done [17:06:26]KKMCreateOFDPacket [17:06:26]OFDProtocolAddRootSTLVToBuf [17:06:26]FM_MakeSignedData [17:06:26]FM_MakeSignedData [17:06:26]SAM_PROTO_SignData [17:06:26]wFMCommunicate request_size=4 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 0D 01 02 [17:06:26]Write to MH i2c: E2 08 00 42 38 80 0D 01 02 00 00 00 00 F3 [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 42 38 00 90 00 EE [17:06:26]RAPDU: 90 00 [17:06:26]wFMCommunicate OK [17:06:26]wFMCommunicate request_size=255 [17:06:26]MH_SAM_APDU [17:06: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 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 BE 00 00 00 F4 03 04 00 95 0F B6 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 F4 DA 02 00 35 04 06 00 86 [17:06:26]Write to MH i2c: E2 02 01 43 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 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 BE 00 00 00 F4 03 04 00 95 0F B6 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 F4 DA 02 00 35 04 06 00 86 00 00 E4 [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 43 38 00 90 00 EF [17:06:26]RAPDU: 90 00 [17:06:26]wFMCommunicate OK [17:06:26]wFMCommunicate request_size=10 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 0D 02 02 05 C5 BF 9D BA 92 [17:06:26]Write to MH i2c: E2 0D 00 44 38 80 0D 02 02 05 00 C5 BF 9D BA 92 00 00 6D [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 03 00 44 38 00 90 00 F0 [17:06:26]RAPDU: 90 00 [17:06:26]wFMCommunicate OK [17:06:26]wFMCommunicate request_size=4 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 0D 03 02 [17:06:26]Write to MH i2c: E2 08 00 45 38 80 0D 03 02 00 00 00 00 F8 [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:26]Read from MH i2c: E2 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 0B 00 [17:06:26]MH_I2C_Read... [17:06:26]Read from MH i2c: E2 0B 00 45 38 00 23 46 34 63 81 1F 0E 18 90 00 BF [17:06:26]RAPDU: 23 46 34 63 81 1F 0E 18 90 00 [17:06:26]wFMCommunicate OK [17:06:26]SAM_PROTO_SignData done [17:06:26]FM_MakeSignedData done [17:06:26]CreateOFDProtocolMessage [17:06:26]wFMCommunicate request_size=4 [17:06:26]MH_SAM_APDU [17:06:26]CAPDU: 80 11 00 00 [17:06:26]Write to MH i2c: E2 08 00 46 38 80 11 00 00 00 00 00 00 F8 [17:06:26]Write i2c OK [17:06:26]MH_I2C_Read... [17:06:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:27]Read from MH i2c: E2 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: E2 17 00 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: E2 17 00 46 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4B [17:06:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:06:27]wFMCommunicate OK [17:06:27]CreateOFDProtocolMessage done [17:06:27]OFDSenderStorePacket 187124 [17:06:27]StoreOFDPacket docnum=187124 [17:06: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 73 D1 07 01 FA 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 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 BE 00 00 00 F4 03 04 00 95 0F B6 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 F4 DA 02 00 35 04 06 00 86 C5 BF 9D BA 92 23 46 34 63 81 1F 0E 18 [17:06:27]CheckFolder [17:06:27]dirname=/storage/ofd_packets [17:06:27]CheckFolder done [17:06:27]ProducePacketName [17:06:27]name=ofd_packets/00187124 [17:06:27]NVStorageSaveData ofd_packets/00187124 [17:06:27]File name is /storage/ofd_packets/00187124 [17:06:27]Write 301 bytes [17:06:27]NVStorageSaveData done [17:06:27]OFDSenderStorePacket done [17:06:27]KKMCreateOFDPacket done [17:06:27]NVStorageSaveData kkm_last_timestamp [17:06:27]File name is /storage/kkm_last_timestamp [17:06:27]Write 4 bytes [17:06:27]NVStorageSaveData done [17:06:27]ExternCall_PrintAddStr [17:06:27]wPrintStart [17:06:27]Write to MH i2c: 01 00 00 47 38 7F [17:06:27]Write i2c OK [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: 01 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: 01 07 00 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: 01 07 00 47 38 00 00 00 00 00 FF 0F 94 [17:06:27]RasterBufferAndPrint [17:06:27]line Счет N : (1)412278 [17:06:27]line ИНН: 02508201610067 [17:06:27]line Контрольно-Кассовый Чек [17:06:27]line ПРОДАЖА [17:06:27]line ТРК (МРК, ГНК) : 42 [17:06:27]line Товар: 2710124130 [17:06:27]line Аи-92-К-2 [17:06:27]line 6.240 * 64.20 [17:06:27]line = 400.61 [17:06:27]line НДС 12% НСП 1% [17:06:27]line > о реализуемом товаре [17:06:27]line ОКРУГЛЕНИЕ: -0.61 [17:06:27]line ИТОГО: 400.00 [17:06:27]line Внесено: 400.00 [17:06:27]line СДАЧА: 0.00 [17:06:27]line НСП 1% : 3.54 [17:06:27]line НДС 12% : 42.54 [17:06:27]line Наличными: 400.00 [17:06:27]line Безнал.: 0.00 [17:06:27]line Место: АЗС № 92 "Партнер Нефть" [17:06:27]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:06:27]line СНО: Общий режим [17:06:27]line Чек 190 19.02.2025 17:06 [17:06:27]line Смена: 647 ФФД: 1.0 [17:06:27]line ЗНМ: 0300000118 [17:06:27]line РНМ: 0000000000091857 [17:06:27]line Версия ККМ: 001 [17:06:27]line ФМ: 0000000000871826 [17:06:27]line ФД: 187124 [17:06:27]line ФПД: 148183881464466 [17:06:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T170629&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187124&fm=148183881464466&tin=02508201610067®Number=0000000000091857&sum=40000 [17:06:27]written 0, free lines is 4095 [17:06:27]OFD Sender: Processing packet 187124 [packets to send 49, broken 48] [17:06:27]ProducePacketName [17:06:27]name=ofd_packets/00187124 [17:06:27]OFD Sender: To server: pG, [17:06:27]CommunicateWithHost lk.salyk.kg:30040 [17:06:27]ConnectInit lk.salyk.kg [17:06:27]Connected sock=10 [17:06: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 73 D1 07 01 FA 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 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 BE 00 00 00 F4 03 04 00 95 0F B6 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 F4 DA 02 00 35 04 06 00 86 C5 BF 9D BA 92 23 46 34 63 81 1F 0E 18 [17:06:27]Write to MH i2c: 01 00 00 72 38 AA [17:06:27]Write i2c OK [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: 01 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: 01 07 00 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: 01 07 00 72 38 00 00 00 00 00 FB 0C B8 [17:06:27]RasterBufferAndPrint [17:06:27]line [17:06:27]line [17:06:27]line [17:06:27]line [17:06:27]line [17:06:27]written 0, free lines is 3329 [17:06:27]MH_Cut [17:06:27]Write to MH i2c: D1 01 00 79 38 01 83 [17:06:27]Write i2c OK [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: D1 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: D1 01 00 [17:06:27]MH_I2C_Read... [17:06:27]Read from MH i2c: D1 01 00 79 38 00 82 [17:06:27]Write to MH i2c: 01 00 00 7A 38 B2 [17:06:27]Write i2c OK [17:06:27]MH_I2C_Read... [17:06:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 23 C0 47 00 6D 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 F4 DA 02 00 F4 03 04 00 E8 B5 B5 67 B6 04 01 00 00 F6 E9 07 5B BB EC 16 A4 [17:06:27]CommunicateWithHost err = 0 [17:06:27]CheckOFDResponse [17:06:27]1017 (14) - 77093643461234 [17:06:27]1041 (16) - 0000000000871826 [17:06:27]1040 (4) - 187124 [17:06:27]1012 (4) - 19.02.2025 10:43 [17:06:27]1206 (1) - 0 [17:06:27]OFD Sender: Remove packet 187124 [17:06:27]ProducePacketName [17:06:27]name=ofd_packets/00187124 [17:06:27]NVStorageDeleteData [17:06:28]OFD Sender: No OFD packet to send [17:06:28]*** Cut start [17:06:28]*** Partial cut [17:06:28]*** CUTSNS_PIN = 1 [17:06:28]*** CUTSNS_PIN = 0 [17:06:28]*** Brake cut motor [17:06:28]Read from MH i2c: 01 [17:06:28]MH_I2C_Read... [17:06:28]*** Stop cut motor [17:06:28]*** Cut end [17:06:28]Read from MH i2c: 01 07 00 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: 01 07 00 7A 38 00 00 00 00 00 FF 0F C7 [17:06:28]process_action close_receipt done [17:06:28]requested_data is exist [17:06:28]produce_requested_data [17:06:28]requested_item fm.sn is exist - process it [17:06:28]wFMCommunicate request_size=4 [17:06:28]MH_SAM_APDU [17:06:28]CAPDU: 80 11 00 00 [17:06:28]Write to MH i2c: E2 08 00 7B 38 80 11 00 00 00 00 00 00 2D [17:06:28]Write i2c OK [17:06:28]MH_I2C_Read... [17:06:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:28]Read from MH i2c: E2 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: E2 17 00 [17:06:28]MH_I2C_Read... [17:06:28]Read from MH i2c: E2 17 00 7B 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 80 [17:06:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:06:28]wFMCommunicate OK [17:06:28]requested_item fd.num is exist - process it [17:06:28]SAM_PROTO_GetFieldsCounters [17:06:28]wFMCommunicate request_size=4 [17:06:28]MH_SAM_APDU [17:06:28]CAPDU: 80 13 00 00 [17:06:28]Write to MH i2c: E2 08 00 7C 38 80 13 00 00 00 00 00 00 30 [17:06:28]Write i2c OK [17:06:28]MH_I2C_Read... [17:06:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:29]Read from MH i2c: E2 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: E2 62 00 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: E2 62 00 7C 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 F4 DA 02 00 0E 04 04 00 87 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 E9 [17:06: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 F4 DA 02 00 0E 04 04 00 87 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 [17:06:29]wFMCommunicate OK [17:06:29]SAM_PROTO_GetFieldsCounters done [17:06:29]requested_item shift.num is exist - process it [17:06:29]requested_item shift.opened is exist - process it [17:06:29]req_shift_opened [17:06:29]FM_GetShiftState [17:06:29]SAM_PROTO_GetShiftState [17:06:29]wFMCommunicate request_size=4 [17:06:29]MH_SAM_APDU [17:06:29]CAPDU: 80 13 01 00 [17:06:29]Write to MH i2c: E2 08 00 7D 38 80 13 01 00 00 00 00 00 32 [17:06:29]Write i2c OK [17:06:29]MH_I2C_Read... [17:06:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:29]Read from MH i2c: E2 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: E2 0E 00 [17:06:29]MH_I2C_Read... [17:06:29]Read from MH i2c: E2 0E 00 7D 38 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 B1 [17:06:29]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [17:06:29]wFMCommunicate OK [17:06:29]SAM_PROTO_GetShiftState done [17:06:29]FM_GetShiftState done [17:06:29]req_shift_opened done [17:06:29]requested_item shift.open_date is exist - process it [17:06:29]req_shift_open_date [17:06:29]req_shift_open_date done [17:06:29]produce_requested_data done [17:06:29]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187124,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [17:06:29]process_action_free close_receipt [17:06:29]json_value_free [17:06:29]json_value_free done [17:06:29]process_json_proto returns [17:06:29]Send response to host [17:06:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187124,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [17:06:29]free response buf [17:06:29]execute_script done [17:06:29]execute_script returns [17:06:29]free content buf [17:06:29]Sock 7.Close socket [17:06:29]Sock 7.Thread stoped [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:08]OFD Sender: No OFD packet to send [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07:23]OFD Sender: No OFD packet to send [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:33]accept exits with 9 [17:07:33]New connection [17:07:33]New thread 3067022692 created [17:07:33]Thread 3066879332 joined [17:07:33]Waiting for new connection... [17:07:33] Sock 9.Parse request [17:07:33]Sock 9.Check first char [17:07:33]Sock 9.First char is OK [17:07:33]request: POST /json_proto HTTP/1.0 [17:07:33]Method: POST [17:07:33]URL: /json_proto [17:07:33]Method is POST - this is cgi request [17:07:33]url: /json_proto [17:07:33]query_string will be loaded in cgi processing [17:07:33]execute_cgi json_proto POST (null) [17:07:33]execute_cgi path=json_proto method=POST [17:07:33]POST find Content-Length [17:07:33]Host: 172.17.46.131:8080 [17:07:33]Content-Length: 750 [17:07:33]Content-Type: application/json [17:07:33] [17:07:33]POST finish read [17:07:33]Found Content-Length = 750 [17:07:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412279", "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" : 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30087185", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:33]execute_script... [17:07: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)412279", "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" : 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\u041A \u0413\u041F\u041D\u0410 Online\u000A30087185", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:33]POST & json_proto [17:07:33]process_json_proto [17:07:33]json parsed OK: [17:07:33]protocol is kg_v1.0 [17:07:33]action value=close_receipt [17:07:33]process_action close_receipt [17:07:33]cmd_close_receipt [17:07:33]MH_GetDate [17:07:33]Write to MH i2c: F0 00 00 7E 38 A5 [17:07:33]Write i2c OK [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: F0 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: F0 09 00 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: F0 09 00 7E 38 00 D9 0F B6 67 7E 41 4F 65 26 [17:07:33]GetLastDocTimeStamp 1739984789 [17:07:33]current date 1739984857 [17:07:33]FM_GetShiftState [17:07:33]SAM_PROTO_GetShiftState [17:07:33]wFMCommunicate request_size=4 [17:07:33]MH_SAM_APDU [17:07:33]CAPDU: 80 13 01 00 [17:07:33]Write to MH i2c: E2 08 00 7F 38 80 13 01 00 00 00 00 00 34 [17:07:33]Write i2c OK [17:07:33]MH_I2C_Read... [17:07:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:33]Read from MH i2c: E2 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: E2 0E 00 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: E2 0E 00 7F 38 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 B3 [17:07:33]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [17:07:33]wFMCommunicate OK [17:07:33]SAM_PROTO_GetShiftState done [17:07:33]FM_GetShiftState done [17:07:33]opened in 1739929631 [17:07:33]opened+sec_in_day 1740016031 [17:07:33]quantity*price = 0 [17:07:33]sum+1 = 1 [17:07:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 191 19.02.2025 17:07 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30087185 ФМ: 0000000000871826 ФД: 187125 ФПД: 80504033473736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T170737&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187125&fm=80504033473736&tin=02508201610067®Number=0000000000091857&sum=0 [17:07:34]StoreToDocumentArchive [17:07:34]shift 647 fd 187125 [17:07:34]save to /storage/0647/doc_00187125 [17:07:34]save last doc name /storage/0647/doc_00187125 to /storage/kkm_last_doc_name [17:07:34]save OK [17:07:34]Clear old archive folders... [17:07:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:07:34]tlvbuf is 0065E010 [17:07:34]SAM_PROTO_ClearQueue [17:07:34]wFMCommunicate request_size=4 [17:07:34]MH_SAM_APDU [17:07:34]CAPDU: 80 09 00 00 [17:07:34]Write to MH i2c: E2 08 00 8C 38 80 09 00 00 00 00 00 00 36 [17:07:34]Write i2c OK [17:07:34]MH_I2C_Read... [17:07:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:34]Read from MH i2c: E2 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: E2 03 00 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: E2 03 00 8C 38 00 90 00 38 [17:07:34]RAPDU: 90 00 [17:07:34]wFMCommunicate OK [17:07:34]SAM_PROTO_ClearQueue done [17:07:34]KKMCreateOFDPacket [17:07:34]OFDProtocolAddRootSTLVToBuf [17:07:34]FM_MakeSignedData [17:07:34]FM_MakeSignedData [17:07:34]SAM_PROTO_SignData [17:07:34]wFMCommunicate request_size=4 [17:07:34]MH_SAM_APDU [17:07:34]CAPDU: 80 0D 01 02 [17:07:34]Write to MH i2c: E2 08 00 8D 38 80 0D 01 02 00 00 00 00 3E [17:07:34]Write i2c OK [17:07:34]MH_I2C_Read... [17:07:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:34]Read from MH i2c: E2 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: E2 03 00 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: E2 03 00 8D 38 00 90 00 39 [17:07:34]RAPDU: 90 00 [17:07:34]wFMCommunicate OK [17:07:34]wFMCommunicate request_size=255 [17:07:34]MH_SAM_APDU [17:07:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BF 00 00 00 F4 03 04 00 D9 0F B6 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 F5 DA 02 00 35 04 06 00 49 37 CE 51 [17:07:34]Write to MH i2c: E2 02 01 8E 38 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BF 00 00 00 F4 03 04 00 D9 0F B6 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 F5 DA 02 00 35 04 06 00 49 37 CE 51 00 00 94 [17:07:34]Write i2c OK [17:07:34]MH_I2C_Read... [17:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:35]Read from MH i2c: E2 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 03 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 03 00 8E 38 00 90 00 3A [17:07:35]RAPDU: 90 00 [17:07:35]wFMCommunicate OK [17:07:35]wFMCommunicate request_size=7 [17:07:35]MH_SAM_APDU [17:07:35]CAPDU: 80 0D 02 02 02 74 C8 [17:07:35]Write to MH i2c: E2 0A 00 8F 38 80 0D 02 02 02 00 74 C8 00 00 81 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:35]Read from MH i2c: E2 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 03 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 03 00 8F 38 00 90 00 3B [17:07:35]RAPDU: 90 00 [17:07:35]wFMCommunicate OK [17:07:35]wFMCommunicate request_size=4 [17:07:35]MH_SAM_APDU [17:07:35]CAPDU: 80 0D 03 02 [17:07:35]Write to MH i2c: E2 08 00 90 38 80 0D 03 02 00 00 00 00 43 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:35]Read from MH i2c: E2 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 0B 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 0B 00 90 38 00 11 3A B8 CE 34 B5 EC B1 90 00 9B [17:07:35]RAPDU: 11 3A B8 CE 34 B5 EC B1 90 00 [17:07:35]wFMCommunicate OK [17:07:35]SAM_PROTO_SignData done [17:07:35]FM_MakeSignedData done [17:07:35]CreateOFDProtocolMessage [17:07:35]wFMCommunicate request_size=4 [17:07:35]MH_SAM_APDU [17:07:35]CAPDU: 80 11 00 00 [17:07:35]Write to MH i2c: E2 08 00 91 38 80 11 00 00 00 00 00 00 43 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:35]Read from MH i2c: E2 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 17 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 17 00 91 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 96 [17:07: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:07:35]wFMCommunicate OK [17:07:35]CreateOFDProtocolMessage done [17:07:35]OFDSenderStorePacket 187125 [17:07:35]StoreOFDPacket docnum=187125 [17:07: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 7B BA 04 01 BC 48 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 D9 0F B6 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 F5 DA 02 00 35 04 06 00 49 37 CE 51 74 C8 11 3A B8 CE 34 B5 EC B1 [17:07:35]CheckFolder [17:07:35]dirname=/storage/ofd_packets [17:07:35]CheckFolder done [17:07:35]ProducePacketName [17:07:35]name=ofd_packets/00187125 [17:07:35]NVStorageSaveData ofd_packets/00187125 [17:07:35]File name is /storage/ofd_packets/00187125 [17:07:35]Write 298 bytes [17:07:35]NVStorageSaveData done [17:07:35]OFDSenderStorePacket done [17:07:35]KKMCreateOFDPacket done [17:07:35]NVStorageSaveData kkm_last_timestamp [17:07:35]File name is /storage/kkm_last_timestamp [17:07:35]Write 4 bytes [17:07:35]NVStorageSaveData done [17:07:35]ExternCall_PrintAddStr [17:07:35]wPrintStart [17:07:35]Write to MH i2c: 01 00 00 92 38 CA [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: 01 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: 01 07 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: 01 07 00 92 38 00 00 00 00 00 FF 0F DF [17:07:35]RasterBufferAndPrint [17:07:35]line Счет N : (1)412279 [17:07:35]line ИНН: 02508201610067 [17:07:35]line Контрольно-Кассовый Чек [17:07:35]line ПРОДАЖА [17:07:35]line ТРК (МРК, ГНК) : 5 [17:07:35]line Товар: 2710194210 [17:07:35]line ДТ-К-5 [17:07:35]line 10.000 * 0.00 [17:07:35]line = 0.00 [17:07:35]line НДС 12% НСП 1% [17:07:35]line > о реализуемом товаре [17:07:35]line ИТОГО: 0.00 [17:07:35]line НСП 1% : 0.00 [17:07:35]line НДС 12% : 0.00 [17:07:35]line Наличными: 0.00 [17:07:35]line Безнал.: 0.00 [17:07:35]line Место: АЗС № 92 "Партнер Нефть" [17:07:35]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:07:35]line СНО: Общий режим [17:07:35]line Чек 191 19.02.2025 17:07 [17:07:35]line Смена: 647 ФФД: 1.0 [17:07:35]line ЗНМ: 0300000118 [17:07:35]line РНМ: 0000000000091857 [17:07:35]line Версия ККМ: 001 [17:07:35]line Талоны: ТК ГПНА Online [17:07:35]line 30087185 [17:07:35]line ФМ: 0000000000871826 [17:07:35]line ФД: 187125 [17:07:35]line ФПД: 80504033473736 [17:07:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T170737&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187125&fm=80504033473736&tin=02508201610067®Number=0000000000091857&sum=0 [17:07:35]OFD Sender: Processing packet 187125 [packets to send 49, broken 48] [17:07:35]ProducePacketName [17:07:35]name=ofd_packets/00187125 [17:07:35]OFD Sender: To server: pG, [17:07:35]CommunicateWithHost lk.salyk.kg:30040 [17:07:35]ConnectInit lk.salyk.kg [17:07:35]written 0, free lines is 4095 [17:07:35]Connected sock=10 [17:07: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 0C 01 00 00 7B BA 04 01 BC 48 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 D9 0F B6 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 F5 DA 02 00 35 04 06 00 49 37 CE 51 74 C8 11 3A B8 CE 34 B5 EC B1 [17:07: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 B6 96 47 00 45 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 F5 DA 02 00 F4 03 04 00 2D B6 B5 67 B6 04 01 00 00 7F C0 A8 CB 03 AB CA 4B [17:07:36]CommunicateWithHost err = 0 [17:07:36]CheckOFDResponse [17:07:36]1017 (14) - 77093643461234 [17:07:36]1041 (16) - 0000000000871826 [17:07:36]1040 (4) - 187125 [17:07:36]1012 (4) - 19.02.2025 10:45 [17:07:36]1206 (1) - 0 [17:07:36]OFD Sender: Remove packet 187125 [17:07:36]ProducePacketName [17:07:36]name=ofd_packets/00187125 [17:07:36]NVStorageDeleteData [17:07:36]Write to MH i2c: 01 00 00 BC 38 F4 [17:07:36]Write i2c OK [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: 01 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: 01 07 00 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: 01 07 00 BC 38 00 00 00 00 00 01 0D 09 [17:07:36]RasterBufferAndPrint [17:07:36]line [17:07:36]line [17:07:36]line [17:07:36]line [17:07:36]line [17:07:36]written 0, free lines is 3338 [17:07:36]MH_Cut [17:07:36]Write to MH i2c: D1 01 00 C3 38 01 CD [17:07:36]Write i2c OK [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: D1 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: D1 01 00 [17:07:36]MH_I2C_Read... [17:07:36]Read from MH i2c: D1 01 00 C3 38 00 CC [17:07:36]Write to MH i2c: 01 00 00 C4 38 FC [17:07:36]Write i2c OK [17:07:36]MH_I2C_Read... [17:07:36]OFD Sender: No OFD packet to send [17:07:36]*** Cut start [17:07:36]*** Partial cut [17:07:36]*** CUTSNS_PIN = 1 [17:07:36]*** CUTSNS_PIN = 0 [17:07:37]*** Brake cut motor [17:07:37]Read from MH i2c: 01 [17:07:37]MH_I2C_Read... [17:07:37]*** Stop cut motor [17:07:37]*** Cut end [17:07:37]Read from MH i2c: 01 07 00 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: 01 07 00 C4 38 00 00 00 00 00 FF 0F 11 [17:07:37]process_action close_receipt done [17:07:37]requested_data is exist [17:07:37]produce_requested_data [17:07:37]requested_item fm.sn is exist - process it [17:07:37]wFMCommunicate request_size=4 [17:07:37]MH_SAM_APDU [17:07:37]CAPDU: 80 11 00 00 [17:07:37]Write to MH i2c: E2 08 00 C5 38 80 11 00 00 00 00 00 00 77 [17:07:37]Write i2c OK [17:07:37]MH_I2C_Read... [17:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:37]Read from MH i2c: E2 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 17 00 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 17 00 C5 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CA [17:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:07:37]wFMCommunicate OK [17:07:37]requested_item fd.num is exist - process it [17:07:37]SAM_PROTO_GetFieldsCounters [17:07:37]wFMCommunicate request_size=4 [17:07:37]MH_SAM_APDU [17:07:37]CAPDU: 80 13 00 00 [17:07:37]Write to MH i2c: E2 08 00 C6 38 80 13 00 00 00 00 00 00 7A [17:07:37]Write i2c OK [17:07:37]MH_I2C_Read... [17:07:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:37]Read from MH i2c: E2 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 62 00 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 62 00 C6 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 F5 DA 02 00 0E 04 04 00 87 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 37 [17:07: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 F5 DA 02 00 0E 04 04 00 87 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 [17:07:37]wFMCommunicate OK [17:07:37]SAM_PROTO_GetFieldsCounters done [17:07:37]requested_item shift.num is exist - process it [17:07:37]requested_item shift.opened is exist - process it [17:07:37]req_shift_opened [17:07:37]FM_GetShiftState [17:07:37]SAM_PROTO_GetShiftState [17:07:37]wFMCommunicate request_size=4 [17:07:37]MH_SAM_APDU [17:07:37]CAPDU: 80 13 01 00 [17:07:37]Write to MH i2c: E2 08 00 C7 38 80 13 01 00 00 00 00 00 7C [17:07:37]Write i2c OK [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 [17:07:37]MH_I2C_Read... [17:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:37]Read from MH i2c: E2 0E 00 [17:07:37]MH_I2C_Read... [17:07:37]Read from MH i2c: E2 0E 00 C7 38 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 FB [17:07:37]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [17:07:37]wFMCommunicate OK [17:07:37]SAM_PROTO_GetShiftState done [17:07:37]FM_GetShiftState done [17:07:37]req_shift_opened done [17:07:37]requested_item shift.open_date is exist - process it [17:07:37]req_shift_open_date [17:07:37]req_shift_open_date done [17:07:37]produce_requested_data done [17:07:37]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187125,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [17:07:37]process_action_free close_receipt [17:07:37]json_value_free [17:07:37]json_value_free done [17:07:37]process_json_proto returns [17:07:37]Send response to host [17:07:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187125,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [17:07:37]free response buf [17:07:37]execute_script done [17:07:37]execute_script returns [17:07:37]free content buf [17:07:37]Sock 9.Close socket [17:07:37]Sock 9.Thread stoped [17:07:41]OFD Sender: No OFD packet to send [17:07:46]OFD Sender: No OFD packet to send [17:07:51]OFD Sender: No OFD packet to send [17:07:56]OFD Sender: No OFD packet to send [17:08:01]OFD Sender: No OFD packet to send [17:08:06]OFD Sender: No OFD packet to send [17:08:11]OFD Sender: No OFD packet to send [17:08:14]accept exits with 7 [17:08:14]New connection [17:08:14]New thread 3066879332 created [17:08:14]Thread 3067022692 joined [17:08:14]Waiting for new connection... [17:08:14] Sock 7.Parse request [17:08:14]Sock 7.Check first char [17:08:14]Sock 7.First char is OK [17:08:14]request: POST /json_proto HTTP/1.0 [17:08:14]Method: POST [17:08:14]URL: /json_proto [17:08:14]Method is POST - this is cgi request [17:08:14]url: /json_proto [17:08:14]query_string will be loaded in cgi processing [17:08:14]execute_cgi json_proto POST (null) [17:08:14]execute_cgi path=json_proto method=POST [17:08:14]POST find Content-Length [17:08:14]Host: 172.17.46.131:8080 [17:08:14]Content-Length: 682 [17:08:14]Content-Type: application/json [17:08:14] [17:08:14]POST finish read [17:08:14]Found Content-Length = 682 [17:08:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412280", "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" ] } } [17:08:14]execute_script... [17:08: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)412280", "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" ] } } [17:08:14]POST & json_proto [17:08:14]process_json_proto [17:08:14]json parsed OK: [17:08:14]protocol is kg_v1.0 [17:08:14]action value=close_receipt [17:08:14]process_action close_receipt [17:08:14]cmd_close_receipt [17:08:14]MH_GetDate [17:08:14]Write to MH i2c: F0 00 00 C8 38 EF [17:08:14]Write i2c OK [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: F0 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: F0 09 00 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: F0 09 00 C8 38 00 03 10 B6 67 7E 41 4F 65 9B [17:08:14]GetLastDocTimeStamp 1739984857 [17:08:14]current date 1739984899 [17:08:14]FM_GetShiftState [17:08:14]SAM_PROTO_GetShiftState [17:08:14]wFMCommunicate request_size=4 [17:08:14]MH_SAM_APDU [17:08:14]CAPDU: 80 13 01 00 [17:08:14]Write to MH i2c: E2 08 00 C9 38 80 13 01 00 00 00 00 00 7E [17:08:14]Write i2c OK [17:08:14]MH_I2C_Read... [17:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:14]Read from MH i2c: E2 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: E2 0E 00 [17:08:14]MH_I2C_Read... [17:08:14]Read from MH i2c: E2 0E 00 C9 38 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 FD [17:08:14]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [17:08:14]wFMCommunicate OK [17:08:14]SAM_PROTO_GetShiftState done [17:08:14]FM_GetShiftState done [17:08:14]opened in 1739929631 [17:08:14]opened+sec_in_day 1740016031 [17:08:14]quantity*price = 100023 [17:08:14]sum+1 = 100025 [17:08: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 СНО: Общий режим Чек 192 19.02.2025 17:08 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187126 ФПД: 227472326575728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T170819&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187126&fm=227472326575728&tin=02508201610067®Number=0000000000091857&sum=100000 [17:08:16]StoreToDocumentArchive [17:08:16]shift 647 fd 187126 [17:08:16]save to /storage/0647/doc_00187126 [17:08:16]save last doc name /storage/0647/doc_00187126 to /storage/kkm_last_doc_name [17:08:16]save OK [17:08:16]Clear old archive folders... [17:08:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:08:16]tlvbuf is 00672E80 [17:08:16]SAM_PROTO_ClearQueue [17:08:16]wFMCommunicate request_size=4 [17:08:16]MH_SAM_APDU [17:08:16]CAPDU: 80 09 00 00 [17:08:16]Write to MH i2c: E2 08 00 D6 38 80 09 00 00 00 00 00 00 80 [17:08:16]Write i2c OK [17:08:16]MH_I2C_Read... [17:08:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:16]Read from MH i2c: E2 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: E2 03 00 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: E2 03 00 D6 38 00 90 00 82 [17:08:16]RAPDU: 90 00 [17:08:16]wFMCommunicate OK [17:08:16]SAM_PROTO_ClearQueue done [17:08:16]KKMCreateOFDPacket [17:08:16]OFDProtocolAddRootSTLVToBuf [17:08:16]FM_MakeSignedData [17:08:16]FM_MakeSignedData [17:08:16]SAM_PROTO_SignData [17:08:16]wFMCommunicate request_size=4 [17:08:16]MH_SAM_APDU [17:08:16]CAPDU: 80 0D 01 02 [17:08:16]Write to MH i2c: E2 08 00 D7 38 80 0D 01 02 00 00 00 00 88 [17:08:16]Write i2c OK [17:08:16]MH_I2C_Read... [17:08:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:16]Read from MH i2c: E2 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: E2 03 00 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: E2 03 00 D7 38 00 90 00 83 [17:08:16]RAPDU: 90 00 [17:08:16]wFMCommunicate OK [17:08:16]wFMCommunicate request_size=255 [17:08:16]MH_SAM_APDU [17:08: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 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 C0 00 00 00 F4 03 04 00 03 10 B6 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 F6 DA 02 00 35 04 06 00 CE [17:08:16]Write to MH i2c: E2 02 01 D8 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 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 C0 00 00 00 F4 03 04 00 03 10 B6 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 F6 DA 02 00 35 04 06 00 CE 00 00 9E [17:08:16]Write i2c OK [17:08:16]MH_I2C_Read... [17:08:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:16]Read from MH i2c: E2 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: E2 03 00 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: E2 03 00 D8 38 00 90 00 84 [17:08:16]RAPDU: 90 00 [17:08:16]wFMCommunicate OK [17:08:16]wFMCommunicate request_size=10 [17:08:16]MH_SAM_APDU [17:08:16]CAPDU: 80 0D 02 02 05 E2 87 38 C6 70 [17:08:16]Write to MH i2c: E2 0D 00 D9 38 80 0D 02 02 05 00 E2 87 38 C6 70 00 00 6C [17:08:16]Write i2c OK [17:08:16]MH_I2C_Read... [17:08:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:16]Read from MH i2c: E2 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: E2 03 00 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: E2 03 00 D9 38 00 90 00 85 [17:08:16]RAPDU: 90 00 [17:08:16]wFMCommunicate OK [17:08:16]wFMCommunicate request_size=4 [17:08:16]MH_SAM_APDU [17:08:16]CAPDU: 80 0D 03 02 [17:08:16]Write to MH i2c: E2 08 00 DA 38 80 0D 03 02 00 00 00 00 8D [17:08:16]Write i2c OK [17:08:16]MH_I2C_Read... [17:08:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:16]Read from MH i2c: E2 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: E2 0B 00 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: E2 0B 00 DA 38 00 9E 7B E6 0D 13 05 8A 5A 90 00 96 [17:08:16]RAPDU: 9E 7B E6 0D 13 05 8A 5A 90 00 [17:08:16]wFMCommunicate OK [17:08:16]SAM_PROTO_SignData done [17:08:16]FM_MakeSignedData done [17:08:16]CreateOFDProtocolMessage [17:08:16]wFMCommunicate request_size=4 [17:08:16]MH_SAM_APDU [17:08:16]CAPDU: 80 11 00 00 [17:08:16]Write to MH i2c: E2 08 00 DB 38 80 11 00 00 00 00 00 00 8D [17:08:16]Write i2c OK [17:08:16]MH_I2C_Read... [17:08:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:16]Read from MH i2c: E2 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: E2 17 00 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: E2 17 00 DB 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E0 [17:08: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:08:16]wFMCommunicate OK [17:08:16]CreateOFDProtocolMessage done [17:08:16]OFDSenderStorePacket 187126 [17:08:16]StoreOFDPacket docnum=187126 [17:08: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 81 9B 07 01 24 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C0 00 00 00 F4 03 04 00 03 10 B6 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 F6 DA 02 00 35 04 06 00 CE E2 87 38 C6 70 9E 7B E6 0D 13 05 8A 5A [17:08:16]CheckFolder [17:08:16]dirname=/storage/ofd_packets [17:08:16]CheckFolder done [17:08:16]ProducePacketName [17:08:16]name=ofd_packets/00187126 [17:08:16]NVStorageSaveData ofd_packets/00187126 [17:08:16]File name is /storage/ofd_packets/00187126 [17:08:16]Write 301 bytes [17:08:16]NVStorageSaveData done [17:08:16]OFDSenderStorePacket done [17:08:16]KKMCreateOFDPacket done [17:08:16]NVStorageSaveData kkm_last_timestamp [17:08:16]File name is /storage/kkm_last_timestamp [17:08:16]Write 4 bytes [17:08:16]NVStorageSaveData done [17:08:16]ExternCall_PrintAddStr [17:08:16]wPrintStart [17:08:16]Write to MH i2c: 01 00 00 DC 38 14 [17:08:16]Write i2c OK [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: 01 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: 01 07 00 [17:08:16]MH_I2C_Read... [17:08:16]Read from MH i2c: 01 07 00 DC 38 00 00 00 00 00 FF 0F 29 [17:08:16]RasterBufferAndPrint [17:08:16]line Счет N : (1)412280 [17:08:16]line ИНН: 02508201610067 [17:08:16]line Контрольно-Кассовый Чек [17:08:16]line ПРОДАЖА [17:08:16]line ТРК (МРК, ГНК) : 12 [17:08:16]line Товар: 2710124130 [17:08:16]line Аи-92-К-2 [17:08:16]line 15.580 * 64.20 [17:08:16]line = 1000.24 [17:08:16]line НДС 12% НСП 1% [17:08:16]line > о реализуемом товаре [17:08:16]line ОКРУГЛЕНИЕ: -0.24 [17:08:16]line ИТОГО: 1000.00 [17:08:16]line Внесено: 1000.00 [17:08:16]line СДАЧА: 0.00 [17:08:16]line НСП 1% : 8.85 [17:08:16]line НДС 12% : 106.22 [17:08:16]line Наличными: 1000.00 [17:08:16]line Безнал.: 0.00 [17:08:16]line Место: АЗС № 92 "Партнер Нефть" [17:08:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:08:16]line СНО: Общий режим [17:08:16]line Чек 192 19.02.2025 17:08 [17:08:16]line Смена: 647 ФФД: 1.0 [17:08:16]line ЗНМ: 0300000118 [17:08:16]line РНМ: 0000000000091857 [17:08:16]line Версия ККМ: 001 [17:08:16]line ФМ: 0000000000871826 [17:08:16]line ФД: 187126 [17:08:16]line ФПД: 227472326575728 [17:08:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T170819&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187126&fm=227472326575728&tin=02508201610067®Number=0000000000091857&sum=100000 [17:08:16]OFD Sender: Processing packet 187126 [packets to send 49, broken 48] [17:08:16]ProducePacketName [17:08:16]name=ofd_packets/00187126 [17:08:16]OFD Sender: To server: pG, [17:08:16]CommunicateWithHost lk.salyk.kg:30040 [17:08:16]ConnectInit lk.salyk.kg [17:08:16]written 0, free lines is 4095 [17:08:17]Connected sock=10 [17:08: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 81 9B 07 01 24 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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 C0 00 00 00 F4 03 04 00 03 10 B6 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 F6 DA 02 00 35 04 06 00 CE E2 87 38 C6 70 9E 7B E6 0D 13 05 8A 5A [17:08: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 CC 91 47 00 4E 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 F6 DA 02 00 F4 03 04 00 56 B6 B5 67 B6 04 01 00 00 7E 0F B1 95 79 8F 8B 5A [17:08:17]CommunicateWithHost err = 0 [17:08:17]CheckOFDResponse [17:08:17]1017 (14) - 77093643461234 [17:08:17]1041 (16) - 0000000000871826 [17:08:17]1040 (4) - 187126 [17:08:17]1012 (4) - 19.02.2025 10:45 [17:08:17]1206 (1) - 0 [17:08:17]OFD Sender: Remove packet 187126 [17:08:17]ProducePacketName [17:08:17]name=ofd_packets/00187126 [17:08:17]NVStorageDeleteData [17:08:17]Write to MH i2c: 01 00 00 07 39 40 [17:08:17]Write i2c OK [17:08:17]MH_I2C_Read... [17:08:17]Read from MH i2c: 01 [17:08:17]MH_I2C_Read... [17:08:17]Read from MH i2c: 01 07 00 [17:08:17]MH_I2C_Read... [17:08:17]Read from MH i2c: 01 07 00 07 39 00 00 00 00 00 FF 0C 52 [17:08:17]RasterBufferAndPrint [17:08:17]line [17:08:17]line [17:08:17]line [17:08:17]line [17:08:17]line [17:08:17]written 0, free lines is 3333 [17:08:17]MH_Cut [17:08:17]Write to MH i2c: D1 01 00 0E 39 01 19 [17:08:17]Write i2c OK [17:08:17]MH_I2C_Read... [17:08:17]Read from MH i2c: D1 [17:08:17]MH_I2C_Read... [17:08:17]Read from MH i2c: D1 01 00 [17:08:17]MH_I2C_Read... [17:08:17]Read from MH i2c: D1 01 00 0E 39 00 18 [17:08:17]Write to MH i2c: 01 00 00 0F 39 48 [17:08:17]Write i2c OK [17:08:17]MH_I2C_Read... [17:08:17]OFD Sender: No OFD packet to send [17:08:18]*** Cut start [17:08:18]*** Partial cut [17:08:18]*** CUTSNS_PIN = 1 [17:08:18]*** CUTSNS_PIN = 0 [17:08:18]*** Brake cut motor [17:08:18]Read from MH i2c: 01 [17:08:18]MH_I2C_Read... [17:08:18]*** Stop cut motor [17:08:18]*** Cut end [17:08:18]Read from MH i2c: 01 07 00 [17:08:18]MH_I2C_Read... [17:08:18]Read from MH i2c: 01 07 00 0F 39 00 00 00 00 00 FF 0F 5D [17:08:18]process_action close_receipt done [17:08:18]requested_data is exist [17:08:18]produce_requested_data [17:08:18]requested_item fm.sn is exist - process it [17:08:18]wFMCommunicate request_size=4 [17:08:18]MH_SAM_APDU [17:08:18]CAPDU: 80 11 00 00 [17:08:18]Write to MH i2c: E2 08 00 10 39 80 11 00 00 00 00 00 00 C3 [17:08:18]Write i2c OK [17:08:18]MH_I2C_Read... [17:08:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:18]Read from MH i2c: E2 [17:08:18]MH_I2C_Read... [17:08:18]Read from MH i2c: E2 17 00 [17:08:18]MH_I2C_Read... [17:08:18]Read from MH i2c: E2 17 00 10 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 16 [17:08:18]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:18]wFMCommunicate OK [17:08:18]requested_item fd.num is exist - process it [17:08:18]SAM_PROTO_GetFieldsCounters [17:08:18]wFMCommunicate request_size=4 [17:08:18]MH_SAM_APDU [17:08:18]CAPDU: 80 13 00 00 [17:08:18]Write to MH i2c: E2 08 00 11 39 80 13 00 00 00 00 00 00 C6 [17:08:18]Write i2c OK [17:08:18]MH_I2C_Read... [17:08:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:18]Read from MH i2c: E2 [17:08:18]MH_I2C_Read... [17:08:18]Read from MH i2c: E2 62 00 [17:08:18]MH_I2C_Read... [17:08:19]Read from MH i2c: E2 62 00 11 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 F6 DA 02 00 0E 04 04 00 87 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 87 [17:08: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 F6 DA 02 00 0E 04 04 00 87 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 [17:08:19]wFMCommunicate OK [17:08:19]SAM_PROTO_GetFieldsCounters done [17:08:19]requested_item shift.num is exist - process it [17:08:19]requested_item shift.opened is exist - process it [17:08:19]req_shift_opened [17:08:19]FM_GetShiftState [17:08:19]SAM_PROTO_GetShiftState [17:08:19]wFMCommunicate request_size=4 [17:08:19]MH_SAM_APDU [17:08:19]CAPDU: 80 13 01 00 [17:08:19]Write to MH i2c: E2 08 00 12 39 80 13 01 00 00 00 00 00 C8 [17:08:19]Write i2c OK [17:08:19]MH_I2C_Read... [17:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:19]Read from MH i2c: E2 [17:08:19]MH_I2C_Read... [17:08:19]Read from MH i2c: E2 0E 00 [17:08:19]MH_I2C_Read... [17:08:19]Read from MH i2c: E2 0E 00 12 39 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 47 [17:08:19]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [17:08:19]wFMCommunicate OK [17:08:19]SAM_PROTO_GetShiftState done [17:08:19]FM_GetShiftState done [17:08:19]req_shift_opened done [17:08:19]requested_item shift.open_date is exist - process it [17:08:19]req_shift_open_date [17:08:19]req_shift_open_date done [17:08:19]produce_requested_data done [17:08:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187126,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [17:08:19]process_action_free close_receipt [17:08:19]json_value_free [17:08:19]json_value_free done [17:08:19]process_json_proto returns [17:08:19]Send response to host [17:08:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187126,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [17:08:19]free response buf [17:08:19]execute_script done [17:08:19]execute_script returns [17:08:19]free content buf [17:08:19]Sock 7.Close socket [17:08:19]Sock 7.Thread stoped [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:12]OFD Sender: No OFD packet to send [17:09:17]OFD Sender: No OFD packet to send [17:09:22]OFD Sender: No OFD packet to send [17:09:27]OFD Sender: No OFD packet to send [17:09:32]OFD Sender: No OFD packet to send [17:09:37]OFD Sender: No OFD packet to send [17:09:42]OFD Sender: No OFD packet to send [17:09:47]OFD Sender: No OFD packet to send [17:09:52]OFD Sender: No OFD packet to send [17:09:57]OFD Sender: No OFD packet to send [17:10:02]OFD Sender: No OFD packet to send [17:10:07]OFD Sender: No OFD packet to send [17:10:12]OFD Sender: No OFD packet to send [17:10:15]accept exits with 9 [17:10:15]New connection [17:10:15]New thread 3067022692 created [17:10:15]Thread 3066879332 joined [17:10:15]Waiting for new connection... [17:10:15] Sock 9.Parse request [17:10:15]Sock 9.Check first char [17:10:15]Sock 9.First char is OK [17:10:15]request: POST /json_proto HTTP/1.0 [17:10:15]Method: POST [17:10:15]URL: /json_proto [17:10:15]Method is POST - this is cgi request [17:10:15]url: /json_proto [17:10:15]query_string will be loaded in cgi processing [17:10:15]execute_cgi json_proto POST (null) [17:10:15]execute_cgi path=json_proto method=POST [17:10:15]POST find Content-Length [17:10:15]Host: 172.17.46.131:8080 [17:10:15]Content-Length: 792 [17:10:15]Content-Type: application/json [17:10:15] [17:10:15]POST finish read [17:10:15]Found Content-Length = 792 [17:10:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412281", "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" : 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\u000A92", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:15]execute_script... [17:10: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)412281", "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" : 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\u000A92", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:15]POST & json_proto [17:10:15]process_json_proto [17:10:15]json parsed OK: [17:10:15]protocol is kg_v1.0 [17:10:15]action value=close_receipt [17:10:15]process_action close_receipt [17:10:15]cmd_close_receipt [17:10:15]MH_GetDate [17:10:15]Write to MH i2c: F0 00 00 13 39 3B [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: F0 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: F0 09 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: F0 09 00 13 39 00 7C 10 B6 67 7E 41 4F 65 60 [17:10:15]GetLastDocTimeStamp 1739984899 [17:10:15]current date 1739985020 [17:10:15]FM_GetShiftState [17:10:15]SAM_PROTO_GetShiftState [17:10:15]wFMCommunicate request_size=4 [17:10:15]MH_SAM_APDU [17:10:15]CAPDU: 80 13 01 00 [17:10:15]Write to MH i2c: E2 08 00 14 39 80 13 01 00 00 00 00 00 CA [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 0E 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 0E 00 14 39 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 49 [17:10:15]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [17:10:15]wFMCommunicate OK [17:10:15]SAM_PROTO_GetShiftState done [17:10:15]FM_GetShiftState done [17:10:15]opened in 1739929631 [17:10:15]opened+sec_in_day 1740016031 [17:10:15]quantity*price = 0 [17:10:15]sum+1 = 1 [17:10: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 СНО: Общий режим Чек 193 19.02.2025 17:10 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 92 ФМ: 0000000000871826 ФД: 187127 ФПД: 230677191510844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T171020&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187127&fm=230677191510844&tin=02508201610067®Number=0000000000091857&sum=0 [17:10:17]StoreToDocumentArchive [17:10:17]shift 647 fd 187127 [17:10:17]save to /storage/0647/doc_00187127 [17:10:17]save last doc name /storage/0647/doc_00187127 to /storage/kkm_last_doc_name [17:10:17]save OK [17:10:17]Clear old archive folders... [17:10:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:10:17]tlvbuf is 00683AC0 [17:10:17]SAM_PROTO_ClearQueue [17:10:17]wFMCommunicate request_size=4 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 09 00 00 [17:10:17]Write to MH i2c: E2 08 00 21 39 80 09 00 00 00 00 00 00 CC [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 21 39 00 90 00 CE [17:10:17]RAPDU: 90 00 [17:10:17]wFMCommunicate OK [17:10:17]SAM_PROTO_ClearQueue done [17:10:17]KKMCreateOFDPacket [17:10:17]OFDProtocolAddRootSTLVToBuf [17:10:17]FM_MakeSignedData [17:10:17]FM_MakeSignedData [17:10:17]SAM_PROTO_SignData [17:10:17]wFMCommunicate request_size=4 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 0D 01 02 [17:10:17]Write to MH i2c: E2 08 00 22 39 80 0D 01 02 00 00 00 00 D4 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 22 39 00 90 00 CF [17:10:17]RAPDU: 90 00 [17:10:17]wFMCommunicate OK [17:10:17]wFMCommunicate request_size=255 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 C1 00 00 00 F4 03 04 00 7C 10 B6 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 F7 DA 02 00 35 04 06 00 D1 CC B8 0E [17:10:17]Write to MH i2c: E2 02 01 23 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 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 C1 00 00 00 F4 03 04 00 7C 10 B6 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 F7 DA 02 00 35 04 06 00 D1 CC B8 0E 00 00 93 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 23 39 00 90 00 D0 [17:10:17]RAPDU: 90 00 [17:10:17]wFMCommunicate OK [17:10:17]wFMCommunicate request_size=7 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 0D 02 02 02 CB 3C [17:10:17]Write to MH i2c: E2 0A 00 24 39 80 0D 02 02 02 00 CB 3C 00 00 E2 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 03 00 24 39 00 90 00 D1 [17:10:17]RAPDU: 90 00 [17:10:17]wFMCommunicate OK [17:10:17]wFMCommunicate request_size=4 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 0D 03 02 [17:10:17]Write to MH i2c: E2 08 00 25 39 80 0D 03 02 00 00 00 00 D9 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 0B 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 0B 00 25 39 00 A5 02 68 D0 A0 0B DC D5 90 00 15 [17:10:17]RAPDU: A5 02 68 D0 A0 0B DC D5 90 00 [17:10:17]wFMCommunicate OK [17:10:17]SAM_PROTO_SignData done [17:10:17]FM_MakeSignedData done [17:10:17]CreateOFDProtocolMessage [17:10:17]wFMCommunicate request_size=4 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 11 00 00 [17:10:17]Write to MH i2c: E2 08 00 26 39 80 11 00 00 00 00 00 00 D9 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 17 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 17 00 26 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2C [17:10: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:10:17]wFMCommunicate OK [17:10:17]CreateOFDProtocolMessage done [17:10:17]OFDSenderStorePacket 187127 [17:10:17]StoreOFDPacket docnum=187127 [17:10: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 44 57 04 01 E5 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 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 C1 00 00 00 F4 03 04 00 7C 10 B6 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 F7 DA 02 00 35 04 06 00 D1 CC B8 0E CB 3C A5 02 68 D0 A0 0B DC D5 [17:10:17]CheckFolder [17:10:17]dirname=/storage/ofd_packets [17:10:17]CheckFolder done [17:10:17]ProducePacketName [17:10:17]name=ofd_packets/00187127 [17:10:17]NVStorageSaveData ofd_packets/00187127 [17:10:17]File name is /storage/ofd_packets/00187127 [17:10:17]Write 298 bytes [17:10:17]NVStorageSaveData done [17:10:17]OFDSenderStorePacket done [17:10:17]KKMCreateOFDPacket done [17:10:17]NVStorageSaveData kkm_last_timestamp [17:10:17]File name is /storage/kkm_last_timestamp [17:10:17]Write 4 bytes [17:10:17]NVStorageSaveData done [17:10:17]ExternCall_PrintAddStr [17:10:17]wPrintStart [17:10:17]Write to MH i2c: 01 00 00 27 39 60 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: 01 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: 01 07 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: 01 07 00 27 39 00 00 00 00 00 FF 0F 75 [17:10:17]RasterBufferAndPrint [17:10:17]line Счет N : (1)412281 [17:10:17]line ИНН: 02508201610067 [17:10:17]line Контрольно-Кассовый Чек [17:10:17]line ПРОДАЖА [17:10:17]line ТРК (МРК, ГНК) : 41 [17:10:17]line Товар: 2710194210 [17:10:17]line ДТ-К-2 [17:10:17]line 10.000 * 0.00 [17:10:17]line = 0.00 [17:10:17]line НДС 12% НСП 1% [17:10:17]line > о реализуемом товаре [17:10:17]line ИТОГО: 0.00 [17:10:17]line НСП 1% : 0.00 [17:10:17]line НДС 12% : 0.00 [17:10:17]line Наличными: 0.00 [17:10:17]line Безнал.: 0.00 [17:10:17]line Место: АЗС № 92 "Партнер Нефть" [17:10:17]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:10:17]line СНО: Общий режим [17:10:17]line Чек 193 19.02.2025 17:10 [17:10:17]line Смена: 647 ФФД: 1.0 [17:10:17]line ЗНМ: 0300000118 [17:10:17]line РНМ: 0000000000091857 [17:10:17]line Версия ККМ: 001 [17:10:17]line Талоны: Топливные Талоны [17:10:17]line 92 [17:10:17]line ФМ: 0000000000871826 [17:10:17]line ФД: 187127 [17:10:17]line ФПД: 230677191510844 [17:10:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T171020&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187127&fm=230677191510844&tin=02508201610067®Number=0000000000091857&sum=0 [17:10:17]OFD Sender: Processing packet 187127 [packets to send 49, broken 48] [17:10:17]ProducePacketName [17:10:17]name=ofd_packets/00187127 [17:10:17]OFD Sender: To server: pG, [17:10:17]CommunicateWithHost lk.salyk.kg:30040 [17:10:17]ConnectInit lk.salyk.kg [17:10:17]written 0, free lines is 4095 [17:10:18]Connected sock=10 [17:10: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 0C 01 00 00 44 57 04 01 E5 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 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 C1 00 00 00 F4 03 04 00 7C 10 B6 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 F7 DA 02 00 35 04 06 00 D1 CC B8 0E CB 3C A5 02 68 D0 A0 0B DC D5 [17:10:18]Write to MH i2c: 01 00 00 51 39 8A [17:10:18]Write i2c OK [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: 01 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: 01 07 00 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: 01 07 00 51 39 00 00 00 00 00 E8 0C 85 [17:10:18]RasterBufferAndPrint [17:10:18]line [17:10:18]line [17:10:18]line [17:10:18]line [17:10:18]line [17:10:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 written 0, free lines is 3329 [17:10:18]31 38 32 36 4F 00 00 00 B4 80 47 00 4E 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 F7 DA 02 00 F4 03 04 00 CF B6 B5 67 B6 04 01 00 00 5D 92 A2 EC 0E 4D 08 1E [17:10:18]CommunicateWithHost err = 0 [17:10:18]CheckOFDResponse [17:10:18]1017 (14) - 77093643461234 [17:10:18]1041 (16) - 0000000000871826 [17:10:18]1040 (4) - 187127 [17:10:18]1012 (4) - 19.02.2025 10:47 [17:10:18]1206 (1) - 0 [17:10:18]OFD Sender: Remove packet 187127 [17:10:18]ProducePacketName [17:10:18]name=ofd_packets/00187127 [17:10:18]NVStorageDeleteData [17:10:18]MH_Cut [17:10:18]Write to MH i2c: D1 01 00 58 39 01 63 [17:10:18]Write i2c OK [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: D1 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: D1 01 00 [17:10:18]MH_I2C_Read... [17:10:18]Read from MH i2c: D1 01 00 58 39 00 62 [17:10:18]Write to MH i2c: 01 00 00 59 39 92 [17:10:18]Write i2c OK [17:10:18]MH_I2C_Read... [17:10:18]OFD Sender: No OFD packet to send [17:10:18]*** Cut start [17:10:18]*** Partial cut [17:10:18]*** CUTSNS_PIN = 1 [17:10:19]*** CUTSNS_PIN = 0 [17:10:19]*** Brake cut motor [17:10:19]Read from MH i2c: 01 [17:10:19]MH_I2C_Read... [17:10:19]*** Stop cut motor [17:10:19]*** Cut end [17:10:19]Read from MH i2c: 01 07 00 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: 01 07 00 59 39 00 00 00 00 00 FF 0F A7 [17:10:19]process_action close_receipt done [17:10:19]requested_data is exist [17:10:19]produce_requested_data [17:10:19]requested_item fm.sn is exist - process it [17:10:19]wFMCommunicate request_size=4 [17:10:19]MH_SAM_APDU [17:10:19]CAPDU: 80 11 00 00 [17:10:19]Write to MH i2c: E2 08 00 5A 39 80 11 00 00 00 00 00 00 0D [17:10:19]Write i2c OK [17:10:19]MH_I2C_Read... [17:10:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:19]Read from MH i2c: E2 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 17 00 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 17 00 5A 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 60 [17:10:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:10:19]wFMCommunicate OK [17:10:19]requested_item fd.num is exist - process it [17:10:19]SAM_PROTO_GetFieldsCounters [17:10:19]wFMCommunicate request_size=4 [17:10:19]MH_SAM_APDU [17:10:19]CAPDU: 80 13 00 00 [17:10:19]Write to MH i2c: E2 08 00 5B 39 80 13 00 00 00 00 00 00 10 [17:10:19]Write i2c OK [17:10:19]MH_I2C_Read... [17:10:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:19]Read from MH i2c: E2 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 62 00 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 62 00 5B 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 F7 DA 02 00 0E 04 04 00 87 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 D5 [17:10: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 F7 DA 02 00 0E 04 04 00 87 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 [17:10:19]wFMCommunicate OK [17:10:19]SAM_PROTO_GetFieldsCounters done [17:10:19]requested_item shift.num is exist - process it [17:10:19]requested_item shift.opened is exist - process it [17:10:19]req_shift_opened [17:10:19]FM_GetShiftState [17:10:19]SAM_PROTO_GetShiftState [17:10:19]wFMCommunicate request_size=4 [17:10:19]MH_SAM_APDU [17:10:19]CAPDU: 80 13 01 00 [17:10:19]Write to MH i2c: E2 08 00 5C 39 80 13 01 00 00 00 00 00 12 [17:10:19]Write i2c OK [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 [17:10:19]MH_I2C_Read... [17:10:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:19]Read from MH i2c: E2 0E 00 [17:10:19]MH_I2C_Read... [17:10:19]Read from MH i2c: E2 0E 00 5C 39 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 91 [17:10:19]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [17:10:19]wFMCommunicate OK [17:10:19]SAM_PROTO_GetShiftState done [17:10:19]FM_GetShiftState done [17:10:19]req_shift_opened done [17:10:19]requested_item shift.open_date is exist - process it [17:10:19]req_shift_open_date [17:10:19]req_shift_open_date done [17:10:19]produce_requested_data done [17:10:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187127,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [17:10:19]process_action_free close_receipt [17:10:19]json_value_free [17:10:19]json_value_free done [17:10:19]process_json_proto returns [17:10:19]Send response to host [17:10:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187127,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [17:10:19]free response buf [17:10:19]execute_script done [17:10:19]execute_script returns [17:10:19]free content buf [17:10:19]Sock 9.Close socket [17:10:19]Sock 9.Thread stoped [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:31]int [17:10:31]Write to MH i2c: 01 00 00 5D 39 96 [17:10:31]*** FLAG_PRN_PAP1 set [17:10:31]Write i2c OK [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: 01 [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: 01 07 00 [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: 01 07 00 5D 39 00 01 00 00 00 FF 0F AC [17:10:31]state=0 [17:10:31]No paper [17:10:31]int [17:10:31]Write to MH i2c: 01 00 00 5E 39 97 [17:10:31]*** FLAG_PRN_PAP1 reset [17:10:31]Write i2c OK [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: 01 [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: 01 07 00 [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: 01 07 00 5E 39 00 00 00 00 00 FF 0F AC [17:10:31]state=0 [17:10:31]int [17:10:31]Write to MH i2c: 01 00 00 5F 39 98 [17:10:31]*** FLAG_PRN_PAP1 set [17:10:31]Write i2c OK [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: 01 [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: 01 07 00 [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: 01 07 00 5F 39 00 01 00 00 00 FF 0F AE [17:10:31]state=0 [17:10:31]No paper [17:10:31]int [17:10:31]Write to MH i2c: 01 00 00 60 39 99 [17:10:31]*** FLAG_PRN_PAP2 set [17:10:31]Write i2c OK [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: 01 [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: 01 07 00 [17:10:31]MH_I2C_Read... [17:10:31]Read from MH i2c: 01 07 00 60 39 00 03 00 00 00 FF 0F B1 [17:10:31]state=0 [17:10:31]No paper [17:10:31]Cover opened [17:10:33]int [17:10:33]Write to MH i2c: 01 00 00 61 39 9A [17:10:33]*** FLAG_PRN_PAP2 reset [17:10:33]Write i2c OK [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: 01 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: 01 07 00 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: 01 07 00 61 39 00 01 00 00 00 FF 0F B0 [17:10:33]state=3 [17:10:33]No paper [17:10:33]Cover closed [17:10:33]int [17:10:33]Write to MH i2c: 01 00 00 62 39 9B [17:10:33]*** FLAG_PRN_PAP2 set [17:10:33]Write i2c OK [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: 01 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: 01 07 00 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: 01 07 00 62 39 00 03 00 00 00 FF 0F B3 [17:10:33]state=0 [17:10:33]No paper [17:10:33]Cover opened [17:10:33]int [17:10:33]Write to MH i2c: 01 00 00 63 39 9C [17:10:33]*** FLAG_PRN_PAP2 reset [17:10:33]Write i2c OK [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: 01 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: 01 07 00 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: 01 07 00 63 39 00 01 00 00 00 FF 0F B2 [17:10:33]state=3 [17:10:33]No paper [17:10:33]Cover closed [17:10:33]OFD Sender: No OFD packet to send [17:10:33]int [17:10:33]Write to MH i2c: 01 00 00 64 39 9D [17:10:33]*** FLAG_PRN_PAP2 set [17:10:33]Write i2c OK [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: 01 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: 01 07 00 [17:10:33]MH_I2C_Read... [17:10:33]Read from MH i2c: 01 07 00 64 39 00 03 00 00 00 FF 0F B5 [17:10:33]state=0 [17:10:33]No paper [17:10:33]Cover opened [17:10:38]OFD Sender: No OFD packet to send [17:10:38]Write to MH i2c: 01 00 00 65 39 9E [17:10:38]Write i2c OK [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: 01 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: 01 07 00 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: 01 07 00 65 39 00 03 00 00 00 FF 0F B6 [17:10:38]state=3 [17:10:38]No paper [17:10:38]Cover opened [17:10:43]OFD Sender: No OFD packet to send [17:10:43]Write to MH i2c: 01 00 00 66 39 9F [17:10:43]Write i2c OK [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: 01 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: 01 07 00 [17:10:43]MH_I2C_Read... [17:10:43]Read from MH i2c: 01 07 00 66 39 00 03 00 00 00 FF 0F B7 [17:10:43]state=3 [17:10:43]No paper [17:10:43]Cover opened [17:10:48]OFD Sender: No OFD packet to send [17:10:48]Write to MH i2c: 01 00 00 67 39 A0 [17:10:48]Write i2c OK [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: 01 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: 01 07 00 [17:10:48]MH_I2C_Read... [17:10:48]Read from MH i2c: 01 07 00 67 39 00 03 00 00 00 FF 0F B8 [17:10:48]state=3 [17:10:48]No paper [17:10:48]Cover opened [17:10:53]OFD Sender: No OFD packet to send [17:10:53]Write to MH i2c: 01 00 00 68 39 A1 [17:10:53]Write i2c OK [17:10:53]MH_I2C_Read... [17:10:53]Read from MH i2c: 01 [17:10:53]MH_I2C_Read... [17:10:53]Read from MH i2c: 01 07 00 [17:10:53]MH_I2C_Read... [17:10:53]Read from MH i2c: 01 07 00 68 39 00 03 00 00 00 FF 0F B9 [17:10:53]state=3 [17:10:53]No paper [17:10:53]Cover opened [17:10:54]int [17:10:54]Write to MH i2c: 01 00 00 69 39 A2 [17:10:54]*** FLAG_PRN_PAP2 reset [17:10:54]Write i2c OK [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: 01 [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: 01 07 00 [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: 01 07 00 69 39 00 01 00 00 00 FF 0F B8 [17:10:54]state=3 [17:10:54]No paper [17:10:54]Cover closed [17:10:54]int [17:10:54]Write to MH i2c: 01 00 00 6A 39 A3 [17:10:54]*** FLAG_PRN_PAP2 set [17:10:54]Write i2c OK [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: 01 [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: 01 07 00 [17:10:54]MH_I2C_Read... [17:10:54]Read from MH i2c: 01 07 00 6A 39 00 03 00 00 00 FF 0F BB [17:10:54]state=0 [17:10:54]No paper [17:10:54]Cover opened [17:10:56]int [17:10:56]Write to MH i2c: 01 00 00 6B 39 A4 [17:10:56]*** FLAG_PRN_PAP2 reset [17:10:56]Write i2c OK [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: 01 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: 01 07 00 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: 01 07 00 6B 39 00 01 00 00 00 FF 0F BA [17:10:56]state=3 [17:10:56]No paper [17:10:56]Cover closed [17:10:56]int [17:10:56]Write to MH i2c: 01 00 00 6C 39 A5 [17:10:56]*** FLAG_PRN_PAP1 reset [17:10:56]Write i2c OK [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: 01 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: 01 07 00 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: 01 07 00 6C 39 00 00 00 00 00 FF 0F BA [17:10:56]state=0 [17:10:56]int [17:10:56]Write to MH i2c: 01 00 00 6D 39 A6 [17:10:56]*** FLAG_PRN_PAP1 set [17:10:56]Write i2c OK [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: 01 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: 01 07 00 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: 01 07 00 6D 39 00 01 00 00 00 FF 0F BC [17:10:56]state=0 [17:10:56]No paper [17:10:56]int [17:10:56]Write to MH i2c: 01 00 00 6E 39 A7 [17:10:56]*** FLAG_PRN_PAP1 reset [17:10:56]Write i2c OK [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: 01 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: 01 07 00 [17:10:56]MH_I2C_Read... [17:10:56]Read from MH i2c: 01 07 00 6E 39 00 00 00 00 00 FF 0F BC [17:10:56]state=0 [17:10:58]int [17:10:58]Write to MH i2c: 01 00 00 6F 39 A8 [17:10:58]*** FLAG_PRN_KEY set [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 07 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 07 00 6F 39 00 08 00 00 00 FF 0F C5 [17:10:58]state=0 [17:10:58]Key pressed [17:10:58]Feed [17:10:58]Write to MH i2c: D8 00 00 70 39 80 [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: D8 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: D8 01 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: D8 01 00 70 39 00 81 [17:10:58]int [17:10:58]Write to MH i2c: 01 00 00 71 39 AA [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 07 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 07 00 71 39 00 48 00 00 00 3C 00 35 [17:10:58]state=2 [17:10:58]Key pressed [17:10:58]OFD Sender: No OFD packet to send [17:10:58]int [17:10:58]Write to MH i2c: 01 00 00 72 39 AB [17:10:58]*** FLAG_PRN_PAP1 set [17:10:58]Write i2c OK [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 [17:10:58]MH_I2C_Read... [17:10:58]*** FLAG_PRN_PAP1 reset [17:10:58]Read from MH i2c: 01 07 00 [17:10:58]MH_I2C_Read... [17:10:58]Read from MH i2c: 01 07 00 72 39 00 48 00 00 00 3C 00 36 [17:10:58]state=2 [17:10:58]Key pressed [17:10:59]int [17:10:59]Write to MH i2c: 01 00 00 73 39 AC [17:10:59]*** FLAG_PRN_KEY reset [17:10:59]Write i2c OK [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: 01 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: 01 07 00 [17:10:59]MH_I2C_Read... [17:10:59]Read from MH i2c: 01 07 00 73 39 00 00 00 00 00 F6 0F B8 [17:10:59]state=2 [17:10:59]Stop feed [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:33]OFD Sender: No OFD packet to send [17:13:38]OFD Sender: No OFD packet to send [17:13: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:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:29]OFD Sender: No OFD packet to send [17:16:34]OFD Sender: No OFD packet to send [17:16:39]OFD Sender: No OFD packet to send [17:16:44]OFD Sender: No OFD packet to send [17:16:49]OFD Sender: No OFD packet to send [17:16:54]OFD Sender: No OFD packet to send [17:16:59]OFD Sender: No OFD packet to send [17:17:04]OFD Sender: No OFD packet to send [17:17:09]OFD Sender: No OFD packet to send [17:17:14]OFD Sender: No OFD packet to send [17:17:19]OFD Sender: No OFD packet to send [17:17:24]OFD Sender: No OFD packet to send [17:17:29]OFD Sender: No OFD packet to send [17:17:34]OFD Sender: No OFD packet to send [17:17:39]OFD Sender: No OFD packet to send [17:17:44]OFD Sender: No OFD packet to send [17:17:49]OFD Sender: No OFD packet to send [17:17:54]OFD Sender: No OFD packet to send [17:17:59]OFD Sender: No OFD packet to send [17:18:04]OFD Sender: No OFD packet to send [17:18:09]OFD Sender: No OFD packet to send [17:18:14]OFD Sender: No OFD packet to send [17:18:19]OFD Sender: No OFD packet to send [17:18:24]OFD Sender: No OFD packet to send [17:18:29]OFD Sender: No OFD packet to send [17:18:34]OFD Sender: No OFD packet to send [17:18:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:49]OFD Sender: No OFD packet to send [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [17:19:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:19]OFD Sender: No OFD packet to send [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:59]OFD Sender: No OFD packet to send [17:26:04]OFD Sender: No OFD packet to send [17:26:09]OFD Sender: No OFD packet to send [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]accept exits with 7 [17:27:04]New connection [17:27:04]New thread 3066879332 created [17:27:04]Thread 3067022692 joined [17:27:04]Waiting for new connection... [17:27:04] Sock 7.Parse request [17:27:04]Sock 7.Check first char [17:27:04]Sock 7.First char is OK [17:27:04]request: POST /json_proto HTTP/1.0 [17:27:04]Method: POST [17:27:04]URL: /json_proto [17:27:04]Method is POST - this is cgi request [17:27:04]url: /json_proto [17:27:04]query_string will be loaded in cgi processing [17:27:04]execute_cgi json_proto POST (null) [17:27:04]execute_cgi path=json_proto method=POST [17:27:04]POST find Content-Length [17:27:04]Host: 172.17.46.131:8080 [17:27:04]Content-Length: 673 [17:27:04]Content-Type: application/json [17:27:04] [17:27:04]POST finish read [17:27:04]Found Content-Length = 673 [17:27:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412282", "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" ] } } [17:27:04]execute_script... [17: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)412282", "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" ] } } [17:27:04]POST & json_proto [17:27:04]process_json_proto [17:27:04]json parsed OK: [17:27:04]protocol is kg_v1.0 [17:27:04]action value=close_receipt [17:27:04]process_action close_receipt [17:27:04]cmd_close_receipt [17:27:04]MH_GetDate [17:27:04]Write to MH i2c: F0 00 00 74 39 9C [17:27:04]Write i2c OK [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: F0 [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: F0 09 00 [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: F0 09 00 74 39 00 6D 14 B6 67 7E 41 4F 65 B6 [17:27:04]GetLastDocTimeStamp 1739985020 [17:27:04]current date 1739986029 [17:27:04]FM_GetShiftState [17:27:04]SAM_PROTO_GetShiftState [17:27:04]wFMCommunicate request_size=4 [17:27:04]MH_SAM_APDU [17:27:04]CAPDU: 80 13 01 00 [17:27:04]Write to MH i2c: E2 08 00 75 39 80 13 01 00 00 00 00 00 2B [17:27:04]Write i2c OK [17:27:04]MH_I2C_Read... [17:27:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:04]Read from MH i2c: E2 [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: E2 0E 00 [17:27:04]MH_I2C_Read... [17:27:04]Read from MH i2c: E2 0E 00 75 39 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 AA [17:27:04]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [17:27:04]wFMCommunicate OK [17:27:04]SAM_PROTO_GetShiftState done [17:27:04]FM_GetShiftState done [17:27:04]opened in 1739929631 [17:27:04]opened+sec_in_day 1740016031 [17:27:04]quantity*price = 50021 [17:27:04]sum+1 = 50022 [17:27:04]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 СНО: Общий режим Чек 194 19.02.2025 17:27 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187128 ФПД: 214537866987377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T172709&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187128&fm=214537866987377&tin=02508201610067®Number=0000000000091857&sum=50000 [17:27:05]StoreToDocumentArchive [17:27:05]shift 647 fd 187128 [17:27:05]save to /storage/0647/doc_00187128 [17:27:05]save last doc name /storage/0647/doc_00187128 to /storage/kkm_last_doc_name [17:27:05]save OK [17:27:05]Clear old archive folders... [17:27:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:27:05]tlvbuf is 006FC240 [17:27:05]SAM_PROTO_ClearQueue [17:27:05]wFMCommunicate request_size=4 [17:27:05]MH_SAM_APDU [17:27:05]CAPDU: 80 09 00 00 [17:27:05]Write to MH i2c: E2 08 00 82 39 80 09 00 00 00 00 00 00 2D [17:27:05]Write i2c OK [17:27:05]MH_I2C_Read... [17:27:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:05]Read from MH i2c: E2 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 82 39 00 90 00 2F [17:27:05]RAPDU: 90 00 [17:27:05]wFMCommunicate OK [17:27:05]SAM_PROTO_ClearQueue done [17:27:05]KKMCreateOFDPacket [17:27:05]OFDProtocolAddRootSTLVToBuf [17:27:05]FM_MakeSignedData [17:27:05]FM_MakeSignedData [17:27:05]SAM_PROTO_SignData [17:27:05]wFMCommunicate request_size=4 [17:27:05]MH_SAM_APDU [17:27:05]CAPDU: 80 0D 01 02 [17:27:05]Write to MH i2c: E2 08 00 83 39 80 0D 01 02 00 00 00 00 35 [17:27:05]Write i2c OK [17:27:05]MH_I2C_Read... [17:27:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:05]Read from MH i2c: E2 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 [17:27:05]MH_I2C_Read... [17:27:05]Read from MH i2c: E2 03 00 83 39 00 90 00 30 [17:27:05]RAPDU: 90 00 [17:27:05]wFMCommunicate OK [17:27:05]wFMCommunicate request_size=255 [17:27:05]MH_SAM_APDU [17:27:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C2 00 00 00 F4 03 04 00 6D 14 B6 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 F8 DA 02 00 35 04 06 00 C3 1E FD 5A [17:27:05]Write to MH i2c: E2 02 01 84 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 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 C2 00 00 00 F4 03 04 00 6D 14 B6 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 F8 DA 02 00 35 04 06 00 C3 1E FD 5A 00 00 E6 [17:27:05]Write i2c OK [17:27:05]MH_I2C_Read... [17:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:06]Read from MH i2c: E2 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 03 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 03 00 84 39 00 90 00 31 [17:27:06]RAPDU: 90 00 [17:27:06]wFMCommunicate OK [17:27:06]wFMCommunicate request_size=7 [17:27:06]MH_SAM_APDU [17:27:06]CAPDU: 80 0D 02 02 02 47 71 [17:27:06]Write to MH i2c: E2 0A 00 85 39 80 0D 02 02 02 00 47 71 00 00 F4 [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:06]Read from MH i2c: E2 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 03 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 03 00 85 39 00 90 00 32 [17:27:06]RAPDU: 90 00 [17:27:06]wFMCommunicate OK [17:27:06]wFMCommunicate request_size=4 [17:27:06]MH_SAM_APDU [17:27:06]CAPDU: 80 0D 03 02 [17:27:06]Write to MH i2c: E2 08 00 86 39 80 0D 03 02 00 00 00 00 3A [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:06]Read from MH i2c: E2 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 0B 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 0B 00 86 39 00 32 13 96 C5 66 2C D3 98 90 00 D8 [17:27:06]RAPDU: 32 13 96 C5 66 2C D3 98 90 00 [17:27:06]wFMCommunicate OK [17:27:06]SAM_PROTO_SignData done [17:27:06]FM_MakeSignedData done [17:27:06]CreateOFDProtocolMessage [17:27:06]wFMCommunicate request_size=4 [17:27:06]MH_SAM_APDU [17:27:06]CAPDU: 80 11 00 00 [17:27:06]Write to MH i2c: E2 08 00 87 39 80 11 00 00 00 00 00 00 3A [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:06]Read from MH i2c: E2 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 17 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: E2 17 00 87 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8D [17:27: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:27:06]wFMCommunicate OK [17:27:06]CreateOFDProtocolMessage done [17:27:06]OFDSenderStorePacket 187128 [17:27:06]StoreOFDPacket docnum=187128 [17:27: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 0C 01 00 00 3C FE 04 01 DE 66 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C2 00 00 00 F4 03 04 00 6D 14 B6 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 F8 DA 02 00 35 04 06 00 C3 1E FD 5A 47 71 32 13 96 C5 66 2C D3 98 [17:27:06]CheckFolder [17:27:06]dirname=/storage/ofd_packets [17:27:06]CheckFolder done [17:27:06]ProducePacketName [17:27:06]name=ofd_packets/00187128 [17:27:06]NVStorageSaveData ofd_packets/00187128 [17:27:06]File name is /storage/ofd_packets/00187128 [17:27:06]Write 298 bytes [17:27:06]NVStorageSaveData done [17:27:06]OFDSenderStorePacket done [17:27:06]KKMCreateOFDPacket done [17:27:06]NVStorageSaveData kkm_last_timestamp [17:27:06]File name is /storage/kkm_last_timestamp [17:27:06]Write 4 bytes [17:27:06]NVStorageSaveData done [17:27:06]ExternCall_PrintAddStr [17:27:06]wPrintStart [17:27:06]Write to MH i2c: 01 00 00 88 39 C1 [17:27:06]Write i2c OK [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: 01 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: 01 07 00 [17:27:06]MH_I2C_Read... [17:27:06]Read from MH i2c: 01 07 00 88 39 00 00 00 00 00 FF 0F D6 [17:27:06]RasterBufferAndPrint [17:27:06]line Счет N : (1)412282 [17:27:06]line ИНН: 02508201610067 [17:27:06]line Контрольно-Кассовый Чек [17:27:06]line ПРОДАЖА [17:27:06]line ТРК (МРК, ГНК) : 6 [17:27:06]line Товар: 2710194210 [17:27:06]line ДТ-К-5 [17:27:06]line 6.890 * 72.60 [17:27:06]line = 500.21 [17:27:06]line НДС 12% НСП 1% [17:27:06]line > о реализуемом товаре [17:27:06]line ОКРУГЛЕНИЕ: -0.21 [17:27:06]line ИТОГО: 500.00 [17:27:06]line Внесено: 500.00 [17:27:06]line СДАЧА: 0.00 [17:27:06]line НСП 1% : 4.43 [17:27:06]line НДС 12% : 53.12 [17:27:06]line Наличными: 500.00 [17:27:06]line Безнал.: 0.00 [17:27:06]line Место: АЗС № 92 "Партнер Нефть" [17:27:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:27:06]line СНО: Общий режим [17:27:06]line Чек 194 19.02.2025 17:27 [17:27:06]line Смена: 647 ФФД: 1.0 [17:27:06]line ЗНМ: 0300000118 [17:27:06]line РНМ: 0000000000091857 [17:27:06]line Версия ККМ: 001 [17:27:06]line ФМ: 0000000000871826 [17:27:06]line ФД: 187128 [17:27:06]line ФПД: 214537866987377 [17:27:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T172709&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187128&fm=214537866987377&tin=02508201610067®Number=0000000000091857&sum=50000 [17:27:06]OFD Sender: Processing packet 187128 [packets to send 49, broken 48] [17:27:06]ProducePacketName [17:27:06]name=ofd_packets/00187128 [17:27:06]OFD Sender: To server: pG, [17:27:06]CommunicateWithHost lk.salyk.kg:30040 [17:27:06]ConnectInit lk.salyk.kg [17:27:06]written 0, free lines is 4095 [17:27:06]Connected sock=10 [17: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 0C 01 00 00 3C FE 04 01 DE 66 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 C2 00 00 00 F4 03 04 00 6D 14 B6 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 F8 DA 02 00 35 04 06 00 C3 1E FD 5A 47 71 32 13 96 C5 66 2C D3 98 [17:27: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 CA DC 47 00 98 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 F8 DA 02 00 F4 03 04 00 C0 BA B5 67 B6 04 01 00 00 5D 71 1C 5B C0 A0 2C DA [17:27:07]CommunicateWithHost err = 0 [17:27:07]CheckOFDResponse [17:27:07]1017 (14) - 77093643461234 [17:27:07]1041 (16) - 0000000000871826 [17:27:07]1040 (4) - 187128 [17:27:07]1012 (4) - 19.02.2025 11:04 [17:27:07]1206 (1) - 0 [17:27:07]OFD Sender: Remove packet 187128 [17:27:07]ProducePacketName [17:27:07]name=ofd_packets/00187128 [17:27:07]NVStorageDeleteData [17:27:07]Write to MH i2c: 01 00 00 B3 39 EC [17:27:07]Write i2c OK [17:27:07]MH_I2C_Read... [17:27:07]Read from MH i2c: 01 [17:27:07]MH_I2C_Read... [17:27:07]Read from MH i2c: 01 07 00 [17:27:07]MH_I2C_Read... [17:27:07]Read from MH i2c: 01 07 00 B3 39 00 00 00 00 00 F6 0C F5 [17:27:07]RasterBufferAndPrint [17:27:07]line [17:27:07]line [17:27:07]line [17:27:07]line [17:27:07]line [17:27:07]written 0, free lines is 3328 [17:27:07]MH_Cut [17:27:07]Write to MH i2c: D1 01 00 BA 39 01 C5 [17:27:07]Write i2c OK [17:27:07]MH_I2C_Read... [17:27:07]Read from MH i2c: D1 [17:27:07]MH_I2C_Read... [17:27:07]Read from MH i2c: D1 01 00 [17:27:07]MH_I2C_Read... [17:27:07]Read from MH i2c: D1 01 00 BA 39 00 C4 [17:27:07]Write to MH i2c: 01 00 00 BB 39 F4 [17:27:07]Write i2c OK [17:27:07]MH_I2C_Read... [17:27:07]OFD Sender: No OFD packet to send [17:27:07]*** Cut start [17:27:07]*** Partial cut [17:27:07]*** CUTSNS_PIN = 1 [17:27:07]*** CUTSNS_PIN = 0 [17:27:08]*** Brake cut motor [17:27:08]Read from MH i2c: 01 [17:27:08]MH_I2C_Read... [17:27:08]*** Stop cut motor [17:27:08]*** Cut end [17:27:08]Read from MH i2c: 01 07 00 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: 01 07 00 BB 39 00 00 00 00 00 FF 0F 09 [17:27:08]process_action close_receipt done [17:27:08]requested_data is exist [17:27:08]produce_requested_data [17:27:08]requested_item fm.sn is exist - process it [17:27:08]wFMCommunicate request_size=4 [17:27:08]MH_SAM_APDU [17:27:08]CAPDU: 80 11 00 00 [17:27:08]Write to MH i2c: E2 08 00 BC 39 80 11 00 00 00 00 00 00 6F [17:27:08]Write i2c OK [17:27:08]MH_I2C_Read... [17:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:08]Read from MH i2c: E2 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 17 00 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 17 00 BC 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C2 [17: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 [17:27:08]wFMCommunicate OK [17:27:08]requested_item fd.num is exist - process it [17:27:08]SAM_PROTO_GetFieldsCounters [17:27:08]wFMCommunicate request_size=4 [17:27:08]MH_SAM_APDU [17:27:08]CAPDU: 80 13 00 00 [17:27:08]Write to MH i2c: E2 08 00 BD 39 80 13 00 00 00 00 00 00 72 [17:27:08]Write i2c OK [17:27:08]MH_I2C_Read... [17:27:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:08]Read from MH i2c: E2 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 62 00 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 62 00 BD 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 F8 DA 02 00 0E 04 04 00 87 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 3B [17: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 F8 DA 02 00 0E 04 04 00 87 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 [17:27:08]wFMCommunicate OK [17:27:08]SAM_PROTO_GetFieldsCounters done [17:27:08]requested_item shift.num is exist - process it [17:27:08]requested_item shift.opened is exist - process it [17:27:08]req_shift_opened [17:27:08]FM_GetShiftState [17:27:08]SAM_PROTO_GetShiftState [17:27:08]wFMCommunicate request_size=4 [17:27:08]MH_SAM_APDU [17:27:08]CAPDU: 80 13 01 00 [17:27:08]Write to MH i2c: E2 08 00 BE 39 80 13 01 00 00 00 00 00 74 [17:27:08]Write i2c OK [17:27:08]MH_I2C_Read... [17:27:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:08]Read from MH i2c: E2 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 0E 00 [17:27:08]MH_I2C_Read... [17:27:08]Read from MH i2c: E2 0E 00 BE 39 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F3 [17:27:08]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [17:27:08]wFMCommunicate OK [17:27:08]SAM_PROTO_GetShiftState done [17:27:08]FM_GetShiftState done [17:27:08]req_shift_opened done [17:27:08]requested_item shift.open_date is exist - process it [17:27:08]req_shift_open_date [17:27:08]req_shift_open_date done [17:27:08]produce_requested_data done [17:27:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187128,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [17:27:08]process_action_free close_receipt [17:27:08]json_value_free [17:27:08]json_value_free done [17:27:08]process_json_proto returns [17:27:08]Send response to host [17:27:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187128,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [17:27:08]free response buf [17:27:08]execute_script done [17:27:08]execute_script returns [17:27:08]free content buf [17:27:08]Sock 7.Close socket [17:27:08]Sock 7.Thread stoped [17:27:12]OFD Sender: No OFD packet to send [17:27:17]OFD Sender: No OFD packet to send [17:27:22]OFD Sender: No OFD packet to send [17:27:27]OFD Sender: No OFD packet to send [17:27:32]OFD Sender: No OFD packet to send [17:27:37]OFD Sender: No OFD packet to send [17:27:42]OFD Sender: No OFD packet to send [17:27:47]OFD Sender: No OFD packet to send [17:27:52]OFD Sender: No OFD packet to send [17:27:57]OFD Sender: No OFD packet to send [17:28:02]OFD Sender: No OFD packet to send [17:28:07]OFD Sender: No OFD packet to send [17:28:12]OFD Sender: No OFD packet to send [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:07]OFD Sender: No OFD packet to send [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:22]OFD Sender: No OFD packet to send [17:29:27]OFD Sender: No OFD packet to send [17:29:32]OFD Sender: No OFD packet to send [17:29:37]OFD Sender: No OFD packet to send [17:29:42]OFD Sender: No OFD packet to send [17:29:47]OFD Sender: No OFD packet to send [17:29:52]OFD Sender: No OFD packet to send [17:29:57]OFD Sender: No OFD packet to send [17:30:02]OFD Sender: No OFD packet to send [17:30:07]OFD Sender: No OFD packet to send [17:30:12]OFD Sender: No OFD packet to send [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:42]OFD Sender: No OFD packet to send [17:30:47]OFD Sender: No OFD packet to send [17:30:52]OFD Sender: No OFD packet to send [17:30:57]OFD Sender: No OFD packet to send [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [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:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]accept exits with 9 [17:34:47]New connection [17:34:47]New thread 3067022692 created [17:34:47]Thread 3066879332 joined [17:34:47]Waiting for new connection... [17:34:47] Sock 9.Parse request [17:34:47]Sock 9.Check first char [17:34:47]Sock 9.First char is OK [17:34:47]request: POST /json_proto HTTP/1.0 [17:34:47]Method: POST [17:34:47]URL: /json_proto [17:34:47]Method is POST - this is cgi request [17:34:47]url: /json_proto [17:34:47]query_string will be loaded in cgi processing [17:34:47]execute_cgi json_proto POST (null) [17:34:47]execute_cgi path=json_proto method=POST [17:34:47]POST find Content-Length [17:34:47]Host: 172.17.46.131:8080 [17:34:47]Content-Length: 800 [17:34:47]Content-Type: application/json [17:34:47] [17:34:47]POST finish read [17:34:47]Found Content-Length = 800 [17:34:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412283", "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\u000A4175345", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:47]execute_script... [17:34: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)412283", "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\u000A4175345", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:47]POST & json_proto [17:34:47]process_json_proto [17:34:47]json parsed OK: [17:34:47]protocol is kg_v1.0 [17:34:47]action value=close_receipt [17:34:47]process_action close_receipt [17:34:47]cmd_close_receipt [17:34:47]MH_GetDate [17:34:47]Write to MH i2c: F0 00 00 BF 39 E7 [17:34:47]Write i2c OK [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: F0 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: F0 09 00 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: F0 09 00 BF 39 00 3B 16 B6 67 7E 41 4F 65 D1 [17:34:47]GetLastDocTimeStamp 1739986029 [17:34:47]current date 1739986491 [17:34:47]FM_GetShiftState [17:34:47]SAM_PROTO_GetShiftState [17:34:47]wFMCommunicate request_size=4 [17:34:47]MH_SAM_APDU [17:34:47]CAPDU: 80 13 01 00 [17:34:47]Write to MH i2c: E2 08 00 C0 39 80 13 01 00 00 00 00 00 76 [17:34:47]Write i2c OK [17:34:47]MH_I2C_Read... [17:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:47]Read from MH i2c: E2 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: E2 0E 00 [17:34:47]MH_I2C_Read... [17:34:47]Read from MH i2c: E2 0E 00 C0 39 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F5 [17:34:47]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [17:34:47]wFMCommunicate OK [17:34:47]SAM_PROTO_GetShiftState done [17:34:47]FM_GetShiftState done [17:34:47]opened in 1739929631 [17:34:47]opened+sec_in_day 1740016031 [17:34:47]quantity*price = 0 [17:34:47]sum+1 = 1 [17:34: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 СНО: Общий режим Чек 195 19.02.2025 17:34 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4175345 ФМ: 0000000000871826 ФД: 187129 ФПД: 162244704466772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T173451&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187129&fm=162244704466772&tin=02508201610067®Number=0000000000091857&sum=0 [17:34:48]StoreToDocumentArchive [17:34:48]shift 647 fd 187129 [17:34:48]save to /storage/0647/doc_00187129 [17:34:48]save last doc name /storage/0647/doc_00187129 to /storage/kkm_last_doc_name [17:34:48]save OK [17:34:48]Clear old archive folders... [17:34:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:34:48]tlvbuf is 005BEAD0 [17:34:48]SAM_PROTO_ClearQueue [17:34:48]wFMCommunicate request_size=4 [17:34:48]MH_SAM_APDU [17:34:48]CAPDU: 80 09 00 00 [17:34:48]Write to MH i2c: E2 08 00 CD 39 80 09 00 00 00 00 00 00 78 [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 CD 39 00 90 00 7A [17:34:48]RAPDU: 90 00 [17:34:48]wFMCommunicate OK [17:34:48]SAM_PROTO_ClearQueue done [17:34:48]KKMCreateOFDPacket [17:34:48]OFDProtocolAddRootSTLVToBuf [17:34:48]FM_MakeSignedData [17:34:48]FM_MakeSignedData [17:34:48]SAM_PROTO_SignData [17:34:48]wFMCommunicate request_size=4 [17:34:48]MH_SAM_APDU [17:34:48]CAPDU: 80 0D 01 02 [17:34:48]Write to MH i2c: E2 08 00 CE 39 80 0D 01 02 00 00 00 00 80 [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:48]Read from MH i2c: E2 03 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 CE 39 00 90 00 7B [17:34:48]RAPDU: 90 00 [17:34:48]wFMCommunicate OK [17:34:48]wFMCommunicate request_size=255 [17:34:48]MH_SAM_APDU [17:34: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 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 C3 00 00 00 F4 03 04 00 3B 16 B6 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 F9 DA 02 00 35 04 06 00 93 [17:34:48]Write to MH i2c: E2 02 01 CF 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 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 C3 00 00 00 F4 03 04 00 3B 16 B6 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 F9 DA 02 00 35 04 06 00 93 00 00 1C [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 CF 39 00 90 00 7C [17:34:48]RAPDU: 90 00 [17:34:48]wFMCommunicate OK [17:34:48]wFMCommunicate request_size=10 [17:34:48]MH_SAM_APDU [17:34:48]CAPDU: 80 0D 02 02 05 8F 89 F9 F7 54 [17:34:48]Write to MH i2c: E2 0D 00 D0 39 80 0D 02 02 05 00 8F 89 F9 F7 54 00 00 E9 [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 03 00 D0 39 00 90 00 7D [17:34:48]RAPDU: 90 00 [17:34:48]wFMCommunicate OK [17:34:48]wFMCommunicate request_size=4 [17:34:48]MH_SAM_APDU [17:34:48]CAPDU: 80 0D 03 02 [17:34:48]Write to MH i2c: E2 08 00 D1 39 80 0D 03 02 00 00 00 00 85 [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 0B 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 0B 00 D1 39 00 25 0C 90 34 47 F2 B7 12 90 00 7D [17:34:48]RAPDU: 25 0C 90 34 47 F2 B7 12 90 00 [17:34:48]wFMCommunicate OK [17:34:48]SAM_PROTO_SignData done [17:34:48]FM_MakeSignedData done [17:34:48]CreateOFDProtocolMessage [17:34:48]wFMCommunicate request_size=4 [17:34:48]MH_SAM_APDU [17:34:48]CAPDU: 80 11 00 00 [17:34:48]Write to MH i2c: E2 08 00 D2 39 80 11 00 00 00 00 00 00 85 [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 17 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 17 00 D2 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D8 [17:34:48]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:48]wFMCommunicate OK [17:34:48]CreateOFDProtocolMessage done [17:34:48]OFDSenderStorePacket 187129 [17:34:48]StoreOFDPacket docnum=187129 [17:34: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 B2 29 07 01 24 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C3 00 00 00 F4 03 04 00 3B 16 B6 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 F9 DA 02 00 35 04 06 00 93 8F 89 F9 F7 54 25 0C 90 34 47 F2 B7 12 [17:34:48]CheckFolder [17:34:48]dirname=/storage/ofd_packets [17:34:48]CheckFolder done [17:34:48]ProducePacketName [17:34:48]name=ofd_packets/00187129 [17:34:48]NVStorageSaveData ofd_packets/00187129 [17:34:48]File name is /storage/ofd_packets/00187129 [17:34:48]Write 301 bytes [17:34:48]NVStorageSaveData done [17:34:48]OFDSenderStorePacket done [17:34:48]KKMCreateOFDPacket done [17:34:48]NVStorageSaveData kkm_last_timestamp [17:34:48]File name is /storage/kkm_last_timestamp [17:34:48]Write 4 bytes [17:34:48]NVStorageSaveData done [17:34:48]ExternCall_PrintAddStr [17:34:48]wPrintStart [17:34:48]Write to MH i2c: 01 00 00 D3 39 0C [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: 01 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: 01 07 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: 01 07 00 D3 39 00 00 00 00 00 FF 0F 21 [17:34:48]RasterBufferAndPrint [17:34:48]line Счет N : (1)412283 [17:34:48]line ИНН: 02508201610067 [17:34:48]line Контрольно-Кассовый Чек [17:34:48]line ПРОДАЖА [17:34:48]line ТРК (МРК, ГНК) : 22 [17:34:48]line Товар: 2710124130 [17:34:48]line Аи-92-К-2 [17:34:48]line 20.000 * 0.00 [17:34:48]line = 0.00 [17:34:48]line НДС 12% НСП 1% [17:34:48]line > о реализуемом товаре [17:34:48]line ИТОГО: 0.00 [17:34:48]line НСП 1% : 0.00 [17:34:48]line НДС 12% : 0.00 [17:34:48]line Наличными: 0.00 [17:34:48]line Безнал.: 0.00 [17:34:48]line Место: АЗС № 92 "Партнер Нефть" [17:34:48]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:34:48]line СНО: Общий режим [17:34:48]line Чек 195 19.02.2025 17:34 [17:34:48]line Смена: 647 ФФД: 1.0 [17:34:48]line ЗНМ: 0300000118 [17:34:48]line РНМ: 0000000000091857 [17:34:48]line Версия ККМ: 001 [17:34:48]line Талоны: Топливные Талоны [17:34:48]line 4175345 [17:34:48]line ФМ: 0000000000871826 [17:34:48]line ФД: 187129 [17:34:48]line ФПД: 162244704466772 [17:34:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T173451&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187129&fm=162244704466772&tin=02508201610067®Number=0000000000091857&sum=0 [17:34:48]written 0, free lines is 4095 [17:34:48]OFD Sender: Processing packet 187129 [packets to send 49, broken 48] [17:34:48]ProducePacketName [17:34:48]name=ofd_packets/00187129 [17:34:48]OFD Sender: To server: pG, [17:34:48]CommunicateWithHost lk.salyk.kg:30040 [17:34:48]ConnectInit lk.salyk.kg [17:34:49]Connected sock=10 [17:34: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 B2 29 07 01 24 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C3 00 00 00 F4 03 04 00 3B 16 B6 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 F9 DA 02 00 35 04 06 00 93 8F 89 F9 F7 54 25 0C 90 34 47 F2 B7 12 [17:34:49]Write to MH i2c: 01 00 00 FD 39 36 [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: 01 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: 01 07 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: 01 07 00 FD 39 00 00 00 00 00 FF 0C 48 [17:34:49]RasterBufferAndPrint [17:34:49]line [17:34:49]line [17:34:49]line [17:34:49]line [17:34:49]line [17:34:49]written 0, free lines is 3333 [17:34:49]MH_Cut [17:34:49]Write to MH i2c: D1 01 00 04 3A 01 10 [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: D1 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: D1 01 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: D1 01 00 04 3A 00 0F [17:34:49]Write to MH i2c: 01 00 00 05 3A 3F [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34: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 CE 05 47 00 C2 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 F9 DA 02 00 F4 03 04 00 8E BC B5 67 B6 04 01 00 00 78 6F 20 94 37 AE 8B 90 [17:34:49]CommunicateWithHost err = 0 [17:34:49]CheckOFDResponse [17:34:49]1017 (14) - 77093643461234 [17:34:49]1041 (16) - 0000000000871826 [17:34:49]1040 (4) - 187129 [17:34:49]1012 (4) - 19.02.2025 11:12 [17:34:49]1206 (1) - 0 [17:34:49]OFD Sender: Remove packet 187129 [17:34:49]ProducePacketName [17:34:49]name=ofd_packets/00187129 [17:34:49]NVStorageDeleteData [17:34:49]OFD Sender: No OFD packet to send [17:34:49]*** Cut start [17:34:49]*** Partial cut [17:34:49]*** CUTSNS_PIN = 1 [17:34:50]*** CUTSNS_PIN = 0 [17:34:50]*** Brake cut motor [17:34:50]Read from MH i2c: 01 [17:34:50]MH_I2C_Read... [17:34:50]*** Stop cut motor [17:34:50]*** Cut end [17:34:50]Read from MH i2c: 01 07 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: 01 07 00 05 3A 00 00 00 00 00 FF 0F 54 [17:34:50]process_action close_receipt done [17:34:50]requested_data is exist [17:34:50]produce_requested_data [17:34:50]requested_item fm.sn is exist - process it [17:34:50]wFMCommunicate request_size=4 [17:34:50]MH_SAM_APDU [17:34:50]CAPDU: 80 11 00 00 [17:34:50]Write to MH i2c: E2 08 00 06 3A 80 11 00 00 00 00 00 00 BA [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:50]Read from MH i2c: E2 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 17 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 17 00 06 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0D [17:34: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:34:50]wFMCommunicate OK [17:34:50]requested_item fd.num is exist - process it [17:34:50]SAM_PROTO_GetFieldsCounters [17:34:50]wFMCommunicate request_size=4 [17:34:50]MH_SAM_APDU [17:34:50]CAPDU: 80 13 00 00 [17:34:50]Write to MH i2c: E2 08 00 07 3A 80 13 00 00 00 00 00 00 BD [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:50]Read from MH i2c: E2 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 62 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 62 00 07 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 F9 DA 02 00 0E 04 04 00 87 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 8A [17:34: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 F9 DA 02 00 0E 04 04 00 87 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 [17:34:50]wFMCommunicate OK [17:34:50]SAM_PROTO_GetFieldsCounters done [17:34:50]requested_item shift.num is exist - process it [17:34:50]requested_item shift.opened is exist - process it [17:34:50]req_shift_opened [17:34:50]FM_GetShiftState [17:34:50]SAM_PROTO_GetShiftState [17:34:50]wFMCommunicate request_size=4 [17:34:50]MH_SAM_APDU [17:34:50]CAPDU: 80 13 01 00 [17:34:50]Write to MH i2c: E2 08 00 08 3A 80 13 01 00 00 00 00 00 BF [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:50]Read from MH i2c: E2 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 0E 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 0E 00 08 3A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 3E [17:34:50]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [17:34:50]wFMCommunicate OK [17:34:50]SAM_PROTO_GetShiftState done [17:34:50]FM_GetShiftState done [17:34:50]req_shift_opened done [17:34:50]requested_item shift.open_date is exist - process it [17:34:50]req_shift_open_date [17:34:50]req_shift_open_date done [17:34:50]produce_requested_data done [17:34:50]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187129,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [17:34:50]process_action_free close_receipt [17:34:50]json_value_free [17:34:50]json_value_free done [17:34:50]process_json_proto returns [17:34:50]Send response to host [17:34:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187129,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [17:34:50]free response buf [17:34:50]execute_script done [17:34:50]execute_script returns [17:34:50]free content buf [17:34:50]Sock 9.Close socket [17:34:50]Sock 9.Thread stoped [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:22]accept exits with 7 [17:37:22]New connection [17:37:22]New thread 3066879332 created [17:37:22]Thread 3067022692 joined [17:37:22]Waiting for new connection... [17:37:22] Sock 7.Parse request [17:37:22]Sock 7.Check first char [17:37:22]Sock 7.First char is OK [17:37:22]request: POST /json_proto HTTP/1.0 [17:37:22]Method: POST [17:37:22]URL: /json_proto [17:37:22]Method is POST - this is cgi request [17:37:22]url: /json_proto [17:37:22]query_string will be loaded in cgi processing [17:37:22]execute_cgi json_proto POST (null) [17:37:22]execute_cgi path=json_proto method=POST [17:37:22]POST find Content-Length [17:37:22]Host: 172.17.46.131:8080 [17:37:22]Content-Length: 673 [17:37:22]Content-Type: application/json [17:37:22] [17:37:22]POST finish read [17:37:22]Found Content-Length = 673 [17:37:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412284", "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" : 7.580, "sum" : 550.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:22]execute_script... [17:37: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)412284", "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" : 7.580, "sum" : 550.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:22]POST & json_proto [17:37:22]process_json_proto [17:37:22]json parsed OK: [17:37:22]protocol is kg_v1.0 [17:37:22]action value=close_receipt [17:37:22]process_action close_receipt [17:37:22]cmd_close_receipt [17:37:22]MH_GetDate [17:37:22]Write to MH i2c: F0 00 00 09 3A 32 [17:37:22]Write i2c OK [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: F0 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: F0 09 00 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: F0 09 00 09 3A 00 D7 16 B6 67 7E 41 4F 65 B8 [17:37:22]GetLastDocTimeStamp 1739986491 [17:37:22]current date 1739986647 [17:37:22]FM_GetShiftState [17:37:22]SAM_PROTO_GetShiftState [17:37:22]wFMCommunicate request_size=4 [17:37:22]MH_SAM_APDU [17:37:22]CAPDU: 80 13 01 00 [17:37:22]Write to MH i2c: E2 08 00 0A 3A 80 13 01 00 00 00 00 00 C1 [17:37:22]Write i2c OK [17:37:22]MH_I2C_Read... [17:37:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:22]Read from MH i2c: E2 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: E2 0E 00 [17:37:22]MH_I2C_Read... [17:37:22]Read from MH i2c: E2 0E 00 0A 3A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 40 [17:37:22]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [17:37:22]wFMCommunicate OK [17:37:22]SAM_PROTO_GetShiftState done [17:37:22]FM_GetShiftState done [17:37:22]opened in 1739929631 [17:37:22]opened+sec_in_day 1740016031 [17:37:22]quantity*price = 55030 [17:37:22]sum+1 = 55032 [17:37:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.44 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 196 19.02.2025 17:37 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187130 ФПД: 119415001229968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T173727&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187130&fm=119415001229968&tin=02508201610067®Number=0000000000091857&sum=55000 [17:37:23]StoreToDocumentArchive [17:37:23]shift 647 fd 187130 [17:37:23]save to /storage/0647/doc_00187130 [17:37:23]save last doc name /storage/0647/doc_00187130 to /storage/kkm_last_doc_name [17:37:23]save OK [17:37:23]Clear old archive folders... [17:37:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:37:23]tlvbuf is 005F0460 [17:37:23]SAM_PROTO_ClearQueue [17:37:23]wFMCommunicate request_size=4 [17:37:23]MH_SAM_APDU [17:37:23]CAPDU: 80 09 00 00 [17:37:23]Write to MH i2c: E2 08 00 17 3A 80 09 00 00 00 00 00 00 C3 [17:37:23]Write i2c OK [17:37:23]MH_I2C_Read... [17:37:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:24]Read from MH i2c: E2 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 03 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 03 00 17 3A 00 90 00 C5 [17:37:24]RAPDU: 90 00 [17:37:24]wFMCommunicate OK [17:37:24]SAM_PROTO_ClearQueue done [17:37:24]KKMCreateOFDPacket [17:37:24]OFDProtocolAddRootSTLVToBuf [17:37:24]FM_MakeSignedData [17:37:24]FM_MakeSignedData [17:37:24]SAM_PROTO_SignData [17:37:24]wFMCommunicate request_size=4 [17:37:24]MH_SAM_APDU [17:37:24]CAPDU: 80 0D 01 02 [17:37:24]Write to MH i2c: E2 08 00 18 3A 80 0D 01 02 00 00 00 00 CB [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:24]Read from MH i2c: E2 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 03 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 03 00 18 3A 00 90 00 C6 [17:37:24]RAPDU: 90 00 [17:37:24]wFMCommunicate OK [17:37:24]wFMCommunicate request_size=255 [17:37:24]MH_SAM_APDU [17:37:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 1D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F7 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 D7 16 B6 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 FA DA 02 00 35 04 06 00 6C 9B 78 BA [17:37:24]Write to MH i2c: E2 02 01 19 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 9C 1D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F7 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 D7 16 B6 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 FA DA 02 00 35 04 06 00 6C 9B 78 BA 00 00 BF [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:24]Read from MH i2c: E2 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 03 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 03 00 19 3A 00 90 00 C7 [17:37:24]RAPDU: 90 00 [17:37:24]wFMCommunicate OK [17:37:24]wFMCommunicate request_size=7 [17:37:24]MH_SAM_APDU [17:37:24]CAPDU: 80 0D 02 02 02 AA 90 [17:37:24]Write to MH i2c: E2 0A 00 1A 3A 80 0D 02 02 02 00 AA 90 00 00 0C [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:24]Read from MH i2c: E2 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 03 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 03 00 1A 3A 00 90 00 C8 [17:37:24]RAPDU: 90 00 [17:37:24]wFMCommunicate OK [17:37:24]wFMCommunicate request_size=4 [17:37:24]MH_SAM_APDU [17:37:24]CAPDU: 80 0D 03 02 [17:37:24]Write to MH i2c: E2 08 00 1B 3A 80 0D 03 02 00 00 00 00 D0 [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:24]Read from MH i2c: E2 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 0B 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 0B 00 1B 3A 00 AD C5 94 B4 AA C4 B0 46 90 00 EF [17:37:24]RAPDU: AD C5 94 B4 AA C4 B0 46 90 00 [17:37:24]wFMCommunicate OK [17:37:24]SAM_PROTO_SignData done [17:37:24]FM_MakeSignedData done [17:37:24]CreateOFDProtocolMessage [17:37:24]wFMCommunicate request_size=4 [17:37:24]MH_SAM_APDU [17:37:24]CAPDU: 80 11 00 00 [17:37:24]Write to MH i2c: E2 08 00 1C 3A 80 11 00 00 00 00 00 00 D0 [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:24]Read from MH i2c: E2 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 17 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: E2 17 00 1C 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 23 [17:37:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:37:24]wFMCommunicate OK [17:37:24]CreateOFDProtocolMessage done [17:37:24]OFDSenderStorePacket 187130 [17:37:24]StoreOFDPacket docnum=187130 [17:37: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 0C 01 00 00 69 A7 04 01 53 AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 1D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F7 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 D7 16 B6 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 FA DA 02 00 35 04 06 00 6C 9B 78 BA AA 90 AD C5 94 B4 AA C4 B0 46 [17:37:24]CheckFolder [17:37:24]dirname=/storage/ofd_packets [17:37:24]CheckFolder done [17:37:24]ProducePacketName [17:37:24]name=ofd_packets/00187130 [17:37:24]NVStorageSaveData ofd_packets/00187130 [17:37:24]File name is /storage/ofd_packets/00187130 [17:37:24]Write 298 bytes [17:37:24]NVStorageSaveData done [17:37:24]OFDSenderStorePacket done [17:37:24]KKMCreateOFDPacket done [17:37:24]NVStorageSaveData kkm_last_timestamp [17:37:24]File name is /storage/kkm_last_timestamp [17:37:24]Write 4 bytes [17:37:24]NVStorageSaveData done [17:37:24]ExternCall_PrintAddStr [17:37:24]wPrintStart [17:37:24]Write to MH i2c: 01 00 00 1D 3A 57 [17:37:24]Write i2c OK [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: 01 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: 01 07 00 [17:37:24]MH_I2C_Read... [17:37:24]Read from MH i2c: 01 07 00 1D 3A 00 00 00 00 00 FF 0F 6C [17:37:24]RasterBufferAndPrint [17:37:24]line Счет N : (1)412284 [17:37:24]line ИНН: 02508201610067 [17:37:24]line Контрольно-Кассовый Чек [17:37:24]line ПРОДАЖА [17:37:24]line ТРК (МРК, ГНК) : 5 [17:37:24]line Товар: 2710194210 [17:37:24]line ДТ-К-5 [17:37:24]line 7.580 * 72.60 [17:37:24]line = 550.31 [17:37:24]line НДС 12% НСП 1% [17:37:24]line > о реализуемом товаре [17:37:24]line ОКРУГЛЕНИЕ: -0.31 [17:37:24]line ИТОГО: 550.00 [17:37:24]line Внесено: 550.00 [17:37:24]line СДАЧА: 0.00 [17:37:24]line НСП 1% : 4.87 [17:37:24]line НДС 12% : 58.44 [17:37:24]line Наличными: 550.00 [17:37:24]line Безнал.: 0.00 [17:37:24]line Место: АЗС № 92 "Партнер Нефть" [17:37:24]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:37:24]line СНО: Общий режим [17:37:24]line Чек 196 19.02.2025 17:37 [17:37:24]line Смена: 647 ФФД: 1.0 [17:37:24]line ЗНМ: 0300000118 [17:37:24]line РНМ: 0000000000091857 [17:37:24]line Версия ККМ: 001 [17:37:24]line ФМ: 0000000000871826 [17:37:24]line ФД: 187130 [17:37:24]line ФПД: 119415001229968 [17:37:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T173727&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187130&fm=119415001229968&tin=02508201610067®Number=0000000000091857&sum=55000 [17:37:24]OFD Sender: Processing packet 187130 [packets to send 49, broken 48] [17:37:24]ProducePacketName [17:37:24]name=ofd_packets/00187130 [17:37:24]OFD Sender: To server: pG, [17:37:24]CommunicateWithHost lk.salyk.kg:30040 [17:37:24]ConnectInit lk.salyk.kg [17:37:24]written 0, free lines is 4095 [17:37:24]Connected sock=10 [17:37: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 0C 01 00 00 69 A7 04 01 53 AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 1D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F7 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 D7 16 B6 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 FA DA 02 00 35 04 06 00 6C 9B 78 BA AA 90 AD C5 94 B4 AA C4 B0 46 [17:37:25]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 12 B3 47 00 58 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 FA DA 02 00 F4 03 04 00 2A BD B5 67 B6 04 01 00 00 FA B7 D5 73 5E BC 64 B9 [17:37:25]CommunicateWithHost err = 0 [17:37:25]CheckOFDResponse [17:37:25]1017 (14) - 77093643461234 [17:37:25]1041 (16) - 0000000000871826 [17:37:25]1040 (4) - 187130 [17:37:25]1012 (4) - 19.02.2025 11:14 [17:37:25]1206 (1) - 0 [17:37:25]OFD Sender: Remove packet 187130 [17:37:25]ProducePacketName [17:37:25]name=ofd_packets/00187130 [17:37:25]NVStorageDeleteData [17:37:25]Write to MH i2c: 01 00 00 48 3A 82 [17:37:25]Write i2c OK [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: 01 [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: 01 07 00 [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: 01 07 00 48 3A 00 00 00 00 00 F4 0C 89 [17:37:25]RasterBufferAndPrint [17:37:25]line [17:37:25]line [17:37:25]line [17:37:25]line [17:37:25]line [17:37:25]written 0, free lines is 3325 [17:37:25]MH_Cut [17:37:25]Write to MH i2c: D1 01 00 4F 3A 01 5B [17:37:25]Write i2c OK [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: D1 [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: D1 01 00 [17:37:25]MH_I2C_Read... [17:37:25]Read from MH i2c: D1 01 00 4F 3A 00 5A [17:37:25]Write to MH i2c: 01 00 00 50 3A 8A [17:37:25]Write i2c OK [17:37:25]MH_I2C_Read... [17:37:25]OFD Sender: No OFD packet to send [17:37:25]*** Cut start [17:37:25]*** Partial cut [17:37:25]*** CUTSNS_PIN = 1 [17:37:26]*** CUTSNS_PIN = 0 [17:37:26]*** Brake cut motor [17:37:26]Read from MH i2c: 01 [17:37:26]MH_I2C_Read... [17:37:26]*** Stop cut motor [17:37:26]*** Cut end [17:37:26]Read from MH i2c: 01 07 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: 01 07 00 50 3A 00 00 00 00 00 FF 0F 9F [17:37:26]process_action close_receipt done [17:37:26]requested_data is exist [17:37:26]produce_requested_data [17:37:26]requested_item fm.sn is exist - process it [17:37:26]wFMCommunicate request_size=4 [17:37:26]MH_SAM_APDU [17:37:26]CAPDU: 80 11 00 00 [17:37:26]Write to MH i2c: E2 08 00 51 3A 80 11 00 00 00 00 00 00 05 [17:37:26]Write i2c OK [17:37:26]MH_I2C_Read... [17:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:26]Read from MH i2c: E2 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 17 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 17 00 51 3A 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:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:37:26]wFMCommunicate OK [17:37:26]requested_item fd.num is exist - process it [17:37:26]SAM_PROTO_GetFieldsCounters [17:37:26]wFMCommunicate request_size=4 [17:37:26]MH_SAM_APDU [17:37:26]CAPDU: 80 13 00 00 [17:37:26]Write to MH i2c: E2 08 00 52 3A 80 13 00 00 00 00 00 00 08 [17:37:26]Write i2c OK [17:37:26]MH_I2C_Read... [17:37:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:26]Read from MH i2c: E2 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 62 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 62 00 52 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 FA DA 02 00 0E 04 04 00 87 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 D9 [17:37: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 FA DA 02 00 0E 04 04 00 87 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 [17:37:26]wFMCommunicate OK [17:37:26]SAM_PROTO_GetFieldsCounters done [17:37:26]requested_item shift.num is exist - process it [17:37:26]requested_item shift.opened is exist - process it [17:37:26]req_shift_opened [17:37:26]FM_GetShiftState [17:37:26]SAM_PROTO_GetShiftState [17:37:26]wFMCommunicate request_size=4 [17:37:26]MH_SAM_APDU [17:37:26]CAPDU: 80 13 01 00 [17:37:26]Write to MH i2c: E2 08 00 53 3A 80 13 01 00 00 00 00 00 0A [17:37:26]Write i2c OK [17:37:26]MH_I2C_Read... [17:37:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:26]Read from MH i2c: E2 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 0E 00 [17:37:26]MH_I2C_Read... [17:37:26]Read from MH i2c: E2 0E 00 53 3A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 89 [17:37:26]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [17:37:26]wFMCommunicate OK [17:37:26]SAM_PROTO_GetShiftState done [17:37:26]FM_GetShiftState done [17:37:26]req_shift_opened done [17:37:26]requested_item shift.open_date is exist - process it [17:37:26]req_shift_open_date [17:37:26]req_shift_open_date done [17:37:26]produce_requested_data done [17:37:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187130,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [17:37:26]process_action_free close_receipt [17:37:26]json_value_free [17:37:26]json_value_free done [17:37:26]process_json_proto returns [17:37:26]Send response to host [17:37:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187130,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [17:37:26]free response buf [17:37:26]execute_script done [17:37:26]execute_script returns [17:37:26]free content buf [17:37:26]Sock 7.Close socket [17:37:26]Sock 7.Thread stoped [17:37:30]OFD Sender: No OFD packet to send [17:37:35]OFD Sender: No OFD packet to send [17:37:40]OFD Sender: No OFD packet to send [17:37:45]OFD Sender: No OFD packet to send [17:37:50]OFD Sender: No OFD packet to send [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:26]OFD Sender: No OFD packet to send [17:44:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:11]OFD Sender: No OFD packet to send [17:45:16]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:51]accept exits with 9 [17:46:51]New connection [17:46:51]New thread 3067022692 created [17:46:51]Thread 3066879332 joined [17:46:51]Waiting for new connection... [17:46:51] Sock 9.Parse request [17:46:51]Sock 9.Check first char [17:46:51]Sock 9.First char is OK [17:46:51]request: POST /json_proto HTTP/1.0 [17:46:51]Method: POST [17:46:51]URL: /json_proto [17:46:51]Method is POST - this is cgi request [17:46:51]url: /json_proto [17:46:51]query_string will be loaded in cgi processing [17:46:51]execute_cgi json_proto POST (null) [17:46:51]execute_cgi path=json_proto method=POST [17:46:51]POST find Content-Length [17:46:51]Host: 172.17.46.131:8080 [17:46:51]Content-Length: 754 [17:46:51]Content-Type: application/json [17:46:51] [17:46:51]POST finish read [17:46:51]Found Content-Length = 754 [17:46:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412285", "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" : 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\u000A30086518", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:51]execute_script... [17:46: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)412285", "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" : 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\u000A30086518", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:51]POST & json_proto [17:46:51]process_json_proto [17:46:51]json parsed OK: [17:46:51]protocol is kg_v1.0 [17:46:51]action value=close_receipt [17:46:51]process_action close_receipt [17:46:51]cmd_close_receipt [17:46:51]MH_GetDate [17:46:51]Write to MH i2c: F0 00 00 54 3A 7D [17:46:51]Write i2c OK [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: F0 [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: F0 09 00 [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: F0 09 00 54 3A 00 0F 19 B6 67 7E 41 4F 65 3E [17:46:51]GetLastDocTimeStamp 1739986647 [17:46:51]current date 1739987215 [17:46:51]FM_GetShiftState [17:46:51]SAM_PROTO_GetShiftState [17:46:51]wFMCommunicate request_size=4 [17:46:51]MH_SAM_APDU [17:46:51]CAPDU: 80 13 01 00 [17:46:51]Write to MH i2c: E2 08 00 55 3A 80 13 01 00 00 00 00 00 0C [17:46:51]Write i2c OK [17:46:51]MH_I2C_Read... [17:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:51]Read from MH i2c: E2 [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: E2 0E 00 [17:46:51]MH_I2C_Read... [17:46:51]Read from MH i2c: E2 0E 00 55 3A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 8B [17:46:51]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [17:46:51]wFMCommunicate OK [17:46:51]SAM_PROTO_GetShiftState done [17:46:51]FM_GetShiftState done [17:46:51]opened in 1739929631 [17:46:51]opened+sec_in_day 1740016031 [17:46:51]quantity*price = 0 [17:46:51]sum+1 = 1 [17:46: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 СНО: Общий режим Чек 197 19.02.2025 17:46 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30086518 ФМ: 0000000000871826 ФД: 187131 ФПД: 115733904799301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T174655&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187131&fm=115733904799301&tin=02508201610067®Number=0000000000091857&sum=0 [17:46:52]StoreToDocumentArchive [17:46:52]shift 647 fd 187131 [17:46:52]save to /storage/0647/doc_00187131 [17:46:52]save last doc name /storage/0647/doc_00187131 to /storage/kkm_last_doc_name [17:46:52]save OK [17:46:52]Clear old archive folders... [17:46:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:52]tlvbuf is 006371E0 [17:46:52]SAM_PROTO_ClearQueue [17:46:52]wFMCommunicate request_size=4 [17:46:52]MH_SAM_APDU [17:46:52]CAPDU: 80 09 00 00 [17:46:52]Write to MH i2c: E2 08 00 62 3A 80 09 00 00 00 00 00 00 0E [17:46:52]Write i2c OK [17:46:52]MH_I2C_Read... [17:46:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:52]Read from MH i2c: E2 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: E2 03 00 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: E2 03 00 62 3A 00 90 00 10 [17:46:52]RAPDU: 90 00 [17:46:52]wFMCommunicate OK [17:46:52]SAM_PROTO_ClearQueue done [17:46:52]KKMCreateOFDPacket [17:46:52]OFDProtocolAddRootSTLVToBuf [17:46:52]FM_MakeSignedData [17:46:52]FM_MakeSignedData [17:46:52]SAM_PROTO_SignData [17:46:52]wFMCommunicate request_size=4 [17:46:52]MH_SAM_APDU [17:46:52]CAPDU: 80 0D 01 02 [17:46:52]Write to MH i2c: E2 08 00 63 3A 80 0D 01 02 00 00 00 00 16 [17:46:52]Write i2c OK [17:46:52]MH_I2C_Read... [17:46:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:52]Read from MH i2c: E2 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: E2 03 00 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: E2 03 00 63 3A 00 90 00 11 [17:46:52]RAPDU: 90 00 [17:46:52]wFMCommunicate OK [17:46:52]wFMCommunicate request_size=255 [17:46:52]MH_SAM_APDU [17:46: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 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 C5 00 00 00 F4 03 04 00 0F 19 B6 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 FB DA 02 00 35 04 06 00 69 [17:46:52]Write to MH i2c: E2 02 01 64 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 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 C5 00 00 00 F4 03 04 00 0F 19 B6 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 FB DA 02 00 35 04 06 00 69 00 00 08 [17:46:52]Write i2c OK [17:46:52]MH_I2C_Read... [17:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:52]Read from MH i2c: E2 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: E2 03 00 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: E2 03 00 64 3A 00 90 00 12 [17:46:52]RAPDU: 90 00 [17:46:52]wFMCommunicate OK [17:46:52]wFMCommunicate request_size=10 [17:46:52]MH_SAM_APDU [17:46:52]CAPDU: 80 0D 02 02 05 42 66 48 B6 45 [17:46:52]Write to MH i2c: E2 0D 00 65 3A 80 0D 02 02 05 00 42 66 48 B6 45 00 00 0E [17:46:52]Write i2c OK [17:46:52]MH_I2C_Read... [17:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:52]Read from MH i2c: E2 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: E2 03 00 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: E2 03 00 65 3A 00 90 00 13 [17:46:52]RAPDU: 90 00 [17:46:52]wFMCommunicate OK [17:46:52]wFMCommunicate request_size=4 [17:46:52]MH_SAM_APDU [17:46:52]CAPDU: 80 0D 03 02 [17:46:52]Write to MH i2c: E2 08 00 66 3A 80 0D 03 02 00 00 00 00 1B [17:46:52]Write i2c OK [17:46:52]MH_I2C_Read... [17:46:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:52]Read from MH i2c: E2 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: E2 0B 00 [17:46:52]MH_I2C_Read... [17:46:52]Read from MH i2c: E2 0B 00 66 3A 00 AB EF D7 90 EF 5C CF 67 90 00 9E [17:46:52]RAPDU: AB EF D7 90 EF 5C CF 67 90 00 [17:46:52]wFMCommunicate OK [17:46:52]SAM_PROTO_SignData done [17:46:52]FM_MakeSignedData done [17:46:52]CreateOFDProtocolMessage [17:46:52]wFMCommunicate request_size=4 [17:46:52]MH_SAM_APDU [17:46:52]CAPDU: 80 11 00 00 [17:46:52]Write to MH i2c: E2 08 00 67 3A 80 11 00 00 00 00 00 00 1B [17:46:52]Write i2c OK [17:46:52]MH_I2C_Read... [17:46:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:53]Read from MH i2c: E2 [17:46:53]MH_I2C_Read... [17:46:53]Read from MH i2c: E2 17 00 [17:46:53]MH_I2C_Read... [17:46:53]Read from MH i2c: E2 17 00 67 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6E [17:46: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:46:53]wFMCommunicate OK [17:46:53]CreateOFDProtocolMessage done [17:46:53]OFDSenderStorePacket 187131 [17:46:53]StoreOFDPacket docnum=187131 [17:46: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 06 54 07 01 11 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 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 C5 00 00 00 F4 03 04 00 0F 19 B6 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 FB DA 02 00 35 04 06 00 69 42 66 48 B6 45 AB EF D7 90 EF 5C CF 67 [17:46:53]CheckFolder [17:46:53]dirname=/storage/ofd_packets [17:46:53]CheckFolder done [17:46:53]ProducePacketName [17:46:53]name=ofd_packets/00187131 [17:46:53]NVStorageSaveData ofd_packets/00187131 [17:46:53]File name is /storage/ofd_packets/00187131 [17:46:53]Write 301 bytes [17:46:53]NVStorageSaveData done [17:46:53]OFDSenderStorePacket done [17:46:53]KKMCreateOFDPacket done [17:46:53]NVStorageSaveData kkm_last_timestamp [17:46:53]File name is /storage/kkm_last_timestamp [17:46:53]Write 4 bytes [17:46:53]NVStorageSaveData done [17:46:53]ExternCall_PrintAddStr [17:46:53]wPrintStart [17:46:53]Write to MH i2c: 01 00 00 68 3A A2 [17:46:53]Write i2c OK [17:46:53]MH_I2C_Read... [17:46:53]Read from MH i2c: 01 [17:46:53]MH_I2C_Read... [17:46:53]Read from MH i2c: 01 07 00 [17:46:53]MH_I2C_Read... [17:46:53]Read from MH i2c: 01 07 00 68 3A 00 00 00 00 00 FF 0F B7 [17:46:53]RasterBufferAndPrint [17:46:53]line Счет N : (1)412285 [17:46:53]line ИНН: 02508201610067 [17:46:53]line Контрольно-Кассовый Чек [17:46:53]line ПРОДАЖА [17:46:53]line ТРК (МРК, ГНК) : 22 [17:46:53]line Товар: 2710124130 [17:46:53]line Аи-92-К-2 [17:46:53]line 50.000 * 0.00 [17:46:53]line = 0.00 [17:46:53]line НДС 12% НСП 1% [17:46:53]line > о реализуемом товаре [17:46:53]line ИТОГО: 0.00 [17:46:53]line НСП 1% : 0.00 [17:46:53]line НДС 12% : 0.00 [17:46:53]line Наличными: 0.00 [17:46:53]line Безнал.: 0.00 [17:46:53]line Место: АЗС № 92 "Партнер Нефть" [17:46:53]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:46:53]line СНО: Общий режим [17:46:53]line Чек 197 19.02.2025 17:46 [17:46:53]line Смена: 647 ФФД: 1.0 [17:46:53]line ЗНМ: 0300000118 [17:46:53]line РНМ: 0000000000091857 [17:46:53]line Версия ККМ: 001 [17:46:53]line Талоны: ТК ГПНА Online [17:46:53]line 30086518 [17:46:53]line ФМ: 0000000000871826 [17:46:53]line ФД: 187131 [17:46:53]line ФПД: 115733904799301 [17:46:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T174655&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187131&fm=115733904799301&tin=02508201610067®Number=0000000000091857&sum=0 [17:46:53]OFD Sender: Processing packet 187131 [packets to send 49, broken 48] [17:46:53]ProducePacketName [17:46:53]name=ofd_packets/00187131 [17:46:53]OFD Sender: To server: pG, [17:46:53]CommunicateWithHost lk.salyk.kg:30040 [17:46:53]ConnectInit lk.salyk.kg [17:46:53]written 0, free lines is 4095 [17:46:53]Connected sock=10 [17:46: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 06 54 07 01 11 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 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 C5 00 00 00 F4 03 04 00 0F 19 B6 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 FB DA 02 00 35 04 06 00 69 42 66 48 B6 45 AB EF D7 90 EF 5C CF 67 [17:46: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 17 40 47 00 DA 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 FB DA 02 00 F4 03 04 00 63 BF B5 67 B6 04 01 00 00 04 EE ED 50 33 DC 90 C2 [17:46:53]CommunicateWithHost err = 0 [17:46:53]CheckOFDResponse [17:46:53]1017 (14) - 77093643461234 [17:46:53]1041 (16) - 0000000000871826 [17:46:53]1040 (4) - 187131 [17:46:53]1012 (4) - 19.02.2025 11:24 [17:46:53]1206 (1) - 0 [17:46:53]OFD Sender: Remove packet 187131 [17:46:53]ProducePacketName [17:46:53]name=ofd_packets/00187131 [17:46:53]NVStorageDeleteData [17:46:53]Write to MH i2c: 01 00 00 92 3A CC [17:46:53]Write i2c OK [17:46:53]MH_I2C_Read... [17:46:53]Read from MH i2c: 01 [17:46:53]MH_I2C_Read... [17:46:53]Read from MH i2c: 01 07 00 [17:46:53]MH_I2C_Read... [17:46:53]Read from MH i2c: 01 07 00 92 3A 00 00 00 00 00 08 0D E8 [17:46:53]RasterBufferAndPrint [17:46:53]line [17:46:53]line [17:46:53]line [17:46:53]line [17:46:53]line [17:46:53]written 0, free lines is 3343 [17:46:53]MH_Cut [17:46:53]Write to MH i2c: D1 01 00 99 3A 01 A5 [17:46:53]Write i2c OK [17:46:53]MH_I2C_Read... [17:46:53]Read from MH i2c: D1 [17:46:53]MH_I2C_Read... [17:46:53]Read from MH i2c: D1 01 00 [17:46:53]MH_I2C_Read... [17:46:53]Read from MH i2c: D1 01 00 99 3A 00 A4 [17:46:53]Write to MH i2c: 01 00 00 9A 3A D4 [17:46:53]Write i2c OK [17:46:53]MH_I2C_Read... [17:46:54]OFD Sender: No OFD packet to send [17:46:54]*** Cut start [17:46:54]*** Partial cut [17:46:54]*** CUTSNS_PIN = 1 [17:46:54]*** CUTSNS_PIN = 0 [17:46:54]*** Brake cut motor [17:46:55]Read from MH i2c: 01 [17:46:55]MH_I2C_Read... [17:46:55]*** Stop cut motor [17:46:55]*** Cut end [17:46:55]Read from MH i2c: 01 07 00 [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: 01 07 00 9A 3A 00 00 00 00 00 FF 0F E9 [17:46:55]process_action close_receipt done [17:46:55]requested_data is exist [17:46:55]produce_requested_data [17:46:55]requested_item fm.sn is exist - process it [17:46:55]wFMCommunicate request_size=4 [17:46:55]MH_SAM_APDU [17:46:55]CAPDU: 80 11 00 00 [17:46:55]Write to MH i2c: E2 08 00 9B 3A 80 11 00 00 00 00 00 00 4F [17:46:55]Write i2c OK [17:46:55]MH_I2C_Read... [17:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:55]Read from MH i2c: E2 [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: E2 17 00 [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: E2 17 00 9B 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A2 [17: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 [17:46:55]wFMCommunicate OK [17:46:55]requested_item fd.num is exist - process it [17:46:55]SAM_PROTO_GetFieldsCounters [17:46:55]wFMCommunicate request_size=4 [17:46:55]MH_SAM_APDU [17:46:55]CAPDU: 80 13 00 00 [17:46:55]Write to MH i2c: E2 08 00 9C 3A 80 13 00 00 00 00 00 00 52 [17:46:55]Write i2c OK [17:46:55]MH_I2C_Read... [17:46:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:55]Read from MH i2c: E2 [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: E2 62 00 [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: E2 62 00 9C 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 FB DA 02 00 0E 04 04 00 87 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 27 [17:46:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 [17:46:55]wFMCommunicate OK [17:46:55]SAM_PROTO_GetFieldsCounters done [17:46:55]requested_item shift.num is exist - process it [17:46:55]requested_item shift.opened is exist - process it [17:46:55]req_shift_opened [17:46:55]FM_GetShiftState [17:46:55]SAM_PROTO_GetShiftState [17:46:55]wFMCommunicate request_size=4 [17:46:55]MH_SAM_APDU [17:46:55]CAPDU: 80 13 01 00 [17:46:55]Write to MH i2c: E2 08 00 9D 3A 80 13 01 00 00 00 00 00 54 [17:46:55]Write i2c OK [17:46:55]MH_I2C_Read... [17:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:55]Read from MH i2c: E2 [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: E2 0E 00 [17:46:55]MH_I2C_Read... [17:46:55]Read from MH i2c: E2 0E 00 9D 3A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D3 [17:46:55]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [17:46:55]wFMCommunicate OK [17:46:55]SAM_PROTO_GetShiftState done [17:46:55]FM_GetShiftState done [17:46:55]req_shift_opened done [17:46:55]requested_item shift.open_date is exist - process it [17:46:55]req_shift_open_date [17:46:55]req_shift_open_date done [17:46:55]produce_requested_data done [17:46:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187131,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [17:46:55]process_action_free close_receipt [17:46:55]json_value_free [17:46:55]json_value_free done [17:46:55]process_json_proto returns [17:46:55]Send response to host [17:46:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187131,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [17:46:55]free response buf [17:46:55]execute_script done [17:46:55]execute_script returns [17:46:55]free content buf [17:46:55]Sock 9.Close socket [17:46:55]Sock 9.Thread stoped [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:54]OFD Sender: No OFD packet to send [17:50:59]OFD Sender: No OFD packet to send [17:51:04]OFD Sender: No OFD packet to send [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]OFD Sender: No OFD packet to send [17:52:29]OFD Sender: No OFD packet to send [17:52:34]OFD Sender: No OFD packet to send [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:49]OFD Sender: No OFD packet to send [17:52:54]OFD Sender: No OFD packet to send [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:19]OFD Sender: No OFD packet to send [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:39]OFD Sender: No OFD packet to send [17:55:44]OFD Sender: No OFD packet to send [17:55:49]OFD Sender: No OFD packet to send [17:55:54]OFD Sender: No OFD packet to send [17:55:59]OFD Sender: No OFD packet to send [17:56:04]OFD Sender: No OFD packet to send [17:56:09]OFD Sender: No OFD packet to send [17:56:14]OFD Sender: No OFD packet to send [17:56:19]OFD Sender: No OFD packet to send [17:56:24]OFD Sender: No OFD packet to send [17:56:27]int [17:56:27]Write to MH i2c: 01 00 00 9E 3A D8 [17:56:27]*** FLAG_PRN_KEY set [17:56:27]Write i2c OK [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: 01 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: 01 07 00 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: 01 07 00 9E 3A 00 08 00 00 00 FF 0F F5 [17:56:27]state=0 [17:56:27]Key pressed [17:56:27]Feed [17:56:27]Write to MH i2c: D8 00 00 9F 3A B0 [17:56:27]Write i2c OK [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: D8 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: D8 01 00 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: D8 01 00 9F 3A 00 B1 [17:56:27]int [17:56:27]Write to MH i2c: 01 00 00 A0 3A DA [17:56:27]Write i2c OK [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: 01 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: 01 07 00 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: 01 07 00 A0 3A 00 48 00 00 00 3C 00 65 [17:56:27]state=2 [17:56:27]Key pressed [17:56:27]int [17:56:27]Write to MH i2c: 01 00 00 A1 3A DB [17:56:27]*** FLAG_PRN_KEY reset [17:56:27]Write i2c OK [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: 01 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: 01 07 00 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: 01 07 00 A1 3A 00 00 00 00 00 F7 0F E8 [17:56:27]state=2 [17:56:27]Stop feed [17:56:29]OFD Sender: No OFD packet to send [17:56:34]OFD Sender: No OFD packet to send [17:56:39]OFD Sender: No OFD packet to send [17:56:44]OFD Sender: No OFD packet to send [17:56:49]OFD Sender: No OFD packet to send [17:56:54]OFD Sender: No OFD packet to send [17:56:59]OFD Sender: No OFD packet to send [17:57:04]OFD Sender: No OFD packet to send [17:57:09]OFD Sender: No OFD packet to send [17:57:14]OFD Sender: No OFD packet to send [17:57:19]OFD Sender: No OFD packet to send [17:57:24]OFD Sender: No OFD packet to send [17:57:29]OFD Sender: No OFD packet to send [17:57:34]OFD Sender: No OFD packet to send [17:57:39]OFD Sender: No OFD packet to send [17:57:44]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:45]accept exits with 7 [17:58:45]New connection [17:58:45]New thread 3066879332 created [17:58:45]Thread 3067022692 joined [17:58:45]Waiting for new connection... [17:58:45] Sock 7.Parse request [17:58:45]Sock 7.Check first char [17:58:45]Sock 7.First char is OK [17:58:45]request: POST /json_proto HTTP/1.0 [17:58:45]Method: POST [17:58:45]URL: /json_proto [17:58:45]Method is POST - this is cgi request [17:58:45]url: /json_proto [17:58:45]query_string will be loaded in cgi processing [17:58:45]execute_cgi json_proto POST (null) [17:58:45]execute_cgi path=json_proto method=POST [17:58:45]POST find Content-Length [17:58:45]Host: 172.17.46.131:8080 [17:58:45]Content-Length: 679 [17:58:45]Content-Type: application/json [17:58:45] [17:58:45]POST finish read [17:58:45]Found Content-Length = 679 [17:58:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412286", "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:58:45]execute_script... [17:58: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)412286", "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:58:45]POST & json_proto [17:58:45]process_json_proto [17:58:45]json parsed OK: [17:58:45]protocol is kg_v1.0 [17:58:45]action value=close_receipt [17:58:45]process_action close_receipt [17:58:45]cmd_close_receipt [17:58:45]MH_GetDate [17:58:45]Write to MH i2c: F0 00 00 A2 3A CB [17:58:45]Write i2c OK [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: F0 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: F0 09 00 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: F0 09 00 A2 3A 00 D9 1B B6 67 7E 41 4F 65 58 [17:58:45]GetLastDocTimeStamp 1739987215 [17:58:45]current date 1739987929 [17:58:45]FM_GetShiftState [17:58:45]SAM_PROTO_GetShiftState [17:58:45]wFMCommunicate request_size=4 [17:58:45]MH_SAM_APDU [17:58:45]CAPDU: 80 13 01 00 [17:58:45]Write to MH i2c: E2 08 00 A3 3A 80 13 01 00 00 00 00 00 5A [17:58:45]Write i2c OK [17:58:45]MH_I2C_Read... [17:58:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:45]Read from MH i2c: E2 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: E2 0E 00 [17:58:45]MH_I2C_Read... [17:58:45]Read from MH i2c: E2 0E 00 A3 3A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D9 [17:58:45]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [17:58:45]wFMCommunicate OK [17:58:45]SAM_PROTO_GetShiftState done [17:58:45]FM_GetShiftState done [17:58:45]opened in 1739929631 [17:58:45]opened+sec_in_day 1740016031 [17:58:45]quantity*price = 120007 [17:58:45]sum+1 = 120009 [17:58:45]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 СНО: Общий режим Чек 198 19.02.2025 17:58 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187132 ФПД: 218377070074516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T175849&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187132&fm=218377070074516&tin=02508201610067®Number=0000000000091857&sum=120000 [17:58:46]StoreToDocumentArchive [17:58:46]shift 647 fd 187132 [17:58:46]save to /storage/0647/doc_00187132 [17:58:46]save last doc name /storage/0647/doc_00187132 to /storage/kkm_last_doc_name [17:58:46]save OK [17:58:46]Clear old archive folders... [17:58:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:58:46]tlvbuf is 005EE700 [17:58:46]SAM_PROTO_ClearQueue [17:58:46]wFMCommunicate request_size=4 [17:58:46]MH_SAM_APDU [17:58:46]CAPDU: 80 09 00 00 [17:58:46]Write to MH i2c: E2 08 00 B0 3A 80 09 00 00 00 00 00 00 5C [17:58:46]Write i2c OK [17:58:46]MH_I2C_Read... [17:58:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:46]Read from MH i2c: E2 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 03 00 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 03 00 B0 3A 00 90 00 5E [17:58:46]RAPDU: 90 00 [17:58:46]wFMCommunicate OK [17:58:46]SAM_PROTO_ClearQueue done [17:58:46]KKMCreateOFDPacket [17:58:46]OFDProtocolAddRootSTLVToBuf [17:58:46]FM_MakeSignedData [17:58:46]FM_MakeSignedData [17:58:46]SAM_PROTO_SignData [17:58:46]wFMCommunicate request_size=4 [17:58:46]MH_SAM_APDU [17:58:46]CAPDU: 80 0D 01 02 [17:58:46]Write to MH i2c: E2 08 00 B1 3A 80 0D 01 02 00 00 00 00 64 [17:58:46]Write i2c OK [17:58:46]MH_I2C_Read... [17:58:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:46]Read from MH i2c: E2 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 03 00 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 03 00 B1 3A 00 90 00 5F [17:58:46]RAPDU: 90 00 [17:58:46]wFMCommunicate OK [17:58:46]wFMCommunicate request_size=255 [17:58:46]MH_SAM_APDU [17:58: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 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 C6 00 00 00 F4 03 04 00 D9 1B B6 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 FC DA 02 00 35 04 06 00 C6 9C DF B0 [17:58:46]Write to MH i2c: E2 02 01 B2 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 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 C6 00 00 00 F4 03 04 00 D9 1B B6 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 FC DA 02 00 35 04 06 00 C6 9C DF B0 00 00 20 [17:58:46]Write i2c OK [17:58:46]MH_I2C_Read... [17:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:46]Read from MH i2c: E2 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 03 00 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 03 00 B2 3A 00 90 00 60 [17:58:46]RAPDU: 90 00 [17:58:46]wFMCommunicate OK [17:58:46]wFMCommunicate request_size=7 [17:58:46]MH_SAM_APDU [17:58:46]CAPDU: 80 0D 02 02 02 5A 94 [17:58:46]Write to MH i2c: E2 0A 00 B3 3A 80 0D 02 02 02 00 5A 94 00 00 59 [17:58:46]Write i2c OK [17:58:46]MH_I2C_Read... [17:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:46]Read from MH i2c: E2 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 03 00 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 03 00 B3 3A 00 90 00 61 [17:58:46]RAPDU: 90 00 [17:58:46]wFMCommunicate OK [17:58:46]wFMCommunicate request_size=4 [17:58:46]MH_SAM_APDU [17:58:46]CAPDU: 80 0D 03 02 [17:58:46]Write to MH i2c: E2 08 00 B4 3A 80 0D 03 02 00 00 00 00 69 [17:58:46]Write i2c OK [17:58:46]MH_I2C_Read... [17:58:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:46]Read from MH i2c: E2 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 0B 00 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 0B 00 B4 3A 00 82 49 5A 34 5D 93 23 11 90 00 E7 [17:58:46]RAPDU: 82 49 5A 34 5D 93 23 11 90 00 [17:58:46]wFMCommunicate OK [17:58:46]SAM_PROTO_SignData done [17:58:46]FM_MakeSignedData done [17:58:46]CreateOFDProtocolMessage [17:58:46]wFMCommunicate request_size=4 [17:58:46]MH_SAM_APDU [17:58:46]CAPDU: 80 11 00 00 [17:58:46]Write to MH i2c: E2 08 00 B5 3A 80 11 00 00 00 00 00 00 69 [17:58:46]Write i2c OK [17:58:46]MH_I2C_Read... [17:58:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:47]Read from MH i2c: E2 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: E2 17 00 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: E2 17 00 B5 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BC [17:58:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:58:47]wFMCommunicate OK [17:58:47]CreateOFDProtocolMessage done [17:58:47]OFDSenderStorePacket 187132 [17:58:47]StoreOFDPacket docnum=187132 [17:58: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 0C 01 00 00 A5 F2 04 01 1F 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 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 C6 00 00 00 F4 03 04 00 D9 1B B6 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 FC DA 02 00 35 04 06 00 C6 9C DF B0 5A 94 82 49 5A 34 5D 93 23 11 [17:58:47]CheckFolder [17:58:47]dirname=/storage/ofd_packets [17:58:47]CheckFolder done [17:58:47]ProducePacketName [17:58:47]name=ofd_packets/00187132 [17:58:47]NVStorageSaveData ofd_packets/00187132 [17:58:47]File name is /storage/ofd_packets/00187132 [17:58:47]Write 298 bytes [17:58:47]NVStorageSaveData done [17:58:47]OFDSenderStorePacket done [17:58:47]KKMCreateOFDPacket done [17:58:47]NVStorageSaveData kkm_last_timestamp [17:58:47]File name is /storage/kkm_last_timestamp [17:58:47]Write 4 bytes [17:58:47]NVStorageSaveData done [17:58:47]ExternCall_PrintAddStr [17:58:47]wPrintStart [17:58:47]Write to MH i2c: 01 00 00 B6 3A F0 [17:58:47]Write i2c OK [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: 01 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: 01 07 00 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: 01 07 00 B6 3A 00 00 00 00 00 FF 0F 05 [17:58:47]RasterBufferAndPrint [17:58:47]line Счет N : (1)412286 [17:58:47]line ИНН: 02508201610067 [17:58:47]line Контрольно-Кассовый Чек [17:58:47]line ПРОДАЖА [17:58:47]line ТРК (МРК, ГНК) : 11 [17:58:47]line Товар: 2710194210 [17:58:47]line ДТ-К-2 [17:58:47]line 16.530 * 72.60 [17:58:47]line = 1200.08 [17:58:47]line НДС 12% НСП 1% [17:58:47]line > о реализуемом товаре [17:58:47]line ОКРУГЛЕНИЕ: -0.08 [17:58:47]line ИТОГО: 1200.00 [17:58:47]line Внесено: 1200.00 [17:58:47]line СДАЧА: 0.00 [17:58:47]line НСП 1% : 10.62 [17:58:47]line НДС 12% : 127.44 [17:58:47]line Наличными: 1200.00 [17:58:47]line Безнал.: 0.00 [17:58:47]line Место: АЗС № 92 "Партнер Нефть" [17:58:47]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [17:58:47]line СНО: Общий режим [17:58:47]line Чек 198 19.02.2025 17:58 [17:58:47]line Смена: 647 ФФД: 1.0 [17:58:47]line ЗНМ: 0300000118 [17:58:47]line РНМ: 0000000000091857 [17:58:47]line Версия ККМ: 001 [17:58:47]line ФМ: 0000000000871826 [17:58:47]line ФД: 187132 [17:58:47]line ФПД: 218377070074516 [17:58:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T175849&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187132&fm=218377070074516&tin=02508201610067®Number=0000000000091857&sum=120000 [17:58:47]OFD Sender: Processing packet 187132 [packets to send 49, broken 48] [17:58:47]ProducePacketName [17:58:47]name=ofd_packets/00187132 [17:58:47]OFD Sender: To server: pG, [17:58:47]CommunicateWithHost lk.salyk.kg:30040 [17:58:47]ConnectInit lk.salyk.kg [17:58:47]written 0, free lines is 4095 [17:58:47]Connected sock=10 [17:58: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 A5 F2 04 01 1F 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 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 C6 00 00 00 F4 03 04 00 D9 1B B6 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 FC DA 02 00 35 04 06 00 C6 9C DF B0 5A 94 82 49 5A 34 5D 93 23 11 [17:58:47]Write to MH i2c: 01 00 00 E1 3A 1B [17:58:47]Write i2c OK [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: 01 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: 01 07 00 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: 01 07 00 E1 3A 00 00 00 00 00 EB 0C 19 [17:58:47]RasterBufferAndPrint [17:58:47]line [17:58:47]line [17:58:47]line [17:58:47]line [17:58:47]line [17:58:47]written 0, free lines is 3314 [17:58:47]MH_Cut [17:58:47]Write to MH i2c: D1 01 00 E8 3A 01 F4 [17:58:47]Write i2c OK [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: D1 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: D1 01 00 [17:58:47]MH_I2C_Read... [17:58:47]Read from MH i2c: D1 01 00 E8 3A 00 F3 [17:58:47]Write to MH i2c: 01 00 00 E9 3A 23 [17:58:47]Write i2c OK [17:58:47]MH_I2C_Read... [17:58: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 57 05 47 00 04 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 FC DA 02 00 F4 03 04 00 2D C2 B5 67 B6 04 01 00 00 24 1B 2B 80 7D 7C 35 FA [17:58:47]CommunicateWithHost err = 0 [17:58:47]CheckOFDResponse [17:58:47]1017 (14) - 77093643461234 [17:58:47]1041 (16) - 0000000000871826 [17:58:47]1040 (4) - 187132 [17:58:47]1012 (4) - 19.02.2025 11:36 [17:58:47]1206 (1) - 0 [17:58:47]OFD Sender: Remove packet 187132 [17:58:47]ProducePacketName [17:58:47]name=ofd_packets/00187132 [17:58:47]NVStorageDeleteData [17:58:48]OFD Sender: No OFD packet to send [17:58:48]*** Cut start [17:58:48]*** Partial cut [17:58:48]*** CUTSNS_PIN = 1 [17:58:48]*** CUTSNS_PIN = 0 [17:58:48]*** Brake cut motor [17:58:49]Read from MH i2c: 01 [17:58:49]MH_I2C_Read... [17:58:49]*** Stop cut motor [17:58:49]*** Cut end [17:58:49]Read from MH i2c: 01 07 00 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: 01 07 00 E9 3A 00 00 00 00 00 FF 0F 38 [17:58:49]process_action close_receipt done [17:58:49]requested_data is exist [17:58:49]produce_requested_data [17:58:49]requested_item fm.sn is exist - process it [17:58:49]wFMCommunicate request_size=4 [17:58:49]MH_SAM_APDU [17:58:49]CAPDU: 80 11 00 00 [17:58:49]Write to MH i2c: E2 08 00 EA 3A 80 11 00 00 00 00 00 00 9E [17:58:49]Write i2c OK [17:58:49]MH_I2C_Read... [17:58:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:49]Read from MH i2c: E2 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 17 00 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 17 00 EA 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F1 [17:58:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [17:58:49]wFMCommunicate OK [17:58:49]requested_item fd.num is exist - process it [17:58:49]SAM_PROTO_GetFieldsCounters [17:58:49]wFMCommunicate request_size=4 [17:58:49]MH_SAM_APDU [17:58:49]CAPDU: 80 13 00 00 [17:58:49]Write to MH i2c: E2 08 00 EB 3A 80 13 00 00 00 00 00 00 A1 [17:58:49]Write i2c OK [17:58:49]MH_I2C_Read... [17:58:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:49]Read from MH i2c: E2 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 62 00 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 62 00 EB 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 FC DA 02 00 0E 04 04 00 87 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 7A [17:58: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 FC DA 02 00 0E 04 04 00 87 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 [17:58:49]wFMCommunicate OK [17:58:49]SAM_PROTO_GetFieldsCounters done [17:58:49]requested_item shift.num is exist - process it [17:58:49]requested_item shift.opened is exist - process it [17:58:49]req_shift_opened [17:58:49]FM_GetShiftState [17:58:49]SAM_PROTO_GetShiftState [17:58:49]wFMCommunicate request_size=4 [17:58:49]MH_SAM_APDU [17:58:49]CAPDU: 80 13 01 00 [17:58:49]Write to MH i2c: E2 08 00 EC 3A 80 13 01 00 00 00 00 00 A3 [17:58:49]Write i2c OK [17:58:49]MH_I2C_Read... [17:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:49]Read from MH i2c: E2 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 0E 00 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 0E 00 EC 3A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 22 [17:58:49]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [17:58:49]wFMCommunicate OK [17:58:49]SAM_PROTO_GetShiftState done [17:58:49]FM_GetShiftState done [17:58:49]req_shift_opened done [17:58:49]requested_item shift.open_date is exist - process it [17:58:49]req_shift_open_date [17:58:49]req_shift_open_date done [17:58:49]produce_requested_data done [17:58:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187132,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [17:58:49]process_action_free close_receipt [17:58:49]json_value_free [17:58:49]json_value_free done [17:58:49]process_json_proto returns [17:58:49]Send response to host [17:58:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187132,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [17:58:49]free response buf [17:58:49]execute_script done [17:58:49]execute_script returns [17:58:49]free content buf [17:58:49]Sock 7.Close socket [17:58:49]Sock 7.Thread stoped [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:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:28]OFD Sender: No OFD packet to send [18:00:29]accept exits with 9 [18:00:29]New connection [18:00:29]New thread 3067022692 created [18:00:29]Thread 3066879332 joined [18:00:29]Waiting for new connection... [18:00:29] Sock 9.Parse request [18:00:29]Sock 9.Check first char [18:00:29]Sock 9.First char is OK [18:00:29]request: POST /json_proto HTTP/1.0 [18:00:29]Method: POST [18:00:29]URL: /json_proto [18:00:29]Method is POST - this is cgi request [18:00:29]url: /json_proto [18:00:29]query_string will be loaded in cgi processing [18:00:29]execute_cgi json_proto POST (null) [18:00:29]execute_cgi path=json_proto method=POST [18:00:29]POST find Content-Length [18:00:29]Host: 172.17.46.131:8080 [18:00:29]Content-Length: 677 [18:00:29]Content-Type: application/json [18:00:29] [18:00:29]POST finish read [18:00:29]Found Content-Length = 677 [18:00:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412289", "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" ] } } [18:00:29]execute_script... [18:00: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)412289", "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" ] } } [18:00:29]POST & json_proto [18:00:29]process_json_proto [18:00:29]json parsed OK: [18:00:29]protocol is kg_v1.0 [18:00:29]action value=close_receipt [18:00:29]process_action close_receipt [18:00:29]cmd_close_receipt [18:00:29]MH_GetDate [18:00:29]Write to MH i2c: F0 00 00 ED 3A 16 [18:00:29]Write i2c OK [18:00:29]MH_I2C_Read... [18:00:29]Read from MH i2c: F0 [18:00:29]MH_I2C_Read... [18:00:29]Read from MH i2c: F0 09 00 [18:00:29]MH_I2C_Read... [18:00:29]Read from MH i2c: F0 09 00 ED 3A 00 42 1C B6 67 7E 41 4F 65 0D [18:00:29]GetLastDocTimeStamp 1739987929 [18:00:29]current date 1739988034 [18:00:29]FM_GetShiftState [18:00:29]SAM_PROTO_GetShiftState [18:00:29]wFMCommunicate request_size=4 [18:00:29]MH_SAM_APDU [18:00:29]CAPDU: 80 13 01 00 [18:00:29]Write to MH i2c: E2 08 00 EE 3A 80 13 01 00 00 00 00 00 A5 [18:00:29]Write i2c OK [18:00:29]MH_I2C_Read... [18:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:29]Read from MH i2c: E2 [18:00:29]MH_I2C_Read... [18:00:29]Read from MH i2c: E2 0E 00 [18:00:29]MH_I2C_Read... [18:00:29]Read from MH i2c: E2 0E 00 EE 3A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 24 [18:00:29]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:00:29]wFMCommunicate OK [18:00:29]SAM_PROTO_GetShiftState done [18:00:29]FM_GetShiftState done [18:00:29]opened in 1739929631 [18:00:29]opened+sec_in_day 1740016031 [18:00:29]quantity*price = 20030 [18:00:29]sum+1 = 20031 [18:00:29]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 СНО: Общий режим Чек 199 19.02.2025 18:00 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187133 ФПД: 28065774029727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T180034&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187133&fm=28065774029727&tin=02508201610067®Number=0000000000091857&sum=20000 [18:00:30]StoreToDocumentArchive [18:00:30]shift 647 fd 187133 [18:00:30]save to /storage/0647/doc_00187133 [18:00:30]save last doc name /storage/0647/doc_00187133 to /storage/kkm_last_doc_name [18:00:30]save OK [18:00:30]Clear old archive folders... [18:00:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:00:30]tlvbuf is B6F666E0 [18:00:30]SAM_PROTO_ClearQueue [18:00:30]wFMCommunicate request_size=4 [18:00:30]MH_SAM_APDU [18:00:30]CAPDU: 80 09 00 00 [18:00:30]Write to MH i2c: E2 08 00 FB 3A 80 09 00 00 00 00 00 00 A7 [18:00:30]Write i2c OK [18:00:30]MH_I2C_Read... [18:00:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:30]Read from MH i2c: E2 [18:00:30]MH_I2C_Read... [18:00:30]Read from MH i2c: E2 03 00 [18:00:30]MH_I2C_Read... [18:00:30]Read from MH i2c: E2 03 00 FB 3A 00 90 00 A9 [18:00:30]RAPDU: 90 00 [18:00:30]wFMCommunicate OK [18:00:30]SAM_PROTO_ClearQueue done [18:00:30]KKMCreateOFDPacket [18:00:30]OFDProtocolAddRootSTLVToBuf [18:00:30]FM_MakeSignedData [18:00:30]FM_MakeSignedData [18:00:30]SAM_PROTO_SignData [18:00:30]wFMCommunicate request_size=4 [18:00:30]MH_SAM_APDU [18:00:30]CAPDU: 80 0D 01 02 [18:00:30]Write to MH i2c: E2 08 00 FC 3A 80 0D 01 02 00 00 00 00 AF [18:00:30]Write i2c OK [18:00:30]MH_I2C_Read... [18:00:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:30]Read from MH i2c: E2 [18:00:30]MH_I2C_Read... [18:00:30]Read from MH i2c: E2 03 00 [18:00:30]MH_I2C_Read... [18:00:30]Read from MH i2c: E2 03 00 FC 3A 00 90 00 AA [18:00:30]RAPDU: 90 00 [18:00:30]wFMCommunicate OK [18:00:30]wFMCommunicate request_size=255 [18:00:30]MH_SAM_APDU [18:00:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C7 00 00 00 F4 03 04 00 42 1C B6 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 FD DA 02 00 35 04 06 00 19 [18:00:30]Write to MH i2c: E2 02 01 FD 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 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 C7 00 00 00 F4 03 04 00 42 1C B6 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 FD DA 02 00 35 04 06 00 19 00 00 51 [18:00:31]Write i2c OK [18:00:31]MH_I2C_Read... [18:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:31]Read from MH i2c: E2 [18:00:31]MH_I2C_Read... [18:00:31]Read from MH i2c: E2 03 00 [18:00:31]MH_I2C_Read... [18:00:31]Read from MH i2c: E2 03 00 FD 3A 00 90 00 AB [18:00:31]RAPDU: 90 00 [18:00:31]wFMCommunicate OK [18:00:31]wFMCommunicate request_size=10 [18:00:31]MH_SAM_APDU [18:00:31]CAPDU: 80 0D 02 02 05 86 92 7D CB 9F [18:00:31]Write to MH i2c: E2 0D 00 FE 3A 80 0D 02 02 05 00 86 92 7D CB 9F 00 00 BB [18:00:31]Write i2c OK [18:00:31]MH_I2C_Read... [18:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:31]Read from MH i2c: E2 [18:00:31]MH_I2C_Read... [18:00:31]Read from MH i2c: E2 03 00 [18:00:31]MH_I2C_Read... [18:00:31]Read from MH i2c: E2 03 00 FE 3A 00 90 00 AC [18:00:31]RAPDU: 90 00 [18:00:31]wFMCommunicate OK [18:00:31]wFMCommunicate request_size=4 [18:00:31]MH_SAM_APDU [18:00:31]CAPDU: 80 0D 03 02 [18:00:31]Write to MH i2c: E2 08 00 FF 3A 80 0D 03 02 00 00 00 00 B4 [18:00:31]Write i2c OK [18:00:31]MH_I2C_Read... [18:00:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:31]Read from MH i2c: E2 [18:00:31]MH_I2C_Read... [18:00:31]Read from MH i2c: E2 0B 00 [18:00:31]MH_I2C_Read... [18:00:31]Read from MH i2c: E2 0B 00 FF 3A 00 35 58 FD AB 7A 82 EA 06 90 00 D6 [18:00:31]RAPDU: 35 58 FD AB 7A 82 EA 06 90 00 [18:00:31]wFMCommunicate OK [18:00:31]SAM_PROTO_SignData done [18:00:31]FM_MakeSignedData done [18:00:31]CreateOFDProtocolMessage [18:00:31]wFMCommunicate request_size=4 [18:00:31]MH_SAM_APDU [18:00:31]CAPDU: 80 11 00 00 [18:00:31]Write to MH i2c: E2 08 00 00 3B 80 11 00 00 00 00 00 00 B5 [18:00:31]Write i2c OK [18:00:31]MH_I2C_Read... [18:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:31]Read from MH i2c: E2 [18:00:31]MH_I2C_Read... [18:00:31]Read from MH i2c: E2 17 00 [18:00:31]MH_I2C_Read... [18:00:31]Read from MH i2c: E2 17 00 00 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 08 [18:00: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:00:31]wFMCommunicate OK [18:00:31]CreateOFDProtocolMessage done [18:00:31]OFDSenderStorePacket 187133 [18:00:31]StoreOFDPacket docnum=187133 [18:00: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 0F 01 00 00 E6 AA 07 01 BD 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C7 00 00 00 F4 03 04 00 42 1C B6 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 FD DA 02 00 35 04 06 00 19 86 92 7D CB 9F 35 58 FD AB 7A 82 EA 06 [18:00:31]CheckFolder [18:00:31]dirname=/storage/ofd_packets [18:00:31]CheckFolder done [18:00:31]ProducePacketName [18:00:31]name=ofd_packets/00187133 [18:00:31]NVStorageSaveData ofd_packets/00187133 [18:00:31]File name is /storage/ofd_packets/00187133 [18:00:31]Write 301 bytes [18:00:31]NVStorageSaveData done [18:00:31]OFDSenderStorePacket done [18:00:31]KKMCreateOFDPacket done [18:00:31]NVStorageSaveData kkm_last_timestamp [18:00:31]File name is /storage/kkm_last_timestamp [18:00:31]Write 4 bytes [18:00:31]NVStorageSaveData done [18:00:31]ExternCall_PrintAddStr [18:00:31]wPrintStart [18:00:31]Write to MH i2c: 01 00 00 01 3B 3C [18:00:31]Write i2c OK [18:00:31]MH_I2C_Read... [18:00:31]Read from MH i2c: 01 [18:00:31]MH_I2C_Read... [18:00:31]Read from MH i2c: 01 07 00 [18:00:31]MH_I2C_Read... [18:00:31]Read from MH i2c: 01 07 00 01 3B 00 00 00 00 00 FF 0F 51 [18:00:31]RasterBufferAndPrint [18:00:31]line Счет N : (1)412289 [18:00:31]line ИНН: 02508201610067 [18:00:31]line Контрольно-Кассовый Чек [18:00:31]line ПРОДАЖА [18:00:31]line ТРК (МРК, ГНК) : 22 [18:00:31]line Товар: 2710124130 [18:00:31]line Аи-92-К-2 [18:00:31]line 3.120 * 64.20 [18:00:31]line = 200.30 [18:00:31]line НДС 12% НСП 1% [18:00:31]line > о реализуемом товаре [18:00:31]line ОКРУГЛЕНИЕ: -0.30 [18:00:31]line ИТОГО: 200.00 [18:00:31]line Внесено: 200.00 [18:00:31]line СДАЧА: 0.00 [18:00:31]line НСП 1% : 1.77 [18:00:31]line НДС 12% : 21.27 [18:00:31]line Наличными: 200.00 [18:00:31]line Безнал.: 0.00 [18:00:31]line Место: АЗС № 92 "Партнер Нефть" [18:00:31]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:00:31]line СНО: Общий режим [18:00:31]line Чек 199 19.02.2025 18:00 [18:00:31]line Смена: 647 ФФД: 1.0 [18:00:31]line ЗНМ: 0300000118 [18:00:31]line РНМ: 0000000000091857 [18:00:31]line Версия ККМ: 001 [18:00:31]line ФМ: 0000000000871826 [18:00:31]line ФД: 187133 [18:00:31]line ФПД: 28065774029727 [18:00:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T180034&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187133&fm=28065774029727&tin=02508201610067®Number=0000000000091857&sum=20000 [18:00:31]written 0, free lines is 4095 [18:00:31]OFD Sender: Processing packet 187133 [packets to send 49, broken 48] [18:00:31]ProducePacketName [18:00:31]name=ofd_packets/00187133 [18:00:31]OFD Sender: To server: pG, [18:00:31]CommunicateWithHost lk.salyk.kg:30040 [18:00:31]ConnectInit lk.salyk.kg [18:00:31]Connected sock=10 [18:00:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E6 AA 07 01 BD 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C7 00 00 00 F4 03 04 00 42 1C B6 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 FD DA 02 00 35 04 06 00 19 86 92 7D CB 9F 35 58 FD AB 7A 82 EA 06 [18:00: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 26 96 47 00 FE A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FD DA 02 00 F4 03 04 00 95 C2 B5 67 B6 04 01 00 00 87 90 B7 C0 4B 57 9A 20 [18:00:32]CommunicateWithHost err = 0 [18:00:32]CheckOFDResponse [18:00:32]1017 (14) - 77093643461234 [18:00:32]1041 (16) - 0000000000871826 [18:00:32]1040 (4) - 187133 [18:00:32]1012 (4) - 19.02.2025 11:37 [18:00:32]1206 (1) - 0 [18:00:32]OFD Sender: Remove packet 187133 [18:00:32]ProducePacketName [18:00:32]name=ofd_packets/00187133 [18:00:32]NVStorageDeleteData [18:00:32]Write to MH i2c: 01 00 00 2C 3B 67 [18:00:32]Write i2c OK [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: 01 [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: 01 07 00 [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: 01 07 00 2C 3B 00 00 00 00 00 EC 0C 66 [18:00:32]RasterBufferAndPrint [18:00:32]line [18:00:32]line [18:00:32]line [18:00:32]line [18:00:32]line [18:00:32]written 0, free lines is 3317 [18:00:32]MH_Cut [18:00:32]Write to MH i2c: D1 01 00 33 3B 01 40 [18:00:32]Write i2c OK [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: D1 [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: D1 01 00 [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: D1 01 00 33 3B 00 3F [18:00:32]Write to MH i2c: 01 00 00 34 3B 6F [18:00:32]Write i2c OK [18:00:32]MH_I2C_Read... [18:00:32]OFD Sender: No OFD packet to send [18:00:32]*** Cut start [18:00:32]*** Partial cut [18:00:32]*** CUTSNS_PIN = 1 [18:00:32]*** CUTSNS_PIN = 0 [18:00:33]*** Brake cut motor [18:00:33]Read from MH i2c: 01 [18:00:33]MH_I2C_Read... [18:00:33]*** Stop cut motor [18:00:33]*** Cut end [18:00:33]Read from MH i2c: 01 07 00 [18:00:33]MH_I2C_Read... [18:00:33]Read from MH i2c: 01 07 00 34 3B 00 00 00 00 00 FF 0F 84 [18:00:33]process_action close_receipt done [18:00:33]requested_data is exist [18:00:33]produce_requested_data [18:00:33]requested_item fm.sn is exist - process it [18:00:33]wFMCommunicate request_size=4 [18:00:33]MH_SAM_APDU [18:00:33]CAPDU: 80 11 00 00 [18:00:33]Write to MH i2c: E2 08 00 35 3B 80 11 00 00 00 00 00 00 EA [18:00:33]Write i2c OK [18:00:33]MH_I2C_Read... [18:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:33]Read from MH i2c: E2 [18:00:33]MH_I2C_Read... [18:00:33]Read from MH i2c: E2 17 00 [18:00:33]MH_I2C_Read... [18:00:33]Read from MH i2c: E2 17 00 35 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3D [18:00: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:00:33]wFMCommunicate OK [18:00:33]requested_item fd.num is exist - process it [18:00:33]SAM_PROTO_GetFieldsCounters [18:00:33]wFMCommunicate request_size=4 [18:00:33]MH_SAM_APDU [18:00:33]CAPDU: 80 13 00 00 [18:00:33]Write to MH i2c: E2 08 00 36 3B 80 13 00 00 00 00 00 00 ED [18:00:33]Write i2c OK [18:00:33]MH_I2C_Read... [18:00:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:33]Read from MH i2c: E2 [18:00:33]MH_I2C_Read... [18:00:33]Read from MH i2c: E2 62 00 [18:00:33]MH_I2C_Read... [18:00:33]Read from MH i2c: E2 62 00 36 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 FD DA 02 00 0E 04 04 00 87 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 CA [18:00: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 FD DA 02 00 0E 04 04 00 87 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 [18:00:33]wFMCommunicate OK [18:00:33]SAM_PROTO_GetFieldsCounters done [18:00:33]requested_item shift.num is exist - process it [18:00:33]requested_item shift.opened is exist - process it [18:00:33]req_shift_opened [18:00:33]FM_GetShiftState [18:00:33]SAM_PROTO_GetShiftState [18:00:33]wFMCommunicate request_size=4 [18:00:33]MH_SAM_APDU [18:00:33]CAPDU: 80 13 01 00 [18:00:33]Write to MH i2c: E2 08 00 37 3B 80 13 01 00 00 00 00 00 EF [18:00:33]Write i2c OK [18:00:33]MH_I2C_Read... [18:00:33]Read from MH i2c: E2 [18:00:33]MH_I2C_Read... [18:00:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:33]Read from MH i2c: E2 0E 00 [18:00:33]MH_I2C_Read... [18:00:33]Read from MH i2c: E2 0E 00 37 3B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 6E [18:00:33]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:00:33]wFMCommunicate OK [18:00:33]SAM_PROTO_GetShiftState done [18:00:33]FM_GetShiftState done [18:00:33]req_shift_opened done [18:00:33]requested_item shift.open_date is exist - process it [18:00:33]req_shift_open_date [18:00:33]req_shift_open_date done [18:00:33]produce_requested_data done [18:00:33]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187133,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [18:00:33]process_action_free close_receipt [18:00:33]json_value_free [18:00:33]json_value_free done [18:00:33]process_json_proto returns [18:00:33]Send response to host [18:00:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187133,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [18:00:33]free response buf [18:00:33]execute_script done [18:00:33]execute_script returns [18:00:33]free content buf [18:00:33]Sock 9.Close socket [18:00:33]Sock 9.Thread stoped [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:00]accept exits with 7 [18:01:00]New connection [18:01:00]New thread 3066879332 created [18:01:00]Thread 3067022692 joined [18:01:00]Waiting for new connection... [18:01:00] Sock 7.Parse request [18:01:00]Sock 7.Check first char [18:01:00]Sock 7.First char is OK [18:01:00]request: POST /json_proto HTTP/1.0 [18:01:00]Method: POST [18:01:00]URL: /json_proto [18:01:00]Method is POST - this is cgi request [18:01:00]url: /json_proto [18:01:00]query_string will be loaded in cgi processing [18:01:00]execute_cgi json_proto POST (null) [18:01:00]execute_cgi path=json_proto method=POST [18:01:00]POST find Content-Length [18:01:00]Host: 172.17.46.131:8080 [18:01:00]Content-Length: 800 [18:01:00]Content-Type: application/json [18:01:00] [18:01:00]POST finish read [18:01:00]Found Content-Length = 800 [18:01:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412288", "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" ] } } [18:01:00]execute_script... [18:01: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)412288", "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" ] } } [18:01:00]POST & json_proto [18:01:00]process_json_proto [18:01:00]json parsed OK: [18:01:00]protocol is kg_v1.0 [18:01:00]action value=close_receipt [18:01:00]process_action close_receipt [18:01:00]cmd_close_receipt [18:01:00]MH_GetDate [18:01:00]Write to MH i2c: F0 00 00 38 3B 62 [18:01:00]Write i2c OK [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: F0 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: F0 09 00 [18:01:00]MH_I2C_Read... [18:01:00]Read from MH i2c: F0 09 00 38 3B 00 61 1C B6 67 7E 41 4F 65 78 [18:01:00]GetLastDocTimeStamp 1739988034 [18:01:00]current date 1739988065 [18:01:00]FM_GetShiftState [18:01:00]SAM_PROTO_GetShiftState [18:01:00]wFMCommunicate request_size=4 [18:01:00]MH_SAM_APDU [18:01:00]CAPDU: 80 13 01 00 [18:01:00]Write to MH i2c: E2 08 00 39 3B 80 13 01 00 00 00 00 00 F1 [18:01:00]Write i2c OK [18:01:00]MH_I2C_Read... [18:01:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:01]Read from MH i2c: E2 [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: E2 0E 00 [18:01:01]MH_I2C_Read... [18:01:01]Read from MH i2c: E2 0E 00 39 3B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 70 [18:01:01]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:01:01]wFMCommunicate OK [18:01:01]SAM_PROTO_GetShiftState done [18:01:01]FM_GetShiftState done [18:01:01]opened in 1739929631 [18:01:01]opened+sec_in_day 1740016031 [18:01:01]quantity*price = 50011 [18:01:01]sum+1 = 50013 [18:01:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.12 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.12 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 200 19.02.2025 18:01 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187134 ФПД: 192690227052627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T180105&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187134&fm=192690227052627&tin=02508201610067®Number=0000000000091857&sum=50012 [18:01:02]StoreToDocumentArchive [18:01:02]shift 647 fd 187134 [18:01:02]save to /storage/0647/doc_00187134 [18:01:02]save last doc name /storage/0647/doc_00187134 to /storage/kkm_last_doc_name [18:01:02]save OK [18:01:02]Clear old archive folders... [18:01:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:02]tlvbuf is 0069D690 [18:01:02]SAM_PROTO_ClearQueue [18:01:02]wFMCommunicate request_size=4 [18:01:02]MH_SAM_APDU [18:01:02]CAPDU: 80 09 00 00 [18:01:02]Write to MH i2c: E2 08 00 46 3B 80 09 00 00 00 00 00 00 F3 [18:01:02]Write i2c OK [18:01:02]MH_I2C_Read... [18:01:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:02]Read from MH i2c: E2 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 03 00 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 03 00 46 3B 00 90 00 F5 [18:01:02]RAPDU: 90 00 [18:01:02]wFMCommunicate OK [18:01:02]SAM_PROTO_ClearQueue done [18:01:02]KKMCreateOFDPacket [18:01:02]OFDProtocolAddRootSTLVToBuf [18:01:02]FM_MakeSignedData [18:01:02]FM_MakeSignedData [18:01:02]SAM_PROTO_SignData [18:01:02]wFMCommunicate request_size=4 [18:01:02]MH_SAM_APDU [18:01:02]CAPDU: 80 0D 01 02 [18:01:02]Write to MH i2c: E2 08 00 47 3B 80 0D 01 02 00 00 00 00 FB [18:01:02]Write i2c OK [18:01:02]MH_I2C_Read... [18:01:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:02]Read from MH i2c: E2 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 03 00 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 03 00 47 3B 00 90 00 F6 [18:01:02]RAPDU: 90 00 [18:01:02]wFMCommunicate OK [18:01:02]wFMCommunicate request_size=255 [18:01:02]MH_SAM_APDU [18:01:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C8 00 00 00 F4 03 04 00 61 1C B6 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 FE DA 02 00 35 04 06 00 AF [18:01:02]Write to MH i2c: E2 02 01 48 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 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 C8 00 00 00 F4 03 04 00 61 1C B6 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 FE DA 02 00 35 04 06 00 AF 00 00 20 [18:01:02]Write i2c OK [18:01:02]MH_I2C_Read... [18:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:02]Read from MH i2c: E2 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 03 00 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 03 00 48 3B 00 90 00 F7 [18:01:02]RAPDU: 90 00 [18:01:02]wFMCommunicate OK [18:01:02]wFMCommunicate request_size=10 [18:01:02]MH_SAM_APDU [18:01:02]CAPDU: 80 0D 02 02 05 40 30 89 00 53 [18:01:02]Write to MH i2c: E2 0D 00 49 3B 80 0D 02 02 05 00 40 30 89 00 53 00 00 54 [18:01:02]Write i2c OK [18:01:02]MH_I2C_Read... [18:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:02]Read from MH i2c: E2 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 03 00 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 03 00 49 3B 00 90 00 F8 [18:01:02]RAPDU: 90 00 [18:01:02]wFMCommunicate OK [18:01:02]wFMCommunicate request_size=4 [18:01:02]MH_SAM_APDU [18:01:02]CAPDU: 80 0D 03 02 [18:01:02]Write to MH i2c: E2 08 00 4A 3B 80 0D 03 02 00 00 00 00 00 [18:01:02]Write i2c OK [18:01:02]MH_I2C_Read... [18:01:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:02]Read from MH i2c: E2 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 0B 00 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 0B 00 4A 3B 00 DF 17 02 B9 89 E9 80 8E 90 00 32 [18:01:02]RAPDU: DF 17 02 B9 89 E9 80 8E 90 00 [18:01:02]wFMCommunicate OK [18:01:02]SAM_PROTO_SignData done [18:01:02]FM_MakeSignedData done [18:01:02]CreateOFDProtocolMessage [18:01:02]wFMCommunicate request_size=4 [18:01:02]MH_SAM_APDU [18:01:02]CAPDU: 80 11 00 00 [18:01:02]Write to MH i2c: E2 08 00 4B 3B 80 11 00 00 00 00 00 00 00 [18:01:02]Write i2c OK [18:01:02]MH_I2C_Read... [18:01:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:02]Read from MH i2c: E2 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 17 00 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: E2 17 00 4B 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 53 [18: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 [18:01:02]wFMCommunicate OK [18:01:02]CreateOFDProtocolMessage done [18:01:02]OFDSenderStorePacket 187134 [18:01:02]StoreOFDPacket docnum=187134 [18: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 73 C3 07 01 BD 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C8 00 00 00 F4 03 04 00 61 1C B6 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 FE DA 02 00 35 04 06 00 AF 40 30 89 00 53 DF 17 02 B9 89 E9 80 8E [18:01:02]CheckFolder [18:01:02]dirname=/storage/ofd_packets [18:01:02]CheckFolder done [18:01:02]ProducePacketName [18:01:02]name=ofd_packets/00187134 [18:01:02]NVStorageSaveData ofd_packets/00187134 [18:01:02]File name is /storage/ofd_packets/00187134 [18:01:02]Write 301 bytes [18:01:02]NVStorageSaveData done [18:01:02]OFDSenderStorePacket done [18:01:02]KKMCreateOFDPacket done [18:01:02]NVStorageSaveData kkm_last_timestamp [18:01:02]File name is /storage/kkm_last_timestamp [18:01:02]Write 4 bytes [18:01:02]NVStorageSaveData done [18:01:02]ExternCall_PrintAddStr [18:01:02]wPrintStart [18:01:02]Write to MH i2c: 01 00 00 4C 3B 87 [18:01:02]Write i2c OK [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: 01 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: 01 07 00 [18:01:02]MH_I2C_Read... [18:01:02]Read from MH i2c: 01 07 00 4C 3B 00 00 00 00 00 FF 0F 9C [18:01:02]RasterBufferAndPrint [18:01:02]line Счет N : (1)412288 [18:01:02]line ИНН: 02508201610067 [18:01:02]line Контрольно-Кассовый Чек [18:01:02]line ПРОДАЖА [18:01:02]line ТРК (МРК, ГНК) : 42 [18:01:02]line Товар: 2710124130 [18:01:02]line Аи-92-К-2 [18:01:02]line 7.790 * 64.20 [18:01:02]line = 500.12 [18:01:02]line НДС 12% НСП 1% [18:01:02]line > о реализуемом товаре [18:01:02]line ИТОГО: 500.12 [18:01:02]line НСП 1% : 4.43 [18:01:02]line НДС 12% : 53.11 [18:01:02]line Наличными: 0.00 [18:01:02]line Безнал.: 500.12 [18:01:02]line Место: АЗС № 92 "Партнер Нефть" [18:01:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:01:02]line СНО: Общий режим [18:01:02]line Чек 200 19.02.2025 18:01 [18:01:02]line Смена: 647 ФФД: 1.0 [18:01:02]line ЗНМ: 0300000118 [18:01:02]line РНМ: 0000000000091857 [18:01:02]line Версия ККМ: 001 [18:01:02]line Платежная система: O! деньги [18:01:02]line ФМ: 0000000000871826 [18:01:02]line ФД: 187134 [18:01:02]line ФПД: 192690227052627 [18:01:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T180105&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187134&fm=192690227052627&tin=02508201610067®Number=0000000000091857&sum=50012 [18:01:02]written 0, free lines is 4095 [18:01:02]OFD Sender: Processing packet 187134 [packets to send 49, broken 48] [18:01:02]ProducePacketName [18:01:02]name=ofd_packets/00187134 [18:01:02]OFD Sender: To server: pG, [18:01:02]CommunicateWithHost lk.salyk.kg:30040 [18:01:02]ConnectInit lk.salyk.kg [18:01:02]Connected sock=10 [18:01: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 73 C3 07 01 BD 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C8 00 00 00 F4 03 04 00 61 1C B6 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 FE DA 02 00 35 04 06 00 AF 40 30 89 00 53 DF 17 02 B9 89 E9 80 8E [18:01:03]Write to MH i2c: 01 00 00 76 3B B1 [18:01:03]Write i2c OK [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: 01 [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: 01 07 00 [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: 01 07 00 76 3B 00 00 00 00 00 01 0D C6 [18:01:03]RasterBufferAndPrint [18:01:03]line [18:01:03]line [18:01:03]line [18:01:03]line [18:01:03]line [18:01:03]written 0, free lines is 3338 [18:01:03]MH_Cut [18:01:03]Write to MH i2c: D1 01 00 7D 3B 01 8A [18:01:03]Write i2c OK [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: D1 [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: D1 01 00 [18:01:03]MH_I2C_Read... [18:01:03]Read from MH i2c: D1 01 00 7D 3B 00 89 [18:01:03]Write to MH i2c: 01 00 00 7E 3B B9 [18:01:03]Write i2c OK [18:01:03]MH_I2C_Read... [18:01:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 83 1B 47 00 9F 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 FE DA 02 00 F4 03 04 00 B4 C2 B5 67 B6 04 01 00 00 76 5F E9 E5 16 6A 49 FB [18:01:03]CommunicateWithHost err = 0 [18:01:03]CheckOFDResponse [18:01:03]1017 (14) - 77093643461234 [18:01:03]1041 (16) - 0000000000871826 [18:01:03]1040 (4) - 187134 [18:01:03]1012 (4) - 19.02.2025 11:38 [18:01:03]1206 (1) - 0 [18:01:03]OFD Sender: Remove packet 187134 [18:01:03]ProducePacketName [18:01:03]name=ofd_packets/00187134 [18:01:03]NVStorageDeleteData [18:01:03]OFD Sender: No OFD packet to send [18:01:03]*** Cut start [18:01:03]*** Partial cut [18:01:03]*** CUTSNS_PIN = 1 [18:01:03]*** CUTSNS_PIN = 0 [18:01:04]*** Brake cut motor [18:01:04]Read from MH i2c: 01 [18:01:04]MH_I2C_Read... [18:01:04]*** Stop cut motor [18:01:04]*** Cut end [18:01:04]Read from MH i2c: 01 07 00 [18:01:04]MH_I2C_Read... [18:01:04]Read from MH i2c: 01 07 00 7E 3B 00 00 00 00 00 FF 0F CE [18:01:04]process_action close_receipt done [18:01:04]requested_data is exist [18:01:04]produce_requested_data [18:01:04]requested_item fm.sn is exist - process it [18:01:04]wFMCommunicate request_size=4 [18:01:04]MH_SAM_APDU [18:01:04]CAPDU: 80 11 00 00 [18:01:04]Write to MH i2c: E2 08 00 7F 3B 80 11 00 00 00 00 00 00 34 [18:01:04]Write i2c OK [18:01:04]MH_I2C_Read... [18:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:04]Read from MH i2c: E2 [18:01:04]MH_I2C_Read... [18:01:04]Read from MH i2c: E2 17 00 [18:01:04]MH_I2C_Read... [18:01:04]Read from MH i2c: E2 17 00 7F 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 87 [18: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 [18:01:04]wFMCommunicate OK [18:01:04]requested_item fd.num is exist - process it [18:01:04]SAM_PROTO_GetFieldsCounters [18:01:04]wFMCommunicate request_size=4 [18:01:04]MH_SAM_APDU [18:01:04]CAPDU: 80 13 00 00 [18:01:04]Write to MH i2c: E2 08 00 80 3B 80 13 00 00 00 00 00 00 37 [18:01:04]Write i2c OK [18:01:04]MH_I2C_Read... [18:01:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:04]Read from MH i2c: E2 [18:01:04]MH_I2C_Read... [18:01:04]Read from MH i2c: E2 62 00 [18:01:04]MH_I2C_Read... [18:01:04]Read from MH i2c: E2 62 00 80 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DA 02 00 0E 04 04 00 87 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 18 [18:01: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 FE DA 02 00 0E 04 04 00 87 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 [18:01:04]wFMCommunicate OK [18:01:04]SAM_PROTO_GetFieldsCounters done [18:01:04]requested_item shift.num is exist - process it [18:01:04]requested_item shift.opened is exist - process it [18:01:04]req_shift_opened [18:01:04]FM_GetShiftState [18:01:04]SAM_PROTO_GetShiftState [18:01:04]wFMCommunicate request_size=4 [18:01:04]MH_SAM_APDU [18:01:04]CAPDU: 80 13 01 00 [18:01:04]Write to MH i2c: E2 08 00 81 3B 80 13 01 00 00 00 00 00 39 [18:01:04]Write i2c OK [18:01:04]MH_I2C_Read... [18:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:04]Read from MH i2c: E2 [18:01:04]MH_I2C_Read... [18:01:04]Read from MH i2c: E2 0E 00 [18:01:04]MH_I2C_Read... [18:01:04]Read from MH i2c: E2 0E 00 81 3B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 B8 [18:01:04]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:01:04]wFMCommunicate OK [18:01:04]SAM_PROTO_GetShiftState done [18:01:04]FM_GetShiftState done [18:01:04]req_shift_opened done [18:01:04]requested_item shift.open_date is exist - process it [18:01:04]req_shift_open_date [18:01:04]req_shift_open_date done [18:01:04]produce_requested_data done [18:01:04]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187134,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [18:01:04]process_action_free close_receipt [18:01:04]json_value_free [18:01:04]json_value_free done [18:01:04]process_json_proto returns [18:01:04]Send response to host [18:01:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187134,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [18:01:04]free response buf [18:01:04]execute_script done [18:01:04]execute_script returns [18:01:04]free content buf [18:01:04]Sock 7.Close socket [18:01:04]Sock 7.Thread stoped [18:01:08]OFD Sender: No OFD packet to send [18:01:13]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]accept exits with 9 [18:01:33]New connection [18:01:33]New thread 3067022692 created [18:01:33]Thread 3066879332 joined [18:01:33]Waiting for new connection... [18:01:33] Sock 9.Parse request [18:01:33]Sock 9.Check first char [18:01:33]Sock 9.First char is OK [18:01:33]request: POST /json_proto HTTP/1.0 [18:01:33]Method: POST [18:01:33]URL: /json_proto [18:01:33]Method is POST - this is cgi request [18:01:33]url: /json_proto [18:01:33]query_string will be loaded in cgi processing [18:01:33]execute_cgi json_proto POST (null) [18:01:33]execute_cgi path=json_proto method=POST [18:01:33]POST find Content-Length [18:01:33]Host: 172.17.46.131:8080 [18:01:33]Content-Length: 800 [18:01:33]Content-Type: application/json [18:01:33] [18:01:33]POST finish read [18:01:33]Found Content-Length = 800 [18:01:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412290", "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 }]} ], "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" ] } } [18:01:33]execute_script... [18:01: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)412290", "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 }]} ], "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" ] } } [18:01:33]POST & json_proto [18:01:33]process_json_proto [18:01:33]json parsed OK: [18:01:33]protocol is kg_v1.0 [18:01:33]action value=close_receipt [18:01:33]process_action close_receipt [18:01:33]cmd_close_receipt [18:01:33]MH_GetDate [18:01:33]Write to MH i2c: F0 00 00 82 3B AC [18:01:33]Write i2c OK [18:01:33]MH_I2C_Read... [18:01:33]Read from MH i2c: F0 [18:01:33]MH_I2C_Read... [18:01:33]Read from MH i2c: F0 09 00 [18:01:33]MH_I2C_Read... [18:01:33]Read from MH i2c: F0 09 00 82 3B 00 81 1C B6 67 7E 41 4F 65 E2 [18:01:33]GetLastDocTimeStamp 1739988065 [18:01:33]current date 1739988097 [18:01:33]FM_GetShiftState [18:01:33]SAM_PROTO_GetShiftState [18:01:33]wFMCommunicate request_size=4 [18:01:33]MH_SAM_APDU [18:01:33]CAPDU: 80 13 01 00 [18:01:33]Write to MH i2c: E2 08 00 83 3B 80 13 01 00 00 00 00 00 3B [18:01:33]Write i2c OK [18:01:33]MH_I2C_Read... [18:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:33]Read from MH i2c: E2 [18:01:33]MH_I2C_Read... [18:01:33]Read from MH i2c: E2 0E 00 [18:01:33]MH_I2C_Read... [18:01:33]Read from MH i2c: E2 0E 00 83 3B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 BA [18:01:33]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:01:33]wFMCommunicate OK [18:01:33]SAM_PROTO_GetShiftState done [18:01:33]FM_GetShiftState done [18:01:33]opened in 1739929631 [18:01:33]opened+sec_in_day 1740016031 [18:01:33]quantity*price = 50011 [18:01:33]sum+1 = 50013 [18:01:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.12 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.12 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 201 19.02.2025 18:01 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187135 ФПД: 190588309792193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T180137&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187135&fm=190588309792193&tin=02508201610067®Number=0000000000091857&sum=50012 [18:01:34]StoreToDocumentArchive [18:01:34]shift 647 fd 187135 [18:01:34]save to /storage/0647/doc_00187135 [18:01:34]save last doc name /storage/0647/doc_00187135 to /storage/kkm_last_doc_name [18:01:34]save OK [18:01:34]Clear old archive folders... [18:01:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:34]tlvbuf is B6DB9520 [18:01:34]SAM_PROTO_ClearQueue [18:01:34]wFMCommunicate request_size=4 [18:01:34]MH_SAM_APDU [18:01:34]CAPDU: 80 09 00 00 [18:01:34]Write to MH i2c: E2 08 00 90 3B 80 09 00 00 00 00 00 00 3D [18:01:34]Write i2c OK [18:01:34]MH_I2C_Read... [18:01:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:34]Read from MH i2c: E2 [18:01:34]MH_I2C_Read... [18:01:34]Read from MH i2c: E2 03 00 [18:01:34]MH_I2C_Read... [18:01:34]Read from MH i2c: E2 03 00 90 3B 00 90 00 3F [18:01:34]RAPDU: 90 00 [18:01:34]wFMCommunicate OK [18:01:34]SAM_PROTO_ClearQueue done [18:01:34]KKMCreateOFDPacket [18:01:34]OFDProtocolAddRootSTLVToBuf [18:01:34]FM_MakeSignedData [18:01:34]FM_MakeSignedData [18:01:34]SAM_PROTO_SignData [18:01:34]wFMCommunicate request_size=4 [18:01:34]MH_SAM_APDU [18:01:34]CAPDU: 80 0D 01 02 [18:01:34]Write to MH i2c: E2 08 00 91 3B 80 0D 01 02 00 00 00 00 45 [18:01:34]Write i2c OK [18:01:34]MH_I2C_Read... [18:01:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:34]Read from MH i2c: E2 [18:01:34]MH_I2C_Read... [18:01:34]Read from MH i2c: E2 03 00 [18:01:34]MH_I2C_Read... [18:01:34]Read from MH i2c: E2 03 00 91 3B 00 90 00 40 [18:01:34]RAPDU: 90 00 [18:01:34]wFMCommunicate OK [18:01:34]wFMCommunicate request_size=255 [18:01:34]MH_SAM_APDU [18:01: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 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 C9 00 00 00 F4 03 04 00 81 1C B6 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 FF DA 02 00 35 04 06 00 AD [18:01:34]Write to MH i2c: E2 02 01 92 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C9 00 00 00 F4 03 04 00 81 1C B6 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 FF DA 02 00 35 04 06 00 AD 00 00 8A [18:01:34]Write i2c OK [18:01:34]MH_I2C_Read... [18:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:34]Read from MH i2c: E2 [18:01:34]MH_I2C_Read... [18:01:34]Read from MH i2c: E2 03 00 [18:01:34]MH_I2C_Read... [18:01:34]Read from MH i2c: E2 03 00 92 3B 00 90 00 41 [18:01:34]RAPDU: 90 00 [18:01:34]wFMCommunicate OK [18:01:34]wFMCommunicate request_size=10 [18:01:34]MH_SAM_APDU [18:01:34]CAPDU: 80 0D 02 02 05 56 CC 80 E5 C1 [18:01:34]Write to MH i2c: E2 0D 00 93 3B 80 0D 02 02 05 00 56 CC 80 E5 C1 00 00 9A [18:01:34]Write i2c OK [18:01:34]MH_I2C_Read... [18:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:34]Read from MH i2c: E2 [18:01:34]MH_I2C_Read... [18:01:34]Read from MH i2c: E2 03 00 [18:01:34]MH_I2C_Read... [18:01:34]Read from MH i2c: E2 03 00 93 3B 00 90 00 42 [18:01:34]RAPDU: 90 00 [18:01:34]wFMCommunicate OK [18:01:34]wFMCommunicate request_size=4 [18:01:34]MH_SAM_APDU [18:01:34]CAPDU: 80 0D 03 02 [18:01:34]Write to MH i2c: E2 08 00 94 3B 80 0D 03 02 00 00 00 00 4A [18:01:34]Write i2c OK [18:01:34]MH_I2C_Read... [18:01:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:34]Read from MH i2c: E2 [18:01:34]MH_I2C_Read... [18:01:34]Read from MH i2c: E2 0B 00 [18:01:34]MH_I2C_Read... [18:01:34]Read from MH i2c: E2 0B 00 94 3B 00 E4 52 7B 9E FD CF 81 E0 90 00 C7 [18:01:34]RAPDU: E4 52 7B 9E FD CF 81 E0 90 00 [18:01:34]wFMCommunicate OK [18:01:34]SAM_PROTO_SignData done [18:01:34]FM_MakeSignedData done [18:01:34]CreateOFDProtocolMessage [18:01:34]wFMCommunicate request_size=4 [18:01:34]MH_SAM_APDU [18:01:34]CAPDU: 80 11 00 00 [18:01:34]Write to MH i2c: E2 08 00 95 3B 80 11 00 00 00 00 00 00 4A [18:01:34]Write i2c OK [18:01:34]MH_I2C_Read... [18:01:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:35]Read from MH i2c: E2 [18:01:35]MH_I2C_Read... [18:01:35]Read from MH i2c: E2 17 00 [18:01:35]MH_I2C_Read... [18:01:35]Read from MH i2c: E2 17 00 95 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9D [18:01:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:01:35]wFMCommunicate OK [18:01:35]CreateOFDProtocolMessage done [18:01:35]OFDSenderStorePacket 187135 [18:01:35]StoreOFDPacket docnum=187135 [18:01: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 30 C7 07 01 39 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C9 00 00 00 F4 03 04 00 81 1C B6 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 FF DA 02 00 35 04 06 00 AD 56 CC 80 E5 C1 E4 52 7B 9E FD CF 81 E0 [18:01:35]CheckFolder [18:01:35]dirname=/storage/ofd_packets [18:01:35]CheckFolder done [18:01:35]ProducePacketName [18:01:35]name=ofd_packets/00187135 [18:01:35]NVStorageSaveData ofd_packets/00187135 [18:01:35]File name is /storage/ofd_packets/00187135 [18:01:35]Write 301 bytes [18:01:35]NVStorageSaveData done [18:01:35]OFDSenderStorePacket done [18:01:35]KKMCreateOFDPacket done [18:01:35]NVStorageSaveData kkm_last_timestamp [18:01:35]File name is /storage/kkm_last_timestamp [18:01:35]Write 4 bytes [18:01:35]NVStorageSaveData done [18:01:35]ExternCall_PrintAddStr [18:01:35]wPrintStart [18:01:35]Write to MH i2c: 01 00 00 96 3B D1 [18:01:35]Write i2c OK [18:01:35]MH_I2C_Read... [18:01:35]Read from MH i2c: 01 [18:01:35]MH_I2C_Read... [18:01:35]Read from MH i2c: 01 07 00 [18:01:35]MH_I2C_Read... [18:01:35]Read from MH i2c: 01 07 00 96 3B 00 00 00 00 00 FF 0F E6 [18:01:35]RasterBufferAndPrint [18:01:35]line Счет N : (1)412290 [18:01:35]line ИНН: 02508201610067 [18:01:35]line Контрольно-Кассовый Чек [18:01:35]line ПРОДАЖА [18:01:35]line ТРК (МРК, ГНК) : 12 [18:01:35]line Товар: 2710124130 [18:01:35]line Аи-92-К-2 [18:01:35]line 7.790 * 64.20 [18:01:35]line = 500.12 [18:01:35]line НДС 12% НСП 1% [18:01:35]line > о реализуемом товаре [18:01:35]line ИТОГО: 500.12 [18:01:35]line НСП 1% : 4.43 [18:01:35]line НДС 12% : 53.11 [18:01:35]line Наличными: 0.00 [18:01:35]line Безнал.: 500.12 [18:01:35]line Место: АЗС № 92 "Партнер Нефть" [18:01:35]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:01:35]line СНО: Общий режим [18:01:35]line Чек 201 19.02.2025 18:01 [18:01:35]line Смена: 647 ФФД: 1.0 [18:01:35]line ЗНМ: 0300000118 [18:01:35]line РНМ: 0000000000091857 [18:01:35]line Версия ККМ: 001 [18:01:35]line Платежная система: O! деньги [18:01:35]line ФМ: 0000000000871826 [18:01:35]line ФД: 187135 [18:01:35]line ФПД: 190588309792193 [18:01:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T180137&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187135&fm=190588309792193&tin=02508201610067®Number=0000000000091857&sum=50012 [18:01:35]written 0, free lines is 4095 [18:01:35]OFD Sender: Processing packet 187135 [packets to send 49, broken 48] [18:01:35]ProducePacketName [18:01:35]name=ofd_packets/00187135 [18:01:35]OFD Sender: To server: pG, [18:01:35]CommunicateWithHost lk.salyk.kg:30040 [18:01:35]ConnectInit lk.salyk.kg [18:01:35]Write to MH i2c: 01 00 00 C0 3B FB [18:01:35]Write i2c OK [18:01:35]MH_I2C_Read... [18:01:35]Read from MH i2c: 01 [18:01:35]MH_I2C_Read... [18:01:35]Read from MH i2c: 01 07 00 [18:01:35]MH_I2C_Read... [18:01:35]Read from MH i2c: 01 07 00 C0 3B 00 00 00 00 00 F3 0C 01 [18:01:35]RasterBufferAndPrint [18:01:35]line [18:01:35]line [18:01:35]line [18:01:35]line [18:01:35]line [18:01:35]written 0, free lines is 3321 [18:01:35]MH_Cut [18:01:35]Write to MH i2c: D1 01 00 C7 3B 01 D4 [18:01:35]Write i2c OK [18:01:35]MH_I2C_Read... [18:01:35]Read from MH i2c: D1 [18:01:35]MH_I2C_Read... [18:01:35]Read from MH i2c: D1 01 00 [18:01:35]MH_I2C_Read... [18:01:35]Read from MH i2c: D1 01 00 C7 3B 00 D3 [18:01:35]Write to MH i2c: 01 00 00 C8 3B 03 [18:01:35]Write i2c OK [18:01:35]MH_I2C_Read... [18:01:35]Connected sock=10 [18:01: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 30 C7 07 01 39 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 C9 00 00 00 F4 03 04 00 81 1C B6 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 FF DA 02 00 35 04 06 00 AD 56 CC 80 E5 C1 E4 52 7B 9E FD CF 81 E0 [18:01:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 57 F3 47 00 13 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 FF DA 02 00 F4 03 04 00 D5 C2 B5 67 B6 04 01 00 00 B5 8D 93 1A 81 2D D3 78 [18:01:35]CommunicateWithHost err = 0 [18:01:35]CheckOFDResponse [18:01:35]1017 (14) - 77093643461234 [18:01:35]1041 (16) - 0000000000871826 [18:01:35]1040 (4) - 187135 [18:01:35]1012 (4) - 19.02.2025 11:39 [18:01:35]1206 (1) - 0 [18:01:35]OFD Sender: Remove packet 187135 [18:01:35]ProducePacketName [18:01:35]name=ofd_packets/00187135 [18:01:35]NVStorageDeleteData [18:01:36]*** Cut start [18:01:36]*** Partial cut [18:01:36]*** CUTSNS_PIN = 1 [18:01:36]*** CUTSNS_PIN = 0 [18:01:36]OFD Sender: No OFD packet to send [18:01:36]*** Brake cut motor [18:01:36]Read from MH i2c: 01 [18:01:36]MH_I2C_Read... [18:01:36]*** Stop cut motor [18:01:36]*** Cut end [18:01:36]Read from MH i2c: 01 07 00 [18:01:36]MH_I2C_Read... [18:01:36]Read from MH i2c: 01 07 00 C8 3B 00 00 00 00 00 FF 0F 18 [18:01:36]process_action close_receipt done [18:01:36]requested_data is exist [18:01:36]produce_requested_data [18:01:36]requested_item fm.sn is exist - process it [18:01:36]wFMCommunicate request_size=4 [18:01:36]MH_SAM_APDU [18:01:36]CAPDU: 80 11 00 00 [18:01:36]Write to MH i2c: E2 08 00 C9 3B 80 11 00 00 00 00 00 00 7E [18:01:36]Write i2c OK [18:01:36]MH_I2C_Read... [18:01:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:36]Read from MH i2c: E2 [18:01:36]MH_I2C_Read... [18:01:36]Read from MH i2c: E2 17 00 [18:01:36]MH_I2C_Read... [18:01:36]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 [18:01:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:01:36]wFMCommunicate OK [18:01:36]requested_item fd.num is exist - process it [18:01:36]SAM_PROTO_GetFieldsCounters [18:01:36]wFMCommunicate request_size=4 [18:01:36]MH_SAM_APDU [18:01:36]CAPDU: 80 13 00 00 [18:01:36]Write to MH i2c: E2 08 00 CA 3B 80 13 00 00 00 00 00 00 81 [18:01:36]Write i2c OK [18:01:36]MH_I2C_Read... [18:01:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:37]Read from MH i2c: E2 [18:01:37]MH_I2C_Read... [18:01:37]Read from MH i2c: E2 62 00 [18:01:37]MH_I2C_Read... [18:01:37]Read from MH i2c: E2 62 00 CA 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 FF DA 02 00 0E 04 04 00 87 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 66 [18:01: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 FF DA 02 00 0E 04 04 00 87 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 [18:01:37]wFMCommunicate OK [18:01:37]SAM_PROTO_GetFieldsCounters done [18:01:37]requested_item shift.num is exist - process it [18:01:37]requested_item shift.opened is exist - process it [18:01:37]req_shift_opened [18:01:37]FM_GetShiftState [18:01:37]SAM_PROTO_GetShiftState [18:01:37]wFMCommunicate request_size=4 [18:01:37]MH_SAM_APDU [18:01:37]CAPDU: 80 13 01 00 [18:01:37]Write to MH i2c: E2 08 00 CB 3B 80 13 01 00 00 00 00 00 83 [18:01:37]Write i2c OK [18:01:37]MH_I2C_Read... [18:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:37]Read from MH i2c: E2 [18:01:37]MH_I2C_Read... [18:01:37]Read from MH i2c: E2 0E 00 [18:01:37]MH_I2C_Read... [18:01:37]Read from MH i2c: E2 0E 00 CB 3B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 02 [18:01:37]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:01:37]wFMCommunicate OK [18:01:37]SAM_PROTO_GetShiftState done [18:01:37]FM_GetShiftState done [18:01:37]req_shift_opened done [18:01:37]requested_item shift.open_date is exist - process it [18:01:37]req_shift_open_date [18:01:37]req_shift_open_date done [18:01:37]produce_requested_data done [18:01:37]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187135,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [18:01:37]process_action_free close_receipt [18:01:37]json_value_free [18:01:37]json_value_free done [18:01:37]process_json_proto returns [18:01:37]Send response to host [18:01:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187135,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [18:01:37]free response buf [18:01:37]execute_script done [18:01:37]execute_script returns [18:01:37]free content buf [18:01:37]Sock 9.Close socket [18:01:37]Sock 9.Thread stoped [18:01:41]OFD Sender: No OFD packet to send [18:01:46]OFD Sender: No OFD packet to send [18:01:51]OFD Sender: No OFD packet to send [18:01:56]OFD Sender: No OFD packet to send [18:02:01]OFD Sender: No OFD packet to send [18:02:06]OFD Sender: No OFD packet to send [18:02:11]OFD Sender: No OFD packet to send [18:02:16]OFD Sender: No OFD packet to send [18:02:21]OFD Sender: No OFD packet to send [18:02:24]accept exits with 7 [18:02:24]New connection [18:02:24]New thread 3066879332 created [18:02:24]Thread 3067022692 joined [18:02:24]Waiting for new connection... [18:02:24] Sock 7.Parse request [18:02:24]Sock 7.Check first char [18:02:24]Sock 7.First char is OK [18:02:24]request: POST /json_proto HTTP/1.0 [18:02:24]Method: POST [18:02:24]URL: /json_proto [18:02:24]Method is POST - this is cgi request [18:02:24]url: /json_proto [18:02:24]query_string will be loaded in cgi processing [18:02:24]execute_cgi json_proto POST (null) [18:02:24]execute_cgi path=json_proto method=POST [18:02:24]POST find Content-Length [18:02:24]Host: 172.17.46.131:8080 [18:02:24]Content-Length: 754 [18:02:24]Content-Type: application/json [18:02:24] [18:02:24]POST finish read [18:02:24]Found Content-Length = 754 [18:02:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412287", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30039368", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:24]execute_script... [18:02: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)412287", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30039368", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:24]POST & json_proto [18:02:24]process_json_proto [18:02:24]json parsed OK: [18:02:24]protocol is kg_v1.0 [18:02:24]action value=close_receipt [18:02:24]process_action close_receipt [18:02:24]cmd_close_receipt [18:02:24]MH_GetDate [18:02:24]Write to MH i2c: F0 00 00 CC 3B F6 [18:02:24]Write i2c OK [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: F0 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: F0 09 00 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: F0 09 00 CC 3B 00 B5 1C B6 67 7E 41 4F 65 60 [18:02:24]GetLastDocTimeStamp 1739988097 [18:02:24]current date 1739988149 [18:02:24]FM_GetShiftState [18:02:24]SAM_PROTO_GetShiftState [18:02:24]wFMCommunicate request_size=4 [18:02:24]MH_SAM_APDU [18:02:24]CAPDU: 80 13 01 00 [18:02:24]Write to MH i2c: E2 08 00 CD 3B 80 13 01 00 00 00 00 00 85 [18:02:24]Write i2c OK [18:02:24]MH_I2C_Read... [18:02:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:24]Read from MH i2c: E2 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: E2 0E 00 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: E2 0E 00 CD 3B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 04 [18:02:24]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:02:24]wFMCommunicate OK [18:02:24]SAM_PROTO_GetShiftState done [18:02:24]FM_GetShiftState done [18:02:24]opened in 1739929631 [18:02:24]opened+sec_in_day 1740016031 [18:02:24]quantity*price = 0 [18:02:24]sum+1 = 1 [18:02: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 СНО: Общий режим Чек 202 19.02.2025 18:02 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30039368 ФМ: 0000000000871826 ФД: 187136 ФПД: 166022259646888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T180229&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187136&fm=166022259646888&tin=02508201610067®Number=0000000000091857&sum=0 [18:02:25]StoreToDocumentArchive [18:02:25]shift 647 fd 187136 [18:02:25]save to /storage/0647/doc_00187136 [18:02:25]save last doc name /storage/0647/doc_00187136 to /storage/kkm_last_doc_name [18:02:25]save OK [18:02:25]Clear old archive folders... [18:02:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:02:25]tlvbuf is 0065A540 [18:02:25]SAM_PROTO_ClearQueue [18:02:25]wFMCommunicate request_size=4 [18:02:25]MH_SAM_APDU [18:02:25]CAPDU: 80 09 00 00 [18:02:25]Write to MH i2c: E2 08 00 DA 3B 80 09 00 00 00 00 00 00 87 [18:02:25]Write i2c OK [18:02:25]MH_I2C_Read... [18:02:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:26]Read from MH i2c: E2 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: E2 03 00 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: E2 03 00 DA 3B 00 90 00 89 [18:02:26]RAPDU: 90 00 [18:02:26]wFMCommunicate OK [18:02:26]SAM_PROTO_ClearQueue done [18:02:26]KKMCreateOFDPacket [18:02:26]OFDProtocolAddRootSTLVToBuf [18:02:26]FM_MakeSignedData [18:02:26]FM_MakeSignedData [18:02:26]SAM_PROTO_SignData [18:02:26]wFMCommunicate request_size=4 [18:02:26]MH_SAM_APDU [18:02:26]CAPDU: 80 0D 01 02 [18:02:26]Write to MH i2c: E2 08 00 DB 3B 80 0D 01 02 00 00 00 00 8F [18:02:26]Write i2c OK [18:02:26]MH_I2C_Read... [18:02:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:26]Read from MH i2c: E2 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: E2 03 00 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: E2 03 00 DB 3B 00 90 00 8A [18:02:26]RAPDU: 90 00 [18:02:26]wFMCommunicate OK [18:02:26]wFMCommunicate request_size=255 [18:02:26]MH_SAM_APDU [18:02:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 CA 00 00 00 F4 03 04 00 B5 1C B6 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 00 DB 02 00 35 04 06 00 96 [18:02:26]Write to MH i2c: E2 02 01 DC 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 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 CA 00 00 00 F4 03 04 00 B5 1C B6 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 00 DB 02 00 35 04 06 00 96 00 00 62 [18:02:26]Write i2c OK [18:02:26]MH_I2C_Read... [18:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:26]Read from MH i2c: E2 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: E2 03 00 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: E2 03 00 DC 3B 00 90 00 8B [18:02:26]RAPDU: 90 00 [18:02:26]wFMCommunicate OK [18:02:26]wFMCommunicate request_size=10 [18:02:26]MH_SAM_APDU [18:02:26]CAPDU: 80 0D 02 02 05 FF 11 CF A1 A8 [18:02:26]Write to MH i2c: E2 0D 00 DD 3B 80 0D 02 02 05 00 FF 11 CF A1 A8 00 00 C4 [18:02:26]Write i2c OK [18:02:26]MH_I2C_Read... [18:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:26]Read from MH i2c: E2 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: E2 03 00 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: E2 03 00 DD 3B 00 90 00 8C [18:02:26]RAPDU: 90 00 [18:02:26]wFMCommunicate OK [18:02:26]wFMCommunicate request_size=4 [18:02:26]MH_SAM_APDU [18:02:26]CAPDU: 80 0D 03 02 [18:02:26]Write to MH i2c: E2 08 00 DE 3B 80 0D 03 02 00 00 00 00 94 [18:02:26]Write i2c OK [18:02:26]MH_I2C_Read... [18:02:26]OFD Sender: No OFD packet to send [18:02:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:26]Read from MH i2c: E2 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: E2 0B 00 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: E2 0B 00 DE 3B 00 0C 0C B1 28 5A EE 93 F1 90 00 52 [18:02:26]RAPDU: 0C 0C B1 28 5A EE 93 F1 90 00 [18:02:26]wFMCommunicate OK [18:02:26]SAM_PROTO_SignData done [18:02:26]FM_MakeSignedData done [18:02:26]CreateOFDProtocolMessage [18:02:26]wFMCommunicate request_size=4 [18:02:26]MH_SAM_APDU [18:02:26]CAPDU: 80 11 00 00 [18:02:26]Write to MH i2c: E2 08 00 DF 3B 80 11 00 00 00 00 00 00 94 [18:02:26]Write i2c OK [18:02:26]MH_I2C_Read... [18:02:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:26]Read from MH i2c: E2 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: E2 17 00 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: E2 17 00 DF 3B 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:02:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:02:26]wFMCommunicate OK [18:02:26]CreateOFDProtocolMessage done [18:02:26]OFDSenderStorePacket 187136 [18:02:26]StoreOFDPacket docnum=187136 [18:02: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 CB 6F 07 01 9D 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 CA 00 00 00 F4 03 04 00 B5 1C B6 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 00 DB 02 00 35 04 06 00 96 FF 11 CF A1 A8 0C 0C B1 28 5A EE 93 F1 [18:02:26]CheckFolder [18:02:26]dirname=/storage/ofd_packets [18:02:26]CheckFolder done [18:02:26]ProducePacketName [18:02:26]name=ofd_packets/00187136 [18:02:26]NVStorageSaveData ofd_packets/00187136 [18:02:26]File name is /storage/ofd_packets/00187136 [18:02:26]Write 301 bytes [18:02:26]NVStorageSaveData done [18:02:26]OFDSenderStorePacket done [18:02:26]KKMCreateOFDPacket done [18:02:26]NVStorageSaveData kkm_last_timestamp [18:02:26]File name is /storage/kkm_last_timestamp [18:02:26]Write 4 bytes [18:02:26]NVStorageSaveData done [18:02:26]ExternCall_PrintAddStr [18:02:26]wPrintStart [18:02:26]Write to MH i2c: 01 00 00 E0 3B 1B [18:02:26]Write i2c OK [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: 01 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: 01 07 00 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: 01 07 00 E0 3B 00 00 00 00 00 FF 0F 30 [18:02:26]RasterBufferAndPrint [18:02:26]line Счет N : (1)412287 [18:02:26]line ИНН: 02508201610067 [18:02:26]line Контрольно-Кассовый Чек [18:02:26]line ПРОДАЖА [18:02:26]line ТРК (МРК, ГНК) : 32 [18:02:26]line Товар: 2710124130 [18:02:26]line Аи-92-К-2 [18:02:26]line 50.000 * 0.00 [18:02:26]line = 0.00 [18:02:26]line НДС 12% НСП 1% [18:02:26]line > о реализуемом товаре [18:02:26]line ИТОГО: 0.00 [18:02:26]line НСП 1% : 0.00 [18:02:26]line НДС 12% : 0.00 [18:02:26]line Наличными: 0.00 [18:02:26]line Безнал.: 0.00 [18:02:26]line Место: АЗС № 92 "Партнер Нефть" [18:02:26]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:02:26]line СНО: Общий режим [18:02:26]line Чек 202 19.02.2025 18:02 [18:02:26]line Смена: 647 ФФД: 1.0 [18:02:26]line ЗНМ: 0300000118 [18:02:26]line РНМ: 0000000000091857 [18:02:26]line Версия ККМ: 001 [18:02:26]line Талоны: ТК ГПНА Online [18:02:26]line 30039368 [18:02:26]line ФМ: 0000000000871826 [18:02:26]line ФД: 187136 [18:02:26]line ФПД: 166022259646888 [18:02:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T180229&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187136&fm=166022259646888&tin=02508201610067®Number=0000000000091857&sum=0 [18:02:26]written 0, free lines is 4095 [18:02:26]OFD Sender: Processing packet 187136 [packets to send 49, broken 48] [18:02:26]ProducePacketName [18:02:26]name=ofd_packets/00187136 [18:02:26]OFD Sender: To server: pG, [18:02:26]CommunicateWithHost lk.salyk.kg:30040 [18:02:26]ConnectInit lk.salyk.kg [18:02:26]Connected sock=11 [18:02: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 CB 6F 07 01 9D 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 CA 00 00 00 F4 03 04 00 B5 1C B6 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 00 DB 02 00 35 04 06 00 96 FF 11 CF A1 A8 0C 0C B1 28 5A EE 93 F1 [18:02:26]Write to MH i2c: 01 00 00 0A 3C 46 [18:02:26]Write i2c OK [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: 01 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: 01 07 00 [18:02:26]MH_I2C_Read... [18:02:26]Read from MH i2c: 01 07 00 0A 3C 00 00 00 00 00 08 0D 62 [18:02:26]RasterBufferAndPrint [18:02:26]line [18:02:26]line [18:02:26]line [18:02:26]line [18:02:26]line [18:02: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 76 F9 47 00 4F 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 00 DB 02 00 F4 03 04 00 08 C3 B5 67 B6 04 01 00 00 86 01 3C 6D 6E A9 9C C2 [18:02:26]CommunicateWithHost err = 0 [18:02:26]CheckOFDResponse [18:02:26]1017 (14) - 77093643461234 [18:02:26]1041 (16) - 0000000000871826 [18:02:26]1040 (4) - 187136 [18:02:26]1012 (4) - 19.02.2025 11:39 [18:02:26]1206 (1) - 0 [18:02:26]OFD Sender: Remove packet 187136 [18:02:26]ProducePacketName [18:02:26]name=ofd_packets/00187136 [18:02:26]NVStorageDeleteData [18:02:26]written 0, free lines is 3343 [18:02:27]MH_Cut [18:02:27]Write to MH i2c: D1 01 00 11 3C 01 1F [18:02:27]Write i2c OK [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: D1 [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: D1 01 00 [18:02:27]MH_I2C_Read... [18:02:27]Read from MH i2c: D1 01 00 11 3C 00 1E [18:02:27]Write to MH i2c: 01 00 00 12 3C 4E [18:02:27]Write i2c OK [18:02:27]MH_I2C_Read... [18:02:27]OFD Sender: No OFD packet to send [18:02:27]*** Cut start [18:02:27]*** Partial cut [18:02:27]*** CUTSNS_PIN = 1 [18:02:27]*** CUTSNS_PIN = 0 [18:02:28]*** Brake cut motor [18:02:28]Read from MH i2c: 01 [18:02:28]MH_I2C_Read... [18:02:28]*** Stop cut motor [18:02:28]*** Cut end [18:02:28]Read from MH i2c: 01 07 00 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: 01 07 00 12 3C 00 00 00 00 00 FF 0F 63 [18:02:28]process_action close_receipt done [18:02:28]requested_data is exist [18:02:28]produce_requested_data [18:02:28]requested_item fm.sn is exist - process it [18:02:28]wFMCommunicate request_size=4 [18:02:28]MH_SAM_APDU [18:02:28]CAPDU: 80 11 00 00 [18:02:28]Write to MH i2c: E2 08 00 13 3C 80 11 00 00 00 00 00 00 C9 [18:02:28]Write i2c OK [18:02:28]MH_I2C_Read... [18:02:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:28]Read from MH i2c: E2 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: E2 17 00 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: E2 17 00 13 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1C [18:02:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:02:28]wFMCommunicate OK [18:02:28]requested_item fd.num is exist - process it [18:02:28]SAM_PROTO_GetFieldsCounters [18:02:28]wFMCommunicate request_size=4 [18:02:28]MH_SAM_APDU [18:02:28]CAPDU: 80 13 00 00 [18:02:28]Write to MH i2c: E2 08 00 14 3C 80 13 00 00 00 00 00 00 CC [18:02:28]Write i2c OK [18:02:28]MH_I2C_Read... [18:02:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:28]Read from MH i2c: E2 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: E2 62 00 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: E2 62 00 14 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 00 DB 02 00 0E 04 04 00 87 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 B6 [18:02: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 00 DB 02 00 0E 04 04 00 87 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 [18:02:28]wFMCommunicate OK [18:02:28]SAM_PROTO_GetFieldsCounters done [18:02:28]requested_item shift.num is exist - process it [18:02:28]requested_item shift.opened is exist - process it [18:02:28]req_shift_opened [18:02:28]FM_GetShiftState [18:02:28]SAM_PROTO_GetShiftState [18:02:28]wFMCommunicate request_size=4 [18:02:28]MH_SAM_APDU [18:02:28]CAPDU: 80 13 01 00 [18:02:28]Write to MH i2c: E2 08 00 15 3C 80 13 01 00 00 00 00 00 CE [18:02:28]Write i2c OK [18:02:28]MH_I2C_Read... [18:02:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:28]Read from MH i2c: E2 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: E2 0E 00 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: E2 0E 00 15 3C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 4D [18:02:28]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:02:28]wFMCommunicate OK [18:02:28]SAM_PROTO_GetShiftState done [18:02:28]FM_GetShiftState done [18:02:28]req_shift_opened done [18:02:28]requested_item shift.open_date is exist - process it [18:02:28]req_shift_open_date [18:02:28]req_shift_open_date done [18:02:28]produce_requested_data done [18:02:28]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187136,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [18:02:28]process_action_free close_receipt [18:02:28]json_value_free [18:02:28]json_value_free done [18:02:28]process_json_proto returns [18:02:28]Send response to host [18:02:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187136,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [18:02:28]free response buf [18:02:28]execute_script done [18:02:28]execute_script returns [18:02:28]free content buf [18:02:28]Sock 7.Close socket [18:02:28]Sock 7.Thread stoped [18:02:28]accept exits with 9 [18:02:28]New connection [18:02:28]New thread 3067022692 created [18:02:28]Thread 3066879332 joined [18:02:28]Waiting for new connection... [18:02:28] Sock 9.Parse request [18:02:28]Sock 9.Check first char [18:02:28]Sock 9.First char is OK [18:02:28]request: POST /json_proto HTTP/1.0 [18:02:28]Method: POST [18:02:28]URL: /json_proto [18:02:28]Method is POST - this is cgi request [18:02:28]url: /json_proto [18:02:28]query_string will be loaded in cgi processing [18:02:28]execute_cgi json_proto POST (null) [18:02:28]execute_cgi path=json_proto method=POST [18:02:28]POST find Content-Length [18:02:28]Host: 172.17.46.131:8080 [18:02:28]Content-Length: 677 [18:02:28]Content-Type: application/json [18:02:28] [18:02:28]POST finish read [18:02:28]Found Content-Length = 677 [18:02:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412291", "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" ] } } [18:02:28]execute_script... [18:02: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)412291", "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" ] } } [18:02:28]POST & json_proto [18:02:28]process_json_proto [18:02:28]json parsed OK: [18:02:28]protocol is kg_v1.0 [18:02:28]action value=close_receipt [18:02:28]process_action close_receipt [18:02:28]cmd_close_receipt [18:02:28]MH_GetDate [18:02:28]Write to MH i2c: F0 00 00 16 3C 41 [18:02:28]Write i2c OK [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: F0 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: F0 09 00 [18:02:28]MH_I2C_Read... [18:02:28]Read from MH i2c: F0 09 00 16 3C 00 B9 1C B6 67 7E 41 4F 65 AF [18:02:28]GetLastDocTimeStamp 1739988149 [18:02:28]current date 1739988153 [18:02:28]FM_GetShiftState [18:02:28]SAM_PROTO_GetShiftState [18:02:28]wFMCommunicate request_size=4 [18:02:28]MH_SAM_APDU [18:02:28]CAPDU: 80 13 01 00 [18:02:28]Write to MH i2c: E2 08 00 17 3C 80 13 01 00 00 00 00 00 D0 [18:02:28]Write i2c OK [18:02:28]MH_I2C_Read... [18:02:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:29]Read from MH i2c: E2 [18:02:29]MH_I2C_Read... [18:02:29]Read from MH i2c: E2 0E 00 [18:02:29]MH_I2C_Read... [18:02:29]Read from MH i2c: E2 0E 00 17 3C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 4F [18:02:29]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:02:29]wFMCommunicate OK [18:02:29]SAM_PROTO_GetShiftState done [18:02:29]FM_GetShiftState done [18:02:29]opened in 1739929631 [18:02:29]opened+sec_in_day 1740016031 [18:02:29]quantity*price = 50011 [18:02:29]sum+1 = 50013 [18:02:29]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 СНО: Общий режим Чек 203 19.02.2025 18:02 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187137 ФПД: 30328624599018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T180233&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187137&fm=30328624599018&tin=02508201610067®Number=0000000000091857&sum=50000 [18:02:30]StoreToDocumentArchive [18:02:30]shift 647 fd 187137 [18:02:30]save to /storage/0647/doc_00187137 [18:02:30]save last doc name /storage/0647/doc_00187137 to /storage/kkm_last_doc_name [18:02:30]save OK [18:02:30]Clear old archive folders... [18:02:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:02:30]tlvbuf is 0066D1A0 [18:02:30]SAM_PROTO_ClearQueue [18:02:30]wFMCommunicate request_size=4 [18:02:30]MH_SAM_APDU [18:02:30]CAPDU: 80 09 00 00 [18:02:30]Write to MH i2c: E2 08 00 24 3C 80 09 00 00 00 00 00 00 D2 [18:02:30]Write i2c OK [18:02:30]MH_I2C_Read... [18:02:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:30]Read from MH i2c: E2 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 03 00 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 03 00 24 3C 00 90 00 D4 [18:02:30]RAPDU: 90 00 [18:02:30]wFMCommunicate OK [18:02:30]SAM_PROTO_ClearQueue done [18:02:30]KKMCreateOFDPacket [18:02:30]OFDProtocolAddRootSTLVToBuf [18:02:30]FM_MakeSignedData [18:02:30]FM_MakeSignedData [18:02:30]SAM_PROTO_SignData [18:02:30]wFMCommunicate request_size=4 [18:02:30]MH_SAM_APDU [18:02:30]CAPDU: 80 0D 01 02 [18:02:30]Write to MH i2c: E2 08 00 25 3C 80 0D 01 02 00 00 00 00 DA [18:02:30]Write i2c OK [18:02:30]MH_I2C_Read... [18:02:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:30]Read from MH i2c: E2 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 03 00 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 03 00 25 3C 00 90 00 D5 [18:02:30]RAPDU: 90 00 [18:02:30]wFMCommunicate OK [18:02:30]wFMCommunicate request_size=255 [18:02:30]MH_SAM_APDU [18:02:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 CB 00 00 00 F4 03 04 00 B9 1C B6 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 01 DB 02 00 35 04 06 00 1B [18:02:30]Write to MH i2c: E2 02 01 26 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 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 CB 00 00 00 F4 03 04 00 B9 1C B6 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 01 DB 02 00 35 04 06 00 1B 00 00 B2 [18:02:30]Write i2c OK [18:02:30]MH_I2C_Read... [18:02:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:30]Read from MH i2c: E2 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 03 00 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 03 00 26 3C 00 90 00 D6 [18:02:30]RAPDU: 90 00 [18:02:30]wFMCommunicate OK [18:02:30]wFMCommunicate request_size=10 [18:02:30]MH_SAM_APDU [18:02:30]CAPDU: 80 0D 02 02 05 95 6E E5 4F EA [18:02:30]Write to MH i2c: E2 0D 00 27 3C 80 0D 02 02 05 00 95 6E E5 4F EA 00 00 08 [18:02:30]Write i2c OK [18:02:30]MH_I2C_Read... [18:02:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:30]Read from MH i2c: E2 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 03 00 [18:02:30]MH_I2C_Read... [18:02:30]Read from MH i2c: E2 03 00 27 3C 00 90 00 D7 [18:02:30]RAPDU: 90 00 [18:02:30]wFMCommunicate OK [18:02:30]wFMCommunicate request_size=4 [18:02:30]MH_SAM_APDU [18:02:30]CAPDU: 80 0D 03 02 [18:02:30]Write to MH i2c: E2 08 00 28 3C 80 0D 03 02 00 00 00 00 DF [18:02:30]Write i2c OK [18:02:30]MH_I2C_Read... [18:02:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:31]Read from MH i2c: E2 [18:02:31]MH_I2C_Read... [18:02:31]Read from MH i2c: E2 0B 00 [18:02:31]MH_I2C_Read... [18:02:31]Read from MH i2c: E2 0B 00 28 3C 00 E8 BB 71 78 D1 64 D3 15 90 00 89 [18:02:31]RAPDU: E8 BB 71 78 D1 64 D3 15 90 00 [18:02:31]wFMCommunicate OK [18:02:31]SAM_PROTO_SignData done [18:02:31]FM_MakeSignedData done [18:02:31]CreateOFDProtocolMessage [18:02:31]wFMCommunicate request_size=4 [18:02:31]MH_SAM_APDU [18:02:31]CAPDU: 80 11 00 00 [18:02:31]Write to MH i2c: E2 08 00 29 3C 80 11 00 00 00 00 00 00 DF [18:02:31]Write i2c OK [18:02:31]MH_I2C_Read... [18:02:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:31]Read from MH i2c: E2 [18:02:31]MH_I2C_Read... [18:02:31]Read from MH i2c: E2 17 00 [18:02:31]MH_I2C_Read... [18:02:31]Read from MH i2c: E2 17 00 29 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 32 [18: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 [18:02:31]wFMCommunicate OK [18:02:31]CreateOFDProtocolMessage done [18:02:31]OFDSenderStorePacket 187137 [18:02:31]StoreOFDPacket docnum=187137 [18:02: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 0F 01 00 00 B6 B7 07 01 5F 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 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 CB 00 00 00 F4 03 04 00 B9 1C B6 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 01 DB 02 00 35 04 06 00 1B 95 6E E5 4F EA E8 BB 71 78 D1 64 D3 15 [18:02:31]CheckFolder [18:02:31]dirname=/storage/ofd_packets [18:02:31]CheckFolder done [18:02:31]ProducePacketName [18:02:31]name=ofd_packets/00187137 [18:02:31]NVStorageSaveData ofd_packets/00187137 [18:02:31]File name is /storage/ofd_packets/00187137 [18:02:31]Write 301 bytes [18:02:31]NVStorageSaveData done [18:02:31]OFDSenderStorePacket done [18:02:31]KKMCreateOFDPacket done [18:02:31]NVStorageSaveData kkm_last_timestamp [18:02:31]File name is /storage/kkm_last_timestamp [18:02:31]Write 4 bytes [18:02:31]NVStorageSaveData done [18:02:31]ExternCall_PrintAddStr [18:02:31]wPrintStart [18:02:31]Write to MH i2c: 01 00 00 2A 3C 66 [18:02:31]Write i2c OK [18:02:31]MH_I2C_Read... [18:02:31]Read from MH i2c: 01 [18:02:31]MH_I2C_Read... [18:02:31]Read from MH i2c: 01 07 00 [18:02:31]MH_I2C_Read... [18:02:31]Read from MH i2c: 01 07 00 2A 3C 00 00 00 00 00 FF 0F 7B [18:02:31]RasterBufferAndPrint [18:02:31]line Счет N : (1)412291 [18:02:31]line ИНН: 02508201610067 [18:02:31]line Контрольно-Кассовый Чек [18:02:31]line ПРОДАЖА [18:02:31]line ТРК (МРК, ГНК) : 22 [18:02:31]line Товар: 2710124130 [18:02:31]line Аи-92-К-2 [18:02:31]line 7.790 * 64.20 [18:02:31]line = 500.12 [18:02:31]line НДС 12% НСП 1% [18:02:31]line > о реализуемом товаре [18:02:31]line ОКРУГЛЕНИЕ: -0.12 [18:02:31]line ИТОГО: 500.00 [18:02:31]line Внесено: 500.00 [18:02:31]line СДАЧА: 0.00 [18:02:31]line НСП 1% : 4.43 [18:02:31]line НДС 12% : 53.11 [18:02:31]line Наличными: 500.00 [18:02:31]line Безнал.: 0.00 [18:02:31]line Место: АЗС № 92 "Партнер Нефть" [18:02:31]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:02:31]line СНО: Общий режим [18:02:31]line Чек 203 19.02.2025 18:02 [18:02:31]line Смена: 647 ФФД: 1.0 [18:02:31]line ЗНМ: 0300000118 [18:02:31]line РНМ: 0000000000091857 [18:02:31]line Версия ККМ: 001 [18:02:31]line ФМ: 0000000000871826 [18:02:31]line ФД: 187137 [18:02:31]line ФПД: 30328624599018 [18:02:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T180233&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187137&fm=30328624599018&tin=02508201610067®Number=0000000000091857&sum=50000 [18:02:31]written 0, free lines is 4095 [18:02:31]OFD Sender: Processing packet 187137 [packets to send 49, broken 48] [18:02:31]ProducePacketName [18:02:31]name=ofd_packets/00187137 [18:02:31]OFD Sender: To server: pG, [18:02:31]CommunicateWithHost lk.salyk.kg:30040 [18:02:31]ConnectInit lk.salyk.kg [18:02:31]Connected sock=10 [18:02:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B6 B7 07 01 5F 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 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 CB 00 00 00 F4 03 04 00 B9 1C B6 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 01 DB 02 00 35 04 06 00 1B 95 6E E5 4F EA E8 BB 71 78 D1 64 D3 15 [18:02:31]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 5E 69 47 00 BA 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 01 DB 02 00 F4 03 04 00 0D C3 B5 67 B6 04 01 00 00 35 0E B8 64 F3 45 4F AE [18:02:31]CommunicateWithHost err = 0 [18:02:31]CheckOFDResponse [18:02:31]1017 (14) - 77093643461234 [18:02:31]1041 (16) - 0000000000871826 [18:02:31]1040 (4) - 187137 [18:02:31]1012 (4) - 19.02.2025 11:39 [18:02:31]1206 (1) - 0 [18:02:31]OFD Sender: Remove packet 187137 [18:02:31]ProducePacketName [18:02:31]name=ofd_packets/00187137 [18:02:31]NVStorageDeleteData [18:02:31]Write to MH i2c: 01 00 00 55 3C 91 [18:02:31]Write i2c OK [18:02:31]MH_I2C_Read... [18:02:31]Read from MH i2c: 01 [18:02:31]MH_I2C_Read... [18:02:31]Read from MH i2c: 01 07 00 [18:02:31]MH_I2C_Read... [18:02:31]Read from MH i2c: 01 07 00 55 3C 00 00 00 00 00 F7 0C 9B [18:02:31]RasterBufferAndPrint [18:02:31]line [18:02:31]line [18:02:31]line [18:02:31]line [18:02:31]line [18:02:31]written 0, free lines is 3334 [18:02:31]MH_Cut [18:02:31]Write to MH i2c: D1 01 00 5C 3C 01 6A [18:02:31]Write i2c OK [18:02:31]MH_I2C_Read... [18:02:31]Read from MH i2c: D1 [18:02:31]MH_I2C_Read... [18:02:31]Read from MH i2c: D1 01 00 [18:02:31]MH_I2C_Read... [18:02:31]Read from MH i2c: D1 01 00 5C 3C 00 69 [18:02:31]Write to MH i2c: 01 00 00 5D 3C 99 [18:02:31]Write i2c OK [18:02:31]MH_I2C_Read... [18:02:32]OFD Sender: No OFD packet to send [18:02:32]*** Cut start [18:02:32]*** Partial cut [18:02:32]*** CUTSNS_PIN = 1 [18:02:32]*** CUTSNS_PIN = 0 [18:02:32]*** Brake cut motor [18:02:32]Read from MH i2c: 01 [18:02:32]MH_I2C_Read... [18:02:32]*** Stop cut motor [18:02:33]*** Cut end [18:02:33]Read from MH i2c: 01 07 00 [18:02:33]MH_I2C_Read... [18:02:33]Read from MH i2c: 01 07 00 5D 3C 00 00 00 00 00 FF 0F AE [18:02:33]process_action close_receipt done [18:02:33]requested_data is exist [18:02:33]produce_requested_data [18:02:33]requested_item fm.sn is exist - process it [18:02:33]wFMCommunicate request_size=4 [18:02:33]MH_SAM_APDU [18:02:33]CAPDU: 80 11 00 00 [18:02:33]Write to MH i2c: E2 08 00 5E 3C 80 11 00 00 00 00 00 00 14 [18:02:33]Write i2c OK [18:02:33]MH_I2C_Read... [18:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:33]Read from MH i2c: E2 [18:02:33]MH_I2C_Read... [18:02:33]Read from MH i2c: E2 17 00 [18:02:33]MH_I2C_Read... [18:02:33]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 [18:02: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:02:33]wFMCommunicate OK [18:02:33]requested_item fd.num is exist - process it [18:02:33]SAM_PROTO_GetFieldsCounters [18:02:33]wFMCommunicate request_size=4 [18:02:33]MH_SAM_APDU [18:02:33]CAPDU: 80 13 00 00 [18:02:33]Write to MH i2c: E2 08 00 5F 3C 80 13 00 00 00 00 00 00 17 [18:02:33]Write i2c OK [18:02:33]MH_I2C_Read... [18:02:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:33]Read from MH i2c: E2 [18:02:33]MH_I2C_Read... [18:02:33]Read from MH i2c: E2 62 00 [18:02:33]MH_I2C_Read... [18:02:33]Read from MH i2c: E2 62 00 5F 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DB 02 00 0E 04 04 00 87 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 05 [18:02: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 01 DB 02 00 0E 04 04 00 87 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 [18:02:33]wFMCommunicate OK [18:02:33]SAM_PROTO_GetFieldsCounters done [18:02:33]requested_item shift.num is exist - process it [18:02:33]requested_item shift.opened is exist - process it [18:02:33]req_shift_opened [18:02:33]FM_GetShiftState [18:02:33]SAM_PROTO_GetShiftState [18:02:33]wFMCommunicate request_size=4 [18:02:33]MH_SAM_APDU [18:02:33]CAPDU: 80 13 01 00 [18:02:33]Write to MH i2c: E2 08 00 60 3C 80 13 01 00 00 00 00 00 19 [18:02:33]Write i2c OK [18:02:33]MH_I2C_Read... [18:02:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:33]Read from MH i2c: E2 [18:02:33]MH_I2C_Read... [18:02:33]Read from MH i2c: E2 0E 00 [18:02:33]MH_I2C_Read... [18:02:33]Read from MH i2c: E2 0E 00 60 3C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 98 [18:02:33]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:02:33]wFMCommunicate OK [18:02:33]SAM_PROTO_GetShiftState done [18:02:33]FM_GetShiftState done [18:02:33]req_shift_opened done [18:02:33]requested_item shift.open_date is exist - process it [18:02:33]req_shift_open_date [18:02:33]req_shift_open_date done [18:02:33]produce_requested_data done [18:02:33]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187137,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [18:02:33]process_action_free close_receipt [18:02:33]json_value_free [18:02:33]json_value_free done [18:02:33]process_json_proto returns [18:02:33]Send response to host [18:02:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187137,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [18:02:33]free response buf [18:02:33]execute_script done [18:02:33]execute_script returns [18:02:33]free content buf [18:02:33]Sock 9.Close socket [18:02:33]Sock 9.Thread stoped [18:02:37]OFD Sender: No OFD packet to send [18:02:42]OFD Sender: No OFD packet to send [18:02:47]OFD Sender: No OFD packet to send [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:03:02]OFD Sender: No OFD packet to send [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:04:02]OFD Sender: No OFD packet to send [18:04:05]accept exits with 7 [18:04:05]New connection [18:04:05]New thread 3066879332 created [18:04:05]Thread 3067022692 joined [18:04:05]Waiting for new connection... [18:04:05] Sock 7.Parse request [18:04:05]Sock 7.Check first char [18:04:05]Sock 7.First char is OK [18:04:05]request: POST /json_proto HTTP/1.0 [18:04:05]Method: POST [18:04:05]URL: /json_proto [18:04:05]Method is POST - this is cgi request [18:04:05]url: /json_proto [18:04:05]query_string will be loaded in cgi processing [18:04:05]execute_cgi json_proto POST (null) [18:04:05]execute_cgi path=json_proto method=POST [18:04:05]POST find Content-Length [18:04:05]Host: 172.17.46.131:8080 [18:04:05]Content-Length: 673 [18:04:05]Content-Type: application/json [18:04:05] [18:04:05]POST finish read [18:04:05]Found Content-Length = 673 [18:04:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412292", "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:04:05]execute_script... [18:04: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)412292", "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:04:05]POST & json_proto [18:04:05]process_json_proto [18:04:05]json parsed OK: [18:04:05]protocol is kg_v1.0 [18:04:05]action value=close_receipt [18:04:05]process_action close_receipt [18:04:05]cmd_close_receipt [18:04:05]MH_GetDate [18:04:05]Write to MH i2c: F0 00 00 61 3C 8C [18:04:05]Write i2c OK [18:04:05]MH_I2C_Read... [18:04:05]Read from MH i2c: F0 [18:04:05]MH_I2C_Read... [18:04:05]Read from MH i2c: F0 09 00 [18:04:05]MH_I2C_Read... [18:04:05]Read from MH i2c: F0 09 00 61 3C 00 1A 1D B6 67 7E 41 4F 65 5C [18:04:05]GetLastDocTimeStamp 1739988153 [18:04:05]current date 1739988250 [18:04:05]FM_GetShiftState [18:04:05]SAM_PROTO_GetShiftState [18:04:05]wFMCommunicate request_size=4 [18:04:05]MH_SAM_APDU [18:04:05]CAPDU: 80 13 01 00 [18:04:05]Write to MH i2c: E2 08 00 62 3C 80 13 01 00 00 00 00 00 1B [18:04:05]Write i2c OK [18:04:05]MH_I2C_Read... [18:04:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:05]Read from MH i2c: E2 [18:04:05]MH_I2C_Read... [18:04:05]Read from MH i2c: E2 0E 00 [18:04:05]MH_I2C_Read... [18:04:05]Read from MH i2c: E2 0E 00 62 3C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 9A [18:04:05]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:04:05]wFMCommunicate OK [18:04:05]SAM_PROTO_GetShiftState done [18:04:05]FM_GetShiftState done [18:04:05]opened in 1739929631 [18:04:05]opened+sec_in_day 1740016031 [18:04:05]quantity*price = 60040 [18:04:05]sum+1 = 60041 [18:04:05]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 СНО: Общий режим Чек 204 19.02.2025 18:04 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187138 ФПД: 191285476932639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T180410&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187138&fm=191285476932639&tin=02508201610067®Number=0000000000091857&sum=60000 [18:04:06]StoreToDocumentArchive [18:04:06]shift 647 fd 187138 [18:04:06]save to /storage/0647/doc_00187138 [18:04:06]save last doc name /storage/0647/doc_00187138 to /storage/kkm_last_doc_name [18:04:06]save OK [18:04:06]Clear old archive folders... [18:04:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:04:06]tlvbuf is 005C6E50 [18:04:06]SAM_PROTO_ClearQueue [18:04:06]wFMCommunicate request_size=4 [18:04:06]MH_SAM_APDU [18:04:06]CAPDU: 80 09 00 00 [18:04:06]Write to MH i2c: E2 08 00 6F 3C 80 09 00 00 00 00 00 00 1D [18:04:06]Write i2c OK [18:04:06]MH_I2C_Read... [18:04:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:06]Read from MH i2c: E2 [18:04:06]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 03 00 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 03 00 6F 3C 00 90 00 1F [18:04:07]RAPDU: 90 00 [18:04:07]wFMCommunicate OK [18:04:07]SAM_PROTO_ClearQueue done [18:04:07]KKMCreateOFDPacket [18:04:07]OFDProtocolAddRootSTLVToBuf [18:04:07]FM_MakeSignedData [18:04:07]FM_MakeSignedData [18:04:07]SAM_PROTO_SignData [18:04:07]wFMCommunicate request_size=4 [18:04:07]MH_SAM_APDU [18:04:07]CAPDU: 80 0D 01 02 [18:04:07]Write to MH i2c: E2 08 00 70 3C 80 0D 01 02 00 00 00 00 25 [18:04:07]Write i2c OK [18:04:07]MH_I2C_Read... [18:04:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:07]Read from MH i2c: E2 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 03 00 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 03 00 70 3C 00 90 00 20 [18:04:07]RAPDU: 90 00 [18:04:07]wFMCommunicate OK [18:04:07]wFMCommunicate request_size=255 [18:04:07]MH_SAM_APDU [18:04: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 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 CC 00 00 00 F4 03 04 00 1A 1D B6 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 02 DB 02 00 35 04 06 00 AD F9 1E E7 [18:04:07]Write to MH i2c: E2 02 01 71 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 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 CC 00 00 00 F4 03 04 00 1A 1D B6 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 02 DB 02 00 35 04 06 00 AD F9 1E E7 00 00 BB [18:04:07]Write i2c OK [18:04:07]MH_I2C_Read... [18:04:07]OFD Sender: No OFD packet to send [18:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:07]Read from MH i2c: E2 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 03 00 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 03 00 71 3C 00 90 00 21 [18:04:07]RAPDU: 90 00 [18:04:07]wFMCommunicate OK [18:04:07]wFMCommunicate request_size=7 [18:04:07]MH_SAM_APDU [18:04:07]CAPDU: 80 0D 02 02 02 3C 1F [18:04:07]Write to MH i2c: E2 0A 00 72 3C 80 0D 02 02 02 00 3C 1F 00 00 87 [18:04:07]Write i2c OK [18:04:07]MH_I2C_Read... [18:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:07]Read from MH i2c: E2 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 03 00 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 03 00 72 3C 00 90 00 22 [18:04:07]RAPDU: 90 00 [18:04:07]wFMCommunicate OK [18:04:07]wFMCommunicate request_size=4 [18:04:07]MH_SAM_APDU [18:04:07]CAPDU: 80 0D 03 02 [18:04:07]Write to MH i2c: E2 08 00 73 3C 80 0D 03 02 00 00 00 00 2A [18:04:07]Write i2c OK [18:04:07]MH_I2C_Read... [18:04:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:07]Read from MH i2c: E2 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 0B 00 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 0B 00 73 3C 00 EB B7 3D C9 53 90 AC 04 90 00 66 [18:04:07]RAPDU: EB B7 3D C9 53 90 AC 04 90 00 [18:04:07]wFMCommunicate OK [18:04:07]SAM_PROTO_SignData done [18:04:07]FM_MakeSignedData done [18:04:07]CreateOFDProtocolMessage [18:04:07]wFMCommunicate request_size=4 [18:04:07]MH_SAM_APDU [18:04:07]CAPDU: 80 11 00 00 [18:04:07]Write to MH i2c: E2 08 00 74 3C 80 11 00 00 00 00 00 00 2A [18:04:07]Write i2c OK [18:04:07]MH_I2C_Read... [18:04:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:07]Read from MH i2c: E2 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 17 00 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: E2 17 00 74 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7D [18:04:07]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:07]wFMCommunicate OK [18:04:07]CreateOFDProtocolMessage done [18:04:07]OFDSenderStorePacket 187138 [18:04:07]StoreOFDPacket docnum=187138 [18:04: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 73 48 04 01 08 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 CC 00 00 00 F4 03 04 00 1A 1D B6 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 02 DB 02 00 35 04 06 00 AD F9 1E E7 3C 1F EB B7 3D C9 53 90 AC 04 [18:04:07]CheckFolder [18:04:07]dirname=/storage/ofd_packets [18:04:07]CheckFolder done [18:04:07]ProducePacketName [18:04:07]name=ofd_packets/00187138 [18:04:07]NVStorageSaveData ofd_packets/00187138 [18:04:07]File name is /storage/ofd_packets/00187138 [18:04:07]Write 298 bytes [18:04:07]NVStorageSaveData done [18:04:07]OFDSenderStorePacket done [18:04:07]KKMCreateOFDPacket done [18:04:07]NVStorageSaveData kkm_last_timestamp [18:04:07]File name is /storage/kkm_last_timestamp [18:04:07]Write 4 bytes [18:04:07]NVStorageSaveData done [18:04:07]ExternCall_PrintAddStr [18:04:07]wPrintStart [18:04:07]Write to MH i2c: 01 00 00 75 3C B1 [18:04:07]Write i2c OK [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: 01 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: 01 07 00 [18:04:07]MH_I2C_Read... [18:04:07]Read from MH i2c: 01 07 00 75 3C 00 00 00 00 00 FF 0F C6 [18:04:07]RasterBufferAndPrint [18:04:07]line Счет N : (1)412292 [18:04:07]line ИНН: 02508201610067 [18:04:07]line Контрольно-Кассовый Чек [18:04:07]line ПРОДАЖА [18:04:07]line ТРК (МРК, ГНК) : 5 [18:04:07]line Товар: 2710194210 [18:04:07]line ДТ-К-5 [18:04:07]line 8.270 * 72.60 [18:04:07]line = 600.40 [18:04:07]line НДС 12% НСП 1% [18:04:07]line > о реализуемом товаре [18:04:07]line ОКРУГЛЕНИЕ: -0.40 [18:04:07]line ИТОГО: 600.00 [18:04:07]line Внесено: 600.00 [18:04:07]line СДАЧА: 0.00 [18:04:07]line НСП 1% : 5.31 [18:04:07]line НДС 12% : 63.76 [18:04:07]line Наличными: 600.00 [18:04:07]line Безнал.: 0.00 [18:04:07]line Место: АЗС № 92 "Партнер Нефть" [18:04:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:04:07]line СНО: Общий режим [18:04:07]line Чек 204 19.02.2025 18:04 [18:04:07]line Смена: 647 ФФД: 1.0 [18:04:07]line ЗНМ: 0300000118 [18:04:07]line РНМ: 0000000000091857 [18:04:07]line Версия ККМ: 001 [18:04:07]line ФМ: 0000000000871826 [18:04:07]line ФД: 187138 [18:04:07]line ФПД: 191285476932639 [18:04:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T180410&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187138&fm=191285476932639&tin=02508201610067®Number=0000000000091857&sum=60000 [18:04:07]OFD Sender: Processing packet 187138 [packets to send 49, broken 48] [18:04:07]ProducePacketName [18:04:07]name=ofd_packets/00187138 [18:04:07]OFD Sender: To server: pG, [18:04:07]CommunicateWithHost lk.salyk.kg:30040 [18:04:07]ConnectInit lk.salyk.kg [18:04:07]written 0, free lines is 4095 [18:04:07]Connected sock=10 [18:04: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 0C 01 00 00 73 48 04 01 08 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 CC 00 00 00 F4 03 04 00 1A 1D B6 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 02 DB 02 00 35 04 06 00 AD F9 1E E7 3C 1F EB B7 3D C9 53 90 AC 04 [18:04:08]int [18:04:08]Write to MH i2c: 01 00 00 8F 3C CB [18:04:08]*** FLAG_PRN_PAP1 set [18:04:08]Write i2c OK [18:04:08]MH_I2C_Read... [18:04:08]Write i2c OK [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: DD [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: DD [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: DD 01 00 [18:04:08]MH_I2C_Read... [18:04:08]Read from MH i2c: DD 01 00 [18:04:08]answer for other command [DD] [18:04:08]MH Int Process stopped [18:04:08]Read from MH i2c: DD 01 00 8F 3C 05 AD [18:04:08]answer with wrong packet_num 3C8F - expected 3C90 [18:04:08]process_action_free close_receipt [18:04:08]json_value_free [18:04:08]json_value_free done [18:04:08]process_json_proto returns [18:04:08]Send response to host [18:04:08]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [18:04:08]free response buf [18:04:08]execute_script done [18:04:08]execute_script returns [18:04:08]free content buf [18:04:08]Sock 7.Close socket [18:04:08]Sock 7.Thread stoped [18:04:08]*** FLAG_PRN_PAP1 reset [18:04: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 0D 47 00 4D 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 02 DB 02 00 F4 03 04 00 6D C3 B5 67 B6 04 01 00 00 39 86 16 7C 30 CF 80 78 [18:04:08]CommunicateWithHost err = 0 [18:04:08]CheckOFDResponse [18:04:08]1017 (14) - 77093643461234 [18:04:08]1041 (16) - 0000000000871826 [18:04:08]1040 (4) - 187138 [18:04:08]1012 (4) - 19.02.2025 11:41 [18:04:08]1206 (1) - 0 [18:04:08]OFD Sender: Remove packet 187138 [18:04:08]ProducePacketName [18:04:08]name=ofd_packets/00187138 [18:04:08]NVStorageDeleteData [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]*** FLAG_PRN_KEY set [18:04:23]*** FLAG_PRN_KEY reset [18:04:23]*** FLAG_PRN_KEY set [18:04:23]OFD Sender: No OFD packet to send [18:04:24]*** FLAG_PRN_KEY reset [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]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]Read from MH i2c: *** [00:00:11]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: 40295364+1699692926=1739988290 [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 43 1D B6 67 7E 41 4F 65 EF [18:04:51]Current date/time: 19.02.2025 18:04 [18:04:51]FM_Init [18:04:51]wFMConnect [18:04:51]MH_SAM_On [18:04:51]Write to MH i2c: E0 00 00 08 00 E7 [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]*** iso7816_init finished! [18:04:51]*** atr: [18:04:51]*** 0F 3B D5 18 FF 81 91 FE [18:04:51]*** 1F C3 80 73 C8 21 10 0A [18:04:51]*** 00 00 00 00 00 00 00 00 [18:04:51]*** 00 00 00 00 00 00 00 00 [18:04:51]*** 00 00 00 00 00 00 00 00 [18:04:51]*** 00 00 00 00 00 00 00 00 [18:04:51]*** 00 00 00 00 00 00 00 00 [18:04:51]*** 00 00 00 00 00 00 00 00 [18:04:51]Read from MH i2c: E0 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E0 10 00 [18:04:51]MH_I2C_Read... [18:04:51]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 [18:04:51]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [18:04:51]wFMCommunicate request_size=10 [18:04:51]MH_SAM_APDU [18:04:51]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [18:04:51]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [18:04:51]Read from MH i2c: E2 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 03 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [18:04:51]RAPDU: 90 00 [18:04:51]wFMCommunicate OK [18:04:51]wFMCommunicate request_size=4 [18:04:51]MH_SAM_APDU [18:04:51]CAPDU: 80 11 00 00 [18:04:51]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:51]Read from MH i2c: E2 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 17 00 [18:04:51]MH_I2C_Read... [18:04:51]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 [18:04: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:04:51]wFMCommunicate OK [18:04:51]Detected FM SN is 0000000000871826 [18:04:51]Stored FM SN is 0000000000871826 [18:04:51]wFMCommunicate request_size=9 [18:04:51]MH_SAM_APDU [18:04:51]CAPDU: 80 16 00 00 04 3B 45 00 00 [18:04:51]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 3B 45 00 00 00 00 12 [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [18:04:51]Read from MH i2c: E2 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 03 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [18:04:51]RAPDU: 90 00 [18:04:51]wFMCommunicate OK [18:04:51]FM PIN OK [18:04:51]wFMCommunicate request_size=8 [18:04:51]MH_SAM_APDU [18:04:51]CAPDU: 80 14 04 00 03 02 00 01 [18:04:51]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [18:04:51]Read from MH i2c: E2 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 03 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [18:04:51]RAPDU: 90 00 [18:04:51]wFMCommunicate OK [18:04:51]wFMCommunicate request_size=13 [18:04:51]MH_SAM_APDU [18:04:51]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [18:04:51]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 [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [18:04:51]Read from MH i2c: E2 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 03 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [18:04:51]RAPDU: 90 00 [18:04:51]wFMCommunicate OK [18:04:51]wFMCommunicate request_size=4 [18:04:51]MH_SAM_APDU [18:04:51]CAPDU: 80 11 00 00 [18:04:51]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:51]Read from MH i2c: E2 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 17 00 [18:04:51]MH_I2C_Read... [18:04:51]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 [18:04: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:04:51]wFMCommunicate OK [18:04:51]DocumentArchiveInit [18:04:51]Start Httpd... [18:04:51]Httpd thread 3067309412 created [18:04:51]Write to MH i2c: 01 00 00 0F 00 0F [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: 01 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: 01 07 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [18:04:51]MH Int Process started [18:04:51]Allocated Socket 8 [18:04:51]Bind OK [18:04:51]Listen OK [18:04:51]httpd running on port 8080 [18:04:51]Waiting for new connection... [18:04:51]OFD Sender: No OFD packet to send [18:04:55]accept exits with 9 [18:04:55]New connection [18:04:55]New thread 3067022692 created [18:04:55]Waiting for new connection... [18:04:55] Sock 9.Parse request [18:04:55]Sock 9.Check first char [18:04:55]Sock 9.First char is OK [18:04:55]request: POST /json_proto HTTP/1.0 [18:04:55]Method: POST [18:04:55]URL: /json_proto [18:04:55]Method is POST - this is cgi request [18:04:55]url: /json_proto [18:04:55]query_string will be loaded in cgi processing [18:04:55]execute_cgi json_proto POST (null) [18:04:55]execute_cgi path=json_proto method=POST [18:04:55]POST find Content-Length [18:04:55]Host: 172.17.46.131:8080 [18:04:55]Content-Length: 215 [18:04:55]Content-Type: application/json [18:04:55] [18:04:55]POST finish read [18:04:55]Found Content-Length = 215 [18:04:55]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" ] } } [18:04:55]execute_script... [18:04:55]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" ] } } [18:04:55]POST & json_proto [18:04:55]process_json_proto [18:04:55]json parsed OK: [18:04:55]protocol is kg_v1.0 [18:04:55]action value=get_value [18:04:55]process_action get_value [18:04:55]cmd_get_value [18:04:55]process_action get_value done [18:04:55]requested_data is exist [18:04:55]produce_requested_data [18:04:55]requested_item kkm.sn is exist - process it [18:04:55]requested_item kkm.ver is exist - process it [18:04:55]requested_item fm.sn is exist - process it [18:04:55]wFMCommunicate request_size=4 [18:04:55]MH_SAM_APDU [18:04:55]CAPDU: 80 11 00 00 [18:04:55]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [18:04:55]Write i2c OK [18:04:55]MH_I2C_Read... [18:04:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:55]Read from MH i2c: E2 [18:04:55]MH_I2C_Read... [18:04:55]Read from MH i2c: E2 17 00 [18:04:55]MH_I2C_Read... [18:04:55]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 [18:04:55]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:55]wFMCommunicate OK [18:04:55]requested_item fd.num is exist - process it [18:04:55]SAM_PROTO_GetFieldsCounters [18:04:55]wFMCommunicate request_size=4 [18:04:55]MH_SAM_APDU [18:04:55]CAPDU: 80 13 00 00 [18:04:55]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [18:04:55]Write i2c OK [18:04:55]MH_I2C_Read... [18:04:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:55]Read from MH i2c: E2 [18:04:55]MH_I2C_Read... [18:04:55]Read from MH i2c: E2 62 00 [18:04:55]MH_I2C_Read... [18:04:55]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 02 DB 02 00 0E 04 04 00 87 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 7F [18:04:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DB 02 00 0E 04 04 00 87 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 [18:04:55]wFMCommunicate OK [18:04:55]SAM_PROTO_GetFieldsCounters done [18:04:55]requested_item shift.num is exist - process it [18:04:55]requested_item shift.opened is exist - process it [18:04:55]req_shift_opened [18:04:55]FM_GetShiftState [18:04:55]SAM_PROTO_GetShiftState [18:04:55]wFMCommunicate request_size=4 [18:04:55]MH_SAM_APDU [18:04:55]CAPDU: 80 13 01 00 [18:04:55]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [18:04:55]Write i2c OK [18:04:55]MH_I2C_Read... [18:04:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:55]Read from MH i2c: E2 [18:04:55]MH_I2C_Read... [18:04:55]Read from MH i2c: E2 0E 00 [18:04:55]MH_I2C_Read... [18:04:55]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 0E [18:04:55]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:04:55]wFMCommunicate OK [18:04:55]SAM_PROTO_GetShiftState done [18:04:55]FM_GetShiftState done [18:04:55]req_shift_opened done [18:04:55]requested_item shift.open_date is exist - process it [18:04:55]req_shift_open_date [18:04:55]req_shift_open_date done [18:04:55]produce_requested_data done [18:04:55]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":187138,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [18:04:55]process_action_free get_value [18:04:55]json_value_free [18:04:55]json_value_free done [18:04:55]process_json_proto returns [18:04:55]Send response to host [18:04:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":187138,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [18:04:55]free response buf [18:04:55]execute_script done [18:04:55]execute_script returns [18:04:55]free content buf [18:04:55]Sock 9.Close socket [18:04:55]Sock 9.Thread stoped [18:04:55]accept exits with 10 [18:04:55]New connection [18:04:55]New thread 3066879332 created [18:04:55]Thread 3067022692 joined [18:04:55]Waiting for new connection... [18:04:55] Sock 10.Parse request [18:04:55]Sock 10.Check first char [18:04:55]Sock 10.First char is OK [18:04:55]request: POST /json_proto HTTP/1.0 [18:04:55]Method: POST [18:04:55]URL: /json_proto [18:04:55]Method is POST - this is cgi request [18:04:55]url: /json_proto [18:04:55]query_string will be loaded in cgi processing [18:04:55]execute_cgi json_proto POST (null) [18:04:55]execute_cgi path=json_proto method=POST [18:04:55]POST find Content-Length [18:04:55]Host: 172.17.46.131:8080 [18:04:55]Content-Length: 331 [18:04:55]Content-Type: application/json [18:04:55] [18:04:55]POST finish read [18:04:55]Found Content-Length = 331 [18:04:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:04:55]execute_script... [18:04:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:04:55]POST & json_proto [18:04:55]process_json_proto [18:04:55]json parsed OK: [18:04:55]protocol is kg_v1.0 [18:04:55]action value=get_value [18:04:55]process_action get_value [18:04:55]cmd_get_value [18:04:55]process_action get_value done [18:04:55]requested_data is exist [18:04:55]produce_requested_data [18:04:55]requested_item fm.sale.total is exist - process it [18:04:55]SAM_PROTO_GetFMData [18:04:55]wFMCommunicate request_size=4 [18:04:55]MH_SAM_APDU [18:04:55]CAPDU: 80 13 03 00 [18:04:55]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [18:04:55]Write i2c OK [18:04:55]MH_I2C_Read... [18:04:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:04:56]Read from MH i2c: E2 [18:04:56]MH_I2C_Read... [18:04:56]Read from MH i2c: E2 FD 00 [18:04:56]MH_I2C_Read... [18:04:56]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 F4 D5 02 00 69 04 A3 00 6F 04 04 00 E1 D5 02 00 B1 04 05 00 F1 A0 7F 1B 04 70 04 05 00 00 05 58 9A 03 72 04 04 00 F1 9B 27 81 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 CB 8D B2 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 EE AD 4E 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 12 [18:04:56]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 F4 D5 02 00 69 04 A3 00 6F 04 04 00 E1 D5 02 00 B1 04 05 00 F1 A0 7F 1B 04 70 04 05 00 00 05 58 9A 03 72 04 04 00 F1 9B 27 81 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 CB 8D B2 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 EE AD 4E 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 [18:04:56]wFMCommunicate OK [18:04:56]wFMCommunicate request_size=4 [18:04:56]MH_SAM_APDU [18:04:56]CAPDU: 80 17 00 00 [18:04:56]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [18:04:56]Write i2c OK [18:04:56]MH_I2C_Read... [18:04:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:04:56]Read from MH i2c: E2 [18:04:56]MH_I2C_Read... [18:04:56]Read from MH i2c: E2 FD 00 [18:04:56]MH_I2C_Read... [18:04:56]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 [18:04:56]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 [18:04:56]wFMCommunicate OK [18:04:56]wFMCommunicate request_size=4 [18:04:56]MH_SAM_APDU [18:04:56]CAPDU: 80 17 00 00 [18:04:56]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [18:04:56]OFD Sender: No OFD packet to send [18:04:56]Write i2c OK [18:04:56]MH_I2C_Read... [18:04:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:04:56]Read from MH i2c: E2 [18:04:56]MH_I2C_Read... [18:04:56]Read from MH i2c: E2 FD 00 [18:04:56]MH_I2C_Read... [18:04:56]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 [18:04:56]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 [18:04:56]wFMCommunicate OK [18:04:56]wFMCommunicate request_size=4 [18:04:56]MH_SAM_APDU [18:04:56]CAPDU: 80 17 00 00 [18:04:56]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [18:04:56]Write i2c OK [18:04:56]MH_I2C_Read... [18:04:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:04:57]Read from MH i2c: E2 [18:04:57]MH_I2C_Read... [18:04:57]Read from MH i2c: E2 FD 00 [18:04:57]MH_I2C_Read... [18:04:57]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 [18:04:57]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 [18:04:57]wFMCommunicate OK [18:04:57]wFMCommunicate request_size=4 [18:04:57]MH_SAM_APDU [18:04:57]CAPDU: 80 17 00 00 [18:04:57]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [18:04:57]Write i2c OK [18:04:57]MH_I2C_Read... [18:04:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [18:04:57]Read from MH i2c: E2 [18:04:57]MH_I2C_Read... [18:04:57]Read from MH i2c: E2 DE 00 [18:04:57]MH_I2C_Read... [18:04:57]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 [18:04:57]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 [18:04:57]wFMCommunicate OK [18:04:57]SAM_PROTO_GetFMData done [18:04:57]requested_item fm.sale_refund.total is exist - process it [18:04:57]requested_item fm.buy.total is exist - process it [18:04:57]requested_item shift.sale.total is exist - process it [18:04:57]SAM_PROTO_GetShiftData [18:04:57]wFMCommunicate request_size=4 [18:04:57]MH_SAM_APDU [18:04:57]CAPDU: 80 13 02 00 [18:04:57]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [18:04:57]Write i2c OK [18:04:57]MH_I2C_Read... [18:04:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:04:57]Read from MH i2c: E2 [18:04:57]MH_I2C_Read... [18:04:57]Read from MH i2c: E2 FD 00 [18:04:57]MH_I2C_Read... [18:04:57]Read from MH i2c: E2 FD 00 18 00 00 B0 04 AA 04 AC 04 6E 04 04 00 CC 00 00 00 69 04 9D 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 C7 FE 15 01 70 04 03 00 E0 74 CD 72 04 03 00 E7 89 48 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 25 87 1D 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 E7 75 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 DC [18:04:57]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 CC 00 00 00 69 04 9D 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 C7 FE 15 01 70 04 03 00 E0 74 CD 72 04 03 00 E7 89 48 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 25 87 1D 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 E7 75 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 [18:04:57]wFMCommunicate OK [18:04:57]wFMCommunicate request_size=4 [18:04:57]MH_SAM_APDU [18:04:57]CAPDU: 80 17 00 00 [18:04:57]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [18:04:57]Write i2c OK [18:04:57]MH_I2C_Read... [18:04:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:04:58]Read from MH i2c: E2 [18:04:58]MH_I2C_Read... [18:04:58]Read from MH i2c: E2 FD 00 [18:04:58]MH_I2C_Read... [18:04:58]Read from MH i2c: E2 FD 00 19 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 B3 [18:04:58]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 [18:04:58]wFMCommunicate OK [18:04:58]wFMCommunicate request_size=4 [18:04:58]MH_SAM_APDU [18:04:58]CAPDU: 80 17 00 00 [18:04:58]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [18:04:58]Write i2c OK [18:04:58]MH_I2C_Read... [18:04:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:04:58]Read from MH i2c: E2 [18:04:58]MH_I2C_Read... [18:04:58]Read from MH i2c: E2 FD 00 [18:04:58]MH_I2C_Read... [18:04:58]Read from MH i2c: E2 FD 00 1A 00 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 57 [18:04:58]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 [18:04:58]wFMCommunicate OK [18:04:58]wFMCommunicate request_size=4 [18:04:58]MH_SAM_APDU [18:04:58]CAPDU: 80 17 00 00 [18:04:58]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [18:04:58]Write i2c OK [18:04:58]MH_I2C_Read... [18:04:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:04:58]Read from MH i2c: E2 [18:04:58]MH_I2C_Read... [18:04:58]Read from MH i2c: E2 FD 00 [18:04:58]MH_I2C_Read... [18:04:58]Read from MH i2c: E2 FD 00 1B 00 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 0E [18:04:58]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 [18:04:58]wFMCommunicate OK [18:04:58]wFMCommunicate request_size=4 [18:04:58]MH_SAM_APDU [18:04:58]CAPDU: 80 17 00 00 [18:04:58]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [18:04:58]Write i2c OK [18:04:58]MH_I2C_Read... [18:04:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [18:04:58]Read from MH i2c: E2 [18:04:58]MH_I2C_Read... [18:04:58]Read from MH i2c: E2 CD 00 [18:04:58]MH_I2C_Read... [18:04:58]Read from MH i2c: E2 CD 00 1C 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 80 [18:04:58]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 [18:04:58]wFMCommunicate OK [18:04:58]SAM_PROTO_GetShiftData done [18:04:58]requested_item shift.sale.total_cash is exist - process it [18:04:58]requested_item shift.sale_refund.total is exist - process it [18:04:58]requested_item shift.sale_refund.total_cash is exist - process it [18:04:58]requested_item shift.buy.total is exist - process it [18:04:58]requested_item shift.buy.total_cash is exist - process it [18:04:58]produce_requested_data done [18:04:58]produce_requested_data return {"fm.sale.total":176412182.89,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":182186.95,"shift.sale.total_cash":134648.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} [18:04:58]process_action_free get_value [18:04:58]json_value_free [18:04:58]json_value_free done [18:04:58]process_json_proto returns [18:04:58]Send response to host [18:04:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176412182.89,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":182186.95,"shift.sale.total_cash":134648.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}}} [18:04:58]free response buf [18:04:58]execute_script done [18:04:58]execute_script returns [18:04:58]free content buf [18:04:58]Sock 10.Close socket [18:04:58]Sock 10.Thread stoped [18:04:59]accept exits with 6 [18:04:59]New connection [18:04:59]New thread 3067022692 created [18:04:59]Thread 3066879332 joined [18:04:59]Waiting for new connection... [18:04:59] Sock 6.Parse request [18:04:59]Sock 6.Check first char [18:04:59]Sock 6.First char is OK [18:04:59]request: POST /json_proto HTTP/1.0 [18:04:59]Method: POST [18:04:59]URL: /json_proto [18:04:59]Method is POST - this is cgi request [18:04:59]url: /json_proto [18:04:59]query_string will be loaded in cgi processing [18:04:59]execute_cgi json_proto POST (null) [18:04:59]execute_cgi path=json_proto method=POST [18:04:59]POST find Content-Length [18:04:59]Host: 172.17.46.131:8080 [18:04:59]Content-Length: 144 [18:04:59]Content-Type: application/json [18:04:59] [18:04:59]POST finish read [18:04:59]Found Content-Length = 144 [18:04:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [18:04:59]execute_script... [18:04:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [18:04:59]POST & json_proto [18:04:59]process_json_proto [18:04:59]json parsed OK: [18:04:59]protocol is kg_v1.0 [18:04:59]action value=print_doc [18:04:59]process_action print_doc [18:04:59]process_action_free print_doc [18:04:59]json_value_free [18:04:59]json_value_free done [18:04:59]process_json_proto returns [18:04:59]Send response to host [18:04:59]{"protocol":"kg_v1.0","response":{"error":1000,"error_desc":"Open file error(LoadLastDocumentFromArchive)"}} [18:04:59]free response buf [18:04:59]execute_script done [18:04:59]execute_script returns [18:04:59]free content buf [18:04:59]Sock 6.Close socket [18:04:59]Sock 6.Thread stoped [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:09]int [18:05:09]Write to MH i2c: 01 00 00 1D 00 1D [18:05:09]*** FLAG_PRN_KEY set [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: 01 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: 01 07 00 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: 01 07 00 1D 00 00 08 00 00 00 FF 0F 3A [18:05:09]state=0 [18:05:09]Key pressed [18:05:09]Feed [18:05:09]Write to MH i2c: D8 00 00 1E 00 F5 [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: D8 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: D8 01 00 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: D8 01 00 1E 00 00 F6 [18:05:09]int [18:05:09]Write to MH i2c: 01 00 00 1F 00 1F [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: 01 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: 01 07 00 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: 01 07 00 1F 00 00 48 00 00 00 3D 00 AB [18:05:09]state=2 [18:05:09]Key pressed [18:05:09]int [18:05:09]Write to MH i2c: 01 00 00 20 00 20 [18:05:09]*** FLAG_PRN_PAP1 set [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: 01 [18:05:09]MH_I2C_Read... [18:05:09]*** FLAG_PRN_PAP1 reset [18:05:09]Read from MH i2c: 01 07 00 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: 01 07 00 20 00 00 48 00 00 00 3C 00 AB [18:05:09]state=2 [18:05:09]Key pressed [18:05:09]int [18:05:09]Write to MH i2c: 01 00 00 21 00 21 [18:05:09]*** FLAG_PRN_KEY reset [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: 01 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: 01 07 00 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: 01 07 00 21 00 00 00 00 00 00 FF 0F 36 [18:05:09]state=2 [18:05:09]Stop feed [18:05:10]int [18:05:10]Write to MH i2c: 01 00 00 22 00 22 [18:05:10]*** FLAG_PRN_KEY set [18:05:10]Write i2c OK [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: 01 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: 01 07 00 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: 01 07 00 22 00 00 08 00 00 00 FF 0F 3F [18:05:10]state=0 [18:05:10]Key pressed [18:05:10]Feed [18:05:10]Write to MH i2c: D8 00 00 23 00 FA [18:05:10]Write i2c OK [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: D8 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: D8 01 00 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: D8 01 00 23 00 00 FB [18:05:10]int [18:05:10]Write to MH i2c: 01 00 00 24 00 24 [18:05:10]Write i2c OK [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: 01 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: 01 07 00 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: 01 07 00 24 00 00 48 00 00 00 3C 00 AF [18:05:10]state=2 [18:05:10]Key pressed [18:05:10]int [18:05:10]Write to MH i2c: 01 00 00 25 00 25 [18:05:10]*** FLAG_PRN_KEY reset [18:05:10]Write i2c OK [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: 01 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: 01 07 00 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: 01 07 00 25 00 00 00 00 00 00 FF 0F 3A [18:05:10]state=2 [18:05:10]Stop feed [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [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:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:51]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:31]OFD Sender: No OFD packet to send [18:08:36]OFD Sender: No OFD packet to send [18:08:41]OFD Sender: No OFD packet to send [18:08:46]OFD Sender: No OFD packet to send [18:08:51]OFD Sender: No OFD packet to send [18:08:56]OFD Sender: No OFD packet to send [18:09:01]OFD Sender: No OFD packet to send [18:09:06]OFD Sender: No OFD packet to send [18:09:11]OFD Sender: No OFD packet to send [18:09:16]OFD Sender: No OFD packet to send [18:09:21]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:10:01]OFD Sender: No OFD packet to send [18:10:06]OFD Sender: No OFD packet to send [18:10:11]OFD Sender: No OFD packet to send [18:10:16]OFD Sender: No OFD packet to send [18:10:21]OFD Sender: No OFD packet to send [18:10:26]OFD Sender: No OFD packet to send [18:10:31]OFD Sender: No OFD packet to send [18:10:36]OFD Sender: No OFD packet to send [18:10:41]OFD Sender: No OFD packet to send [18:10:46]OFD Sender: No OFD packet to send [18:10:51]OFD Sender: No OFD packet to send [18:10:56]OFD Sender: No OFD packet to send [18:11:01]OFD Sender: No OFD packet to send [18:11:06]OFD Sender: No OFD packet to send [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:21]OFD Sender: No OFD packet to send [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]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]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 (112 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: 40295827+1699692926=1739988753 [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 12 1F B6 67 7E 41 4F 65 C0 [18:12:34]Current date/time: 19.02.2025 18:12 [18:12:34]FM_Init [18:12:34]wFMConnect [18:12:34]MH_SAM_On [18:12:34]Write to MH i2c: E0 00 00 08 00 E7 [18:12:34]Write i2c OK [18:12:34]MH_I2C_Read... [18:12:34]*** iso7816_init finished! [18:12:34]*** atr: [18:12:34]*** 0F 3B D5 18 FF 81 91 FE [18:12:34]*** 1F C3 80 73 C8 21 10 0A [18:12:34]*** 00 00 00 00 00 00 00 00 [18:12:34]*** 00 00 00 00 00 00 00 00 [18:12:34]*** 00 00 00 00 00 00 00 00 [18:12:34]*** 00 00 00 00 00 00 00 00 [18:12:34]*** 00 00 00 00 00 00 00 00 [18:12:34]*** 00 00 00 00 00 00 00 00 [18:12:34]Read from MH i2c: E0 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: E0 10 00 [18:12:34]MH_I2C_Read... [18:12:34]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 [18:12:34]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [18:12:34]wFMCommunicate request_size=10 [18:12:34]MH_SAM_APDU [18:12:34]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [18:12:34]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [18:12:34]Write i2c OK [18:12:34]MH_I2C_Read... [18:12:34]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [18:12:34]Read from MH i2c: E2 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: E2 03 00 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [18:12:34]RAPDU: 90 00 [18:12:34]wFMCommunicate OK [18:12:34]wFMCommunicate request_size=4 [18:12:34]MH_SAM_APDU [18:12:34]CAPDU: 80 11 00 00 [18:12:34]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [18:12:34]Write i2c OK [18:12:34]MH_I2C_Read... [18:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:34]Read from MH i2c: E2 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: E2 17 00 [18:12:34]MH_I2C_Read... [18:12:34]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 [18: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 [18:12:34]wFMCommunicate OK [18:12:34]Detected FM SN is 0000000000871826 [18:12:34]Stored FM SN is 0000000000871826 [18:12:34]wFMCommunicate request_size=9 [18:12:34]MH_SAM_APDU [18:12:34]CAPDU: 80 16 00 00 04 3B 45 00 00 [18:12:34]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 3B 45 00 00 00 00 12 [18:12:34]Write i2c OK [18:12:34]MH_I2C_Read... [18:12:34]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [18:12:34]Read from MH i2c: E2 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: E2 03 00 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [18:12:34]RAPDU: 90 00 [18:12:34]wFMCommunicate OK [18:12:34]FM PIN OK [18:12:34]wFMCommunicate request_size=8 [18:12:34]MH_SAM_APDU [18:12:34]CAPDU: 80 14 04 00 03 02 00 01 [18:12:34]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [18:12:34]Write i2c OK [18:12:34]MH_I2C_Read... [18:12:34]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [18:12:34]Read from MH i2c: E2 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: E2 03 00 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [18:12:34]RAPDU: 90 00 [18:12:34]wFMCommunicate OK [18:12:34]wFMCommunicate request_size=13 [18:12:34]MH_SAM_APDU [18:12:34]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [18:12:34]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 [18:12:34]Write i2c OK [18:12:34]MH_I2C_Read... [18:12:34]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [18:12:34]Read from MH i2c: E2 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: E2 03 00 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [18:12:34]RAPDU: 90 00 [18:12:34]wFMCommunicate OK [18:12:34]wFMCommunicate request_size=4 [18:12:34]MH_SAM_APDU [18:12:34]CAPDU: 80 11 00 00 [18:12:34]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [18:12:34]Write i2c OK [18:12:34]MH_I2C_Read... [18:12:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:34]Read from MH i2c: E2 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: E2 17 00 [18:12:34]MH_I2C_Read... [18:12:34]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 [18: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 [18:12:34]wFMCommunicate OK [18:12:34]DocumentArchiveInit [18:12:34]Start Httpd... [18:12:34]Httpd thread 3066940772 created [18:12:34]Write to MH i2c: 01 00 00 0F 00 0F [18:12:34]Write i2c OK [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: 01 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: 01 07 00 [18:12:34]MH_I2C_Read... [18:12:34]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [18:12:34]MH Int Process started [18:12:34]Allocated Socket 8 [18:12:34]Bind OK [18:12:34]Listen OK [18:12:34]httpd running on port 8080 [18:12:34]Waiting for new connection... [18:12:34]OFD Sender: No OFD packet to send [18:12:38]accept exits with 9 [18:12:38]New connection [18:12:38]New thread 3066654052 created [18:12:38]Waiting for new connection... [18:12:38] Sock 9.Parse request [18:12:38]Sock 9.Check first char [18:12:38]Sock 9.First char is OK [18:12:38]request: POST /json_proto HTTP/1.0 [18:12:38]Method: POST [18:12:38]URL: /json_proto [18:12:38]Method is POST - this is cgi request [18:12:38]url: /json_proto [18:12:38]query_string will be loaded in cgi processing [18:12:38]execute_cgi json_proto POST (null) [18:12:38]execute_cgi path=json_proto method=POST [18:12:38]POST find Content-Length [18:12:38]Host: 172.17.46.131:8080 [18:12:38]Content-Length: 215 [18:12:38]Content-Type: application/json [18:12:38] [18:12:38]POST finish read [18:12:38]Found Content-Length = 215 [18:12:38]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" ] } } [18:12:38]execute_script... [18:12:38]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" ] } } [18:12:38]POST & json_proto [18:12:38]process_json_proto [18:12:38]json parsed OK: [18:12:38]protocol is kg_v1.0 [18:12:38]action value=get_value [18:12:38]process_action get_value [18:12:38]cmd_get_value [18:12:38]process_action get_value done [18:12:38]requested_data is exist [18:12:38]produce_requested_data [18:12:38]requested_item kkm.sn is exist - process it [18:12:38]requested_item kkm.ver is exist - process it [18:12:38]requested_item fm.sn is exist - process it [18:12:38]wFMCommunicate request_size=4 [18:12:38]MH_SAM_APDU [18:12:38]CAPDU: 80 11 00 00 [18:12:38]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [18:12:38]Write i2c OK [18:12:38]MH_I2C_Read... [18:12:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:38]Read from MH i2c: E2 [18:12:38]MH_I2C_Read... [18:12:38]Read from MH i2c: E2 17 00 [18:12:38]MH_I2C_Read... [18:12:38]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 [18: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 [18:12:38]wFMCommunicate OK [18:12:38]requested_item fd.num is exist - process it [18:12:38]SAM_PROTO_GetFieldsCounters [18:12:38]wFMCommunicate request_size=4 [18:12:38]MH_SAM_APDU [18:12:38]CAPDU: 80 13 00 00 [18:12:38]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [18:12:38]Write i2c OK [18:12:38]MH_I2C_Read... [18:12:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:38]Read from MH i2c: E2 [18:12:38]MH_I2C_Read... [18:12:38]Read from MH i2c: E2 62 00 [18:12:38]MH_I2C_Read... [18:12:38]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 02 DB 02 00 0E 04 04 00 87 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 7F [18:12:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DB 02 00 0E 04 04 00 87 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 [18:12:38]wFMCommunicate OK [18:12:38]SAM_PROTO_GetFieldsCounters done [18:12:38]requested_item shift.num is exist - process it [18:12:38]requested_item shift.opened is exist - process it [18:12:38]req_shift_opened [18:12:38]FM_GetShiftState [18:12:38]SAM_PROTO_GetShiftState [18:12:38]wFMCommunicate request_size=4 [18:12:38]MH_SAM_APDU [18:12:38]CAPDU: 80 13 01 00 [18:12:38]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [18:12:38]Write i2c OK [18:12:38]MH_I2C_Read... [18:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:38]Read from MH i2c: E2 [18:12:38]MH_I2C_Read... [18:12:38]Read from MH i2c: E2 0E 00 [18:12:38]MH_I2C_Read... [18:12:38]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 0E [18:12:38]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:12:38]wFMCommunicate OK [18:12:38]SAM_PROTO_GetShiftState done [18:12:38]FM_GetShiftState done [18:12:38]req_shift_opened done [18:12:38]requested_item shift.open_date is exist - process it [18:12:38]req_shift_open_date [18:12:38]req_shift_open_date done [18:12:38]produce_requested_data done [18:12:38]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":187138,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [18:12:38]process_action_free get_value [18:12:38]json_value_free [18:12:38]json_value_free done [18:12:38]process_json_proto returns [18:12:38]Send response to host [18:12:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":187138,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [18:12:38]free response buf [18:12:38]execute_script done [18:12:38]execute_script returns [18:12:38]free content buf [18:12:38]Sock 9.Close socket [18:12:38]Sock 9.Thread stoped [18:12:38]accept exits with 10 [18:12:38]New connection [18:12:38]New thread 3066510692 created [18:12:38]Thread 3066654052 joined [18:12:38]Waiting for new connection... [18:12:38] Sock 10.Parse request [18:12:38]Sock 10.Check first char [18:12:38]Sock 10.First char is OK [18:12:38]request: POST /json_proto HTTP/1.0 [18:12:38]Method: POST [18:12:38]URL: /json_proto [18:12:38]Method is POST - this is cgi request [18:12:38]url: /json_proto [18:12:38]query_string will be loaded in cgi processing [18:12:38]execute_cgi json_proto POST (null) [18:12:38]execute_cgi path=json_proto method=POST [18:12:38]POST find Content-Length [18:12:38]Host: 172.17.46.131:8080 [18:12:38]Content-Length: 331 [18:12:38]Content-Type: application/json [18:12:38] [18:12:38]POST finish read [18:12:38]Found Content-Length = 331 [18:12:38]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" ] } } [18:12:38]execute_script... [18:12:38]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" ] } } [18:12:38]POST & json_proto [18:12:38]process_json_proto [18:12:38]json parsed OK: [18:12:38]protocol is kg_v1.0 [18:12:38]action value=get_value [18:12:38]process_action get_value [18:12:38]cmd_get_value [18:12:38]process_action get_value done [18:12:38]requested_data is exist [18:12:38]produce_requested_data [18:12:38]requested_item fm.sale.total is exist - process it [18:12:38]SAM_PROTO_GetFMData [18:12:38]wFMCommunicate request_size=4 [18:12:38]MH_SAM_APDU [18:12:38]CAPDU: 80 13 03 00 [18:12:38]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [18:12:38]Write i2c OK [18:12:38]MH_I2C_Read... [18:12:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:12:39]Read from MH i2c: E2 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 FD 00 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 F4 D5 02 00 69 04 A3 00 6F 04 04 00 E1 D5 02 00 B1 04 05 00 F1 A0 7F 1B 04 70 04 05 00 00 05 58 9A 03 72 04 04 00 F1 9B 27 81 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 CB 8D B2 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 EE AD 4E 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 12 [18:12:39]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 F4 D5 02 00 69 04 A3 00 6F 04 04 00 E1 D5 02 00 B1 04 05 00 F1 A0 7F 1B 04 70 04 05 00 00 05 58 9A 03 72 04 04 00 F1 9B 27 81 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 CB 8D B2 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 EE AD 4E 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 [18:12:39]wFMCommunicate OK [18:12:39]wFMCommunicate request_size=4 [18:12:39]MH_SAM_APDU [18:12:39]CAPDU: 80 17 00 00 [18:12:39]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [18:12:39]Write i2c OK [18:12:39]MH_I2C_Read... [18:12:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:12:39]Read from MH i2c: E2 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 FD 00 [18:12:39]MH_I2C_Read... [18:12:39]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 [18:12:39]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 [18:12:39]wFMCommunicate OK [18:12:39]wFMCommunicate request_size=4 [18:12:39]MH_SAM_APDU [18:12:39]CAPDU: 80 17 00 00 [18:12:39]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [18:12:39]Write i2c OK [18:12:39]MH_I2C_Read... [18:12:39]OFD Sender: No OFD packet to send [18:12:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:12:39]Read from MH i2c: E2 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 FD 00 [18:12:39]MH_I2C_Read... [18:12:39]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 [18:12:39]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 [18:12:39]wFMCommunicate OK [18:12:39]wFMCommunicate request_size=4 [18:12:39]MH_SAM_APDU [18:12:39]CAPDU: 80 17 00 00 [18:12:39]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [18:12:39]Write i2c OK [18:12:39]MH_I2C_Read... [18:12:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:12:39]Read from MH i2c: E2 [18:12:39]MH_I2C_Read... [18:12:39]Read from MH i2c: E2 FD 00 [18:12:39]MH_I2C_Read... [18:12:39]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 [18:12:39]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 [18:12:39]wFMCommunicate OK [18:12:39]wFMCommunicate request_size=4 [18:12:39]MH_SAM_APDU [18:12:39]CAPDU: 80 17 00 00 [18:12:39]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [18:12:39]Write i2c OK [18:12:39]MH_I2C_Read... [18:12:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [18:12:40]Read from MH i2c: E2 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: E2 DE 00 [18:12:40]MH_I2C_Read... [18:12:40]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 [18:12:40]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 [18:12:40]wFMCommunicate OK [18:12:40]SAM_PROTO_GetFMData done [18:12:40]requested_item fm.sale_refund.total is exist - process it [18:12:40]requested_item fm.buy.total is exist - process it [18:12:40]requested_item shift.sale.total is exist - process it [18:12:40]SAM_PROTO_GetShiftData [18:12:40]wFMCommunicate request_size=4 [18:12:40]MH_SAM_APDU [18:12:40]CAPDU: 80 13 02 00 [18:12:40]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [18:12:40]Write i2c OK [18:12:40]MH_I2C_Read... [18:12:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:12:40]Read from MH i2c: E2 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: E2 FD 00 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: E2 FD 00 18 00 00 B0 04 AA 04 AC 04 6E 04 04 00 CC 00 00 00 69 04 9D 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 C7 FE 15 01 70 04 03 00 E0 74 CD 72 04 03 00 E7 89 48 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 25 87 1D 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 E7 75 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 DC [18:12:40]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 CC 00 00 00 69 04 9D 00 6F 04 04 00 CC 00 00 00 B1 04 04 00 C7 FE 15 01 70 04 03 00 E0 74 CD 72 04 03 00 E7 89 48 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 25 87 1D 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 E7 75 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 [18:12:40]wFMCommunicate OK [18:12:40]wFMCommunicate request_size=4 [18:12:40]MH_SAM_APDU [18:12:40]CAPDU: 80 17 00 00 [18:12:40]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [18:12:40]Write i2c OK [18:12:40]MH_I2C_Read... [18:12:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:12:40]Read from MH i2c: E2 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: E2 FD 00 [18:12:40]MH_I2C_Read... [18:12:40]Read from MH i2c: E2 FD 00 19 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 B3 [18:12:40]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 [18:12:40]wFMCommunicate OK [18:12:40]wFMCommunicate request_size=4 [18:12:40]MH_SAM_APDU [18:12:40]CAPDU: 80 17 00 00 [18:12:40]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [18:12:40]Write i2c OK [18:12:40]MH_I2C_Read... [18:12:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:12:41]Read from MH i2c: E2 [18:12:41]MH_I2C_Read... [18:12:41]Read from MH i2c: E2 FD 00 [18:12:41]MH_I2C_Read... [18:12:41]Read from MH i2c: E2 FD 00 1A 00 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 57 [18:12:41]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 [18:12:41]wFMCommunicate OK [18:12:41]wFMCommunicate request_size=4 [18:12:41]MH_SAM_APDU [18:12:41]CAPDU: 80 17 00 00 [18:12:41]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [18:12:41]Write i2c OK [18:12:41]MH_I2C_Read... [18:12:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:12:41]Read from MH i2c: E2 [18:12:41]MH_I2C_Read... [18:12:41]Read from MH i2c: E2 FD 00 [18:12:41]MH_I2C_Read... [18:12:41]Read from MH i2c: E2 FD 00 1B 00 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 0E [18:12:41]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 [18:12:41]wFMCommunicate OK [18:12:41]wFMCommunicate request_size=4 [18:12:41]MH_SAM_APDU [18:12:41]CAPDU: 80 17 00 00 [18:12:41]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [18:12:41]Write i2c OK [18:12:41]MH_I2C_Read... [18:12:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [18:12:41]Read from MH i2c: E2 [18:12:41]MH_I2C_Read... [18:12:41]Read from MH i2c: E2 CD 00 [18:12:41]MH_I2C_Read... [18:12:41]Read from MH i2c: E2 CD 00 1C 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 80 [18:12:41]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 [18:12:41]wFMCommunicate OK [18:12:41]SAM_PROTO_GetShiftData done [18:12:41]requested_item shift.sale.total_cash is exist - process it [18:12:41]requested_item shift.sale_refund.total is exist - process it [18:12:41]requested_item shift.sale_refund.total_cash is exist - process it [18:12:41]requested_item shift.buy.total is exist - process it [18:12:41]requested_item shift.buy.total_cash is exist - process it [18:12:41]produce_requested_data done [18:12:41]produce_requested_data return {"fm.sale.total":176412182.89,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":182186.95,"shift.sale.total_cash":134648.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} [18:12:41]process_action_free get_value [18:12:41]json_value_free [18:12:41]json_value_free done [18:12:41]process_json_proto returns [18:12:41]Send response to host [18:12:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176412182.89,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":182186.95,"shift.sale.total_cash":134648.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}}} [18:12:41]free response buf [18:12:41]execute_script done [18:12:41]execute_script returns [18:12:41]free content buf [18:12:41]Sock 10.Close socket [18:12:41]Sock 10.Thread stoped [18:12:42]accept exits with 9 [18:12:42]New connection [18:12:42]New thread 3066654052 created [18:12:42]Thread 3066510692 joined [18:12:42]Waiting for new connection... [18:12:42] Sock 9.Parse request [18:12:42]Sock 9.Check first char [18:12:42]Sock 9.First char is OK [18:12:42]request: POST /json_proto HTTP/1.0 [18:12:42]Method: POST [18:12:42]URL: /json_proto [18:12:42]Method is POST - this is cgi request [18:12:42]url: /json_proto [18:12:42]query_string will be loaded in cgi processing [18:12:42]execute_cgi json_proto POST (null) [18:12:42]execute_cgi path=json_proto method=POST [18:12:42]POST find Content-Length [18:12:42]Host: 172.17.46.131:8080 [18:12:42]Content-Length: 673 [18:12:42]Content-Type: application/json [18:12:42] [18:12:42]POST finish read [18:12:42]Found Content-Length = 673 [18:12:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412293", "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" ] } } [18:12:42]execute_script... [18:12: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)412293", "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" ] } } [18:12:42]POST & json_proto [18:12:42]process_json_proto [18:12:42]json parsed OK: [18:12:42]protocol is kg_v1.0 [18:12:42]action value=close_receipt [18:12:42]process_action close_receipt [18:12:42]cmd_close_receipt [18:12:42]MH_GetDate [18:12:42]Write to MH i2c: F0 00 00 1D 00 0C [18:12:42]Write i2c OK [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: F0 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: F0 09 00 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: F0 09 00 1D 00 00 1A 1F B6 67 7E 41 4F 65 DE [18:12:42]GetLastDocTimeStamp 97 [18:12:42]current date 1739988762 [18:12:42]FM_GetShiftState [18:12:42]SAM_PROTO_GetShiftState [18:12:42]wFMCommunicate request_size=4 [18:12:42]MH_SAM_APDU [18:12:42]CAPDU: 80 13 01 00 [18:12:42]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [18:12:42]Write i2c OK [18:12:42]MH_I2C_Read... [18:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:42]Read from MH i2c: E2 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 0E 00 [18:12:42]MH_I2C_Read... [18:12:42]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 1A [18:12:42]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:12:42]wFMCommunicate OK [18:12:42]SAM_PROTO_GetShiftState done [18:12:42]FM_GetShiftState done [18:12:42]opened in 1739929631 [18:12:42]opened+sec_in_day 1740016031 [18:12:42]quantity*price = 50021 [18:12:42]sum+1 = 50022 [18:12:42]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 СНО: Общий режим Чек 205 19.02.2025 18:12 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187139 ФПД: 191472952632433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T181242&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187139&fm=191472952632433&tin=02508201610067®Number=0000000000091857&sum=50000 [18:12:43]StoreToDocumentArchive [18:12:43]shift 647 fd 187139 [18:12:43]save to /storage/0647/doc_00187139 [18:12:43]save last doc name /storage/0647/doc_00187139 to /storage/kkm_last_doc_name [18:12:43]save OK [18:12:43]Clear old archive folders... [18:12:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:12:43]tlvbuf is 01FA60C0 [18:12:43]SAM_PROTO_ClearQueue [18:12:43]wFMCommunicate request_size=4 [18:12:43]MH_SAM_APDU [18:12:43]CAPDU: 80 09 00 00 [18:12:43]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [18:12:43]Write i2c OK [18:12:43]MH_I2C_Read... [18:12:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:43]Read from MH i2c: E2 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: E2 03 00 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [18:12:43]RAPDU: 90 00 [18:12:43]wFMCommunicate OK [18:12:43]SAM_PROTO_ClearQueue done [18:12:43]KKMCreateOFDPacket [18:12:43]OFDProtocolAddRootSTLVToBuf [18:12:43]FM_MakeSignedData [18:12:43]FM_MakeSignedData [18:12:43]SAM_PROTO_SignData [18:12:43]wFMCommunicate request_size=4 [18:12:43]MH_SAM_APDU [18:12:43]CAPDU: 80 0D 01 02 [18:12:43]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [18:12:43]Write i2c OK [18:12:43]MH_I2C_Read... [18:12:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:43]Read from MH i2c: E2 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: E2 03 00 [18:12:43]MH_I2C_Read... [18:12:43]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [18:12:43]RAPDU: 90 00 [18:12:43]wFMCommunicate OK [18:12:43]wFMCommunicate request_size=255 [18:12:43]MH_SAM_APDU [18:12: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 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 CD 00 00 00 F4 03 04 00 1A 1F B6 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 03 DB 02 00 35 04 06 00 AE 24 C5 53 [18:12:43]Write to MH i2c: E2 02 01 2D 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 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 CD 00 00 00 F4 03 04 00 1A 1F B6 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 03 DB 02 00 35 04 06 00 AE 24 C5 53 00 00 D7 [18:12:43]Write i2c OK [18:12:43]MH_I2C_Read... [18:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:44]Read from MH i2c: E2 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [18:12:44]RAPDU: 90 00 [18:12:44]wFMCommunicate OK [18:12:44]wFMCommunicate request_size=7 [18:12:44]MH_SAM_APDU [18:12:44]CAPDU: 80 0D 02 02 02 64 71 [18:12:44]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 64 71 00 00 81 [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:44]Read from MH i2c: E2 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [18:12:44]RAPDU: 90 00 [18:12:44]wFMCommunicate OK [18:12:44]wFMCommunicate request_size=4 [18:12:44]MH_SAM_APDU [18:12:44]CAPDU: 80 0D 03 02 [18:12:44]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:44]Read from MH i2c: E2 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 0B 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 0B 00 2F 00 00 A9 84 AD 1E 94 7D 12 B1 90 00 77 [18:12:44]RAPDU: A9 84 AD 1E 94 7D 12 B1 90 00 [18:12:44]wFMCommunicate OK [18:12:44]SAM_PROTO_SignData done [18:12:44]FM_MakeSignedData done [18:12:44]CreateOFDProtocolMessage [18:12:44]wFMCommunicate request_size=4 [18:12:44]MH_SAM_APDU [18:12:44]CAPDU: 80 11 00 00 [18:12:44]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:44]Read from MH i2c: E2 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 17 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FD [18:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:12:44]wFMCommunicate OK [18:12:44]CreateOFDProtocolMessage done [18:12:44]OFDSenderStorePacket 187139 [18:12:44]StoreOFDPacket docnum=187139 [18:12: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 9D 0C 04 01 16 09 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CD 00 00 00 F4 03 04 00 1A 1F B6 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 03 DB 02 00 35 04 06 00 AE 24 C5 53 64 71 A9 84 AD 1E 94 7D 12 B1 [18:12:44]CheckFolder [18:12:44]dirname=/storage/ofd_packets [18:12:44]CheckFolder done [18:12:44]ProducePacketName [18:12:44]name=ofd_packets/00187139 [18:12:44]NVStorageSaveData ofd_packets/00187139 [18:12:44]File name is /storage/ofd_packets/00187139 [18:12:44]Write 298 bytes [18:12:44]NVStorageSaveData done [18:12:44]OFDSenderStorePacket done [18:12:44]KKMCreateOFDPacket done [18:12:44]NVStorageSaveData kkm_last_timestamp [18:12:44]File name is /storage/kkm_last_timestamp [18:12:44]Write 4 bytes [18:12:44]NVStorageSaveData done [18:12:44]ExternCall_PrintAddStr [18:12:44]wPrintStart [18:12:44]Write to MH i2c: 01 00 00 31 00 31 [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: 01 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: 01 07 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [18:12:44]RasterBufferAndPrint [18:12:44]line Счет N : (1)412293 [18:12:44]line ИНН: 02508201610067 [18:12:44]line Контрольно-Кассовый Чек [18:12:44]line ПРОДАЖА [18:12:44]line ТРК (МРК, ГНК) : 5 [18:12:44]line Товар: 2710194210 [18:12:44]line ДТ-К-5 [18:12:44]line 6.890 * 72.60 [18:12:44]line = 500.21 [18:12:44]line НДС 12% НСП 1% [18:12:44]line > о реализуемом товаре [18:12:44]line ОКРУГЛЕНИЕ: -0.21 [18:12:44]line ИТОГО: 500.00 [18:12:44]line Внесено: 500.00 [18:12:44]line СДАЧА: 0.00 [18:12:44]line НСП 1% : 4.43 [18:12:44]line НДС 12% : 53.12 [18:12:44]line Наличными: 500.00 [18:12:44]line Безнал.: 0.00 [18:12:44]line Место: АЗС № 92 "Партнер Нефть" [18:12:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:12:44]line СНО: Общий режим [18:12:44]line Чек 205 19.02.2025 18:12 [18:12:44]line Смена: 647 ФФД: 1.0 [18:12:44]line ЗНМ: 0300000118 [18:12:44]line РНМ: 0000000000091857 [18:12:44]line Версия ККМ: 001 [18:12:44]line ФМ: 0000000000871826 [18:12:44]line ФД: 187139 [18:12:44]line ФПД: 191472952632433 [18:12:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T181242&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187139&fm=191472952632433&tin=02508201610067®Number=0000000000091857&sum=50000 [18:12:44]written 0, free lines is 4095 [18:12:44]OFD Sender: Processing packet 187139 [packets to send 49, broken 48] [18:12:44]ProducePacketName [18:12:44]name=ofd_packets/00187139 [18:12:44]OFD Sender: To server: pG, [18:12:44]CommunicateWithHost lk.salyk.kg:30040 [18:12:44]ConnectInit lk.salyk.kg [18:12:44]Connected sock=6 [18:12:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 9D 0C 04 01 16 09 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CD 00 00 00 F4 03 04 00 1A 1F B6 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 03 DB 02 00 35 04 06 00 AE 24 C5 53 64 71 A9 84 AD 1E 94 7D 12 B1 [18:12:44]Write to MH i2c: 01 00 00 5C 00 5C [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: 01 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: 01 07 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 F1 0C 60 [18:12:44]RasterBufferAndPrint [18:12:44]line [18:12:44]line [18:12:44]line [18:12:44]line [18:12:44]line [18:12:44]written 0, free lines is 3334 [18:12:44]MH_Cut [18:12:44]Write to MH i2c: D1 01 00 63 00 01 35 [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: D1 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: D1 01 00 [18:12:44]MH_I2C_Read... [18:12:44]Read from MH i2c: D1 01 00 63 00 00 34 [18:12:44]Write to MH i2c: 01 00 00 64 00 64 [18:12:44]Write i2c OK [18:12:44]MH_I2C_Read... [18:12:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B5 63 47 00 44 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 03 DB 02 00 F4 03 04 00 6E C5 B5 67 B6 04 01 00 00 88 8A B9 30 FA 2C 67 5C [18:12:44]CommunicateWithHost err = 0 [18:12:44]CheckOFDResponse [18:12:44]1017 (14) - 77093643461234 [18:12:44]1041 (16) - 0000000000871826 [18:12:44]1040 (4) - 187139 [18:12:44]1012 (4) - 19.02.2025 11:50 [18:12:44]1206 (1) - 0 [18:12:44]OFD Sender: Remove packet 187139 [18:12:44]ProducePacketName [18:12:44]name=ofd_packets/00187139 [18:12:44]NVStorageDeleteData [18:12:45]*** Cut start [18:12:45]*** Partial cut [18:12:45]*** CUTSNS_PIN = 1 [18:12:45]OFD Sender: No OFD packet to send [18:12:45]*** CUTSNS_PIN = 0 [18:12:45]*** Brake cut motor [18:12:46]Read from MH i2c: 01 [18:12:46]MH_I2C_Read... [18:12:46]*** Stop cut motor [18:12:46]*** Cut end [18:12:46]Read from MH i2c: 01 07 00 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [18:12:46]process_action close_receipt done [18:12:46]requested_data is exist [18:12:46]produce_requested_data [18:12:46]requested_item fm.sn is exist - process it [18:12:46]wFMCommunicate request_size=4 [18:12:46]MH_SAM_APDU [18:12:46]CAPDU: 80 11 00 00 [18:12:46]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [18:12:46]Write i2c OK [18:12:46]MH_I2C_Read... [18:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:46]Read from MH i2c: E2 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: E2 17 00 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 32 [18:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:12:46]wFMCommunicate OK [18:12:46]requested_item fd.num is exist - process it [18:12:46]SAM_PROTO_GetFieldsCounters [18:12:46]wFMCommunicate request_size=4 [18:12:46]MH_SAM_APDU [18:12:46]CAPDU: 80 13 00 00 [18:12:46]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [18:12:46]Write i2c OK [18:12:46]MH_I2C_Read... [18:12:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:46]Read from MH i2c: E2 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: E2 62 00 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: E2 62 00 66 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 03 DB 02 00 0E 04 04 00 87 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 D8 [18:12: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 03 DB 02 00 0E 04 04 00 87 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 [18:12:46]wFMCommunicate OK [18:12:46]SAM_PROTO_GetFieldsCounters done [18:12:46]requested_item shift.num is exist - process it [18:12:46]requested_item shift.opened is exist - process it [18:12:46]req_shift_opened [18:12:46]FM_GetShiftState [18:12:46]SAM_PROTO_GetShiftState [18:12:46]wFMCommunicate request_size=4 [18:12:46]MH_SAM_APDU [18:12:46]CAPDU: 80 13 01 00 [18:12:46]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [18:12:46]Write i2c OK [18:12:46]MH_I2C_Read... [18:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:46]Read from MH i2c: E2 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: E2 0E 00 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 63 [18:12:46]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:12:46]wFMCommunicate OK [18:12:46]SAM_PROTO_GetShiftState done [18:12:46]FM_GetShiftState done [18:12:46]req_shift_opened done [18:12:46]requested_item shift.open_date is exist - process it [18:12:46]req_shift_open_date [18:12:46]req_shift_open_date done [18:12:46]produce_requested_data done [18:12:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187139,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [18:12:46]process_action_free close_receipt [18:12:46]json_value_free [18:12:46]json_value_free done [18:12:46]process_json_proto returns [18:12:46]Send response to host [18:12:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187139,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [18:12:46]free response buf [18:12:46]execute_script done [18:12:46]execute_script returns [18:12:46]free content buf [18:12:46]Sock 9.Close socket [18:12:46]Sock 9.Thread stoped [18:12:50]OFD Sender: No OFD packet to send [18:12:55]OFD Sender: No OFD packet to send [18:13:00]OFD Sender: No OFD packet to send [18:13:05]OFD Sender: No OFD packet to send [18:13:10]OFD Sender: No OFD packet to send [18:13:15]OFD Sender: No OFD packet to send [18:13:20]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13:30]OFD Sender: No OFD packet to send [18:13:35]OFD Sender: No OFD packet to send [18:13:38]accept exits with 7 [18:13:38]New connection [18:13:38]New thread 3066510692 created [18:13:38]Thread 3066654052 joined [18:13:38]Waiting for new connection... [18:13:38] Sock 7.Parse request [18:13:38]Sock 7.Check first char [18:13:38]Sock 7.First char is OK [18:13:38]request: POST /json_proto HTTP/1.0 [18:13:38]Method: POST [18:13:38]URL: /json_proto [18:13:38]Method is POST - this is cgi request [18:13:38]url: /json_proto [18:13:38]query_string will be loaded in cgi processing [18:13:38]execute_cgi json_proto POST (null) [18:13:38]execute_cgi path=json_proto method=POST [18:13:38]POST find Content-Length [18:13:38]Host: 172.17.46.131:8080 [18:13:38]Content-Length: 803 [18:13:38]Content-Type: application/json [18:13:38] [18:13:38]POST finish read [18:13:38]Found Content-Length = 803 [18:13:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412294", "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 }]} ], "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:13:38]execute_script... [18:13: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)412294", "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 }]} ], "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:13:38]POST & json_proto [18:13:38]process_json_proto [18:13:38]json parsed OK: [18:13:38]protocol is kg_v1.0 [18:13:38]action value=close_receipt [18:13:38]process_action close_receipt [18:13:38]cmd_close_receipt [18:13:38]MH_GetDate [18:13:38]Write to MH i2c: F0 00 00 68 00 57 [18:13:38]Write i2c OK [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: F0 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: F0 09 00 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: F0 09 00 68 00 00 53 1F B6 67 7E 41 4F 65 62 [18:13:38]GetLastDocTimeStamp 1739988762 [18:13:38]current date 1739988819 [18:13:38]FM_GetShiftState [18:13:38]SAM_PROTO_GetShiftState [18:13:38]wFMCommunicate request_size=4 [18:13:38]MH_SAM_APDU [18:13:38]CAPDU: 80 13 01 00 [18:13:38]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [18:13:38]Write i2c OK [18:13:38]MH_I2C_Read... [18:13:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:38]Read from MH i2c: E2 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: E2 0E 00 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 65 [18:13:38]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:13:38]wFMCommunicate OK [18:13:38]SAM_PROTO_GetShiftState done [18:13:38]FM_GetShiftState done [18:13:38]opened in 1739929631 [18:13:38]opened+sec_in_day 1740016031 [18:13:38]quantity*price = 100023 [18:13:38]sum+1 = 100025 [18:13:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 206 19.02.2025 18:13 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187140 ФПД: 29982986648881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T181339&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187140&fm=29982986648881&tin=02508201610067®Number=0000000000091857&sum=100024 [18:13:39]StoreToDocumentArchive [18:13:39]shift 647 fd 187140 [18:13:39]save to /storage/0647/doc_00187140 [18:13:39]save last doc name /storage/0647/doc_00187140 to /storage/kkm_last_doc_name [18:13:39]save OK [18:13:39]Clear old archive folders... [18:13:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:13:39]tlvbuf is 01F4BCD0 [18:13:39]SAM_PROTO_ClearQueue [18:13:39]wFMCommunicate request_size=4 [18:13:39]MH_SAM_APDU [18:13:39]CAPDU: 80 09 00 00 [18:13:39]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [18:13:39]Write i2c OK [18:13:39]MH_I2C_Read... [18:13:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:39]Read from MH i2c: E2 [18:13:39]MH_I2C_Read... [18:13:39]Read from MH i2c: E2 03 00 [18:13:39]MH_I2C_Read... [18:13:39]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [18:13:39]RAPDU: 90 00 [18:13:39]wFMCommunicate OK [18:13:39]SAM_PROTO_ClearQueue done [18:13:39]KKMCreateOFDPacket [18:13:39]OFDProtocolAddRootSTLVToBuf [18:13:39]FM_MakeSignedData [18:13:39]FM_MakeSignedData [18:13:39]SAM_PROTO_SignData [18:13:39]wFMCommunicate request_size=4 [18:13:39]MH_SAM_APDU [18:13:39]CAPDU: 80 0D 01 02 [18:13:39]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [18:13:39]Write i2c OK [18:13:39]MH_I2C_Read... [18:13:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:39]Read from MH i2c: E2 [18:13:39]MH_I2C_Read... [18:13:39]Read from MH i2c: E2 03 00 [18:13:39]MH_I2C_Read... [18:13:39]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [18:13:39]RAPDU: 90 00 [18:13:39]wFMCommunicate OK [18:13:39]wFMCommunicate request_size=255 [18:13:39]MH_SAM_APDU [18:13: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 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 CE 00 00 00 F4 03 04 00 53 1F B6 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 04 DB 02 00 35 04 06 00 1B [18:13:39]Write to MH i2c: E2 02 01 78 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 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 CE 00 00 00 F4 03 04 00 53 1F B6 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 04 DB 02 00 35 04 06 00 1B 00 00 FF [18:13:39]Write i2c OK [18:13:39]MH_I2C_Read... [18:13:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:40]Read from MH i2c: E2 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: E2 03 00 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [18:13:40]RAPDU: 90 00 [18:13:40]wFMCommunicate OK [18:13:40]wFMCommunicate request_size=10 [18:13:40]MH_SAM_APDU [18:13:40]CAPDU: 80 0D 02 02 05 44 F5 44 BD 31 [18:13:40]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 44 F5 44 BD 31 00 00 68 [18:13:40]Write i2c OK [18:13:40]MH_I2C_Read... [18:13:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:40]Read from MH i2c: E2 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: E2 03 00 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [18:13:40]RAPDU: 90 00 [18:13:40]wFMCommunicate OK [18:13:40]wFMCommunicate request_size=4 [18:13:40]MH_SAM_APDU [18:13:40]CAPDU: 80 0D 03 02 [18:13:40]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [18:13:40]Write i2c OK [18:13:40]MH_I2C_Read... [18:13:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:40]Read from MH i2c: E2 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: E2 0B 00 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: E2 0B 00 7A 00 00 B1 33 5E 91 D6 73 FE 29 90 00 39 [18:13:40]RAPDU: B1 33 5E 91 D6 73 FE 29 90 00 [18:13:40]wFMCommunicate OK [18:13:40]SAM_PROTO_SignData done [18:13:40]FM_MakeSignedData done [18:13:40]CreateOFDProtocolMessage [18:13:40]wFMCommunicate request_size=4 [18:13:40]MH_SAM_APDU [18:13:40]CAPDU: 80 11 00 00 [18:13:40]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [18:13:40]Write i2c OK [18:13:40]MH_I2C_Read... [18:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:40]Read from MH i2c: E2 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: E2 17 00 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 48 [18:13:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:13:40]wFMCommunicate OK [18:13:40]CreateOFDProtocolMessage done [18:13:40]OFDSenderStorePacket 187140 [18:13:40]StoreOFDPacket docnum=187140 [18:13: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 F8 47 07 01 7A 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 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 CE 00 00 00 F4 03 04 00 53 1F B6 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 04 DB 02 00 35 04 06 00 1B 44 F5 44 BD 31 B1 33 5E 91 D6 73 FE 29 [18:13:40]CheckFolder [18:13:40]dirname=/storage/ofd_packets [18:13:40]CheckFolder done [18:13:40]ProducePacketName [18:13:40]name=ofd_packets/00187140 [18:13:40]NVStorageSaveData ofd_packets/00187140 [18:13:40]File name is /storage/ofd_packets/00187140 [18:13:40]Write 301 bytes [18:13:40]NVStorageSaveData done [18:13:40]OFDSenderStorePacket done [18:13:40]KKMCreateOFDPacket done [18:13:40]NVStorageSaveData kkm_last_timestamp [18:13:40]File name is /storage/kkm_last_timestamp [18:13:40]Write 4 bytes [18:13:40]NVStorageSaveData done [18:13:40]ExternCall_PrintAddStr [18:13:40]wPrintStart [18:13:40]Write to MH i2c: 01 00 00 7C 00 7C [18:13:40]Write i2c OK [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: 01 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: 01 07 00 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [18:13:40]RasterBufferAndPrint [18:13:40]line Счет N : (1)412294 [18:13:40]line ИНН: 02508201610067 [18:13:40]line Контрольно-Кассовый Чек [18:13:40]line ПРОДАЖА [18:13:40]line ТРК (МРК, ГНК) : 12 [18:13:40]line Товар: 2710124130 [18:13:40]line Аи-92-К-2 [18:13:40]line 15.580 * 64.20 [18:13:40]line = 1000.24 [18:13:40]line НДС 12% НСП 1% [18:13:40]line > о реализуемом товаре [18:13:40]line ИТОГО: 1000.24 [18:13:40]line НСП 1% : 8.85 [18:13:40]line НДС 12% : 106.22 [18:13:40]line Наличными: 0.00 [18:13:40]line Безнал.: 1000.24 [18:13:40]line Место: АЗС № 92 "Партнер Нефть" [18:13:40]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:13:40]line СНО: Общий режим [18:13:40]line Чек 206 19.02.2025 18:13 [18:13:40]line Смена: 647 ФФД: 1.0 [18:13:40]line ЗНМ: 0300000118 [18:13:40]line РНМ: 0000000000091857 [18:13:40]line Версия ККМ: 001 [18:13:40]line Платежная система: O! деньги [18:13:40]line ФМ: 0000000000871826 [18:13:40]line ФД: 187140 [18:13:40]line ФПД: 29982986648881 [18:13:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T181339&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187140&fm=29982986648881&tin=02508201610067®Number=0000000000091857&sum=100024 [18:13:40]OFD Sender: Processing packet 187140 [packets to send 49, broken 48] [18:13:40]ProducePacketName [18:13:40]name=ofd_packets/00187140 [18:13:40]OFD Sender: To server: pG, [18:13:40]CommunicateWithHost lk.salyk.kg:30040 [18:13:40]ConnectInit lk.salyk.kg [18:13:40]written 0, free lines is 4095 [18:13:40]Connected sock=10 [18:13: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 F8 47 07 01 7A 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 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 CE 00 00 00 F4 03 04 00 53 1F B6 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 04 DB 02 00 35 04 06 00 1B 44 F5 44 BD 31 B1 33 5E 91 D6 73 FE 29 [18:13: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 07 41 47 00 7E 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 04 DB 02 00 F4 03 04 00 A6 C5 B5 67 B6 04 01 00 00 CC E9 46 D8 41 91 ED B1 [18:13:41]CommunicateWithHost err = 0 [18:13:41]CheckOFDResponse [18:13:41]1017 (14) - 77093643461234 [18:13:41]1041 (16) - 0000000000871826 [18:13:41]1040 (4) - 187140 [18:13:41]1012 (4) - 19.02.2025 11:51 [18:13:41]1206 (1) - 0 [18:13:41]OFD Sender: Remove packet 187140 [18:13:41]ProducePacketName [18:13:41]name=ofd_packets/00187140 [18:13:41]NVStorageDeleteData [18:13:41]Write to MH i2c: 01 00 00 A6 00 A6 [18:13:41]Write i2c OK [18:13:41]MH_I2C_Read... [18:13:41]Read from MH i2c: 01 [18:13:41]MH_I2C_Read... [18:13:41]Read from MH i2c: 01 07 00 [18:13:41]MH_I2C_Read... [18:13:41]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 FF 0C B8 [18:13:41]RasterBufferAndPrint [18:13:41]line [18:13:41]line [18:13:41]line [18:13:41]line [18:13:41]line [18:13:41]written 0, free lines is 3333 [18:13:41]MH_Cut [18:13:41]Write to MH i2c: D1 01 00 AD 00 01 7F [18:13:41]Write i2c OK [18:13:41]MH_I2C_Read... [18:13:41]Read from MH i2c: D1 [18:13:41]MH_I2C_Read... [18:13:41]Read from MH i2c: D1 01 00 [18:13:41]MH_I2C_Read... [18:13:41]Read from MH i2c: D1 01 00 AD 00 00 7E [18:13:41]Write to MH i2c: 01 00 00 AE 00 AE [18:13:41]Write i2c OK [18:13:41]MH_I2C_Read... [18:13:41]OFD Sender: No OFD packet to send [18:13:41]*** Cut start [18:13:41]*** Partial cut [18:13:41]*** CUTSNS_PIN = 1 [18:13:41]*** CUTSNS_PIN = 0 [18:13:42]*** Brake cut motor [18:13:42]Read from MH i2c: 01 [18:13:42]MH_I2C_Read... [18:13:42]*** Stop cut motor [18:13:42]*** Cut end [18:13:42]Read from MH i2c: 01 07 00 [18:13:42]MH_I2C_Read... [18:13:42]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [18:13:42]process_action close_receipt done [18:13:42]requested_data is exist [18:13:42]produce_requested_data [18:13:42]requested_item fm.sn is exist - process it [18:13:42]wFMCommunicate request_size=4 [18:13:42]MH_SAM_APDU [18:13:42]CAPDU: 80 11 00 00 [18:13:42]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [18:13:42]Write i2c OK [18:13:42]MH_I2C_Read... [18:13:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:42]Read from MH i2c: E2 [18:13:42]MH_I2C_Read... [18:13:42]Read from MH i2c: E2 17 00 [18:13:42]MH_I2C_Read... [18:13:42]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7C [18:13:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:13:42]wFMCommunicate OK [18:13:42]requested_item fd.num is exist - process it [18:13:42]SAM_PROTO_GetFieldsCounters [18:13:42]wFMCommunicate request_size=4 [18:13:42]MH_SAM_APDU [18:13:42]CAPDU: 80 13 00 00 [18:13:42]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [18:13:42]Write i2c OK [18:13:42]MH_I2C_Read... [18:13:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:42]Read from MH i2c: E2 [18:13:42]MH_I2C_Read... [18:13:42]Read from MH i2c: E2 62 00 [18:13:42]MH_I2C_Read... [18:13:42]Read from MH i2c: E2 62 00 B0 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 04 DB 02 00 0E 04 04 00 87 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 26 [18:13: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 04 DB 02 00 0E 04 04 00 87 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 [18:13:42]wFMCommunicate OK [18:13:42]SAM_PROTO_GetFieldsCounters done [18:13:42]requested_item shift.num is exist - process it [18:13:42]requested_item shift.opened is exist - process it [18:13:42]req_shift_opened [18:13:42]FM_GetShiftState [18:13:42]SAM_PROTO_GetShiftState [18:13:42]wFMCommunicate request_size=4 [18:13:42]MH_SAM_APDU [18:13:42]CAPDU: 80 13 01 00 [18:13:42]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [18:13:42]Write i2c OK [18:13:42]MH_I2C_Read... [18:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:42]Read from MH i2c: E2 [18:13:42]MH_I2C_Read... [18:13:42]Read from MH i2c: E2 0E 00 [18:13:42]MH_I2C_Read... [18:13:42]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 AD [18:13:42]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:13:42]wFMCommunicate OK [18:13:42]SAM_PROTO_GetShiftState done [18:13:42]FM_GetShiftState done [18:13:42]req_shift_opened done [18:13:42]requested_item shift.open_date is exist - process it [18:13:42]req_shift_open_date [18:13:42]req_shift_open_date done [18:13:42]produce_requested_data done [18:13:42]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187140,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [18:13:42]process_action_free close_receipt [18:13:42]json_value_free [18:13:42]json_value_free done [18:13:42]process_json_proto returns [18:13:42]Send response to host [18:13:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187140,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [18:13:42]free response buf [18:13:42]execute_script done [18:13:42]execute_script returns [18:13:42]free content buf [18:13:42]Sock 7.Close socket [18:13:42]Sock 7.Thread stoped [18:13:46]OFD Sender: No OFD packet to send [18:13:51]OFD Sender: No OFD packet to send [18:13:56]OFD Sender: No OFD packet to send [18:14:01]OFD Sender: No OFD packet to send [18:14:06]OFD Sender: No OFD packet to send [18:14:07]accept exits with 9 [18:14:07]New connection [18:14:07]New thread 3066654052 created [18:14:07]Thread 3066510692 joined [18:14:07]Waiting for new connection... [18:14:07] Sock 9.Parse request [18:14:07]Sock 9.Check first char [18:14:07]Sock 9.First char is OK [18:14:07]request: POST /json_proto HTTP/1.0 [18:14:07]Method: POST [18:14:07]URL: /json_proto [18:14:07]Method is POST - this is cgi request [18:14:07]url: /json_proto [18:14:07]query_string will be loaded in cgi processing [18:14:07]execute_cgi json_proto POST (null) [18:14:07]execute_cgi path=json_proto method=POST [18:14:07]POST find Content-Length [18:14:07]Host: 172.17.46.131:8080 [18:14:07]Content-Length: 677 [18:14:07]Content-Type: application/json [18:14:07] [18:14:07]POST finish read [18:14:07]Found Content-Length = 677 [18:14:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412295", "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" ] } } [18:14:07]execute_script... [18:14: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)412295", "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" ] } } [18:14:07]POST & json_proto [18:14:07]process_json_proto [18:14:07]json parsed OK: [18:14:07]protocol is kg_v1.0 [18:14:07]action value=close_receipt [18:14:07]process_action close_receipt [18:14:07]cmd_close_receipt [18:14:07]MH_GetDate [18:14:07]Write to MH i2c: F0 00 00 B2 00 A1 [18:14:07]Write i2c OK [18:14:07]MH_I2C_Read... [18:14:07]Read from MH i2c: F0 [18:14:07]MH_I2C_Read... [18:14:07]Read from MH i2c: F0 09 00 [18:14:07]MH_I2C_Read... [18:14:07]Read from MH i2c: F0 09 00 B2 00 00 70 1F B6 67 7E 41 4F 65 C9 [18:14:07]GetLastDocTimeStamp 1739988819 [18:14:07]current date 1739988848 [18:14:07]FM_GetShiftState [18:14:07]SAM_PROTO_GetShiftState [18:14:07]wFMCommunicate request_size=4 [18:14:07]MH_SAM_APDU [18:14:07]CAPDU: 80 13 01 00 [18:14:07]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [18:14:07]Write i2c OK [18:14:07]MH_I2C_Read... [18:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:07]Read from MH i2c: E2 [18:14:07]MH_I2C_Read... [18:14:07]Read from MH i2c: E2 0E 00 [18:14:07]MH_I2C_Read... [18:14:07]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 AF [18:14:07]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:14:07]wFMCommunicate OK [18:14:07]SAM_PROTO_GetShiftState done [18:14:07]FM_GetShiftState done [18:14:07]opened in 1739929631 [18:14:07]opened+sec_in_day 1740016031 [18:14:07]quantity*price = 40048 [18:14:07]sum+1 = 40049 [18:14:07]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 СНО: Общий режим Чек 207 19.02.2025 18:14 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187141 ФПД: 189433367895584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T181408&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187141&fm=189433367895584&tin=02508201610067®Number=0000000000091857&sum=40000 [18:14:08]StoreToDocumentArchive [18:14:08]shift 647 fd 187141 [18:14:08]save to /storage/0647/doc_00187141 [18:14:08]save last doc name /storage/0647/doc_00187141 to /storage/kkm_last_doc_name [18:14:08]save OK [18:14:08]Clear old archive folders... [18:14:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:08]tlvbuf is 01F44F30 [18:14:08]SAM_PROTO_ClearQueue [18:14:08]wFMCommunicate request_size=4 [18:14:08]MH_SAM_APDU [18:14:08]CAPDU: 80 09 00 00 [18:14:08]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [18:14:08]Write i2c OK [18:14:08]MH_I2C_Read... [18:14:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:09]Read from MH i2c: E2 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: E2 03 00 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [18:14:09]RAPDU: 90 00 [18:14:09]wFMCommunicate OK [18:14:09]SAM_PROTO_ClearQueue done [18:14:09]KKMCreateOFDPacket [18:14:09]OFDProtocolAddRootSTLVToBuf [18:14:09]FM_MakeSignedData [18:14:09]FM_MakeSignedData [18:14:09]SAM_PROTO_SignData [18:14:09]wFMCommunicate request_size=4 [18:14:09]MH_SAM_APDU [18:14:09]CAPDU: 80 0D 01 02 [18:14:09]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [18:14:09]Write i2c OK [18:14:09]MH_I2C_Read... [18:14:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:09]Read from MH i2c: E2 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: E2 03 00 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [18:14:09]RAPDU: 90 00 [18:14:09]wFMCommunicate OK [18:14:09]wFMCommunicate request_size=255 [18:14:09]MH_SAM_APDU [18:14:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 CF 00 00 00 F4 03 04 00 70 1F B6 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 05 DB 02 00 35 04 06 00 AC [18:14:09]Write to MH i2c: E2 02 01 C2 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 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 CF 00 00 00 F4 03 04 00 70 1F B6 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 05 DB 02 00 35 04 06 00 AC 00 00 BC [18:14:09]Write i2c OK [18:14:09]MH_I2C_Read... [18:14:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:09]Read from MH i2c: E2 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: E2 03 00 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [18:14:09]RAPDU: 90 00 [18:14:09]wFMCommunicate OK [18:14:09]wFMCommunicate request_size=10 [18:14:09]MH_SAM_APDU [18:14:09]CAPDU: 80 0D 02 02 05 49 E4 9A 1E 20 [18:14:09]Write to MH i2c: E2 0D 00 C3 00 80 0D 02 02 05 00 49 E4 9A 1E 20 00 00 4C [18:14:09]Write i2c OK [18:14:09]MH_I2C_Read... [18:14:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:09]Read from MH i2c: E2 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: E2 03 00 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [18:14:09]RAPDU: 90 00 [18:14:09]wFMCommunicate OK [18:14:09]wFMCommunicate request_size=4 [18:14:09]MH_SAM_APDU [18:14:09]CAPDU: 80 0D 03 02 [18:14:09]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [18:14:09]Write i2c OK [18:14:09]MH_I2C_Read... [18:14:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:09]Read from MH i2c: E2 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: E2 0B 00 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: E2 0B 00 C4 00 00 4F 31 57 49 CE 85 7F 59 90 00 8B [18:14:09]RAPDU: 4F 31 57 49 CE 85 7F 59 90 00 [18:14:09]wFMCommunicate OK [18:14:09]SAM_PROTO_SignData done [18:14:09]FM_MakeSignedData done [18:14:09]CreateOFDProtocolMessage [18:14:09]wFMCommunicate request_size=4 [18:14:09]MH_SAM_APDU [18:14:09]CAPDU: 80 11 00 00 [18:14:09]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [18:14:09]Write i2c OK [18:14:09]MH_I2C_Read... [18:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:09]Read from MH i2c: E2 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: E2 17 00 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 92 [18:14:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:14:09]wFMCommunicate OK [18:14:09]CreateOFDProtocolMessage done [18:14:09]OFDSenderStorePacket 187141 [18:14:09]StoreOFDPacket docnum=187141 [18:14: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 1F D2 07 01 B4 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 CF 00 00 00 F4 03 04 00 70 1F B6 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 05 DB 02 00 35 04 06 00 AC 49 E4 9A 1E 20 4F 31 57 49 CE 85 7F 59 [18:14:09]CheckFolder [18:14:09]dirname=/storage/ofd_packets [18:14:09]CheckFolder done [18:14:09]ProducePacketName [18:14:09]name=ofd_packets/00187141 [18:14:09]NVStorageSaveData ofd_packets/00187141 [18:14:09]File name is /storage/ofd_packets/00187141 [18:14:09]Write 301 bytes [18:14:09]NVStorageSaveData done [18:14:09]OFDSenderStorePacket done [18:14:09]KKMCreateOFDPacket done [18:14:09]NVStorageSaveData kkm_last_timestamp [18:14:09]File name is /storage/kkm_last_timestamp [18:14:09]Write 4 bytes [18:14:09]NVStorageSaveData done [18:14:09]ExternCall_PrintAddStr [18:14:09]wPrintStart [18:14:09]Write to MH i2c: 01 00 00 C6 00 C6 [18:14:09]Write i2c OK [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: 01 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: 01 07 00 [18:14:09]MH_I2C_Read... [18:14:09]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [18:14:09]RasterBufferAndPrint [18:14:09]line Счет N : (1)412295 [18:14:09]line ИНН: 02508201610067 [18:14:09]line Контрольно-Кассовый Чек [18:14:09]line ПРОДАЖА [18:14:09]line ТРК (МРК, ГНК) : 33 [18:14:09]line Товар: 2710124500 [18:14:09]line Аи-95-К-5 [18:14:09]line 5.570 * 71.90 [18:14:09]line = 400.48 [18:14:09]line НДС 12% НСП 1% [18:14:09]line > о реализуемом товаре [18:14:09]line ОКРУГЛЕНИЕ: -0.48 [18:14:09]line ИТОГО: 400.00 [18:14:09]line Внесено: 400.00 [18:14:09]line СДАЧА: 0.00 [18:14:09]line НСП 1% : 3.54 [18:14:09]line НДС 12% : 42.53 [18:14:09]line Наличными: 400.00 [18:14:09]line Безнал.: 0.00 [18:14:09]line Место: АЗС № 92 "Партнер Нефть" [18:14:09]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:14:09]line СНО: Общий режим [18:14:09]line Чек 207 19.02.2025 18:14 [18:14:09]line Смена: 647 ФФД: 1.0 [18:14:09]line ЗНМ: 0300000118 [18:14:09]line РНМ: 0000000000091857 [18:14:09]line Версия ККМ: 001 [18:14:09]line ФМ: 0000000000871826 [18:14:09]line ФД: 187141 [18:14:09]line ФПД: 189433367895584 [18:14:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T181408&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187141&fm=189433367895584&tin=02508201610067®Number=0000000000091857&sum=40000 [18:14:09]written 0, free lines is 4095 [18:14:09]OFD Sender: Processing packet 187141 [packets to send 49, broken 48] [18:14:09]ProducePacketName [18:14:09]name=ofd_packets/00187141 [18:14:09]OFD Sender: To server: pG, [18:14:09]CommunicateWithHost lk.salyk.kg:30040 [18:14:09]ConnectInit lk.salyk.kg [18:14:09]Connected sock=10 [18:14: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 1F D2 07 01 B4 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 CF 00 00 00 F4 03 04 00 70 1F B6 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 05 DB 02 00 35 04 06 00 AC 49 E4 9A 1E 20 4F 31 57 49 CE 85 7F 59 [18:14: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 3A FE 47 00 37 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 05 DB 02 00 F4 03 04 00 C3 C5 B5 67 B6 04 01 00 00 D4 82 4B 06 47 C6 70 6F [18:14:10]CommunicateWithHost err = 0 [18:14:10]CheckOFDResponse [18:14:10]1017 (14) - 77093643461234 [18:14:10]1041 (16) - 0000000000871826 [18:14:10]1040 (4) - 187141 [18:14:10]1012 (4) - 19.02.2025 11:51 [18:14:10]1206 (1) - 0 [18:14:10]OFD Sender: Remove packet 187141 [18:14:10]ProducePacketName [18:14:10]name=ofd_packets/00187141 [18:14:10]NVStorageDeleteData [18:14:10]Write to MH i2c: 01 00 00 F1 00 F1 [18:14:10]Write i2c OK [18:14:10]MH_I2C_Read... [18:14:10]Read from MH i2c: 01 [18:14:10]MH_I2C_Read... [18:14:10]Read from MH i2c: 01 07 00 [18:14:10]MH_I2C_Read... [18:14:10]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 E7 0C EB [18:14:10]RasterBufferAndPrint [18:14:10]line [18:14:10]line [18:14:10]line [18:14:10]line [18:14:10]line [18:14:10]written 0, free lines is 3310 [18:14:10]MH_Cut [18:14:10]Write to MH i2c: D1 01 00 F8 00 01 CA [18:14:10]Write i2c OK [18:14:10]MH_I2C_Read... [18:14:10]Read from MH i2c: D1 [18:14:10]MH_I2C_Read... [18:14:10]Read from MH i2c: D1 01 00 [18:14:10]MH_I2C_Read... [18:14:10]Read from MH i2c: D1 01 00 F8 00 00 C9 [18:14:10]Write to MH i2c: 01 00 00 F9 00 F9 [18:14:10]Write i2c OK [18:14:10]MH_I2C_Read... [18:14:10]OFD Sender: No OFD packet to send [18:14:10]*** Cut start [18:14:10]*** Partial cut [18:14:10]*** CUTSNS_PIN = 1 [18:14:11]*** CUTSNS_PIN = 0 [18:14:11]*** Brake cut motor [18:14:11]Read from MH i2c: 01 [18:14:11]MH_I2C_Read... [18:14:11]*** Stop cut motor [18:14:11]*** Cut end [18:14:11]Read from MH i2c: 01 07 00 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [18:14:11]process_action close_receipt done [18:14:11]requested_data is exist [18:14:11]produce_requested_data [18:14:11]requested_item fm.sn is exist - process it [18:14:11]wFMCommunicate request_size=4 [18:14:11]MH_SAM_APDU [18:14:11]CAPDU: 80 11 00 00 [18:14:11]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [18:14:11]Write i2c OK [18:14:11]MH_I2C_Read... [18:14:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:11]Read from MH i2c: E2 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: E2 17 00 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C7 [18:14: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:14:11]wFMCommunicate OK [18:14:11]requested_item fd.num is exist - process it [18:14:11]SAM_PROTO_GetFieldsCounters [18:14:11]wFMCommunicate request_size=4 [18:14:11]MH_SAM_APDU [18:14:11]CAPDU: 80 13 00 00 [18:14:11]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [18:14:11]Write i2c OK [18:14:11]MH_I2C_Read... [18:14:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:11]Read from MH i2c: E2 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: E2 62 00 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: E2 62 00 FB 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 05 DB 02 00 0E 04 04 00 87 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 75 [18:14: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 05 DB 02 00 0E 04 04 00 87 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 [18:14:11]wFMCommunicate OK [18:14:11]SAM_PROTO_GetFieldsCounters done [18:14:11]requested_item shift.num is exist - process it [18:14:11]requested_item shift.opened is exist - process it [18:14:11]req_shift_opened [18:14:11]FM_GetShiftState [18:14:11]SAM_PROTO_GetShiftState [18:14:11]wFMCommunicate request_size=4 [18:14:11]MH_SAM_APDU [18:14:11]CAPDU: 80 13 01 00 [18:14:11]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [18:14:11]Write i2c OK [18:14:11]MH_I2C_Read... [18:14:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:11]Read from MH i2c: E2 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: E2 0E 00 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F8 [18:14:11]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:14:11]wFMCommunicate OK [18:14:11]SAM_PROTO_GetShiftState done [18:14:11]FM_GetShiftState done [18:14:11]req_shift_opened done [18:14:11]requested_item shift.open_date is exist - process it [18:14:11]req_shift_open_date [18:14:11]req_shift_open_date done [18:14:11]produce_requested_data done [18:14:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187141,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [18:14:11]process_action_free close_receipt [18:14:11]json_value_free [18:14:11]json_value_free done [18:14:11]process_json_proto returns [18:14:11]Send response to host [18:14:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187141,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [18:14:11]free response buf [18:14:11]execute_script done [18:14:11]execute_script returns [18:14:11]free content buf [18:14:11]Sock 9.Close socket [18:14:11]Sock 9.Thread stoped [18:14:15]OFD Sender: No OFD packet to send [18:14:20]OFD Sender: No OFD packet to send [18:14:25]OFD Sender: No OFD packet to send [18:14:30]OFD Sender: No OFD packet to send [18:14:35]OFD Sender: No OFD packet to send [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:40]OFD Sender: No OFD packet to send [18:16:45]OFD Sender: No OFD packet to send [18:16:50]OFD Sender: No OFD packet to send [18:16:55]OFD Sender: No OFD packet to send [18:17:00]OFD Sender: No OFD packet to send [18:17:05]OFD Sender: No OFD packet to send [18:17:10]OFD Sender: No OFD packet to send [18:17:15]OFD Sender: No OFD packet to send [18:17:20]OFD Sender: No OFD packet to send [18:17:25]OFD Sender: No OFD packet to send [18:17:30]OFD Sender: No OFD packet to send [18:17:35]OFD Sender: No OFD packet to send [18:17:40]OFD Sender: No OFD packet to send [18:17:45]OFD Sender: No OFD packet to send [18:17:50]OFD Sender: No OFD packet to send [18:17:55]OFD Sender: No OFD packet to send [18:18:00]OFD Sender: No OFD packet to send [18:18:05]OFD Sender: No OFD packet to send [18:18:10]OFD Sender: No OFD packet to send [18:18:15]OFD Sender: No OFD packet to send [18:18:21]OFD Sender: No OFD packet to send [18:18:26]OFD Sender: No OFD packet to send [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]accept exits with 7 [18:23:41]New connection [18:23:41]New thread 3066510692 created [18:23:41]Thread 3066654052 joined [18:23:41]Waiting for new connection... [18:23:41] Sock 7.Parse request [18:23:41]Sock 7.Check first char [18:23:41]Sock 7.First char is OK [18:23:41]request: POST /json_proto HTTP/1.0 [18:23:41]Method: POST [18:23:41]URL: /json_proto [18:23:41]Method is POST - this is cgi request [18:23:41]url: /json_proto [18:23:41]query_string will be loaded in cgi processing [18:23:41]execute_cgi json_proto POST (null) [18:23:41]execute_cgi path=json_proto method=POST [18:23:41]POST find Content-Length [18:23:41]Host: 172.17.46.131:8080 [18:23:41]Content-Length: 678 [18:23:41]Content-Type: application/json [18:23:41] [18:23:41]POST finish read [18:23:41]Found Content-Length = 678 [18:23:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412296", "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:23:41]execute_script... [18:23:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412296", "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:23:41]POST & json_proto [18:23:41]process_json_proto [18:23:41]json parsed OK: [18:23:41]protocol is kg_v1.0 [18:23:41]action value=close_receipt [18:23:41]process_action close_receipt [18:23:41]cmd_close_receipt [18:23:41]MH_GetDate [18:23:41]Write to MH i2c: F0 00 00 FD 00 EC [18:23:41]Write i2c OK [18:23:41]MH_I2C_Read... [18:23:41]Read from MH i2c: F0 [18:23:41]MH_I2C_Read... [18:23:41]Read from MH i2c: F0 09 00 [18:23:41]MH_I2C_Read... [18:23:41]Read from MH i2c: F0 09 00 FD 00 00 AD 21 B6 67 7E 41 4F 65 53 [18:23:41]GetLastDocTimeStamp 1739988848 [18:23:41]current date 1739989421 [18:23:41]FM_GetShiftState [18:23:41]SAM_PROTO_GetShiftState [18:23:41]wFMCommunicate request_size=4 [18:23:41]MH_SAM_APDU [18:23:41]CAPDU: 80 13 01 00 [18:23:41]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [18:23:41]Write i2c OK [18:23:41]MH_I2C_Read... [18:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:41]Read from MH i2c: E2 [18:23:41]MH_I2C_Read... [18:23:41]Read from MH i2c: E2 0E 00 [18:23:41]MH_I2C_Read... [18:23:41]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 FA [18:23:41]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:23:41]wFMCommunicate OK [18:23:41]SAM_PROTO_GetShiftState done [18:23:41]FM_GetShiftState done [18:23:41]opened in 1739929631 [18:23:41]opened+sec_in_day 1740016031 [18:23:41]quantity*price = 100042 [18:23:41]sum+1 = 100044 [18:23:41]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 СНО: Общий режим Чек 208 19.02.2025 18:23 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187142 ФПД: 262591767305166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T182341&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187142&fm=262591767305166&tin=02508201610067®Number=0000000000091857&sum=100000 [18:23:42]StoreToDocumentArchive [18:23:42]shift 647 fd 187142 [18:23:42]save to /storage/0647/doc_00187142 [18:23:42]save last doc name /storage/0647/doc_00187142 to /storage/kkm_last_doc_name [18:23:42]save OK [18:23:42]Clear old archive folders... [18:23:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:23:42]tlvbuf is 01F5CBF0 [18:23:42]SAM_PROTO_ClearQueue [18:23:42]wFMCommunicate request_size=4 [18:23:42]MH_SAM_APDU [18:23:42]CAPDU: 80 09 00 00 [18:23:42]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [18:23:42]Write i2c OK [18:23:42]MH_I2C_Read... [18:23:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:42]Read from MH i2c: E2 [18:23:42]MH_I2C_Read... [18:23:42]Read from MH i2c: E2 03 00 [18:23:42]MH_I2C_Read... [18:23:42]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [18:23:42]RAPDU: 90 00 [18:23:42]wFMCommunicate OK [18:23:42]SAM_PROTO_ClearQueue done [18:23:42]KKMCreateOFDPacket [18:23:42]OFDProtocolAddRootSTLVToBuf [18:23:42]FM_MakeSignedData [18:23:42]FM_MakeSignedData [18:23:42]SAM_PROTO_SignData [18:23:42]wFMCommunicate request_size=4 [18:23:42]MH_SAM_APDU [18:23:42]CAPDU: 80 0D 01 02 [18:23:42]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [18:23:42]Write i2c OK [18:23:42]MH_I2C_Read... [18:23:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:42]Read from MH i2c: E2 [18:23:42]MH_I2C_Read... [18:23:42]Read from MH i2c: E2 03 00 [18:23:42]MH_I2C_Read... [18:23:42]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [18:23:42]RAPDU: 90 00 [18:23:42]wFMCommunicate OK [18:23:42]wFMCommunicate request_size=255 [18:23:42]MH_SAM_APDU [18:23: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 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 D0 00 00 00 F4 03 04 00 AD 21 B6 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 06 DB 02 00 35 04 06 00 EE D3 69 02 [18:23:42]Write to MH i2c: E2 02 01 0D 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 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 D0 00 00 00 F4 03 04 00 AD 21 B6 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 06 DB 02 00 35 04 06 00 EE D3 69 02 00 00 7D [18:23:42]Write i2c OK [18:23:42]MH_I2C_Read... [18:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:42]Read from MH i2c: E2 [18:23:42]MH_I2C_Read... [18:23:42]Read from MH i2c: E2 03 00 [18:23:42]MH_I2C_Read... [18:23:42]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [18:23:42]RAPDU: 90 00 [18:23:42]wFMCommunicate OK [18:23:42]wFMCommunicate request_size=7 [18:23:42]MH_SAM_APDU [18:23:42]CAPDU: 80 0D 02 02 02 DB CE [18:23:42]Write to MH i2c: E2 0A 00 0E 01 80 0D 02 02 02 00 DB CE 00 00 36 [18:23:42]Write i2c OK [18:23:42]MH_I2C_Read... [18:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:42]Read from MH i2c: E2 [18:23:42]MH_I2C_Read... [18:23:42]Read from MH i2c: E2 03 00 [18:23:42]MH_I2C_Read... [18:23:42]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [18:23:42]RAPDU: 90 00 [18:23:42]wFMCommunicate OK [18:23:42]wFMCommunicate request_size=4 [18:23:42]MH_SAM_APDU [18:23:42]CAPDU: 80 0D 03 02 [18:23:42]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [18:23:42]Write i2c OK [18:23:42]MH_I2C_Read... [18:23:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:42]Read from MH i2c: E2 [18:23:42]MH_I2C_Read... [18:23:42]Read from MH i2c: E2 0B 00 [18:23:42]MH_I2C_Read... [18:23:42]Read from MH i2c: E2 0B 00 0F 01 00 CA 7B F6 6F 4E 4A 26 A1 90 00 95 [18:23:42]RAPDU: CA 7B F6 6F 4E 4A 26 A1 90 00 [18:23:42]wFMCommunicate OK [18:23:42]SAM_PROTO_SignData done [18:23:42]FM_MakeSignedData done [18:23:42]CreateOFDProtocolMessage [18:23:42]wFMCommunicate request_size=4 [18:23:42]MH_SAM_APDU [18:23:42]CAPDU: 80 11 00 00 [18:23:42]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [18:23:42]Write i2c OK [18:23:42]MH_I2C_Read... [18:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:42]Read from MH i2c: E2 [18:23:42]MH_I2C_Read... [18:23:42]Read from MH i2c: E2 17 00 [18:23:42]MH_I2C_Read... [18:23:42]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DE [18:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:23:42]wFMCommunicate OK [18:23:42]CreateOFDProtocolMessage done [18:23:42]OFDSenderStorePacket 187142 [18:23:42]StoreOFDPacket docnum=187142 [18:23: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 A4 71 04 01 F4 E8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D0 00 00 00 F4 03 04 00 AD 21 B6 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 06 DB 02 00 35 04 06 00 EE D3 69 02 DB CE CA 7B F6 6F 4E 4A 26 A1 [18:23:42]CheckFolder [18:23:42]dirname=/storage/ofd_packets [18:23:42]CheckFolder done [18:23:42]ProducePacketName [18:23:42]name=ofd_packets/00187142 [18:23:42]NVStorageSaveData ofd_packets/00187142 [18:23:42]File name is /storage/ofd_packets/00187142 [18:23:42]Write 298 bytes [18:23:42]NVStorageSaveData done [18:23:42]OFDSenderStorePacket done [18:23:42]KKMCreateOFDPacket done [18:23:42]NVStorageSaveData kkm_last_timestamp [18:23:42]File name is /storage/kkm_last_timestamp [18:23:42]Write 4 bytes [18:23:42]NVStorageSaveData done [18:23:42]ExternCall_PrintAddStr [18:23:42]wPrintStart [18:23:42]Write to MH i2c: 01 00 00 11 01 12 [18:23:42]Write i2c OK [18:23:42]MH_I2C_Read... [18:23:42]Read from MH i2c: 01 [18:23:42]MH_I2C_Read... [18:23:42]Read from MH i2c: 01 07 00 [18:23:42]MH_I2C_Read... [18:23:42]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [18:23:42]RasterBufferAndPrint [18:23:42]line Счет N : (1)412296 [18:23:42]line ИНН: 02508201610067 [18:23:42]line Контрольно-Кассовый Чек [18:23:42]line ПРОДАЖА [18:23:42]line ТРК (МРК, ГНК) : 5 [18:23:42]line Товар: 2710194210 [18:23:42]line ДТ-К-5 [18:23:42]line 13.780 * 72.60 [18:23:42]line = 1000.43 [18:23:42]line НДС 12% НСП 1% [18:23:42]line > о реализуемом товаре [18:23:42]line ОКРУГЛЕНИЕ: -0.43 [18:23:42]line ИТОГО: 1000.00 [18:23:42]line Внесено: 1000.00 [18:23:42]line СДАЧА: 0.00 [18:23:42]line НСП 1% : 8.85 [18:23:42]line НДС 12% : 106.24 [18:23:42]line Наличными: 1000.00 [18:23:42]line Безнал.: 0.00 [18:23:42]line Место: АЗС № 92 "Партнер Нефть" [18:23:42]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:23:42]line СНО: Общий режим [18:23:42]line Чек 208 19.02.2025 18:23 [18:23:42]line Смена: 647 ФФД: 1.0 [18:23:42]line ЗНМ: 0300000118 [18:23:42]line РНМ: 0000000000091857 [18:23:42]line Версия ККМ: 001 [18:23:42]line ФМ: 0000000000871826 [18:23:42]line ФД: 187142 [18:23:42]line ФПД: 262591767305166 [18:23:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T182341&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187142&fm=262591767305166&tin=02508201610067®Number=0000000000091857&sum=100000 [18:23:43]OFD Sender: Processing packet 187142 [packets to send 49, broken 48] [18:23:43]ProducePacketName [18:23:43]name=ofd_packets/00187142 [18:23:43]OFD Sender: To server: pG, [18:23:43]CommunicateWithHost lk.salyk.kg:30040 [18:23:43]ConnectInit lk.salyk.kg [18:23:43]written 0, free lines is 4095 [18:23:43]Connected sock=10 [18:23:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A4 71 04 01 F4 E8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D0 00 00 00 F4 03 04 00 AD 21 B6 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 06 DB 02 00 35 04 06 00 EE D3 69 02 DB CE CA 7B F6 6F 4E 4A 26 A1 [18:23:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B3 4D 47 00 BE 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 06 DB 02 00 F4 03 04 00 00 C8 B5 67 B6 04 01 00 00 03 51 2C AE BE A8 A5 06 [18:23:43]CommunicateWithHost err = 0 [18:23:43]CheckOFDResponse [18:23:43]1017 (14) - 77093643461234 [18:23:43]1041 (16) - 0000000000871826 [18:23:43]1040 (4) - 187142 [18:23:43]1012 (4) - 19.02.2025 12:01 [18:23:43]1206 (1) - 0 [18:23:43]OFD Sender: Remove packet 187142 [18:23:43]ProducePacketName [18:23:43]name=ofd_packets/00187142 [18:23:43]NVStorageDeleteData [18:23:43]Write to MH i2c: 01 00 00 3C 01 3D [18:23:43]Write i2c OK [18:23:43]MH_I2C_Read... [18:23:43]Read from MH i2c: 01 [18:23:43]MH_I2C_Read... [18:23:43]Read from MH i2c: 01 07 00 [18:23:43]MH_I2C_Read... [18:23:43]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 E0 0C 30 [18:23:43]RasterBufferAndPrint [18:23:43]line [18:23:43]line [18:23:43]line [18:23:43]line [18:23:43]line [18:23:43]written 0, free lines is 3302 [18:23:43]MH_Cut [18:23:43]Write to MH i2c: D1 01 00 43 01 01 16 [18:23:43]Write i2c OK [18:23:43]MH_I2C_Read... [18:23:43]Read from MH i2c: D1 [18:23:43]MH_I2C_Read... [18:23:43]Read from MH i2c: D1 01 00 [18:23:43]MH_I2C_Read... [18:23:43]Read from MH i2c: D1 01 00 43 01 00 15 [18:23:43]Write to MH i2c: 01 00 00 44 01 45 [18:23:43]Write i2c OK [18:23:43]MH_I2C_Read... [18:23:43]OFD Sender: No OFD packet to send [18:23:44]*** Cut start [18:23:44]*** Partial cut [18:23:44]*** CUTSNS_PIN = 1 [18:23:44]*** CUTSNS_PIN = 0 [18:23:44]*** Brake cut motor [18:23:44]Read from MH i2c: 01 [18:23:44]MH_I2C_Read... [18:23:44]*** Stop cut motor [18:23:44]*** Cut end [18:23:44]Read from MH i2c: 01 07 00 [18:23:44]MH_I2C_Read... [18:23:44]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [18:23:44]process_action close_receipt done [18:23:44]requested_data is exist [18:23:44]produce_requested_data [18:23:44]requested_item fm.sn is exist - process it [18:23:44]wFMCommunicate request_size=4 [18:23:44]MH_SAM_APDU [18:23:44]CAPDU: 80 11 00 00 [18:23:44]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [18:23:44]Write i2c OK [18:23:44]MH_I2C_Read... [18:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:44]Read from MH i2c: E2 [18:23:44]MH_I2C_Read... [18:23:44]Read from MH i2c: E2 17 00 [18:23:44]MH_I2C_Read... [18:23:44]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 13 [18:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:23:44]wFMCommunicate OK [18:23:44]requested_item fd.num is exist - process it [18:23:44]SAM_PROTO_GetFieldsCounters [18:23:44]wFMCommunicate request_size=4 [18:23:44]MH_SAM_APDU [18:23:44]CAPDU: 80 13 00 00 [18:23:44]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [18:23:44]Write i2c OK [18:23:44]MH_I2C_Read... [18:23:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:45]Read from MH i2c: E2 [18:23:45]MH_I2C_Read... [18:23:45]Read from MH i2c: E2 62 00 [18:23:45]MH_I2C_Read... [18:23:45]Read from MH i2c: E2 62 00 46 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 06 DB 02 00 0E 04 04 00 87 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 C5 [18:23:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DB 02 00 0E 04 04 00 87 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 [18:23:45]wFMCommunicate OK [18:23:45]SAM_PROTO_GetFieldsCounters done [18:23:45]requested_item shift.num is exist - process it [18:23:45]requested_item shift.opened is exist - process it [18:23:45]req_shift_opened [18:23:45]FM_GetShiftState [18:23:45]SAM_PROTO_GetShiftState [18:23:45]wFMCommunicate request_size=4 [18:23:45]MH_SAM_APDU [18:23:45]CAPDU: 80 13 01 00 [18:23:45]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [18:23:45]Write i2c OK [18:23:45]MH_I2C_Read... [18:23:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:45]Read from MH i2c: E2 [18:23:45]MH_I2C_Read... [18:23:45]Read from MH i2c: E2 0E 00 [18:23:45]MH_I2C_Read... [18:23:45]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 44 [18:23:45]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:23:45]wFMCommunicate OK [18:23:45]SAM_PROTO_GetShiftState done [18:23:45]FM_GetShiftState done [18:23:45]req_shift_opened done [18:23:45]requested_item shift.open_date is exist - process it [18:23:45]req_shift_open_date [18:23:45]req_shift_open_date done [18:23:45]produce_requested_data done [18:23:45]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187142,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [18:23:45]process_action_free close_receipt [18:23:45]json_value_free [18:23:45]json_value_free done [18:23:45]process_json_proto returns [18:23:45]Send response to host [18:23:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187142,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [18:23:45]free response buf [18:23:45]execute_script done [18:23:45]execute_script returns [18:23:45]free content buf [18:23:45]Sock 7.Close socket [18:23:45]Sock 7.Thread stoped [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:21]accept exits with 9 [18:24:21]New connection [18:24:21]New thread 3066654052 created [18:24:21]Thread 3066510692 joined [18:24:21]Waiting for new connection... [18:24:21] Sock 9.Parse request [18:24:21]Sock 9.Check first char [18:24:21]Sock 9.First char is OK [18:24:21]request: POST /json_proto HTTP/1.0 [18:24:21]Method: POST [18:24:21]URL: /json_proto [18:24:21]Method is POST - this is cgi request [18:24:21]url: /json_proto [18:24:21]query_string will be loaded in cgi processing [18:24:21]execute_cgi json_proto POST (null) [18:24:21]execute_cgi path=json_proto method=POST [18:24:21]POST find Content-Length [18:24:21]Host: 172.17.46.131:8080 [18:24:21]Content-Length: 754 [18:24:21]Content-Type: application/json [18:24:21] [18:24:21]POST finish read [18:24:21]Found Content-Length = 754 [18:24:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412297", "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" : 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\u000A30144416", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:21]execute_script... [18:24: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)412297", "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" : 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\u000A30144416", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:21]POST & json_proto [18:24:21]process_json_proto [18:24:21]json parsed OK: [18:24:21]protocol is kg_v1.0 [18:24:21]action value=close_receipt [18:24:21]process_action close_receipt [18:24:21]cmd_close_receipt [18:24:21]MH_GetDate [18:24:21]Write to MH i2c: F0 00 00 48 01 38 [18:24:21]Write i2c OK [18:24:21]MH_I2C_Read... [18:24:21]Read from MH i2c: F0 [18:24:21]MH_I2C_Read... [18:24:21]Read from MH i2c: F0 09 00 [18:24:21]MH_I2C_Read... [18:24:21]Read from MH i2c: F0 09 00 48 01 00 D5 21 B6 67 7E 41 4F 65 C7 [18:24:21]GetLastDocTimeStamp 1739989421 [18:24:21]current date 1739989461 [18:24:21]FM_GetShiftState [18:24:21]SAM_PROTO_GetShiftState [18:24:21]wFMCommunicate request_size=4 [18:24:21]MH_SAM_APDU [18:24:21]CAPDU: 80 13 01 00 [18:24:21]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [18:24:21]Write i2c OK [18:24:21]MH_I2C_Read... [18:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:21]Read from MH i2c: E2 [18:24:21]MH_I2C_Read... [18:24:21]Read from MH i2c: E2 0E 00 [18:24:21]MH_I2C_Read... [18:24:21]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 46 [18:24:21]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:24:21]wFMCommunicate OK [18:24:21]SAM_PROTO_GetShiftState done [18:24:21]FM_GetShiftState done [18:24:21]opened in 1739929631 [18:24:21]opened+sec_in_day 1740016031 [18:24:21]quantity*price = 0 [18:24:21]sum+1 = 1 [18:24:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 209 19.02.2025 18:24 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30144416 ФМ: 0000000000871826 ФД: 187143 ФПД: 279178447999577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T182421&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187143&fm=279178447999577&tin=02508201610067®Number=0000000000091857&sum=0 [18:24:22]StoreToDocumentArchive [18:24:22]shift 647 fd 187143 [18:24:22]save to /storage/0647/doc_00187143 [18:24:22]save last doc name /storage/0647/doc_00187143 to /storage/kkm_last_doc_name [18:24:22]save OK [18:24:22]Clear old archive folders... [18:24:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:24:22]tlvbuf is 01F54480 [18:24:22]SAM_PROTO_ClearQueue [18:24:22]wFMCommunicate request_size=4 [18:24:22]MH_SAM_APDU [18:24:22]CAPDU: 80 09 00 00 [18:24:22]Write to MH i2c: E2 08 00 56 01 80 09 00 00 00 00 00 00 C9 [18:24:22]Write i2c OK [18:24:22]MH_I2C_Read... [18:24:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:22]Read from MH i2c: E2 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: E2 03 00 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [18:24:22]RAPDU: 90 00 [18:24:22]wFMCommunicate OK [18:24:22]SAM_PROTO_ClearQueue done [18:24:22]KKMCreateOFDPacket [18:24:22]OFDProtocolAddRootSTLVToBuf [18:24:22]FM_MakeSignedData [18:24:22]FM_MakeSignedData [18:24:22]SAM_PROTO_SignData [18:24:22]wFMCommunicate request_size=4 [18:24:22]MH_SAM_APDU [18:24:22]CAPDU: 80 0D 01 02 [18:24:22]Write to MH i2c: E2 08 00 57 01 80 0D 01 02 00 00 00 00 D1 [18:24:22]Write i2c OK [18:24:22]MH_I2C_Read... [18:24:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:22]Read from MH i2c: E2 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: E2 03 00 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [18:24:22]RAPDU: 90 00 [18:24:22]wFMCommunicate OK [18:24:22]wFMCommunicate request_size=255 [18:24:22]MH_SAM_APDU [18:24:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 D5 21 B6 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 07 DB 02 00 35 04 06 00 FD [18:24:22]Write to MH i2c: E2 02 01 58 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 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 D1 00 00 00 F4 03 04 00 D5 21 B6 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 07 DB 02 00 35 04 06 00 FD 00 00 A0 [18:24:22]Write i2c OK [18:24:22]MH_I2C_Read... [18:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:22]Read from MH i2c: E2 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: E2 03 00 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [18:24:22]RAPDU: 90 00 [18:24:22]wFMCommunicate OK [18:24:22]wFMCommunicate request_size=10 [18:24:22]MH_SAM_APDU [18:24:22]CAPDU: 80 0D 02 02 05 E9 4C 38 D2 59 [18:24:22]Write to MH i2c: E2 0D 00 59 01 80 0D 02 02 05 00 E9 4C 38 D2 59 00 00 76 [18:24:22]Write i2c OK [18:24:22]MH_I2C_Read... [18:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:22]Read from MH i2c: E2 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: E2 03 00 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [18:24:22]RAPDU: 90 00 [18:24:22]wFMCommunicate OK [18:24:22]wFMCommunicate request_size=4 [18:24:22]MH_SAM_APDU [18:24:22]CAPDU: 80 0D 03 02 [18:24:22]Write to MH i2c: E2 08 00 5A 01 80 0D 03 02 00 00 00 00 D6 [18:24:22]Write i2c OK [18:24:22]MH_I2C_Read... [18:24:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:22]Read from MH i2c: E2 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: E2 0B 00 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: E2 0B 00 5A 01 00 CB 09 E7 8E 16 A8 C6 1D 90 00 C1 [18:24:22]RAPDU: CB 09 E7 8E 16 A8 C6 1D 90 00 [18:24:22]wFMCommunicate OK [18:24:22]SAM_PROTO_SignData done [18:24:22]FM_MakeSignedData done [18:24:22]CreateOFDProtocolMessage [18:24:22]wFMCommunicate request_size=4 [18:24:22]MH_SAM_APDU [18:24:22]CAPDU: 80 11 00 00 [18:24:22]Write to MH i2c: E2 08 00 5B 01 80 11 00 00 00 00 00 00 D6 [18:24:22]Write i2c OK [18:24:22]MH_I2C_Read... [18:24:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:22]Read from MH i2c: E2 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: E2 17 00 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: E2 17 00 5B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 29 [18: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 [18:24:22]wFMCommunicate OK [18:24:22]CreateOFDProtocolMessage done [18:24:22]OFDSenderStorePacket 187143 [18:24:22]StoreOFDPacket docnum=187143 [18:24: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 0F 01 00 00 F9 57 07 01 19 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 D5 21 B6 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 07 DB 02 00 35 04 06 00 FD E9 4C 38 D2 59 CB 09 E7 8E 16 A8 C6 1D [18:24:22]CheckFolder [18:24:22]dirname=/storage/ofd_packets [18:24:22]CheckFolder done [18:24:22]ProducePacketName [18:24:22]name=ofd_packets/00187143 [18:24:22]NVStorageSaveData ofd_packets/00187143 [18:24:22]File name is /storage/ofd_packets/00187143 [18:24:22]Write 301 bytes [18:24:22]NVStorageSaveData done [18:24:22]OFDSenderStorePacket done [18:24:22]KKMCreateOFDPacket done [18:24:22]NVStorageSaveData kkm_last_timestamp [18:24:22]File name is /storage/kkm_last_timestamp [18:24:22]Write 4 bytes [18:24:22]NVStorageSaveData done [18:24:22]ExternCall_PrintAddStr [18:24:22]wPrintStart [18:24:22]Write to MH i2c: 01 00 00 5C 01 5D [18:24:22]Write i2c OK [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: 01 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: 01 07 00 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [18:24:22]RasterBufferAndPrint [18:24:22]line Счет N : (1)412297 [18:24:22]line ИНН: 02508201610067 [18:24:22]line Контрольно-Кассовый Чек [18:24:22]line ПРОДАЖА [18:24:22]line ТРК (МРК, ГНК) : 33 [18:24:22]line Товар: 2710124500 [18:24:22]line Аи-95-К-5 [18:24:22]line 20.000 * 0.00 [18:24:22]line = 0.00 [18:24:22]line НДС 12% НСП 1% [18:24:22]line > о реализуемом товаре [18:24:22]line ИТОГО: 0.00 [18:24:22]line НСП 1% : 0.00 [18:24:22]line НДС 12% : 0.00 [18:24:22]line Наличными: 0.00 [18:24:22]line Безнал.: 0.00 [18:24:22]line Место: АЗС № 92 "Партнер Нефть" [18:24:22]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:24:22]line СНО: Общий режим [18:24:22]line Чек 209 19.02.2025 18:24 [18:24:22]line Смена: 647 ФФД: 1.0 [18:24:22]line ЗНМ: 0300000118 [18:24:22]line РНМ: 0000000000091857 [18:24:22]line Версия ККМ: 001 [18:24:22]line Талоны: ТК ГПНА Online [18:24:22]line 30144416 [18:24:22]line ФМ: 0000000000871826 [18:24:22]line ФД: 187143 [18:24:22]line ФПД: 279178447999577 [18:24:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T182421&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187143&fm=279178447999577&tin=02508201610067®Number=0000000000091857&sum=0 [18:24:23]OFD Sender: Processing packet 187143 [packets to send 49, broken 48] [18:24:23]ProducePacketName [18:24:23]name=ofd_packets/00187143 [18:24:23]OFD Sender: To server: pG, [18:24:23]CommunicateWithHost lk.salyk.kg:30040 [18:24:23]ConnectInit lk.salyk.kg [18:24:23]written 0, free lines is 4095 [18:24:23]Connected sock=10 [18:24: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 F9 57 07 01 19 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 D5 21 B6 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 07 DB 02 00 35 04 06 00 FD E9 4C 38 D2 59 CB 09 E7 8E 16 A8 C6 1D [18:24: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 1D F1 47 00 1C 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 07 DB 02 00 F4 03 04 00 28 C8 B5 67 B6 04 01 00 00 F1 AA 05 D7 FE F2 D3 64 [18:24:23]CommunicateWithHost err = 0 [18:24:23]CheckOFDResponse [18:24:23]1017 (14) - 77093643461234 [18:24:23]1041 (16) - 0000000000871826 [18:24:23]1040 (4) - 187143 [18:24:23]1012 (4) - 19.02.2025 12:01 [18:24:23]1206 (1) - 0 [18:24:23]OFD Sender: Remove packet 187143 [18:24:23]ProducePacketName [18:24:23]name=ofd_packets/00187143 [18:24:23]NVStorageDeleteData [18:24:23]Write to MH i2c: 01 00 00 86 01 87 [18:24:23]Write i2c OK [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: 01 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: 01 07 00 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: 01 07 00 86 01 00 00 00 00 00 FC 0C 96 [18:24:23]RasterBufferAndPrint [18:24:23]line [18:24:23]line [18:24:23]line [18:24:23]line [18:24:23]line [18:24:23]written 0, free lines is 3330 [18:24:23]MH_Cut [18:24:23]Write to MH i2c: D1 01 00 8D 01 01 60 [18:24:23]Write i2c OK [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: D1 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: D1 01 00 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: D1 01 00 8D 01 00 5F [18:24:23]Write to MH i2c: 01 00 00 8E 01 8F [18:24:23]Write i2c OK [18:24:23]MH_I2C_Read... [18:24:24]OFD Sender: No OFD packet to send [18:24:24]*** Cut start [18:24:24]*** Partial cut [18:24:24]*** CUTSNS_PIN = 1 [18:24:24]*** CUTSNS_PIN = 0 [18:24:24]*** Brake cut motor [18:24:24]Read from MH i2c: 01 [18:24:25]MH_I2C_Read... [18:24:25]*** Stop cut motor [18:24:25]*** Cut end [18:24:25]Read from MH i2c: 01 07 00 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [18:24:25]process_action close_receipt done [18:24:25]requested_data is exist [18:24:25]produce_requested_data [18:24:25]requested_item fm.sn is exist - process it [18:24:25]wFMCommunicate request_size=4 [18:24:25]MH_SAM_APDU [18:24:25]CAPDU: 80 11 00 00 [18:24:25]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [18:24:25]Write i2c OK [18:24:25]MH_I2C_Read... [18:24:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:25]Read from MH i2c: E2 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: E2 17 00 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5D [18:24:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:24:25]wFMCommunicate OK [18:24:25]requested_item fd.num is exist - process it [18:24:25]SAM_PROTO_GetFieldsCounters [18:24:25]wFMCommunicate request_size=4 [18:24:25]MH_SAM_APDU [18:24:25]CAPDU: 80 13 00 00 [18:24:25]Write to MH i2c: E2 08 00 90 01 80 13 00 00 00 00 00 00 0D [18:24:25]Write i2c OK [18:24:25]MH_I2C_Read... [18:24:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:25]Read from MH i2c: E2 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: E2 62 00 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: E2 62 00 90 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 07 DB 02 00 0E 04 04 00 87 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 13 [18:24: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 07 DB 02 00 0E 04 04 00 87 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 [18:24:25]wFMCommunicate OK [18:24:25]SAM_PROTO_GetFieldsCounters done [18:24:25]requested_item shift.num is exist - process it [18:24:25]requested_item shift.opened is exist - process it [18:24:25]req_shift_opened [18:24:25]FM_GetShiftState [18:24:25]SAM_PROTO_GetShiftState [18:24:25]wFMCommunicate request_size=4 [18:24:25]MH_SAM_APDU [18:24:25]CAPDU: 80 13 01 00 [18:24:25]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [18:24:25]Write i2c OK [18:24:25]MH_I2C_Read... [18:24:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:25]Read from MH i2c: E2 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: E2 0E 00 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 8E [18:24:25]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:24:25]wFMCommunicate OK [18:24:25]SAM_PROTO_GetShiftState done [18:24:25]FM_GetShiftState done [18:24:25]req_shift_opened done [18:24:25]requested_item shift.open_date is exist - process it [18:24:25]req_shift_open_date [18:24:25]req_shift_open_date done [18:24:25]produce_requested_data done [18:24:25]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187143,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [18:24:25]process_action_free close_receipt [18:24:25]json_value_free [18:24:25]json_value_free done [18:24:25]process_json_proto returns [18:24:25]Send response to host [18:24:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187143,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [18:24:25]free response buf [18:24:25]execute_script done [18:24:25]execute_script returns [18:24:25]free content buf [18:24:25]Sock 9.Close socket [18:24:25]Sock 9.Thread stoped [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:59]OFD Sender: No OFD packet to send [18:26:04]OFD Sender: No OFD packet to send [18:26:09]OFD Sender: No OFD packet to send [18:26:14]OFD Sender: No OFD packet to send [18:26:19]OFD Sender: No OFD packet to send [18:26:24]OFD Sender: No OFD packet to send [18:26:29]OFD Sender: No OFD packet to send [18:26:34]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:44]OFD Sender: No OFD packet to send [18:26:49]OFD Sender: No OFD packet to send [18:26:54]OFD Sender: No OFD packet to send [18:26:59]OFD Sender: No OFD packet to send [18:27:04]OFD Sender: No OFD packet to send [18:27:09]OFD Sender: No OFD packet to send [18:27:14]OFD Sender: No OFD packet to send [18:27:19]OFD Sender: No OFD packet to send [18:27:24]OFD Sender: No OFD packet to send [18:27:29]OFD Sender: No OFD packet to send [18:27:34]OFD Sender: No OFD packet to send [18:27:39]OFD Sender: No OFD packet to send [18:27:41]accept exits with 7 [18:27:41]New connection [18:27:41]New thread 3066510692 created [18:27:41]Thread 3066654052 joined [18:27:41]Waiting for new connection... [18:27:41] Sock 7.Parse request [18:27:41]Sock 7.Check first char [18:27:41]Sock 7.First char is OK [18:27:41]request: POST /json_proto HTTP/1.0 [18:27:41]Method: POST [18:27:41]URL: /json_proto [18:27:41]Method is POST - this is cgi request [18:27:41]url: /json_proto [18:27:41]query_string will be loaded in cgi processing [18:27:41]execute_cgi json_proto POST (null) [18:27:41]execute_cgi path=json_proto method=POST [18:27:41]POST find Content-Length [18:27:41]Host: 172.17.46.131:8080 [18:27:41]Content-Length: 792 [18:27:41]Content-Type: application/json [18:27:41] [18:27:41]POST finish read [18:27:41]Found Content-Length = 792 [18:27:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412298", "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.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\u000A03524", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:41]execute_script... [18:27: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)412298", "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.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\u000A03524", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:41]POST & json_proto [18:27:41]process_json_proto [18:27:41]json parsed OK: [18:27:41]protocol is kg_v1.0 [18:27:41]action value=close_receipt [18:27:41]process_action close_receipt [18:27:41]cmd_close_receipt [18:27:41]MH_GetDate [18:27:41]Write to MH i2c: F0 00 00 92 01 82 [18:27:41]Write i2c OK [18:27:41]MH_I2C_Read... [18:27:41]Read from MH i2c: F0 [18:27:41]MH_I2C_Read... [18:27:41]Read from MH i2c: F0 09 00 [18:27:41]MH_I2C_Read... [18:27:41]Read from MH i2c: F0 09 00 92 01 00 9D 22 B6 67 7E 41 4F 65 DA [18:27:41]GetLastDocTimeStamp 1739989461 [18:27:41]current date 1739989661 [18:27:41]FM_GetShiftState [18:27:41]SAM_PROTO_GetShiftState [18:27:41]wFMCommunicate request_size=4 [18:27:41]MH_SAM_APDU [18:27:41]CAPDU: 80 13 01 00 [18:27:41]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [18:27:41]Write i2c OK [18:27:41]MH_I2C_Read... [18:27:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:41]Read from MH i2c: E2 [18:27:41]MH_I2C_Read... [18:27:41]Read from MH i2c: E2 0E 00 [18:27:41]MH_I2C_Read... [18:27:41]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 90 [18:27:41]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:27:41]wFMCommunicate OK [18:27:41]SAM_PROTO_GetShiftState done [18:27:41]FM_GetShiftState done [18:27:41]opened in 1739929631 [18:27:41]opened+sec_in_day 1740016031 [18:27:41]quantity*price = 0 [18:27:41]sum+1 = 1 [18:27:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 210 19.02.2025 18:27 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 03524 ФМ: 0000000000871826 ФД: 187144 ФПД: 122965393322792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T182741&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187144&fm=122965393322792&tin=02508201610067®Number=0000000000091857&sum=0 [18:27:42]StoreToDocumentArchive [18:27:42]shift 647 fd 187144 [18:27:42]save to /storage/0647/doc_00187144 [18:27:42]save last doc name /storage/0647/doc_00187144 to /storage/kkm_last_doc_name [18:27:42]save OK [18:27:42]Clear old archive folders... [18:27:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:42]tlvbuf is 01F529E0 [18:27:42]SAM_PROTO_ClearQueue [18:27:42]wFMCommunicate request_size=4 [18:27:42]MH_SAM_APDU [18:27:42]CAPDU: 80 09 00 00 [18:27:42]Write to MH i2c: E2 08 00 A0 01 80 09 00 00 00 00 00 00 13 [18:27:42]Write i2c OK [18:27:42]MH_I2C_Read... [18:27:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:42]Read from MH i2c: E2 [18:27:42]MH_I2C_Read... [18:27:42]Read from MH i2c: E2 03 00 [18:27:42]MH_I2C_Read... [18:27:42]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [18:27:42]RAPDU: 90 00 [18:27:42]wFMCommunicate OK [18:27:42]SAM_PROTO_ClearQueue done [18:27:42]KKMCreateOFDPacket [18:27:42]OFDProtocolAddRootSTLVToBuf [18:27:42]FM_MakeSignedData [18:27:42]FM_MakeSignedData [18:27:42]SAM_PROTO_SignData [18:27:42]wFMCommunicate request_size=4 [18:27:42]MH_SAM_APDU [18:27:42]CAPDU: 80 0D 01 02 [18:27:42]Write to MH i2c: E2 08 00 A1 01 80 0D 01 02 00 00 00 00 1B [18:27:42]Write i2c OK [18:27:42]MH_I2C_Read... [18:27:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:42]Read from MH i2c: E2 [18:27:42]MH_I2C_Read... [18:27:42]Read from MH i2c: E2 03 00 [18:27:42]MH_I2C_Read... [18:27:42]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [18:27:42]RAPDU: 90 00 [18:27:42]wFMCommunicate OK [18:27:42]wFMCommunicate request_size=255 [18:27:42]MH_SAM_APDU [18:27: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 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 D2 00 00 00 F4 03 04 00 9D 22 B6 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 08 DB 02 00 35 04 06 00 6F [18:27:42]Write to MH i2c: E2 02 01 A2 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 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 D2 00 00 00 F4 03 04 00 9D 22 B6 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 08 DB 02 00 35 04 06 00 6F 00 00 E9 [18:27:42]Write i2c OK [18:27:42]MH_I2C_Read... [18:27:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:42]Read from MH i2c: E2 [18:27:42]MH_I2C_Read... [18:27:42]Read from MH i2c: E2 03 00 [18:27:42]MH_I2C_Read... [18:27:42]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [18:27:42]RAPDU: 90 00 [18:27:42]wFMCommunicate OK [18:27:42]wFMCommunicate request_size=10 [18:27:42]MH_SAM_APDU [18:27:42]CAPDU: 80 0D 02 02 05 D6 1C 96 B3 28 [18:27:42]Write to MH i2c: E2 0D 00 A3 01 80 0D 02 02 05 00 D6 1C 96 B3 28 00 00 8B [18:27:42]Write i2c OK [18:27:42]MH_I2C_Read... [18:27:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:42]Read from MH i2c: E2 [18:27:42]MH_I2C_Read... [18:27:42]Read from MH i2c: E2 03 00 [18:27:42]MH_I2C_Read... [18:27:42]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [18:27:42]RAPDU: 90 00 [18:27:42]wFMCommunicate OK [18:27:42]wFMCommunicate request_size=4 [18:27:42]MH_SAM_APDU [18:27:42]CAPDU: 80 0D 03 02 [18:27:42]Write to MH i2c: E2 08 00 A4 01 80 0D 03 02 00 00 00 00 20 [18:27:42]Write i2c OK [18:27:42]MH_I2C_Read... [18:27:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:42]Read from MH i2c: E2 [18:27:42]MH_I2C_Read... [18:27:42]Read from MH i2c: E2 0B 00 [18:27:42]MH_I2C_Read... [18:27:42]Read from MH i2c: E2 0B 00 A4 01 00 13 8F 43 B9 49 A2 26 E1 90 00 B1 [18:27:42]RAPDU: 13 8F 43 B9 49 A2 26 E1 90 00 [18:27:42]wFMCommunicate OK [18:27:42]SAM_PROTO_SignData done [18:27:42]FM_MakeSignedData done [18:27:42]CreateOFDProtocolMessage [18:27:42]wFMCommunicate request_size=4 [18:27:42]MH_SAM_APDU [18:27:42]CAPDU: 80 11 00 00 [18:27:42]Write to MH i2c: E2 08 00 A5 01 80 11 00 00 00 00 00 00 20 [18:27:42]Write i2c OK [18:27:42]MH_I2C_Read... [18:27:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:42]Read from MH i2c: E2 [18:27:42]MH_I2C_Read... [18:27:42]Read from MH i2c: E2 17 00 [18:27:42]MH_I2C_Read... [18:27:42]Read from MH i2c: E2 17 00 A5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 73 [18:27:42]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:42]wFMCommunicate OK [18:27:42]CreateOFDProtocolMessage done [18:27:42]OFDSenderStorePacket 187144 [18:27:42]StoreOFDPacket docnum=187144 [18:27: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 86 47 07 01 DE 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 D2 00 00 00 F4 03 04 00 9D 22 B6 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 08 DB 02 00 35 04 06 00 6F D6 1C 96 B3 28 13 8F 43 B9 49 A2 26 E1 [18:27:42]CheckFolder [18:27:42]dirname=/storage/ofd_packets [18:27:42]CheckFolder done [18:27:42]ProducePacketName [18:27:42]name=ofd_packets/00187144 [18:27:42]NVStorageSaveData ofd_packets/00187144 [18:27:42]File name is /storage/ofd_packets/00187144 [18:27:42]Write 301 bytes [18:27:42]NVStorageSaveData done [18:27:42]OFDSenderStorePacket done [18:27:42]KKMCreateOFDPacket done [18:27:42]NVStorageSaveData kkm_last_timestamp [18:27:42]File name is /storage/kkm_last_timestamp [18:27:42]Write 4 bytes [18:27:42]NVStorageSaveData done [18:27:42]ExternCall_PrintAddStr [18:27:42]wPrintStart [18:27:42]Write to MH i2c: 01 00 00 A6 01 A7 [18:27:42]Write i2c OK [18:27:42]MH_I2C_Read... [18:27:42]Read from MH i2c: 01 [18:27:42]MH_I2C_Read... [18:27:42]Read from MH i2c: 01 07 00 [18:27:42]MH_I2C_Read... [18:27:42]Read from MH i2c: 01 07 00 A6 01 00 00 00 00 00 FF 0F BC [18:27:42]RasterBufferAndPrint [18:27:42]line Счет N : (1)412298 [18:27:42]line ИНН: 02508201610067 [18:27:42]line Контрольно-Кассовый Чек [18:27:42]line ПРОДАЖА [18:27:42]line ТРК (МРК, ГНК) : 42 [18:27:42]line Товар: 2710124130 [18:27:42]line Аи-92-К-2 [18:27:42]line 10.000 * 0.00 [18:27:42]line = 0.00 [18:27:42]line НДС 12% НСП 1% [18:27:42]line > о реализуемом товаре [18:27:42]line ИТОГО: 0.00 [18:27:42]line НСП 1% : 0.00 [18:27:42]line НДС 12% : 0.00 [18:27:42]line Наличными: 0.00 [18:27:42]line Безнал.: 0.00 [18:27:42]line Место: АЗС № 92 "Партнер Нефть" [18:27:42]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:27:42]line СНО: Общий режим [18:27:42]line Чек 210 19.02.2025 18:27 [18:27:42]line Смена: 647 ФФД: 1.0 [18:27:42]line ЗНМ: 0300000118 [18:27:42]line РНМ: 0000000000091857 [18:27:42]line Версия ККМ: 001 [18:27:42]line Талоны: Топливная Карта [18:27:42]line 03524 [18:27:42]line ФМ: 0000000000871826 [18:27:42]line ФД: 187144 [18:27:42]line ФПД: 122965393322792 [18:27:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T182741&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187144&fm=122965393322792&tin=02508201610067®Number=0000000000091857&sum=0 [18:27:43]OFD Sender: Processing packet 187144 [packets to send 49, broken 48] [18:27:43]ProducePacketName [18:27:43]name=ofd_packets/00187144 [18:27:43]OFD Sender: To server: pG, [18:27:43]CommunicateWithHost lk.salyk.kg:30040 [18:27:43]ConnectInit lk.salyk.kg [18:27:43]written 0, free lines is 4095 [18:27:43]Connected sock=10 [18:27: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 86 47 07 01 DE 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 D2 00 00 00 F4 03 04 00 9D 22 B6 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 08 DB 02 00 35 04 06 00 6F D6 1C 96 B3 28 13 8F 43 B9 49 A2 26 E1 [18:27: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 C0 0E 47 00 34 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 08 DB 02 00 F4 03 04 00 F0 C8 B5 67 B6 04 01 00 00 F0 C1 CA 35 4A 63 1D FF [18:27:43]CommunicateWithHost err = 0 [18:27:43]CheckOFDResponse [18:27:43]1017 (14) - 77093643461234 [18:27:43]1041 (16) - 0000000000871826 [18:27:43]1040 (4) - 187144 [18:27:43]1012 (4) - 19.02.2025 12:05 [18:27:43]1206 (1) - 0 [18:27:43]OFD Sender: Remove packet 187144 [18:27:43]ProducePacketName [18:27:43]name=ofd_packets/00187144 [18:27:43]NVStorageDeleteData [18:27:43]Write to MH i2c: 01 00 00 D0 01 D1 [18:27:43]Write i2c OK [18:27:43]MH_I2C_Read... [18:27:43]Read from MH i2c: 01 [18:27:43]MH_I2C_Read... [18:27:43]Read from MH i2c: 01 07 00 [18:27:43]MH_I2C_Read... [18:27:43]Read from MH i2c: 01 07 00 D0 01 00 00 00 00 00 0A 0D EF [18:27:43]RasterBufferAndPrint [18:27:43]line [18:27:43]line [18:27:43]line [18:27:43]line [18:27:43]line [18:27:43]written 0, free lines is 3344 [18:27:43]MH_Cut [18:27:43]Write to MH i2c: D1 01 00 D7 01 01 AA [18:27:43]Write i2c OK [18:27:43]MH_I2C_Read... [18:27:43]Read from MH i2c: D1 [18:27:43]MH_I2C_Read... [18:27:43]Read from MH i2c: D1 01 00 [18:27:43]MH_I2C_Read... [18:27:43]Read from MH i2c: D1 01 00 D7 01 00 A9 [18:27:43]Write to MH i2c: 01 00 00 D8 01 D9 [18:27:43]Write i2c OK [18:27:43]MH_I2C_Read... [18:27:44]OFD Sender: No OFD packet to send [18:27:44]*** Cut start [18:27:44]*** Partial cut [18:27:44]*** CUTSNS_PIN = 1 [18:27:44]*** CUTSNS_PIN = 0 [18:27:44]*** Brake cut motor [18:27:44]Read from MH i2c: 01 [18:27:44]MH_I2C_Read... [18:27:44]*** Stop cut motor [18:27:44]Read from MH i2c: 01 *** Cut end [18:27:44]07 00 [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 FF 0F EE [18:27:44]process_action close_receipt done [18:27:44]requested_data is exist [18:27:44]produce_requested_data [18:27:44]requested_item fm.sn is exist - process it [18:27:44]wFMCommunicate request_size=4 [18:27:44]MH_SAM_APDU [18:27:44]CAPDU: 80 11 00 00 [18:27:44]Write to MH i2c: E2 08 00 D9 01 80 11 00 00 00 00 00 00 54 [18:27:44]Write i2c OK [18:27:44]MH_I2C_Read... [18:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:44]Read from MH i2c: E2 [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: E2 17 00 [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: E2 17 00 D9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A7 [18: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 [18:27:44]wFMCommunicate OK [18:27:44]requested_item fd.num is exist - process it [18:27:44]SAM_PROTO_GetFieldsCounters [18:27:44]wFMCommunicate request_size=4 [18:27:44]MH_SAM_APDU [18:27:44]CAPDU: 80 13 00 00 [18:27:44]Write to MH i2c: E2 08 00 DA 01 80 13 00 00 00 00 00 00 57 [18:27:44]Write i2c OK [18:27:44]MH_I2C_Read... [18:27:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:45]Read from MH i2c: E2 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: E2 62 00 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: E2 62 00 DA 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 08 DB 02 00 0E 04 04 00 87 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 61 [18:27: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 08 DB 02 00 0E 04 04 00 87 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 [18:27:45]wFMCommunicate OK [18:27:45]SAM_PROTO_GetFieldsCounters done [18:27:45]requested_item shift.num is exist - process it [18:27:45]requested_item shift.opened is exist - process it [18:27:45]req_shift_opened [18:27:45]FM_GetShiftState [18:27:45]SAM_PROTO_GetShiftState [18:27:45]wFMCommunicate request_size=4 [18:27:45]MH_SAM_APDU [18:27:45]CAPDU: 80 13 01 00 [18:27:45]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [18:27:45]Write i2c OK [18:27:45]MH_I2C_Read... [18:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:45]Read from MH i2c: E2 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: E2 0E 00 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D8 [18:27:45]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:27:45]wFMCommunicate OK [18:27:45]SAM_PROTO_GetShiftState done [18:27:45]FM_GetShiftState done [18:27:45]req_shift_opened done [18:27:45]requested_item shift.open_date is exist - process it [18:27:45]req_shift_open_date [18:27:45]req_shift_open_date done [18:27:45]produce_requested_data done [18:27:45]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187144,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [18:27:45]process_action_free close_receipt [18:27:45]json_value_free [18:27:45]json_value_free done [18:27:45]process_json_proto returns [18:27:45]Send response to host [18:27:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187144,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [18:27:45]free response buf [18:27:45]execute_script done [18:27:45]execute_script returns [18:27:45]free content buf [18:27:45]Sock 7.Close socket [18:27:45]Sock 7.Thread stoped [18:27:49]OFD Sender: No OFD packet to send [18:27:54]OFD Sender: No OFD packet to send [18:27:59]OFD Sender: No OFD packet to send [18:28:04]OFD Sender: No OFD packet to send [18:28:09]OFD Sender: No OFD packet to send [18:28:14]OFD Sender: No OFD packet to send [18:28:19]OFD Sender: No OFD packet to send [18:28:24]OFD Sender: No OFD packet to send [18:28:29]OFD Sender: No OFD packet to send [18:28:34]OFD Sender: No OFD packet to send [18:28:39]OFD Sender: No OFD packet to send [18:28:44]OFD Sender: No OFD packet to send [18:28:45]accept exits with 9 [18:28:45]New connection [18:28:45]New thread 3066654052 created [18:28:45]Thread 3066510692 joined [18:28:45]Waiting for new connection... [18:28:45] Sock 9.Parse request [18:28:45]Sock 9.Check first char [18:28:45]Sock 9.First char is OK [18:28:45]request: POST /json_proto HTTP/1.0 [18:28:45]Method: POST [18:28:45]URL: /json_proto [18:28:45]Method is POST - this is cgi request [18:28:45]url: /json_proto [18:28:45]query_string will be loaded in cgi processing [18:28:45]execute_cgi json_proto POST (null) [18:28:45]execute_cgi path=json_proto method=POST [18:28:45]POST find Content-Length [18:28:45]Host: 172.17.46.131:8080 [18:28:45]Content-Length: 678 [18:28:45]Content-Type: application/json [18:28:45] [18:28:45]POST finish read [18:28:45]Found Content-Length = 678 [18:28:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412299", "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" ] } } [18:28:45]execute_script... [18:28: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)412299", "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" ] } } [18:28:45]POST & json_proto [18:28:45]process_json_proto [18:28:45]json parsed OK: [18:28:45]protocol is kg_v1.0 [18:28:45]action value=close_receipt [18:28:45]process_action close_receipt [18:28:45]cmd_close_receipt [18:28:45]MH_GetDate [18:28:45]Write to MH i2c: F0 00 00 DC 01 CC [18:28:45]Write i2c OK [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: F0 [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: F0 09 00 [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: F0 09 00 DC 01 00 DD 22 B6 67 7E 41 4F 65 64 [18:28:45]GetLastDocTimeStamp 1739989661 [18:28:45]current date 1739989725 [18:28:45]FM_GetShiftState [18:28:45]SAM_PROTO_GetShiftState [18:28:45]wFMCommunicate request_size=4 [18:28:45]MH_SAM_APDU [18:28:45]CAPDU: 80 13 01 00 [18:28:45]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [18:28:45]Write i2c OK [18:28:45]MH_I2C_Read... [18:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:45]Read from MH i2c: E2 [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: E2 0E 00 [18:28:45]MH_I2C_Read... [18:28:45]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 DA [18:28:45]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:28:45]wFMCommunicate OK [18:28:45]SAM_PROTO_GetShiftState done [18:28:45]FM_GetShiftState done [18:28:45]opened in 1739929631 [18:28:45]opened+sec_in_day 1740016031 [18:28:45]quantity*price = 70042 [18:28:45]sum+1 = 70043 [18:28:45]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 19.02.2025 18:28 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187145 ФПД: 117956099008608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T182845&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187145&fm=117956099008608&tin=02508201610067®Number=0000000000091857&sum=70000 [18:28:46]StoreToDocumentArchive [18:28:46]shift 647 fd 187145 [18:28:46]save to /storage/0647/doc_00187145 [18:28:46]save last doc name /storage/0647/doc_00187145 to /storage/kkm_last_doc_name [18:28:46]save OK [18:28:46]Clear old archive folders... [18:28:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:28:46]tlvbuf is 01F3C840 [18:28:46]SAM_PROTO_ClearQueue [18:28:46]wFMCommunicate request_size=4 [18:28:46]MH_SAM_APDU [18:28:46]CAPDU: 80 09 00 00 [18:28:46]Write to MH i2c: E2 08 00 EA 01 80 09 00 00 00 00 00 00 5D [18:28:46]Write i2c OK [18:28:46]MH_I2C_Read... [18:28:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:46]Read from MH i2c: E2 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 03 00 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [18:28:46]RAPDU: 90 00 [18:28:46]wFMCommunicate OK [18:28:46]SAM_PROTO_ClearQueue done [18:28:46]KKMCreateOFDPacket [18:28:46]OFDProtocolAddRootSTLVToBuf [18:28:46]FM_MakeSignedData [18:28:46]FM_MakeSignedData [18:28:46]SAM_PROTO_SignData [18:28:46]wFMCommunicate request_size=4 [18:28:46]MH_SAM_APDU [18:28:46]CAPDU: 80 0D 01 02 [18:28:46]Write to MH i2c: E2 08 00 EB 01 80 0D 01 02 00 00 00 00 65 [18:28:46]Write i2c OK [18:28:46]MH_I2C_Read... [18:28:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:46]Read from MH i2c: E2 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 03 00 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [18:28:46]RAPDU: 90 00 [18:28:46]wFMCommunicate OK [18:28:46]wFMCommunicate request_size=255 [18:28:46]MH_SAM_APDU [18:28: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 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 DD 22 B6 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 09 DB 02 00 35 04 06 00 6B [18:28:46]Write to MH i2c: E2 02 01 EC 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 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 DD 22 B6 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 09 DB 02 00 35 04 06 00 6B 00 00 78 [18:28:46]Write i2c OK [18:28:46]MH_I2C_Read... [18:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:46]Read from MH i2c: E2 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 03 00 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [18:28:46]RAPDU: 90 00 [18:28:46]wFMCommunicate OK [18:28:46]wFMCommunicate request_size=10 [18:28:46]MH_SAM_APDU [18:28:46]CAPDU: 80 0D 02 02 05 47 CB 61 68 60 [18:28:46]Write to MH i2c: E2 0D 00 ED 01 80 0D 02 02 05 00 47 CB 61 68 60 00 00 AD [18:28:46]Write i2c OK [18:28:46]MH_I2C_Read... [18:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:46]Read from MH i2c: E2 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 03 00 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [18:28:46]RAPDU: 90 00 [18:28:46]wFMCommunicate OK [18:28:46]wFMCommunicate request_size=4 [18:28:46]MH_SAM_APDU [18:28:46]CAPDU: 80 0D 03 02 [18:28:46]Write to MH i2c: E2 08 00 EE 01 80 0D 03 02 00 00 00 00 6A [18:28:46]Write i2c OK [18:28:46]MH_I2C_Read... [18:28:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:46]Read from MH i2c: E2 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 0B 00 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 0B 00 EE 01 00 8B A0 E9 37 E1 28 22 A3 90 00 84 [18:28:46]RAPDU: 8B A0 E9 37 E1 28 22 A3 90 00 [18:28:46]wFMCommunicate OK [18:28:46]SAM_PROTO_SignData done [18:28:46]FM_MakeSignedData done [18:28:46]CreateOFDProtocolMessage [18:28:46]wFMCommunicate request_size=4 [18:28:46]MH_SAM_APDU [18:28:46]CAPDU: 80 11 00 00 [18:28:46]Write to MH i2c: E2 08 00 EF 01 80 11 00 00 00 00 00 00 6A [18:28:46]Write i2c OK [18:28:46]MH_I2C_Read... [18:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:46]Read from MH i2c: E2 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 17 00 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: E2 17 00 EF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BD [18:28:46]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:46]wFMCommunicate OK [18:28:46]CreateOFDProtocolMessage done [18:28:46]OFDSenderStorePacket 187145 [18:28:46]StoreOFDPacket docnum=187145 [18:28: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 FB D2 07 01 AB B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 DD 22 B6 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 09 DB 02 00 35 04 06 00 6B 47 CB 61 68 60 8B A0 E9 37 E1 28 22 A3 [18:28:46]CheckFolder [18:28:46]dirname=/storage/ofd_packets [18:28:46]CheckFolder done [18:28:46]ProducePacketName [18:28:46]name=ofd_packets/00187145 [18:28:46]NVStorageSaveData ofd_packets/00187145 [18:28:46]File name is /storage/ofd_packets/00187145 [18:28:46]Write 301 bytes [18:28:46]NVStorageSaveData done [18:28:46]OFDSenderStorePacket done [18:28:46]KKMCreateOFDPacket done [18:28:46]NVStorageSaveData kkm_last_timestamp [18:28:46]File name is /storage/kkm_last_timestamp [18:28:46]Write 4 bytes [18:28:46]NVStorageSaveData done [18:28:46]ExternCall_PrintAddStr [18:28:46]wPrintStart [18:28:46]Write to MH i2c: 01 00 00 F0 01 F1 [18:28:46]Write i2c OK [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: 01 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: 01 07 00 [18:28:46]MH_I2C_Read... [18:28:46]Read from MH i2c: 01 07 00 F0 01 00 00 00 00 00 FF 0F 06 [18:28:46]RasterBufferAndPrint [18:28:46]line Счет N : (1)412299 [18:28:46]line ИНН: 02508201610067 [18:28:46]line Контрольно-Кассовый Чек [18:28:46]line ПРОДАЖА [18:28:46]line ТРК (МРК, ГНК) : 22 [18:28:46]line Товар: 2710124130 [18:28:46]line Аи-92-К-2 [18:28:46]line 10.910 * 64.20 [18:28:46]line = 700.42 [18:28:46]line НДС 12% НСП 1% [18:28:46]line > о реализуемом товаре [18:28:46]line ОКРУГЛЕНИЕ: -0.42 [18:28:46]line ИТОГО: 700.00 [18:28:46]line Внесено: 700.00 [18:28:46]line СДАЧА: 0.00 [18:28:46]line НСП 1% : 6.20 [18:28:46]line НДС 12% : 74.38 [18:28:46]line Наличными: 700.00 [18:28:46]line Безнал.: 0.00 [18:28:46]line Место: АЗС № 92 "Партнер Нефть" [18:28:46]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:28:46]line СНО: Общий режим [18:28:46]line Чек 211 19.02.2025 18:28 [18:28:46]line Смена: 647 ФФД: 1.0 [18:28:46]line ЗНМ: 0300000118 [18:28:46]line РНМ: 0000000000091857 [18:28:46]line Версия ККМ: 001 [18:28:46]line ФМ: 0000000000871826 [18:28:46]line ФД: 187145 [18:28:46]line ФПД: 117956099008608 [18:28:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T182845&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187145&fm=117956099008608&tin=02508201610067®Number=0000000000091857&sum=70000 [18:28:47]OFD Sender: Processing packet 187145 [packets to send 49, broken 48] [18:28:47]ProducePacketName [18:28:47]name=ofd_packets/00187145 [18:28:47]OFD Sender: To server: pG, [18:28:47]CommunicateWithHost lk.salyk.kg:30040 [18:28:47]ConnectInit lk.salyk.kg [18:28:47]written 0, free lines is 4095 [18:28:47]Connected sock=10 [18:28: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 FB D2 07 01 AB B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 DD 22 B6 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 09 DB 02 00 35 04 06 00 6B 47 CB 61 68 60 8B A0 E9 37 E1 28 22 A3 [18:28:47]Write to MH i2c: 01 00 00 1B 02 1D [18:28:47]Write i2c OK [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: 01 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: 01 07 00 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: 01 07 00 1B 02 00 00 00 00 00 F7 0C 27 [18:28:47]RasterBufferAndPrint [18:28:47]line [18:28:47]line [18:28:47]line [18:28:47]line [18:28:47]line [18:28:47]written 0, free lines is 3326 [18:28:47]MH_Cut [18:28:47]Write to MH i2c: D1 01 00 22 02 01 F6 [18:28:47]Write i2c OK [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: D1 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: D1 01 00 [18:28:47]MH_I2C_Read... [18:28:47]Read from MH i2c: D1 01 00 22 02 00 F5 [18:28:47]Write to MH i2c: 01 00 00 23 02 25 [18:28:47]Write i2c OK [18:28:47]MH_I2C_Read... [18:28: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 ED A4 47 00 B2 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 09 DB 02 00 F4 03 04 00 31 C9 B5 67 B6 04 01 00 00 3B F1 1D ED 43 01 66 5B [18:28:47]CommunicateWithHost err = 0 [18:28:47]CheckOFDResponse [18:28:47]1017 (14) - 77093643461234 [18:28:47]1041 (16) - 0000000000871826 [18:28:47]1040 (4) - 187145 [18:28:47]1012 (4) - 19.02.2025 12:06 [18:28:47]1206 (1) - 0 [18:28:47]OFD Sender: Remove packet 187145 [18:28:47]ProducePacketName [18:28:47]name=ofd_packets/00187145 [18:28:47]NVStorageDeleteData [18:28:48]OFD Sender: No OFD packet to send [18:28:48]*** Cut start [18:28:48]*** Partial cut [18:28:48]*** CUTSNS_PIN = 1 [18:28:48]*** CUTSNS_PIN = 0 [18:28:48]*** Brake cut motor [18:28:49]Read from MH i2c: 01 [18:28:49]MH_I2C_Read... [18:28:49]*** Stop cut motor [18:28:49]Read from MH i2c: 01 07 00 [18:28:49]MH_I2C_Read... [18:28:49]*** Cut end [18:28:49]Read from MH i2c: 01 07 00 23 02 00 00 00 00 00 FF 0F 3A [18:28:49]process_action close_receipt done [18:28:49]requested_data is exist [18:28:49]produce_requested_data [18:28:49]requested_item fm.sn is exist - process it [18:28:49]wFMCommunicate request_size=4 [18:28:49]MH_SAM_APDU [18:28:49]CAPDU: 80 11 00 00 [18:28:49]Write to MH i2c: E2 08 00 24 02 80 11 00 00 00 00 00 00 A0 [18:28:49]Write i2c OK [18:28:49]MH_I2C_Read... [18:28:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:49]Read from MH i2c: E2 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 17 00 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 17 00 24 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F3 [18:28: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:28:49]wFMCommunicate OK [18:28:49]requested_item fd.num is exist - process it [18:28:49]SAM_PROTO_GetFieldsCounters [18:28:49]wFMCommunicate request_size=4 [18:28:49]MH_SAM_APDU [18:28:49]CAPDU: 80 13 00 00 [18:28:49]Write to MH i2c: E2 08 00 25 02 80 13 00 00 00 00 00 00 A3 [18:28:49]Write i2c OK [18:28:49]MH_I2C_Read... [18:28:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:49]Read from MH i2c: E2 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 62 00 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 62 00 25 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 09 DB 02 00 0E 04 04 00 87 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 B1 [18:28: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 09 DB 02 00 0E 04 04 00 87 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 [18:28:49]wFMCommunicate OK [18:28:49]SAM_PROTO_GetFieldsCounters done [18:28:49]requested_item shift.num is exist - process it [18:28:49]requested_item shift.opened is exist - process it [18:28:49]req_shift_opened [18:28:49]FM_GetShiftState [18:28:49]SAM_PROTO_GetShiftState [18:28:49]wFMCommunicate request_size=4 [18:28:49]MH_SAM_APDU [18:28:49]CAPDU: 80 13 01 00 [18:28:49]Write to MH i2c: E2 08 00 26 02 80 13 01 00 00 00 00 00 A5 [18:28:49]Write i2c OK [18:28:49]MH_I2C_Read... [18:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:49]Read from MH i2c: E2 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 0E 00 [18:28:49]MH_I2C_Read... [18:28:49]Read from MH i2c: E2 0E 00 26 02 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 24 [18:28:49]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:28:49]wFMCommunicate OK [18:28:49]SAM_PROTO_GetShiftState done [18:28:49]FM_GetShiftState done [18:28:49]req_shift_opened done [18:28:49]requested_item shift.open_date is exist - process it [18:28:49]req_shift_open_date [18:28:49]req_shift_open_date done [18:28:49]produce_requested_data done [18:28:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187145,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [18:28:49]process_action_free close_receipt [18:28:49]json_value_free [18:28:49]json_value_free done [18:28:49]process_json_proto returns [18:28:49]Send response to host [18:28:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187145,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [18:28:49]free response buf [18:28:49]execute_script done [18:28:49]execute_script returns [18:28:49]free content buf [18:28:49]Sock 9.Close socket [18:28:49]Sock 9.Thread stoped [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:08]OFD Sender: No OFD packet to send [18:30:13]OFD Sender: No OFD packet to send [18:30:18]OFD Sender: No OFD packet to send [18:30:23]OFD Sender: No OFD packet to send [18:30:28]OFD Sender: No OFD packet to send [18:30:33]OFD Sender: No OFD packet to send [18:30:38]OFD Sender: No OFD packet to send [18:30:43]OFD Sender: No OFD packet to send [18:30:48]OFD Sender: No OFD packet to send [18:30:53]OFD Sender: No OFD packet to send [18:30:58]OFD Sender: No OFD packet to send [18:31:03]OFD Sender: No OFD packet to send [18:31:08]OFD Sender: No OFD packet to send [18:31:13]OFD Sender: No OFD packet to send [18:31:18]OFD Sender: No OFD packet to send [18:31:23]OFD Sender: No OFD packet to send [18:31:28]OFD Sender: No OFD packet to send [18:31:33]OFD Sender: No OFD packet to send [18:31:38]OFD Sender: No OFD packet to send [18:31:43]OFD Sender: No OFD packet to send [18:31:48]OFD Sender: No OFD packet to send [18:31:53]OFD Sender: No OFD packet to send [18:31:58]OFD Sender: No OFD packet to send [18:32:03]OFD Sender: No OFD packet to send [18:32:08]OFD Sender: No OFD packet to send [18:32:13]OFD Sender: No OFD packet to send [18:32:18]OFD Sender: No OFD packet to send [18:32:23]OFD Sender: No OFD packet to send [18:32:28]OFD Sender: No OFD packet to send [18:32:33]OFD Sender: No OFD packet to send [18:32:35]accept exits with 7 [18:32:35]New connection [18:32:35]New thread 3066510692 created [18:32:35]Thread 3066654052 joined [18:32:35]Waiting for new connection... [18:32:35] Sock 7.Parse request [18:32:35]Sock 7.Check first char [18:32:35]Sock 7.First char is OK [18:32:35]request: POST /json_proto HTTP/1.0 [18:32:35]Method: POST [18:32:35]URL: /json_proto [18:32:35]Method is POST - this is cgi request [18:32:35]url: /json_proto [18:32:35]query_string will be loaded in cgi processing [18:32:35]execute_cgi json_proto POST (null) [18:32:35]execute_cgi path=json_proto method=POST [18:32:35]POST find Content-Length [18:32:35]Host: 172.17.46.131:8080 [18:32:35]Content-Length: 682 [18:32:35]Content-Type: application/json [18:32:35] [18:32:35]POST finish read [18:32:35]Found Content-Length = 682 [18:32:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412300", "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 }]} ], "deposit" : 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:32:35]execute_script... [18:32: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)412300", "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 }]} ], "deposit" : 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:32:35]POST & json_proto [18:32:35]process_json_proto [18:32:35]json parsed OK: [18:32:35]protocol is kg_v1.0 [18:32:35]action value=close_receipt [18:32:35]process_action close_receipt [18:32:35]cmd_close_receipt [18:32:35]MH_GetDate [18:32:35]Write to MH i2c: F0 00 00 27 02 18 [18:32:35]Write i2c OK [18:32:35]MH_I2C_Read... [18:32:35]Read from MH i2c: F0 [18:32:35]MH_I2C_Read... [18:32:35]Read from MH i2c: F0 09 00 [18:32:35]MH_I2C_Read... [18:32:35]Read from MH i2c: F0 09 00 27 02 00 C3 23 B6 67 7E 41 4F 65 97 [18:32:35]GetLastDocTimeStamp 1739989725 [18:32:35]current date 1739989955 [18:32:35]FM_GetShiftState [18:32:35]SAM_PROTO_GetShiftState [18:32:35]wFMCommunicate request_size=4 [18:32:35]MH_SAM_APDU [18:32:35]CAPDU: 80 13 01 00 [18:32:35]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [18:32:35]Write i2c OK [18:32:35]MH_I2C_Read... [18:32:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:35]Read from MH i2c: E2 [18:32:35]MH_I2C_Read... [18:32:35]Read from MH i2c: E2 0E 00 [18:32:35]MH_I2C_Read... [18:32:35]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 26 [18:32:35]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:32:35]wFMCommunicate OK [18:32:35]SAM_PROTO_GetShiftState done [18:32:35]FM_GetShiftState done [18:32:35]opened in 1739929631 [18:32:35]opened+sec_in_day 1740016031 [18:32:35]quantity*price = 100012 [18:32:35]sum+1 = 100014 [18:32:35]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 СНО: Общий режим Чек 212 19.02.2025 18:32 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187146 ФПД: 481956793722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T183235&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187146&fm=481956793722&tin=02508201610067®Number=0000000000091857&sum=100000 [18:32:36]StoreToDocumentArchive [18:32:36]shift 647 fd 187146 [18:32:36]save to /storage/0647/doc_00187146 [18:32:36]save last doc name /storage/0647/doc_00187146 to /storage/kkm_last_doc_name [18:32:36]save OK [18:32:36]Clear old archive folders... [18:32:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:32:36]tlvbuf is 01F46DA0 [18:32:36]SAM_PROTO_ClearQueue [18:32:36]wFMCommunicate request_size=4 [18:32:36]MH_SAM_APDU [18:32:36]CAPDU: 80 09 00 00 [18:32:36]Write to MH i2c: E2 08 00 35 02 80 09 00 00 00 00 00 00 A9 [18:32:36]Write i2c OK [18:32:36]MH_I2C_Read... [18:32:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:36]Read from MH i2c: E2 [18:32:36]MH_I2C_Read... [18:32:36]Read from MH i2c: E2 03 00 [18:32:36]MH_I2C_Read... [18:32:36]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [18:32:36]RAPDU: 90 00 [18:32:36]wFMCommunicate OK [18:32:36]SAM_PROTO_ClearQueue done [18:32:36]KKMCreateOFDPacket [18:32:36]OFDProtocolAddRootSTLVToBuf [18:32:36]FM_MakeSignedData [18:32:36]FM_MakeSignedData [18:32:36]SAM_PROTO_SignData [18:32:36]wFMCommunicate request_size=4 [18:32:36]MH_SAM_APDU [18:32:36]CAPDU: 80 0D 01 02 [18:32:36]Write to MH i2c: E2 08 00 36 02 80 0D 01 02 00 00 00 00 B1 [18:32:36]Write i2c OK [18:32:36]MH_I2C_Read... [18:32:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:36]Read from MH i2c: E2 [18:32:36]MH_I2C_Read... [18:32:36]Read from MH i2c: E2 03 00 [18:32:36]MH_I2C_Read... [18:32:36]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [18:32:36]RAPDU: 90 00 [18:32:36]wFMCommunicate OK [18:32:36]wFMCommunicate request_size=255 [18:32:36]MH_SAM_APDU [18:32: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 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 D4 00 00 00 F4 03 04 00 C3 23 B6 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 0A DB 02 00 35 04 06 00 00 [18:32:36]Write to MH i2c: E2 02 01 37 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 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 D4 00 00 00 F4 03 04 00 C3 23 B6 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 0A DB 02 00 35 04 06 00 00 00 00 69 [18:32:36]Write i2c OK [18:32:36]MH_I2C_Read... [18:32:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:36]Read from MH i2c: E2 [18:32:36]MH_I2C_Read... [18:32:36]Read from MH i2c: E2 03 00 [18:32:36]MH_I2C_Read... [18:32:36]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [18:32:36]RAPDU: 90 00 [18:32:36]wFMCommunicate OK [18:32:36]wFMCommunicate request_size=10 [18:32:36]MH_SAM_APDU [18:32:36]CAPDU: 80 0D 02 02 05 70 36 DD 0D 7A [18:32:36]Write to MH i2c: E2 0D 00 38 02 80 0D 02 02 05 00 70 36 DD 0D 7A 00 00 C8 [18:32:36]Write i2c OK [18:32:36]MH_I2C_Read... [18:32:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:37]Read from MH i2c: E2 [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: E2 03 00 [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [18:32:37]RAPDU: 90 00 [18:32:37]wFMCommunicate OK [18:32:37]wFMCommunicate request_size=4 [18:32:37]MH_SAM_APDU [18:32:37]CAPDU: 80 0D 03 02 [18:32:37]Write to MH i2c: E2 08 00 39 02 80 0D 03 02 00 00 00 00 B6 [18:32:37]Write i2c OK [18:32:37]MH_I2C_Read... [18:32:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:37]Read from MH i2c: E2 [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: E2 0B 00 [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: E2 0B 00 39 02 00 D0 97 89 9D A2 2F 82 62 90 00 F9 [18:32:37]RAPDU: D0 97 89 9D A2 2F 82 62 90 00 [18:32:37]wFMCommunicate OK [18:32:37]SAM_PROTO_SignData done [18:32:37]FM_MakeSignedData done [18:32:37]CreateOFDProtocolMessage [18:32:37]wFMCommunicate request_size=4 [18:32:37]MH_SAM_APDU [18:32:37]CAPDU: 80 11 00 00 [18:32:37]Write to MH i2c: E2 08 00 3A 02 80 11 00 00 00 00 00 00 B6 [18:32:37]Write i2c OK [18:32:37]MH_I2C_Read... [18:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:37]Read from MH i2c: E2 [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: E2 17 00 [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: E2 17 00 3A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 09 [18:32:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:32:37]wFMCommunicate OK [18:32:37]CreateOFDProtocolMessage done [18:32:37]OFDSenderStorePacket 187146 [18:32:37]StoreOFDPacket docnum=187146 [18:32: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 EA C9 07 01 12 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 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 D4 00 00 00 F4 03 04 00 C3 23 B6 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 0A DB 02 00 35 04 06 00 00 70 36 DD 0D 7A D0 97 89 9D A2 2F 82 62 [18:32:37]CheckFolder [18:32:37]dirname=/storage/ofd_packets [18:32:37]CheckFolder done [18:32:37]ProducePacketName [18:32:37]name=ofd_packets/00187146 [18:32:37]NVStorageSaveData ofd_packets/00187146 [18:32:37]File name is /storage/ofd_packets/00187146 [18:32:37]Write 301 bytes [18:32:37]NVStorageSaveData done [18:32:37]OFDSenderStorePacket done [18:32:37]KKMCreateOFDPacket done [18:32:37]NVStorageSaveData kkm_last_timestamp [18:32:37]File name is /storage/kkm_last_timestamp [18:32:37]Write 4 bytes [18:32:37]NVStorageSaveData done [18:32:37]ExternCall_PrintAddStr [18:32:37]wPrintStart [18:32:37]Write to MH i2c: 01 00 00 3B 02 3D [18:32:37]Write i2c OK [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: 01 [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: 01 07 00 [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: 01 07 00 3B 02 00 00 00 00 00 FF 0F 52 [18:32:37]RasterBufferAndPrint [18:32:37]line Счет N : (1)412300 [18:32:37]line ИНН: 02508201610067 [18:32:37]line Контрольно-Кассовый Чек [18:32:37]line ПРОДАЖА [18:32:37]line ТРК (МРК, ГНК) : 43 [18:32:37]line Товар: 2710124500 [18:32:37]line Аи-95-К-5 [18:32:37]line 13.910 * 71.90 [18:32:37]line = 1000.13 [18:32:37]line НДС 12% НСП 1% [18:32:37]line > о реализуемом товаре [18:32:37]line ОКРУГЛЕНИЕ: -0.13 [18:32:37]line ИТОГО: 1000.00 [18:32:37]line Внесено: 1000.00 [18:32:37]line СДАЧА: 0.00 [18:32:37]line НСП 1% : 8.85 [18:32:37]line НДС 12% : 106.21 [18:32:37]line Наличными: 1000.00 [18:32:37]line Безнал.: 0.00 [18:32:37]line Место: АЗС № 92 "Партнер Нефть" [18:32:37]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:32:37]line СНО: Общий режим [18:32:37]line Чек 212 19.02.2025 18:32 [18:32:37]line Смена: 647 ФФД: 1.0 [18:32:37]line ЗНМ: 0300000118 [18:32:37]line РНМ: 0000000000091857 [18:32:37]line Версия ККМ: 001 [18:32:37]line ФМ: 0000000000871826 [18:32:37]line ФД: 187146 [18:32:37]line ФПД: 481956793722 [18:32:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T183235&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187146&fm=481956793722&tin=02508201610067®Number=0000000000091857&sum=100000 [18:32:37]written 0, free lines is 4095 [18:32:37]OFD Sender: Processing packet 187146 [packets to send 49, broken 48] [18:32:37]ProducePacketName [18:32:37]name=ofd_packets/00187146 [18:32:37]OFD Sender: To server: pG, [18:32:37]CommunicateWithHost lk.salyk.kg:30040 [18:32:37]ConnectInit lk.salyk.kg [18:32:37]Connected sock=10 [18:32: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 EA C9 07 01 12 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 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 D4 00 00 00 F4 03 04 00 C3 23 B6 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 0A DB 02 00 35 04 06 00 00 70 36 DD 0D 7A D0 97 89 9D A2 2F 82 62 [18:32: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 CF 10 47 00 99 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 0A DB 02 00 F4 03 04 00 17 CA B5 67 B6 04 01 00 00 FC 2E 41 67 69 20 F9 0B [18:32:37]CommunicateWithHost err = 0 [18:32:37]CheckOFDResponse [18:32:37]1017 (14) - 77093643461234 [18:32:37]1041 (16) - 0000000000871826 [18:32:37]1040 (4) - 187146 [18:32:37]1012 (4) - 19.02.2025 12:09 [18:32:37]1206 (1) - 0 [18:32:37]OFD Sender: Remove packet 187146 [18:32:37]ProducePacketName [18:32:37]name=ofd_packets/00187146 [18:32:37]NVStorageDeleteData [18:32:37]Write to MH i2c: 01 00 00 66 02 68 [18:32:37]Write i2c OK [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: 01 [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: 01 07 00 [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 F5 0C 70 [18:32:37]RasterBufferAndPrint [18:32:37]line [18:32:37]line [18:32:37]line [18:32:37]line [18:32:37]line [18:32:37]written 0, free lines is 3324 [18:32:37]MH_Cut [18:32:37]Write to MH i2c: D1 01 00 6D 02 01 41 [18:32:37]Write i2c OK [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: D1 [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: D1 01 00 [18:32:37]MH_I2C_Read... [18:32:37]Read from MH i2c: D1 01 00 6D 02 00 40 [18:32:37]Write to MH i2c: 01 00 00 6E 02 70 [18:32:37]Write i2c OK [18:32:37]MH_I2C_Read... [18:32:38]OFD Sender: No OFD packet to send [18:32:38]*** Cut start [18:32:38]*** Partial cut [18:32:38]*** CUTSNS_PIN = 1 [18:32:38]*** CUTSNS_PIN = 0 [18:32:38]*** Brake cut motor [18:32:39]Read from MH i2c: 01 [18:32:39]MH_I2C_Read... [18:32:39]*** Stop cut motor [18:32:39]*** Cut end [18:32:39]Read from MH i2c: 01 07 00 [18:32:39]MH_I2C_Read... [18:32:39]Read from MH i2c: 01 07 00 6E 02 00 00 00 00 00 FF 0F 85 [18:32:39]process_action close_receipt done [18:32:39]requested_data is exist [18:32:39]produce_requested_data [18:32:39]requested_item fm.sn is exist - process it [18:32:39]wFMCommunicate request_size=4 [18:32:39]MH_SAM_APDU [18:32:39]CAPDU: 80 11 00 00 [18:32:39]Write to MH i2c: E2 08 00 6F 02 80 11 00 00 00 00 00 00 EB [18:32:39]Write i2c OK [18:32:39]MH_I2C_Read... [18:32:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:39]Read from MH i2c: E2 [18:32:39]MH_I2C_Read... [18:32:39]Read from MH i2c: E2 17 00 [18:32:39]MH_I2C_Read... [18:32:39]Read from MH i2c: E2 17 00 6F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3E [18:32:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:32:39]wFMCommunicate OK [18:32:39]requested_item fd.num is exist - process it [18:32:39]SAM_PROTO_GetFieldsCounters [18:32:39]wFMCommunicate request_size=4 [18:32:39]MH_SAM_APDU [18:32:39]CAPDU: 80 13 00 00 [18:32:39]Write to MH i2c: E2 08 00 70 02 80 13 00 00 00 00 00 00 EE [18:32:39]Write i2c OK [18:32:39]MH_I2C_Read... [18:32:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:39]Read from MH i2c: E2 [18:32:39]MH_I2C_Read... [18:32:39]Read from MH i2c: E2 62 00 [18:32:39]MH_I2C_Read... [18:32:39]Read from MH i2c: E2 62 00 70 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 0A DB 02 00 0E 04 04 00 87 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 00 [18:32: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 0A DB 02 00 0E 04 04 00 87 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 [18:32:39]wFMCommunicate OK [18:32:39]SAM_PROTO_GetFieldsCounters done [18:32:39]requested_item shift.num is exist - process it [18:32:39]requested_item shift.opened is exist - process it [18:32:39]req_shift_opened [18:32:39]FM_GetShiftState [18:32:39]SAM_PROTO_GetShiftState [18:32:39]wFMCommunicate request_size=4 [18:32:39]MH_SAM_APDU [18:32:39]CAPDU: 80 13 01 00 [18:32:39]Write to MH i2c: E2 08 00 71 02 80 13 01 00 00 00 00 00 F0 [18:32:39]Write i2c OK [18:32:39]MH_I2C_Read... [18:32:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:39]Read from MH i2c: E2 [18:32:39]MH_I2C_Read... [18:32:39]Read from MH i2c: E2 0E 00 [18:32:39]MH_I2C_Read... [18:32:39]Read from MH i2c: E2 0E 00 71 02 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 6F [18:32:39]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:32:39]wFMCommunicate OK [18:32:39]SAM_PROTO_GetShiftState done [18:32:39]FM_GetShiftState done [18:32:39]req_shift_opened done [18:32:39]requested_item shift.open_date is exist - process it [18:32:39]req_shift_open_date [18:32:39]req_shift_open_date done [18:32:39]produce_requested_data done [18:32:39]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187146,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [18:32:39]process_action_free close_receipt [18:32:39]json_value_free [18:32:39]json_value_free done [18:32:39]process_json_proto returns [18:32:39]Send response to host [18:32:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187146,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [18:32:39]free response buf [18:32:39]execute_script done [18:32:39]execute_script returns [18:32:39]free content buf [18:32:39]Sock 7.Close socket [18:32:39]Sock 7.Thread stoped [18:32:43]OFD Sender: No OFD packet to send [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [18:33:03]OFD Sender: No OFD packet to send [18:33:08]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:23]OFD Sender: No OFD packet to send [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:43]OFD Sender: No OFD packet to send [18:33:48]OFD Sender: No OFD packet to send [18:33:53]OFD Sender: No OFD packet to send [18:33:58]OFD Sender: No OFD packet to send [18:34:03]OFD Sender: No OFD packet to send [18:34:08]OFD Sender: No OFD packet to send [18:34:13]OFD Sender: No OFD packet to send [18:34:18]OFD Sender: No OFD packet to send [18:34:23]OFD Sender: No OFD packet to send [18:34:28]OFD Sender: No OFD packet to send [18:34:33]OFD Sender: No OFD packet to send [18:34:38]OFD Sender: No OFD packet to send [18:34:43]OFD Sender: No OFD packet to send [18:34:48]OFD Sender: No OFD packet to send [18:34:53]OFD Sender: No OFD packet to send [18:34:58]OFD Sender: No OFD packet to send [18:35:03]OFD Sender: No OFD packet to send [18:35:08]OFD Sender: No OFD packet to send [18:35:13]OFD Sender: No OFD packet to send [18:35:18]OFD Sender: No OFD packet to send [18:35:23]OFD Sender: No OFD packet to send [18:35:28]OFD Sender: No OFD packet to send [18:35:33]OFD Sender: No OFD packet to send [18:35:38]OFD Sender: No OFD packet to send [18:35:42]accept exits with 9 [18:35:42]New connection [18:35:42]New thread 3066654052 created [18:35:42]Thread 3066510692 joined [18:35:42]Waiting for new connection... [18:35:42] Sock 9.Parse request [18:35:42]Sock 9.Check first char [18:35:42]Sock 9.First char is OK [18:35:42]request: POST /json_proto HTTP/1.0 [18:35:42]Method: POST [18:35:42]URL: /json_proto [18:35:42]Method is POST - this is cgi request [18:35:42]url: /json_proto [18:35:42]query_string will be loaded in cgi processing [18:35:42]execute_cgi json_proto POST (null) [18:35:42]execute_cgi path=json_proto method=POST [18:35:42]POST find Content-Length [18:35:42]Host: 172.17.46.131:8080 [18:35:42]Content-Length: 673 [18:35:42]Content-Type: application/json [18:35:42] [18:35:42]POST finish read [18:35:42]Found Content-Length = 673 [18:35:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412301", "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" ] } } [18:35:42]execute_script... [18:35: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)412301", "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" ] } } [18:35:42]POST & json_proto [18:35:42]process_json_proto [18:35:42]json parsed OK: [18:35:42]protocol is kg_v1.0 [18:35:42]action value=close_receipt [18:35:42]process_action close_receipt [18:35:42]cmd_close_receipt [18:35:42]MH_GetDate [18:35:42]Write to MH i2c: F0 00 00 72 02 63 [18:35:42]Write i2c OK [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: F0 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: F0 09 00 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: F0 09 00 72 02 00 7F 24 B6 67 7E 41 4F 65 9F [18:35:42]GetLastDocTimeStamp 1739989955 [18:35:42]current date 1739990143 [18:35:42]FM_GetShiftState [18:35:42]SAM_PROTO_GetShiftState [18:35:42]wFMCommunicate request_size=4 [18:35:42]MH_SAM_APDU [18:35:42]CAPDU: 80 13 01 00 [18:35:42]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [18:35:42]Write i2c OK [18:35:42]MH_I2C_Read... [18:35:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:42]Read from MH i2c: E2 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 0E 00 [18:35:42]MH_I2C_Read... [18:35:42]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 71 [18:35:42]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:35:42]wFMCommunicate OK [18:35:42]SAM_PROTO_GetShiftState done [18:35:42]FM_GetShiftState done [18:35:42]opened in 1739929631 [18:35:42]opened+sec_in_day 1740016031 [18:35:42]quantity*price = 50021 [18:35:42]sum+1 = 50022 [18:35:42]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 СНО: Общий режим Чек 213 19.02.2025 18:35 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187147 ФПД: 32193426724308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T183543&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187147&fm=32193426724308&tin=02508201610067®Number=0000000000091857&sum=50000 [18:35:43]StoreToDocumentArchive [18:35:43]shift 647 fd 187147 [18:35:43]save to /storage/0647/doc_00187147 [18:35:43]save last doc name /storage/0647/doc_00187147 to /storage/kkm_last_doc_name [18:35:43]save OK [18:35:43]Clear old archive folders... [18:35:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:35:43]tlvbuf is 01F46080 [18:35:43]SAM_PROTO_ClearQueue [18:35:43]wFMCommunicate request_size=4 [18:35:43]MH_SAM_APDU [18:35:43]CAPDU: 80 09 00 00 [18:35:43]Write to MH i2c: E2 08 00 80 02 80 09 00 00 00 00 00 00 F4 [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]*** iso7816_exchange 80 09 00 00... 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 80 02 00 90 00 F6 [18:35:43]RAPDU: 90 00 [18:35:43]wFMCommunicate OK [18:35:43]SAM_PROTO_ClearQueue done [18:35:43]KKMCreateOFDPacket [18:35:43]OFDProtocolAddRootSTLVToBuf [18:35:43]FM_MakeSignedData [18:35:43]FM_MakeSignedData [18:35:43]SAM_PROTO_SignData [18:35:43]wFMCommunicate request_size=4 [18:35:43]MH_SAM_APDU [18:35:43]CAPDU: 80 0D 01 02 [18:35:43]Write to MH i2c: E2 08 00 81 02 80 0D 01 02 00 00 00 00 FC [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:43]*** iso7816_exchange 80 0D 01 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 81 02 00 90 00 F7 [18:35:43]RAPDU: 90 00 [18:35:43]wFMCommunicate OK [18:35:43]wFMCommunicate request_size=255 [18:35:43]MH_SAM_APDU [18:35: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 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 D5 00 00 00 F4 03 04 00 7F 24 B6 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 0B DB 02 00 35 04 06 00 1D 47 9D C3 [18:35:43]Write to MH i2c: E2 02 01 82 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D5 00 00 00 F4 03 04 00 7F 24 B6 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 0B DB 02 00 35 04 06 00 1D 47 9D C3 00 00 82 [18:35:43]Write i2c OK [18:35:43]MH_I2C_Read... [18:35:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:44]Read from MH i2c: E2 [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: E2 03 00 [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [18:35:44]RAPDU: 90 00 [18:35:44]wFMCommunicate OK [18:35:44]wFMCommunicate request_size=7 [18:35:44]MH_SAM_APDU [18:35:44]CAPDU: 80 0D 02 02 02 95 D4 [18:35:44]Write to MH i2c: E2 0A 00 83 02 80 0D 02 02 02 00 95 D4 00 00 6C [18:35:44]Write i2c OK [18:35:44]MH_I2C_Read... [18:35:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:44]Read from MH i2c: E2 [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: E2 03 00 [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [18:35:44]RAPDU: 90 00 [18:35:44]wFMCommunicate OK [18:35:44]wFMCommunicate request_size=4 [18:35:44]MH_SAM_APDU [18:35:44]CAPDU: 80 0D 03 02 [18:35:44]Write to MH i2c: E2 08 00 84 02 80 0D 03 02 00 00 00 00 01 [18:35:44]Write i2c OK [18:35:44]MH_I2C_Read... [18:35:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:44]Read from MH i2c: E2 [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: E2 0B 00 [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: E2 0B 00 84 02 00 95 3F 0B 59 43 FD 11 E9 90 00 74 [18:35:44]RAPDU: 95 3F 0B 59 43 FD 11 E9 90 00 [18:35:44]wFMCommunicate OK [18:35:44]SAM_PROTO_SignData done [18:35:44]FM_MakeSignedData done [18:35:44]CreateOFDProtocolMessage [18:35:44]wFMCommunicate request_size=4 [18:35:44]MH_SAM_APDU [18:35:44]CAPDU: 80 11 00 00 [18:35:44]Write to MH i2c: E2 08 00 85 02 80 11 00 00 00 00 00 00 01 [18:35:44]Write i2c OK [18:35:44]MH_I2C_Read... [18:35:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:44]Read from MH i2c: E2 [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: E2 17 00 [18:35:44]MH_I2C_Read... [18:35:44]Read from MH i2c: E2 17 00 85 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 54 [18:35:44]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:44]wFMCommunicate OK [18:35:44]CreateOFDProtocolMessage done [18:35:44]OFDSenderStorePacket 187147 [18:35:44]StoreOFDPacket docnum=187147 [18:35: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 B2 62 04 01 39 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 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 D5 00 00 00 F4 03 04 00 7F 24 B6 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 0B DB 02 00 35 04 06 00 1D 47 9D C3 95 D4 95 3F 0B 59 43 FD 11 E9 [18:35:44]CheckFolder [18:35:44]dirname=/storage/ofd_packets [18:35:44]CheckFolder done [18:35:44]ProducePacketName [18:35:44]name=ofd_packets/00187147 [18:35:44]NVStorageSaveData ofd_packets/00187147 [18:35:44]File name is /storage/ofd_packets/00187147 [18:35:44]Write 298 bytes [18:35:44]NVStorageSaveData done [18:35:44]OFDSenderStorePacket done [18:35:44]KKMCreateOFDPacket done [18:35:44]NVStorageSaveData kkm_last_timestamp [18:35:44]File name is /storage/kkm_last_timestamp [18:35:44]Write 4 bytes [18:35:44]NVStorageSaveData done [18:35:44]ExternCall_PrintAddStr [18:35:44]wPrintStart [18:35:44]Write to MH i2c: 01 00 00 86 02 88 [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 86 02 00 00 00 00 00 FF 0F 9D [18:35:44]RasterBufferAndPrint [18:35:44]line Счет N : (1)412301 [18:35:44]line ИНН: 02508201610067 [18:35:44]line Контрольно-Кассовый Чек [18:35:44]line ПРОДАЖА [18:35:44]line ТРК (МРК, ГНК) : 6 [18:35:44]line Товар: 2710194210 [18:35:44]line ДТ-К-5 [18:35:44]line 6.890 * 72.60 [18:35:44]line = 500.21 [18:35:44]line НДС 12% НСП 1% [18:35:44]line > о реализуемом товаре [18:35:44]line ОКРУГЛЕНИЕ: -0.21 [18:35:44]line ИТОГО: 500.00 [18:35:44]line Внесено: 500.00 [18:35:44]line СДАЧА: 0.00 [18:35:44]line НСП 1% : 4.43 [18:35:44]line НДС 12% : 53.12 [18:35:44]line Наличными: 500.00 [18:35:44]line Безнал.: 0.00 [18:35:44]line Место: АЗС № 92 "Партнер Нефть" [18:35:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:35:44]line СНО: Общий режим [18:35:44]line Чек 213 19.02.2025 18:35 [18:35:44]line Смена: 647 ФФД: 1.0 [18:35:44]line ЗНМ: 0300000118 [18:35:44]line РНМ: 0000000000091857 [18:35:44]line Версия ККМ: 001 [18:35:44]line ФМ: 0000000000871826 [18:35:44]line ФД: 187147 [18:35:44]line ФПД: 32193426724308 [18:35:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T183543&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187147&fm=32193426724308&tin=02508201610067®Number=0000000000091857&sum=50000 [18:35:44]OFD Sender: Processing packet 187147 [packets to send 49, broken 48] [18:35:44]ProducePacketName [18:35:44]name=ofd_packets/00187147 [18:35:44]OFD Sender: To server: pG, [18:35:44]CommunicateWithHost lk.salyk.kg:30040 [18:35:44]ConnectInit lk.salyk.kg [18:35:44]written 0, free lines is 4095 [18:35:44]Connected sock=10 [18: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 0C 01 00 00 B2 62 04 01 39 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 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 D5 00 00 00 F4 03 04 00 7F 24 B6 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 0B DB 02 00 35 04 06 00 1D 47 9D C3 95 D4 95 3F 0B 59 43 FD 11 E9 [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 0F 37 47 00 74 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 0B DB 02 00 F4 03 04 00 D2 CA B5 67 B6 04 01 00 00 05 9B 10 EC C3 3A EA AD [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) - 187147 [18:35:44]1012 (4) - 19.02.2025 12:13 [18:35:44]1206 (1) - 0 [18:35:44]OFD Sender: Remove packet 187147 [18:35:44]ProducePacketName [18:35:44]name=ofd_packets/00187147 [18:35:44]NVStorageDeleteData [18:35:44]Write to MH i2c: 01 00 00 B1 02 B3 [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 B1 02 00 00 00 00 00 E4 0C AA [18:35:45]RasterBufferAndPrint [18:35:45]line [18:35:45]line [18:35:45]line [18:35:45]line [18:35:45]line [18:35:45]written 0, free lines is 3306 [18:35:45]MH_Cut [18:35:45]Write to MH i2c: D1 01 00 B8 02 01 8C [18:35:45]Write i2c OK [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: D1 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: D1 01 00 [18:35:45]MH_I2C_Read... [18:35:45]Read from MH i2c: D1 01 00 B8 02 00 8B [18:35:45]Write to MH i2c: 01 00 00 B9 02 BB [18:35:45]Write i2c OK [18:35:45]MH_I2C_Read... [18:35:45]OFD Sender: No OFD packet to send [18:35:45]*** Cut start [18:35:45]*** Partial cut [18:35:45]*** CUTSNS_PIN = 1 [18:35:45]*** CUTSNS_PIN = 0 [18:35:46]*** Brake cut motor [18:35:46]Read from MH i2c: 01 [18:35:46]MH_I2C_Read... [18:35:46]*** Stop cut motor [18:35:46]*** Cut end [18:35:46]Read from MH i2c: 01 07 00 [18:35:46]MH_I2C_Read... [18:35:46]Read from MH i2c: 01 07 00 B9 02 00 00 00 00 00 FF 0F D0 [18:35:46]process_action close_receipt done [18:35:46]requested_data is exist [18:35:46]produce_requested_data [18:35:46]requested_item fm.sn is exist - process it [18:35:46]wFMCommunicate request_size=4 [18:35:46]MH_SAM_APDU [18:35:46]CAPDU: 80 11 00 00 [18:35:46]Write to MH i2c: E2 08 00 BA 02 80 11 00 00 00 00 00 00 36 [18:35:46]Write i2c OK [18:35:46]MH_I2C_Read... [18:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:46]Read from MH i2c: E2 [18:35:46]MH_I2C_Read... [18:35:46]Read from MH i2c: E2 17 00 [18:35:46]MH_I2C_Read... [18:35:46]Read from MH i2c: E2 17 00 BA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 89 [18:35:46]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:46]wFMCommunicate OK [18:35:46]requested_item fd.num is exist - process it [18:35:46]SAM_PROTO_GetFieldsCounters [18:35:46]wFMCommunicate request_size=4 [18:35:46]MH_SAM_APDU [18:35:46]CAPDU: 80 13 00 00 [18:35:46]Write to MH i2c: E2 08 00 BB 02 80 13 00 00 00 00 00 00 39 [18:35:46]Write i2c OK [18:35:46]MH_I2C_Read... [18:35:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:46]Read from MH i2c: E2 [18:35:46]MH_I2C_Read... [18:35:46]Read from MH i2c: E2 62 00 [18:35:46]MH_I2C_Read... [18:35:46]Read from MH i2c: E2 62 00 BB 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 0B DB 02 00 0E 04 04 00 87 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 4F [18:35: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 0B DB 02 00 0E 04 04 00 87 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 [18:35:46]wFMCommunicate OK [18:35:46]SAM_PROTO_GetFieldsCounters done [18:35:46]requested_item shift.num is exist - process it [18:35:46]requested_item shift.opened is exist - process it [18:35:46]req_shift_opened [18:35:46]FM_GetShiftState [18:35:46]SAM_PROTO_GetShiftState [18:35:46]wFMCommunicate request_size=4 [18:35:46]MH_SAM_APDU [18:35:46]CAPDU: 80 13 01 00 [18:35:46]Write to MH i2c: E2 08 00 BC 02 80 13 01 00 00 00 00 00 3B [18:35:46]Write i2c OK [18:35:46]MH_I2C_Read... [18:35:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:46]Read from MH i2c: E2 [18:35:46]MH_I2C_Read... [18:35:46]Read from MH i2c: E2 0E 00 [18:35:46]MH_I2C_Read... [18:35:46]Read from MH i2c: E2 0E 00 BC 02 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 BA [18:35:46]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:35:46]wFMCommunicate OK [18:35:46]SAM_PROTO_GetShiftState done [18:35:46]FM_GetShiftState done [18:35:46]req_shift_opened done [18:35:46]requested_item shift.open_date is exist - process it [18:35:46]req_shift_open_date [18:35:46]req_shift_open_date done [18:35:46]produce_requested_data done [18:35:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187147,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [18:35:46]process_action_free close_receipt [18:35:46]json_value_free [18:35:46]json_value_free done [18:35:46]process_json_proto returns [18:35:46]Send response to host [18:35:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187147,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [18:35:46]free response buf [18:35:46]execute_script done [18:35:46]execute_script returns [18:35:46]free content buf [18:35:46]Sock 9.Close socket [18:35:46]Sock 9.Thread stoped [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:25]OFD Sender: No OFD packet to send [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:37:00]OFD Sender: No OFD packet to send [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [18:37:40]OFD Sender: No OFD packet to send [18:37:45]OFD Sender: No OFD packet to send [18:37:50]OFD Sender: No OFD packet to send [18:37:55]OFD Sender: No OFD packet to send [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:10]OFD Sender: No OFD packet to send [18:38:15]OFD Sender: No OFD packet to send [18:38:20]OFD Sender: No OFD packet to send [18:38:25]OFD Sender: No OFD packet to send [18:38:30]OFD Sender: No OFD packet to send [18:38:35]OFD Sender: No OFD packet to send [18:38:40]OFD Sender: No OFD packet to send [18:38:45]OFD Sender: No OFD packet to send [18:38:50]OFD Sender: No OFD packet to send [18:38:55]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:05]OFD Sender: No OFD packet to send [18:39:10]OFD Sender: No OFD packet to send [18:39:15]OFD Sender: No OFD packet to send [18:39:20]OFD Sender: No OFD packet to send [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:05]OFD Sender: No OFD packet to send [18:41:10]OFD Sender: No OFD packet to send [18:41:15]OFD Sender: No OFD packet to send [18:41:20]OFD Sender: No OFD packet to send [18:41:25]OFD Sender: No OFD packet to send [18:41:30]OFD Sender: No OFD packet to send [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:36]accept exits with 7 [18:43:36]New connection [18:43:36]New thread 3066510692 created [18:43:36]Thread 3066654052 joined [18:43:36]Waiting for new connection... [18:43:36] Sock 7.Parse request [18:43:36]Sock 7.Check first char [18:43:36]Sock 7.First char is OK [18:43:36]request: POST /json_proto HTTP/1.0 [18:43:36]Method: POST [18:43:36]URL: /json_proto [18:43:36]Method is POST - this is cgi request [18:43:36]url: /json_proto [18:43:36]query_string will be loaded in cgi processing [18:43:36]execute_cgi json_proto POST (null) [18:43:36]execute_cgi path=json_proto method=POST [18:43:36]POST find Content-Length [18:43:36]Host: 172.17.46.131:8080 [18:43:36]Content-Length: 677 [18:43:36]Content-Type: application/json [18:43:36] [18:43:36]POST finish read [18:43:36]Found Content-Length = 677 [18:43:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412302", "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" : 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:43:36]execute_script... [18:43: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)412302", "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" : 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:43:36]POST & json_proto [18:43:36]process_json_proto [18:43:36]json parsed OK: [18:43:36]protocol is kg_v1.0 [18:43:36]action value=close_receipt [18:43:36]process_action close_receipt [18:43:36]cmd_close_receipt [18:43:36]MH_GetDate [18:43:36]Write to MH i2c: F0 00 00 BD 02 AE [18:43:36]Write i2c OK [18:43:36]MH_I2C_Read... [18:43:36]Read from MH i2c: F0 [18:43:36]MH_I2C_Read... [18:43:36]Read from MH i2c: F0 09 00 [18:43:36]MH_I2C_Read... [18:43:36]Read from MH i2c: F0 09 00 BD 02 00 58 26 B6 67 7E 41 4F 65 C5 [18:43:36]GetLastDocTimeStamp 1739990143 [18:43:36]current date 1739990616 [18:43:36]FM_GetShiftState [18:43:36]SAM_PROTO_GetShiftState [18:43:36]wFMCommunicate request_size=4 [18:43:36]MH_SAM_APDU [18:43:36]CAPDU: 80 13 01 00 [18:43:36]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [18:43:36]Write i2c OK [18:43:36]MH_I2C_Read... [18:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:36]Read from MH i2c: E2 [18:43:36]MH_I2C_Read... [18:43:36]Read from MH i2c: E2 0E 00 [18:43:36]MH_I2C_Read... [18:43:36]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 BC [18:43:36]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:43:36]wFMCommunicate OK [18:43:36]SAM_PROTO_GetShiftState done [18:43:36]FM_GetShiftState done [18:43:36]opened in 1739929631 [18:43:36]opened+sec_in_day 1740016031 [18:43:36]quantity*price = 40060 [18:43:36]sum+1 = 40062 [18:43:36]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 СНО: Общий режим Чек 214 19.02.2025 18:43 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187148 ФПД: 213545404276731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T184336&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187148&fm=213545404276731&tin=02508201610067®Number=0000000000091857&sum=40000 [18:43:37]StoreToDocumentArchive [18:43:37]shift 647 fd 187148 [18:43:37]save to /storage/0647/doc_00187148 [18:43:37]save last doc name /storage/0647/doc_00187148 to /storage/kkm_last_doc_name [18:43:37]save OK [18:43:37]Clear old archive folders... [18:43:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:37]tlvbuf is 01F45F40 [18:43:37]SAM_PROTO_ClearQueue [18:43:37]wFMCommunicate request_size=4 [18:43:37]MH_SAM_APDU [18:43:37]CAPDU: 80 09 00 00 [18:43:37]Write to MH i2c: E2 08 00 CB 02 80 09 00 00 00 00 00 00 3F [18:43:37]Write i2c OK [18:43:37]MH_I2C_Read... [18:43:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:37]Read from MH i2c: E2 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: E2 03 00 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [18:43:37]RAPDU: 90 00 [18:43:37]wFMCommunicate OK [18:43:37]SAM_PROTO_ClearQueue done [18:43:37]KKMCreateOFDPacket [18:43:37]OFDProtocolAddRootSTLVToBuf [18:43:37]FM_MakeSignedData [18:43:37]FM_MakeSignedData [18:43:37]SAM_PROTO_SignData [18:43:37]wFMCommunicate request_size=4 [18:43:37]MH_SAM_APDU [18:43:37]CAPDU: 80 0D 01 02 [18:43:37]Write to MH i2c: E2 08 00 CC 02 80 0D 01 02 00 00 00 00 47 [18:43:37]Write i2c OK [18:43:37]MH_I2C_Read... [18:43:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:37]Read from MH i2c: E2 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: E2 03 00 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [18:43:37]RAPDU: 90 00 [18:43:37]wFMCommunicate OK [18:43:37]wFMCommunicate request_size=255 [18:43:37]MH_SAM_APDU [18:43: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 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 D6 00 00 00 F4 03 04 00 58 26 B6 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 0C DB 02 00 35 04 06 00 C2 [18:43:37]Write to MH i2c: E2 02 01 CD 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 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 D6 00 00 00 F4 03 04 00 58 26 B6 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 0C DB 02 00 35 04 06 00 C2 00 00 7F [18:43:37]Write i2c OK [18:43:37]MH_I2C_Read... [18:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:37]Read from MH i2c: E2 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: E2 03 00 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [18:43:37]RAPDU: 90 00 [18:43:37]wFMCommunicate OK [18:43:37]wFMCommunicate request_size=10 [18:43:37]MH_SAM_APDU [18:43:37]CAPDU: 80 0D 02 02 05 37 E9 F7 1F FB [18:43:37]Write to MH i2c: E2 0D 00 CE 02 80 0D 02 02 05 00 37 E9 F7 1F FB 00 00 85 [18:43:37]Write i2c OK [18:43:37]MH_I2C_Read... [18:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:37]Read from MH i2c: E2 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: E2 03 00 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [18:43:37]RAPDU: 90 00 [18:43:37]wFMCommunicate OK [18:43:37]wFMCommunicate request_size=4 [18:43:37]MH_SAM_APDU [18:43:37]CAPDU: 80 0D 03 02 [18:43:37]Write to MH i2c: E2 08 00 CF 02 80 0D 03 02 00 00 00 00 4C [18:43:37]Write i2c OK [18:43:37]MH_I2C_Read... [18:43:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:37]Read from MH i2c: E2 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: E2 0B 00 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: E2 0B 00 CF 02 00 F0 C9 77 62 18 AB 23 46 90 00 0B [18:43:37]RAPDU: F0 C9 77 62 18 AB 23 46 90 00 [18:43:37]wFMCommunicate OK [18:43:37]SAM_PROTO_SignData done [18:43:37]FM_MakeSignedData done [18:43:37]CreateOFDProtocolMessage [18:43:37]wFMCommunicate request_size=4 [18:43:37]MH_SAM_APDU [18:43:37]CAPDU: 80 11 00 00 [18:43:37]Write to MH i2c: E2 08 00 D0 02 80 11 00 00 00 00 00 00 4C [18:43:37]Write i2c OK [18:43:37]MH_I2C_Read... [18:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:37]Read from MH i2c: E2 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: E2 17 00 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: E2 17 00 D0 02 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: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 [18:43:37]wFMCommunicate OK [18:43:37]CreateOFDProtocolMessage done [18:43:37]OFDSenderStorePacket 187148 [18:43:37]StoreOFDPacket docnum=187148 [18:43: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 61 7D 07 01 A7 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 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 D6 00 00 00 F4 03 04 00 58 26 B6 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 0C DB 02 00 35 04 06 00 C2 37 E9 F7 1F FB F0 C9 77 62 18 AB 23 46 [18:43:37]CheckFolder [18:43:37]dirname=/storage/ofd_packets [18:43:37]CheckFolder done [18:43:37]ProducePacketName [18:43:37]name=ofd_packets/00187148 [18:43:37]NVStorageSaveData ofd_packets/00187148 [18:43:37]File name is /storage/ofd_packets/00187148 [18:43:37]Write 301 bytes [18:43:37]NVStorageSaveData done [18:43:37]OFDSenderStorePacket done [18:43:37]KKMCreateOFDPacket done [18:43:37]NVStorageSaveData kkm_last_timestamp [18:43:37]File name is /storage/kkm_last_timestamp [18:43:37]Write 4 bytes [18:43:37]NVStorageSaveData done [18:43:37]ExternCall_PrintAddStr [18:43:37]wPrintStart [18:43:37]Write to MH i2c: 01 00 00 D1 02 D3 [18:43:37]Write i2c OK [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: 01 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: 01 07 00 [18:43:37]MH_I2C_Read... [18:43:37]Read from MH i2c: 01 07 00 D1 02 00 00 00 00 00 FF 0F E8 [18:43:37]RasterBufferAndPrint [18:43:37]line Счет N : (1)412302 [18:43:37]line ИНН: 02508201610067 [18:43:37]line Контрольно-Кассовый Чек [18:43:37]line ПРОДАЖА [18:43:37]line ТРК (МРК, ГНК) : 32 [18:43:37]line Товар: 2710124130 [18:43:37]line Аи-92-К-2 [18:43:37]line 6.240 * 64.20 [18:43:37]line = 400.61 [18:43:37]line НДС 12% НСП 1% [18:43:37]line > о реализуемом товаре [18:43:37]line ОКРУГЛЕНИЕ: -0.61 [18:43:37]line ИТОГО: 400.00 [18:43:37]line Внесено: 400.00 [18:43:37]line СДАЧА: 0.00 [18:43:37]line НСП 1% : 3.54 [18:43:37]line НДС 12% : 42.54 [18:43:37]line Наличными: 400.00 [18:43:37]line Безнал.: 0.00 [18:43:37]line Место: АЗС № 92 "Партнер Нефть" [18:43:37]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:43:37]line СНО: Общий режим [18:43:37]line Чек 214 19.02.2025 18:43 [18:43:37]line Смена: 647 ФФД: 1.0 [18:43:37]line ЗНМ: 0300000118 [18:43:37]line РНМ: 0000000000091857 [18:43:37]line Версия ККМ: 001 [18:43:37]line ФМ: 0000000000871826 [18:43:37]line ФД: 187148 [18:43:37]line ФПД: 213545404276731 [18:43:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T184336&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187148&fm=213545404276731&tin=02508201610067®Number=0000000000091857&sum=40000 [18:43:38]OFD Sender: Processing packet 187148 [packets to send 49, broken 48] [18:43:38]ProducePacketName [18:43:38]name=ofd_packets/00187148 [18:43:38]OFD Sender: To server: pG, [18:43:38]CommunicateWithHost lk.salyk.kg:30040 [18:43:38]ConnectInit lk.salyk.kg [18:43:38]written 0, free lines is 4095 [18:43:38]Connected sock=11 [18:43: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 61 7D 07 01 A7 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 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 D6 00 00 00 F4 03 04 00 58 26 B6 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 0C DB 02 00 35 04 06 00 C2 37 E9 F7 1F FB F0 C9 77 62 18 AB 23 46 [18:43: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 58 24 47 00 6C 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0C DB 02 00 F4 03 04 00 AC CC B5 67 B6 04 01 00 00 DF D0 37 05 01 08 6B 76 [18:43:38]CommunicateWithHost err = 0 [18:43:38]CheckOFDResponse [18:43:38]1017 (14) - 77093643461234 [18:43:38]1041 (16) - 0000000000871826 [18:43:38]1040 (4) - 187148 [18:43:38]1012 (4) - 19.02.2025 12:21 [18:43:38]1206 (1) - 0 [18:43:38]OFD Sender: Remove packet 187148 [18:43:38]ProducePacketName [18:43:38]name=ofd_packets/00187148 [18:43:38]NVStorageDeleteData [18:43:38]Write to MH i2c: 01 00 00 FC 02 FE [18:43:38]Write i2c OK [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: 01 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: 01 07 00 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: 01 07 00 FC 02 00 00 00 00 00 F2 0C 03 [18:43:38]RasterBufferAndPrint [18:43:38]line [18:43:38]line [18:43:38]line [18:43:38]line [18:43:38]line [18:43:38]written 0, free lines is 3320 [18:43:38]MH_Cut [18:43:38]Write to MH i2c: D1 01 00 03 03 01 D8 [18:43:38]Write i2c OK [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: D1 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: D1 01 00 [18:43:38]MH_I2C_Read... [18:43:38]Read from MH i2c: D1 01 00 03 03 00 D7 [18:43:38]Write to MH i2c: 01 00 00 04 03 07 [18:43:38]Write i2c OK [18:43:38]MH_I2C_Read... [18:43:39]OFD Sender: No OFD packet to send [18:43:39]*** Cut start [18:43:39]*** Partial cut [18:43:39]*** CUTSNS_PIN = 1 [18:43:39]*** CUTSNS_PIN = 0 [18:43:39]*** Brake cut motor [18:43:40]Read from MH i2c: 01 [18:43:40]MH_I2C_Read... [18:43:40]*** Stop cut motor [18:43:40]*** Cut end [18:43:40]Read from MH i2c: 01 07 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: 01 07 00 04 03 00 00 00 00 00 FF 0F 1C [18:43:40]process_action close_receipt done [18:43:40]requested_data is exist [18:43:40]produce_requested_data [18:43:40]requested_item fm.sn is exist - process it [18:43:40]wFMCommunicate request_size=4 [18:43:40]MH_SAM_APDU [18:43:40]CAPDU: 80 11 00 00 [18:43:40]Write to MH i2c: E2 08 00 05 03 80 11 00 00 00 00 00 00 82 [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:40]Read from MH i2c: E2 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 17 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 17 00 05 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D5 [18:43:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:43:40]wFMCommunicate OK [18:43:40]requested_item fd.num is exist - process it [18:43:40]SAM_PROTO_GetFieldsCounters [18:43:40]wFMCommunicate request_size=4 [18:43:40]MH_SAM_APDU [18:43:40]CAPDU: 80 13 00 00 [18:43:40]Write to MH i2c: E2 08 00 06 03 80 13 00 00 00 00 00 00 85 [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:40]Read from MH i2c: E2 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 62 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 62 00 06 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 0C DB 02 00 0E 04 04 00 87 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 9F [18:43: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 0C DB 02 00 0E 04 04 00 87 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 [18:43:40]wFMCommunicate OK [18:43:40]SAM_PROTO_GetFieldsCounters done [18:43:40]requested_item shift.num is exist - process it [18:43:40]requested_item shift.opened is exist - process it [18:43:40]req_shift_opened [18:43:40]FM_GetShiftState [18:43:40]SAM_PROTO_GetShiftState [18:43:40]wFMCommunicate request_size=4 [18:43:40]MH_SAM_APDU [18:43:40]CAPDU: 80 13 01 00 [18:43:40]Write to MH i2c: E2 08 00 07 03 80 13 01 00 00 00 00 00 87 [18:43:40]Write i2c OK [18:43:40]MH_I2C_Read... [18:43:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:40]Read from MH i2c: E2 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 0E 00 [18:43:40]MH_I2C_Read... [18:43:40]Read from MH i2c: E2 0E 00 07 03 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 06 [18:43:40]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:43:40]wFMCommunicate OK [18:43:40]SAM_PROTO_GetShiftState done [18:43:40]FM_GetShiftState done [18:43:40]req_shift_opened done [18:43:40]requested_item shift.open_date is exist - process it [18:43:40]req_shift_open_date [18:43:40]req_shift_open_date done [18:43:40]produce_requested_data done [18:43:40]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187148,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [18:43:40]process_action_free close_receipt [18:43:40]json_value_free [18:43:40]json_value_free done [18:43:40]process_json_proto returns [18:43:40]Send response to host [18:43:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187148,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [18:43:40]free response buf [18:43:40]execute_script done [18:43:40]execute_script returns [18:43:40]free content buf [18:43:40]Sock 7.Close socket [18:43:40]Sock 7.Thread stoped [18:43:44]OFD Sender: No OFD packet to send [18:43:49]OFD Sender: No OFD packet to send [18:43:54]OFD Sender: No OFD packet to send [18:43:59]OFD Sender: No OFD packet to send [18:44:04]OFD Sender: No OFD packet to send [18:44:09]OFD Sender: No OFD packet to send [18:44:14]OFD Sender: No OFD packet to send [18:44:16]accept exits with 9 [18:44:16]New connection [18:44:16]New thread 3066654052 created [18:44:16]Thread 3066510692 joined [18:44:16]Waiting for new connection... [18:44:16] Sock 9.Parse request [18:44:16]Sock 9.Check first char [18:44:16]Sock 9.First char is OK [18:44:16]request: POST /json_proto HTTP/1.0 [18:44:16]Method: POST [18:44:16]URL: /json_proto [18:44:16]Method is POST - this is cgi request [18:44:16]url: /json_proto [18:44:16]query_string will be loaded in cgi processing [18:44:16]execute_cgi json_proto POST (null) [18:44:16]execute_cgi path=json_proto method=POST [18:44:16]POST find Content-Length [18:44:16]Host: 172.17.46.131:8080 [18:44:16]Content-Length: 677 [18:44:16]Content-Type: application/json [18:44:16] [18:44:16]POST finish read [18:44:16]Found Content-Length = 677 [18:44:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412303", "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.330, "sum" : 470.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:16]execute_script... [18:44: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)412303", "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.330, "sum" : 470.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:16]POST & json_proto [18:44:16]process_json_proto [18:44:16]json parsed OK: [18:44:16]protocol is kg_v1.0 [18:44:16]action value=close_receipt [18:44:16]process_action close_receipt [18:44:16]cmd_close_receipt [18:44:16]MH_GetDate [18:44:16]Write to MH i2c: F0 00 00 08 03 FA [18:44:16]Write i2c OK [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: F0 [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: F0 09 00 [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: F0 09 00 08 03 00 81 26 B6 67 7E 41 4F 65 3A [18:44:16]GetLastDocTimeStamp 1739990616 [18:44:16]current date 1739990657 [18:44:16]FM_GetShiftState [18:44:16]SAM_PROTO_GetShiftState [18:44:16]wFMCommunicate request_size=4 [18:44:16]MH_SAM_APDU [18:44:16]CAPDU: 80 13 01 00 [18:44:16]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [18:44:16]Write i2c OK [18:44:16]MH_I2C_Read... [18:44:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:16]Read from MH i2c: E2 [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: E2 0E 00 [18:44:16]MH_I2C_Read... [18:44:16]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 08 [18:44:16]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:44:16]wFMCommunicate OK [18:44:16]SAM_PROTO_GetShiftState done [18:44:16]FM_GetShiftState done [18:44:16]opened in 1739929631 [18:44:16]opened+sec_in_day 1740016031 [18:44:16]quantity*price = 47058 [18:44:16]sum+1 = 47060 [18:44:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 470.00 Внесено: 470.00 СДАЧА: 0.00 НСП 1% : 4.16 НДС 12% : 49.97 Наличными: 470.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 215 19.02.2025 18:44 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187149 ФПД: 43454146901983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T184417&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187149&fm=43454146901983&tin=02508201610067®Number=0000000000091857&sum=47000 [18:44:17]StoreToDocumentArchive [18:44:17]shift 647 fd 187149 [18:44:17]save to /storage/0647/doc_00187149 [18:44:17]save last doc name /storage/0647/doc_00187149 to /storage/kkm_last_doc_name [18:44:17]save OK [18:44:17]Clear old archive folders... [18:44:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:17]tlvbuf is 01F3F890 [18:44:17]SAM_PROTO_ClearQueue [18:44:17]wFMCommunicate request_size=4 [18:44:17]MH_SAM_APDU [18:44:17]CAPDU: 80 09 00 00 [18:44:17]Write to MH i2c: E2 08 00 16 03 80 09 00 00 00 00 00 00 8B [18:44:17]Write i2c OK [18:44:17]MH_I2C_Read... [18:44:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:17]Read from MH i2c: E2 [18:44:17]MH_I2C_Read... [18:44:17]Read from MH i2c: E2 03 00 [18:44:17]MH_I2C_Read... [18:44:17]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [18:44:17]RAPDU: 90 00 [18:44:17]wFMCommunicate OK [18:44:17]SAM_PROTO_ClearQueue done [18:44:17]KKMCreateOFDPacket [18:44:17]OFDProtocolAddRootSTLVToBuf [18:44:17]FM_MakeSignedData [18:44:17]FM_MakeSignedData [18:44:17]SAM_PROTO_SignData [18:44:17]wFMCommunicate request_size=4 [18:44:17]MH_SAM_APDU [18:44:17]CAPDU: 80 0D 01 02 [18:44:17]Write to MH i2c: E2 08 00 17 03 80 0D 01 02 00 00 00 00 93 [18:44:17]Write i2c OK [18:44:17]MH_I2C_Read... [18:44:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:18]Read from MH i2c: E2 [18:44:18]MH_I2C_Read... [18:44:18]Read from MH i2c: E2 03 00 [18:44:18]MH_I2C_Read... [18:44:18]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [18:44:18]RAPDU: 90 00 [18:44:18]wFMCommunicate OK [18:44:18]wFMCommunicate request_size=255 [18:44:18]MH_SAM_APDU [18:44: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 A2 1C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 D3 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 13 00 00 00 00 07 04 06 00 98 B7 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 81 26 B6 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 0D DB 02 00 35 04 06 00 27 [18:44:18]Write to MH i2c: E2 02 01 18 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 A2 1C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 D3 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 13 00 00 00 00 07 04 06 00 98 B7 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 81 26 B6 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 0D DB 02 00 35 04 06 00 27 00 00 20 [18:44:18]Write i2c OK [18:44:18]MH_I2C_Read... [18:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:18]Read from MH i2c: E2 [18:44:18]MH_I2C_Read... [18:44:18]Read from MH i2c: E2 03 00 [18:44:18]MH_I2C_Read... [18:44:18]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [18:44:18]RAPDU: 90 00 [18:44:18]wFMCommunicate OK [18:44:18]wFMCommunicate request_size=10 [18:44:18]MH_SAM_APDU [18:44:18]CAPDU: 80 0D 02 02 05 85 74 FD 77 DF [18:44:18]Write to MH i2c: E2 0D 00 19 03 80 0D 02 02 05 00 85 74 FD 77 DF 00 00 EC [18:44:18]Write i2c OK [18:44:18]MH_I2C_Read... [18:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:18]Read from MH i2c: E2 [18:44:18]MH_I2C_Read... [18:44:18]Read from MH i2c: E2 03 00 [18:44:18]MH_I2C_Read... [18:44:18]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [18:44:18]RAPDU: 90 00 [18:44:18]wFMCommunicate OK [18:44:18]wFMCommunicate request_size=4 [18:44:18]MH_SAM_APDU [18:44:18]CAPDU: 80 0D 03 02 [18:44:18]Write to MH i2c: E2 08 00 1A 03 80 0D 03 02 00 00 00 00 98 [18:44:18]Write i2c OK [18:44:18]MH_I2C_Read... [18:44:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:18]Read from MH i2c: E2 [18:44:18]MH_I2C_Read... [18:44:18]Read from MH i2c: E2 0B 00 [18:44:18]MH_I2C_Read... [18:44:18]Read from MH i2c: E2 0B 00 1A 03 00 F9 1B 71 1F 3C D9 29 06 90 00 81 [18:44:18]RAPDU: F9 1B 71 1F 3C D9 29 06 90 00 [18:44:18]wFMCommunicate OK [18:44:18]SAM_PROTO_SignData done [18:44:18]FM_MakeSignedData done [18:44:18]CreateOFDProtocolMessage [18:44:18]wFMCommunicate request_size=4 [18:44:18]MH_SAM_APDU [18:44:18]CAPDU: 80 11 00 00 [18:44:18]Write to MH i2c: E2 08 00 1B 03 80 11 00 00 00 00 00 00 98 [18:44:18]Write i2c OK [18:44:18]MH_I2C_Read... [18:44:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:18]Read from MH i2c: E2 [18:44:18]MH_I2C_Read... [18:44:18]Read from MH i2c: E2 17 00 [18:44:18]MH_I2C_Read... [18:44:18]Read from MH i2c: E2 17 00 1B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EB [18:44:18]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:18]wFMCommunicate OK [18:44:18]CreateOFDProtocolMessage done [18:44:18]OFDSenderStorePacket 187149 [18:44:18]StoreOFDPacket docnum=187149 [18:44: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 3E 39 07 01 8C A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A2 1C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 D3 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 13 00 00 00 00 07 04 06 00 98 B7 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 81 26 B6 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 0D DB 02 00 35 04 06 00 27 85 74 FD 77 DF F9 1B 71 1F 3C D9 29 06 [18:44:18]CheckFolder [18:44:18]dirname=/storage/ofd_packets [18:44:18]CheckFolder done [18:44:18]ProducePacketName [18:44:18]name=ofd_packets/00187149 [18:44:18]NVStorageSaveData ofd_packets/00187149 [18:44:18]File name is /storage/ofd_packets/00187149 [18:44:18]Write 301 bytes [18:44:18]NVStorageSaveData done [18:44:18]OFDSenderStorePacket done [18:44:18]KKMCreateOFDPacket done [18:44:18]NVStorageSaveData kkm_last_timestamp [18:44:18]File name is /storage/kkm_last_timestamp [18:44:18]Write 4 bytes [18:44:18]NVStorageSaveData done [18:44:18]ExternCall_PrintAddStr [18:44:18]wPrintStart [18:44:18]Write to MH i2c: 01 00 00 1C 03 1F [18:44:18]Write i2c OK [18:44:18]MH_I2C_Read... [18:44:18]Read from MH i2c: 01 [18:44:18]MH_I2C_Read... [18:44:18]Read from MH i2c: 01 07 00 [18:44:18]MH_I2C_Read... [18:44:18]Read from MH i2c: 01 07 00 1C 03 00 00 00 00 00 FF 0F 34 [18:44:18]RasterBufferAndPrint [18:44:18]line Счет N : (1)412303 [18:44:18]line ИНН: 02508201610067 [18:44:18]line Контрольно-Кассовый Чек [18:44:18]line ПРОДАЖА [18:44:18]line ТРК (МРК, ГНК) : 12 [18:44:18]line Товар: 2710124130 [18:44:18]line Аи-92-К-2 [18:44:18]line 7.330 * 64.20 [18:44:18]line = 470.59 [18:44:18]line НДС 12% НСП 1% [18:44:18]line > о реализуемом товаре [18:44:18]line ОКРУГЛЕНИЕ: -0.59 [18:44:18]line ИТОГО: 470.00 [18:44:18]line Внесено: 470.00 [18:44:18]line СДАЧА: 0.00 [18:44:18]line НСП 1% : 4.16 [18:44:18]line НДС 12% : 49.97 [18:44:18]line Наличными: 470.00 [18:44:18]line Безнал.: 0.00 [18:44:18]line Место: АЗС № 92 "Партнер Нефть" [18:44:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:44:18]line СНО: Общий режим [18:44:18]line Чек 215 19.02.2025 18:44 [18:44:18]line Смена: 647 ФФД: 1.0 [18:44:18]line ЗНМ: 0300000118 [18:44:18]line РНМ: 0000000000091857 [18:44:18]line Версия ККМ: 001 [18:44:18]line ФМ: 0000000000871826 [18:44:18]line ФД: 187149 [18:44:18]line ФПД: 43454146901983 [18:44:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T184417&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187149&fm=43454146901983&tin=02508201610067®Number=0000000000091857&sum=47000 [18:44:18]written 0, free lines is 4095 [18:44:18]OFD Sender: Processing packet 187149 [packets to send 49, broken 48] [18:44:18]ProducePacketName [18:44:18]name=ofd_packets/00187149 [18:44:18]OFD Sender: To server: pG, [18:44:18]CommunicateWithHost lk.salyk.kg:30040 [18:44:18]ConnectInit lk.salyk.kg [18:44:18]Connected sock=10 [18:44: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 3E 39 07 01 8C A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A2 1C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 D3 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 13 00 00 00 00 07 04 06 00 98 B7 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 81 26 B6 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 0D DB 02 00 35 04 06 00 27 85 74 FD 77 DF F9 1B 71 1F 3C D9 29 06 [18:44: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 FF 31 47 00 9A 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0D DB 02 00 F4 03 04 00 D4 CC B5 67 B6 04 01 00 00 3D 7C 6D AF 18 E8 C1 16 [18:44:19]CommunicateWithHost err = 0 [18:44:19]CheckOFDResponse [18:44:19]1017 (14) - 77093643461234 [18:44:19]1041 (16) - 0000000000871826 [18:44:19]1040 (4) - 187149 [18:44:19]1012 (4) - 19.02.2025 12:21 [18:44:19]1206 (1) - 0 [18:44:19]OFD Sender: Remove packet 187149 [18:44:19]ProducePacketName [18:44:19]name=ofd_packets/00187149 [18:44:19]NVStorageDeleteData [18:44:19]Write to MH i2c: 01 00 00 47 03 4A [18:44:19]Write i2c OK [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: 01 [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: 01 07 00 [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: 01 07 00 47 03 00 00 00 00 00 EA 0C 47 [18:44:19]RasterBufferAndPrint [18:44:19]line [18:44:19]line [18:44:19]line [18:44:19]line [18:44:19]line [18:44:19]written 0, free lines is 3313 [18:44:19]MH_Cut [18:44:19]Write to MH i2c: D1 01 00 4E 03 01 23 [18:44:19]Write i2c OK [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: D1 [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: D1 01 00 [18:44:19]MH_I2C_Read... [18:44:19]Read from MH i2c: D1 01 00 4E 03 00 22 [18:44:19]Write to MH i2c: 01 00 00 4F 03 52 [18:44:19]Write i2c OK [18:44:19]MH_I2C_Read... [18:44:19]OFD Sender: No OFD packet to send [18:44:19]*** Cut start [18:44:19]*** Partial cut [18:44:19]*** CUTSNS_PIN = 1 [18:44:20]*** CUTSNS_PIN = 0 [18:44:20]*** Brake cut motor [18:44:20]Read from MH i2c: 01 [18:44:20]MH_I2C_Read... [18:44:20]*** Stop cut motor [18:44:20]*** Cut end [18:44:20]Read from MH i2c: 01 07 00 [18:44:20]MH_I2C_Read... [18:44:20]Read from MH i2c: 01 07 00 4F 03 00 00 00 00 00 FF 0F 67 [18:44:20]process_action close_receipt done [18:44:20]requested_data is exist [18:44:20]produce_requested_data [18:44:20]requested_item fm.sn is exist - process it [18:44:20]wFMCommunicate request_size=4 [18:44:20]MH_SAM_APDU [18:44:20]CAPDU: 80 11 00 00 [18:44:20]Write to MH i2c: E2 08 00 50 03 80 11 00 00 00 00 00 00 CD [18:44:20]Write i2c OK [18:44:20]MH_I2C_Read... [18:44:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:20]Read from MH i2c: E2 [18:44:20]MH_I2C_Read... [18:44:20]Read from MH i2c: E2 17 00 [18:44:20]MH_I2C_Read... [18:44:20]Read from MH i2c: E2 17 00 50 03 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:44: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:44:20]wFMCommunicate OK [18:44:20]requested_item fd.num is exist - process it [18:44:20]SAM_PROTO_GetFieldsCounters [18:44:20]wFMCommunicate request_size=4 [18:44:20]MH_SAM_APDU [18:44:20]CAPDU: 80 13 00 00 [18:44:20]Write to MH i2c: E2 08 00 51 03 80 13 00 00 00 00 00 00 D0 [18:44:20]Write i2c OK [18:44:20]MH_I2C_Read... [18:44:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:20]Read from MH i2c: E2 [18:44:20]MH_I2C_Read... [18:44:20]Read from MH i2c: E2 62 00 [18:44:20]MH_I2C_Read... [18:44:20]Read from MH i2c: E2 62 00 51 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 0D DB 02 00 0E 04 04 00 87 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 EE [18:44: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 0D DB 02 00 0E 04 04 00 87 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 [18:44:20]wFMCommunicate OK [18:44:20]SAM_PROTO_GetFieldsCounters done [18:44:20]requested_item shift.num is exist - process it [18:44:20]requested_item shift.opened is exist - process it [18:44:20]req_shift_opened [18:44:20]FM_GetShiftState [18:44:20]SAM_PROTO_GetShiftState [18:44:20]wFMCommunicate request_size=4 [18:44:20]MH_SAM_APDU [18:44:20]CAPDU: 80 13 01 00 [18:44:20]Write to MH i2c: E2 08 00 52 03 80 13 01 00 00 00 00 00 D2 [18:44:20]Write i2c OK [18:44:20]MH_I2C_Read... [18:44:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:20]Read from MH i2c: E2 [18:44:20]MH_I2C_Read... [18:44:20]Read from MH i2c: E2 0E 00 [18:44:20]MH_I2C_Read... [18:44:20]Read from MH i2c: E2 0E 00 52 03 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 51 [18:44:20]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:44:20]wFMCommunicate OK [18:44:20]SAM_PROTO_GetShiftState done [18:44:20]FM_GetShiftState done [18:44:20]req_shift_opened done [18:44:20]requested_item shift.open_date is exist - process it [18:44:20]req_shift_open_date [18:44:20]req_shift_open_date done [18:44:20]produce_requested_data done [18:44:20]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187149,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [18:44:20]process_action_free close_receipt [18:44:20]json_value_free [18:44:20]json_value_free done [18:44:20]process_json_proto returns [18:44:20]Send response to host [18:44:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187149,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [18:44:20]free response buf [18:44:20]execute_script done [18:44:20]execute_script returns [18:44:20]free content buf [18:44:20]Sock 9.Close socket [18:44:20]Sock 9.Thread stoped [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:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:04]accept exits with 7 [18:50:04]New connection [18:50:04]New thread 3066510692 created [18:50:04]Thread 3066654052 joined [18:50:04]Waiting for new connection... [18:50:04] Sock 7.Parse request [18:50:04]Sock 7.Check first char [18:50:04]Sock 7.First char is OK [18:50:04]request: POST /json_proto HTTP/1.0 [18:50:04]Method: POST [18:50:04]URL: /json_proto [18:50:04]Method is POST - this is cgi request [18:50:04]url: /json_proto [18:50:04]query_string will be loaded in cgi processing [18:50:04]execute_cgi json_proto POST (null) [18:50:04]execute_cgi path=json_proto method=POST [18:50:04]POST find Content-Length [18:50:04]Host: 172.17.46.131:8080 [18:50:04]Content-Length: 799 [18:50:04]Content-Type: application/json [18:50:04] [18:50:04]POST finish read [18:50:04]Found Content-Length = 799 [18:50:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412304", "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" : 41.330, "sum" : 3000.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" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:04]execute_script... [18:50: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)412304", "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" : 41.330, "sum" : 3000.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" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:04]POST & json_proto [18:50:04]process_json_proto [18:50:04]json parsed OK: [18:50:04]protocol is kg_v1.0 [18:50:04]action value=close_receipt [18:50:04]process_action close_receipt [18:50:04]cmd_close_receipt [18:50:04]MH_GetDate [18:50:04]Write to MH i2c: F0 00 00 53 03 45 [18:50:04]Write i2c OK [18:50:04]MH_I2C_Read... [18:50:04]Read from MH i2c: F0 [18:50:04]MH_I2C_Read... [18:50:04]Read from MH i2c: F0 09 00 [18:50:04]MH_I2C_Read... [18:50:04]Read from MH i2c: F0 09 00 53 03 00 DD 27 B6 67 7E 41 4F 65 E2 [18:50:04]GetLastDocTimeStamp 1739990657 [18:50:04]current date 1739991005 [18:50:04]FM_GetShiftState [18:50:04]SAM_PROTO_GetShiftState [18:50:04]wFMCommunicate request_size=4 [18:50:04]MH_SAM_APDU [18:50:04]CAPDU: 80 13 01 00 [18:50:04]Write to MH i2c: E2 08 00 54 03 80 13 01 00 00 00 00 00 D4 [18:50:04]Write i2c OK [18:50:04]MH_I2C_Read... [18:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:04]Read from MH i2c: E2 [18:50:04]MH_I2C_Read... [18:50:04]Read from MH i2c: E2 0E 00 [18:50:04]MH_I2C_Read... [18:50:04]Read from MH i2c: E2 0E 00 54 03 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 53 [18:50:04]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:50:04]wFMCommunicate OK [18:50:04]SAM_PROTO_GetShiftState done [18:50:04]FM_GetShiftState done [18:50:04]opened in 1739929631 [18:50:04]opened+sec_in_day 1740016031 [18:50:04]quantity*price = 300055 [18:50:04]sum+1 = 300057 [18:50:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.56 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.56 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 216 19.02.2025 18:50 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187150 ФПД: 37242598744115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T185005&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187150&fm=37242598744115&tin=02508201610067®Number=0000000000091857&sum=300056 [18:50:05]StoreToDocumentArchive [18:50:05]shift 647 fd 187150 [18:50:05]save to /storage/0647/doc_00187150 [18:50:05]save last doc name /storage/0647/doc_00187150 to /storage/kkm_last_doc_name [18:50:05]save OK [18:50:05]Clear old archive folders... [18:50:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:50:05]tlvbuf is 01F3DF50 [18:50:05]SAM_PROTO_ClearQueue [18:50:05]wFMCommunicate request_size=4 [18:50:05]MH_SAM_APDU [18:50:05]CAPDU: 80 09 00 00 [18:50:05]Write to MH i2c: E2 08 00 61 03 80 09 00 00 00 00 00 00 D6 [18:50:05]Write i2c OK [18:50:05]MH_I2C_Read... [18:50:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:05]Read from MH i2c: E2 [18:50:05]MH_I2C_Read... [18:50:05]Read from MH i2c: E2 03 00 [18:50:05]MH_I2C_Read... [18:50:05]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [18:50:05]RAPDU: 90 00 [18:50:05]wFMCommunicate OK [18:50:05]SAM_PROTO_ClearQueue done [18:50:05]KKMCreateOFDPacket [18:50:05]OFDProtocolAddRootSTLVToBuf [18:50:05]FM_MakeSignedData [18:50:05]FM_MakeSignedData [18:50:05]SAM_PROTO_SignData [18:50:05]wFMCommunicate request_size=4 [18:50:05]MH_SAM_APDU [18:50:05]CAPDU: 80 0D 01 02 [18:50:05]Write to MH i2c: E2 08 00 62 03 80 0D 01 02 00 00 00 00 DE [18:50:05]Write i2c OK [18:50:05]MH_I2C_Read... [18:50:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:05]Read from MH i2c: E2 [18:50:05]MH_I2C_Read... [18:50:05]Read from MH i2c: E2 03 00 [18:50:05]MH_I2C_Read... [18:50:05]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [18:50:05]RAPDU: 90 00 [18:50:05]wFMCommunicate OK [18:50:05]wFMCommunicate request_size=255 [18:50:05]MH_SAM_APDU [18:50:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 DD 27 B6 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 0E DB 02 00 35 04 06 00 21 DF 37 DE [18:50:05]Write to MH i2c: E2 02 01 63 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 DD 27 B6 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 0E DB 02 00 35 04 06 00 21 DF 37 DE 00 00 BA [18:50:05]Write i2c OK [18:50:05]MH_I2C_Read... [18:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:06]Read from MH i2c: E2 [18:50:06]MH_I2C_Read... [18:50:06]Read from MH i2c: E2 03 00 [18:50:06]MH_I2C_Read... [18:50:06]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [18:50:06]RAPDU: 90 00 [18:50:06]wFMCommunicate OK [18:50:06]wFMCommunicate request_size=7 [18:50:06]MH_SAM_APDU [18:50:06]CAPDU: 80 0D 02 02 02 60 33 [18:50:06]Write to MH i2c: E2 0A 00 64 03 80 0D 02 02 02 00 60 33 00 00 78 [18:50:06]Write i2c OK [18:50:06]MH_I2C_Read... [18:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:06]Read from MH i2c: E2 [18:50:06]MH_I2C_Read... [18:50:06]Read from MH i2c: E2 03 00 [18:50:06]MH_I2C_Read... [18:50:06]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [18:50:06]RAPDU: 90 00 [18:50:06]wFMCommunicate OK [18:50:06]wFMCommunicate request_size=4 [18:50:06]MH_SAM_APDU [18:50:06]CAPDU: 80 0D 03 02 [18:50:06]Write to MH i2c: E2 08 00 65 03 80 0D 03 02 00 00 00 00 E3 [18:50:06]Write i2c OK [18:50:06]MH_I2C_Read... [18:50:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:06]Read from MH i2c: E2 [18:50:06]MH_I2C_Read... [18:50:06]Read from MH i2c: E2 0B 00 [18:50:06]MH_I2C_Read... [18:50:06]Read from MH i2c: E2 0B 00 65 03 00 C2 36 1D 69 ED D9 C1 99 90 00 82 [18:50:06]RAPDU: C2 36 1D 69 ED D9 C1 99 90 00 [18:50:06]wFMCommunicate OK [18:50:06]SAM_PROTO_SignData done [18:50:06]FM_MakeSignedData done [18:50:06]CreateOFDProtocolMessage [18:50:06]wFMCommunicate request_size=4 [18:50:06]MH_SAM_APDU [18:50:06]CAPDU: 80 11 00 00 [18:50:06]Write to MH i2c: E2 08 00 66 03 80 11 00 00 00 00 00 00 E3 [18:50:06]Write i2c OK [18:50:06]MH_I2C_Read... [18:50:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:06]Read from MH i2c: E2 [18:50:06]MH_I2C_Read... [18:50:06]Read from MH i2c: E2 17 00 [18:50:06]MH_I2C_Read... [18:50:06]Read from MH i2c: E2 17 00 66 03 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:50:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:50:06]wFMCommunicate OK [18:50:06]CreateOFDProtocolMessage done [18:50:06]OFDSenderStorePacket 187150 [18:50:06]StoreOFDPacket docnum=187150 [18:50: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 0C 01 00 00 53 29 04 01 33 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 DD 27 B6 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 0E DB 02 00 35 04 06 00 21 DF 37 DE 60 33 C2 36 1D 69 ED D9 C1 99 [18:50:06]CheckFolder [18:50:06]dirname=/storage/ofd_packets [18:50:06]CheckFolder done [18:50:06]ProducePacketName [18:50:06]name=ofd_packets/00187150 [18:50:06]NVStorageSaveData ofd_packets/00187150 [18:50:06]File name is /storage/ofd_packets/00187150 [18:50:06]Write 298 bytes [18:50:06]NVStorageSaveData done [18:50:06]OFDSenderStorePacket done [18:50:06]KKMCreateOFDPacket done [18:50:06]NVStorageSaveData kkm_last_timestamp [18:50:06]File name is /storage/kkm_last_timestamp [18:50:06]Write 4 bytes [18:50:06]NVStorageSaveData done [18:50:06]ExternCall_PrintAddStr [18:50:06]wPrintStart [18:50:06]Write to MH i2c: 01 00 00 67 03 6A [18:50:06]Write i2c OK [18:50:06]MH_I2C_Read... [18:50:06]Read from MH i2c: 01 [18:50:06]MH_I2C_Read... [18:50:06]Read from MH i2c: 01 07 00 [18:50:06]MH_I2C_Read... [18:50:06]Read from MH i2c: 01 07 00 67 03 00 00 00 00 00 FF 0F 7F [18:50:06]RasterBufferAndPrint [18:50:06]line Счет N : (1)412304 [18:50:06]line ИНН: 02508201610067 [18:50:06]line Контрольно-Кассовый Чек [18:50:06]line ПРОДАЖА [18:50:06]line ТРК (МРК, ГНК) : 5 [18:50:06]line Товар: 2710194210 [18:50:06]line ДТ-К-5 [18:50:06]line 41.330 * 72.60 [18:50:06]line = 3000.56 [18:50:06]line НДС 12% НСП 1% [18:50:06]line > о реализуемом товаре [18:50:06]line ИТОГО: 3000.56 [18:50:06]line НСП 1% : 26.55 [18:50:06]line НДС 12% : 318.64 [18:50:06]line Наличными: 0.00 [18:50:06]line Безнал.: 3000.56 [18:50:06]line Место: АЗС № 92 "Партнер Нефть" [18:50:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:50:06]line СНО: Общий режим [18:50:06]line Чек 216 19.02.2025 18:50 [18:50:06]line Смена: 647 ФФД: 1.0 [18:50:06]line ЗНМ: 0300000118 [18:50:06]line РНМ: 0000000000091857 [18:50:06]line Версия ККМ: 001 [18:50:06]line Платежная система: O! деньги [18:50:06]line ФМ: 0000000000871826 [18:50:06]line ФД: 187150 [18:50:06]line ФПД: 37242598744115 [18:50:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T185005&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187150&fm=37242598744115&tin=02508201610067®Number=0000000000091857&sum=300056 [18:50:06]OFD Sender: Processing packet 187150 [packets to send 49, broken 48] [18:50:06]ProducePacketName [18:50:06]name=ofd_packets/00187150 [18:50:06]OFD Sender: To server: pG, [18:50:06]CommunicateWithHost lk.salyk.kg:30040 [18:50:06]ConnectInit lk.salyk.kg [18:50:06]written 0, free lines is 4095 [18:50:06]Connected sock=10 [18:50:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 53 29 04 01 33 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 DD 27 B6 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 0E DB 02 00 35 04 06 00 21 DF 37 DE 60 33 C2 36 1D 69 ED D9 C1 99 [18:50: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 D7 D5 47 00 9A D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0E DB 02 00 F4 03 04 00 30 CE B5 67 B6 04 01 00 00 75 2A DA E5 70 85 B2 BD [18:50:07]CommunicateWithHost err = 0 [18:50:07]CheckOFDResponse [18:50:07]1017 (14) - 77093643461234 [18:50:07]1041 (16) - 0000000000871826 [18:50:07]1040 (4) - 187150 [18:50:07]1012 (4) - 19.02.2025 12:27 [18:50:07]1206 (1) - 0 [18:50:07]OFD Sender: Remove packet 187150 [18:50:07]ProducePacketName [18:50:07]name=ofd_packets/00187150 [18:50:07]NVStorageDeleteData [18:50:07]Write to MH i2c: 01 00 00 91 03 94 [18:50:07]Write i2c OK [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: 01 [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: 01 07 00 [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: 01 07 00 91 03 00 00 00 00 00 0A 0D B2 [18:50:07]RasterBufferAndPrint [18:50:07]line [18:50:07]line [18:50:07]line [18:50:07]line [18:50:07]line [18:50:07]written 0, free lines is 3344 [18:50:07]MH_Cut [18:50:07]Write to MH i2c: D1 01 00 98 03 01 6D [18:50:07]Write i2c OK [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: D1 [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: D1 01 00 [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: D1 01 00 98 03 00 6C [18:50:07]Write to MH i2c: 01 00 00 99 03 9C [18:50:07]Write i2c OK [18:50:07]MH_I2C_Read... [18:50:07]OFD Sender: No OFD packet to send [18:50:07]*** Cut start [18:50:07]*** Partial cut [18:50:07]*** CUTSNS_PIN = 1 [18:50:07]*** CUTSNS_PIN = 0 [18:50:08]*** Brake cut motor [18:50:08]Read from MH i2c: 01 [18:50:08]MH_I2C_Read... [18:50:08]*** Stop cut motor [18:50:08]*** Cut end [18:50:08]Read from MH i2c: 01 07 00 [18:50:08]MH_I2C_Read... [18:50:08]Read from MH i2c: 01 07 00 99 03 00 00 00 00 00 FF 0F B1 [18:50:08]process_action close_receipt done [18:50:08]requested_data is exist [18:50:08]produce_requested_data [18:50:08]requested_item fm.sn is exist - process it [18:50:08]wFMCommunicate request_size=4 [18:50:08]MH_SAM_APDU [18:50:08]CAPDU: 80 11 00 00 [18:50:08]Write to MH i2c: E2 08 00 9A 03 80 11 00 00 00 00 00 00 17 [18:50:08]Write i2c OK [18:50:08]MH_I2C_Read... [18:50:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:08]Read from MH i2c: E2 [18:50:08]MH_I2C_Read... [18:50:08]Read from MH i2c: E2 17 00 [18:50:08]MH_I2C_Read... [18:50:08]Read from MH i2c: E2 17 00 9A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6A [18:50: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:50:08]wFMCommunicate OK [18:50:08]requested_item fd.num is exist - process it [18:50:08]SAM_PROTO_GetFieldsCounters [18:50:08]wFMCommunicate request_size=4 [18:50:08]MH_SAM_APDU [18:50:08]CAPDU: 80 13 00 00 [18:50:08]Write to MH i2c: E2 08 00 9B 03 80 13 00 00 00 00 00 00 1A [18:50:08]Write i2c OK [18:50:08]MH_I2C_Read... [18:50:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:08]Read from MH i2c: E2 [18:50:08]MH_I2C_Read... [18:50:08]Read from MH i2c: E2 62 00 [18:50:08]MH_I2C_Read... [18:50:08]Read from MH i2c: E2 62 00 9B 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 0E DB 02 00 0E 04 04 00 87 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 3C [18:50:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DB 02 00 0E 04 04 00 87 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 [18:50:08]wFMCommunicate OK [18:50:08]SAM_PROTO_GetFieldsCounters done [18:50:08]requested_item shift.num is exist - process it [18:50:08]requested_item shift.opened is exist - process it [18:50:08]req_shift_opened [18:50:08]FM_GetShiftState [18:50:08]SAM_PROTO_GetShiftState [18:50:08]wFMCommunicate request_size=4 [18:50:08]MH_SAM_APDU [18:50:08]CAPDU: 80 13 01 00 [18:50:08]Write to MH i2c: E2 08 00 9C 03 80 13 01 00 00 00 00 00 1C [18:50:08]Write i2c OK [18:50:08]MH_I2C_Read... [18:50:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:08]Read from MH i2c: E2 [18:50:08]MH_I2C_Read... [18:50:08]Read from MH i2c: E2 0E 00 [18:50:08]MH_I2C_Read... [18:50:08]Read from MH i2c: E2 0E 00 9C 03 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 9B [18:50:08]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:50:08]wFMCommunicate OK [18:50:08]SAM_PROTO_GetShiftState done [18:50:08]FM_GetShiftState done [18:50:08]req_shift_opened done [18:50:08]requested_item shift.open_date is exist - process it [18:50:08]req_shift_open_date [18:50:08]req_shift_open_date done [18:50:08]produce_requested_data done [18:50:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187150,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [18:50:08]process_action_free close_receipt [18:50:08]json_value_free [18:50:08]json_value_free done [18:50:08]process_json_proto returns [18:50:08]Send response to host [18:50:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187150,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [18:50:08]free response buf [18:50:08]execute_script done [18:50:08]execute_script returns [18:50:08]free content buf [18:50:08]Sock 7.Close socket [18:50:08]Sock 7.Thread stoped [18:50:12]OFD Sender: No OFD packet to send [18:50:17]OFD Sender: No OFD packet to send [18:50:22]OFD Sender: No OFD packet to send [18:50:27]OFD Sender: No OFD packet to send [18:50:32]OFD Sender: No OFD packet to send [18:50:37]OFD Sender: No OFD packet to send [18:50:42]OFD Sender: No OFD packet to send [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:57]OFD Sender: No OFD packet to send [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:17]OFD Sender: No OFD packet to send [18:52:22]OFD Sender: No OFD packet to send [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:47]OFD Sender: No OFD packet to send [18:52:52]OFD Sender: No OFD packet to send [18:52:57]OFD Sender: No OFD packet to send [18:53:02]OFD Sender: No OFD packet to send [18:53:07]OFD Sender: No OFD packet to send [18:53:12]OFD Sender: No OFD packet to send [18:53:17]OFD Sender: No OFD packet to send [18:53:22]OFD Sender: No OFD packet to send [18:53:27]OFD Sender: No OFD packet to send [18:53:32]OFD Sender: No OFD packet to send [18:53:37]OFD Sender: No OFD packet to send [18:53:42]OFD Sender: No OFD packet to send [18:53:45]accept exits with 9 [18:53:45]New connection [18:53:45]New thread 3066654052 created [18:53:45]Thread 3066510692 joined [18:53:45]Waiting for new connection... [18:53:45] Sock 9.Parse request [18:53:45]Sock 9.Check first char [18:53:45]Sock 9.First char is OK [18:53:45]request: POST /json_proto HTTP/1.0 [18:53:45]Method: POST [18:53:45]URL: /json_proto [18:53:45]Method is POST - this is cgi request [18:53:45]url: /json_proto [18:53:45]query_string will be loaded in cgi processing [18:53:45]execute_cgi json_proto POST (null) [18:53:45]execute_cgi path=json_proto method=POST [18:53:45]POST find Content-Length [18:53:45]Host: 172.17.46.131:8080 [18:53:45]Content-Length: 678 [18:53:45]Content-Type: application/json [18:53:45] [18:53:45]POST finish read [18:53:45]Found Content-Length = 678 [18:53:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412305", "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:53:45]execute_script... [18:53: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)412305", "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:53:45]POST & json_proto [18:53:45]process_json_proto [18:53:45]json parsed OK: [18:53:45]protocol is kg_v1.0 [18:53:45]action value=close_receipt [18:53:45]process_action close_receipt [18:53:45]cmd_close_receipt [18:53:45]MH_GetDate [18:53:45]Write to MH i2c: F0 00 00 9D 03 8F [18:53:45]Write i2c OK [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: F0 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: F0 09 00 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: F0 09 00 9D 03 00 BA 28 B6 67 7E 41 4F 65 0A [18:53:45]GetLastDocTimeStamp 1739991005 [18:53:45]current date 1739991226 [18:53:45]FM_GetShiftState [18:53:45]SAM_PROTO_GetShiftState [18:53:45]wFMCommunicate request_size=4 [18:53:45]MH_SAM_APDU [18:53:45]CAPDU: 80 13 01 00 [18:53:45]Write to MH i2c: E2 08 00 9E 03 80 13 01 00 00 00 00 00 1E [18:53:45]Write i2c OK [18:53:45]MH_I2C_Read... [18:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:45]Read from MH i2c: E2 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 0E 00 [18:53:45]MH_I2C_Read... [18:53:45]Read from MH i2c: E2 0E 00 9E 03 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 9D [18:53:45]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:53:45]wFMCommunicate OK [18:53:45]SAM_PROTO_GetShiftState done [18:53:45]FM_GetShiftState done [18:53:45]opened in 1739929631 [18:53:45]opened+sec_in_day 1740016031 [18:53:45]quantity*price = 100042 [18:53:45]sum+1 = 100044 [18:53:45]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 СНО: Общий режим Чек 217 19.02.2025 18:53 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187151 ФПД: 143966434758828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T185346&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187151&fm=143966434758828&tin=02508201610067®Number=0000000000091857&sum=100000 [18:53:46]StoreToDocumentArchive [18:53:46]shift 647 fd 187151 [18:53:46]save to /storage/0647/doc_00187151 [18:53:46]save last doc name /storage/0647/doc_00187151 to /storage/kkm_last_doc_name [18:53:46]save OK [18:53:46]Clear old archive folders... [18:53:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:53:46]tlvbuf is 01F5F990 [18:53:46]SAM_PROTO_ClearQueue [18:53:46]wFMCommunicate request_size=4 [18:53:46]MH_SAM_APDU [18:53:46]CAPDU: 80 09 00 00 [18:53:46]Write to MH i2c: E2 08 00 AB 03 80 09 00 00 00 00 00 00 20 [18:53:46]Write i2c OK [18:53:46]MH_I2C_Read... [18:53:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:47]Read from MH i2c: E2 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 03 00 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 03 00 AB 03 00 90 00 22 [18:53:47]RAPDU: 90 00 [18:53:47]wFMCommunicate OK [18:53:47]SAM_PROTO_ClearQueue done [18:53:47]KKMCreateOFDPacket [18:53:47]OFDProtocolAddRootSTLVToBuf [18:53:47]FM_MakeSignedData [18:53:47]FM_MakeSignedData [18:53:47]SAM_PROTO_SignData [18:53:47]wFMCommunicate request_size=4 [18:53:47]MH_SAM_APDU [18:53:47]CAPDU: 80 0D 01 02 [18:53:47]Write to MH i2c: E2 08 00 AC 03 80 0D 01 02 00 00 00 00 28 [18:53:47]Write i2c OK [18:53:47]MH_I2C_Read... [18:53:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:47]Read from MH i2c: E2 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 03 00 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [18:53:47]RAPDU: 90 00 [18:53:47]wFMCommunicate OK [18:53:47]wFMCommunicate request_size=255 [18:53:47]MH_SAM_APDU [18:53:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D9 00 00 00 F4 03 04 00 BA 28 B6 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 0F DB 02 00 35 04 06 00 82 EF CC 34 [18:53:47]Write to MH i2c: E2 02 01 AD 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D9 00 00 00 F4 03 04 00 BA 28 B6 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 0F DB 02 00 35 04 06 00 82 EF CC 34 00 00 8A [18:53:47]Write i2c OK [18:53:47]MH_I2C_Read... [18:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:47]Read from MH i2c: E2 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 03 00 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [18:53:47]RAPDU: 90 00 [18:53:47]wFMCommunicate OK [18:53:47]wFMCommunicate request_size=7 [18:53:47]MH_SAM_APDU [18:53:47]CAPDU: 80 0D 02 02 02 10 AC [18:53:47]Write to MH i2c: E2 0A 00 AE 03 80 0D 02 02 02 00 10 AC 00 00 EB [18:53:47]Write i2c OK [18:53:47]MH_I2C_Read... [18:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:47]Read from MH i2c: E2 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 03 00 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [18:53:47]RAPDU: 90 00 [18:53:47]wFMCommunicate OK [18:53:47]wFMCommunicate request_size=4 [18:53:47]MH_SAM_APDU [18:53:47]CAPDU: 80 0D 03 02 [18:53:47]Write to MH i2c: E2 08 00 AF 03 80 0D 03 02 00 00 00 00 2D [18:53:47]Write i2c OK [18:53:47]MH_I2C_Read... [18:53:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:47]Read from MH i2c: E2 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 0B 00 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 0B 00 AF 03 00 56 EE 31 10 33 5E B6 67 90 00 61 [18:53:47]RAPDU: 56 EE 31 10 33 5E B6 67 90 00 [18:53:47]wFMCommunicate OK [18:53:47]SAM_PROTO_SignData done [18:53:47]FM_MakeSignedData done [18:53:47]CreateOFDProtocolMessage [18:53:47]wFMCommunicate request_size=4 [18:53:47]MH_SAM_APDU [18:53:47]CAPDU: 80 11 00 00 [18:53:47]Write to MH i2c: E2 08 00 B0 03 80 11 00 00 00 00 00 00 2D [18:53:47]Write i2c OK [18:53:47]MH_I2C_Read... [18:53:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:47]Read from MH i2c: E2 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 17 00 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: E2 17 00 B0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 80 [18:53:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:53:47]wFMCommunicate OK [18:53:47]CreateOFDProtocolMessage done [18:53:47]OFDSenderStorePacket 187151 [18:53:47]StoreOFDPacket docnum=187151 [18:53: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 0C 01 00 00 50 A4 04 01 42 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 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 D9 00 00 00 F4 03 04 00 BA 28 B6 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 0F DB 02 00 35 04 06 00 82 EF CC 34 10 AC 56 EE 31 10 33 5E B6 67 [18:53:47]CheckFolder [18:53:47]dirname=/storage/ofd_packets [18:53:47]CheckFolder done [18:53:47]ProducePacketName [18:53:47]name=ofd_packets/00187151 [18:53:47]NVStorageSaveData ofd_packets/00187151 [18:53:47]File name is /storage/ofd_packets/00187151 [18:53:47]Write 298 bytes [18:53:47]NVStorageSaveData done [18:53:47]OFDSenderStorePacket done [18:53:47]KKMCreateOFDPacket done [18:53:47]NVStorageSaveData kkm_last_timestamp [18:53:47]File name is /storage/kkm_last_timestamp [18:53:47]Write 4 bytes [18:53:47]NVStorageSaveData done [18:53:47]ExternCall_PrintAddStr [18:53:47]wPrintStart [18:53:47]Write to MH i2c: 01 00 00 B1 03 B4 [18:53:47]Write i2c OK [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: 01 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: 01 07 00 [18:53:47]MH_I2C_Read... [18:53:47]Read from MH i2c: 01 07 00 B1 03 00 00 00 00 00 FF 0F C9 [18:53:47]RasterBufferAndPrint [18:53:47]line Счет N : (1)412305 [18:53:47]line ИНН: 02508201610067 [18:53:47]line Контрольно-Кассовый Чек [18:53:47]line ПРОДАЖА [18:53:47]line ТРК (МРК, ГНК) : 6 [18:53:47]line Товар: 2710194210 [18:53:47]line ДТ-К-5 [18:53:47]line 13.780 * 72.60 [18:53:47]line = 1000.43 [18:53:47]line НДС 12% НСП 1% [18:53:47]line > о реализуемом товаре [18:53:47]line ОКРУГЛЕНИЕ: -0.43 [18:53:47]line ИТОГО: 1000.00 [18:53:47]line Внесено: 1000.00 [18:53:47]line СДАЧА: 0.00 [18:53:47]line НСП 1% : 8.85 [18:53:47]line НДС 12% : 106.24 [18:53:47]line Наличными: 1000.00 [18:53:47]line Безнал.: 0.00 [18:53:47]line Место: АЗС № 92 "Партнер Нефть" [18:53:47]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:53:47]line СНО: Общий режим [18:53:47]line Чек 217 19.02.2025 18:53 [18:53:47]line Смена: 647 ФФД: 1.0 [18:53:47]line ЗНМ: 0300000118 [18:53:47]line РНМ: 0000000000091857 [18:53:47]line Версия ККМ: 001 [18:53:47]line ФМ: 0000000000871826 [18:53:47]line ФД: 187151 [18:53:47]line ФПД: 143966434758828 [18:53:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T185346&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187151&fm=143966434758828&tin=02508201610067®Number=0000000000091857&sum=100000 [18:53:47]OFD Sender: Processing packet 187151 [packets to send 49, broken 48] [18:53:47]ProducePacketName [18:53:47]name=ofd_packets/00187151 [18:53:47]OFD Sender: To server: pG, [18:53:47]CommunicateWithHost lk.salyk.kg:30040 [18:53:47]ConnectInit lk.salyk.kg [18:53:47]written 0, free lines is 4095 [18:53:47]Connected sock=10 [18: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 0C 01 00 00 50 A4 04 01 42 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 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 D9 00 00 00 F4 03 04 00 BA 28 B6 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 0F DB 02 00 35 04 06 00 82 EF CC 34 10 AC 56 EE 31 10 33 5E B6 67 [18: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 46 84 47 00 C0 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 0F DB 02 00 F4 03 04 00 0D CF B5 67 B6 04 01 00 00 BB 1C EC DB 59 D3 36 A7 [18:53:48]CommunicateWithHost err = 0 [18:53:48]CheckOFDResponse [18:53:48]1017 (14) - 77093643461234 [18:53:48]1041 (16) - 0000000000871826 [18:53:48]1040 (4) - 187151 [18:53:48]1012 (4) - 19.02.2025 12:31 [18:53:48]1206 (1) - 0 [18:53:48]OFD Sender: Remove packet 187151 [18:53:48]ProducePacketName [18:53:48]name=ofd_packets/00187151 [18:53:48]NVStorageDeleteData [18:53:48]Write to MH i2c: 01 00 00 DC 03 DF [18:53:48]Write i2c OK [18:53:48]MH_I2C_Read... [18:53:48]Read from MH i2c: 01 [18:53:48]MH_I2C_Read... [18:53:48]Read from MH i2c: 01 07 00 [18:53:48]MH_I2C_Read... [18:53:48]Read from MH i2c: 01 07 00 DC 03 00 00 00 00 00 FF 0C F1 [18:53:48]RasterBufferAndPrint [18:53:48]line [18:53:48]line [18:53:48]line [18:53:48]line [18:53:48]line [18:53:48]written 0, free lines is 3333 [18:53:48]MH_Cut [18:53:48]Write to MH i2c: D1 01 00 E3 03 01 B8 [18:53:48]Write i2c OK [18:53:48]MH_I2C_Read... [18:53:48]Read from MH i2c: D1 [18:53:48]MH_I2C_Read... [18:53:48]Read from MH i2c: D1 01 00 [18:53:48]MH_I2C_Read... [18:53:48]Read from MH i2c: D1 01 00 E3 03 00 B7 [18:53:48]Write to MH i2c: 01 00 00 E4 03 E7 [18:53:48]Write i2c OK [18:53:48]MH_I2C_Read... [18:53:48]OFD Sender: No OFD packet to send [18:53:48]*** Cut start [18:53:48]*** Partial cut [18:53:48]*** CUTSNS_PIN = 1 [18:53:49]*** CUTSNS_PIN = 0 [18:53:49]*** Brake cut motor [18:53:49]Read from MH i2c: 01 [18:53:49]MH_I2C_Read... [18:53:49]*** Stop cut motor [18:53:49]*** Cut end [18:53:49]Read from MH i2c: 01 07 00 [18:53:49]MH_I2C_Read... [18:53:49]Read from MH i2c: 01 07 00 E4 03 00 00 00 00 00 FF 0F FC [18:53:49]process_action close_receipt done [18:53:49]requested_data is exist [18:53:49]produce_requested_data [18:53:49]requested_item fm.sn is exist - process it [18:53:49]wFMCommunicate request_size=4 [18:53:49]MH_SAM_APDU [18:53:49]CAPDU: 80 11 00 00 [18:53:49]Write to MH i2c: E2 08 00 E5 03 80 11 00 00 00 00 00 00 62 [18:53:49]Write i2c OK [18:53:49]MH_I2C_Read... [18:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:49]Read from MH i2c: E2 [18:53:49]MH_I2C_Read... [18:53:49]Read from MH i2c: E2 17 00 [18:53:49]MH_I2C_Read... [18:53:49]Read from MH i2c: E2 17 00 E5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B5 [18:53: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:53:49]wFMCommunicate OK [18:53:49]requested_item fd.num is exist - process it [18:53:49]SAM_PROTO_GetFieldsCounters [18:53:49]wFMCommunicate request_size=4 [18:53:49]MH_SAM_APDU [18:53:49]CAPDU: 80 13 00 00 [18:53:49]Write to MH i2c: E2 08 00 E6 03 80 13 00 00 00 00 00 00 65 [18:53:49]Write i2c OK [18:53:49]MH_I2C_Read... [18:53:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:49]Read from MH i2c: E2 [18:53:49]MH_I2C_Read... [18:53:49]Read from MH i2c: E2 62 00 [18:53:49]MH_I2C_Read... [18:53:49]Read from MH i2c: E2 62 00 E6 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 0F DB 02 00 0E 04 04 00 87 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 8B [18:53: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 0F DB 02 00 0E 04 04 00 87 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 [18:53:49]wFMCommunicate OK [18:53:49]SAM_PROTO_GetFieldsCounters done [18:53:49]requested_item shift.num is exist - process it [18:53:49]requested_item shift.opened is exist - process it [18:53:49]req_shift_opened [18:53:49]FM_GetShiftState [18:53:49]SAM_PROTO_GetShiftState [18:53:49]wFMCommunicate request_size=4 [18:53:49]MH_SAM_APDU [18:53:49]CAPDU: 80 13 01 00 [18:53:49]Write to MH i2c: E2 08 00 E7 03 80 13 01 00 00 00 00 00 67 [18:53:49]Write i2c OK [18:53:49]MH_I2C_Read... [18:53:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:49]Read from MH i2c: E2 [18:53:49]MH_I2C_Read... [18:53:49]Read from MH i2c: E2 0E 00 [18:53:49]MH_I2C_Read... [18:53:49]Read from MH i2c: E2 0E 00 E7 03 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E6 [18:53:49]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:53:49]wFMCommunicate OK [18:53:49]SAM_PROTO_GetShiftState done [18:53:49]FM_GetShiftState done [18:53:49]req_shift_opened done [18:53:49]requested_item shift.open_date is exist - process it [18:53:49]req_shift_open_date [18:53:49]req_shift_open_date done [18:53:49]produce_requested_data done [18:53:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187151,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [18:53:49]process_action_free close_receipt [18:53:49]json_value_free [18:53:49]json_value_free done [18:53:49]process_json_proto returns [18:53:49]Send response to host [18:53:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187151,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [18:53:49]free response buf [18:53:49]execute_script done [18:53:49]execute_script returns [18:53:49]free content buf [18:53:49]Sock 9.Close socket [18:53:49]Sock 9.Thread stoped [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:08]OFD Sender: No OFD packet to send [18:54:08]accept exits with 7 [18:54:08]New connection [18:54:08]New thread 3066510692 created [18:54:08]Thread 3066654052 joined [18:54:08]Waiting for new connection... [18:54:08] Sock 7.Parse request [18:54:08]Sock 7.Check first char [18:54:08]Sock 7.First char is OK [18:54:08]request: POST /json_proto HTTP/1.0 [18:54:08]Method: POST [18:54:08]URL: /json_proto [18:54:08]Method is POST - this is cgi request [18:54:08]url: /json_proto [18:54:08]query_string will be loaded in cgi processing [18:54:08]execute_cgi json_proto POST (null) [18:54:08]execute_cgi path=json_proto method=POST [18:54:08]POST find Content-Length [18:54:08]Host: 172.17.46.131:8080 [18:54:08]Content-Length: 678 [18:54:08]Content-Type: application/json [18:54:08] [18:54:08]POST finish read [18:54:08]Found Content-Length = 678 [18:54:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412306", "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:54:08]execute_script... [18:54:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412306", "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:54:08]POST & json_proto [18:54:08]process_json_proto [18:54:08]json parsed OK: [18:54:08]protocol is kg_v1.0 [18:54:08]action value=close_receipt [18:54:08]process_action close_receipt [18:54:08]cmd_close_receipt [18:54:08]MH_GetDate [18:54:08]Write to MH i2c: F0 00 00 E8 03 DA [18:54:08]Write i2c OK [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: F0 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: F0 09 00 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: F0 09 00 E8 03 00 D1 28 B6 67 7E 41 4F 65 6C [18:54:08]GetLastDocTimeStamp 1739991226 [18:54:08]current date 1739991249 [18:54:08]FM_GetShiftState [18:54:08]SAM_PROTO_GetShiftState [18:54:08]wFMCommunicate request_size=4 [18:54:08]MH_SAM_APDU [18:54:08]CAPDU: 80 13 01 00 [18:54:08]Write to MH i2c: E2 08 00 E9 03 80 13 01 00 00 00 00 00 69 [18:54:08]Write i2c OK [18:54:08]MH_I2C_Read... [18:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:08]Read from MH i2c: E2 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: E2 0E 00 [18:54:08]MH_I2C_Read... [18:54:08]Read from MH i2c: E2 0E 00 E9 03 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E8 [18:54:08]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:54:08]wFMCommunicate OK [18:54:08]SAM_PROTO_GetShiftState done [18:54:08]FM_GetShiftState done [18:54:08]opened in 1739929631 [18:54:08]opened+sec_in_day 1740016031 [18:54:08]quantity*price = 100042 [18:54:08]sum+1 = 100044 [18:54:08]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 19.02.2025 18:54 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187152 ФПД: 48441183365103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T185409&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187152&fm=48441183365103&tin=02508201610067®Number=0000000000091857&sum=100000 [18:54:10]StoreToDocumentArchive [18:54:10]shift 647 fd 187152 [18:54:10]save to /storage/0647/doc_00187152 [18:54:10]save last doc name /storage/0647/doc_00187152 to /storage/kkm_last_doc_name [18:54:10]save OK [18:54:10]Clear old archive folders... [18:54:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:54:10]tlvbuf is 01F58280 [18:54:10]SAM_PROTO_ClearQueue [18:54:10]wFMCommunicate request_size=4 [18:54:10]MH_SAM_APDU [18:54:10]CAPDU: 80 09 00 00 [18:54:10]Write to MH i2c: E2 08 00 F6 03 80 09 00 00 00 00 00 00 6B [18:54:10]Write i2c OK [18:54:10]MH_I2C_Read... [18:54:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:10]Read from MH i2c: E2 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 03 00 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [18:54:10]RAPDU: 90 00 [18:54:10]wFMCommunicate OK [18:54:10]SAM_PROTO_ClearQueue done [18:54:10]KKMCreateOFDPacket [18:54:10]OFDProtocolAddRootSTLVToBuf [18:54:10]FM_MakeSignedData [18:54:10]FM_MakeSignedData [18:54:10]SAM_PROTO_SignData [18:54:10]wFMCommunicate request_size=4 [18:54:10]MH_SAM_APDU [18:54:10]CAPDU: 80 0D 01 02 [18:54:10]Write to MH i2c: E2 08 00 F7 03 80 0D 01 02 00 00 00 00 73 [18:54:10]Write i2c OK [18:54:10]MH_I2C_Read... [18:54:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:10]Read from MH i2c: E2 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 03 00 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 03 00 F7 03 00 90 00 6E [18:54:10]RAPDU: 90 00 [18:54:10]wFMCommunicate OK [18:54:10]wFMCommunicate request_size=255 [18:54:10]MH_SAM_APDU [18:54: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 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D1 28 B6 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 10 DB 02 00 35 04 06 00 2C 0E 97 86 [18:54:10]Write to MH i2c: E2 02 01 F8 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D1 28 B6 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 10 DB 02 00 35 04 06 00 2C 0E 97 86 00 00 D4 [18:54:10]Write i2c OK [18:54:10]MH_I2C_Read... [18:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:10]Read from MH i2c: E2 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 03 00 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [18:54:10]RAPDU: 90 00 [18:54:10]wFMCommunicate OK [18:54:10]wFMCommunicate request_size=7 [18:54:10]MH_SAM_APDU [18:54:10]CAPDU: 80 0D 02 02 02 E7 EF [18:54:10]Write to MH i2c: E2 0A 00 F9 03 80 0D 02 02 02 00 E7 EF 00 00 50 [18:54:10]Write i2c OK [18:54:10]MH_I2C_Read... [18:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:10]Read from MH i2c: E2 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 03 00 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [18:54:10]RAPDU: 90 00 [18:54:10]wFMCommunicate OK [18:54:10]wFMCommunicate request_size=4 [18:54:10]MH_SAM_APDU [18:54:10]CAPDU: 80 0D 03 02 [18:54:10]Write to MH i2c: E2 08 00 FA 03 80 0D 03 02 00 00 00 00 78 [18:54:10]Write i2c OK [18:54:10]MH_I2C_Read... [18:54:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:10]Read from MH i2c: E2 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 0B 00 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 0B 00 FA 03 00 ED 36 45 26 5E BF 34 CC 90 00 24 [18:54:10]RAPDU: ED 36 45 26 5E BF 34 CC 90 00 [18:54:10]wFMCommunicate OK [18:54:10]SAM_PROTO_SignData done [18:54:10]FM_MakeSignedData done [18:54:10]CreateOFDProtocolMessage [18:54:10]wFMCommunicate request_size=4 [18:54:10]MH_SAM_APDU [18:54:10]CAPDU: 80 11 00 00 [18:54:10]Write to MH i2c: E2 08 00 FB 03 80 11 00 00 00 00 00 00 78 [18:54:10]Write i2c OK [18:54:10]MH_I2C_Read... [18:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:10]Read from MH i2c: E2 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 17 00 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: E2 17 00 FB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CB [18:54: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:54:10]wFMCommunicate OK [18:54:10]CreateOFDProtocolMessage done [18:54:10]OFDSenderStorePacket 187152 [18:54:10]StoreOFDPacket docnum=187152 [18:54: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 00 08 04 01 09 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D1 28 B6 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 10 DB 02 00 35 04 06 00 2C 0E 97 86 E7 EF ED 36 45 26 5E BF 34 CC [18:54:10]CheckFolder [18:54:10]dirname=/storage/ofd_packets [18:54:10]CheckFolder done [18:54:10]ProducePacketName [18:54:10]name=ofd_packets/00187152 [18:54:10]NVStorageSaveData ofd_packets/00187152 [18:54:10]File name is /storage/ofd_packets/00187152 [18:54:10]Write 298 bytes [18:54:10]NVStorageSaveData done [18:54:10]OFDSenderStorePacket done [18:54:10]KKMCreateOFDPacket done [18:54:10]NVStorageSaveData kkm_last_timestamp [18:54:10]File name is /storage/kkm_last_timestamp [18:54:10]Write 4 bytes [18:54:10]NVStorageSaveData done [18:54:10]ExternCall_PrintAddStr [18:54:10]wPrintStart [18:54:10]Write to MH i2c: 01 00 00 FC 03 FF [18:54:10]Write i2c OK [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: 01 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: 01 07 00 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: 01 07 00 FC 03 00 00 00 00 00 FF 0F 14 [18:54:10]RasterBufferAndPrint [18:54:10]line Счет N : (1)412306 [18:54:10]line ИНН: 02508201610067 [18:54:10]line Контрольно-Кассовый Чек [18:54:10]line ПРОДАЖА [18:54:10]line ТРК (МРК, ГНК) : 5 [18:54:10]line Товар: 2710194210 [18:54:10]line ДТ-К-5 [18:54:10]line 13.780 * 72.60 [18:54:10]line = 1000.43 [18:54:10]line НДС 12% НСП 1% [18:54:10]line > о реализуемом товаре [18:54:10]line ОКРУГЛЕНИЕ: -0.43 [18:54:10]line ИТОГО: 1000.00 [18:54:10]line Внесено: 1000.00 [18:54:10]line СДАЧА: 0.00 [18:54:10]line НСП 1% : 8.85 [18:54:10]line НДС 12% : 106.24 [18:54:10]line Наличными: 1000.00 [18:54:10]line Безнал.: 0.00 [18:54:10]line Место: АЗС № 92 "Партнер Нефть" [18:54:10]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [18:54:10]line СНО: Общий режим [18:54:10]line Чек 218 19.02.2025 18:54 [18:54:10]line Смена: 647 ФФД: 1.0 [18:54:10]line ЗНМ: 0300000118 [18:54:10]line РНМ: 0000000000091857 [18:54:10]line Версия ККМ: 001 [18:54:10]line ФМ: 0000000000871826 [18:54:10]line ФД: 187152 [18:54:10]line ФПД: 48441183365103 [18:54:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T185409&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187152&fm=48441183365103&tin=02508201610067®Number=0000000000091857&sum=100000 [18:54:10]OFD Sender: Processing packet 187152 [packets to send 49, broken 48] [18:54:10]ProducePacketName [18:54:10]name=ofd_packets/00187152 [18:54:10]OFD Sender: To server: pG, [18:54:10]CommunicateWithHost lk.salyk.kg:30040 [18:54:10]ConnectInit lk.salyk.kg [18:54:10]written 0, free lines is 4095 [18:54:11]Write to MH i2c: 01 00 00 27 04 2B [18:54:11]Write i2c OK [18:54:11]MH_I2C_Read... [18:54:11]Read from MH i2c: 01 [18:54:11]MH_I2C_Read... [18:54:11]Read from MH i2c: 01 07 00 [18:54:11]MH_I2C_Read... [18:54:11]Read from MH i2c: 01 07 00 27 04 00 00 00 00 00 E4 0C 22 [18:54:11]RasterBufferAndPrint [18:54:11]line [18:54:11]line [18:54:11]line [18:54:11]line [18:54:11]line [18:54:11]written 0, free lines is 3303 [18:54:11]MH_Cut [18:54:11]Write to MH i2c: D1 01 00 2E 04 01 04 [18:54:11]Write i2c OK [18:54:11]MH_I2C_Read... [18:54:11]Read from MH i2c: D1 [18:54:11]MH_I2C_Read... [18:54:11]Read from MH i2c: D1 01 00 [18:54:11]MH_I2C_Read... [18:54:11]Read from MH i2c: D1 01 00 2E 04 00 03 [18:54:11]Write to MH i2c: 01 00 00 2F 04 33 [18:54:11]Write i2c OK [18:54:11]MH_I2C_Read... [18:54:12]*** Cut start [18:54:12]*** Partial cut [18:54:12]*** CUTSNS_PIN = 1 [18:54:12]*** CUTSNS_PIN = 0 [18:54:12]*** Brake cut motor [18:54:12]Read from MH i2c: 01 [18:54:12]MH_I2C_Read... [18:54:12]*** Stop cut motor [18:54:12]*** Cut end [18:54:12]Read from MH i2c: 01 07 00 [18:54:12]MH_I2C_Read... [18:54:12]Read from MH i2c: 01 07 00 2F 04 00 00 00 00 00 FF 0F 48 [18:54:12]process_action close_receipt done [18:54:12]requested_data is exist [18:54:12]produce_requested_data [18:54:12]requested_item fm.sn is exist - process it [18:54:12]wFMCommunicate request_size=4 [18:54:12]MH_SAM_APDU [18:54:12]CAPDU: 80 11 00 00 [18:54:12]Write to MH i2c: E2 08 00 30 04 80 11 00 00 00 00 00 00 AE [18:54:12]Write i2c OK [18:54:12]MH_I2C_Read... [18:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:12]Read from MH i2c: E2 [18:54:12]MH_I2C_Read... [18:54:12]Read from MH i2c: E2 17 00 [18:54:12]MH_I2C_Read... [18:54:12]Read from MH i2c: E2 17 00 30 04 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:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:54:12]wFMCommunicate OK [18:54:12]requested_item fd.num is exist - process it [18:54:12]SAM_PROTO_GetFieldsCounters [18:54:12]wFMCommunicate request_size=4 [18:54:12]MH_SAM_APDU [18:54:12]CAPDU: 80 13 00 00 [18:54:12]Write to MH i2c: E2 08 00 31 04 80 13 00 00 00 00 00 00 B1 [18:54:12]Write i2c OK [18:54:12]MH_I2C_Read... [18:54:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:12]Read from MH i2c: E2 [18:54:12]MH_I2C_Read... [18:54:12]Read from MH i2c: E2 62 00 [18:54:12]MH_I2C_Read... [18:54:12]Read from MH i2c: E2 62 00 31 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 10 DB 02 00 0E 04 04 00 87 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 DB [18:54:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DB 02 00 0E 04 04 00 87 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 [18:54:12]wFMCommunicate OK [18:54:12]SAM_PROTO_GetFieldsCounters done [18:54:12]requested_item shift.num is exist - process it [18:54:12]requested_item shift.opened is exist - process it [18:54:12]req_shift_opened [18:54:12]FM_GetShiftState [18:54:12]SAM_PROTO_GetShiftState [18:54:12]wFMCommunicate request_size=4 [18:54:12]MH_SAM_APDU [18:54:12]CAPDU: 80 13 01 00 [18:54:12]Write to MH i2c: E2 08 00 32 04 80 13 01 00 00 00 00 00 B3 [18:54:12]Write i2c OK [18:54:12]MH_I2C_Read... [18:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:13]Read from MH i2c: E2 [18:54:13]MH_I2C_Read... [18:54:13]Read from MH i2c: E2 0E 00 [18:54:13]MH_I2C_Read... [18:54:13]Read from MH i2c: E2 0E 00 32 04 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 32 [18:54:13]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [18:54:13]wFMCommunicate OK [18:54:13]SAM_PROTO_GetShiftState done [18:54:13]FM_GetShiftState done [18:54:13]req_shift_opened done [18:54:13]requested_item shift.open_date is exist - process it [18:54:13]req_shift_open_date [18:54:13]req_shift_open_date done [18:54:13]produce_requested_data done [18:54:13]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187152,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [18:54:13]process_action_free close_receipt [18:54:13]json_value_free [18:54:13]json_value_free done [18:54:13]process_json_proto returns [18:54:13]Send response to host [18:54:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187152,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [18:54:13]free response buf [18:54:13]execute_script done [18:54:13]execute_script returns [18:54:13]free content buf [18:54:13]Sock 7.Close socket [18:54:13]Sock 7.Thread stoped [18:56:25]ConnectInit Can't connect to host [18:56:25]CommunicateWithHost connect error [18:56:25]CommunicateWithHost err = -1 [18:56:25]OFD Sender: Server communicate error [18:56:30]OFD Sender: Processing packet 187152 [packets to send 49, broken 48] [18:56:30]ProducePacketName [18:56:30]name=ofd_packets/00187152 [18:56:30]OFD Sender: To server: pG, [18:56:30]CommunicateWithHost lk.salyk.kg:30040 [18:56:30]ConnectInit lk.salyk.kg [18:56:30]Connected sock=7 [18:56:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 00 08 04 01 09 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 D1 28 B6 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 10 DB 02 00 35 04 06 00 2C 0E 97 86 E7 EF ED 36 45 26 5E BF 34 CC [18:56: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 AA 4F 47 00 F6 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 10 DB 02 00 F4 03 04 00 AF CF B5 67 B6 04 01 00 00 78 A2 DB C1 D7 6D 93 08 [18:56:30]CommunicateWithHost err = 0 [18:56:30]CheckOFDResponse [18:56:30]1017 (14) - 77093643461234 [18:56:30]1041 (16) - 0000000000871826 [18:56:30]1040 (4) - 187152 [18:56:30]1012 (4) - 19.02.2025 12:33 [18:56:30]1206 (1) - 0 [18:56:30]OFD Sender: Remove packet 187152 [18:56:30]ProducePacketName [18:56:30]name=ofd_packets/00187152 [18:56:30]NVStorageDeleteData [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:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59:16]OFD Sender: No OFD packet to send [18:59:21]OFD Sender: No OFD packet to send [18:59:26]OFD Sender: No OFD packet to send [18:59:31]OFD Sender: No OFD packet to send [18:59:36]OFD Sender: No OFD packet to send [18:59:41]OFD Sender: No OFD packet to send [18:59:46]OFD Sender: No OFD packet to send [18:59:51]OFD Sender: No OFD packet to send [18:59:56]OFD Sender: No OFD packet to send [19:00:01]OFD Sender: No OFD packet to send [19:00:06]OFD Sender: No OFD packet to send [19:00:11]OFD Sender: No OFD packet to send [19:00:16]OFD Sender: No OFD packet to send [19:00:21]OFD Sender: No OFD packet to send [19:00:26]OFD Sender: No OFD packet to send [19:00:31]OFD Sender: No OFD packet to send [19:00:36]OFD Sender: No OFD packet to send [19:00:41]OFD Sender: No OFD packet to send [19:00:46]OFD Sender: No OFD packet to send [19:00:51]OFD Sender: No OFD packet to send [19:00:56]OFD Sender: No OFD packet to send [19:01:01]OFD Sender: No OFD packet to send [19:01:06]OFD Sender: No OFD packet to send [19:01:11]OFD Sender: No OFD packet to send [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:31]OFD Sender: No OFD packet to send [19:02:36]accept exits with 9 [19:02:36]New connection [19:02:36]New thread 3066654052 created [19:02:36]Thread 3066510692 joined [19:02:36]Waiting for new connection... [19:02:36] Sock 9.Parse request [19:02:36]Sock 9.Check first char [19:02:36]Sock 9.First char is OK [19:02:36]request: POST /json_proto HTTP/1.0 [19:02:36]Method: POST [19:02:36]URL: /json_proto [19:02:36]Method is POST - this is cgi request [19:02:36]url: /json_proto [19:02:36]query_string will be loaded in cgi processing [19:02:36]execute_cgi json_proto POST (null) [19:02:36]execute_cgi path=json_proto method=POST [19:02:36]POST find Content-Length [19:02:36]Host: 172.17.46.131:8080 [19:02:36]Content-Length: 792 [19:02:36]Content-Type: application/json [19:02:36] [19:02:36]POST finish read [19:02:36]Found Content-Length = 792 [19:02:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412307", "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" : 30.690, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68912", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:36]execute_script... [19:02:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412307", "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" : 30.690, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68912", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:36]POST & json_proto [19:02:36]process_json_proto [19:02:36]json parsed OK: [19:02:36]protocol is kg_v1.0 [19:02:36]action value=close_receipt [19:02:36]process_action close_receipt [19:02:36]cmd_close_receipt [19:02:36]MH_GetDate [19:02:36]Write to MH i2c: F0 00 00 33 04 26 [19:02:36]Write i2c OK [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: F0 [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: F0 09 00 [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: F0 09 00 33 04 00 CC 2A B6 67 7E 41 4F 65 B5 [19:02:36]GetLastDocTimeStamp 1739991249 [19:02:36]current date 1739991756 [19:02:36]FM_GetShiftState [19:02:36]SAM_PROTO_GetShiftState [19:02:36]wFMCommunicate request_size=4 [19:02:36]MH_SAM_APDU [19:02:36]CAPDU: 80 13 01 00 [19:02:36]Write to MH i2c: E2 08 00 34 04 80 13 01 00 00 00 00 00 B5 [19:02:36]Write i2c OK [19:02:36]MH_I2C_Read... [19:02:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:36]Read from MH i2c: E2 [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: E2 0E 00 [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: E2 0E 00 34 04 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 34 [19:02:36]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:02:36]wFMCommunicate OK [19:02:36]SAM_PROTO_GetShiftState done [19:02:36]FM_GetShiftState done [19:02:36]opened in 1739929631 [19:02:36]opened+sec_in_day 1740016031 [19:02:36]quantity*price = 0 [19:02:36]sum+1 = 1 [19:02:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 219 19.02.2025 19:02 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 68912 ФМ: 0000000000871826 ФД: 187153 ФПД: 28349161170793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T190236&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187153&fm=28349161170793&tin=02508201610067®Number=0000000000091857&sum=0 [19:02:37]StoreToDocumentArchive [19:02:37]shift 647 fd 187153 [19:02:37]save to /storage/0647/doc_00187153 [19:02:37]save last doc name /storage/0647/doc_00187153 to /storage/kkm_last_doc_name [19:02:37]save OK [19:02:37]Clear old archive folders... [19:02:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:02:37]tlvbuf is 01F6D510 [19:02:37]SAM_PROTO_ClearQueue [19:02:37]wFMCommunicate request_size=4 [19:02:37]MH_SAM_APDU [19:02:37]CAPDU: 80 09 00 00 [19:02:37]Write to MH i2c: E2 08 00 41 04 80 09 00 00 00 00 00 00 B7 [19:02:37]Write i2c OK [19:02:37]MH_I2C_Read... [19:02:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:37]Read from MH i2c: E2 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 03 00 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 03 00 41 04 00 90 00 B9 [19:02:37]RAPDU: 90 00 [19:02:37]wFMCommunicate OK [19:02:37]SAM_PROTO_ClearQueue done [19:02:37]KKMCreateOFDPacket [19:02:37]OFDProtocolAddRootSTLVToBuf [19:02:37]FM_MakeSignedData [19:02:37]FM_MakeSignedData [19:02:37]SAM_PROTO_SignData [19:02:37]wFMCommunicate request_size=4 [19:02:37]MH_SAM_APDU [19:02:37]CAPDU: 80 0D 01 02 [19:02:37]Write to MH i2c: E2 08 00 42 04 80 0D 01 02 00 00 00 00 BF [19:02:37]Write i2c OK [19:02:37]MH_I2C_Read... [19:02:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:37]Read from MH i2c: E2 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 03 00 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [19:02:37]RAPDU: 90 00 [19:02:37]wFMCommunicate OK [19:02:37]wFMCommunicate request_size=255 [19:02:37]MH_SAM_APDU [19:02:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E2 77 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 DB 00 00 00 F4 03 04 00 CC 2A B6 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 11 DB 02 00 35 04 06 00 19 [19:02:37]Write to MH i2c: E2 02 01 43 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E2 77 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 DB 00 00 00 F4 03 04 00 CC 2A B6 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 11 DB 02 00 35 04 06 00 19 00 00 A2 [19:02:37]Write i2c OK [19:02:37]MH_I2C_Read... [19:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:37]Read from MH i2c: E2 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 03 00 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [19:02:37]RAPDU: 90 00 [19:02:37]wFMCommunicate OK [19:02:37]wFMCommunicate request_size=10 [19:02:37]MH_SAM_APDU [19:02:37]CAPDU: 80 0D 02 02 05 C8 8D AE 67 69 [19:02:37]Write to MH i2c: E2 0D 00 44 04 80 0D 02 02 05 00 C8 8D AE 67 69 00 00 9F [19:02:37]Write i2c OK [19:02:37]MH_I2C_Read... [19:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:37]Read from MH i2c: E2 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 03 00 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [19:02:37]RAPDU: 90 00 [19:02:37]wFMCommunicate OK [19:02:37]wFMCommunicate request_size=4 [19:02:37]MH_SAM_APDU [19:02:37]CAPDU: 80 0D 03 02 [19:02:37]Write to MH i2c: E2 08 00 45 04 80 0D 03 02 00 00 00 00 C4 [19:02:37]Write i2c OK [19:02:37]MH_I2C_Read... [19:02:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:37]Read from MH i2c: E2 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 0B 00 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 0B 00 45 04 00 C3 D6 49 2C C3 BA 83 C4 90 00 97 [19:02:37]RAPDU: C3 D6 49 2C C3 BA 83 C4 90 00 [19:02:37]wFMCommunicate OK [19:02:37]SAM_PROTO_SignData done [19:02:37]FM_MakeSignedData done [19:02:37]CreateOFDProtocolMessage [19:02:37]wFMCommunicate request_size=4 [19:02:37]MH_SAM_APDU [19:02:37]CAPDU: 80 11 00 00 [19:02:37]Write to MH i2c: E2 08 00 46 04 80 11 00 00 00 00 00 00 C4 [19:02:37]Write i2c OK [19:02:37]MH_I2C_Read... [19:02:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:37]Read from MH i2c: E2 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 17 00 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 17 00 46 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 17 [19:02: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:02:37]wFMCommunicate OK [19:02:37]CreateOFDProtocolMessage done [19:02:37]OFDSenderStorePacket 187153 [19:02:37]StoreOFDPacket docnum=187153 [19:02: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 BA 00 07 01 39 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 E2 77 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 DB 00 00 00 F4 03 04 00 CC 2A B6 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 11 DB 02 00 35 04 06 00 19 C8 8D AE 67 69 C3 D6 49 2C C3 BA 83 C4 [19:02:37]CheckFolder [19:02:37]dirname=/storage/ofd_packets [19:02:37]CheckFolder done [19:02:37]ProducePacketName [19:02:37]name=ofd_packets/00187153 [19:02:37]NVStorageSaveData ofd_packets/00187153 [19:02:37]File name is /storage/ofd_packets/00187153 [19:02:37]Write 301 bytes [19:02:37]NVStorageSaveData done [19:02:37]OFDSenderStorePacket done [19:02:37]KKMCreateOFDPacket done [19:02:37]NVStorageSaveData kkm_last_timestamp [19:02:37]File name is /storage/kkm_last_timestamp [19:02:37]Write 4 bytes [19:02:37]NVStorageSaveData done [19:02:37]ExternCall_PrintAddStr [19:02:37]wPrintStart [19:02:37]Write to MH i2c: 01 00 00 47 04 4B [19:02:37]Write i2c OK [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: 01 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: 01 07 00 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: 01 07 00 47 04 00 00 00 00 00 FF 0F 60 [19:02:37]RasterBufferAndPrint [19:02:37]line Счет N : (1)412307 [19:02:37]line ИНН: 02508201610067 [19:02:37]line Контрольно-Кассовый Чек [19:02:37]line ПРОДАЖА [19:02:37]line ТРК (МРК, ГНК) : 32 [19:02:37]line Товар: 2710124130 [19:02:37]line Аи-92-К-2 [19:02:37]line 30.690 * 0.00 [19:02:37]line = 0.00 [19:02:37]line НДС 12% НСП 1% [19:02:37]line > о реализуемом товаре [19:02:37]line ИТОГО: 0.00 [19:02:37]line НСП 1% : 0.00 [19:02:37]line НДС 12% : 0.00 [19:02:37]line Наличными: 0.00 [19:02:37]line Безнал.: 0.00 [19:02:37]line Место: АЗС № 92 "Партнер Нефть" [19:02:37]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:02:37]line СНО: Общий режим [19:02:37]line Чек 219 19.02.2025 19:02 [19:02:37]line Смена: 647 ФФД: 1.0 [19:02:37]line ЗНМ: 0300000118 [19:02:37]line РНМ: 0000000000091857 [19:02:37]line Версия ККМ: 001 [19:02:37]line Талоны: Топливная Карта [19:02:37]line 68912 [19:02:37]line ФМ: 0000000000871826 [19:02:37]line ФД: 187153 [19:02:37]line ФПД: 28349161170793 [19:02:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T190236&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187153&fm=28349161170793&tin=02508201610067®Number=0000000000091857&sum=0 [19:02:37]written 0, free lines is 4095 [19:02:37]OFD Sender: Processing packet 187153 [packets to send 49, broken 48] [19:02:37]ProducePacketName [19:02:37]name=ofd_packets/00187153 [19:02:38]OFD Sender: To server: pG, [19:02:38]CommunicateWithHost lk.salyk.kg:30040 [19:02:38]ConnectInit lk.salyk.kg [19:02:38]Write to MH i2c: 01 00 00 71 04 75 [19:02:38]Write i2c OK [19:02:38]MH_I2C_Read... [19:02:38]Read from MH i2c: 01 [19:02:38]MH_I2C_Read... [19:02:38]Read from MH i2c: 01 07 00 [19:02:38]MH_I2C_Read... [19:02:38]Read from MH i2c: 01 07 00 71 04 00 00 00 00 00 F9 0C 81 [19:02:38]RasterBufferAndPrint [19:02:38]line [19:02:38]line [19:02:38]line [19:02:38]line [19:02:38]line [19:02:38]written 0, free lines is 3327 [19:02:38]MH_Cut [19:02:38]Write to MH i2c: D1 01 00 78 04 01 4E [19:02:38]Write i2c OK [19:02:38]MH_I2C_Read... [19:02:38]Read from MH i2c: D1 [19:02:38]MH_I2C_Read... [19:02:38]Read from MH i2c: D1 01 00 [19:02:38]MH_I2C_Read... [19:02:38]Read from MH i2c: D1 01 00 78 04 00 4D [19:02:38]Write to MH i2c: 01 00 00 79 04 7D [19:02:38]Write i2c OK [19:02:38]MH_I2C_Read... [19:02:38]Connected sock=10 [19:02:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BA 00 07 01 39 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 E2 77 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 DB 00 00 00 F4 03 04 00 CC 2A B6 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 11 DB 02 00 35 04 06 00 19 C8 8D AE 67 69 C3 D6 49 2C C3 BA 83 C4 [19:02:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2D 76 47 00 FA 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 11 DB 02 00 F4 03 04 00 20 D1 B5 67 B6 04 01 00 00 2F 37 C1 7A 73 23 84 8B [19:02:38]CommunicateWithHost err = 0 [19:02:38]CheckOFDResponse [19:02:38]1017 (14) - 77093643461234 [19:02:38]1041 (16) - 0000000000871826 [19:02:38]1040 (4) - 187153 [19:02:38]1012 (4) - 19.02.2025 12:40 [19:02:38]1206 (1) - 0 [19:02:38]OFD Sender: Remove packet 187153 [19:02:38]ProducePacketName [19:02:38]name=ofd_packets/00187153 [19:02:38]NVStorageDeleteData [19:02:39]*** Cut start [19:02:39]*** Partial cut [19:02:39]*** CUTSNS_PIN = 1 [19:02:39]*** CUTSNS_PIN = 0 [19:02:39]OFD Sender: No OFD packet to send [19:02:39]*** Brake cut motor [19:02:39]Read from MH i2c: 01 [19:02:39]MH_I2C_Read... [19:02:39]*** Stop cut motor [19:02:39]*** Cut end [19:02:39]Read from MH i2c: 01 07 00 [19:02:39]MH_I2C_Read... [19:02:39]Read from MH i2c: 01 07 00 79 04 00 00 00 00 00 FF 0F 92 [19:02:39]process_action close_receipt done [19:02:39]requested_data is exist [19:02:39]produce_requested_data [19:02:39]requested_item fm.sn is exist - process it [19:02:39]wFMCommunicate request_size=4 [19:02:39]MH_SAM_APDU [19:02:39]CAPDU: 80 11 00 00 [19:02:39]Write to MH i2c: E2 08 00 7A 04 80 11 00 00 00 00 00 00 F8 [19:02:39]Write i2c OK [19:02:39]MH_I2C_Read... [19:02:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:39]Read from MH i2c: E2 [19:02:39]MH_I2C_Read... [19:02:39]Read from MH i2c: E2 17 00 [19:02:39]MH_I2C_Read... [19:02:39]Read from MH i2c: E2 17 00 7A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4B [19:02: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:02:39]wFMCommunicate OK [19:02:39]requested_item fd.num is exist - process it [19:02:39]SAM_PROTO_GetFieldsCounters [19:02:39]wFMCommunicate request_size=4 [19:02:39]MH_SAM_APDU [19:02:39]CAPDU: 80 13 00 00 [19:02:39]Write to MH i2c: E2 08 00 7B 04 80 13 00 00 00 00 00 00 FB [19:02:39]Write i2c OK [19:02:39]MH_I2C_Read... [19:02:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:39]Read from MH i2c: E2 [19:02:39]MH_I2C_Read... [19:02:39]Read from MH i2c: E2 62 00 [19:02:39]MH_I2C_Read... [19:02:39]Read from MH i2c: E2 62 00 7B 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 11 DB 02 00 0E 04 04 00 87 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 29 [19:02: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 11 DB 02 00 0E 04 04 00 87 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 [19:02:39]wFMCommunicate OK [19:02:39]SAM_PROTO_GetFieldsCounters done [19:02:39]requested_item shift.num is exist - process it [19:02:39]requested_item shift.opened is exist - process it [19:02:39]req_shift_opened [19:02:39]FM_GetShiftState [19:02:39]SAM_PROTO_GetShiftState [19:02:39]wFMCommunicate request_size=4 [19:02:39]MH_SAM_APDU [19:02:39]CAPDU: 80 13 01 00 [19:02:39]Write to MH i2c: E2 08 00 7C 04 80 13 01 00 00 00 00 00 FD [19:02:39]Write i2c OK [19:02:39]MH_I2C_Read... [19:02:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:40]Read from MH i2c: E2 [19:02:40]MH_I2C_Read... [19:02:40]Read from MH i2c: E2 0E 00 [19:02:40]MH_I2C_Read... [19:02:40]Read from MH i2c: E2 0E 00 7C 04 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 7C [19:02:40]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:02:40]wFMCommunicate OK [19:02:40]SAM_PROTO_GetShiftState done [19:02:40]FM_GetShiftState done [19:02:40]req_shift_opened done [19:02:40]requested_item shift.open_date is exist - process it [19:02:40]req_shift_open_date [19:02:40]req_shift_open_date done [19:02:40]produce_requested_data done [19:02:40]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187153,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [19:02:40]process_action_free close_receipt [19:02:40]json_value_free [19:02:40]json_value_free done [19:02:40]process_json_proto returns [19:02:40]Send response to host [19:02:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187153,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [19:02:40]free response buf [19:02:40]execute_script done [19:02:40]execute_script returns [19:02:40]free content buf [19:02:40]Sock 9.Close socket [19:02:40]Sock 9.Thread stoped [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:49]OFD Sender: No OFD packet to send [19:04:54]OFD Sender: No OFD packet to send [19:04:59]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:09]OFD Sender: No OFD packet to send [19:05:14]OFD Sender: No OFD packet to send [19:05:19]OFD Sender: No OFD packet to send [19:05:24]OFD Sender: No OFD packet to send [19:05:29]OFD Sender: No OFD packet to send [19:05:34]OFD Sender: No OFD packet to send [19:05:39]OFD Sender: No OFD packet to send [19:05:44]OFD Sender: No OFD packet to send [19:05:49]OFD Sender: No OFD packet to send [19:05:54]OFD Sender: No OFD packet to send [19:05:59]OFD Sender: No OFD packet to send [19:06:04]OFD Sender: No OFD packet to send [19:06:09]OFD Sender: No OFD packet to send [19:06:14]OFD Sender: No OFD packet to send [19:06:19]OFD Sender: No OFD packet to send [19:06:24]OFD Sender: No OFD packet to send [19:06:29]OFD Sender: No OFD packet to send [19:06:34]OFD Sender: No OFD packet to send [19:06:39]OFD Sender: No OFD packet to send [19:06:44]OFD Sender: No OFD packet to send [19:06:49]OFD Sender: No OFD packet to send [19:06:54]OFD Sender: No OFD packet to send [19:06:59]OFD Sender: No OFD packet to send [19:07:04]OFD Sender: No OFD packet to send [19:07:09]OFD Sender: No OFD packet to send [19:07:14]OFD Sender: No OFD packet to send [19:07:19]OFD Sender: No OFD packet to send [19:07:24]OFD Sender: No OFD packet to send [19:07:29]OFD Sender: No OFD packet to send [19:07:34]OFD Sender: No OFD packet to send [19:07:37]accept exits with 7 [19:07:37]New connection [19:07:37]New thread 3066510692 created [19:07:37]Thread 3066654052 joined [19:07:37]Waiting for new connection... [19:07:37] Sock 7.Parse request [19:07:37]Sock 7.Check first char [19:07:37]Sock 7.First char is OK [19:07:37]request: POST /json_proto HTTP/1.0 [19:07:37]Method: POST [19:07:37]URL: /json_proto [19:07:37]Method is POST - this is cgi request [19:07:37]url: /json_proto [19:07:37]query_string will be loaded in cgi processing [19:07:37]execute_cgi json_proto POST (null) [19:07:37]execute_cgi path=json_proto method=POST [19:07:37]POST find Content-Length [19:07:37]Host: 172.17.46.131:8080 [19:07:37]Content-Length: 673 [19:07:37]Content-Type: application/json [19:07:37] [19:07:37]POST finish read [19:07:37]Found Content-Length = 673 [19:07:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412308", "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:07:37]execute_script... [19:07: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)412308", "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:07:37]POST & json_proto [19:07:37]process_json_proto [19:07:37]json parsed OK: [19:07:37]protocol is kg_v1.0 [19:07:37]action value=close_receipt [19:07:37]process_action close_receipt [19:07:37]cmd_close_receipt [19:07:37]MH_GetDate [19:07:37]Write to MH i2c: F0 00 00 7D 04 70 [19:07:37]Write i2c OK [19:07:37]MH_I2C_Read... [19:07:37]Read from MH i2c: F0 [19:07:37]MH_I2C_Read... [19:07:37]Read from MH i2c: F0 09 00 [19:07:37]MH_I2C_Read... [19:07:37]Read from MH i2c: F0 09 00 7D 04 00 F9 2B B6 67 7E 41 4F 65 2D [19:07:37]GetLastDocTimeStamp 1739991756 [19:07:37]current date 1739992057 [19:07:37]FM_GetShiftState [19:07:37]SAM_PROTO_GetShiftState [19:07:37]wFMCommunicate request_size=4 [19:07:37]MH_SAM_APDU [19:07:37]CAPDU: 80 13 01 00 [19:07:37]Write to MH i2c: E2 08 00 7E 04 80 13 01 00 00 00 00 00 FF [19:07:37]Write i2c OK [19:07:37]MH_I2C_Read... [19:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:37]Read from MH i2c: E2 [19:07:37]MH_I2C_Read... [19:07:37]Read from MH i2c: E2 0E 00 [19:07:37]MH_I2C_Read... [19:07:37]Read from MH i2c: E2 0E 00 7E 04 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 7E [19:07:37]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:07:37]wFMCommunicate OK [19:07:37]SAM_PROTO_GetShiftState done [19:07:37]FM_GetShiftState done [19:07:37]opened in 1739929631 [19:07:37]opened+sec_in_day 1740016031 [19:07:37]quantity*price = 50021 [19:07:37]sum+1 = 50022 [19:07:37]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 СНО: Общий режим Чек 220 19.02.2025 19:07 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187154 ФПД: 271696002319225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T190737&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187154&fm=271696002319225&tin=02508201610067®Number=0000000000091857&sum=50000 [19:07:38]StoreToDocumentArchive [19:07:38]shift 647 fd 187154 [19:07:38]save to /storage/0647/doc_00187154 [19:07:38]save last doc name /storage/0647/doc_00187154 to /storage/kkm_last_doc_name [19:07:38]save OK [19:07:38]Clear old archive folders... [19:07:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:07:38]tlvbuf is 01F5EFD0 [19:07:38]SAM_PROTO_ClearQueue [19:07:38]wFMCommunicate request_size=4 [19:07:38]MH_SAM_APDU [19:07:38]CAPDU: 80 09 00 00 [19:07:38]Write to MH i2c: E2 08 00 8B 04 80 09 00 00 00 00 00 00 01 [19:07:38]Write i2c OK [19:07:38]MH_I2C_Read... [19:07:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:07:38]Read from MH i2c: E2 [19:07:38]MH_I2C_Read... [19:07:38]Read from MH i2c: E2 03 00 [19:07:38]MH_I2C_Read... [19:07:38]Read from MH i2c: E2 03 00 8B 04 00 90 00 03 [19:07:38]RAPDU: 90 00 [19:07:38]wFMCommunicate OK [19:07:38]SAM_PROTO_ClearQueue done [19:07:38]KKMCreateOFDPacket [19:07:38]OFDProtocolAddRootSTLVToBuf [19:07:38]FM_MakeSignedData [19:07:38]FM_MakeSignedData [19:07:38]SAM_PROTO_SignData [19:07:38]wFMCommunicate request_size=4 [19:07:38]MH_SAM_APDU [19:07:38]CAPDU: 80 0D 01 02 [19:07:38]Write to MH i2c: E2 08 00 8C 04 80 0D 01 02 00 00 00 00 09 [19:07:38]Write i2c OK [19:07:38]MH_I2C_Read... [19:07:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:07:38]Read from MH i2c: E2 [19:07:38]MH_I2C_Read... [19:07:38]Read from MH i2c: E2 03 00 [19:07:38]MH_I2C_Read... [19:07:38]Read from MH i2c: E2 03 00 8C 04 00 90 00 04 [19:07:38]RAPDU: 90 00 [19:07:38]wFMCommunicate OK [19:07:38]wFMCommunicate request_size=255 [19:07:38]MH_SAM_APDU [19:07: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 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 DC 00 00 00 F4 03 04 00 F9 2B B6 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 12 DB 02 00 35 04 06 00 F7 1B 27 B4 [19:07:38]Write to MH i2c: E2 02 01 8D 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 DC 00 00 00 F4 03 04 00 F9 2B B6 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 12 DB 02 00 35 04 06 00 F7 1B 27 B4 00 00 47 [19:07:38]Write i2c OK [19:07:38]MH_I2C_Read... [19:07:38]Read from MH i2c: E2 [19:07:38]MH_I2C_Read... [19:07:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:38]Read from MH i2c: E2 03 00 [19:07:38]MH_I2C_Read... [19:07:38]Read from MH i2c: E2 03 00 8D 04 00 90 00 05 [19:07:38]RAPDU: 90 00 [19:07:38]wFMCommunicate OK [19:07:38]wFMCommunicate request_size=7 [19:07:38]MH_SAM_APDU [19:07:38]CAPDU: 80 0D 02 02 02 83 79 [19:07:38]Write to MH i2c: E2 0A 00 8E 04 80 0D 02 02 02 00 83 79 00 00 0C [19:07:38]Write i2c OK [19:07:38]MH_I2C_Read... [19:07:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:38]Read from MH i2c: E2 [19:07:38]MH_I2C_Read... [19:07:38]Read from MH i2c: E2 03 00 [19:07:38]MH_I2C_Read... [19:07:38]Read from MH i2c: E2 03 00 8E 04 00 90 00 06 [19:07:38]RAPDU: 90 00 [19:07:38]wFMCommunicate OK [19:07:38]wFMCommunicate request_size=4 [19:07:38]MH_SAM_APDU [19:07:38]CAPDU: 80 0D 03 02 [19:07:38]Write to MH i2c: E2 08 00 8F 04 80 0D 03 02 00 00 00 00 0E [19:07:38]Write i2c OK [19:07:38]MH_I2C_Read... [19:07:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:07:38]Read from MH i2c: E2 [19:07:38]MH_I2C_Read... [19:07:38]Read from MH i2c: E2 0B 00 [19:07:38]MH_I2C_Read... [19:07:38]Read from MH i2c: E2 0B 00 8F 04 00 1A A3 27 89 A6 DE 1C 1F 90 00 3B [19:07:38]RAPDU: 1A A3 27 89 A6 DE 1C 1F 90 00 [19:07:38]wFMCommunicate OK [19:07:38]SAM_PROTO_SignData done [19:07:38]FM_MakeSignedData done [19:07:38]CreateOFDProtocolMessage [19:07:38]wFMCommunicate request_size=4 [19:07:38]MH_SAM_APDU [19:07:38]CAPDU: 80 11 00 00 [19:07:38]Write to MH i2c: E2 08 00 90 04 80 11 00 00 00 00 00 00 0E [19:07:38]Write i2c OK [19:07:38]MH_I2C_Read... [19:07:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:38]Read from MH i2c: E2 [19:07:38]MH_I2C_Read... [19:07:38]Read from MH i2c: E2 17 00 [19:07:38]MH_I2C_Read... [19:07:38]Read from MH i2c: E2 17 00 90 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 61 [19:07:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:07:38]wFMCommunicate OK [19:07:38]CreateOFDProtocolMessage done [19:07:38]OFDSenderStorePacket 187154 [19:07:38]StoreOFDPacket docnum=187154 [19:07: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 85 FC 04 01 F0 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 DC 00 00 00 F4 03 04 00 F9 2B B6 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 12 DB 02 00 35 04 06 00 F7 1B 27 B4 83 79 1A A3 27 89 A6 DE 1C 1F [19:07:38]CheckFolder [19:07:38]dirname=/storage/ofd_packets [19:07:38]CheckFolder done [19:07:38]ProducePacketName [19:07:38]name=ofd_packets/00187154 [19:07:38]NVStorageSaveData ofd_packets/00187154 [19:07:38]File name is /storage/ofd_packets/00187154 [19:07:38]Write 298 bytes [19:07:38]NVStorageSaveData done [19:07:38]OFDSenderStorePacket done [19:07:38]KKMCreateOFDPacket done [19:07:38]NVStorageSaveData kkm_last_timestamp [19:07:38]File name is /storage/kkm_last_timestamp [19:07:38]Write 4 bytes [19:07:38]NVStorageSaveData done [19:07:38]ExternCall_PrintAddStr [19:07:38]wPrintStart [19:07:38]Write to MH i2c: 01 00 00 91 04 95 [19:07:38]Write i2c OK [19:07:38]MH_I2C_Read... [19:07:38]Read from MH i2c: 01 [19:07:38]MH_I2C_Read... [19:07:38]Read from MH i2c: 01 07 00 [19:07:38]MH_I2C_Read... [19:07:38]Read from MH i2c: 01 07 00 91 04 00 00 00 00 00 FF 0F AA [19:07:38]RasterBufferAndPrint [19:07:38]line Счет N : (1)412308 [19:07:38]line ИНН: 02508201610067 [19:07:38]line Контрольно-Кассовый Чек [19:07:38]line ПРОДАЖА [19:07:38]line ТРК (МРК, ГНК) : 6 [19:07:38]line Товар: 2710194210 [19:07:38]line ДТ-К-5 [19:07:38]line 6.890 * 72.60 [19:07:38]line = 500.21 [19:07:38]line НДС 12% НСП 1% [19:07:38]line > о реализуемом товаре [19:07:38]line ОКРУГЛЕНИЕ: -0.21 [19:07:38]line ИТОГО: 500.00 [19:07:38]line Внесено: 500.00 [19:07:38]line СДАЧА: 0.00 [19:07:38]line НСП 1% : 4.43 [19:07:38]line НДС 12% : 53.12 [19:07:38]line Наличными: 500.00 [19:07:38]line Безнал.: 0.00 [19:07:38]line Место: АЗС № 92 "Партнер Нефть" [19:07:38]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:07:38]line СНО: Общий режим [19:07:38]line Чек 220 19.02.2025 19:07 [19:07:38]line Смена: 647 ФФД: 1.0 [19:07:38]line ЗНМ: 0300000118 [19:07:38]line РНМ: 0000000000091857 [19:07:38]line Версия ККМ: 001 [19:07:38]line ФМ: 0000000000871826 [19:07:38]line ФД: 187154 [19:07:38]line ФПД: 271696002319225 [19:07:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T190737&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187154&fm=271696002319225&tin=02508201610067®Number=0000000000091857&sum=50000 [19:07:39]OFD Sender: Processing packet 187154 [packets to send 49, broken 48] [19:07:39]ProducePacketName [19:07:39]name=ofd_packets/00187154 [19:07:39]OFD Sender: To server: pG, [19:07:39]CommunicateWithHost lk.salyk.kg:30040 [19:07:39]ConnectInit lk.salyk.kg [19:07:39]written 0, free lines is 4095 [19:07:39]Connected sock=10 [19:07: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 85 FC 04 01 F0 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 DC 00 00 00 F4 03 04 00 F9 2B B6 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 12 DB 02 00 35 04 06 00 F7 1B 27 B4 83 79 1A A3 27 89 A6 DE 1C 1F [19:07: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 5A 16 47 00 43 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 12 DB 02 00 F4 03 04 00 4C D2 B5 67 B6 04 01 00 00 1E E6 6A 9F 82 17 AA DC [19:07:39]CommunicateWithHost err = 0 [19:07:39]CheckOFDResponse [19:07:39]1017 (14) - 77093643461234 [19:07:39]1041 (16) - 0000000000871826 [19:07:39]1040 (4) - 187154 [19:07:39]1012 (4) - 19.02.2025 12:45 [19:07:39]1206 (1) - 0 [19:07:39]OFD Sender: Remove packet 187154 [19:07:39]ProducePacketName [19:07:39]name=ofd_packets/00187154 [19:07:39]NVStorageDeleteData [19:07:39]Write to MH i2c: 01 00 00 BC 04 C0 [19:07:39]Write i2c OK [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: 01 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: 01 07 00 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: 01 07 00 BC 04 00 00 00 00 00 01 0D D5 [19:07:39]RasterBufferAndPrint [19:07:39]line [19:07:39]line [19:07:39]line [19:07:39]line [19:07:39]line [19:07:39]written 0, free lines is 3335 [19:07:39]MH_Cut [19:07:39]Write to MH i2c: D1 01 00 C3 04 01 99 [19:07:39]Write i2c OK [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: D1 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: D1 01 00 [19:07:39]MH_I2C_Read... [19:07:39]Read from MH i2c: D1 01 00 C3 04 00 98 [19:07:39]Write to MH i2c: 01 00 00 C4 04 C8 [19:07:39]Write i2c OK [19:07:39]MH_I2C_Read... [19:07:40]OFD Sender: No OFD packet to send [19:07:40]*** Cut start [19:07:40]*** Partial cut [19:07:40]*** CUTSNS_PIN = 1 [19:07:40]*** CUTSNS_PIN = 0 [19:07:40]*** Brake cut motor [19:07:40]Read from MH i2c: 01 [19:07:40]MH_I2C_Read... [19:07:40]*** Stop cut motor [19:07:40]*** Cut end [19:07:40]Read from MH i2c: 01 07 00 [19:07:40]MH_I2C_Read... [19:07:40]Read from MH i2c: 01 07 00 C4 04 00 00 00 00 00 FF 0F DD [19:07:40]process_action close_receipt done [19:07:40]requested_data is exist [19:07:40]produce_requested_data [19:07:40]requested_item fm.sn is exist - process it [19:07:40]wFMCommunicate request_size=4 [19:07:40]MH_SAM_APDU [19:07:40]CAPDU: 80 11 00 00 [19:07:40]Write to MH i2c: E2 08 00 C5 04 80 11 00 00 00 00 00 00 43 [19:07:40]Write i2c OK [19:07:40]MH_I2C_Read... [19:07:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:41]Read from MH i2c: E2 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: E2 17 00 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: E2 17 00 C5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 96 [19:07: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:07:41]wFMCommunicate OK [19:07:41]requested_item fd.num is exist - process it [19:07:41]SAM_PROTO_GetFieldsCounters [19:07:41]wFMCommunicate request_size=4 [19:07:41]MH_SAM_APDU [19:07:41]CAPDU: 80 13 00 00 [19:07:41]Write to MH i2c: E2 08 00 C6 04 80 13 00 00 00 00 00 00 46 [19:07:41]Write i2c OK [19:07:41]MH_I2C_Read... [19:07:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:07:41]Read from MH i2c: E2 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: E2 62 00 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: E2 62 00 C6 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 12 DB 02 00 0E 04 04 00 87 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 78 [19:07: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 12 DB 02 00 0E 04 04 00 87 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 [19:07:41]wFMCommunicate OK [19:07:41]SAM_PROTO_GetFieldsCounters done [19:07:41]requested_item shift.num is exist - process it [19:07:41]requested_item shift.opened is exist - process it [19:07:41]req_shift_opened [19:07:41]FM_GetShiftState [19:07:41]SAM_PROTO_GetShiftState [19:07:41]wFMCommunicate request_size=4 [19:07:41]MH_SAM_APDU [19:07:41]CAPDU: 80 13 01 00 [19:07:41]Write to MH i2c: E2 08 00 C7 04 80 13 01 00 00 00 00 00 48 [19:07:41]Write i2c OK [19:07:41]MH_I2C_Read... [19:07:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:41]Read from MH i2c: E2 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: E2 0E 00 [19:07:41]MH_I2C_Read... [19:07:41]Read from MH i2c: E2 0E 00 C7 04 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C7 [19:07:41]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:07:41]wFMCommunicate OK [19:07:41]SAM_PROTO_GetShiftState done [19:07:41]FM_GetShiftState done [19:07:41]req_shift_opened done [19:07:41]requested_item shift.open_date is exist - process it [19:07:41]req_shift_open_date [19:07:41]req_shift_open_date done [19:07:41]produce_requested_data done [19:07:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187154,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [19:07:41]process_action_free close_receipt [19:07:41]json_value_free [19:07:41]json_value_free done [19:07:41]process_json_proto returns [19:07:41]Send response to host [19:07:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187154,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [19:07:41]free response buf [19:07:41]execute_script done [19:07:41]execute_script returns [19:07:41]free content buf [19:07:41]Sock 7.Close socket [19:07:41]Sock 7.Thread stoped [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:43]accept exits with 9 [19:11:43]New connection [19:11:43]New thread 3066654052 created [19:11:43]Thread 3066510692 joined [19:11:43]Waiting for new connection... [19:11:43] Sock 9.Parse request [19:11:43]Sock 9.Check first char [19:11:43]Sock 9.First char is OK [19:11:43]request: POST /json_proto HTTP/1.0 [19:11:43]Method: POST [19:11:43]URL: /json_proto [19:11:43]Method is POST - this is cgi request [19:11:43]url: /json_proto [19:11:43]query_string will be loaded in cgi processing [19:11:43]execute_cgi json_proto POST (null) [19:11:43]execute_cgi path=json_proto method=POST [19:11:43]POST find Content-Length [19:11:43]Host: 172.17.46.131:8080 [19:11:43]Content-Length: 678 [19:11:43]Content-Type: application/json [19:11:43] [19:11:43]POST finish read [19:11:43]Found Content-Length = 678 [19:11:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412309", "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" : 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" ] } } [19:11:43]execute_script... [19: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)412309", "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" : 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" ] } } [19:11:43]POST & json_proto [19:11:43]process_json_proto [19:11:43]json parsed OK: [19:11:43]protocol is kg_v1.0 [19:11:43]action value=close_receipt [19:11:43]process_action close_receipt [19:11:43]cmd_close_receipt [19:11:43]MH_GetDate [19:11:43]Write to MH i2c: F0 00 00 C8 04 BB [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: F0 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: F0 09 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: F0 09 00 C8 04 00 F0 2C B6 67 7E 41 4F 65 70 [19:11:43]GetLastDocTimeStamp 1739992057 [19:11:43]current date 1739992304 [19:11:43]FM_GetShiftState [19:11:43]SAM_PROTO_GetShiftState [19:11:43]wFMCommunicate request_size=4 [19:11:43]MH_SAM_APDU [19:11:43]CAPDU: 80 13 01 00 [19:11:43]Write to MH i2c: E2 08 00 C9 04 80 13 01 00 00 00 00 00 4A [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:43]Read from MH i2c: E2 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 0E 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 0E 00 C9 04 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C9 [19:11:43]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:11:43]wFMCommunicate OK [19:11:43]SAM_PROTO_GetShiftState done [19:11:43]FM_GetShiftState done [19:11:43]opened in 1739929631 [19:11:43]opened+sec_in_day 1740016031 [19:11:43]quantity*price = 120007 [19:11:43]sum+1 = 120009 [19:11:43]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 СНО: Общий режим Чек 221 19.02.2025 19:11 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187155 ФПД: 178035521403500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T191144&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187155&fm=178035521403500&tin=02508201610067®Number=0000000000091857&sum=120000 [19:11:44]StoreToDocumentArchive [19:11:44]shift 647 fd 187155 [19:11:44]save to /storage/0647/doc_00187155 [19:11:44]save last doc name /storage/0647/doc_00187155 to /storage/kkm_last_doc_name [19:11:44]save OK [19:11:44]Clear old archive folders... [19:11:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:11:44]tlvbuf is 01F5EB50 [19:11:44]SAM_PROTO_ClearQueue [19:11:44]wFMCommunicate request_size=4 [19:11:44]MH_SAM_APDU [19:11:44]CAPDU: 80 09 00 00 [19:11:44]Write to MH i2c: E2 08 00 D6 04 80 09 00 00 00 00 00 00 4C [19:11:44]Write i2c OK [19:11:44]MH_I2C_Read... [19:11:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:45]Read from MH i2c: E2 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: E2 03 00 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: E2 03 00 D6 04 00 90 00 4E [19:11:45]RAPDU: 90 00 [19:11:45]wFMCommunicate OK [19:11:45]SAM_PROTO_ClearQueue done [19:11:45]KKMCreateOFDPacket [19:11:45]OFDProtocolAddRootSTLVToBuf [19:11:45]FM_MakeSignedData [19:11:45]FM_MakeSignedData [19:11:45]SAM_PROTO_SignData [19:11:45]wFMCommunicate request_size=4 [19:11:45]MH_SAM_APDU [19:11:45]CAPDU: 80 0D 01 02 [19:11:45]Write to MH i2c: E2 08 00 D7 04 80 0D 01 02 00 00 00 00 54 [19:11:45]Write i2c OK [19:11:45]MH_I2C_Read... [19:11:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:45]Read from MH i2c: E2 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: E2 03 00 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: E2 03 00 D7 04 00 90 00 4F [19:11:45]RAPDU: 90 00 [19:11:45]wFMCommunicate OK [19:11:45]wFMCommunicate request_size=255 [19:11:45]MH_SAM_APDU [19:11: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 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 DD 00 00 00 F4 03 04 00 F0 2C B6 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 13 DB 02 00 35 04 06 00 A1 EC 20 02 [19:11:45]Write to MH i2c: E2 02 01 D8 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 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 DD 00 00 00 F4 03 04 00 F0 2C B6 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 13 DB 02 00 35 04 06 00 A1 EC 20 02 00 00 28 [19:11:45]Write i2c OK [19:11:45]MH_I2C_Read... [19:11:45]OFD Sender: No OFD packet to send [19:11:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:45]Read from MH i2c: E2 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: E2 03 00 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: E2 03 00 D8 04 00 90 00 50 [19:11:45]RAPDU: 90 00 [19:11:45]wFMCommunicate OK [19:11:45]wFMCommunicate request_size=7 [19:11:45]MH_SAM_APDU [19:11:45]CAPDU: 80 0D 02 02 02 BA 6C [19:11:45]Write to MH i2c: E2 0A 00 D9 04 80 0D 02 02 02 00 BA 6C 00 00 81 [19:11:45]Write i2c OK [19:11:45]MH_I2C_Read... [19:11:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:45]Read from MH i2c: E2 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: E2 03 00 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [19:11:45]RAPDU: 90 00 [19:11:45]wFMCommunicate OK [19:11:45]wFMCommunicate request_size=4 [19:11:45]MH_SAM_APDU [19:11:45]CAPDU: 80 0D 03 02 [19:11:45]Write to MH i2c: E2 08 00 DA 04 80 0D 03 02 00 00 00 00 59 [19:11:45]Write i2c OK [19:11:45]MH_I2C_Read... [19:11:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:45]Read from MH i2c: E2 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: E2 0B 00 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: E2 0B 00 DA 04 00 16 B6 2E 5B 20 A1 F5 D9 90 00 3E [19:11:45]RAPDU: 16 B6 2E 5B 20 A1 F5 D9 90 00 [19:11:45]wFMCommunicate OK [19:11:45]SAM_PROTO_SignData done [19:11:45]FM_MakeSignedData done [19:11:45]CreateOFDProtocolMessage [19:11:45]wFMCommunicate request_size=4 [19:11:45]MH_SAM_APDU [19:11:45]CAPDU: 80 11 00 00 [19:11:45]Write to MH i2c: E2 08 00 DB 04 80 11 00 00 00 00 00 00 59 [19:11:45]Write i2c OK [19:11:45]MH_I2C_Read... [19:11:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:45]Read from MH i2c: E2 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: E2 17 00 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: E2 17 00 DB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AC [19: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 [19:11:45]wFMCommunicate OK [19:11:45]CreateOFDProtocolMessage done [19:11:45]OFDSenderStorePacket 187155 [19:11:45]StoreOFDPacket docnum=187155 [19: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 A8 72 04 01 70 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 DD 00 00 00 F4 03 04 00 F0 2C B6 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 13 DB 02 00 35 04 06 00 A1 EC 20 02 BA 6C 16 B6 2E 5B 20 A1 F5 D9 [19:11:45]CheckFolder [19:11:45]dirname=/storage/ofd_packets [19:11:45]CheckFolder done [19:11:45]ProducePacketName [19:11:45]name=ofd_packets/00187155 [19:11:45]NVStorageSaveData ofd_packets/00187155 [19:11:45]File name is /storage/ofd_packets/00187155 [19:11:45]Write 298 bytes [19:11:45]NVStorageSaveData done [19:11:45]OFDSenderStorePacket done [19:11:45]KKMCreateOFDPacket done [19:11:45]NVStorageSaveData kkm_last_timestamp [19:11:45]File name is /storage/kkm_last_timestamp [19:11:45]Write 4 bytes [19:11:45]NVStorageSaveData done [19:11:45]ExternCall_PrintAddStr [19:11:45]wPrintStart [19:11:45]Write to MH i2c: 01 00 00 DC 04 E0 [19:11:45]Write i2c OK [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: 01 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: 01 07 00 [19:11:45]MH_I2C_Read... [19:11:45]Read from MH i2c: 01 07 00 DC 04 00 00 00 00 00 FF 0F F5 [19:11:45]RasterBufferAndPrint [19:11:45]line Счет N : (1)412309 [19:11:45]line ИНН: 02508201610067 [19:11:45]line Контрольно-Кассовый Чек [19:11:45]line ПРОДАЖА [19:11:45]line ТРК (МРК, ГНК) : 6 [19:11:45]line Товар: 2710194210 [19:11:45]line ДТ-К-5 [19:11:45]line 16.530 * 72.60 [19:11:45]line = 1200.08 [19:11:45]line НДС 12% НСП 1% [19:11:45]line > о реализуемом товаре [19:11:45]line ОКРУГЛЕНИЕ: -0.08 [19:11:45]line ИТОГО: 1200.00 [19:11:45]line Внесено: 1200.00 [19:11:45]line СДАЧА: 0.00 [19:11:45]line НСП 1% : 10.62 [19:11:45]line НДС 12% : 127.44 [19:11:45]line Наличными: 1200.00 [19:11:45]line Безнал.: 0.00 [19:11:45]line Место: АЗС № 92 "Партнер Нефть" [19:11:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:11:45]line СНО: Общий режим [19:11:45]line Чек 221 19.02.2025 19:11 [19:11:45]line Смена: 647 ФФД: 1.0 [19:11:45]line ЗНМ: 0300000118 [19:11:45]line РНМ: 0000000000091857 [19:11:45]line Версия ККМ: 001 [19:11:45]line ФМ: 0000000000871826 [19:11:45]line ФД: 187155 [19:11:45]line ФПД: 178035521403500 [19:11:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T191144&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187155&fm=178035521403500&tin=02508201610067®Number=0000000000091857&sum=120000 [19:11:45]OFD Sender: Processing packet 187155 [packets to send 49, broken 48] [19:11:45]ProducePacketName [19:11:45]name=ofd_packets/00187155 [19:11:45]OFD Sender: To server: pG, [19:11:45]CommunicateWithHost lk.salyk.kg:30040 [19:11:45]ConnectInit lk.salyk.kg [19:11:45]written 0, free lines is 4095 [19:11:45]Connected sock=10 [19: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 A8 72 04 01 70 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 DD 00 00 00 F4 03 04 00 F0 2C B6 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 13 DB 02 00 35 04 06 00 A1 EC 20 02 BA 6C 16 B6 2E 5B 20 A1 F5 D9 [19:11:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 33 04 47 00 23 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 13 DB 02 00 F4 03 04 00 43 D3 B5 67 B6 04 01 00 00 33 7C 4B E3 EA E9 38 98 [19:11:46]CommunicateWithHost err = 0 [19:11:46]CheckOFDResponse [19:11:46]1017 (14) - 77093643461234 [19:11:46]1041 (16) - 0000000000871826 [19:11:46]1040 (4) - 187155 [19:11:46]1012 (4) - 19.02.2025 12:49 [19:11:46]1206 (1) - 0 [19:11:46]OFD Sender: Remove packet 187155 [19:11:46]ProducePacketName [19:11:46]name=ofd_packets/00187155 [19:11:46]NVStorageDeleteData [19:11:46]Write to MH i2c: 01 00 00 07 05 0C [19:11:46]Write i2c OK [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: 01 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: 01 07 00 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: 01 07 00 07 05 00 00 00 00 00 EC 0C 0B [19:11:46]RasterBufferAndPrint [19:11:46]line [19:11:46]line [19:11:46]line [19:11:46]line [19:11:46]line [19:11:46]written 0, free lines is 3315 [19:11:46]MH_Cut [19:11:46]Write to MH i2c: D1 01 00 0E 05 01 E5 [19:11:46]Write i2c OK [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: D1 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: D1 01 00 [19:11:46]MH_I2C_Read... [19:11:46]Read from MH i2c: D1 01 00 0E 05 00 E4 [19:11:46]Write to MH i2c: 01 00 00 0F 05 14 [19:11:46]Write i2c OK [19:11:46]MH_I2C_Read... [19:11:46]OFD Sender: No OFD packet to send [19:11:46]*** Cut start [19:11:46]*** Partial cut [19:11:46]*** CUTSNS_PIN = 1 [19:11:47]*** CUTSNS_PIN = 0 [19:11:47]*** Brake cut motor [19:11:47]Read from MH i2c: 01 [19:11:47]MH_I2C_Read... [19:11:47]*** Stop cut motor [19:11:47]*** Cut end [19:11:47]Read from MH i2c: 01 07 00 [19:11:47]MH_I2C_Read... [19:11:47]Read from MH i2c: 01 07 00 0F 05 00 00 00 00 00 FF 0F 29 [19:11:47]process_action close_receipt done [19:11:47]requested_data is exist [19:11:47]produce_requested_data [19:11:47]requested_item fm.sn is exist - process it [19:11:47]wFMCommunicate request_size=4 [19:11:47]MH_SAM_APDU [19:11:47]CAPDU: 80 11 00 00 [19:11:47]Write to MH i2c: E2 08 00 10 05 80 11 00 00 00 00 00 00 8F [19:11:47]Write i2c OK [19:11:47]MH_I2C_Read... [19:11:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:47]Read from MH i2c: E2 [19:11:47]MH_I2C_Read... [19:11:47]Read from MH i2c: E2 17 00 [19:11:47]MH_I2C_Read... [19:11:47]Read from MH i2c: E2 17 00 10 05 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: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 [19:11:47]wFMCommunicate OK [19:11:47]requested_item fd.num is exist - process it [19:11:47]SAM_PROTO_GetFieldsCounters [19:11:47]wFMCommunicate request_size=4 [19:11:47]MH_SAM_APDU [19:11:47]CAPDU: 80 13 00 00 [19:11:47]Write to MH i2c: E2 08 00 11 05 80 13 00 00 00 00 00 00 92 [19:11:47]Write i2c OK [19:11:47]MH_I2C_Read... [19:11:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:47]Read from MH i2c: E2 [19:11:47]MH_I2C_Read... [19:11:47]Read from MH i2c: E2 62 00 [19:11:47]MH_I2C_Read... [19:11:47]Read from MH i2c: E2 62 00 11 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 13 DB 02 00 0E 04 04 00 87 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 C8 [19: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 13 DB 02 00 0E 04 04 00 87 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 [19:11:47]wFMCommunicate OK [19:11:47]SAM_PROTO_GetFieldsCounters done [19:11:47]requested_item shift.num is exist - process it [19:11:47]requested_item shift.opened is exist - process it [19:11:47]req_shift_opened [19:11:47]FM_GetShiftState [19:11:47]SAM_PROTO_GetShiftState [19:11:47]wFMCommunicate request_size=4 [19:11:47]MH_SAM_APDU [19:11:47]CAPDU: 80 13 01 00 [19:11:47]Write to MH i2c: E2 08 00 12 05 80 13 01 00 00 00 00 00 94 [19:11:47]Write i2c OK [19:11:47]MH_I2C_Read... [19:11:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:47]Read from MH i2c: E2 [19:11:47]MH_I2C_Read... [19:11:47]Read from MH i2c: E2 0E 00 [19:11:47]MH_I2C_Read... [19:11:47]Read from MH i2c: E2 0E 00 12 05 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 13 [19:11:47]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:11:47]wFMCommunicate OK [19:11:47]SAM_PROTO_GetShiftState done [19:11:47]FM_GetShiftState done [19:11:47]req_shift_opened done [19:11:47]requested_item shift.open_date is exist - process it [19:11:47]req_shift_open_date [19:11:47]req_shift_open_date done [19:11:47]produce_requested_data done [19:11:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187155,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [19:11:47]process_action_free close_receipt [19:11:47]json_value_free [19:11:47]json_value_free done [19:11:47]process_json_proto returns [19:11:47]Send response to host [19:11:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187155,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [19:11:47]free response buf [19:11:47]execute_script done [19:11:47]execute_script returns [19:11:47]free content buf [19:11:47]Sock 9.Close socket [19:11:47]Sock 9.Thread stoped [19:11:51]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:56]OFD Sender: No OFD packet to send [19:14:01]OFD Sender: No OFD packet to send [19:14:06]OFD Sender: No OFD packet to send [19:14:11]OFD Sender: No OFD packet to send [19:14:16]OFD Sender: No OFD packet to send [19:14:21]OFD Sender: No OFD packet to send [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:26]OFD Sender: No OFD packet to send [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:46]OFD Sender: No OFD packet to send [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:21]OFD Sender: No OFD packet to send [19:16:26]OFD Sender: No OFD packet to send [19:16:31]OFD Sender: No OFD packet to send [19:16:37]OFD Sender: No OFD packet to send [19:16:42]OFD Sender: No OFD packet to send [19:16:47]OFD Sender: No OFD packet to send [19:16:52]OFD Sender: No OFD packet to send [19:16:57]OFD Sender: No OFD packet to send [19:17:02]OFD Sender: No OFD packet to send [19:17:07]OFD Sender: No OFD packet to send [19:17:12]OFD Sender: No OFD packet to send [19:17:17]OFD Sender: No OFD packet to send [19:17:22]OFD Sender: No OFD packet to send [19:17:27]OFD Sender: No OFD packet to send [19:17:32]OFD Sender: No OFD packet to send [19:17:37]OFD Sender: No OFD packet to send [19:17:42]OFD Sender: No OFD packet to send [19:17:47]OFD Sender: No OFD packet to send [19:17:52]OFD Sender: No OFD packet to send [19:17:57]OFD Sender: No OFD packet to send [19:18:02]OFD Sender: No OFD packet to send [19:18:07]OFD Sender: No OFD packet to send [19:18:12]OFD Sender: No OFD packet to send [19:18:17]OFD Sender: No OFD packet to send [19:18:22]OFD Sender: No OFD packet to send [19:18:27]OFD Sender: No OFD packet to send [19:18:32]OFD Sender: No OFD packet to send [19:18:37]OFD Sender: No OFD packet to send [19:18:42]OFD Sender: No OFD packet to send [19:18:47]OFD Sender: No OFD packet to send [19:18:52]OFD Sender: No OFD packet to send [19:18:57]OFD Sender: No OFD packet to send [19:19:02]OFD Sender: No OFD packet to send [19:19:07]OFD Sender: No OFD packet to send [19:19:12]OFD Sender: No OFD packet to send [19:19:17]OFD Sender: No OFD packet to send [19:19:22]OFD Sender: No OFD packet to send [19:19:27]OFD Sender: No OFD packet to send [19:19:32]OFD Sender: No OFD packet to send [19:19:37]OFD Sender: No OFD packet to send [19:19:42]OFD Sender: No OFD packet to send [19:19:47]OFD Sender: No OFD packet to send [19:19:52]OFD Sender: No OFD packet to send [19:19:57]OFD Sender: No OFD packet to send [19:20:02]OFD Sender: No OFD packet to send [19:20:07]OFD Sender: No OFD packet to send [19:20:12]OFD Sender: No OFD packet to send [19:20:17]OFD Sender: No OFD packet to send [19:20:22]OFD Sender: No OFD packet to send [19:20:27]OFD Sender: No OFD packet to send [19:20:32]OFD Sender: No OFD packet to send [19:20:37]OFD Sender: No OFD packet to send [19:20:42]OFD Sender: No OFD packet to send [19:20:47]OFD Sender: No OFD packet to send [19:20:52]OFD Sender: No OFD packet to send [19:20:57]OFD Sender: No OFD packet to send [19:21:02]OFD Sender: No OFD packet to send [19:21:07]OFD Sender: No OFD packet to send [19:21:12]OFD Sender: No OFD packet to send [19:21:17]OFD Sender: No OFD packet to send [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:47]OFD Sender: No OFD packet to send [19:21:52]OFD Sender: No OFD packet to send [19:21:57]OFD Sender: No OFD packet to send [19:22:02]OFD Sender: No OFD packet to send [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:42]OFD Sender: No OFD packet to send [19:22:47]OFD Sender: No OFD packet to send [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26: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:47]OFD Sender: No OFD packet to send [19:27:50]accept exits with 7 [19:27:50]New connection [19:27:50]New thread 3066510692 created [19:27:50]Thread 3066654052 joined [19:27:50]Waiting for new connection... [19:27:50] Sock 7.Parse request [19:27:50]Sock 7.Check first char [19:27:50]Sock 7.First char is OK [19:27:50]request: POST /json_proto HTTP/1.0 [19:27:50]Method: POST [19:27:50]URL: /json_proto [19:27:50]Method is POST - this is cgi request [19:27:50]url: /json_proto [19:27:50]query_string will be loaded in cgi processing [19:27:50]execute_cgi json_proto POST (null) [19:27:50]execute_cgi path=json_proto method=POST [19:27:50]POST find Content-Length [19:27:50]Host: 172.17.46.131:8080 [19:27:50]Content-Length: 792 [19:27:50]Content-Type: application/json [19:27:50] [19:27:50]POST finish read [19:27:50]Found Content-Length = 792 [19:27:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412310", "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" : 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\u000A03529", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:50]execute_script... [19:27: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)412310", "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" : 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\u000A03529", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:50]POST & json_proto [19:27:50]process_json_proto [19:27:50]json parsed OK: [19:27:50]protocol is kg_v1.0 [19:27:50]action value=close_receipt [19:27:50]process_action close_receipt [19:27:50]cmd_close_receipt [19:27:50]MH_GetDate [19:27:50]Write to MH i2c: F0 00 00 13 05 07 [19:27:50]Write i2c OK [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: F0 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: F0 09 00 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: F0 09 00 13 05 00 B7 30 B6 67 7E 41 4F 65 87 [19:27:50]GetLastDocTimeStamp 1739992304 [19:27:50]current date 1739993271 [19:27:50]FM_GetShiftState [19:27:50]SAM_PROTO_GetShiftState [19:27:50]wFMCommunicate request_size=4 [19:27:50]MH_SAM_APDU [19:27:50]CAPDU: 80 13 01 00 [19:27:50]Write to MH i2c: E2 08 00 14 05 80 13 01 00 00 00 00 00 96 [19:27:50]Write i2c OK [19:27:50]MH_I2C_Read... [19:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:50]Read from MH i2c: E2 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: E2 0E 00 [19:27:50]MH_I2C_Read... [19:27:50]Read from MH i2c: E2 0E 00 14 05 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 15 [19:27:50]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:27:50]wFMCommunicate OK [19:27:50]SAM_PROTO_GetShiftState done [19:27:50]FM_GetShiftState done [19:27:50]opened in 1739929631 [19:27:50]opened+sec_in_day 1740016031 [19:27:50]quantity*price = 0 [19:27:50]sum+1 = 1 [19:27:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 222 19.02.2025 19:27 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 03529 ФМ: 0000000000871826 ФД: 187156 ФПД: 169776399020671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T192751&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187156&fm=169776399020671&tin=02508201610067®Number=0000000000091857&sum=0 [19:27:51]StoreToDocumentArchive [19:27:51]shift 647 fd 187156 [19:27:51]save to /storage/0647/doc_00187156 [19:27:51]save last doc name /storage/0647/doc_00187156 to /storage/kkm_last_doc_name [19:27:51]save OK [19:27:51]Clear old archive folders... [19:27:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:27:51]tlvbuf is 01F9BDA0 [19:27:51]SAM_PROTO_ClearQueue [19:27:51]wFMCommunicate request_size=4 [19:27:51]MH_SAM_APDU [19:27:51]CAPDU: 80 09 00 00 [19:27:51]Write to MH i2c: E2 08 00 21 05 80 09 00 00 00 00 00 00 98 [19:27:51]Write i2c OK [19:27:51]MH_I2C_Read... [19:27:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:51]Read from MH i2c: E2 [19:27:51]MH_I2C_Read... [19:27:51]Read from MH i2c: E2 03 00 [19:27:51]MH_I2C_Read... [19:27:51]Read from MH i2c: E2 03 00 21 05 00 90 00 9A [19:27:51]RAPDU: 90 00 [19:27:51]wFMCommunicate OK [19:27:51]SAM_PROTO_ClearQueue done [19:27:51]KKMCreateOFDPacket [19:27:51]OFDProtocolAddRootSTLVToBuf [19:27:51]FM_MakeSignedData [19:27:51]FM_MakeSignedData [19:27:51]SAM_PROTO_SignData [19:27:51]wFMCommunicate request_size=4 [19:27:51]MH_SAM_APDU [19:27:51]CAPDU: 80 0D 01 02 [19:27:51]Write to MH i2c: E2 08 00 22 05 80 0D 01 02 00 00 00 00 A0 [19:27:51]Write i2c OK [19:27:51]MH_I2C_Read... [19:27:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:51]Read from MH i2c: E2 [19:27:51]MH_I2C_Read... [19:27:51]Read from MH i2c: E2 03 00 [19:27:51]MH_I2C_Read... [19:27:51]Read from MH i2c: E2 03 00 22 05 00 90 00 9B [19:27:51]RAPDU: 90 00 [19:27:51]wFMCommunicate OK [19:27:51]wFMCommunicate request_size=255 [19:27:51]MH_SAM_APDU [19:27: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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 B7 30 B6 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 14 DB 02 00 35 04 06 00 9A [19:27:51]Write to MH i2c: E2 02 01 23 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 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 DE 00 00 00 F4 03 04 00 B7 30 B6 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 14 DB 02 00 35 04 06 00 9A 00 00 BA [19:27:51]Write i2c OK [19:27:51]MH_I2C_Read... [19:27:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:52]Read from MH i2c: E2 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: E2 03 00 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: E2 03 00 23 05 00 90 00 9C [19:27:52]RAPDU: 90 00 [19:27:52]wFMCommunicate OK [19:27:52]wFMCommunicate request_size=10 [19:27:52]MH_SAM_APDU [19:27:52]CAPDU: 80 0D 02 02 05 69 25 F4 72 7F [19:27:52]Write to MH i2c: E2 0D 00 24 05 80 0D 02 02 05 00 69 25 F4 72 7F 00 00 20 [19:27:52]Write i2c OK [19:27:52]MH_I2C_Read... [19:27:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:52]Read from MH i2c: E2 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: E2 03 00 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: E2 03 00 24 05 00 90 00 9D [19:27:52]RAPDU: 90 00 [19:27:52]wFMCommunicate OK [19:27:52]wFMCommunicate request_size=4 [19:27:52]MH_SAM_APDU [19:27:52]CAPDU: 80 0D 03 02 [19:27:52]Write to MH i2c: E2 08 00 25 05 80 0D 03 02 00 00 00 00 A5 [19:27:52]Write i2c OK [19:27:52]MH_I2C_Read... [19:27:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:52]Read from MH i2c: E2 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: E2 0B 00 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: E2 0B 00 25 05 00 2A A5 CB 83 9C AB F2 BB 90 00 B7 [19:27:52]RAPDU: 2A A5 CB 83 9C AB F2 BB 90 00 [19:27:52]wFMCommunicate OK [19:27:52]SAM_PROTO_SignData done [19:27:52]FM_MakeSignedData done [19:27:52]CreateOFDProtocolMessage [19:27:52]wFMCommunicate request_size=4 [19:27:52]MH_SAM_APDU [19:27:52]CAPDU: 80 11 00 00 [19:27:52]Write to MH i2c: E2 08 00 26 05 80 11 00 00 00 00 00 00 A5 [19:27:52]Write i2c OK [19:27:52]MH_I2C_Read... [19:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:52]Read from MH i2c: E2 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: E2 17 00 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: E2 17 00 26 05 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:27:52]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:52]wFMCommunicate OK [19:27:52]CreateOFDProtocolMessage done [19:27:52]OFDSenderStorePacket 187156 [19:27:52]StoreOFDPacket docnum=187156 [19:27: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 3F 02 07 01 AC 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 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 DE 00 00 00 F4 03 04 00 B7 30 B6 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 14 DB 02 00 35 04 06 00 9A 69 25 F4 72 7F 2A A5 CB 83 9C AB F2 BB [19:27:52]CheckFolder [19:27:52]dirname=/storage/ofd_packets [19:27:52]CheckFolder done [19:27:52]ProducePacketName [19:27:52]name=ofd_packets/00187156 [19:27:52]NVStorageSaveData ofd_packets/00187156 [19:27:52]File name is /storage/ofd_packets/00187156 [19:27:52]Write 301 bytes [19:27:52]NVStorageSaveData done [19:27:52]OFDSenderStorePacket done [19:27:52]KKMCreateOFDPacket done [19:27:52]NVStorageSaveData kkm_last_timestamp [19:27:52]File name is /storage/kkm_last_timestamp [19:27:52]Write 4 bytes [19:27:52]NVStorageSaveData done [19:27:52]ExternCall_PrintAddStr [19:27:52]wPrintStart [19:27:52]Write to MH i2c: 01 00 00 27 05 2C [19:27:52]Write i2c OK [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: 01 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: 01 07 00 [19:27:52]MH_I2C_Read... [19:27:52]Read from MH i2c: 01 07 00 27 05 00 00 00 00 00 FF 0F 41 [19:27:52]RasterBufferAndPrint [19:27:52]line Счет N : (1)412310 [19:27:52]line ИНН: 02508201610067 [19:27:52]line Контрольно-Кассовый Чек [19:27:52]line ПРОДАЖА [19:27:52]line ТРК (МРК, ГНК) : 32 [19:27:52]line Товар: 2710124130 [19:27:52]line Аи-92-К-2 [19:27:52]line 15.580 * 0.00 [19:27:52]line = 0.00 [19:27:52]line НДС 12% НСП 1% [19:27:52]line > о реализуемом товаре [19:27:52]line ИТОГО: 0.00 [19:27:52]line НСП 1% : 0.00 [19:27:52]line НДС 12% : 0.00 [19:27:52]line Наличными: 0.00 [19:27:52]line Безнал.: 0.00 [19:27:52]line Место: АЗС № 92 "Партнер Нефть" [19:27:52]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:27:52]line СНО: Общий режим [19:27:52]line Чек 222 19.02.2025 19:27 [19:27:52]line Смена: 647 ФФД: 1.0 [19:27:52]line ЗНМ: 0300000118 [19:27:52]line РНМ: 0000000000091857 [19:27:52]line Версия ККМ: 001 [19:27:52]line Талоны: Топливная Карта [19:27:52]line 03529 [19:27:52]line ФМ: 0000000000871826 [19:27:52]line ФД: 187156 [19:27:52]line ФПД: 169776399020671 [19:27:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T192751&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187156&fm=169776399020671&tin=02508201610067®Number=0000000000091857&sum=0 [19:27:52]OFD Sender: Processing packet 187156 [packets to send 49, broken 48] [19:27:52]ProducePacketName [19:27:52]name=ofd_packets/00187156 [19:27:52]OFD Sender: To server: pG, [19:27:52]CommunicateWithHost lk.salyk.kg:30040 [19:27:52]ConnectInit lk.salyk.kg [19:27:52]written 0, free lines is 4095 [19:27:52]Connected sock=10 [19:27: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 3F 02 07 01 AC 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 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 DE 00 00 00 F4 03 04 00 B7 30 B6 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 14 DB 02 00 35 04 06 00 9A 69 25 F4 72 7F 2A A5 CB 83 9C AB F2 BB [19:27:53]Write to MH i2c: 01 00 00 51 05 56 [19:27: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 FE 96 47 00 6C 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 14 DB 02 00 F4 03 04 00 0A D7 B5 67 B6 04 01 00 00 B9 3C EF D0 0D 8E E0 CD [19:27:53]CommunicateWithHost err = 0 [19:27:53]CheckOFDResponse [19:27:53]1017 (14) - 77093643461234 [19:27:53]1041 (16) - 0000000000871826 [19:27:53]1040 (4) - 187156 [19:27:53]1012 (4) - 19.02.2025 13:05 [19:27:53]1206 (1) - 0 [19:27:53]OFD Sender: Remove packet 187156 [19:27:53]ProducePacketName [19:27:53]name=ofd_packets/00187156 [19:27:53]NVStorageDeleteData [19:27:53]Write i2c OK [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: 01 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: 01 07 00 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: 01 07 00 51 05 00 00 00 00 00 05 0D 6F [19:27:53]RasterBufferAndPrint [19:27:53]line [19:27:53]line [19:27:53]line [19:27:53]line [19:27:53]line [19:27:53]written 0, free lines is 3345 [19:27:53]MH_Cut [19:27:53]Write to MH i2c: D1 01 00 58 05 01 2F [19:27:53]Write i2c OK [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: D1 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: D1 01 00 [19:27:53]MH_I2C_Read... [19:27:53]Read from MH i2c: D1 01 00 58 05 00 2E [19:27:53]Write to MH i2c: 01 00 00 59 05 5E [19:27:53]Write i2c OK [19:27:53]MH_I2C_Read... [19:27:53]OFD Sender: No OFD packet to send [19:27:53]*** Cut start [19:27:53]*** Partial cut [19:27:53]*** CUTSNS_PIN = 1 [19:27:53]*** CUTSNS_PIN = 0 [19:27:54]*** Brake cut motor [19:27:54]Read from MH i2c: 01 [19:27:54]MH_I2C_Read... [19:27:54]*** Stop cut motor [19:27:54]*** Cut end [19:27:54]Read from MH i2c: 01 07 00 [19:27:54]MH_I2C_Read... [19:27:54]Read from MH i2c: 01 07 00 59 05 00 00 00 00 00 FF 0F 73 [19:27:54]process_action close_receipt done [19:27:54]requested_data is exist [19:27:54]produce_requested_data [19:27:54]requested_item fm.sn is exist - process it [19:27:54]wFMCommunicate request_size=4 [19:27:54]MH_SAM_APDU [19:27:54]CAPDU: 80 11 00 00 [19:27:54]Write to MH i2c: E2 08 00 5A 05 80 11 00 00 00 00 00 00 D9 [19:27:54]Write i2c OK [19:27:54]MH_I2C_Read... [19:27:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:54]Read from MH i2c: E2 [19:27:54]MH_I2C_Read... [19:27:54]Read from MH i2c: E2 17 00 [19:27:54]MH_I2C_Read... [19:27:54]Read from MH i2c: E2 17 00 5A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2C [19:27: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:27:54]wFMCommunicate OK [19:27:54]requested_item fd.num is exist - process it [19:27:54]SAM_PROTO_GetFieldsCounters [19:27:54]wFMCommunicate request_size=4 [19:27:54]MH_SAM_APDU [19:27:54]CAPDU: 80 13 00 00 [19:27:54]Write to MH i2c: E2 08 00 5B 05 80 13 00 00 00 00 00 00 DC [19:27:54]Write i2c OK [19:27:54]MH_I2C_Read... [19:27:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:54]Read from MH i2c: E2 [19:27:54]MH_I2C_Read... [19:27:54]Read from MH i2c: E2 62 00 [19:27:54]MH_I2C_Read... [19:27:54]Read from MH i2c: E2 62 00 5B 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 14 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [19:27: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 14 DB 02 00 0E 04 04 00 87 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 [19:27:54]wFMCommunicate OK [19:27:54]SAM_PROTO_GetFieldsCounters done [19:27:54]requested_item shift.num is exist - process it [19:27:54]requested_item shift.opened is exist - process it [19:27:54]req_shift_opened [19:27:54]FM_GetShiftState [19:27:54]SAM_PROTO_GetShiftState [19:27:54]wFMCommunicate request_size=4 [19:27:54]MH_SAM_APDU [19:27:54]CAPDU: 80 13 01 00 [19:27:54]Write to MH i2c: E2 08 00 5C 05 80 13 01 00 00 00 00 00 DE [19:27:54]Write i2c OK [19:27:54]MH_I2C_Read... [19:27:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:54]Read from MH i2c: E2 [19:27:54]MH_I2C_Read... [19:27:54]Read from MH i2c: E2 0E 00 [19:27:54]MH_I2C_Read... [19:27:54]Read from MH i2c: E2 0E 00 5C 05 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 5D [19:27:54]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:27:54]wFMCommunicate OK [19:27:54]SAM_PROTO_GetShiftState done [19:27:54]FM_GetShiftState done [19:27:54]req_shift_opened done [19:27:54]requested_item shift.open_date is exist - process it [19:27:54]req_shift_open_date [19:27:54]req_shift_open_date done [19:27:54]produce_requested_data done [19:27:54]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187156,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [19:27:54]process_action_free close_receipt [19:27:54]json_value_free [19:27:54]json_value_free done [19:27:54]process_json_proto returns [19:27:54]Send response to host [19:27:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187156,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [19:27:54]free response buf [19:27:54]execute_script done [19:27:54]execute_script returns [19:27:54]free content buf [19:27:54]Sock 7.Close socket [19:27:54]Sock 7.Thread stoped [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:00]accept exits with 9 [19:33:00]New connection [19:33:00]New thread 3066654052 created [19:33:00]Thread 3066510692 joined [19:33:00]Waiting for new connection... [19:33:00] Sock 9.Parse request [19:33:00]Sock 9.Check first char [19:33:00]Sock 9.First char is OK [19:33:00]request: POST /json_proto HTTP/1.0 [19:33:00]Method: POST [19:33:00]URL: /json_proto [19:33:00]Method is POST - this is cgi request [19:33:00]url: /json_proto [19:33:00]query_string will be loaded in cgi processing [19:33:00]execute_cgi json_proto POST (null) [19:33:00]execute_cgi path=json_proto method=POST [19:33:00]POST find Content-Length [19:33:00]Host: 172.17.46.131:8080 [19:33:00]Content-Length: 791 [19:33:00]Content-Type: application/json [19:33:00] [19:33:00]POST finish read [19:33:00]Found Content-Length = 791 [19:33:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412311", "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" : 6.240, "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\u000A03529", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:00]execute_script... [19:33: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)412311", "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" : 6.240, "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\u000A03529", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:33:00]POST & json_proto [19:33:00]process_json_proto [19:33:00]json parsed OK: [19:33:00]protocol is kg_v1.0 [19:33:00]action value=close_receipt [19:33:00]process_action close_receipt [19:33:00]cmd_close_receipt [19:33:00]MH_GetDate [19:33:00]Write to MH i2c: F0 00 00 5D 05 51 [19:33:00]Write i2c OK [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: F0 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: F0 09 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: F0 09 00 5D 05 00 EC 31 B6 67 7E 41 4F 65 07 [19:33:00]GetLastDocTimeStamp 1739993271 [19:33:00]current date 1739993580 [19:33:00]FM_GetShiftState [19:33:00]SAM_PROTO_GetShiftState [19:33:00]wFMCommunicate request_size=4 [19:33:00]MH_SAM_APDU [19:33:00]CAPDU: 80 13 01 00 [19:33:00]Write to MH i2c: E2 08 00 5E 05 80 13 01 00 00 00 00 00 E0 [19:33:00]Write i2c OK [19:33:00]MH_I2C_Read... [19:33:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:00]Read from MH i2c: E2 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 0E 00 [19:33:00]MH_I2C_Read... [19:33:00]Read from MH i2c: E2 0E 00 5E 05 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 5F [19:33:00]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:33:00]wFMCommunicate OK [19:33:00]SAM_PROTO_GetShiftState done [19:33:00]FM_GetShiftState done [19:33:00]opened in 1739929631 [19:33:00]opened+sec_in_day 1740016031 [19:33:00]quantity*price = 0 [19:33:00]sum+1 = 1 [19:33: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 СНО: Общий режим Чек 223 19.02.2025 19:33 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 03529 ФМ: 0000000000871826 ФД: 187157 ФПД: 35649444205379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T193300&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187157&fm=35649444205379&tin=02508201610067®Number=0000000000091857&sum=0 [19:33:01]StoreToDocumentArchive [19:33:01]shift 647 fd 187157 [19:33:01]save to /storage/0647/doc_00187157 [19:33:01]save last doc name /storage/0647/doc_00187157 to /storage/kkm_last_doc_name [19:33:01]save OK [19:33:01]Clear old archive folders... [19:33:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:33:01]tlvbuf is 01F5F740 [19:33:01]SAM_PROTO_ClearQueue [19:33:01]wFMCommunicate request_size=4 [19:33:01]MH_SAM_APDU [19:33:01]CAPDU: 80 09 00 00 [19:33:01]Write to MH i2c: E2 08 00 6B 05 80 09 00 00 00 00 00 00 E2 [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:01]Read from MH i2c: E2 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 03 00 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 03 00 6B 05 00 90 00 E4 [19:33:01]RAPDU: 90 00 [19:33:01]wFMCommunicate OK [19:33:01]SAM_PROTO_ClearQueue done [19:33:01]KKMCreateOFDPacket [19:33:01]OFDProtocolAddRootSTLVToBuf [19:33:01]FM_MakeSignedData [19:33:01]FM_MakeSignedData [19:33:01]SAM_PROTO_SignData [19:33:01]wFMCommunicate request_size=4 [19:33:01]MH_SAM_APDU [19:33:01]CAPDU: 80 0D 01 02 [19:33:01]Write to MH i2c: E2 08 00 6C 05 80 0D 01 02 00 00 00 00 EA [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:01]Read from MH i2c: E2 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 03 00 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 03 00 6C 05 00 90 00 E5 [19:33:01]RAPDU: 90 00 [19:33:01]wFMCommunicate OK [19:33:01]wFMCommunicate request_size=255 [19:33:01]MH_SAM_APDU [19:33: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 60 18 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 DF 00 00 00 F4 03 04 00 EC 31 B6 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 15 DB 02 00 35 04 06 00 20 [19:33:01]Write to MH i2c: E2 02 01 6D 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 60 18 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 DF 00 00 00 F4 03 04 00 EC 31 B6 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 15 DB 02 00 35 04 06 00 20 00 00 22 [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:01]Read from MH i2c: E2 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 03 00 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 03 00 6D 05 00 90 00 E6 [19:33:01]RAPDU: 90 00 [19:33:01]wFMCommunicate OK [19:33:01]wFMCommunicate request_size=10 [19:33:01]MH_SAM_APDU [19:33:01]CAPDU: 80 0D 02 02 05 6C 48 75 53 43 [19:33:01]Write to MH i2c: E2 0D 00 6E 05 80 0D 02 02 05 00 6C 48 75 53 43 00 00 B6 [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:01]Read from MH i2c: E2 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 03 00 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 03 00 6E 05 00 90 00 E7 [19:33:01]RAPDU: 90 00 [19:33:01]wFMCommunicate OK [19:33:01]wFMCommunicate request_size=4 [19:33:01]MH_SAM_APDU [19:33:01]CAPDU: 80 0D 03 02 [19:33:01]Write to MH i2c: E2 08 00 6F 05 80 0D 03 02 00 00 00 00 EF [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:01]Read from MH i2c: E2 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 0B 00 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 0B 00 6F 05 00 14 88 45 FF EA B6 C8 C4 90 00 FC [19:33:01]RAPDU: 14 88 45 FF EA B6 C8 C4 90 00 [19:33:01]wFMCommunicate OK [19:33:01]SAM_PROTO_SignData done [19:33:01]FM_MakeSignedData done [19:33:01]CreateOFDProtocolMessage [19:33:01]wFMCommunicate request_size=4 [19:33:01]MH_SAM_APDU [19:33:01]CAPDU: 80 11 00 00 [19:33:01]Write to MH i2c: E2 08 00 70 05 80 11 00 00 00 00 00 00 EF [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:01]Read from MH i2c: E2 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 17 00 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: E2 17 00 70 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 42 [19:33: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:33:01]wFMCommunicate OK [19:33:01]CreateOFDProtocolMessage done [19:33:01]OFDSenderStorePacket 187157 [19:33:01]StoreOFDPacket docnum=187157 [19:33: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 22 F7 07 01 BF 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 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 DF 00 00 00 F4 03 04 00 EC 31 B6 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 15 DB 02 00 35 04 06 00 20 6C 48 75 53 43 14 88 45 FF EA B6 C8 C4 [19:33:01]CheckFolder [19:33:01]dirname=/storage/ofd_packets [19:33:01]CheckFolder done [19:33:01]ProducePacketName [19:33:01]name=ofd_packets/00187157 [19:33:01]NVStorageSaveData ofd_packets/00187157 [19:33:01]File name is /storage/ofd_packets/00187157 [19:33:01]Write 301 bytes [19:33:01]NVStorageSaveData done [19:33:01]OFDSenderStorePacket done [19:33:01]KKMCreateOFDPacket done [19:33:01]NVStorageSaveData kkm_last_timestamp [19:33:01]File name is /storage/kkm_last_timestamp [19:33:01]Write 4 bytes [19:33:01]NVStorageSaveData done [19:33:01]ExternCall_PrintAddStr [19:33:01]wPrintStart [19:33:01]Write to MH i2c: 01 00 00 71 05 76 [19:33:01]Write i2c OK [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: 01 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: 01 07 00 [19:33:01]MH_I2C_Read... [19:33:01]Read from MH i2c: 01 07 00 71 05 00 00 00 00 00 FF 0F 8B [19:33:01]RasterBufferAndPrint [19:33:01]line Счет N : (1)412311 [19:33:01]line ИНН: 02508201610067 [19:33:01]line Контрольно-Кассовый Чек [19:33:01]line ПРОДАЖА [19:33:01]line ТРК (МРК, ГНК) : 12 [19:33:01]line Товар: 2710124130 [19:33:01]line Аи-92-К-2 [19:33:01]line 6.240 * 0.00 [19:33:01]line = 0.00 [19:33:01]line НДС 12% НСП 1% [19:33:01]line > о реализуемом товаре [19:33:01]line ИТОГО: 0.00 [19:33:01]line НСП 1% : 0.00 [19:33:01]line НДС 12% : 0.00 [19:33:01]line Наличными: 0.00 [19:33:01]line Безнал.: 0.00 [19:33:01]line Место: АЗС № 92 "Партнер Нефть" [19:33:01]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:33:01]line СНО: Общий режим [19:33:01]line Чек 223 19.02.2025 19:33 [19:33:01]line Смена: 647 ФФД: 1.0 [19:33:01]line ЗНМ: 0300000118 [19:33:01]line РНМ: 0000000000091857 [19:33:01]line Версия ККМ: 001 [19:33:01]line Талоны: Топливная Карта [19:33:01]line 03529 [19:33:01]line ФМ: 0000000000871826 [19:33:01]line ФД: 187157 [19:33:01]line ФПД: 35649444205379 [19:33:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T193300&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187157&fm=35649444205379&tin=02508201610067®Number=0000000000091857&sum=0 [19:33:01]written 0, free lines is 4095 [19:33:01]OFD Sender: Processing packet 187157 [packets to send 49, broken 48] [19:33:01]ProducePacketName [19:33:01]name=ofd_packets/00187157 [19:33:01]OFD Sender: To server: pG, [19:33:01]CommunicateWithHost lk.salyk.kg:30040 [19:33:01]ConnectInit lk.salyk.kg [19:33:01]Connected sock=7 [19:33: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 22 F7 07 01 BF 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 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 DF 00 00 00 F4 03 04 00 EC 31 B6 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 15 DB 02 00 35 04 06 00 20 6C 48 75 53 43 14 88 45 FF EA B6 C8 C4 [19:33:02]Write to MH i2c: 01 00 00 9B 05 A0 [19:33:02]Write i2c OK [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: 01 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: 01 07 00 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: 01 07 00 9B 05 00 00 00 00 00 F7 0C AA [19:33:02]RasterBufferAndPrint [19:33:02]line [19:33:02]line [19:33:02]line [19:33:02]line [19:33:02]line [19:33:02]written 0, free lines is 3325 [19:33:02]MH_Cut [19:33:02]Write to MH i2c: D1 01 00 A2 05 01 79 [19:33:02]Write i2c OK [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: D1 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: D1 01 00 [19:33:02]MH_I2C_Read... [19:33:02]Read from MH i2c: D1 01 00 A2 05 00 78 [19:33:02]Write to MH i2c: 01 00 00 A3 05 A8 [19:33:02]Write i2c OK [19:33:02]MH_I2C_Read... [19:33: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 BF 24 47 00 B6 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 15 DB 02 00 F4 03 04 00 3F D8 B5 67 B6 04 01 00 00 0E EE 33 3F 49 16 65 C2 [19:33:02]CommunicateWithHost err = 0 [19:33:02]CheckOFDResponse [19:33:02]1017 (14) - 77093643461234 [19:33:02]1041 (16) - 0000000000871826 [19:33:02]1040 (4) - 187157 [19:33:02]1012 (4) - 19.02.2025 13:10 [19:33:02]1206 (1) - 0 [19:33:02]OFD Sender: Remove packet 187157 [19:33:02]ProducePacketName [19:33:02]name=ofd_packets/00187157 [19:33:02]NVStorageDeleteData [19:33:02]OFD Sender: No OFD packet to send [19:33:02]*** Cut start [19:33:02]*** Partial cut [19:33:02]*** CUTSNS_PIN = 1 [19:33:02]*** CUTSNS_PIN = 0 [19:33:03]*** Brake cut motor [19:33:03]Read from MH i2c: 01 [19:33:03]MH_I2C_Read... [19:33:03]*** Stop cut motor [19:33:03]*** Cut end [19:33:03]Read from MH i2c: 01 07 00 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: 01 07 00 A3 05 00 00 00 00 00 FF 0F BD [19:33:03]process_action close_receipt done [19:33:03]requested_data is exist [19:33:03]produce_requested_data [19:33:03]requested_item fm.sn is exist - process it [19:33:03]wFMCommunicate request_size=4 [19:33:03]MH_SAM_APDU [19:33:03]CAPDU: 80 11 00 00 [19:33:03]Write to MH i2c: E2 08 00 A4 05 80 11 00 00 00 00 00 00 23 [19:33:03]Write i2c OK [19:33:03]MH_I2C_Read... [19:33:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:03]Read from MH i2c: E2 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: E2 17 00 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: E2 17 00 A4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 76 [19:33: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:33:03]wFMCommunicate OK [19:33:03]requested_item fd.num is exist - process it [19:33:03]SAM_PROTO_GetFieldsCounters [19:33:03]wFMCommunicate request_size=4 [19:33:03]MH_SAM_APDU [19:33:03]CAPDU: 80 13 00 00 [19:33:03]Write to MH i2c: E2 08 00 A5 05 80 13 00 00 00 00 00 00 26 [19:33:03]Write i2c OK [19:33:03]MH_I2C_Read... [19:33:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:03]Read from MH i2c: E2 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: E2 62 00 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: E2 62 00 A5 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 15 DB 02 00 0E 04 04 00 87 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 64 [19:33: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 15 DB 02 00 0E 04 04 00 87 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 [19:33:03]wFMCommunicate OK [19:33:03]SAM_PROTO_GetFieldsCounters done [19:33:03]requested_item shift.num is exist - process it [19:33:03]requested_item shift.opened is exist - process it [19:33:03]req_shift_opened [19:33:03]FM_GetShiftState [19:33:03]SAM_PROTO_GetShiftState [19:33:03]wFMCommunicate request_size=4 [19:33:03]MH_SAM_APDU [19:33:03]CAPDU: 80 13 01 00 [19:33:03]Write to MH i2c: E2 08 00 A6 05 80 13 01 00 00 00 00 00 28 [19:33:03]Write i2c OK [19:33:03]MH_I2C_Read... [19:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:03]Read from MH i2c: E2 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: E2 0E 00 [19:33:03]MH_I2C_Read... [19:33:03]Read from MH i2c: E2 0E 00 A6 05 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A7 [19:33:03]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:33:03]wFMCommunicate OK [19:33:03]SAM_PROTO_GetShiftState done [19:33:03]FM_GetShiftState done [19:33:03]req_shift_opened done [19:33:03]requested_item shift.open_date is exist - process it [19:33:03]req_shift_open_date [19:33:03]req_shift_open_date done [19:33:03]produce_requested_data done [19:33:03]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187157,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [19:33:03]process_action_free close_receipt [19:33:03]json_value_free [19:33:03]json_value_free done [19:33:03]process_json_proto returns [19:33:03]Send response to host [19:33:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187157,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [19:33:03]free response buf [19:33:03]execute_script done [19:33:03]execute_script returns [19:33:03]free content buf [19:33:03]Sock 9.Close socket [19:33:03]Sock 9.Thread stoped [19:33:07]OFD Sender: No OFD packet to send [19:33:12]OFD Sender: No OFD packet to send [19:33:17]OFD Sender: No OFD packet to send [19:33:22]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [19:35:37]OFD Sender: No OFD packet to send [19:35:40]accept exits with 10 [19:35:40]New connection [19:35:40]New thread 3066510692 created [19:35:40]Thread 3066654052 joined [19:35:40]Waiting for new connection... [19:35:40] Sock 10.Parse request [19:35:40]Sock 10.Check first char [19:35:40]Sock 10.First char is OK [19:35:40]request: POST /json_proto HTTP/1.0 [19:35:40]Method: POST [19:35:40]URL: /json_proto [19:35:40]Method is POST - this is cgi request [19:35:40]url: /json_proto [19:35:40]query_string will be loaded in cgi processing [19:35:40]execute_cgi json_proto POST (null) [19:35:40]execute_cgi path=json_proto method=POST [19:35:40]POST find Content-Length [19:35:40]Host: 172.17.46.131:8080 [19:35:40]Content-Length: 677 [19:35:40]Content-Type: application/json [19:35:40] [19:35:40]POST finish read [19:35:40]Found Content-Length = 677 [19:35:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412312", "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" ] } } [19:35:40]execute_script... [19:35: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)412312", "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" ] } } [19:35:40]POST & json_proto [19:35:40]process_json_proto [19:35:40]json parsed OK: [19:35:40]protocol is kg_v1.0 [19:35:40]action value=close_receipt [19:35:40]process_action close_receipt [19:35:40]cmd_close_receipt [19:35:40]MH_GetDate [19:35:40]Write to MH i2c: F0 00 00 A7 05 9B [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: F0 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: F0 09 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: F0 09 00 A7 05 00 8D 32 B6 67 7E 41 4F 65 F3 [19:35:40]GetLastDocTimeStamp 1739993580 [19:35:40]current date 1739993741 [19:35:40]FM_GetShiftState [19:35:40]SAM_PROTO_GetShiftState [19:35:40]wFMCommunicate request_size=4 [19:35:40]MH_SAM_APDU [19:35:40]CAPDU: 80 13 01 00 [19:35:40]Write to MH i2c: E2 08 00 A8 05 80 13 01 00 00 00 00 00 2A [19:35:40]Write i2c OK [19:35:40]MH_I2C_Read... [19:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:40]Read from MH i2c: E2 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 0E 00 [19:35:40]MH_I2C_Read... [19:35:40]Read from MH i2c: E2 0E 00 A8 05 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A9 [19:35:40]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:35:40]wFMCommunicate OK [19:35:40]SAM_PROTO_GetShiftState done [19:35:40]FM_GetShiftState done [19:35:40]opened in 1739929631 [19:35:40]opened+sec_in_day 1740016031 [19:35:40]quantity*price = 20030 [19:35:40]sum+1 = 20031 [19:35:40]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 СНО: Общий режим Чек 224 19.02.2025 19:35 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187158 ФПД: 128692777207421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T193541&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187158&fm=128692777207421&tin=02508201610067®Number=0000000000091857&sum=20000 [19:35:41]StoreToDocumentArchive [19:35:41]shift 647 fd 187158 [19:35:41]save to /storage/0647/doc_00187158 [19:35:41]save last doc name /storage/0647/doc_00187158 to /storage/kkm_last_doc_name [19:35:41]save OK [19:35:41]Clear old archive folders... [19:35:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:35:41]tlvbuf is B6E913A0 [19:35:41]SAM_PROTO_ClearQueue [19:35:41]wFMCommunicate request_size=4 [19:35:41]MH_SAM_APDU [19:35:41]CAPDU: 80 09 00 00 [19:35:41]Write to MH i2c: E2 08 00 B5 05 80 09 00 00 00 00 00 00 2C [19:35:41]Write i2c OK [19:35:41]MH_I2C_Read... [19:35:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:41]Read from MH i2c: E2 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 03 00 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 03 00 B5 05 00 90 00 2E [19:35:41]RAPDU: 90 00 [19:35:41]wFMCommunicate OK [19:35:41]SAM_PROTO_ClearQueue done [19:35:41]KKMCreateOFDPacket [19:35:41]OFDProtocolAddRootSTLVToBuf [19:35:41]FM_MakeSignedData [19:35:41]FM_MakeSignedData [19:35:41]SAM_PROTO_SignData [19:35:41]wFMCommunicate request_size=4 [19:35:41]MH_SAM_APDU [19:35:41]CAPDU: 80 0D 01 02 [19:35:41]Write to MH i2c: E2 08 00 B6 05 80 0D 01 02 00 00 00 00 34 [19:35:41]Write i2c OK [19:35:41]MH_I2C_Read... [19:35:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:41]Read from MH i2c: E2 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 03 00 [19:35:41]MH_I2C_Read... [19:35:41]Read from MH i2c: E2 03 00 B6 05 00 90 00 2F [19:35:41]RAPDU: 90 00 [19:35:41]wFMCommunicate OK [19:35:41]wFMCommunicate request_size=255 [19:35:41]MH_SAM_APDU [19:35: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 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 E0 00 00 00 F4 03 04 00 8D 32 B6 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 16 DB 02 00 35 04 06 00 75 [19:35:41]Write to MH i2c: E2 02 01 B7 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 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 E0 00 00 00 F4 03 04 00 8D 32 B6 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 16 DB 02 00 35 04 06 00 75 00 00 C6 [19:35:41]Write i2c OK [19:35:41]MH_I2C_Read... [19:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:42]Read from MH i2c: E2 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 03 00 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [19:35:42]RAPDU: 90 00 [19:35:42]wFMCommunicate OK [19:35:42]wFMCommunicate request_size=10 [19:35:42]MH_SAM_APDU [19:35:42]CAPDU: 80 0D 02 02 05 0B 9F 45 46 7D [19:35:42]Write to MH i2c: E2 0D 00 B8 05 80 0D 02 02 05 00 0B 9F 45 46 7D 00 00 F3 [19:35:42]Write i2c OK [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 [19:35:42]MH_I2C_Read... [19:35:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:42]Read from MH i2c: E2 03 00 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 03 00 B8 05 00 90 00 31 [19:35:42]RAPDU: 90 00 [19:35:42]wFMCommunicate OK [19:35:42]wFMCommunicate request_size=4 [19:35:42]MH_SAM_APDU [19:35:42]CAPDU: 80 0D 03 02 [19:35:42]Write to MH i2c: E2 08 00 B9 05 80 0D 03 02 00 00 00 00 39 [19:35:42]Write i2c OK [19:35:42]MH_I2C_Read... [19:35:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:42]Read from MH i2c: E2 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 0B 00 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 0B 00 B9 05 00 96 5A 8D D1 E5 1B 92 88 90 00 A2 [19:35:42]RAPDU: 96 5A 8D D1 E5 1B 92 88 90 00 [19:35:42]wFMCommunicate OK [19:35:42]SAM_PROTO_SignData done [19:35:42]FM_MakeSignedData done [19:35:42]CreateOFDProtocolMessage [19:35:42]wFMCommunicate request_size=4 [19:35:42]MH_SAM_APDU [19:35:42]CAPDU: 80 11 00 00 [19:35:42]Write to MH i2c: E2 08 00 BA 05 80 11 00 00 00 00 00 00 39 [19:35:42]Write i2c OK [19:35:42]MH_I2C_Read... [19:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:42]Read from MH i2c: E2 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 17 00 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: E2 17 00 BA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8C [19:35:42]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:42]wFMCommunicate OK [19:35:42]CreateOFDProtocolMessage done [19:35:42]OFDSenderStorePacket 187158 [19:35:42]StoreOFDPacket docnum=187158 [19:35: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 7C C3 07 01 B8 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 E0 00 00 00 F4 03 04 00 8D 32 B6 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 16 DB 02 00 35 04 06 00 75 0B 9F 45 46 7D 96 5A 8D D1 E5 1B 92 88 [19:35:42]CheckFolder [19:35:42]dirname=/storage/ofd_packets [19:35:42]CheckFolder done [19:35:42]ProducePacketName [19:35:42]name=ofd_packets/00187158 [19:35:42]NVStorageSaveData ofd_packets/00187158 [19:35:42]File name is /storage/ofd_packets/00187158 [19:35:42]Write 301 bytes [19:35:42]NVStorageSaveData done [19:35:42]OFDSenderStorePacket done [19:35:42]KKMCreateOFDPacket done [19:35:42]NVStorageSaveData kkm_last_timestamp [19:35:42]File name is /storage/kkm_last_timestamp [19:35:42]Write 4 bytes [19:35:42]NVStorageSaveData done [19:35:42]ExternCall_PrintAddStr [19:35:42]wPrintStart [19:35:42]Write to MH i2c: 01 00 00 BB 05 C0 [19:35:42]Write i2c OK [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: 01 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: 01 07 00 [19:35:42]MH_I2C_Read... [19:35:42]Read from MH i2c: 01 07 00 BB 05 00 00 00 00 00 FF 0F D5 [19:35:42]RasterBufferAndPrint [19:35:42]line Счет N : (1)412312 [19:35:42]line ИНН: 02508201610067 [19:35:42]line Контрольно-Кассовый Чек [19:35:42]line ПРОДАЖА [19:35:42]line ТРК (МРК, ГНК) : 22 [19:35:42]line Товар: 2710124130 [19:35:42]line Аи-92-К-2 [19:35:42]line 3.120 * 64.20 [19:35:42]line = 200.30 [19:35:42]line НДС 12% НСП 1% [19:35:42]line > о реализуемом товаре [19:35:42]line ОКРУГЛЕНИЕ: -0.30 [19:35:42]line ИТОГО: 200.00 [19:35:42]line Внесено: 200.00 [19:35:42]line СДАЧА: 0.00 [19:35:42]line НСП 1% : 1.77 [19:35:42]line НДС 12% : 21.27 [19:35:42]line Наличными: 200.00 [19:35:42]line Безнал.: 0.00 [19:35:42]line Место: АЗС № 92 "Партнер Нефть" [19:35:42]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:35:42]line СНО: Общий режим [19:35:42]line Чек 224 19.02.2025 19:35 [19:35:42]line Смена: 647 ФФД: 1.0 [19:35:42]line ЗНМ: 0300000118 [19:35:42]line РНМ: 0000000000091857 [19:35:42]line Версия ККМ: 001 [19:35:42]line ФМ: 0000000000871826 [19:35:42]line ФД: 187158 [19:35:42]line ФПД: 128692777207421 [19:35:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T193541&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187158&fm=128692777207421&tin=02508201610067®Number=0000000000091857&sum=20000 [19:35:42]OFD Sender: Processing packet 187158 [packets to send 49, broken 48] [19:35:42]ProducePacketName [19:35:42]name=ofd_packets/00187158 [19:35:42]OFD Sender: To server: pG, [19:35:42]CommunicateWithHost lk.salyk.kg:30040 [19:35:42]ConnectInit lk.salyk.kg [19:35:42]written 0, free lines is 4095 [19:35:42]Connected sock=9 [19: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 7C C3 07 01 B8 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 E0 00 00 00 F4 03 04 00 8D 32 B6 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 16 DB 02 00 35 04 06 00 75 0B 9F 45 46 7D 96 5A 8D D1 E5 1B 92 88 [19: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 8F 3A 47 00 70 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 16 DB 02 00 F4 03 04 00 E0 D8 B5 67 B6 04 01 00 00 E9 02 D4 46 20 53 48 2D [19:35:43]CommunicateWithHost err = 0 [19:35:43]CheckOFDResponse [19:35:43]1017 (14) - 77093643461234 [19:35:43]1041 (16) - 0000000000871826 [19:35:43]1040 (4) - 187158 [19:35:43]1012 (4) - 19.02.2025 13:13 [19:35:43]1206 (1) - 0 [19:35:43]OFD Sender: Remove packet 187158 [19:35:43]ProducePacketName [19:35:43]name=ofd_packets/00187158 [19:35:43]NVStorageDeleteData [19:35:43]Write to MH i2c: 01 00 00 E6 05 EB [19:35:43]Write i2c OK [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: 01 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: 01 07 00 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: 01 07 00 E6 05 00 00 00 00 00 EF 0C ED [19:35:43]RasterBufferAndPrint [19:35:43]line [19:35:43]line [19:35:43]line [19:35:43]line [19:35:43]line [19:35:43]written 0, free lines is 3317 [19:35:43]MH_Cut [19:35:43]Write to MH i2c: D1 01 00 ED 05 01 C4 [19:35:43]Write i2c OK [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: D1 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: D1 01 00 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: D1 01 00 ED 05 00 C3 [19:35:43]Write to MH i2c: 01 00 00 EE 05 F3 [19:35:43]Write i2c OK [19:35:43]MH_I2C_Read... [19:35:43]OFD Sender: No OFD packet to send [19:35:43]*** Cut start [19:35:43]*** Partial cut [19:35:43]*** CUTSNS_PIN = 1 [19:35:43]*** CUTSNS_PIN = 0 [19:35:44]*** Brake cut motor [19:35:44]Read from MH i2c: 01 [19:35:44]MH_I2C_Read... [19:35:44]*** Stop cut motor [19:35:44]*** Cut end [19:35:44]Read from MH i2c: 01 07 00 [19:35:44]MH_I2C_Read... [19:35:44]Read from MH i2c: 01 07 00 EE 05 00 00 00 00 00 FF 0F 08 [19:35:44]process_action close_receipt done [19:35:44]requested_data is exist [19:35:44]produce_requested_data [19:35:44]requested_item fm.sn is exist - process it [19:35:44]wFMCommunicate request_size=4 [19:35:44]MH_SAM_APDU [19:35:44]CAPDU: 80 11 00 00 [19:35:44]Write to MH i2c: E2 08 00 EF 05 80 11 00 00 00 00 00 00 6E [19:35:44]Write i2c OK [19:35:44]MH_I2C_Read... [19:35:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:44]Read from MH i2c: E2 [19:35:44]MH_I2C_Read... [19:35:44]Read from MH i2c: E2 17 00 [19:35:44]MH_I2C_Read... [19:35:44]Read from MH i2c: E2 17 00 EF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C1 [19:35: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:35:44]wFMCommunicate OK [19:35:44]requested_item fd.num is exist - process it [19:35:44]SAM_PROTO_GetFieldsCounters [19:35:44]wFMCommunicate request_size=4 [19:35:44]MH_SAM_APDU [19:35:44]CAPDU: 80 13 00 00 [19:35:44]Write to MH i2c: E2 08 00 F0 05 80 13 00 00 00 00 00 00 71 [19:35:44]Write i2c OK [19:35:44]MH_I2C_Read... [19:35:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:44]Read from MH i2c: E2 [19:35:44]MH_I2C_Read... [19:35:44]Read from MH i2c: E2 62 00 [19:35:44]MH_I2C_Read... [19:35:44]Read from MH i2c: E2 62 00 F0 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 16 DB 02 00 0E 04 04 00 87 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 B3 [19:35: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 16 DB 02 00 0E 04 04 00 87 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 [19:35:44]wFMCommunicate OK [19:35:44]SAM_PROTO_GetFieldsCounters done [19:35:44]requested_item shift.num is exist - process it [19:35:44]requested_item shift.opened is exist - process it [19:35:44]req_shift_opened [19:35:44]FM_GetShiftState [19:35:44]SAM_PROTO_GetShiftState [19:35:44]wFMCommunicate request_size=4 [19:35:44]MH_SAM_APDU [19:35:44]CAPDU: 80 13 01 00 [19:35:44]Write to MH i2c: E2 08 00 F1 05 80 13 01 00 00 00 00 00 73 [19:35:44]Write i2c OK [19:35:44]MH_I2C_Read... [19:35:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:44]Read from MH i2c: E2 [19:35:44]MH_I2C_Read... [19:35:44]Read from MH i2c: E2 0E 00 [19:35:44]MH_I2C_Read... [19:35:44]Read from MH i2c: E2 0E 00 F1 05 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F2 [19:35:44]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:35:44]wFMCommunicate OK [19:35:44]SAM_PROTO_GetShiftState done [19:35:44]FM_GetShiftState done [19:35:44]req_shift_opened done [19:35:44]requested_item shift.open_date is exist - process it [19:35:44]req_shift_open_date [19:35:44]req_shift_open_date done [19:35:44]produce_requested_data done [19:35:44]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187158,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [19:35:44]process_action_free close_receipt [19:35:44]json_value_free [19:35:44]json_value_free done [19:35:44]process_json_proto returns [19:35:44]Send response to host [19:35:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187158,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [19:35:44]free response buf [19:35:44]execute_script done [19:35:44]execute_script returns [19:35:44]free content buf [19:35:44]Sock 10.Close socket [19:35:44]Sock 10.Thread stoped [19:35:48]OFD Sender: No OFD packet to send [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:36]accept exits with 7 [19:37:36]New connection [19:37:36]New thread 3066654052 created [19:37:36]Thread 3066510692 joined [19:37:36]Waiting for new connection... [19:37:36] Sock 7.Parse request [19:37:36]Sock 7.Check first char [19:37:36]Sock 7.First char is OK [19:37:36]request: POST /json_proto HTTP/1.0 [19:37:36]Method: POST [19:37:36]URL: /json_proto [19:37:36]Method is POST - this is cgi request [19:37:36]url: /json_proto [19:37:36]query_string will be loaded in cgi processing [19:37:36]execute_cgi json_proto POST (null) [19:37:36]execute_cgi path=json_proto method=POST [19:37:36]POST find Content-Length [19:37:36]Host: 172.17.46.131:8080 [19:37:36]Content-Length: 791 [19:37:36]Content-Type: application/json [19:37:36] [19:37:36]POST finish read [19:37:36]Found Content-Length = 791 [19:37:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412313", "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" : 7.790, "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\u000A03529", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:36]execute_script... [19:37: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)412313", "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" : 7.790, "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\u000A03529", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:36]POST & json_proto [19:37:36]process_json_proto [19:37:36]json parsed OK: [19:37:36]protocol is kg_v1.0 [19:37:36]action value=close_receipt [19:37:36]process_action close_receipt [19:37:36]cmd_close_receipt [19:37:36]MH_GetDate [19:37:36]Write to MH i2c: F0 00 00 F2 05 E6 [19:37:36]Write i2c OK [19:37:36]MH_I2C_Read... [19:37:36]Read from MH i2c: F0 [19:37:36]MH_I2C_Read... [19:37:36]Read from MH i2c: F0 09 00 [19:37:36]MH_I2C_Read... [19:37:36]Read from MH i2c: F0 09 00 F2 05 00 01 33 B6 67 7E 41 4F 65 B3 [19:37:36]GetLastDocTimeStamp 1739993741 [19:37:36]current date 1739993857 [19:37:36]FM_GetShiftState [19:37:36]SAM_PROTO_GetShiftState [19:37:36]wFMCommunicate request_size=4 [19:37:36]MH_SAM_APDU [19:37:36]CAPDU: 80 13 01 00 [19:37:36]Write to MH i2c: E2 08 00 F3 05 80 13 01 00 00 00 00 00 75 [19:37:36]Write i2c OK [19:37:36]MH_I2C_Read... [19:37:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:36]Read from MH i2c: E2 [19:37:36]MH_I2C_Read... [19:37:36]Read from MH i2c: E2 0E 00 [19:37:36]MH_I2C_Read... [19:37:36]Read from MH i2c: E2 0E 00 F3 05 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F4 [19:37:36]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:37:36]wFMCommunicate OK [19:37:36]SAM_PROTO_GetShiftState done [19:37:36]FM_GetShiftState done [19:37:36]opened in 1739929631 [19:37:36]opened+sec_in_day 1740016031 [19:37:36]quantity*price = 0 [19:37:36]sum+1 = 1 [19:37:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 225 19.02.2025 19:37 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 03529 ФМ: 0000000000871826 ФД: 187159 ФПД: 207627418726269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T193737&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187159&fm=207627418726269&tin=02508201610067®Number=0000000000091857&sum=0 [19:37:37]StoreToDocumentArchive [19:37:37]shift 647 fd 187159 [19:37:37]save to /storage/0647/doc_00187159 [19:37:37]save last doc name /storage/0647/doc_00187159 to /storage/kkm_last_doc_name [19:37:37]save OK [19:37:37]Clear old archive folders... [19:37:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:37:37]tlvbuf is 01F71130 [19:37:37]SAM_PROTO_ClearQueue [19:37:37]wFMCommunicate request_size=4 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 09 00 00 [19:37:37]Write to MH i2c: E2 08 00 00 06 80 09 00 00 00 00 00 00 78 [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 00 06 00 90 00 7A [19:37:37]RAPDU: 90 00 [19:37:37]wFMCommunicate OK [19:37:37]SAM_PROTO_ClearQueue done [19:37:37]KKMCreateOFDPacket [19:37:37]OFDProtocolAddRootSTLVToBuf [19:37:37]FM_MakeSignedData [19:37:37]FM_MakeSignedData [19:37:37]SAM_PROTO_SignData [19:37:37]wFMCommunicate request_size=4 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 0D 01 02 [19:37:37]Write to MH i2c: E2 08 00 01 06 80 0D 01 02 00 00 00 00 80 [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 01 06 00 90 00 7B [19:37:37]RAPDU: 90 00 [19:37:37]wFMCommunicate OK [19:37:37]wFMCommunicate request_size=255 [19:37:37]MH_SAM_APDU [19:37: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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 01 33 B6 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 17 DB 02 00 35 04 06 00 BC [19:37:37]Write to MH i2c: E2 02 01 02 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 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 E1 00 00 00 F4 03 04 00 01 33 B6 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 17 DB 02 00 35 04 06 00 BC 00 00 83 [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:37]Read from MH i2c: E2 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 [19:37:37]MH_I2C_Read... [19:37:37]Read from MH i2c: E2 03 00 02 06 00 90 00 7C [19:37:37]RAPDU: 90 00 [19:37:37]wFMCommunicate OK [19:37:37]wFMCommunicate request_size=10 [19:37:37]MH_SAM_APDU [19:37:37]CAPDU: 80 0D 02 02 05 D6 06 89 EF 7D [19:37:37]Write to MH i2c: E2 0D 00 03 06 80 0D 02 02 05 00 D6 06 89 EF 7D 00 00 5E [19:37:37]Write i2c OK [19:37:37]MH_I2C_Read... [19:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:37]Read from MH i2c: E2 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: E2 03 00 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: E2 03 00 03 06 00 90 00 7D [19:37:38]RAPDU: 90 00 [19:37:38]wFMCommunicate OK [19:37:38]wFMCommunicate request_size=4 [19:37:38]MH_SAM_APDU [19:37:38]CAPDU: 80 0D 03 02 [19:37:38]Write to MH i2c: E2 08 00 04 06 80 0D 03 02 00 00 00 00 85 [19:37:38]Write i2c OK [19:37:38]MH_I2C_Read... [19:37:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:38]Read from MH i2c: E2 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: E2 0B 00 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: E2 0B 00 04 06 00 B7 A1 6B 2B FA B3 A7 0A 90 00 D2 [19:37:38]RAPDU: B7 A1 6B 2B FA B3 A7 0A 90 00 [19:37:38]wFMCommunicate OK [19:37:38]SAM_PROTO_SignData done [19:37:38]FM_MakeSignedData done [19:37:38]CreateOFDProtocolMessage [19:37:38]wFMCommunicate request_size=4 [19:37:38]MH_SAM_APDU [19:37:38]CAPDU: 80 11 00 00 [19:37:38]Write to MH i2c: E2 08 00 05 06 80 11 00 00 00 00 00 00 85 [19:37:38]Write i2c OK [19:37:38]MH_I2C_Read... [19:37:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:38]Read from MH i2c: E2 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: E2 17 00 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: E2 17 00 05 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D8 [19:37:38]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:38]wFMCommunicate OK [19:37:38]CreateOFDProtocolMessage done [19:37:38]OFDSenderStorePacket 187159 [19:37:38]StoreOFDPacket docnum=187159 [19:37: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 14 D6 07 01 AA 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 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 E1 00 00 00 F4 03 04 00 01 33 B6 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 17 DB 02 00 35 04 06 00 BC D6 06 89 EF 7D B7 A1 6B 2B FA B3 A7 0A [19:37:38]CheckFolder [19:37:38]dirname=/storage/ofd_packets [19:37:38]CheckFolder done [19:37:38]ProducePacketName [19:37:38]name=ofd_packets/00187159 [19:37:38]NVStorageSaveData ofd_packets/00187159 [19:37:38]File name is /storage/ofd_packets/00187159 [19:37:38]Write 301 bytes [19:37:38]NVStorageSaveData done [19:37:38]OFDSenderStorePacket done [19:37:38]KKMCreateOFDPacket done [19:37:38]NVStorageSaveData kkm_last_timestamp [19:37:38]File name is /storage/kkm_last_timestamp [19:37:38]Write 4 bytes [19:37:38]NVStorageSaveData done [19:37:38]OFD Sender: Processing packet 187159 [packets to send 49, broken 48] [19:37:38]ProducePacketName [19:37:38]name=ofd_packets/00187159 [19:37:38]OFD Sender: To server: pG, [19:37:38]CommunicateWithHost lk.salyk.kg:30040 [19:37:38]ConnectInit lk.salyk.kg [19:37:38]ExternCall_PrintAddStr [19:37:38]wPrintStart [19:37:38]Write to MH i2c: 01 00 00 06 06 0C [19:37:38]Write i2c OK [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: 01 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: 01 07 00 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: 01 07 00 06 06 00 00 00 00 00 FF 0F 21 [19:37:38]RasterBufferAndPrint [19:37:38]line Счет N : (1)412313 [19:37:38]line ИНН: 02508201610067 [19:37:38]line Контрольно-Кассовый Чек [19:37:38]line ПРОДАЖА [19:37:38]line ТРК (МРК, ГНК) : 22 [19:37:38]line Товар: 2710124130 [19:37:38]line Аи-92-К-2 [19:37:38]line 7.790 * 0.00 [19:37:38]line = 0.00 [19:37:38]line НДС 12% НСП 1% [19:37:38]line > о реализуемом товаре [19:37:38]line ИТОГО: 0.00 [19:37:38]line НСП 1% : 0.00 [19:37:38]line НДС 12% : 0.00 [19:37:38]line Наличными: 0.00 [19:37:38]line Безнал.: 0.00 [19:37:38]line Место: АЗС № 92 "Партнер Нефть" [19:37:38]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:37:38]line СНО: Общий режим [19:37:38]line Чек 225 19.02.2025 19:37 [19:37:38]line Смена: 647 ФФД: 1.0 [19:37:38]line ЗНМ: 0300000118 [19:37:38]line РНМ: 0000000000091857 [19:37:38]line Версия ККМ: 001 [19:37:38]line Талоны: Топливная Карта [19:37:38]line 03529 [19:37:38]line ФМ: 0000000000871826 [19:37:38]line ФД: 187159 [19:37:38]line ФПД: 207627418726269 [19:37:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T193737&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187159&fm=207627418726269&tin=02508201610067®Number=0000000000091857&sum=0 [19:37:38]Connected sock=11 [19:37: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 14 D6 07 01 AA 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 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 E1 00 00 00 F4 03 04 00 01 33 B6 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 17 DB 02 00 35 04 06 00 BC D6 06 89 EF 7D B7 A1 6B 2B FA B3 A7 0A [19:37:38]written 0, free lines is 4095 [19:37: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 1E E5 47 00 D3 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 17 DB 02 00 F4 03 04 00 54 D9 B5 67 B6 04 01 00 00 5C 16 B4 F2 EA 92 5C B5 [19:37:38]CommunicateWithHost err = 0 [19:37:38]CheckOFDResponse [19:37:38]1017 (14) - 77093643461234 [19:37:38]1041 (16) - 0000000000871826 [19:37:38]1040 (4) - 187159 [19:37:38]1012 (4) - 19.02.2025 13:15 [19:37:38]1206 (1) - 0 [19:37:38]OFD Sender: Remove packet 187159 [19:37:38]ProducePacketName [19:37:38]name=ofd_packets/00187159 [19:37:38]NVStorageDeleteData [19:37:38]Write to MH i2c: 01 00 00 30 06 36 [19:37:38]Write i2c OK [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: 01 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: 01 07 00 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: 01 07 00 30 06 00 00 00 00 00 08 0D 52 [19:37:38]RasterBufferAndPrint [19:37:38]line [19:37:38]line [19:37:38]line [19:37:38]line [19:37:38]line [19:37:38]written 0, free lines is 3343 [19:37:38]MH_Cut [19:37:38]Write to MH i2c: D1 01 00 37 06 01 0F [19:37:38]Write i2c OK [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: D1 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: D1 01 00 [19:37:38]MH_I2C_Read... [19:37:38]Read from MH i2c: D1 01 00 37 06 00 0E [19:37:38]Write to MH i2c: 01 00 00 38 06 3E [19:37:38]Write i2c OK [19:37:38]MH_I2C_Read... [19:37:39]OFD Sender: No OFD packet to send [19:37:39]*** Cut start [19:37:39]*** Partial cut [19:37:39]*** CUTSNS_PIN = 1 [19:37:39]*** CUTSNS_PIN = 0 [19:37:39]*** Brake cut motor [19:37:40]Read from MH i2c: 01 [19:37:40]MH_I2C_Read... [19:37:40]*** Stop cut motor [19:37:40]*** Cut end [19:37:40]Read from MH i2c: 01 07 00 [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: 01 07 00 38 06 00 00 00 00 00 FF 0F 53 [19:37:40]process_action close_receipt done [19:37:40]requested_data is exist [19:37:40]produce_requested_data [19:37:40]requested_item fm.sn is exist - process it [19:37:40]wFMCommunicate request_size=4 [19:37:40]MH_SAM_APDU [19:37:40]CAPDU: 80 11 00 00 [19:37:40]Write to MH i2c: E2 08 00 39 06 80 11 00 00 00 00 00 00 B9 [19:37:40]Write i2c OK [19:37:40]MH_I2C_Read... [19:37:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:40]Read from MH i2c: E2 [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: E2 17 00 [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: E2 17 00 39 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0C [19:37:40]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:40]wFMCommunicate OK [19:37:40]requested_item fd.num is exist - process it [19:37:40]SAM_PROTO_GetFieldsCounters [19:37:40]wFMCommunicate request_size=4 [19:37:40]MH_SAM_APDU [19:37:40]CAPDU: 80 13 00 00 [19:37:40]Write to MH i2c: E2 08 00 3A 06 80 13 00 00 00 00 00 00 BC [19:37:40]Write i2c OK [19:37:40]MH_I2C_Read... [19:37:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:40]Read from MH i2c: E2 [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: E2 62 00 [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: E2 62 00 3A 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 17 DB 02 00 0E 04 04 00 87 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 02 [19:37: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 17 DB 02 00 0E 04 04 00 87 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 [19:37:40]wFMCommunicate OK [19:37:40]SAM_PROTO_GetFieldsCounters done [19:37:40]requested_item shift.num is exist - process it [19:37:40]requested_item shift.opened is exist - process it [19:37:40]req_shift_opened [19:37:40]FM_GetShiftState [19:37:40]SAM_PROTO_GetShiftState [19:37:40]wFMCommunicate request_size=4 [19:37:40]MH_SAM_APDU [19:37:40]CAPDU: 80 13 01 00 [19:37:40]Write to MH i2c: E2 08 00 3B 06 80 13 01 00 00 00 00 00 BE [19:37:40]Write i2c OK [19:37:40]MH_I2C_Read... [19:37:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:40]Read from MH i2c: E2 [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: E2 0E 00 [19:37:40]MH_I2C_Read... [19:37:40]Read from MH i2c: E2 0E 00 3B 06 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 3D [19:37:40]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:37:40]wFMCommunicate OK [19:37:40]SAM_PROTO_GetShiftState done [19:37:40]FM_GetShiftState done [19:37:40]req_shift_opened done [19:37:40]requested_item shift.open_date is exist - process it [19:37:40]req_shift_open_date [19:37:40]req_shift_open_date done [19:37:40]produce_requested_data done [19:37:40]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187159,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [19:37:40]process_action_free close_receipt [19:37:40]json_value_free [19:37:40]json_value_free done [19:37:40]process_json_proto returns [19:37:40]Send response to host [19:37:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187159,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [19:37:40]free response buf [19:37:40]execute_script done [19:37:40]execute_script returns [19:37:40]free content buf [19:37:40]Sock 7.Close socket [19:37:40]Sock 7.Thread stoped [19:37:44]OFD Sender: No OFD packet to send [19:37:49]OFD Sender: No OFD packet to send [19:37:54]OFD Sender: No OFD packet to send [19:37:59]OFD Sender: No OFD packet to send [19:38:04]OFD Sender: No OFD packet to send [19:38:09]OFD Sender: No OFD packet to send [19:38:14]OFD Sender: No OFD packet to send [19:38:19]OFD Sender: No OFD packet to send [19:38:24]OFD Sender: No OFD packet to send [19:38:29]OFD Sender: No OFD packet to send [19:38:34]OFD Sender: No OFD packet to send [19:38:39]OFD Sender: No OFD packet to send [19:38:44]OFD Sender: No OFD packet to send [19:38:49]OFD Sender: No OFD packet to send [19:38:54]OFD Sender: No OFD packet to send [19:38:59]OFD Sender: No OFD packet to send [19:39:04]OFD Sender: No OFD packet to send [19:39:09]accept exits with 9 [19:39:09]New connection [19:39:09]New thread 3066510692 created [19:39:09]Thread 3066654052 joined [19:39:09]Waiting for new connection... [19:39:09] Sock 9.Parse request [19:39:09]Sock 9.Check first char [19:39:09]Sock 9.First char is OK [19:39:09]request: POST /json_proto HTTP/1.0 [19:39:09]Method: POST [19:39:09]URL: /json_proto [19:39:09]Method is POST - this is cgi request [19:39:09]url: /json_proto [19:39:09]query_string will be loaded in cgi processing [19:39:09]execute_cgi json_proto POST (null) [19:39:09]execute_cgi path=json_proto method=POST [19:39:09]POST find Content-Length [19:39:09]Host: 172.17.46.131:8080 [19:39:09]Content-Length: 677 [19:39:09]Content-Type: application/json [19:39:09] [19:39:09]POST finish read [19:39:09]Found Content-Length = 677 [19:39:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412315", "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.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" ] } } [19:39:09]execute_script... [19:39: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)412315", "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.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" ] } } [19:39:09]POST & json_proto [19:39:09]process_json_proto [19:39:09]json parsed OK: [19:39:09]protocol is kg_v1.0 [19:39:09]action value=close_receipt [19:39:09]process_action close_receipt [19:39:09]cmd_close_receipt [19:39:09]MH_GetDate [19:39:09]Write to MH i2c: F0 00 00 3C 06 31 [19:39:09]Write i2c OK [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: F0 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: F0 09 00 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: F0 09 00 3C 06 00 5D 33 B6 67 7E 41 4F 65 5A [19:39:09]GetLastDocTimeStamp 1739993857 [19:39:09]current date 1739993949 [19:39:09]FM_GetShiftState [19:39:09]SAM_PROTO_GetShiftState [19:39:09]wFMCommunicate request_size=4 [19:39:09]MH_SAM_APDU [19:39:09]CAPDU: 80 13 01 00 [19:39:09]Write to MH i2c: E2 08 00 3D 06 80 13 01 00 00 00 00 00 C0 [19:39:09]Write i2c OK [19:39:09]MH_I2C_Read... [19:39:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:09]Read from MH i2c: E2 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: E2 0E 00 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: E2 0E 00 3D 06 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 3F [19:39:09]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:39:09]wFMCommunicate OK [19:39:09]SAM_PROTO_GetShiftState done [19:39:09]FM_GetShiftState done [19:39:09]opened in 1739929631 [19:39:09]opened+sec_in_day 1740016031 [19:39:09]quantity*price = 20030 [19:39:09]sum+1 = 20031 [19:39:09]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 СНО: Общий режим Чек 226 19.02.2025 19:39 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187160 ФПД: 49381891436703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T193910&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187160&fm=49381891436703&tin=02508201610067®Number=0000000000091857&sum=20000 [19:39:10]StoreToDocumentArchive [19:39:10]shift 647 fd 187160 [19:39:10]save to /storage/0647/doc_00187160 [19:39:10]save last doc name /storage/0647/doc_00187160 to /storage/kkm_last_doc_name [19:39:10]save OK [19:39:10]Clear old archive folders... [19:39:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:39:10]tlvbuf is 01F471A0 [19:39:10]SAM_PROTO_ClearQueue [19:39:10]wFMCommunicate request_size=4 [19:39:10]MH_SAM_APDU [19:39:10]CAPDU: 80 09 00 00 [19:39:10]Write to MH i2c: E2 08 00 4A 06 80 09 00 00 00 00 00 00 C2 [19:39:10]Write i2c OK [19:39:10]MH_I2C_Read... [19:39:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:10]Read from MH i2c: E2 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 03 00 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 03 00 4A 06 00 90 00 C4 [19:39:10]RAPDU: 90 00 [19:39:10]wFMCommunicate OK [19:39:10]SAM_PROTO_ClearQueue done [19:39:10]KKMCreateOFDPacket [19:39:10]OFDProtocolAddRootSTLVToBuf [19:39:10]FM_MakeSignedData [19:39:10]FM_MakeSignedData [19:39:10]SAM_PROTO_SignData [19:39:10]wFMCommunicate request_size=4 [19:39:10]MH_SAM_APDU [19:39:10]CAPDU: 80 0D 01 02 [19:39:10]Write to MH i2c: E2 08 00 4B 06 80 0D 01 02 00 00 00 00 CA [19:39:10]Write i2c OK [19:39:10]MH_I2C_Read... [19:39:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:10]Read from MH i2c: E2 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 03 00 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 03 00 4B 06 00 90 00 C5 [19:39:10]RAPDU: 90 00 [19:39:10]wFMCommunicate OK [19:39:10]wFMCommunicate request_size=255 [19:39:10]MH_SAM_APDU [19:39: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 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 E2 00 00 00 F4 03 04 00 5E 33 B6 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 18 DB 02 00 35 04 06 00 2C [19:39:10]Write to MH i2c: E2 02 01 4C 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 E2 00 00 00 F4 03 04 00 5E 33 B6 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 18 DB 02 00 35 04 06 00 2C 00 00 E9 [19:39:10]Write i2c OK [19:39:10]MH_I2C_Read... [19:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:10]Read from MH i2c: E2 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 03 00 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 03 00 4C 06 00 90 00 C6 [19:39:10]RAPDU: 90 00 [19:39:10]wFMCommunicate OK [19:39:10]wFMCommunicate request_size=10 [19:39:10]MH_SAM_APDU [19:39:10]CAPDU: 80 0D 02 02 05 E9 9E 18 F0 9F [19:39:10]Write to MH i2c: E2 0D 00 4D 06 80 0D 02 02 05 00 E9 9E 18 F0 9F 00 00 05 [19:39:10]Write i2c OK [19:39:10]MH_I2C_Read... [19:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:10]Read from MH i2c: E2 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 03 00 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 03 00 4D 06 00 90 00 C7 [19:39:10]RAPDU: 90 00 [19:39:10]wFMCommunicate OK [19:39:10]wFMCommunicate request_size=4 [19:39:10]MH_SAM_APDU [19:39:10]CAPDU: 80 0D 03 02 [19:39:10]Write to MH i2c: E2 08 00 4E 06 80 0D 03 02 00 00 00 00 CF [19:39:10]Write i2c OK [19:39:10]MH_I2C_Read... [19:39:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:10]Read from MH i2c: E2 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 0B 00 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 0B 00 4E 06 00 1F BB F3 AA D1 E4 1F E3 90 00 FE [19:39:10]RAPDU: 1F BB F3 AA D1 E4 1F E3 90 00 [19:39:10]wFMCommunicate OK [19:39:10]SAM_PROTO_SignData done [19:39:10]FM_MakeSignedData done [19:39:10]CreateOFDProtocolMessage [19:39:10]wFMCommunicate request_size=4 [19:39:10]MH_SAM_APDU [19:39:10]CAPDU: 80 11 00 00 [19:39:10]Write to MH i2c: E2 08 00 4F 06 80 11 00 00 00 00 00 00 CF [19:39:10]Write i2c OK [19:39:10]MH_I2C_Read... [19:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:10]Read from MH i2c: E2 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 17 00 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: E2 17 00 4F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 22 [19:39:10]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:10]wFMCommunicate OK [19:39:10]CreateOFDProtocolMessage done [19:39:10]OFDSenderStorePacket 187160 [19:39:10]StoreOFDPacket docnum=187160 [19:39: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 50 29 07 01 44 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 E2 00 00 00 F4 03 04 00 5E 33 B6 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 18 DB 02 00 35 04 06 00 2C E9 9E 18 F0 9F 1F BB F3 AA D1 E4 1F E3 [19:39:10]CheckFolder [19:39:10]dirname=/storage/ofd_packets [19:39:10]CheckFolder done [19:39:10]ProducePacketName [19:39:10]name=ofd_packets/00187160 [19:39:10]NVStorageSaveData ofd_packets/00187160 [19:39:10]File name is /storage/ofd_packets/00187160 [19:39:10]Write 301 bytes [19:39:10]NVStorageSaveData done [19:39:10]OFDSenderStorePacket done [19:39:10]KKMCreateOFDPacket done [19:39:10]NVStorageSaveData kkm_last_timestamp [19:39:10]File name is /storage/kkm_last_timestamp [19:39:10]Write 4 bytes [19:39:10]NVStorageSaveData done [19:39:10]ExternCall_PrintAddStr [19:39:10]wPrintStart [19:39:10]Write to MH i2c: 01 00 00 50 06 56 [19:39:10]Write i2c OK [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: 01 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: 01 07 00 [19:39:10]MH_I2C_Read... [19:39:10]Read from MH i2c: 01 07 00 50 06 00 00 00 00 00 FF 0F 6B [19:39:10]RasterBufferAndPrint [19:39:10]line Счет N : (1)412315 [19:39:10]line ИНН: 02508201610067 [19:39:10]line Контрольно-Кассовый Чек [19:39:10]line ПРОДАЖА [19:39:10]line ТРК (МРК, ГНК) : 12 [19:39:10]line Товар: 2710124130 [19:39:10]line Аи-92-К-2 [19:39:10]line 3.120 * 64.20 [19:39:10]line = 200.30 [19:39:10]line НДС 12% НСП 1% [19:39:10]line > о реализуемом товаре [19:39:10]line ОКРУГЛЕНИЕ: -0.30 [19:39:10]line ИТОГО: 200.00 [19:39:10]line Внесено: 200.00 [19:39:10]line СДАЧА: 0.00 [19:39:10]line НСП 1% : 1.77 [19:39:10]line НДС 12% : 21.27 [19:39:10]line Наличными: 200.00 [19:39:10]line Безнал.: 0.00 [19:39:10]line Место: АЗС № 92 "Партнер Нефть" [19:39:10]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:39:10]line СНО: Общий режим [19:39:10]line Чек 226 19.02.2025 19:39 [19:39:10]line Смена: 647 ФФД: 1.0 [19:39:10]line ЗНМ: 0300000118 [19:39:10]line РНМ: 0000000000091857 [19:39:10]line Версия ККМ: 001 [19:39:10]line ФМ: 0000000000871826 [19:39:10]line ФД: 187160 [19:39:10]line ФПД: 49381891436703 [19:39:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T193910&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187160&fm=49381891436703&tin=02508201610067®Number=0000000000091857&sum=20000 [19:39:11]OFD Sender: Processing packet 187160 [packets to send 49, broken 48] [19:39:11]ProducePacketName [19:39:11]name=ofd_packets/00187160 [19:39:11]OFD Sender: To server: pG, [19:39:11]CommunicateWithHost lk.salyk.kg:30040 [19:39:11]ConnectInit lk.salyk.kg [19:39:11]written 0, free lines is 4095 [19:39:11]Connected sock=10 [19:39: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 50 29 07 01 44 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 E2 00 00 00 F4 03 04 00 5E 33 B6 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 18 DB 02 00 35 04 06 00 2C E9 9E 18 F0 9F 1F BB F3 AA D1 E4 1F E3 [19:39:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 AE ED 47 00 F0 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 18 DB 02 00 F4 03 04 00 B1 D9 B5 67 B6 04 01 00 00 C0 F3 2E F9 BB 73 EE 80 [19:39:11]CommunicateWithHost err = 0 [19:39:11]CheckOFDResponse [19:39:11]1017 (14) - 77093643461234 [19:39:11]1041 (16) - 0000000000871826 [19:39:11]1040 (4) - 187160 [19:39:11]1012 (4) - 19.02.2025 13:16 [19:39:11]1206 (1) - 0 [19:39:11]OFD Sender: Remove packet 187160 [19:39:11]ProducePacketName [19:39:11]name=ofd_packets/00187160 [19:39:11]NVStorageDeleteData [19:39:11]Write to MH i2c: 01 00 00 7B 06 81 [19:39:11]Write i2c OK [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: 01 [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: 01 07 00 [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: 01 07 00 7B 06 00 00 00 00 00 EE 0C 82 [19:39:11]RasterBufferAndPrint [19:39:11]line [19:39:11]line [19:39:11]line [19:39:11]line [19:39:11]line [19:39:11]written 0, free lines is 3316 [19:39:11]MH_Cut [19:39:11]Write to MH i2c: D1 01 00 82 06 01 5A [19:39:11]Write i2c OK [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: D1 [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: D1 01 00 [19:39:11]MH_I2C_Read... [19:39:11]Read from MH i2c: D1 01 00 82 06 00 59 [19:39:11]Write to MH i2c: 01 00 00 83 06 89 [19:39:11]Write i2c OK [19:39:11]MH_I2C_Read... [19:39:12]OFD Sender: No OFD packet to send [19:39:12]*** Cut start [19:39:12]*** Partial cut [19:39:12]*** CUTSNS_PIN = 1 [19:39:12]*** CUTSNS_PIN = 0 [19:39:12]*** Brake cut motor [19:39:13]Read from MH i2c: 01 [19:39:13]MH_I2C_Read... [19:39:13]*** Stop cut motor [19:39:13]*** Cut end [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 83 06 00 00 00 00 00 FF 0F 9E [19:39:13]process_action close_receipt done [19:39:13]requested_data is exist [19:39:13]produce_requested_data [19:39:13]requested_item fm.sn is exist - process it [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 84 06 80 11 00 00 00 00 00 00 04 [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 84 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 57 [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]requested_item fd.num is exist - process it [19:39:13]SAM_PROTO_GetFieldsCounters [19:39:13]wFMCommunicate request_size=4 [19:39:13]MH_SAM_APDU [19:39:13]CAPDU: 80 13 00 00 [19:39:13]Write to MH i2c: E2 08 00 85 06 80 13 00 00 00 00 00 00 07 [19:39:13]Write i2c OK [19:39:13]MH_I2C_Read... [19:39:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:13]Read from MH i2c: E2 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: E2 62 00 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: E2 62 00 85 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 18 DB 02 00 0E 04 04 00 87 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 51 [19:39:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DB 02 00 0E 04 04 00 87 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 [19:39:13]wFMCommunicate OK [19:39:13]SAM_PROTO_GetFieldsCounters done [19:39:13]requested_item shift.num is exist - process it [19:39:13]requested_item shift.opened is exist - process it [19:39:13]req_shift_opened [19:39:13]FM_GetShiftState [19:39:13]SAM_PROTO_GetShiftState [19:39:13]wFMCommunicate request_size=4 [19:39:13]MH_SAM_APDU [19:39:13]CAPDU: 80 13 01 00 [19:39:13]Write to MH i2c: E2 08 00 86 06 80 13 01 00 00 00 00 00 09 [19:39:13]Write i2c OK [19:39:13]MH_I2C_Read... [19:39:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:13]Read from MH i2c: E2 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: E2 0E 00 [19:39:13]MH_I2C_Read... [19:39:13]Read from MH i2c: E2 0E 00 86 06 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 88 [19:39:13]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:39:13]wFMCommunicate OK [19:39:13]SAM_PROTO_GetShiftState done [19:39:13]FM_GetShiftState done [19:39:13]req_shift_opened done [19:39:13]requested_item shift.open_date is exist - process it [19:39:13]req_shift_open_date [19:39:13]req_shift_open_date done [19:39:13]produce_requested_data done [19:39:13]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187160,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [19:39:13]process_action_free close_receipt [19:39:13]json_value_free [19:39:13]json_value_free done [19:39:13]process_json_proto returns [19:39:13]Send response to host [19:39:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187160,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [19:39:13]free response buf [19:39:13]execute_script done [19:39:13]execute_script returns [19:39:13]free content buf [19:39:13]Sock 9.Close socket [19:39:13]Sock 9.Thread stoped [19:39:17]OFD Sender: No OFD packet to send [19:39:22]OFD Sender: No OFD packet to send [19:39:27]OFD Sender: No OFD packet to send [19:39:32]OFD Sender: No OFD packet to send [19:39:37]OFD Sender: No OFD packet to send [19:39:42]OFD Sender: No OFD packet to send [19:39:47]OFD Sender: No OFD packet to send [19:39:52]OFD Sender: No OFD packet to send [19:39:57]OFD Sender: No OFD packet to send [19:40:02]OFD Sender: No OFD packet to send [19:40:07]OFD Sender: No OFD packet to send [19:40:12]OFD Sender: No OFD packet to send [19:40:17]OFD Sender: No OFD packet to send [19:40:22]OFD Sender: No OFD packet to send [19:40:27]OFD Sender: No OFD packet to send [19:40:32]OFD Sender: No OFD packet to send [19:40:37]OFD Sender: No OFD packet to send [19:40:42]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:36]accept exits with 7 [19:42:36]New connection [19:42:36]New thread 3066654052 created [19:42:36]Thread 3066510692 joined [19:42:36]Waiting for new connection... [19:42:36] Sock 7.Parse request [19:42:36]Sock 7.Check first char [19:42:36]Sock 7.First char is OK [19:42:36]request: POST /json_proto HTTP/1.0 [19:42:36]Method: POST [19:42:36]URL: /json_proto [19:42:36]Method is POST - this is cgi request [19:42:36]url: /json_proto [19:42:36]query_string will be loaded in cgi processing [19:42:36]execute_cgi json_proto POST (null) [19:42:36]execute_cgi path=json_proto method=POST [19:42:36]POST find Content-Length [19:42:36]Host: 172.17.46.131:8080 [19:42:36]Content-Length: 675 [19:42:36]Content-Type: application/json [19:42:36] [19:42:36]POST finish read [19:42:36]Found Content-Length = 675 [19:42:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412316", "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.620, "sum" : 988.81, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 988.00, "payments": [ { "type": 0, "sum" : 988.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:36]execute_script... [19:42: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)412316", "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.620, "sum" : 988.81, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 988.00, "payments": [ { "type": 0, "sum" : 988.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:36]POST & json_proto [19:42:36]process_json_proto [19:42:36]json parsed OK: [19:42:36]protocol is kg_v1.0 [19:42:36]action value=close_receipt [19:42:36]process_action close_receipt [19:42:36]cmd_close_receipt [19:42:36]MH_GetDate [19:42:36]Write to MH i2c: F0 00 00 87 06 7C [19:42:36]Write i2c OK [19:42:36]MH_I2C_Read... [19:42:36]Read from MH i2c: F0 [19:42:36]MH_I2C_Read... [19:42:36]Read from MH i2c: F0 09 00 [19:42:36]MH_I2C_Read... [19:42:36]Read from MH i2c: F0 09 00 87 06 00 2D 34 B6 67 7E 41 4F 65 76 [19:42:36]GetLastDocTimeStamp 1739993950 [19:42:36]current date 1739994157 [19:42:36]FM_GetShiftState [19:42:36]SAM_PROTO_GetShiftState [19:42:36]wFMCommunicate request_size=4 [19:42:36]MH_SAM_APDU [19:42:36]CAPDU: 80 13 01 00 [19:42:36]Write to MH i2c: E2 08 00 88 06 80 13 01 00 00 00 00 00 0B [19:42:36]Write i2c OK [19:42:36]MH_I2C_Read... [19:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:36]Read from MH i2c: E2 [19:42:36]MH_I2C_Read... [19:42:36]Read from MH i2c: E2 0E 00 [19:42:36]MH_I2C_Read... [19:42:36]Read from MH i2c: E2 0E 00 88 06 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 8A [19:42:36]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:42:36]wFMCommunicate OK [19:42:36]SAM_PROTO_GetShiftState done [19:42:36]FM_GetShiftState done [19:42:36]opened in 1739929631 [19:42:36]opened+sec_in_day 1740016031 [19:42:36]quantity*price = 98881 [19:42:36]sum+1 = 98882 [19:42:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.81 ИТОГО: 988.00 Внесено: 1000.00 СДАЧА: 12.00 НСП 1% : 8.75 НДС 12% : 105.01 Наличными: 988.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 227 19.02.2025 19:42 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187161 ФПД: 234101718631004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T194237&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187161&fm=234101718631004&tin=02508201610067®Number=0000000000091857&sum=98800 [19:42:38]StoreToDocumentArchive [19:42:38]shift 647 fd 187161 [19:42:38]save to /storage/0647/doc_00187161 [19:42:38]save last doc name /storage/0647/doc_00187161 to /storage/kkm_last_doc_name [19:42:38]save OK [19:42:38]Clear old archive folders... [19:42:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:42:38]tlvbuf is 01F23D80 [19:42:38]SAM_PROTO_ClearQueue [19:42:38]wFMCommunicate request_size=4 [19:42:38]MH_SAM_APDU [19:42:38]CAPDU: 80 09 00 00 [19:42:38]Write to MH i2c: E2 08 00 95 06 80 09 00 00 00 00 00 00 0D [19:42:38]Write i2c OK [19:42:38]MH_I2C_Read... [19:42:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:38]Read from MH i2c: E2 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 03 00 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 03 00 95 06 00 90 00 0F [19:42:38]RAPDU: 90 00 [19:42:38]wFMCommunicate OK [19:42:38]SAM_PROTO_ClearQueue done [19:42:38]KKMCreateOFDPacket [19:42:38]OFDProtocolAddRootSTLVToBuf [19:42:38]FM_MakeSignedData [19:42:38]FM_MakeSignedData [19:42:38]SAM_PROTO_SignData [19:42:38]wFMCommunicate request_size=4 [19:42:38]MH_SAM_APDU [19:42:38]CAPDU: 80 0D 01 02 [19:42:38]Write to MH i2c: E2 08 00 96 06 80 0D 01 02 00 00 00 00 15 [19:42:38]Write i2c OK [19:42:38]MH_I2C_Read... [19:42:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:38]Read from MH i2c: E2 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 03 00 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 03 00 96 06 00 90 00 10 [19:42:38]RAPDU: 90 00 [19:42:38]wFMCommunicate OK [19:42:38]wFMCommunicate request_size=255 [19:42:38]MH_SAM_APDU [19:42: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 34 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 41 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 29 00 00 00 00 07 04 06 00 F0 81 01 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 2D 34 B6 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 19 DB 02 00 35 04 06 00 D4 EA 0D C7 [19:42:38]Write to MH i2c: E2 02 01 97 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 41 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 29 00 00 00 00 07 04 06 00 F0 81 01 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 2D 34 B6 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 19 DB 02 00 35 04 06 00 D4 EA 0D C7 00 00 0E [19:42:38]Write i2c OK [19:42:38]MH_I2C_Read... [19:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:38]Read from MH i2c: E2 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 03 00 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 03 00 97 06 00 90 00 11 [19:42:38]RAPDU: 90 00 [19:42:38]wFMCommunicate OK [19:42:38]wFMCommunicate request_size=7 [19:42:38]MH_SAM_APDU [19:42:38]CAPDU: 80 0D 02 02 02 C2 5C [19:42:38]Write to MH i2c: E2 0A 00 98 06 80 0D 02 02 02 00 C2 5C 00 00 3A [19:42:38]Write i2c OK [19:42:38]MH_I2C_Read... [19:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:38]Read from MH i2c: E2 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 03 00 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 03 00 98 06 00 90 00 12 [19:42:38]RAPDU: 90 00 [19:42:38]wFMCommunicate OK [19:42:38]wFMCommunicate request_size=4 [19:42:38]MH_SAM_APDU [19:42:38]CAPDU: 80 0D 03 02 [19:42:38]Write to MH i2c: E2 08 00 99 06 80 0D 03 02 00 00 00 00 1A [19:42:38]Write i2c OK [19:42:38]MH_I2C_Read... [19:42:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:38]Read from MH i2c: E2 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 0B 00 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 0B 00 99 06 00 11 1F 77 BE 3D F2 F9 E7 90 00 8F [19:42:38]RAPDU: 11 1F 77 BE 3D F2 F9 E7 90 00 [19:42:38]wFMCommunicate OK [19:42:38]SAM_PROTO_SignData done [19:42:38]FM_MakeSignedData done [19:42:38]CreateOFDProtocolMessage [19:42:38]wFMCommunicate request_size=4 [19:42:38]MH_SAM_APDU [19:42:38]CAPDU: 80 11 00 00 [19:42:38]Write to MH i2c: E2 08 00 9A 06 80 11 00 00 00 00 00 00 1A [19:42:38]Write i2c OK [19:42:38]MH_I2C_Read... [19:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:38]Read from MH i2c: E2 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 17 00 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 17 00 9A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6D [19:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:42:38]wFMCommunicate OK [19:42:38]CreateOFDProtocolMessage done [19:42:38]OFDSenderStorePacket 187161 [19:42:38]StoreOFDPacket docnum=187161 [19:42: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 2A 28 04 01 DB 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 34 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 41 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 29 00 00 00 00 07 04 06 00 F0 81 01 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 2D 34 B6 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 19 DB 02 00 35 04 06 00 D4 EA 0D C7 C2 5C 11 1F 77 BE 3D F2 F9 E7 [19:42:38]CheckFolder [19:42:38]dirname=/storage/ofd_packets [19:42:38]CheckFolder done [19:42:38]ProducePacketName [19:42:38]name=ofd_packets/00187161 [19:42:38]NVStorageSaveData ofd_packets/00187161 [19:42:38]File name is /storage/ofd_packets/00187161 [19:42:38]Write 298 bytes [19:42:38]NVStorageSaveData done [19:42:38]OFDSenderStorePacket done [19:42:38]KKMCreateOFDPacket done [19:42:38]NVStorageSaveData kkm_last_timestamp [19:42:38]File name is /storage/kkm_last_timestamp [19:42:38]Write 4 bytes [19:42:38]NVStorageSaveData done [19:42:38]ExternCall_PrintAddStr [19:42:38]wPrintStart [19:42:38]Write to MH i2c: 01 00 00 9B 06 A1 [19:42:38]Write i2c OK [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: 01 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: 01 07 00 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: 01 07 00 9B 06 00 00 00 00 00 FF 0F B6 [19:42:38]RasterBufferAndPrint [19:42:38]line Счет N : (1)412316 [19:42:38]line ИНН: 02508201610067 [19:42:38]line Контрольно-Кассовый Чек [19:42:38]line ПРОДАЖА [19:42:38]line ТРК (МРК, ГНК) : 5 [19:42:38]line Товар: 2710194210 [19:42:38]line ДТ-К-5 [19:42:38]line 13.620 * 72.60 [19:42:38]line = 988.81 [19:42:38]line НДС 12% НСП 1% [19:42:38]line > о реализуемом товаре [19:42:38]line ОКРУГЛЕНИЕ: -0.81 [19:42:38]line ИТОГО: 988.00 [19:42:38]line Внесено: 1000.00 [19:42:38]line СДАЧА: 12.00 [19:42:38]line НСП 1% : 8.75 [19:42:38]line НДС 12% : 105.01 [19:42:38]line Наличными: 988.00 [19:42:38]line Безнал.: 0.00 [19:42:38]line Место: АЗС № 92 "Партнер Нефть" [19:42:38]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:42:38]line СНО: Общий режим [19:42:38]line Чек 227 19.02.2025 19:42 [19:42:38]line Смена: 647 ФФД: 1.0 [19:42:38]line ЗНМ: 0300000118 [19:42:38]line РНМ: 0000000000091857 [19:42:38]line Версия ККМ: 001 [19:42:38]line ФМ: 0000000000871826 [19:42:38]line ФД: 187161 [19:42:38]line ФПД: 234101718631004 [19:42:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T194237&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187161&fm=234101718631004&tin=02508201610067®Number=0000000000091857&sum=98800 [19:42:38]OFD Sender: Processing packet 187161 [packets to send 49, broken 48] [19:42:38]ProducePacketName [19:42:38]name=ofd_packets/00187161 [19:42:38]OFD Sender: To server: pG, [19:42:38]CommunicateWithHost lk.salyk.kg:30040 [19:42:38]ConnectInit lk.salyk.kg [19:42:38]written 0, free lines is 4095 [19:42:39]Write to MH i2c: 01 00 00 C6 06 CC [19:42:39]Write i2c OK [19:42:39]MH_I2C_Read... [19:42:39]Read from MH i2c: 01 [19:42:39]MH_I2C_Read... [19:42:39]Read from MH i2c: 01 07 00 [19:42:39]MH_I2C_Read... [19:42:39]Read from MH i2c: 01 07 00 C6 06 00 00 00 00 00 E0 0C BF [19:42:39]RasterBufferAndPrint [19:42:39]line [19:42:39]line [19:42:39]line [19:42:39]line [19:42:39]line [19:42:39]written 0, free lines is 3302 [19:42:39]MH_Cut [19:42:39]Write to MH i2c: D1 01 00 CD 06 01 A5 [19:42:39]Write i2c OK [19:42:39]MH_I2C_Read... [19:42:39]Read from MH i2c: D1 [19:42:39]MH_I2C_Read... [19:42:39]Read from MH i2c: D1 01 00 [19:42:39]MH_I2C_Read... [19:42:39]Read from MH i2c: D1 01 00 CD 06 00 A4 [19:42:39]Write to MH i2c: 01 00 00 CE 06 D4 [19:42:39]Write i2c OK [19:42:39]MH_I2C_Read... [19:42:39]Connected sock=11 [19:42: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 2A 28 04 01 DB 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 34 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 41 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 29 00 00 00 00 07 04 06 00 F0 81 01 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 2D 34 B6 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 19 DB 02 00 35 04 06 00 D4 EA 0D C7 C2 5C 11 1F 77 BE 3D F2 F9 E7 [19:42:40]*** Cut start [19:42:40]*** Partial cut [19:42:40]*** CUTSNS_PIN = 1 [19:42:40]*** CUTSNS_PIN = 0 [19:42: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 45 C3 47 00 09 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 19 DB 02 00 F4 03 04 00 81 DA B5 67 B6 04 01 00 00 DF 19 70 5E F8 B7 6D 0B [19:42:40]CommunicateWithHost err = 0 [19:42:40]CheckOFDResponse [19:42:40]1017 (14) - 77093643461234 [19:42:40]1041 (16) - 0000000000871826 [19:42:40]1040 (4) - 187161 [19:42:40]1012 (4) - 19.02.2025 13:20 [19:42:40]1206 (1) - 0 [19:42:40]OFD Sender: Remove packet 187161 [19:42:40]ProducePacketName [19:42:40]name=ofd_packets/00187161 [19:42:40]NVStorageDeleteData [19:42:40]*** Brake cut motor [19:42:40]Read from MH i2c: 01 [19:42:40]MH_I2C_Read... [19:42:40]*** Stop cut motor [19:42:40]*** Cut end [19:42:40]OFD Sender: No OFD packet to send [19:42:40]Read from MH i2c: 01 07 00 [19:42:40]MH_I2C_Read... [19:42:40]Read from MH i2c: 01 07 00 CE 06 00 00 00 00 00 FF 0F E9 [19:42:40]process_action close_receipt done [19:42:40]requested_data is exist [19:42:40]produce_requested_data [19:42:40]requested_item fm.sn is exist - process it [19:42:40]wFMCommunicate request_size=4 [19:42:40]MH_SAM_APDU [19:42:40]CAPDU: 80 11 00 00 [19:42:40]Write to MH i2c: E2 08 00 CF 06 80 11 00 00 00 00 00 00 4F [19:42:40]Write i2c OK [19:42:40]MH_I2C_Read... [19:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:40]Read from MH i2c: E2 [19:42:40]MH_I2C_Read... [19:42:40]Read from MH i2c: E2 17 00 [19:42:40]MH_I2C_Read... [19:42:40]Read from MH i2c: E2 17 00 CF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A2 [19:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:42:40]wFMCommunicate OK [19:42:40]requested_item fd.num is exist - process it [19:42:40]SAM_PROTO_GetFieldsCounters [19:42:40]wFMCommunicate request_size=4 [19:42:40]MH_SAM_APDU [19:42:40]CAPDU: 80 13 00 00 [19:42:40]Write to MH i2c: E2 08 00 D0 06 80 13 00 00 00 00 00 00 52 [19:42:40]Write i2c OK [19:42:40]MH_I2C_Read... [19:42:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:40]Read from MH i2c: E2 [19:42:40]MH_I2C_Read... [19:42:40]Read from MH i2c: E2 62 00 [19:42:40]MH_I2C_Read... [19:42:40]Read from MH i2c: E2 62 00 D0 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 19 DB 02 00 0E 04 04 00 87 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 A0 [19:42: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 19 DB 02 00 0E 04 04 00 87 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 [19:42:40]wFMCommunicate OK [19:42:40]SAM_PROTO_GetFieldsCounters done [19:42:40]requested_item shift.num is exist - process it [19:42:40]requested_item shift.opened is exist - process it [19:42:40]req_shift_opened [19:42:40]FM_GetShiftState [19:42:40]SAM_PROTO_GetShiftState [19:42:40]wFMCommunicate request_size=4 [19:42:40]MH_SAM_APDU [19:42:40]CAPDU: 80 13 01 00 [19:42:40]Write to MH i2c: E2 08 00 D1 06 80 13 01 00 00 00 00 00 54 [19:42:40]Write i2c OK [19:42:40]MH_I2C_Read... [19:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:41]Read from MH i2c: E2 [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: E2 0E 00 [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: E2 0E 00 D1 06 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D3 [19:42:41]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:42:41]wFMCommunicate OK [19:42:41]SAM_PROTO_GetShiftState done [19:42:41]FM_GetShiftState done [19:42:41]req_shift_opened done [19:42:41]requested_item shift.open_date is exist - process it [19:42:41]req_shift_open_date [19:42:41]req_shift_open_date done [19:42:41]produce_requested_data done [19:42:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187161,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [19:42:41]process_action_free close_receipt [19:42:41]json_value_free [19:42:41]json_value_free done [19:42:41]process_json_proto returns [19:42:41]Send response to host [19:42:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187161,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [19:42:41]free response buf [19:42:41]execute_script done [19:42:41]execute_script returns [19:42:41]free content buf [19:42:41]Sock 7.Close socket [19:42:41]Sock 7.Thread stoped [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]accept exits with 9 [19:45:05]New connection [19:45:05]New thread 3066510692 created [19:45:05]Thread 3066654052 joined [19:45:05]Waiting for new connection... [19:45:05] Sock 9.Parse request [19:45:05]Sock 9.Check first char [19:45:05]Sock 9.First char is OK [19:45:05]request: POST /json_proto HTTP/1.0 [19:45:05]Method: POST [19:45:05]URL: /json_proto [19:45:05]Method is POST - this is cgi request [19:45:05]url: /json_proto [19:45:05]query_string will be loaded in cgi processing [19:45:05]execute_cgi json_proto POST (null) [19:45:05]execute_cgi path=json_proto method=POST [19:45:05]POST find Content-Length [19:45:05]Host: 172.17.46.131:8080 [19:45:05]Content-Length: 682 [19:45:05]Content-Type: application/json [19:45:05] [19:45:05]POST finish read [19:45:05]Found Content-Length = 682 [19:45:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412317", "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" ] } } [19:45:05]execute_script... [19:45:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412317", "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" ] } } [19:45:05]POST & json_proto [19:45:05]process_json_proto [19:45:05]json parsed OK: [19:45:05]protocol is kg_v1.0 [19:45:05]action value=close_receipt [19:45:05]process_action close_receipt [19:45:05]cmd_close_receipt [19:45:05]MH_GetDate [19:45:05]Write to MH i2c: F0 00 00 D2 06 C7 [19:45:05]Write i2c OK [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: F0 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: F0 09 00 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: F0 09 00 D2 06 00 C2 34 B6 67 7E 41 4F 65 56 [19:45:05]GetLastDocTimeStamp 1739994157 [19:45:05]current date 1739994306 [19:45:05]FM_GetShiftState [19:45:05]SAM_PROTO_GetShiftState [19:45:05]wFMCommunicate request_size=4 [19:45:05]MH_SAM_APDU [19:45:05]CAPDU: 80 13 01 00 [19:45:05]Write to MH i2c: E2 08 00 D3 06 80 13 01 00 00 00 00 00 56 [19:45:05]Write i2c OK [19:45:05]MH_I2C_Read... [19:45:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:05]Read from MH i2c: E2 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: E2 0E 00 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: E2 0E 00 D3 06 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D5 [19:45:05]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:45:05]wFMCommunicate OK [19:45:05]SAM_PROTO_GetShiftState done [19:45:05]FM_GetShiftState done [19:45:05]opened in 1739929631 [19:45:05]opened+sec_in_day 1740016031 [19:45:05]quantity*price = 100012 [19:45:05]sum+1 = 100014 [19:45: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 СНО: Общий режим Чек 228 19.02.2025 19:45 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187162 ФПД: 149256374455952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T194506&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187162&fm=149256374455952&tin=02508201610067®Number=0000000000091857&sum=100000 [19:45:06]StoreToDocumentArchive [19:45:06]shift 647 fd 187162 [19:45:06]save to /storage/0647/doc_00187162 [19:45:06]save last doc name /storage/0647/doc_00187162 to /storage/kkm_last_doc_name [19:45:06]save OK [19:45:06]Clear old archive folders... [19:45:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:45:06]tlvbuf is 01F45BC0 [19:45:06]SAM_PROTO_ClearQueue [19:45:06]wFMCommunicate request_size=4 [19:45:06]MH_SAM_APDU [19:45:06]CAPDU: 80 09 00 00 [19:45:06]Write to MH i2c: E2 08 00 E0 06 80 09 00 00 00 00 00 00 58 [19:45:06]Write i2c OK [19:45:06]MH_I2C_Read... [19:45:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:45:06]Read from MH i2c: E2 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: E2 03 00 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: E2 03 00 E0 06 00 90 00 5A [19:45:06]RAPDU: 90 00 [19:45:06]wFMCommunicate OK [19:45:06]SAM_PROTO_ClearQueue done [19:45:06]KKMCreateOFDPacket [19:45:06]OFDProtocolAddRootSTLVToBuf [19:45:06]FM_MakeSignedData [19:45:06]FM_MakeSignedData [19:45:06]SAM_PROTO_SignData [19:45:06]wFMCommunicate request_size=4 [19:45:06]MH_SAM_APDU [19:45:06]CAPDU: 80 0D 01 02 [19:45:06]Write to MH i2c: E2 08 00 E1 06 80 0D 01 02 00 00 00 00 60 [19:45:06]Write i2c OK [19:45:06]MH_I2C_Read... [19:45:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:45:06]Read from MH i2c: E2 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: E2 03 00 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: E2 03 00 E1 06 00 90 00 5B [19:45:06]RAPDU: 90 00 [19:45:06]wFMCommunicate OK [19:45:06]wFMCommunicate request_size=255 [19:45:06]MH_SAM_APDU [19:45:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 E4 00 00 00 F4 03 04 00 C2 34 B6 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 1A DB 02 00 35 04 06 00 87 [19:45:06]Write to MH i2c: E2 02 01 E2 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 E4 00 00 00 F4 03 04 00 C2 34 B6 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 1A DB 02 00 35 04 06 00 87 00 00 CF [19:45:06]Write i2c OK [19:45:06]MH_I2C_Read... [19:45:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:07]Read from MH i2c: E2 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: E2 03 00 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: E2 03 00 E2 06 00 90 00 5C [19:45:07]RAPDU: 90 00 [19:45:07]wFMCommunicate OK [19:45:07]wFMCommunicate request_size=10 [19:45:07]MH_SAM_APDU [19:45:07]CAPDU: 80 0D 02 02 05 BF 75 2E 0E 90 [19:45:07]Write to MH i2c: E2 0D 00 E3 06 80 0D 02 02 05 00 BF 75 2E 0E 90 00 00 6D [19:45:07]Write i2c OK [19:45:07]MH_I2C_Read... [19:45:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:07]Read from MH i2c: E2 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: E2 03 00 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: E2 03 00 E3 06 00 90 00 5D [19:45:07]RAPDU: 90 00 [19:45:07]wFMCommunicate OK [19:45:07]wFMCommunicate request_size=4 [19:45:07]MH_SAM_APDU [19:45:07]CAPDU: 80 0D 03 02 [19:45:07]Write to MH i2c: E2 08 00 E4 06 80 0D 03 02 00 00 00 00 65 [19:45:07]Write i2c OK [19:45:07]MH_I2C_Read... [19:45:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:45:07]Read from MH i2c: E2 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: E2 0B 00 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: E2 0B 00 E4 06 00 DE 04 8F 0B 44 DB 95 71 90 00 07 [19:45:07]RAPDU: DE 04 8F 0B 44 DB 95 71 90 00 [19:45:07]wFMCommunicate OK [19:45:07]SAM_PROTO_SignData done [19:45:07]FM_MakeSignedData done [19:45:07]CreateOFDProtocolMessage [19:45:07]wFMCommunicate request_size=4 [19:45:07]MH_SAM_APDU [19:45:07]CAPDU: 80 11 00 00 [19:45:07]Write to MH i2c: E2 08 00 E5 06 80 11 00 00 00 00 00 00 65 [19:45:07]Write i2c OK [19:45:07]MH_I2C_Read... [19:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:07]Read from MH i2c: E2 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: E2 17 00 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: E2 17 00 E5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B8 [19:45:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:45:07]wFMCommunicate OK [19:45:07]CreateOFDProtocolMessage done [19:45:07]OFDSenderStorePacket 187162 [19:45:07]StoreOFDPacket docnum=187162 [19:45: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 FE 39 07 01 DE 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 E4 00 00 00 F4 03 04 00 C2 34 B6 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 1A DB 02 00 35 04 06 00 87 BF 75 2E 0E 90 DE 04 8F 0B 44 DB 95 71 [19:45:07]CheckFolder [19:45:07]dirname=/storage/ofd_packets [19:45:07]CheckFolder done [19:45:07]ProducePacketName [19:45:07]name=ofd_packets/00187162 [19:45:07]NVStorageSaveData ofd_packets/00187162 [19:45:07]File name is /storage/ofd_packets/00187162 [19:45:07]Write 301 bytes [19:45:07]NVStorageSaveData done [19:45:07]OFDSenderStorePacket done [19:45:07]KKMCreateOFDPacket done [19:45:07]NVStorageSaveData kkm_last_timestamp [19:45:07]File name is /storage/kkm_last_timestamp [19:45:07]Write 4 bytes [19:45:07]NVStorageSaveData done [19:45:07]ExternCall_PrintAddStr [19:45:07]wPrintStart [19:45:07]Write to MH i2c: 01 00 00 E6 06 EC [19:45:07]Write i2c OK [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: 01 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: 01 07 00 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: 01 07 00 E6 06 00 00 00 00 00 FF 0F 01 [19:45:07]RasterBufferAndPrint [19:45:07]line Счет N : (1)412317 [19:45:07]line ИНН: 02508201610067 [19:45:07]line Контрольно-Кассовый Чек [19:45:07]line ПРОДАЖА [19:45:07]line ТРК (МРК, ГНК) : 33 [19:45:07]line Товар: 2710124500 [19:45:07]line Аи-95-К-5 [19:45:07]line 13.910 * 71.90 [19:45:07]line = 1000.13 [19:45:07]line НДС 12% НСП 1% [19:45:07]line > о реализуемом товаре [19:45:07]line ОКРУГЛЕНИЕ: -0.13 [19:45:07]line ИТОГО: 1000.00 [19:45:07]line Внесено: 1000.00 [19:45:07]line СДАЧА: 0.00 [19:45:07]line НСП 1% : 8.85 [19:45:07]line НДС 12% : 106.21 [19:45:07]line Наличными: 1000.00 [19:45:07]line Безнал.: 0.00 [19:45:07]line Место: АЗС № 92 "Партнер Нефть" [19:45:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:45:07]line СНО: Общий режим [19:45:07]line Чек 228 19.02.2025 19:45 [19:45:07]line Смена: 647 ФФД: 1.0 [19:45:07]line ЗНМ: 0300000118 [19:45:07]line РНМ: 0000000000091857 [19:45:07]line Версия ККМ: 001 [19:45:07]line ФМ: 0000000000871826 [19:45:07]line ФД: 187162 [19:45:07]line ФПД: 149256374455952 [19:45:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T194506&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187162&fm=149256374455952&tin=02508201610067®Number=0000000000091857&sum=100000 [19:45:07]written 0, free lines is 4095 [19:45:07]OFD Sender: Processing packet 187162 [packets to send 49, broken 48] [19:45:07]ProducePacketName [19:45:07]name=ofd_packets/00187162 [19:45:07]OFD Sender: To server: pG, [19:45:07]CommunicateWithHost lk.salyk.kg:30040 [19:45:07]ConnectInit lk.salyk.kg [19:45:07]Connected sock=7 [19:45: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 FE 39 07 01 DE 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 E4 00 00 00 F4 03 04 00 C2 34 B6 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 1A DB 02 00 35 04 06 00 87 BF 75 2E 0E 90 DE 04 8F 0B 44 DB 95 71 [19:45: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 7B D6 47 00 5C 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 1A DB 02 00 F4 03 04 00 15 DB B5 67 B6 04 01 00 00 D3 E2 E4 F6 17 77 1D 89 [19:45:07]CommunicateWithHost err = 0 [19:45:07]CheckOFDResponse [19:45:07]1017 (14) - 77093643461234 [19:45:07]1041 (16) - 0000000000871826 [19:45:07]1040 (4) - 187162 [19:45:07]1012 (4) - 19.02.2025 13:22 [19:45:07]1206 (1) - 0 [19:45:07]OFD Sender: Remove packet 187162 [19:45:07]ProducePacketName [19:45:07]name=ofd_packets/00187162 [19:45:07]NVStorageDeleteData [19:45:07]Write to MH i2c: 01 00 00 11 07 18 [19:45:07]Write i2c OK [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: 01 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: 01 07 00 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: 01 07 00 11 07 00 00 00 00 00 FD 0C 28 [19:45:07]RasterBufferAndPrint [19:45:07]line [19:45:07]line [19:45:07]line [19:45:07]line [19:45:07]line [19:45:07]written 0, free lines is 3331 [19:45:07]MH_Cut [19:45:07]Write to MH i2c: D1 01 00 18 07 01 F1 [19:45:07]Write i2c OK [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: D1 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: D1 01 00 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: D1 01 00 18 07 00 F0 [19:45:07]Write to MH i2c: 01 00 00 19 07 20 [19:45:07]Write i2c OK [19:45:07]MH_I2C_Read... [19:45:08]OFD Sender: No OFD packet to send [19:45:08]*** Cut start [19:45:08]*** Partial cut [19:45:08]*** CUTSNS_PIN = 1 [19:45:08]*** CUTSNS_PIN = 0 [19:45:08]*** Brake cut motor [19:45:09]Read from MH i2c: 01 [19:45:09]MH_I2C_Read... [19:45:09]*** Stop cut motor [19:45:09]*** Cut end [19:45:09]Read from MH i2c: 01 07 00 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: 01 07 00 19 07 00 00 00 00 00 FF 0F 35 [19:45:09]process_action close_receipt done [19:45:09]requested_data is exist [19:45:09]produce_requested_data [19:45:09]requested_item fm.sn is exist - process it [19:45:09]wFMCommunicate request_size=4 [19:45:09]MH_SAM_APDU [19:45:09]CAPDU: 80 11 00 00 [19:45:09]Write to MH i2c: E2 08 00 1A 07 80 11 00 00 00 00 00 00 9B [19:45:09]Write i2c OK [19:45:09]MH_I2C_Read... [19:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:09]Read from MH i2c: E2 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 17 00 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 17 00 1A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EE [19:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:45:09]wFMCommunicate OK [19:45:09]requested_item fd.num is exist - process it [19:45:09]SAM_PROTO_GetFieldsCounters [19:45:09]wFMCommunicate request_size=4 [19:45:09]MH_SAM_APDU [19:45:09]CAPDU: 80 13 00 00 [19:45:09]Write to MH i2c: E2 08 00 1B 07 80 13 00 00 00 00 00 00 9E [19:45:09]Write i2c OK [19:45:09]MH_I2C_Read... [19:45:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:09]Read from MH i2c: E2 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 62 00 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 62 00 1B 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 1A DB 02 00 0E 04 04 00 87 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 F0 [19:45:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DB 02 00 0E 04 04 00 87 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 [19:45:09]wFMCommunicate OK [19:45:09]SAM_PROTO_GetFieldsCounters done [19:45:09]requested_item shift.num is exist - process it [19:45:09]requested_item shift.opened is exist - process it [19:45:09]req_shift_opened [19:45:09]FM_GetShiftState [19:45:09]SAM_PROTO_GetShiftState [19:45:09]wFMCommunicate request_size=4 [19:45:09]MH_SAM_APDU [19:45:09]CAPDU: 80 13 01 00 [19:45:09]Write to MH i2c: E2 08 00 1C 07 80 13 01 00 00 00 00 00 A0 [19:45:09]Write i2c OK [19:45:09]MH_I2C_Read... [19:45:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:09]Read from MH i2c: E2 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 0E 00 [19:45:09]MH_I2C_Read... [19:45:09]Read from MH i2c: E2 0E 00 1C 07 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 1F [19:45:09]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:45:09]wFMCommunicate OK [19:45:09]SAM_PROTO_GetShiftState done [19:45:09]FM_GetShiftState done [19:45:09]req_shift_opened done [19:45:09]requested_item shift.open_date is exist - process it [19:45:09]req_shift_open_date [19:45:09]req_shift_open_date done [19:45:09]produce_requested_data done [19:45:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187162,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [19:45:09]process_action_free close_receipt [19:45:09]json_value_free [19:45:09]json_value_free done [19:45:09]process_json_proto returns [19:45:09]Send response to host [19:45:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187162,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [19:45:09]free response buf [19:45:09]execute_script done [19:45:09]execute_script returns [19:45:09]free content buf [19:45:09]Sock 9.Close socket [19:45:09]Sock 9.Thread stoped [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:08]OFD Sender: No OFD packet to send [19:55:11]accept exits with 10 [19:55:11]New connection [19:55:11]New thread 3066654052 created [19:55:11]Thread 3066510692 joined [19:55:11]Waiting for new connection... [19:55:11] Sock 10.Parse request [19:55:11]Sock 10.Check first char [19:55:11]Sock 10.First char is OK [19:55:11]request: POST /json_proto HTTP/1.0 [19:55:11]Method: POST [19:55:11]URL: /json_proto [19:55:11]Method is POST - this is cgi request [19:55:11]url: /json_proto [19:55:11]query_string will be loaded in cgi processing [19:55:11]execute_cgi json_proto POST (null) [19:55:11]execute_cgi path=json_proto method=POST [19:55:11]POST find Content-Length [19:55:11]Host: 172.17.46.131:8080 [19:55:11]Content-Length: 792 [19:55:11]Content-Type: application/json [19:55:11] [19:55:11]POST finish read [19:55:11]Found Content-Length = 792 [19:55:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412318", "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" : 10.390, "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\u000A03529", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:11]execute_script... [19:55:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412318", "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" : 10.390, "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\u000A03529", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:55:11]POST & json_proto [19:55:11]process_json_proto [19:55:11]json parsed OK: [19:55:11]protocol is kg_v1.0 [19:55:11]action value=close_receipt [19:55:11]process_action close_receipt [19:55:11]cmd_close_receipt [19:55:11]MH_GetDate [19:55:11]Write to MH i2c: F0 00 00 1D 07 13 [19:55:11]Write i2c OK [19:55:11]MH_I2C_Read... [19:55:11]Read from MH i2c: F0 [19:55:11]MH_I2C_Read... [19:55:11]Read from MH i2c: F0 09 00 [19:55:11]MH_I2C_Read... [19:55:11]Read from MH i2c: F0 09 00 1D 07 00 20 37 B6 67 7E 41 4F 65 03 [19:55:11]GetLastDocTimeStamp 1739994306 [19:55:11]current date 1739994912 [19:55:11]FM_GetShiftState [19:55:11]SAM_PROTO_GetShiftState [19:55:11]wFMCommunicate request_size=4 [19:55:11]MH_SAM_APDU [19:55:11]CAPDU: 80 13 01 00 [19:55:11]Write to MH i2c: E2 08 00 1E 07 80 13 01 00 00 00 00 00 A2 [19:55:11]Write i2c OK [19:55:11]MH_I2C_Read... [19:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:11]Read from MH i2c: E2 [19:55:11]MH_I2C_Read... [19:55:11]Read from MH i2c: E2 0E 00 [19:55:11]MH_I2C_Read... [19:55:11]Read from MH i2c: E2 0E 00 1E 07 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 21 [19:55:11]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:55:11]wFMCommunicate OK [19:55:11]SAM_PROTO_GetShiftState done [19:55:11]FM_GetShiftState done [19:55:11]opened in 1739929631 [19:55:11]opened+sec_in_day 1740016031 [19:55:11]quantity*price = 0 [19:55:11]sum+1 = 1 [19:55:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 229 19.02.2025 19:55 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 03529 ФМ: 0000000000871826 ФД: 187163 ФПД: 190690887554332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T195512&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187163&fm=190690887554332&tin=02508201610067®Number=0000000000091857&sum=0 [19:55:12]StoreToDocumentArchive [19:55:12]shift 647 fd 187163 [19:55:12]save to /storage/0647/doc_00187163 [19:55:12]save last doc name /storage/0647/doc_00187163 to /storage/kkm_last_doc_name [19:55:12]save OK [19:55:12]Clear old archive folders... [19:55:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:55:12]tlvbuf is 01F24710 [19:55:12]SAM_PROTO_ClearQueue [19:55:12]wFMCommunicate request_size=4 [19:55:12]MH_SAM_APDU [19:55:12]CAPDU: 80 09 00 00 [19:55:12]Write to MH i2c: E2 08 00 2B 07 80 09 00 00 00 00 00 00 A4 [19:55:12]Write i2c OK [19:55:12]MH_I2C_Read... [19:55:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:55:12]Read from MH i2c: E2 [19:55:12]MH_I2C_Read... [19:55:12]Read from MH i2c: E2 03 00 [19:55:12]MH_I2C_Read... [19:55:12]Read from MH i2c: E2 03 00 2B 07 00 90 00 A6 [19:55:12]RAPDU: 90 00 [19:55:12]wFMCommunicate OK [19:55:12]SAM_PROTO_ClearQueue done [19:55:12]KKMCreateOFDPacket [19:55:12]OFDProtocolAddRootSTLVToBuf [19:55:12]FM_MakeSignedData [19:55:12]FM_MakeSignedData [19:55:12]SAM_PROTO_SignData [19:55:12]wFMCommunicate request_size=4 [19:55:12]MH_SAM_APDU [19:55:12]CAPDU: 80 0D 01 02 [19:55:12]Write to MH i2c: E2 08 00 2C 07 80 0D 01 02 00 00 00 00 AC [19:55:12]Write i2c OK [19:55:12]MH_I2C_Read... [19:55:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:55:12]Read from MH i2c: E2 [19:55:12]MH_I2C_Read... [19:55:12]Read from MH i2c: E2 03 00 [19:55:12]MH_I2C_Read... [19:55:12]Read from MH i2c: E2 03 00 2C 07 00 90 00 A7 [19:55:12]RAPDU: 90 00 [19:55:12]wFMCommunicate OK [19:55:12]wFMCommunicate request_size=255 [19:55:12]MH_SAM_APDU [19:55: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 96 28 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 E5 00 00 00 F4 03 04 00 20 37 B6 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 1B DB 02 00 35 04 06 00 AD [19:55:12]Write to MH i2c: E2 02 01 2D 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 96 28 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 E5 00 00 00 F4 03 04 00 20 37 B6 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 1B DB 02 00 35 04 06 00 AD 00 00 FD [19:55:12]Write i2c OK [19:55:12]MH_I2C_Read... [19:55:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:13]Read from MH i2c: E2 [19:55:13]MH_I2C_Read... [19:55:13]Read from MH i2c: E2 03 00 [19:55:13]MH_I2C_Read... [19:55:13]Read from MH i2c: E2 03 00 2D 07 00 90 00 A8 [19:55:13]RAPDU: 90 00 [19:55:13]wFMCommunicate OK [19:55:13]wFMCommunicate request_size=10 [19:55:13]MH_SAM_APDU [19:55:13]CAPDU: 80 0D 02 02 05 6E AE 9D 55 1C [19:55:13]Write to MH i2c: E2 0D 00 2E 07 80 0D 02 02 05 00 6E AE 9D 55 1C 00 00 E3 [19:55:13]Write i2c OK [19:55:13]MH_I2C_Read... [19:55:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:55:13]Read from MH i2c: E2 [19:55:13]MH_I2C_Read... [19:55:13]Read from MH i2c: E2 03 00 [19:55:13]MH_I2C_Read... [19:55:13]Read from MH i2c: E2 03 00 2E 07 00 90 00 A9 [19:55:13]RAPDU: 90 00 [19:55:13]wFMCommunicate OK [19:55:13]wFMCommunicate request_size=4 [19:55:13]MH_SAM_APDU [19:55:13]CAPDU: 80 0D 03 02 [19:55:13]Write to MH i2c: E2 08 00 2F 07 80 0D 03 02 00 00 00 00 B1 [19:55:13]Write i2c OK [19:55:13]MH_I2C_Read... [19:55:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:55:13]Read from MH i2c: E2 [19:55:13]MH_I2C_Read... [19:55:13]Read from MH i2c: E2 0B 00 [19:55:13]MH_I2C_Read... [19:55:13]Read from MH i2c: E2 0B 00 2F 07 00 F3 A9 DA 50 AA 69 ED 8B 90 00 03 [19:55:13]RAPDU: F3 A9 DA 50 AA 69 ED 8B 90 00 [19:55:13]wFMCommunicate OK [19:55:13]SAM_PROTO_SignData done [19:55:13]FM_MakeSignedData done [19:55:13]CreateOFDProtocolMessage [19:55:13]wFMCommunicate request_size=4 [19:55:13]MH_SAM_APDU [19:55:13]CAPDU: 80 11 00 00 [19:55:13]Write to MH i2c: E2 08 00 30 07 80 11 00 00 00 00 00 00 B1 [19:55:13]Write i2c OK [19:55:13]MH_I2C_Read... [19:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:13]Read from MH i2c: E2 [19:55:13]MH_I2C_Read... [19:55:13]Read from MH i2c: E2 17 00 [19:55:13]MH_I2C_Read... [19:55:13]Read from MH i2c: E2 17 00 30 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 04 [19:55: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:55:13]wFMCommunicate OK [19:55:13]CreateOFDProtocolMessage done [19:55:13]OFDSenderStorePacket 187163 [19:55:13]StoreOFDPacket docnum=187163 [19:55: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 D4 D5 07 01 E6 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 96 28 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 E5 00 00 00 F4 03 04 00 20 37 B6 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 1B DB 02 00 35 04 06 00 AD 6E AE 9D 55 1C F3 A9 DA 50 AA 69 ED 8B [19:55:13]CheckFolder [19:55:13]dirname=/storage/ofd_packets [19:55:13]CheckFolder done [19:55:13]ProducePacketName [19:55:13]name=ofd_packets/00187163 [19:55:13]NVStorageSaveData ofd_packets/00187163 [19:55:13]File name is /storage/ofd_packets/00187163 [19:55:13]Write 301 bytes [19:55:13]NVStorageSaveData done [19:55:13]OFDSenderStorePacket done [19:55:13]KKMCreateOFDPacket done [19:55:13]NVStorageSaveData kkm_last_timestamp [19:55:13]File name is /storage/kkm_last_timestamp [19:55:13]Write 4 bytes [19:55:13]NVStorageSaveData done [19:55:13]ExternCall_PrintAddStr [19:55:13]wPrintStart [19:55:13]Write to MH i2c: 01 00 00 31 07 38 [19:55:13]Write i2c OK [19:55:13]MH_I2C_Read... [19:55:13]Read from MH i2c: 01 [19:55:13]MH_I2C_Read... [19:55:13]Read from MH i2c: 01 07 00 [19:55:13]MH_I2C_Read... [19:55:13]Read from MH i2c: 01 07 00 31 07 00 00 00 00 00 FF 0F 4D [19:55:13]RasterBufferAndPrint [19:55:13]line Счет N : (1)412318 [19:55:13]line ИНН: 02508201610067 [19:55:13]line Контрольно-Кассовый Чек [19:55:13]line ПРОДАЖА [19:55:13]line ТРК (МРК, ГНК) : 12 [19:55:13]line Товар: 2710124130 [19:55:13]line Аи-92-К-2 [19:55:13]line 10.390 * 0.00 [19:55:13]line = 0.00 [19:55:13]line НДС 12% НСП 1% [19:55:13]line > о реализуемом товаре [19:55:13]line ИТОГО: 0.00 [19:55:13]line НСП 1% : 0.00 [19:55:13]line НДС 12% : 0.00 [19:55:13]line Наличными: 0.00 [19:55:13]line Безнал.: 0.00 [19:55:13]line Место: АЗС № 92 "Партнер Нефть" [19:55:13]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:55:13]line СНО: Общий режим [19:55:13]line Чек 229 19.02.2025 19:55 [19:55:13]line Смена: 647 ФФД: 1.0 [19:55:13]line ЗНМ: 0300000118 [19:55:13]line РНМ: 0000000000091857 [19:55:13]line Версия ККМ: 001 [19:55:13]line Талоны: Топливная Карта [19:55:13]line 03529 [19:55:13]line ФМ: 0000000000871826 [19:55:13]line ФД: 187163 [19:55:13]line ФПД: 190690887554332 [19:55:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T195512&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187163&fm=190690887554332&tin=02508201610067®Number=0000000000091857&sum=0 [19:55:13]written 0, free lines is 4095 [19:55:13]OFD Sender: Processing packet 187163 [packets to send 49, broken 48] [19:55:13]ProducePacketName [19:55:13]name=ofd_packets/00187163 [19:55:13]OFD Sender: To server: pG, [19:55:13]CommunicateWithHost lk.salyk.kg:30040 [19:55:13]ConnectInit lk.salyk.kg [19:55:13]Connected sock=9 [19:55:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D4 D5 07 01 E6 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 96 28 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 E5 00 00 00 F4 03 04 00 20 37 B6 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 1B DB 02 00 35 04 06 00 AD 6E AE 9D 55 1C F3 A9 DA 50 AA 69 ED 8B [19:55:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 14 E9 47 00 32 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 1B DB 02 00 F4 03 04 00 73 DD B5 67 B6 04 01 00 00 42 6C 64 2F F7 AA 11 CD [19:55:13]CommunicateWithHost err = 0 [19:55:13]CheckOFDResponse [19:55:13]1017 (14) - 77093643461234 [19:55:13]1041 (16) - 0000000000871826 [19:55:13]1040 (4) - 187163 [19:55:13]1012 (4) - 19.02.2025 13:32 [19:55:13]1206 (1) - 0 [19:55:13]OFD Sender: Remove packet 187163 [19:55:13]ProducePacketName [19:55:13]name=ofd_packets/00187163 [19:55:13]NVStorageDeleteData [19:55:13]Write to MH i2c: 01 00 00 5B 07 62 [19:55:13]Write i2c OK [19:55:13]MH_I2C_Read... [19:55:13]Read from MH i2c: 01 [19:55:13]MH_I2C_Read... [19:55:13]Read from MH i2c: 01 07 00 [19:55:13]MH_I2C_Read... [19:55:13]Read from MH i2c: 01 07 00 5B 07 00 00 00 00 00 05 0D 7B [19:55:13]RasterBufferAndPrint [19:55:13]line [19:55:13]line [19:55:13]line [19:55:13]line [19:55:13]line [19:55:13]written 0, free lines is 3339 [19:55:13]MH_Cut [19:55:13]Write to MH i2c: D1 01 00 62 07 01 3B [19:55:13]Write i2c OK [19:55:13]MH_I2C_Read... [19:55:13]Read from MH i2c: D1 [19:55:13]MH_I2C_Read... [19:55:13]Read from MH i2c: D1 01 00 [19:55:13]MH_I2C_Read... [19:55:13]Read from MH i2c: D1 01 00 62 07 00 3A [19:55:13]Write to MH i2c: 01 00 00 63 07 6A [19:55:13]Write i2c OK [19:55:13]MH_I2C_Read... [19:55:14]OFD Sender: No OFD packet to send [19:55:14]*** Cut start [19:55:14]*** Partial cut [19:55:14]*** CUTSNS_PIN = 1 [19:55:14]*** CUTSNS_PIN = 0 [19:55:14]*** Brake cut motor [19:55:15]Read from MH i2c: 01 [19:55:15]MH_I2C_Read... [19:55:15]*** Stop cut motor [19:55:15]*** Cut end [19:55:15]Read from MH i2c: 01 07 00 [19:55:15]MH_I2C_Read... [19:55:15]Read from MH i2c: 01 07 00 63 07 00 00 00 00 00 FF 0F 7F [19:55:15]process_action close_receipt done [19:55:15]requested_data is exist [19:55:15]produce_requested_data [19:55:15]requested_item fm.sn is exist - process it [19:55:15]wFMCommunicate request_size=4 [19:55:15]MH_SAM_APDU [19:55:15]CAPDU: 80 11 00 00 [19:55:15]Write to MH i2c: E2 08 00 64 07 80 11 00 00 00 00 00 00 E5 [19:55:15]Write i2c OK [19:55:15]MH_I2C_Read... [19:55:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:55:15]Read from MH i2c: E2 [19:55:15]MH_I2C_Read... [19:55:15]Read from MH i2c: E2 17 00 [19:55:15]MH_I2C_Read... [19:55:15]Read from MH i2c: E2 17 00 64 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 38 [19:55: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:55:15]wFMCommunicate OK [19:55:15]requested_item fd.num is exist - process it [19:55:15]SAM_PROTO_GetFieldsCounters [19:55:15]wFMCommunicate request_size=4 [19:55:15]MH_SAM_APDU [19:55:15]CAPDU: 80 13 00 00 [19:55:15]Write to MH i2c: E2 08 00 65 07 80 13 00 00 00 00 00 00 E8 [19:55:15]Write i2c OK [19:55:15]MH_I2C_Read... [19:55:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:55:15]Read from MH i2c: E2 [19:55:15]MH_I2C_Read... [19:55:15]Read from MH i2c: E2 62 00 [19:55:15]MH_I2C_Read... [19:55:15]Read from MH i2c: E2 62 00 65 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 1B DB 02 00 0E 04 04 00 87 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 3E [19:55:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DB 02 00 0E 04 04 00 87 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 [19:55:15]wFMCommunicate OK [19:55:15]SAM_PROTO_GetFieldsCounters done [19:55:15]requested_item shift.num is exist - process it [19:55:15]requested_item shift.opened is exist - process it [19:55:15]req_shift_opened [19:55:15]FM_GetShiftState [19:55:15]SAM_PROTO_GetShiftState [19:55:15]wFMCommunicate request_size=4 [19:55:15]MH_SAM_APDU [19:55:15]CAPDU: 80 13 01 00 [19:55:15]Write to MH i2c: E2 08 00 66 07 80 13 01 00 00 00 00 00 EA [19:55:15]Write i2c OK [19:55:15]MH_I2C_Read... [19:55:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:55:15]Read from MH i2c: E2 [19:55:15]MH_I2C_Read... [19:55:15]Read from MH i2c: E2 0E 00 [19:55:15]MH_I2C_Read... [19:55:15]Read from MH i2c: E2 0E 00 66 07 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 69 [19:55:15]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [19:55:15]wFMCommunicate OK [19:55:15]SAM_PROTO_GetShiftState done [19:55:15]FM_GetShiftState done [19:55:15]req_shift_opened done [19:55:15]requested_item shift.open_date is exist - process it [19:55:15]req_shift_open_date [19:55:15]req_shift_open_date done [19:55:15]produce_requested_data done [19:55:15]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187163,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [19:55:15]process_action_free close_receipt [19:55:15]json_value_free [19:55:15]json_value_free done [19:55:15]process_json_proto returns [19:55:15]Send response to host [19:55:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187163,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [19:55:15]free response buf [19:55:15]execute_script done [19:55:15]execute_script returns [19:55:15]free content buf [19:55:15]Sock 10.Close socket [19:55:15]Sock 10.Thread stoped [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:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:24]OFD Sender: No OFD packet to send [20:03:29]OFD Sender: No OFD packet to send [20:03:34]OFD Sender: No OFD packet to send [20:03:39]OFD Sender: No OFD packet to send [20:03:44]OFD Sender: No OFD packet to send [20:03:49]OFD Sender: No OFD packet to send [20:03:54]OFD Sender: No OFD packet to send [20:03:59]OFD Sender: No OFD packet to send [20:04:04]OFD Sender: No OFD packet to send [20:04:09]OFD Sender: No OFD packet to send [20:04:14]OFD Sender: No OFD packet to send [20:04:19]OFD Sender: No OFD packet to send [20:04:24]OFD Sender: No OFD packet to send [20:04:29]OFD Sender: No OFD packet to send [20:04:34]OFD Sender: No OFD packet to send [20:04:39]OFD Sender: No OFD packet to send [20:04:44]OFD Sender: No OFD packet to send [20:04:49]OFD Sender: No OFD packet to send [20:04:54]OFD Sender: No OFD packet to send [20:04:59]OFD Sender: No OFD packet to send [20:05:04]OFD Sender: No OFD packet to send [20:05:09]OFD Sender: No OFD packet to send [20:05:14]OFD Sender: No OFD packet to send [20:05:19]OFD Sender: No OFD packet to send [20:05:24]OFD Sender: No OFD packet to send [20:05:29]OFD Sender: No OFD packet to send [20:05:34]OFD Sender: No OFD packet to send [20:05:39]OFD Sender: No OFD packet to send [20:05:44]OFD Sender: No OFD packet to send [20:05:49]OFD Sender: No OFD packet to send [20:05:54]OFD Sender: No OFD packet to send [20:05:59]OFD Sender: No OFD packet to send [20:06:04]OFD Sender: No OFD packet to send [20:06:09]OFD Sender: No OFD packet to send [20:06:14]OFD Sender: No OFD packet to send [20:06:19]OFD Sender: No OFD packet to send [20:06:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:34]OFD Sender: No OFD packet to send [20:06:39]OFD Sender: No OFD packet to send [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07: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:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:04]int [20:08:04]Write to MH i2c: 01 00 00 67 07 6E [20:08:04]*** FLAG_PRN_KEY set [20:08:04]Write i2c OK [20:08:04]MH_I2C_Read... [20:08:04]Read from MH i2c: 01 [20:08:04]MH_I2C_Read... [20:08:04]Read from MH i2c: 01 07 00 [20:08:04]MH_I2C_Read... [20:08:04]Read from MH i2c: 01 07 00 67 07 00 08 00 00 00 FF 0F 8B [20:08:04]state=0 [20:08:04]Key pressed [20:08:04]Feed [20:08:04]Write to MH i2c: D8 00 00 68 07 46 [20:08:04]Write i2c OK [20:08:04]MH_I2C_Read... [20:08:04]Read from MH i2c: D8 [20:08:04]MH_I2C_Read... [20:08:04]Read from MH i2c: D8 01 00 [20:08:04]MH_I2C_Read... [20:08:04]Read from MH i2c: D8 01 00 68 07 00 47 [20:08:04]int [20:08:04]Write to MH i2c: 01 00 00 69 07 70 [20:08:04]Write i2c OK [20:08:04]MH_I2C_Read... [20:08:04]Read from MH i2c: 01 [20:08:04]MH_I2C_Read... [20:08:04]Read from MH i2c: 01 07 00 [20:08:04]MH_I2C_Read... [20:08:04]Read from MH i2c: 01 07 00 69 07 00 48 00 00 00 3C 00 FB [20:08:04]state=2 [20:08:04]Key pressed [20:08:04]int [20:08:04]Write to MH i2c: 01 00 00 6A 07 71 [20:08:04]*** FLAG_PRN_KEY reset [20:08:04]Write i2c OK [20:08:04]MH_I2C_Read... [20:08:04]Read from MH i2c: 01 [20:08:04]MH_I2C_Read... [20:08:04]Read from MH i2c: 01 07 00 [20:08:04]MH_I2C_Read... [20:08:04]Read from MH i2c: 01 07 00 6A 07 00 00 00 00 00 F6 0F 7D [20:08:04]state=2 [20:08:04]Stop feed [20:08:04]OFD Sender: No OFD packet to send [20:08:09]OFD Sender: No OFD packet to send [20:08:14]OFD Sender: No OFD packet to send [20:08:19]OFD Sender: No OFD packet to send [20:08:24]OFD Sender: No OFD packet to send [20:08:29]OFD Sender: No OFD packet to send [20:08:34]OFD Sender: No OFD packet to send [20:08:39]OFD Sender: No OFD packet to send [20:08:44]OFD Sender: No OFD packet to send [20:08:49]OFD Sender: No OFD packet to send [20:08:54]OFD Sender: No OFD packet to send [20:08:59]OFD Sender: No OFD packet to send [20:09:04]OFD Sender: No OFD packet to send [20:09:09]OFD Sender: No OFD packet to send [20:09:14]OFD Sender: No OFD packet to send [20:09:19]OFD Sender: No OFD packet to send [20:09:24]OFD Sender: No OFD packet to send [20:09:29]OFD Sender: No OFD packet to send [20:09:34]OFD Sender: No OFD packet to send [20:09:39]OFD Sender: No OFD packet to send [20:09:44]OFD Sender: No OFD packet to send [20:09:49]OFD Sender: No OFD packet to send [20:09:54]OFD Sender: No OFD packet to send [20:09:59]OFD Sender: No OFD packet to send [20:10:04]OFD Sender: No OFD packet to send [20:10:09]OFD Sender: No OFD packet to send [20:10:14]OFD Sender: No OFD packet to send [20:10:19]OFD Sender: No OFD packet to send [20:10:24]OFD Sender: No OFD packet to send [20:10:29]OFD Sender: No OFD packet to send [20:10:34]OFD Sender: No OFD packet to send [20:10:39]OFD Sender: No OFD packet to send [20:10:44]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:05]OFD Sender: No OFD packet to send [20:11:10]OFD Sender: No OFD packet to send [20:11:15]OFD Sender: No OFD packet to send [20:11:20]OFD Sender: No OFD packet to send [20:11:25]OFD Sender: No OFD packet to send [20:11:30]OFD Sender: No OFD packet to send [20:11:35]OFD Sender: No OFD packet to send [20:11:40]OFD Sender: No OFD packet to send [20:11:45]OFD Sender: No OFD packet to send [20:11:50]OFD Sender: No OFD packet to send [20:11:55]OFD Sender: No OFD packet to send [20:12:00]OFD Sender: No OFD packet to send [20:12:05]OFD Sender: No OFD packet to send [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:49]accept exits with 7 [20:12:49]New connection [20:12:49]New thread 3066510692 created [20:12:49]Thread 3066654052 joined [20:12:49]Waiting for new connection... [20:12:49] Sock 7.Parse request [20:12:49]Sock 7.Check first char [20:12:49]Sock 7.First char is OK [20:12:49]request: POST /json_proto HTTP/1.0 [20:12:49]Method: POST [20:12:49]URL: /json_proto [20:12:49]Method is POST - this is cgi request [20:12:49]url: /json_proto [20:12:49]query_string will be loaded in cgi processing [20:12:49]execute_cgi json_proto POST (null) [20:12:49]execute_cgi path=json_proto method=POST [20:12:49]POST find Content-Length [20:12:49]Host: 172.17.46.131:8080 [20:12:49]Content-Length: 674 [20:12:49]Content-Type: application/json [20:12:49] [20:12:49]POST finish read [20:12:49]Found Content-Length = 674 [20:12:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412319", "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" ] } } [20:12:49]execute_script... [20: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)412319", "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" ] } } [20:12:49]POST & json_proto [20:12:49]process_json_proto [20:12:49]json parsed OK: [20:12:49]protocol is kg_v1.0 [20:12:49]action value=close_receipt [20:12:49]process_action close_receipt [20:12:49]cmd_close_receipt [20:12:49]MH_GetDate [20:12:49]Write to MH i2c: F0 00 00 6B 07 61 [20:12:49]Write i2c OK [20:12:49]MH_I2C_Read... [20:12:49]Read from MH i2c: F0 [20:12:49]MH_I2C_Read... [20:12:49]Read from MH i2c: F0 09 00 [20:12:49]MH_I2C_Read... [20:12:49]Read from MH i2c: F0 09 00 6B 07 00 41 3B B6 67 7E 41 4F 65 76 [20:12:49]GetLastDocTimeStamp 1739994912 [20:12:49]current date 1739995969 [20:12:49]FM_GetShiftState [20:12:49]SAM_PROTO_GetShiftState [20:12:49]wFMCommunicate request_size=4 [20:12:49]MH_SAM_APDU [20:12:49]CAPDU: 80 13 01 00 [20:12:49]Write to MH i2c: E2 08 00 6C 07 80 13 01 00 00 00 00 00 F0 [20:12:49]Write i2c OK [20:12:49]MH_I2C_Read... [20:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:49]Read from MH i2c: E2 [20:12:49]MH_I2C_Read... [20:12:49]Read from MH i2c: E2 0E 00 [20:12:49]MH_I2C_Read... [20:12:49]Read from MH i2c: E2 0E 00 6C 07 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 6F [20:12:49]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:12:49]wFMCommunicate OK [20:12:49]SAM_PROTO_GetShiftState done [20:12:49]FM_GetShiftState done [20:12:49]opened in 1739929631 [20:12:49]opened+sec_in_day 1740016031 [20:12:49]quantity*price = 80005 [20:12:49]sum+1 = 80006 [20:12:49]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 СНО: Общий режим Чек 230 19.02.2025 20:12 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187164 ФПД: 110929777446955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T201249&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187164&fm=110929777446955&tin=02508201610067®Number=0000000000091857&sum=80000 [20:12:50]StoreToDocumentArchive [20:12:50]shift 647 fd 187164 [20:12:50]save to /storage/0647/doc_00187164 [20:12:50]save last doc name /storage/0647/doc_00187164 to /storage/kkm_last_doc_name [20:12:50]save OK [20:12:50]Clear old archive folders... [20:12:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:12:50]tlvbuf is 01F62DB0 [20:12:50]SAM_PROTO_ClearQueue [20:12:50]wFMCommunicate request_size=4 [20:12:50]MH_SAM_APDU [20:12:50]CAPDU: 80 09 00 00 [20:12:50]Write to MH i2c: E2 08 00 79 07 80 09 00 00 00 00 00 00 F2 [20:12:50]Write i2c OK [20:12:50]MH_I2C_Read... [20:12:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:50]Read from MH i2c: E2 [20:12:50]MH_I2C_Read... [20:12:50]Read from MH i2c: E2 03 00 [20:12:50]MH_I2C_Read... [20:12:50]Read from MH i2c: E2 03 00 79 07 00 90 00 F4 [20:12:50]RAPDU: 90 00 [20:12:50]wFMCommunicate OK [20:12:50]SAM_PROTO_ClearQueue done [20:12:50]KKMCreateOFDPacket [20:12:50]OFDProtocolAddRootSTLVToBuf [20:12:50]FM_MakeSignedData [20:12:50]FM_MakeSignedData [20:12:50]SAM_PROTO_SignData [20:12:50]wFMCommunicate request_size=4 [20:12:50]MH_SAM_APDU [20:12:50]CAPDU: 80 0D 01 02 [20:12:50]Write to MH i2c: E2 08 00 7A 07 80 0D 01 02 00 00 00 00 FA [20:12:50]Write i2c OK [20:12:50]MH_I2C_Read... [20:12:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:50]Read from MH i2c: E2 [20:12:50]MH_I2C_Read... [20:12:50]Read from MH i2c: E2 03 00 [20:12:50]MH_I2C_Read... [20:12:50]Read from MH i2c: E2 03 00 7A 07 00 90 00 F5 [20:12:50]RAPDU: 90 00 [20:12:50]wFMCommunicate OK [20:12:50]wFMCommunicate request_size=255 [20:12:50]MH_SAM_APDU [20: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 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 E6 00 00 00 F4 03 04 00 41 3B B6 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 1C DB 02 00 35 04 06 00 64 E3 D9 FA [20:12:50]Write to MH i2c: E2 02 01 7B 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 E6 00 00 00 F4 03 04 00 41 3B B6 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 1C DB 02 00 35 04 06 00 64 E3 D9 FA 00 00 6D [20:12:50]Write i2c OK [20:12:50]MH_I2C_Read... [20:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:50]Read from MH i2c: E2 [20:12:50]MH_I2C_Read... [20:12:50]Read from MH i2c: E2 03 00 [20:12:50]MH_I2C_Read... [20:12:50]Read from MH i2c: E2 03 00 7B 07 00 90 00 F6 [20:12:50]RAPDU: 90 00 [20:12:50]wFMCommunicate OK [20:12:50]wFMCommunicate request_size=7 [20:12:50]MH_SAM_APDU [20:12:50]CAPDU: 80 0D 02 02 02 D0 2B [20:12:50]Write to MH i2c: E2 0A 00 7C 07 80 0D 02 02 02 00 D0 2B 00 00 FC [20:12:50]Write i2c OK [20:12:50]MH_I2C_Read... [20:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:50]Read from MH i2c: E2 [20:12:50]MH_I2C_Read... [20:12:50]Read from MH i2c: E2 03 00 [20:12:50]MH_I2C_Read... [20:12:50]Read from MH i2c: E2 03 00 7C 07 00 90 00 F7 [20:12:50]RAPDU: 90 00 [20:12:50]wFMCommunicate OK [20:12:50]wFMCommunicate request_size=4 [20:12:50]MH_SAM_APDU [20:12:50]CAPDU: 80 0D 03 02 [20:12:50]Write to MH i2c: E2 08 00 7D 07 80 0D 03 02 00 00 00 00 FF [20:12:50]Write i2c OK [20:12:50]MH_I2C_Read... [20:12:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:50]Read from MH i2c: E2 [20:12:50]MH_I2C_Read... [20:12:50]Read from MH i2c: E2 0B 00 [20:12:50]MH_I2C_Read... [20:12:50]Read from MH i2c: E2 0B 00 7D 07 00 86 E2 7E 7F C9 C0 C8 81 90 00 37 [20:12:50]RAPDU: 86 E2 7E 7F C9 C0 C8 81 90 00 [20:12:50]wFMCommunicate OK [20:12:50]SAM_PROTO_SignData done [20:12:50]FM_MakeSignedData done [20:12:50]CreateOFDProtocolMessage [20:12:50]wFMCommunicate request_size=4 [20:12:50]MH_SAM_APDU [20:12:50]CAPDU: 80 11 00 00 [20:12:50]Write to MH i2c: E2 08 00 7E 07 80 11 00 00 00 00 00 00 FF [20:12:50]Write i2c OK [20:12:50]MH_I2C_Read... [20:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:50]Read from MH i2c: E2 [20:12:50]MH_I2C_Read... [20:12:50]Read from MH i2c: E2 17 00 [20:12:50]MH_I2C_Read... [20:12:50]Read from MH i2c: E2 17 00 7E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 52 [20:12:50]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:50]wFMCommunicate OK [20:12:50]CreateOFDProtocolMessage done [20:12:50]OFDSenderStorePacket 187164 [20:12:50]StoreOFDPacket docnum=187164 [20:12: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 9C E3 04 01 92 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 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 E6 00 00 00 F4 03 04 00 41 3B B6 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 1C DB 02 00 35 04 06 00 64 E3 D9 FA D0 2B 86 E2 7E 7F C9 C0 C8 81 [20:12:50]CheckFolder [20:12:50]dirname=/storage/ofd_packets [20:12:50]CheckFolder done [20:12:50]ProducePacketName [20:12:50]name=ofd_packets/00187164 [20:12:50]NVStorageSaveData ofd_packets/00187164 [20:12:50]File name is /storage/ofd_packets/00187164 [20:12:50]Write 298 bytes [20:12:50]NVStorageSaveData done [20:12:50]OFDSenderStorePacket done [20:12:50]KKMCreateOFDPacket done [20:12:50]NVStorageSaveData kkm_last_timestamp [20:12:50]File name is /storage/kkm_last_timestamp [20:12:50]Write 4 bytes [20:12:50]NVStorageSaveData done [20:12:50]ExternCall_PrintAddStr [20:12:50]wPrintStart [20:12:50]Write to MH i2c: 01 00 00 7F 07 86 [20:12:50]Write i2c OK [20:12:50]MH_I2C_Read... [20:12:50]Read from MH i2c: 01 [20:12:50]MH_I2C_Read... [20:12:50]Read from MH i2c: 01 07 00 [20:12:50]MH_I2C_Read... [20:12:50]Read from MH i2c: 01 07 00 7F 07 00 00 00 00 00 FF 0F 9B [20:12:50]RasterBufferAndPrint [20:12:50]line Счет N : (1)412319 [20:12:50]line ИНН: 02508201610067 [20:12:50]line Контрольно-Кассовый Чек [20:12:50]line ПРОДАЖА [20:12:50]line ТРК (МРК, ГНК) : 5 [20:12:50]line Товар: 2710194210 [20:12:50]line ДТ-К-5 [20:12:50]line 11.020 * 72.60 [20:12:50]line = 800.05 [20:12:50]line НДС 12% НСП 1% [20:12:50]line > о реализуемом товаре [20:12:50]line ОКРУГЛЕНИЕ: -0.05 [20:12:50]line ИТОГО: 800.00 [20:12:50]line Внесено: 800.00 [20:12:50]line СДАЧА: 0.00 [20:12:50]line НСП 1% : 7.08 [20:12:50]line НДС 12% : 84.96 [20:12:50]line Наличными: 800.00 [20:12:50]line Безнал.: 0.00 [20:12:50]line Место: АЗС № 92 "Партнер Нефть" [20:12:50]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:12:50]line СНО: Общий режим [20:12:50]line Чек 230 19.02.2025 20:12 [20:12:50]line Смена: 647 ФФД: 1.0 [20:12:50]line ЗНМ: 0300000118 [20:12:50]line РНМ: 0000000000091857 [20:12:50]line Версия ККМ: 001 [20:12:50]line ФМ: 0000000000871826 [20:12:50]line ФД: 187164 [20:12:50]line ФПД: 110929777446955 [20:12:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T201249&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187164&fm=110929777446955&tin=02508201610067®Number=0000000000091857&sum=80000 [20:12:51]OFD Sender: Processing packet 187164 [packets to send 49, broken 48] [20:12:51]ProducePacketName [20:12:51]name=ofd_packets/00187164 [20:12:51]OFD Sender: To server: pG, [20:12:51]CommunicateWithHost lk.salyk.kg:30040 [20:12:51]ConnectInit lk.salyk.kg [20:12:51]written 0, free lines is 4095 [20:12:51]Connected sock=10 [20: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 9C E3 04 01 92 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 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 E6 00 00 00 F4 03 04 00 41 3B B6 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 1C DB 02 00 35 04 06 00 64 E3 D9 FA D0 2B 86 E2 7E 7F C9 C0 C8 81 [20:12: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 17 37 47 00 F8 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1C DB 02 00 F4 03 04 00 94 E1 B5 67 B6 04 01 00 00 94 17 EA FF 65 1C BF DA [20:12:51]CommunicateWithHost err = 0 [20:12:51]CheckOFDResponse [20:12:51]1017 (14) - 77093643461234 [20:12:51]1041 (16) - 0000000000871826 [20:12:51]1040 (4) - 187164 [20:12:51]1012 (4) - 19.02.2025 13:50 [20:12:51]1206 (1) - 0 [20:12:51]OFD Sender: Remove packet 187164 [20:12:51]ProducePacketName [20:12:51]name=ofd_packets/00187164 [20:12:51]NVStorageDeleteData [20:12:51]Write to MH i2c: 01 00 00 AA 07 B1 [20:12:51]Write i2c OK [20:12:51]MH_I2C_Read... [20:12:51]Read from MH i2c: 01 [20:12:51]MH_I2C_Read... [20:12:51]Read from MH i2c: 01 07 00 [20:12:51]MH_I2C_Read... [20:12:51]Read from MH i2c: 01 07 00 AA 07 00 00 00 00 00 EE 0C B2 [20:12:51]RasterBufferAndPrint [20:12:51]line [20:12:51]line [20:12:51]line [20:12:51]line [20:12:51]line [20:12:51]written 0, free lines is 3316 [20:12:51]MH_Cut [20:12:51]Write to MH i2c: D1 01 00 B1 07 01 8A [20:12:51]Write i2c OK [20:12:51]MH_I2C_Read... [20:12:51]Read from MH i2c: D1 [20:12:51]MH_I2C_Read... [20:12:51]Read from MH i2c: D1 01 00 [20:12:51]MH_I2C_Read... [20:12:51]Read from MH i2c: D1 01 00 B1 07 00 89 [20:12:51]Write to MH i2c: 01 00 00 B2 07 B9 [20:12:51]Write i2c OK [20:12:51]MH_I2C_Read... [20:12:51]OFD Sender: No OFD packet to send [20:12:52]*** Cut start [20:12:52]*** Partial cut [20:12:52]*** CUTSNS_PIN = 1 [20:12:52]*** CUTSNS_PIN = 0 [20:12:52]*** Brake cut motor [20:12:52]Read from MH i2c: 01 [20:12:52]MH_I2C_Read... [20:12:52]*** Stop cut motor [20:12:52]*** Cut end [20:12:52]Read from MH i2c: 01 07 00 [20:12:52]MH_I2C_Read... [20:12:52]Read from MH i2c: 01 07 00 B2 07 00 00 00 00 00 FF 0F CE [20:12:52]process_action close_receipt done [20:12:52]requested_data is exist [20:12:52]produce_requested_data [20:12:52]requested_item fm.sn is exist - process it [20:12:52]wFMCommunicate request_size=4 [20:12:52]MH_SAM_APDU [20:12:52]CAPDU: 80 11 00 00 [20:12:52]Write to MH i2c: E2 08 00 B3 07 80 11 00 00 00 00 00 00 34 [20:12:52]Write i2c OK [20:12:52]MH_I2C_Read... [20:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:52]Read from MH i2c: E2 [20:12:52]MH_I2C_Read... [20:12:52]Read from MH i2c: E2 17 00 [20:12:52]MH_I2C_Read... [20:12:52]Read from MH i2c: E2 17 00 B3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 87 [20:12:52]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:52]wFMCommunicate OK [20:12:52]requested_item fd.num is exist - process it [20:12:52]SAM_PROTO_GetFieldsCounters [20:12:52]wFMCommunicate request_size=4 [20:12:52]MH_SAM_APDU [20:12:52]CAPDU: 80 13 00 00 [20:12:52]Write to MH i2c: E2 08 00 B4 07 80 13 00 00 00 00 00 00 37 [20:12:52]Write i2c OK [20:12:52]MH_I2C_Read... [20:12:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:53]Read from MH i2c: E2 [20:12:53]MH_I2C_Read... [20:12:53]Read from MH i2c: E2 62 00 [20:12:53]MH_I2C_Read... [20:12:53]Read from MH i2c: E2 62 00 B4 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 1C DB 02 00 0E 04 04 00 87 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 91 [20: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 1C DB 02 00 0E 04 04 00 87 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 [20:12:53]wFMCommunicate OK [20:12:53]SAM_PROTO_GetFieldsCounters done [20:12:53]requested_item shift.num is exist - process it [20:12:53]requested_item shift.opened is exist - process it [20:12:53]req_shift_opened [20:12:53]FM_GetShiftState [20:12:53]SAM_PROTO_GetShiftState [20:12:53]wFMCommunicate request_size=4 [20:12:53]MH_SAM_APDU [20:12:53]CAPDU: 80 13 01 00 [20:12:53]Write to MH i2c: E2 08 00 B5 07 80 13 01 00 00 00 00 00 39 [20:12:53]Write i2c OK [20:12:53]MH_I2C_Read... [20:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:53]Read from MH i2c: E2 [20:12:53]MH_I2C_Read... [20:12:53]Read from MH i2c: E2 0E 00 [20:12:53]MH_I2C_Read... [20:12:53]Read from MH i2c: E2 0E 00 B5 07 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 B8 [20:12:53]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:12:53]wFMCommunicate OK [20:12:53]SAM_PROTO_GetShiftState done [20:12:53]FM_GetShiftState done [20:12:53]req_shift_opened done [20:12:53]requested_item shift.open_date is exist - process it [20:12:53]req_shift_open_date [20:12:53]req_shift_open_date done [20:12:53]produce_requested_data done [20:12:53]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187164,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [20:12:53]process_action_free close_receipt [20:12:53]json_value_free [20:12:53]json_value_free done [20:12:53]process_json_proto returns [20:12:53]Send response to host [20:12:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187164,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [20:12:53]free response buf [20:12:53]execute_script done [20:12:53]execute_script returns [20:12:53]free content buf [20:12:53]Sock 7.Close socket [20:12:53]Sock 7.Thread stoped [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:07]accept exits with 9 [20:13:07]New connection [20:13:07]New thread 3066654052 created [20:13:07]Thread 3066510692 joined [20:13:07]Waiting for new connection... [20:13:07] Sock 9.Parse request [20:13:07]Sock 9.Check first char [20:13:07]Sock 9.First char is OK [20:13:07]request: POST /json_proto HTTP/1.0 [20:13:07]Method: POST [20:13:07]URL: /json_proto [20:13:07]Method is POST - this is cgi request [20:13:07]url: /json_proto [20:13:07]query_string will be loaded in cgi processing [20:13:07]execute_cgi json_proto POST (null) [20:13:07]execute_cgi path=json_proto method=POST [20:13:07]POST find Content-Length [20:13:07]Host: 172.17.46.131:8080 [20:13:07]Content-Length: 803 [20:13:07]Content-Type: application/json [20:13:07] [20:13:07]POST finish read [20:13:07]Found Content-Length = 803 [20:13:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412320", "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" ] } } [20:13:07]execute_script... [20:13:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412320", "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" ] } } [20:13:07]POST & json_proto [20:13:07]process_json_proto [20:13:07]json parsed OK: [20:13:07]protocol is kg_v1.0 [20:13:07]action value=close_receipt [20:13:07]process_action close_receipt [20:13:07]cmd_close_receipt [20:13:07]MH_GetDate [20:13:07]Write to MH i2c: F0 00 00 B6 07 AC [20:13:07]Write i2c OK [20:13:07]MH_I2C_Read... [20:13:07]Read from MH i2c: F0 [20:13:07]MH_I2C_Read... [20:13:07]Read from MH i2c: F0 09 00 [20:13:07]MH_I2C_Read... [20:13:07]Read from MH i2c: F0 09 00 B6 07 00 54 3B B6 67 7E 41 4F 65 D4 [20:13:07]GetLastDocTimeStamp 1739995969 [20:13:07]current date 1739995988 [20:13:07]FM_GetShiftState [20:13:07]SAM_PROTO_GetShiftState [20:13:07]wFMCommunicate request_size=4 [20:13:07]MH_SAM_APDU [20:13:07]CAPDU: 80 13 01 00 [20:13:07]Write to MH i2c: E2 08 00 B7 07 80 13 01 00 00 00 00 00 3B [20:13:07]Write i2c OK [20:13:07]MH_I2C_Read... [20:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:07]Read from MH i2c: E2 [20:13:07]MH_I2C_Read... [20:13:07]Read from MH i2c: E2 0E 00 [20:13:07]MH_I2C_Read... [20:13:07]Read from MH i2c: E2 0E 00 B7 07 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 BA [20:13:07]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:13:07]wFMCommunicate OK [20:13:07]SAM_PROTO_GetShiftState done [20:13:07]FM_GetShiftState done [20:13:07]opened in 1739929631 [20:13:07]opened+sec_in_day 1740016031 [20:13:07]quantity*price = 100023 [20:13:07]sum+1 = 100025 [20:13:07]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 19.02.2025 20:13 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187165 ФПД: 76404050704604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T201308&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187165&fm=76404050704604&tin=02508201610067®Number=0000000000091857&sum=100024 [20:13:08]StoreToDocumentArchive [20:13:08]shift 647 fd 187165 [20:13:08]save to /storage/0647/doc_00187165 [20:13:08]save last doc name /storage/0647/doc_00187165 to /storage/kkm_last_doc_name [20:13:08]save OK [20:13:08]Clear old archive folders... [20:13:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:13:08]tlvbuf is 01F46290 [20:13:08]SAM_PROTO_ClearQueue [20:13:08]wFMCommunicate request_size=4 [20:13:08]MH_SAM_APDU [20:13:08]CAPDU: 80 09 00 00 [20:13:08]Write to MH i2c: E2 08 00 C4 07 80 09 00 00 00 00 00 00 3D [20:13:08]Write i2c OK [20:13:08]MH_I2C_Read... [20:13:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:13:08]Read from MH i2c: E2 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: E2 03 00 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: E2 03 00 C4 07 00 90 00 3F [20:13:08]RAPDU: 90 00 [20:13:08]wFMCommunicate OK [20:13:08]SAM_PROTO_ClearQueue done [20:13:08]KKMCreateOFDPacket [20:13:08]OFDProtocolAddRootSTLVToBuf [20:13:08]FM_MakeSignedData [20:13:08]FM_MakeSignedData [20:13:08]SAM_PROTO_SignData [20:13:08]wFMCommunicate request_size=4 [20:13:08]MH_SAM_APDU [20:13:08]CAPDU: 80 0D 01 02 [20:13:08]Write to MH i2c: E2 08 00 C5 07 80 0D 01 02 00 00 00 00 45 [20:13:08]Write i2c OK [20:13:08]MH_I2C_Read... [20:13:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:13:08]Read from MH i2c: E2 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: E2 03 00 [20:13:08]MH_I2C_Read... [20:13:08]Read from MH i2c: E2 03 00 C5 07 00 90 00 40 [20:13:08]RAPDU: 90 00 [20:13:08]wFMCommunicate OK [20:13:08]wFMCommunicate request_size=255 [20:13:08]MH_SAM_APDU [20:13:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 54 3B B6 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 1D DB 02 00 35 04 06 00 45 [20:13:08]Write to MH i2c: E2 02 01 C6 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 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 54 3B B6 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 1D DB 02 00 35 04 06 00 45 00 00 CD [20:13:08]Write i2c OK [20:13:08]MH_I2C_Read... [20:13:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:09]Read from MH i2c: E2 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: E2 03 00 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: E2 03 00 C6 07 00 90 00 41 [20:13:09]RAPDU: 90 00 [20:13:09]wFMCommunicate OK [20:13:09]wFMCommunicate request_size=10 [20:13:09]MH_SAM_APDU [20:13:09]CAPDU: 80 0D 02 02 05 7D 34 4D 38 DC [20:13:09]Write to MH i2c: E2 0D 00 C7 07 80 0D 02 02 05 00 7D 34 4D 38 DC 00 00 64 [20:13:09]Write i2c OK [20:13:09]MH_I2C_Read... [20:13:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:13:09]Read from MH i2c: E2 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: E2 03 00 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: E2 03 00 C7 07 00 90 00 42 [20:13:09]RAPDU: 90 00 [20:13:09]wFMCommunicate OK [20:13:09]wFMCommunicate request_size=4 [20:13:09]MH_SAM_APDU [20:13:09]CAPDU: 80 0D 03 02 [20:13:09]Write to MH i2c: E2 08 00 C8 07 80 0D 03 02 00 00 00 00 4A [20:13:09]Write i2c OK [20:13:09]MH_I2C_Read... [20:13:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:13:09]Read from MH i2c: E2 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: E2 0B 00 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: E2 0B 00 C8 07 00 3A 6E AF 55 60 6F D1 1A 90 00 B1 [20:13:09]RAPDU: 3A 6E AF 55 60 6F D1 1A 90 00 [20:13:09]wFMCommunicate OK [20:13:09]SAM_PROTO_SignData done [20:13:09]FM_MakeSignedData done [20:13:09]CreateOFDProtocolMessage [20:13:09]wFMCommunicate request_size=4 [20:13:09]MH_SAM_APDU [20:13:09]CAPDU: 80 11 00 00 [20:13:09]Write to MH i2c: E2 08 00 C9 07 80 11 00 00 00 00 00 00 4A [20:13:09]Write i2c OK [20:13:09]MH_I2C_Read... [20:13:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:09]Read from MH i2c: E2 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: E2 17 00 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: E2 17 00 C9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9D [20:13: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:13:09]wFMCommunicate OK [20:13:09]CreateOFDProtocolMessage done [20:13:09]OFDSenderStorePacket 187165 [20:13:09]StoreOFDPacket docnum=187165 [20:13: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 75 4E 07 01 C7 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 54 3B B6 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 1D DB 02 00 35 04 06 00 45 7D 34 4D 38 DC 3A 6E AF 55 60 6F D1 1A [20:13:09]CheckFolder [20:13:09]dirname=/storage/ofd_packets [20:13:09]CheckFolder done [20:13:09]ProducePacketName [20:13:09]name=ofd_packets/00187165 [20:13:09]NVStorageSaveData ofd_packets/00187165 [20:13:09]File name is /storage/ofd_packets/00187165 [20:13:09]Write 301 bytes [20:13:09]NVStorageSaveData done [20:13:09]OFDSenderStorePacket done [20:13:09]KKMCreateOFDPacket done [20:13:09]NVStorageSaveData kkm_last_timestamp [20:13:09]File name is /storage/kkm_last_timestamp [20:13:09]Write 4 bytes [20:13:09]NVStorageSaveData done [20:13:09]ExternCall_PrintAddStr [20:13:09]wPrintStart [20:13:09]Write to MH i2c: 01 00 00 CA 07 D1 [20:13:09]Write i2c OK [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: 01 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: 01 07 00 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: 01 07 00 CA 07 00 00 00 00 00 FF 0F E6 [20:13:09]RasterBufferAndPrint [20:13:09]line Счет N : (1)412320 [20:13:09]line ИНН: 02508201610067 [20:13:09]line Контрольно-Кассовый Чек [20:13:09]line ПРОДАЖА [20:13:09]line ТРК (МРК, ГНК) : 22 [20:13:09]line Товар: 2710124130 [20:13:09]line Аи-92-К-2 [20:13:09]line 15.580 * 64.20 [20:13:09]line = 1000.24 [20:13:09]line НДС 12% НСП 1% [20:13:09]line > о реализуемом товаре [20:13:09]line ИТОГО: 1000.24 [20:13:09]line НСП 1% : 8.85 [20:13:09]line НДС 12% : 106.22 [20:13:09]line Наличными: 0.00 [20:13:09]line Безнал.: 1000.24 [20:13:09]line Место: АЗС № 92 "Партнер Нефть" [20:13:09]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:13:09]line СНО: Общий режим [20:13:09]line Чек 231 19.02.2025 20:13 [20:13:09]line Смена: 647 ФФД: 1.0 [20:13:09]line ЗНМ: 0300000118 [20:13:09]line РНМ: 0000000000091857 [20:13:09]line Версия ККМ: 001 [20:13:09]line Платежная система: O! деньги [20:13:09]line ФМ: 0000000000871826 [20:13:09]line ФД: 187165 [20:13:09]line ФПД: 76404050704604 [20:13:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T201308&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187165&fm=76404050704604&tin=02508201610067®Number=0000000000091857&sum=100024 [20:13:09]written 0, free lines is 4095 [20:13:09]OFD Sender: Processing packet 187165 [packets to send 49, broken 48] [20:13:09]ProducePacketName [20:13:09]name=ofd_packets/00187165 [20:13:09]OFD Sender: To server: pG, [20:13:09]CommunicateWithHost lk.salyk.kg:30040 [20:13:09]ConnectInit lk.salyk.kg [20:13:09]Connected sock=10 [20:13:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 75 4E 07 01 C7 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 54 3B B6 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 1D DB 02 00 35 04 06 00 45 7D 34 4D 38 DC 3A 6E AF 55 60 6F D1 1A [20:13: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 B6 F9 47 00 72 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 1D DB 02 00 F4 03 04 00 A7 E1 B5 67 B6 04 01 00 00 6D 6B 44 26 E0 11 08 23 [20:13:09]CommunicateWithHost err = 0 [20:13:09]CheckOFDResponse [20:13:09]1017 (14) - 77093643461234 [20:13:09]1041 (16) - 0000000000871826 [20:13:09]1040 (4) - 187165 [20:13:09]1012 (4) - 19.02.2025 13:50 [20:13:09]1206 (1) - 0 [20:13:09]OFD Sender: Remove packet 187165 [20:13:09]ProducePacketName [20:13:09]name=ofd_packets/00187165 [20:13:09]NVStorageDeleteData [20:13:09]Write to MH i2c: 01 00 00 F4 07 FB [20:13:09]Write i2c OK [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: 01 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: 01 07 00 [20:13:09]MH_I2C_Read... [20:13:09]Read from MH i2c: 01 07 00 F4 07 00 00 00 00 00 0C 0D 1B [20:13:10]RasterBufferAndPrint [20:13:10]line [20:13:10]line [20:13:10]line [20:13:10]line [20:13:10]line [20:13:10]written 0, free lines is 3347 [20:13:10]MH_Cut [20:13:10]Write to MH i2c: D1 01 00 FB 07 01 D4 [20:13:10]Write i2c OK [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: D1 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: D1 01 00 [20:13:10]MH_I2C_Read... [20:13:10]Read from MH i2c: D1 01 00 FB 07 00 D3 [20:13:10]Write to MH i2c: 01 00 00 FC 07 03 [20:13:10]Write i2c OK [20:13:10]MH_I2C_Read... [20:13:10]OFD Sender: No OFD packet to send [20:13:10]*** Cut start [20:13:10]*** Partial cut [20:13:10]*** CUTSNS_PIN = 1 [20:13:10]*** CUTSNS_PIN = 0 [20:13:11]*** Brake cut motor [20:13:11]Read from MH i2c: 01 [20:13:11]MH_I2C_Read... [20:13:11]*** Stop cut motor [20:13:11]*** Cut end [20:13:11]Read from MH i2c: 01 07 00 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: 01 07 00 FC 07 00 00 00 00 00 FF 0F 18 [20:13:11]process_action close_receipt done [20:13:11]requested_data is exist [20:13:11]produce_requested_data [20:13:11]requested_item fm.sn is exist - process it [20:13:11]wFMCommunicate request_size=4 [20:13:11]MH_SAM_APDU [20:13:11]CAPDU: 80 11 00 00 [20:13:11]Write to MH i2c: E2 08 00 FD 07 80 11 00 00 00 00 00 00 7E [20:13:11]Write i2c OK [20:13:11]MH_I2C_Read... [20:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:13:11]Read from MH i2c: E2 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: E2 17 00 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: E2 17 00 FD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D1 [20:13:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:13:11]wFMCommunicate OK [20:13:11]requested_item fd.num is exist - process it [20:13:11]SAM_PROTO_GetFieldsCounters [20:13:11]wFMCommunicate request_size=4 [20:13:11]MH_SAM_APDU [20:13:11]CAPDU: 80 13 00 00 [20:13:11]Write to MH i2c: E2 08 00 FE 07 80 13 00 00 00 00 00 00 81 [20:13:11]Write i2c OK [20:13:11]MH_I2C_Read... [20:13:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:13:11]Read from MH i2c: E2 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: E2 62 00 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: E2 62 00 FE 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 1D DB 02 00 0E 04 04 00 87 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 DF [20:13:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DB 02 00 0E 04 04 00 87 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 [20:13:11]wFMCommunicate OK [20:13:11]SAM_PROTO_GetFieldsCounters done [20:13:11]requested_item shift.num is exist - process it [20:13:11]requested_item shift.opened is exist - process it [20:13:11]req_shift_opened [20:13:11]FM_GetShiftState [20:13:11]SAM_PROTO_GetShiftState [20:13:11]wFMCommunicate request_size=4 [20:13:11]MH_SAM_APDU [20:13:11]CAPDU: 80 13 01 00 [20:13:11]Write to MH i2c: E2 08 00 FF 07 80 13 01 00 00 00 00 00 83 [20:13:11]Write i2c OK [20:13:11]MH_I2C_Read... [20:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:13:11]Read from MH i2c: E2 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: E2 0E 00 [20:13:11]MH_I2C_Read... [20:13:11]Read from MH i2c: E2 0E 00 FF 07 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 02 [20:13:11]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:13:11]wFMCommunicate OK [20:13:11]SAM_PROTO_GetShiftState done [20:13:11]FM_GetShiftState done [20:13:11]req_shift_opened done [20:13:11]requested_item shift.open_date is exist - process it [20:13:11]req_shift_open_date [20:13:11]req_shift_open_date done [20:13:11]produce_requested_data done [20:13:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187165,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [20:13:11]process_action_free close_receipt [20:13:11]json_value_free [20:13:11]json_value_free done [20:13:11]process_json_proto returns [20:13:11]Send response to host [20:13:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187165,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [20:13:11]free response buf [20:13:11]execute_script done [20:13:11]execute_script returns [20:13:11]free content buf [20:13:11]Sock 9.Close socket [20:13:11]Sock 9.Thread stoped [20:13:15]OFD Sender: No OFD packet to send [20:13:20]OFD Sender: No OFD packet to send [20:13:25]OFD Sender: No OFD packet to send [20:13:30]OFD Sender: No OFD packet to send [20:13:35]OFD Sender: No OFD packet to send [20:13:40]OFD Sender: No OFD packet to send [20:13:45]OFD Sender: No OFD packet to send [20:13:50]OFD Sender: No OFD packet to send [20:13:55]OFD Sender: No OFD packet to send [20:14:00]OFD Sender: No OFD packet to send [20:14:05]OFD Sender: No OFD packet to send [20:14:10]OFD Sender: No OFD packet to send [20:14:15]OFD Sender: No OFD packet to send [20:14:20]OFD Sender: No OFD packet to send [20:14:25]accept exits with 7 [20:14:25]New connection [20:14:25]New thread 3066510692 created [20:14:25]Thread 3066654052 joined [20:14:25]Waiting for new connection... [20:14:25] Sock 7.Parse request [20:14:25]Sock 7.Check first char [20:14:25]Sock 7.First char is OK [20:14:25]request: POST /json_proto HTTP/1.0 [20:14:25]Method: POST [20:14:25]URL: /json_proto [20:14:25]Method is POST - this is cgi request [20:14:25]url: /json_proto [20:14:25]query_string will be loaded in cgi processing [20:14:25]execute_cgi json_proto POST (null) [20:14:25]execute_cgi path=json_proto method=POST [20:14:25]POST find Content-Length [20:14:25]Host: 172.17.46.131:8080 [20:14:25]Content-Length: 679 [20:14:25]Content-Type: application/json [20:14:25] [20:14:25]POST finish read [20:14:25]Found Content-Length = 679 [20:14:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412321", "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" ] } } [20:14:25]execute_script... [20:14: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)412321", "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" ] } } [20:14:25]POST & json_proto [20:14:25]process_json_proto [20:14:25]json parsed OK: [20:14:25]protocol is kg_v1.0 [20:14:25]action value=close_receipt [20:14:25]process_action close_receipt [20:14:25]cmd_close_receipt [20:14:25]MH_GetDate [20:14:25]Write to MH i2c: F0 00 00 00 08 F7 [20:14:25]Write i2c OK [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: F0 [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: F0 09 00 [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: F0 09 00 00 08 00 A2 3B B6 67 7E 41 4F 65 6D [20:14:25]GetLastDocTimeStamp 1739995988 [20:14:25]current date 1739996066 [20:14:25]FM_GetShiftState [20:14:25]SAM_PROTO_GetShiftState [20:14:25]wFMCommunicate request_size=4 [20:14:25]MH_SAM_APDU [20:14:25]CAPDU: 80 13 01 00 [20:14:25]Write to MH i2c: E2 08 00 01 08 80 13 01 00 00 00 00 00 86 [20:14:25]Write i2c OK [20:14:25]MH_I2C_Read... [20:14:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:25]Read from MH i2c: E2 [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: E2 0E 00 [20:14:25]MH_I2C_Read... [20:14:25]Read from MH i2c: E2 0E 00 01 08 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 05 [20:14:25]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:14:25]wFMCommunicate OK [20:14:25]SAM_PROTO_GetShiftState done [20:14:25]FM_GetShiftState done [20:14:25]opened in 1739929631 [20:14:25]opened+sec_in_day 1740016031 [20:14:25]quantity*price = 100042 [20:14:25]sum+1 = 100044 [20:14:25]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 СНО: Общий режим Чек 232 19.02.2025 20:14 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187166 ФПД: 102040335392892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T201426&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187166&fm=102040335392892&tin=02508201610067®Number=0000000000091857&sum=100000 [20:14:26]StoreToDocumentArchive [20:14:26]shift 647 fd 187166 [20:14:26]save to /storage/0647/doc_00187166 [20:14:26]save last doc name /storage/0647/doc_00187166 to /storage/kkm_last_doc_name [20:14:26]save OK [20:14:26]Clear old archive folders... [20:14:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:14:26]tlvbuf is 01F70A10 [20:14:26]SAM_PROTO_ClearQueue [20:14:26]wFMCommunicate request_size=4 [20:14:26]MH_SAM_APDU [20:14:26]CAPDU: 80 09 00 00 [20:14:26]Write to MH i2c: E2 08 00 0E 08 80 09 00 00 00 00 00 00 88 [20:14:26]Write i2c OK [20:14:26]MH_I2C_Read... [20:14:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:26]Read from MH i2c: E2 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 03 00 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 03 00 0E 08 00 90 00 8A [20:14:26]RAPDU: 90 00 [20:14:26]wFMCommunicate OK [20:14:26]SAM_PROTO_ClearQueue done [20:14:26]KKMCreateOFDPacket [20:14:26]OFDProtocolAddRootSTLVToBuf [20:14:26]FM_MakeSignedData [20:14:26]FM_MakeSignedData [20:14:26]SAM_PROTO_SignData [20:14:26]wFMCommunicate request_size=4 [20:14:26]MH_SAM_APDU [20:14:26]CAPDU: 80 0D 01 02 [20:14:26]Write to MH i2c: E2 08 00 0F 08 80 0D 01 02 00 00 00 00 90 [20:14:26]Write i2c OK [20:14:26]MH_I2C_Read... [20:14:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:26]Read from MH i2c: E2 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 03 00 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 03 00 0F 08 00 90 00 8B [20:14:26]RAPDU: 90 00 [20:14:26]wFMCommunicate OK [20:14:26]wFMCommunicate request_size=255 [20:14:26]MH_SAM_APDU [20:14: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 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 E8 00 00 00 F4 03 04 00 A2 3B B6 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 1E DB 02 00 35 04 06 00 5C CE 1D F1 [20:14:26]Write to MH i2c: E2 02 01 10 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 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 E8 00 00 00 F4 03 04 00 A2 3B B6 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 1E DB 02 00 35 04 06 00 5C CE 1D F1 00 00 CF [20:14:26]Write i2c OK [20:14:26]MH_I2C_Read... [20:14:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:26]Read from MH i2c: E2 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 03 00 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 03 00 10 08 00 90 00 8C [20:14:26]RAPDU: 90 00 [20:14:26]wFMCommunicate OK [20:14:26]wFMCommunicate request_size=7 [20:14:26]MH_SAM_APDU [20:14:26]CAPDU: 80 0D 02 02 02 A0 7C [20:14:26]Write to MH i2c: E2 0A 00 11 08 80 0D 02 02 02 00 A0 7C 00 00 B3 [20:14:26]Write i2c OK [20:14:26]MH_I2C_Read... [20:14:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:26]Read from MH i2c: E2 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 03 00 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 03 00 11 08 00 90 00 8D [20:14:26]RAPDU: 90 00 [20:14:26]wFMCommunicate OK [20:14:26]wFMCommunicate request_size=4 [20:14:26]MH_SAM_APDU [20:14:26]CAPDU: 80 0D 03 02 [20:14:26]Write to MH i2c: E2 08 00 12 08 80 0D 03 02 00 00 00 00 95 [20:14:26]Write i2c OK [20:14:26]MH_I2C_Read... [20:14:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:26]Read from MH i2c: E2 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 0B 00 [20:14:26]MH_I2C_Read... [20:14:26]Read from MH i2c: E2 0B 00 12 08 00 08 69 D4 A9 0E 30 62 EA 90 00 0E [20:14:26]RAPDU: 08 69 D4 A9 0E 30 62 EA 90 00 [20:14:26]wFMCommunicate OK [20:14:26]SAM_PROTO_SignData done [20:14:26]FM_MakeSignedData done [20:14:26]CreateOFDProtocolMessage [20:14:26]wFMCommunicate request_size=4 [20:14:26]MH_SAM_APDU [20:14:26]CAPDU: 80 11 00 00 [20:14:26]Write to MH i2c: E2 08 00 13 08 80 11 00 00 00 00 00 00 95 [20:14:26]Write i2c OK [20:14:26]MH_I2C_Read... [20:14:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:27]Read from MH i2c: E2 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: E2 17 00 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: E2 17 00 13 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E8 [20: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 [20:14:27]wFMCommunicate OK [20:14:27]CreateOFDProtocolMessage done [20:14:27]OFDSenderStorePacket 187166 [20:14:27]StoreOFDPacket docnum=187166 [20:14: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 DC 88 04 01 43 FA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 E8 00 00 00 F4 03 04 00 A2 3B B6 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 1E DB 02 00 35 04 06 00 5C CE 1D F1 A0 7C 08 69 D4 A9 0E 30 62 EA [20:14:27]CheckFolder [20:14:27]dirname=/storage/ofd_packets [20:14:27]CheckFolder done [20:14:27]ProducePacketName [20:14:27]name=ofd_packets/00187166 [20:14:27]NVStorageSaveData ofd_packets/00187166 [20:14:27]File name is /storage/ofd_packets/00187166 [20:14:27]Write 298 bytes [20:14:27]NVStorageSaveData done [20:14:27]OFDSenderStorePacket done [20:14:27]KKMCreateOFDPacket done [20:14:27]NVStorageSaveData kkm_last_timestamp [20:14:27]File name is /storage/kkm_last_timestamp [20:14:27]Write 4 bytes [20:14:27]NVStorageSaveData done [20:14:27]ExternCall_PrintAddStr [20:14:27]wPrintStart [20:14:27]Write to MH i2c: 01 00 00 14 08 1C [20:14:27]Write i2c OK [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: 01 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: 01 07 00 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: 01 07 00 14 08 00 00 00 00 00 FF 0F 31 [20:14:27]RasterBufferAndPrint [20:14:27]line Счет N : (1)412321 [20:14:27]line ИНН: 02508201610067 [20:14:27]line Контрольно-Кассовый Чек [20:14:27]line ПРОДАЖА [20:14:27]line ТРК (МРК, ГНК) : 41 [20:14:27]line Товар: 2710194210 [20:14:27]line ДТ-К-2 [20:14:27]line 13.780 * 72.60 [20:14:27]line = 1000.43 [20:14:27]line НДС 12% НСП 1% [20:14:27]line > о реализуемом товаре [20:14:27]line ОКРУГЛЕНИЕ: -0.43 [20:14:27]line ИТОГО: 1000.00 [20:14:27]line Внесено: 1000.00 [20:14:27]line СДАЧА: 0.00 [20:14:27]line НСП 1% : 8.85 [20:14:27]line НДС 12% : 106.24 [20:14:27]line Наличными: 1000.00 [20:14:27]line Безнал.: 0.00 [20:14:27]line Место: АЗС № 92 "Партнер Нефть" [20:14:27]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:14:27]line СНО: Общий режим [20:14:27]line Чек 232 19.02.2025 20:14 [20:14:27]line Смена: 647 ФФД: 1.0 [20:14:27]line ЗНМ: 0300000118 [20:14:27]line РНМ: 0000000000091857 [20:14:27]line Версия ККМ: 001 [20:14:27]line ФМ: 0000000000871826 [20:14:27]line ФД: 187166 [20:14:27]line ФПД: 102040335392892 [20:14:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T201426&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187166&fm=102040335392892&tin=02508201610067®Number=0000000000091857&sum=100000 [20:14:27]OFD Sender: Processing packet 187166 [packets to send 49, broken 48] [20:14:27]ProducePacketName [20:14:27]name=ofd_packets/00187166 [20:14:27]OFD Sender: To server: pG, [20:14:27]CommunicateWithHost lk.salyk.kg:30040 [20:14:27]ConnectInit lk.salyk.kg [20:14:27]written 0, free lines is 4095 [20:14:27]Connected sock=10 [20:14: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 DC 88 04 01 43 FA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 E8 00 00 00 F4 03 04 00 A2 3B B6 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 1E DB 02 00 35 04 06 00 5C CE 1D F1 A0 7C 08 69 D4 A9 0E 30 62 EA [20:14: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 66 19 47 00 06 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 1E DB 02 00 F4 03 04 00 F5 E1 B5 67 B6 04 01 00 00 F1 4B 1F 11 F5 01 28 9E [20:14:27]CommunicateWithHost err = 0 [20:14:27]CheckOFDResponse [20:14:27]1017 (14) - 77093643461234 [20:14:27]1041 (16) - 0000000000871826 [20:14:27]1040 (4) - 187166 [20:14:27]1012 (4) - 19.02.2025 13:51 [20:14:27]1206 (1) - 0 [20:14:27]OFD Sender: Remove packet 187166 [20:14:27]ProducePacketName [20:14:27]name=ofd_packets/00187166 [20:14:27]NVStorageDeleteData [20:14:27]Write to MH i2c: 01 00 00 3F 08 47 [20:14:27]Write i2c OK [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: 01 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: 01 07 00 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: 01 07 00 3F 08 00 00 00 00 00 E6 0C 40 [20:14:27]RasterBufferAndPrint [20:14:27]line [20:14:27]line [20:14:27]line [20:14:27]line [20:14:27]line [20:14:27]written 0, free lines is 3309 [20:14:27]MH_Cut [20:14:27]Write to MH i2c: D1 01 00 46 08 01 20 [20:14:27]Write i2c OK [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: D1 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: D1 01 00 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: D1 01 00 46 08 00 1F [20:14:27]Write to MH i2c: 01 00 00 47 08 4F [20:14:27]Write i2c OK [20:14:27]MH_I2C_Read... [20:14:28]OFD Sender: No OFD packet to send [20:14:28]*** Cut start [20:14:28]*** Partial cut [20:14:28]*** CUTSNS_PIN = 1 [20:14:28]*** CUTSNS_PIN = 0 [20:14:28]*** Brake cut motor [20:14:29]Read from MH i2c: 01 [20:14:29]MH_I2C_Read... [20:14:29]*** Stop cut motor [20:14:29]*** Cut end [20:14:29]Read from MH i2c: 01 07 00 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: 01 07 00 47 08 00 00 00 00 00 FF 0F 64 [20:14:29]process_action close_receipt done [20:14:29]requested_data is exist [20:14:29]produce_requested_data [20:14:29]requested_item fm.sn is exist - process it [20:14:29]wFMCommunicate request_size=4 [20:14:29]MH_SAM_APDU [20:14:29]CAPDU: 80 11 00 00 [20:14:29]Write to MH i2c: E2 08 00 48 08 80 11 00 00 00 00 00 00 CA [20:14:29]Write i2c OK [20:14:29]MH_I2C_Read... [20:14:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:29]Read from MH i2c: E2 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: E2 17 00 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: E2 17 00 48 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1D [20:14:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:14:29]wFMCommunicate OK [20:14:29]requested_item fd.num is exist - process it [20:14:29]SAM_PROTO_GetFieldsCounters [20:14:29]wFMCommunicate request_size=4 [20:14:29]MH_SAM_APDU [20:14:29]CAPDU: 80 13 00 00 [20:14:29]Write to MH i2c: E2 08 00 49 08 80 13 00 00 00 00 00 00 CD [20:14:29]Write i2c OK [20:14:29]MH_I2C_Read... [20:14:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:29]Read from MH i2c: E2 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: E2 62 00 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: E2 62 00 49 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DB 02 00 0E 04 04 00 87 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 2F [20:14: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 1E DB 02 00 0E 04 04 00 87 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 [20:14:29]wFMCommunicate OK [20:14:29]SAM_PROTO_GetFieldsCounters done [20:14:29]requested_item shift.num is exist - process it [20:14:29]requested_item shift.opened is exist - process it [20:14:29]req_shift_opened [20:14:29]FM_GetShiftState [20:14:29]SAM_PROTO_GetShiftState [20:14:29]wFMCommunicate request_size=4 [20:14:29]MH_SAM_APDU [20:14:29]CAPDU: 80 13 01 00 [20:14:29]Write to MH i2c: E2 08 00 4A 08 80 13 01 00 00 00 00 00 CF [20:14:29]Write i2c OK [20:14:29]MH_I2C_Read... [20:14:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:29]Read from MH i2c: E2 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: E2 0E 00 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: E2 0E 00 4A 08 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 4E [20:14:29]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:14:29]wFMCommunicate OK [20:14:29]SAM_PROTO_GetShiftState done [20:14:29]FM_GetShiftState done [20:14:29]req_shift_opened done [20:14:29]requested_item shift.open_date is exist - process it [20:14:29]req_shift_open_date [20:14:29]req_shift_open_date done [20:14:29]produce_requested_data done [20:14:29]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187166,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [20:14:29]process_action_free close_receipt [20:14:29]json_value_free [20:14:29]json_value_free done [20:14:29]process_json_proto returns [20:14:29]Send response to host [20:14:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187166,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [20:14:29]free response buf [20:14:29]execute_script done [20:14:29]execute_script returns [20:14:29]free content buf [20:14:29]Sock 7.Close socket [20:14:29]Sock 7.Thread stoped [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:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [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:32]accept exits with 9 [20:18:32]New connection [20:18:32]New thread 3066654052 created [20:18:32]Thread 3066510692 joined [20:18:32]Waiting for new connection... [20:18:32] Sock 9.Parse request [20:18:32]Sock 9.Check first char [20:18:32]Sock 9.First char is OK [20:18:32]request: POST /json_proto HTTP/1.0 [20:18:32]Method: POST [20:18:32]URL: /json_proto [20:18:32]Method is POST - this is cgi request [20:18:32]url: /json_proto [20:18:32]query_string will be loaded in cgi processing [20:18:32]execute_cgi json_proto POST (null) [20:18:32]execute_cgi path=json_proto method=POST [20:18:32]POST find Content-Length [20:18:32]Host: 172.17.46.131:8080 [20:18:32]Content-Length: 678 [20:18:32]Content-Type: application/json [20:18:32] [20:18:32]POST finish read [20:18:32]Found Content-Length = 678 [20:18:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412322", "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" : 13.650, "sum" : 876.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 876.00, "total" : 876.00, "payments": [ { "type": 0, "sum" : 876.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:32]execute_script... [20:18: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)412322", "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" : 13.650, "sum" : 876.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 876.00, "total" : 876.00, "payments": [ { "type": 0, "sum" : 876.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:32]POST & json_proto [20:18:32]process_json_proto [20:18:32]json parsed OK: [20:18:32]protocol is kg_v1.0 [20:18:32]action value=close_receipt [20:18:32]process_action close_receipt [20:18:32]cmd_close_receipt [20:18:32]MH_GetDate [20:18:32]Write to MH i2c: F0 00 00 4B 08 42 [20:18:32]Write i2c OK [20:18:32]MH_I2C_Read... [20:18:32]Read from MH i2c: F0 [20:18:32]MH_I2C_Read... [20:18:32]Read from MH i2c: F0 09 00 [20:18:32]MH_I2C_Read... [20:18:32]Read from MH i2c: F0 09 00 4B 08 00 99 3C B6 67 7E 41 4F 65 B0 [20:18:32]GetLastDocTimeStamp 1739996066 [20:18:32]current date 1739996313 [20:18:32]FM_GetShiftState [20:18:32]SAM_PROTO_GetShiftState [20:18:32]wFMCommunicate request_size=4 [20:18:32]MH_SAM_APDU [20:18:32]CAPDU: 80 13 01 00 [20:18:32]Write to MH i2c: E2 08 00 4C 08 80 13 01 00 00 00 00 00 D1 [20:18:32]Write i2c OK [20:18:32]MH_I2C_Read... [20:18:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:32]Read from MH i2c: E2 [20:18:32]MH_I2C_Read... [20:18:32]Read from MH i2c: E2 0E 00 [20:18:32]MH_I2C_Read... [20:18:32]Read from MH i2c: E2 0E 00 4C 08 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 50 [20:18:32]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:18:32]wFMCommunicate OK [20:18:32]SAM_PROTO_GetShiftState done [20:18:32]FM_GetShiftState done [20:18:32]opened in 1739929631 [20:18:32]opened+sec_in_day 1740016031 [20:18:32]quantity*price = 87633 [20:18:32]sum+1 = 87634 [20:18:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 876.00 Внесено: 876.00 СДАЧА: 0.00 НСП 1% : 7.75 НДС 12% : 93.06 Наличными: 876.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 233 19.02.2025 20:18 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187167 ФПД: 266630629209552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T201833&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187167&fm=266630629209552&tin=02508201610067®Number=0000000000091857&sum=87600 [20:18:33]StoreToDocumentArchive [20:18:33]shift 647 fd 187167 [20:18:33]save to /storage/0647/doc_00187167 [20:18:33]save last doc name /storage/0647/doc_00187167 to /storage/kkm_last_doc_name [20:18:33]save OK [20:18:33]Clear old archive folders... [20:18:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:18:33]tlvbuf is 01F6F1F0 [20:18:33]SAM_PROTO_ClearQueue [20:18:33]wFMCommunicate request_size=4 [20:18:33]MH_SAM_APDU [20:18:33]CAPDU: 80 09 00 00 [20:18:33]Write to MH i2c: E2 08 00 59 08 80 09 00 00 00 00 00 00 D3 [20:18:33]Write i2c OK [20:18:33]MH_I2C_Read... [20:18:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:33]Read from MH i2c: E2 [20:18:33]MH_I2C_Read... [20:18:33]Read from MH i2c: E2 03 00 [20:18:33]MH_I2C_Read... [20:18:33]Read from MH i2c: E2 03 00 59 08 00 90 00 D5 [20:18:33]RAPDU: 90 00 [20:18:33]wFMCommunicate OK [20:18:33]SAM_PROTO_ClearQueue done [20:18:33]KKMCreateOFDPacket [20:18:33]OFDProtocolAddRootSTLVToBuf [20:18:33]FM_MakeSignedData [20:18:33]FM_MakeSignedData [20:18:33]SAM_PROTO_SignData [20:18:33]wFMCommunicate request_size=4 [20:18:33]MH_SAM_APDU [20:18:33]CAPDU: 80 0D 01 02 [20:18:33]Write to MH i2c: E2 08 00 5A 08 80 0D 01 02 00 00 00 00 DB [20:18:33]Write i2c OK [20:18:33]MH_I2C_Read... [20:18:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:33]Read from MH i2c: E2 [20:18:33]MH_I2C_Read... [20:18:33]Read from MH i2c: E2 03 00 [20:18:33]MH_I2C_Read... [20:18:33]Read from MH i2c: E2 03 00 5A 08 00 90 00 D6 [20:18:33]RAPDU: 90 00 [20:18:33]wFMCommunicate OK [20:18:33]wFMCommunicate request_size=255 [20:18:33]MH_SAM_APDU [20:18:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 52 35 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 51 56 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 56 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 24 00 00 00 00 07 04 06 00 30 56 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 99 3C B6 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 1F DB 02 00 35 04 06 00 F2 [20:18:33]Write to MH i2c: E2 02 01 5B 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 52 35 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 51 56 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 56 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 24 00 00 00 00 07 04 06 00 30 56 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 99 3C B6 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 1F DB 02 00 35 04 06 00 F2 00 00 2B [20:18:33]Write i2c OK [20:18:33]MH_I2C_Read... [20:18:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:34]Read from MH i2c: E2 [20:18:34]MH_I2C_Read... [20:18:34]Read from MH i2c: E2 03 00 [20:18:34]MH_I2C_Read... [20:18:34]Read from MH i2c: E2 03 00 5B 08 00 90 00 D7 [20:18:34]RAPDU: 90 00 [20:18:34]wFMCommunicate OK [20:18:34]wFMCommunicate request_size=10 [20:18:34]MH_SAM_APDU [20:18:34]CAPDU: 80 0D 02 02 05 7F C7 F0 B5 D0 [20:18:34]Write to MH i2c: E2 0D 00 5C 08 80 0D 02 02 05 00 7F C7 F0 B5 D0 00 00 A3 [20:18:34]Write i2c OK [20:18:34]MH_I2C_Read... [20:18:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:34]Read from MH i2c: E2 [20:18:34]MH_I2C_Read... [20:18:34]Read from MH i2c: E2 03 00 [20:18:34]MH_I2C_Read... [20:18:34]Read from MH i2c: E2 03 00 5C 08 00 90 00 D8 [20:18:34]RAPDU: 90 00 [20:18:34]wFMCommunicate OK [20:18:34]wFMCommunicate request_size=4 [20:18:34]MH_SAM_APDU [20:18:34]CAPDU: 80 0D 03 02 [20:18:34]Write to MH i2c: E2 08 00 5D 08 80 0D 03 02 00 00 00 00 E0 [20:18:34]Write i2c OK [20:18:34]MH_I2C_Read... [20:18:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:34]Read from MH i2c: E2 [20:18:34]MH_I2C_Read... [20:18:34]Read from MH i2c: E2 0B 00 [20:18:34]MH_I2C_Read... [20:18:34]Read from MH i2c: E2 0B 00 5D 08 00 80 BE 4E 31 4B 9D 52 0B 90 00 E3 [20:18:34]RAPDU: 80 BE 4E 31 4B 9D 52 0B 90 00 [20:18:34]wFMCommunicate OK [20:18:34]SAM_PROTO_SignData done [20:18:34]FM_MakeSignedData done [20:18:34]CreateOFDProtocolMessage [20:18:34]wFMCommunicate request_size=4 [20:18:34]MH_SAM_APDU [20:18:34]CAPDU: 80 11 00 00 [20:18:34]Write to MH i2c: E2 08 00 5E 08 80 11 00 00 00 00 00 00 E0 [20:18:34]Write i2c OK [20:18:34]MH_I2C_Read... [20:18:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:34]Read from MH i2c: E2 [20:18:34]MH_I2C_Read... [20:18:34]Read from MH i2c: E2 17 00 [20:18:34]MH_I2C_Read... [20:18:34]Read from MH i2c: E2 17 00 5E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 33 [20:18: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:18:34]wFMCommunicate OK [20:18:34]CreateOFDProtocolMessage done [20:18:34]OFDSenderStorePacket 187167 [20:18:34]StoreOFDPacket docnum=187167 [20:18: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 AF 86 07 01 62 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 52 35 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 51 56 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 56 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 24 00 00 00 00 07 04 06 00 30 56 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 99 3C B6 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 1F DB 02 00 35 04 06 00 F2 7F C7 F0 B5 D0 80 BE 4E 31 4B 9D 52 0B [20:18:34]CheckFolder [20:18:34]dirname=/storage/ofd_packets [20:18:34]CheckFolder done [20:18:34]ProducePacketName [20:18:34]name=ofd_packets/00187167 [20:18:34]NVStorageSaveData ofd_packets/00187167 [20:18:34]File name is /storage/ofd_packets/00187167 [20:18:34]Write 301 bytes [20:18:34]NVStorageSaveData done [20:18:34]OFDSenderStorePacket done [20:18:34]KKMCreateOFDPacket done [20:18:34]NVStorageSaveData kkm_last_timestamp [20:18:34]File name is /storage/kkm_last_timestamp [20:18:34]Write 4 bytes [20:18:34]NVStorageSaveData done [20:18:34]ExternCall_PrintAddStr [20:18:34]wPrintStart [20:18:34]Write to MH i2c: 01 00 00 5F 08 67 [20:18:34]Write i2c OK [20:18:34]MH_I2C_Read... [20:18:34]Read from MH i2c: 01 [20:18:34]MH_I2C_Read... [20:18:34]Read from MH i2c: 01 07 00 [20:18:34]MH_I2C_Read... [20:18:34]Read from MH i2c: 01 07 00 5F 08 00 00 00 00 00 FF 0F 7C [20:18:34]RasterBufferAndPrint [20:18:34]line Счет N : (1)412322 [20:18:34]line ИНН: 02508201610067 [20:18:34]line Контрольно-Кассовый Чек [20:18:34]line ПРОДАЖА [20:18:34]line ТРК (МРК, ГНК) : 22 [20:18:34]line Товар: 2710124130 [20:18:34]line Аи-92-К-2 [20:18:34]line 13.650 * 64.20 [20:18:34]line = 876.33 [20:18:34]line НДС 12% НСП 1% [20:18:34]line > о реализуемом товаре [20:18:34]line ОКРУГЛЕНИЕ: -0.33 [20:18:34]line ИТОГО: 876.00 [20:18:34]line Внесено: 876.00 [20:18:34]line СДАЧА: 0.00 [20:18:34]line НСП 1% : 7.75 [20:18:34]line НДС 12% : 93.06 [20:18:34]line Наличными: 876.00 [20:18:34]line Безнал.: 0.00 [20:18:34]line Место: АЗС № 92 "Партнер Нефть" [20:18:34]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:18:34]line СНО: Общий режим [20:18:34]line Чек 233 19.02.2025 20:18 [20:18:34]line Смена: 647 ФФД: 1.0 [20:18:34]line ЗНМ: 0300000118 [20:18:34]line РНМ: 0000000000091857 [20:18:34]line Версия ККМ: 001 [20:18:34]line ФМ: 0000000000871826 [20:18:34]line ФД: 187167 [20:18:34]line ФПД: 266630629209552 [20:18:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T201833&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187167&fm=266630629209552&tin=02508201610067®Number=0000000000091857&sum=87600 [20:18:34]written 0, free lines is 4095 [20:18:34]OFD Sender: Processing packet 187167 [packets to send 49, broken 48] [20:18:34]ProducePacketName [20:18:34]name=ofd_packets/00187167 [20:18:34]OFD Sender: To server: pG, [20:18:34]CommunicateWithHost lk.salyk.kg:30040 [20:18:34]ConnectInit lk.salyk.kg [20:18:34]Connected sock=11 [20:18: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 0F 01 00 00 AF 86 07 01 62 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 52 35 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 51 56 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 56 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 24 00 00 00 00 07 04 06 00 30 56 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 99 3C B6 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 1F DB 02 00 35 04 06 00 F2 7F C7 F0 B5 D0 80 BE 4E 31 4B 9D 52 0B [20:18: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 35 2A 47 00 9F 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 1F DB 02 00 F4 03 04 00 EC E2 B5 67 B6 04 01 00 00 1E B3 33 75 A5 CD 40 9C [20:18:34]CommunicateWithHost err = 0 [20:18:34]CheckOFDResponse [20:18:34]1017 (14) - 77093643461234 [20:18:34]1041 (16) - 0000000000871826 [20:18:34]1040 (4) - 187167 [20:18:34]1012 (4) - 19.02.2025 13:55 [20:18:34]1206 (1) - 0 [20:18:34]OFD Sender: Remove packet 187167 [20:18:34]ProducePacketName [20:18:34]name=ofd_packets/00187167 [20:18:34]NVStorageDeleteData [20:18:34]Write to MH i2c: 01 00 00 8A 08 92 [20:18:34]Write i2c OK [20:18:34]MH_I2C_Read... [20:18:34]Read from MH i2c: 01 [20:18:34]MH_I2C_Read... [20:18:34]Read from MH i2c: 01 07 00 [20:18:34]MH_I2C_Read... [20:18:34]Read from MH i2c: 01 07 00 8A 08 00 00 00 00 00 EC 0C 91 [20:18:34]RasterBufferAndPrint [20:18:34]line [20:18:34]line [20:18:34]line [20:18:34]line [20:18:34]line [20:18:34]written 0, free lines is 3315 [20:18:34]MH_Cut [20:18:34]Write to MH i2c: D1 01 00 91 08 01 6B [20:18:34]Write i2c OK [20:18:34]MH_I2C_Read... [20:18:34]Read from MH i2c: D1 [20:18:34]MH_I2C_Read... [20:18:34]Read from MH i2c: D1 01 00 [20:18:34]MH_I2C_Read... [20:18:34]Read from MH i2c: D1 01 00 91 08 00 6A [20:18:34]Write to MH i2c: 01 00 00 92 08 9A [20:18:34]Write i2c OK [20:18:34]MH_I2C_Read... [20:18:35]OFD Sender: No OFD packet to send [20:18:35]*** Cut start [20:18:35]*** Partial cut [20:18:35]*** CUTSNS_PIN = 1 [20:18:35]*** CUTSNS_PIN = 0 [20:18:36]*** Brake cut motor [20:18:36]Read from MH i2c: 01 [20:18:36]MH_I2C_Read... [20:18:36]*** Stop cut motor [20:18:36]*** Cut end [20:18:36]Read from MH i2c: 01 07 00 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: 01 07 00 92 08 00 00 00 00 00 FF 0F AF [20:18:36]process_action close_receipt done [20:18:36]requested_data is exist [20:18:36]produce_requested_data [20:18:36]requested_item fm.sn is exist - process it [20:18:36]wFMCommunicate request_size=4 [20:18:36]MH_SAM_APDU [20:18:36]CAPDU: 80 11 00 00 [20:18:36]Write to MH i2c: E2 08 00 93 08 80 11 00 00 00 00 00 00 15 [20:18:36]Write i2c OK [20:18:36]MH_I2C_Read... [20:18:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:36]Read from MH i2c: E2 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 17 00 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 17 00 93 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 68 [20:18: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:18:36]wFMCommunicate OK [20:18:36]requested_item fd.num is exist - process it [20:18:36]SAM_PROTO_GetFieldsCounters [20:18:36]wFMCommunicate request_size=4 [20:18:36]MH_SAM_APDU [20:18:36]CAPDU: 80 13 00 00 [20:18:36]Write to MH i2c: E2 08 00 94 08 80 13 00 00 00 00 00 00 18 [20:18:36]Write i2c OK [20:18:36]MH_I2C_Read... [20:18:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:36]Read from MH i2c: E2 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 62 00 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 62 00 94 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DB 02 00 0E 04 04 00 87 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 7E [20:18: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 1F DB 02 00 0E 04 04 00 87 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 [20:18:36]wFMCommunicate OK [20:18:36]SAM_PROTO_GetFieldsCounters done [20:18:36]requested_item shift.num is exist - process it [20:18:36]requested_item shift.opened is exist - process it [20:18:36]req_shift_opened [20:18:36]FM_GetShiftState [20:18:36]SAM_PROTO_GetShiftState [20:18:36]wFMCommunicate request_size=4 [20:18:36]MH_SAM_APDU [20:18:36]CAPDU: 80 13 01 00 [20:18:36]Write to MH i2c: E2 08 00 95 08 80 13 01 00 00 00 00 00 1A [20:18:36]Write i2c OK [20:18:36]MH_I2C_Read... [20:18:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:36]Read from MH i2c: E2 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 0E 00 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 0E 00 95 08 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 99 [20:18:36]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:18:36]wFMCommunicate OK [20:18:36]SAM_PROTO_GetShiftState done [20:18:36]FM_GetShiftState done [20:18:36]req_shift_opened done [20:18:36]requested_item shift.open_date is exist - process it [20:18:36]req_shift_open_date [20:18:36]req_shift_open_date done [20:18:36]produce_requested_data done [20:18:36]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187167,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [20:18:36]process_action_free close_receipt [20:18:36]json_value_free [20:18:36]json_value_free done [20:18:36]process_json_proto returns [20:18:36]Send response to host [20:18:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187167,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [20:18:36]free response buf [20:18:36]execute_script done [20:18:36]execute_script returns [20:18:36]free content buf [20:18:36]Sock 9.Close socket [20:18:36]Sock 9.Thread stoped [20:18:40]OFD Sender: No OFD packet to send [20:18:45]OFD Sender: No OFD packet to send [20:18:50]OFD Sender: No OFD packet to send [20:18:55]OFD Sender: No OFD packet to send [20:19:00]OFD Sender: No OFD packet to send [20:19:05]OFD Sender: No OFD packet to send [20:19:10]OFD Sender: No OFD packet to send [20:19:15]OFD Sender: No OFD packet to send [20:19:20]OFD Sender: No OFD packet to send [20:19:25]OFD Sender: No OFD packet to send [20:19:30]OFD Sender: No OFD packet to send [20:19:35]OFD Sender: No OFD packet to send [20:19:40]OFD Sender: No OFD packet to send [20:19:45]OFD Sender: No OFD packet to send [20:19:50]OFD Sender: No OFD packet to send [20:19:55]OFD Sender: No OFD packet to send [20:20:00]OFD Sender: No OFD packet to send [20:20:05]OFD Sender: No OFD packet to send [20:20:10]OFD Sender: No OFD packet to send [20:20:15]OFD Sender: No OFD packet to send [20:20:20]OFD Sender: No OFD packet to send [20:20:25]OFD Sender: No OFD packet to send [20:20:30]OFD Sender: No OFD packet to send [20:20:35]OFD Sender: No OFD packet to send [20:20:40]OFD Sender: No OFD packet to send [20:20:45]OFD Sender: No OFD packet to send [20:20:50]OFD Sender: No OFD packet to send [20:20:51]accept exits with 7 [20:20:51]New connection [20:20:51]New thread 3066510692 created [20:20:51]Thread 3066654052 joined [20:20:51]Waiting for new connection... [20:20:51] Sock 7.Parse request [20:20:51]Sock 7.Check first char [20:20:51]Sock 7.First char is OK [20:20:51]request: POST /json_proto HTTP/1.0 [20:20:51]Method: POST [20:20:51]URL: /json_proto [20:20:51]Method is POST - this is cgi request [20:20:51]url: /json_proto [20:20:51]query_string will be loaded in cgi processing [20:20:51]execute_cgi json_proto POST (null) [20:20:51]execute_cgi path=json_proto method=POST [20:20:51]POST find Content-Length [20:20:51]Host: 172.17.46.131:8080 [20:20:51]Content-Length: 790 [20:20:51]Content-Type: application/json [20:20:51] [20:20:51]POST finish read [20:20:51]Found Content-Length = 790 [20:20:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412323", "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:51]execute_script... [20:20:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412323", "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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:51]POST & json_proto [20:20:51]process_json_proto [20:20:51]json parsed OK: [20:20:51]protocol is kg_v1.0 [20:20:51]action value=close_receipt [20:20:51]process_action close_receipt [20:20:51]cmd_close_receipt [20:20:51]MH_GetDate [20:20:51]Write to MH i2c: F0 00 00 96 08 8D [20:20:51]Write i2c OK [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: F0 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: F0 09 00 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: F0 09 00 96 08 00 24 3D B6 67 7E 41 4F 65 87 [20:20:51]GetLastDocTimeStamp 1739996313 [20:20:51]current date 1739996452 [20:20:51]FM_GetShiftState [20:20:51]SAM_PROTO_GetShiftState [20:20:51]wFMCommunicate request_size=4 [20:20:51]MH_SAM_APDU [20:20:51]CAPDU: 80 13 01 00 [20:20:51]Write to MH i2c: E2 08 00 97 08 80 13 01 00 00 00 00 00 1C [20:20:51]Write i2c OK [20:20:51]MH_I2C_Read... [20:20:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:51]Read from MH i2c: E2 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: E2 0E 00 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: E2 0E 00 97 08 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 9B [20:20:51]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:20:51]wFMCommunicate OK [20:20:51]SAM_PROTO_GetShiftState done [20:20:51]FM_GetShiftState done [20:20:51]opened in 1739929631 [20:20:51]opened+sec_in_day 1740016031 [20:20:51]quantity*price = 50011 [20:20:51]sum+1 = 50013 [20:20:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.12 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.12 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 234 19.02.2025 20:20 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000871826 ФД: 187168 ФПД: 138921664947791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T202052&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187168&fm=138921664947791&tin=02508201610067®Number=0000000000091857&sum=50012 [20:20:52]StoreToDocumentArchive [20:20:52]shift 647 fd 187168 [20:20:52]save to /storage/0647/doc_00187168 [20:20:52]save last doc name /storage/0647/doc_00187168 to /storage/kkm_last_doc_name [20:20:52]save OK [20:20:52]Clear old archive folders... [20:20:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:20:52]tlvbuf is 01F6F440 [20:20:52]SAM_PROTO_ClearQueue [20:20:52]wFMCommunicate request_size=4 [20:20:52]MH_SAM_APDU [20:20:52]CAPDU: 80 09 00 00 [20:20:52]Write to MH i2c: E2 08 00 A4 08 80 09 00 00 00 00 00 00 1E [20:20:52]Write i2c OK [20:20:52]MH_I2C_Read... [20:20:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:52]Read from MH i2c: E2 [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: E2 03 00 [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: E2 03 00 A4 08 00 90 00 20 [20:20:52]RAPDU: 90 00 [20:20:52]wFMCommunicate OK [20:20:52]SAM_PROTO_ClearQueue done [20:20:52]KKMCreateOFDPacket [20:20:52]OFDProtocolAddRootSTLVToBuf [20:20:52]FM_MakeSignedData [20:20:52]FM_MakeSignedData [20:20:52]SAM_PROTO_SignData [20:20:52]wFMCommunicate request_size=4 [20:20:52]MH_SAM_APDU [20:20:52]CAPDU: 80 0D 01 02 [20:20:52]Write to MH i2c: E2 08 00 A5 08 80 0D 01 02 00 00 00 00 26 [20:20:52]Write i2c OK [20:20:52]MH_I2C_Read... [20:20:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:52]Read from MH i2c: E2 [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: E2 03 00 [20:20:52]MH_I2C_Read... [20:20:52]Read from MH i2c: E2 03 00 A5 08 00 90 00 21 [20:20:52]RAPDU: 90 00 [20:20:52]wFMCommunicate OK [20:20:52]wFMCommunicate request_size=255 [20:20:52]MH_SAM_APDU [20:20:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 EA 00 00 00 F4 03 04 00 24 3D B6 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 20 DB 02 00 35 04 06 00 7E [20:20:52]Write to MH i2c: E2 02 01 A6 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 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 EA 00 00 00 F4 03 04 00 24 3D B6 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 20 DB 02 00 35 04 06 00 7E 00 00 43 [20:20:52]Write i2c OK [20:20:52]MH_I2C_Read... [20:20:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:53]Read from MH i2c: E2 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: E2 03 00 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: E2 03 00 A6 08 00 90 00 22 [20:20:53]RAPDU: 90 00 [20:20:53]wFMCommunicate OK [20:20:53]wFMCommunicate request_size=10 [20:20:53]MH_SAM_APDU [20:20:53]CAPDU: 80 0D 02 02 05 59 38 7D A6 4F [20:20:53]Write to MH i2c: E2 0D 00 A7 08 80 0D 02 02 05 00 59 38 7D A6 4F 00 00 36 [20:20:53]Write i2c OK [20:20:53]MH_I2C_Read... [20:20:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:53]Read from MH i2c: E2 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: E2 03 00 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: E2 03 00 A7 08 00 90 00 23 [20:20:53]RAPDU: 90 00 [20:20:53]wFMCommunicate OK [20:20:53]wFMCommunicate request_size=4 [20:20:53]MH_SAM_APDU [20:20:53]CAPDU: 80 0D 03 02 [20:20:53]Write to MH i2c: E2 08 00 A8 08 80 0D 03 02 00 00 00 00 2B [20:20:53]Write i2c OK [20:20:53]MH_I2C_Read... [20:20:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:53]Read from MH i2c: E2 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: E2 0B 00 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: E2 0B 00 A8 08 00 7F C4 67 47 9B 9B BA 7D 90 00 8A [20:20:53]RAPDU: 7F C4 67 47 9B 9B BA 7D 90 00 [20:20:53]wFMCommunicate OK [20:20:53]SAM_PROTO_SignData done [20:20:53]FM_MakeSignedData done [20:20:53]CreateOFDProtocolMessage [20:20:53]wFMCommunicate request_size=4 [20:20:53]MH_SAM_APDU [20:20:53]CAPDU: 80 11 00 00 [20:20:53]Write to MH i2c: E2 08 00 A9 08 80 11 00 00 00 00 00 00 2B [20:20:53]Write i2c OK [20:20:53]MH_I2C_Read... [20:20:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:53]Read from MH i2c: E2 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: E2 17 00 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: E2 17 00 A9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7E [20:20:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:20:53]wFMCommunicate OK [20:20:53]CreateOFDProtocolMessage done [20:20:53]OFDSenderStorePacket 187168 [20:20:53]StoreOFDPacket docnum=187168 [20:20: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 62 EB 07 01 EF 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 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 EA 00 00 00 F4 03 04 00 24 3D B6 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 20 DB 02 00 35 04 06 00 7E 59 38 7D A6 4F 7F C4 67 47 9B 9B BA 7D [20:20:53]CheckFolder [20:20:53]dirname=/storage/ofd_packets [20:20:53]CheckFolder done [20:20:53]ProducePacketName [20:20:53]name=ofd_packets/00187168 [20:20:53]NVStorageSaveData ofd_packets/00187168 [20:20:53]File name is /storage/ofd_packets/00187168 [20:20:53]Write 301 bytes [20:20:53]NVStorageSaveData done [20:20:53]OFDSenderStorePacket done [20:20:53]KKMCreateOFDPacket done [20:20:53]NVStorageSaveData kkm_last_timestamp [20:20:53]File name is /storage/kkm_last_timestamp [20:20:53]Write 4 bytes [20:20:53]NVStorageSaveData done [20:20:53]ExternCall_PrintAddStr [20:20:53]wPrintStart [20:20:53]Write to MH i2c: 01 00 00 AA 08 B2 [20:20:53]Write i2c OK [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: 01 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: 01 07 00 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: 01 07 00 AA 08 00 00 00 00 00 FF 0F C7 [20:20:53]RasterBufferAndPrint [20:20:53]line Счет N : (1)412323 [20:20:53]line ИНН: 02508201610067 [20:20:53]line Контрольно-Кассовый Чек [20:20:53]line ПРОДАЖА [20:20:53]line ТРК (МРК, ГНК) : 32 [20:20:53]line Товар: 2710124130 [20:20:53]line Аи-92-К-2 [20:20:53]line 7.790 * 64.20 [20:20:53]line = 500.12 [20:20:53]line НДС 12% НСП 1% [20:20:53]line > о реализуемом товаре [20:20:53]line ИТОГО: 500.12 [20:20:53]line НСП 1% : 4.43 [20:20:53]line НДС 12% : 53.11 [20:20:53]line Наличными: 0.00 [20:20:53]line Безнал.: 500.12 [20:20:53]line Место: АЗС № 92 "Партнер Нефть" [20:20:53]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:20:53]line СНО: Общий режим [20:20:53]line Чек 234 19.02.2025 20:20 [20:20:53]line Смена: 647 ФФД: 1.0 [20:20:53]line ЗНМ: 0300000118 [20:20:53]line РНМ: 0000000000091857 [20:20:53]line Версия ККМ: 001 [20:20:53]line Платежная система: KICB Банк [20:20:53]line ФМ: 0000000000871826 [20:20:53]line ФД: 187168 [20:20:53]line ФПД: 138921664947791 [20:20:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T202052&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187168&fm=138921664947791&tin=02508201610067®Number=0000000000091857&sum=50012 [20:20:53]written 0, free lines is 4095 [20:20:53]OFD Sender: Processing packet 187168 [packets to send 49, broken 48] [20:20:53]ProducePacketName [20:20:53]name=ofd_packets/00187168 [20:20:53]OFD Sender: To server: pG, [20:20:53]CommunicateWithHost lk.salyk.kg:30040 [20:20:53]ConnectInit lk.salyk.kg [20:20:53]Write to MH i2c: 01 00 00 D4 08 DC [20:20:53]Write i2c OK [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: 01 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: 01 07 00 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: 01 07 00 D4 08 00 00 00 00 00 F9 0C E8 [20:20:53]RasterBufferAndPrint [20:20:53]line [20:20:53]line [20:20:53]line [20:20:53]line [20:20:53]line [20:20:53]written 0, free lines is 3327 [20:20:53]MH_Cut [20:20:53]Write to MH i2c: D1 01 00 DB 08 01 B5 [20:20:53]Write i2c OK [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: D1 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: D1 01 00 [20:20:53]MH_I2C_Read... [20:20:53]Read from MH i2c: D1 01 00 DB 08 00 B4 [20:20:53]Write to MH i2c: 01 00 00 DC 08 E4 [20:20:53]Write i2c OK [20:20:53]MH_I2C_Read... [20:20:53]Connected sock=10 [20:20:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 62 EB 07 01 EF 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 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 EA 00 00 00 F4 03 04 00 24 3D B6 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 20 DB 02 00 35 04 06 00 7E 59 38 7D A6 4F 7F C4 67 47 9B 9B BA 7D [20:20: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 F4 17 47 00 A3 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 20 DB 02 00 F4 03 04 00 77 E3 B5 67 B6 04 01 00 00 5A B1 BE 2F 97 5B 82 D3 [20:20:54]CommunicateWithHost err = 0 [20:20:54]CheckOFDResponse [20:20:54]1017 (14) - 77093643461234 [20:20:54]1041 (16) - 0000000000871826 [20:20:54]1040 (4) - 187168 [20:20:54]1012 (4) - 19.02.2025 13:58 [20:20:54]1206 (1) - 0 [20:20:54]OFD Sender: Remove packet 187168 [20:20:54]ProducePacketName [20:20:54]name=ofd_packets/00187168 [20:20:54]NVStorageDeleteData [20:20:54]*** Cut start [20:20:54]*** Partial cut [20:20:54]*** CUTSNS_PIN = 1 [20:20:54]*** CUTSNS_PIN = 0 [20:20:54]OFD Sender: No OFD packet to send [20:20:54]*** Brake cut motor [20:20:55]Read from MH i2c: 01 [20:20:55]MH_I2C_Read... [20:20:55]*** Stop cut motor [20:20:55]*** Cut end [20:20:55]Read from MH i2c: 01 07 00 [20:20:55]MH_I2C_Read... [20:20:55]Read from MH i2c: 01 07 00 DC 08 00 00 00 00 00 FF 0F F9 [20:20:55]process_action close_receipt done [20:20:55]requested_data is exist [20:20:55]produce_requested_data [20:20:55]requested_item fm.sn is exist - process it [20:20:55]wFMCommunicate request_size=4 [20:20:55]MH_SAM_APDU [20:20:55]CAPDU: 80 11 00 00 [20:20:55]Write to MH i2c: E2 08 00 DD 08 80 11 00 00 00 00 00 00 5F [20:20:55]Write i2c OK [20:20:55]MH_I2C_Read... [20:20:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:55]Read from MH i2c: E2 [20:20:55]MH_I2C_Read... [20:20:55]Read from MH i2c: E2 17 00 [20:20:55]MH_I2C_Read... [20:20:55]Read from MH i2c: E2 17 00 DD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B2 [20:20: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:20:55]wFMCommunicate OK [20:20:55]requested_item fd.num is exist - process it [20:20:55]SAM_PROTO_GetFieldsCounters [20:20:55]wFMCommunicate request_size=4 [20:20:55]MH_SAM_APDU [20:20:55]CAPDU: 80 13 00 00 [20:20:55]Write to MH i2c: E2 08 00 DE 08 80 13 00 00 00 00 00 00 62 [20:20:55]Write i2c OK [20:20:55]MH_I2C_Read... [20:20:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:55]Read from MH i2c: E2 [20:20:55]MH_I2C_Read... [20:20:55]Read from MH i2c: E2 62 00 [20:20:55]MH_I2C_Read... [20:20:55]Read from MH i2c: E2 62 00 DE 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 20 DB 02 00 0E 04 04 00 87 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 CC [20:20:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DB 02 00 0E 04 04 00 87 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 [20:20:55]wFMCommunicate OK [20:20:55]SAM_PROTO_GetFieldsCounters done [20:20:55]requested_item shift.num is exist - process it [20:20:55]requested_item shift.opened is exist - process it [20:20:55]req_shift_opened [20:20:55]FM_GetShiftState [20:20:55]SAM_PROTO_GetShiftState [20:20:55]wFMCommunicate request_size=4 [20:20:55]MH_SAM_APDU [20:20:55]CAPDU: 80 13 01 00 [20:20:55]Write to MH i2c: E2 08 00 DF 08 80 13 01 00 00 00 00 00 64 [20:20:55]Write i2c OK [20:20:55]MH_I2C_Read... [20:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:55]Read from MH i2c: E2 [20:20:55]MH_I2C_Read... [20:20:55]Read from MH i2c: E2 0E 00 [20:20:55]MH_I2C_Read... [20:20:55]Read from MH i2c: E2 0E 00 DF 08 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E3 [20:20:55]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:20:55]wFMCommunicate OK [20:20:55]SAM_PROTO_GetShiftState done [20:20:55]FM_GetShiftState done [20:20:55]req_shift_opened done [20:20:55]requested_item shift.open_date is exist - process it [20:20:55]req_shift_open_date [20:20:55]req_shift_open_date done [20:20:55]produce_requested_data done [20:20:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187168,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [20:20:55]process_action_free close_receipt [20:20:55]json_value_free [20:20:55]json_value_free done [20:20:55]process_json_proto returns [20:20:55]Send response to host [20:20:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187168,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [20:20:55]free response buf [20:20:55]execute_script done [20:20:55]execute_script returns [20:20:55]free content buf [20:20:55]Sock 7.Close socket [20:20:55]Sock 7.Thread stoped [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]OFD Sender: No OFD packet to send [20:22:39]OFD Sender: No OFD packet to send [20:22:44]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:40]accept exits with 9 [20:23:40]New connection [20:23:40]New thread 3066654052 created [20:23:40]Thread 3066510692 joined [20:23:40]Waiting for new connection... [20:23:40] Sock 9.Parse request [20:23:40]Sock 9.Check first char [20:23:40]Sock 9.First char is OK [20:23:40]request: POST /json_proto HTTP/1.0 [20:23:40]Method: POST [20:23:40]URL: /json_proto [20:23:40]Method is POST - this is cgi request [20:23:40]url: /json_proto [20:23:40]query_string will be loaded in cgi processing [20:23:40]execute_cgi json_proto POST (null) [20:23:40]execute_cgi path=json_proto method=POST [20:23:40]POST find Content-Length [20:23:40]Host: 172.17.46.131:8080 [20:23:40]Content-Length: 682 [20:23:40]Content-Type: application/json [20:23:40] [20:23:40]POST finish read [20:23:40]Found Content-Length = 682 [20:23:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412324", "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" : 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" ] } } [20:23:40]execute_script... [20:23:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412324", "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" : 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" ] } } [20:23:40]POST & json_proto [20:23:40]process_json_proto [20:23:40]json parsed OK: [20:23:40]protocol is kg_v1.0 [20:23:40]action value=close_receipt [20:23:40]process_action close_receipt [20:23:40]cmd_close_receipt [20:23:40]MH_GetDate [20:23:40]Write to MH i2c: F0 00 00 E0 08 D7 [20:23:40]Write i2c OK [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: F0 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: F0 09 00 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: F0 09 00 E0 08 00 CD 3D B6 67 7E 41 4F 65 7A [20:23:40]GetLastDocTimeStamp 1739996452 [20:23:40]current date 1739996621 [20:23:40]FM_GetShiftState [20:23:40]SAM_PROTO_GetShiftState [20:23:40]wFMCommunicate request_size=4 [20:23:40]MH_SAM_APDU [20:23:40]CAPDU: 80 13 01 00 [20:23:40]Write to MH i2c: E2 08 00 E1 08 80 13 01 00 00 00 00 00 66 [20:23:40]Write i2c OK [20:23:40]MH_I2C_Read... [20:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:40]Read from MH i2c: E2 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: E2 0E 00 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: E2 0E 00 E1 08 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E5 [20:23:40]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:23:40]wFMCommunicate OK [20:23:40]SAM_PROTO_GetShiftState done [20:23:40]FM_GetShiftState done [20:23:40]opened in 1739929631 [20:23:40]opened+sec_in_day 1740016031 [20:23:40]quantity*price = 120054 [20:23:40]sum+1 = 120055 [20:23:40]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 СНО: Общий режим Чек 235 19.02.2025 20:23 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187169 ФПД: 195069450670699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T202341&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187169&fm=195069450670699&tin=02508201610067®Number=0000000000091857&sum=120000 [20:23:41]StoreToDocumentArchive [20:23:41]shift 647 fd 187169 [20:23:41]save to /storage/0647/doc_00187169 [20:23:41]save last doc name /storage/0647/doc_00187169 to /storage/kkm_last_doc_name [20:23:41]save OK [20:23:41]Clear old archive folders... [20:23:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:23:41]tlvbuf is 01F53500 [20:23:41]SAM_PROTO_ClearQueue [20:23:41]wFMCommunicate request_size=4 [20:23:41]MH_SAM_APDU [20:23:41]CAPDU: 80 09 00 00 [20:23:41]Write to MH i2c: E2 08 00 EE 08 80 09 00 00 00 00 00 00 68 [20:23:41]Write i2c OK [20:23:41]MH_I2C_Read... [20:23:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:41]Read from MH i2c: E2 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 03 00 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 03 00 EE 08 00 90 00 6A [20:23:41]RAPDU: 90 00 [20:23:41]wFMCommunicate OK [20:23:41]SAM_PROTO_ClearQueue done [20:23:41]KKMCreateOFDPacket [20:23:41]OFDProtocolAddRootSTLVToBuf [20:23:41]FM_MakeSignedData [20:23:41]FM_MakeSignedData [20:23:41]SAM_PROTO_SignData [20:23:41]wFMCommunicate request_size=4 [20:23:41]MH_SAM_APDU [20:23:41]CAPDU: 80 0D 01 02 [20:23:41]Write to MH i2c: E2 08 00 EF 08 80 0D 01 02 00 00 00 00 70 [20:23:41]Write i2c OK [20:23:41]MH_I2C_Read... [20:23:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:41]Read from MH i2c: E2 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 03 00 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 03 00 EF 08 00 90 00 6B [20:23:41]RAPDU: 90 00 [20:23:41]wFMCommunicate OK [20:23:41]wFMCommunicate request_size=255 [20:23:41]MH_SAM_APDU [20:23:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 EB 00 00 00 F4 03 04 00 CD 3D B6 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 21 DB 02 00 35 04 06 00 B1 [20:23:41]Write to MH i2c: E2 02 01 F0 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 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 EB 00 00 00 F4 03 04 00 CD 3D B6 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 21 DB 02 00 35 04 06 00 B1 00 00 65 [20:23:41]Write i2c OK [20:23:41]MH_I2C_Read... [20:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:42]Read from MH i2c: E2 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 03 00 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 03 00 F0 08 00 90 00 6C [20:23:42]RAPDU: 90 00 [20:23:42]wFMCommunicate OK [20:23:42]wFMCommunicate request_size=10 [20:23:42]MH_SAM_APDU [20:23:42]CAPDU: 80 0D 02 02 05 6A 25 50 52 6B [20:23:42]Write to MH i2c: E2 0D 00 F1 08 80 0D 02 02 05 00 6A 25 50 52 6B 00 00 19 [20:23:42]Write i2c OK [20:23:42]MH_I2C_Read... [20:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:42]Read from MH i2c: E2 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 03 00 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 03 00 F1 08 00 90 00 6D [20:23:42]RAPDU: 90 00 [20:23:42]wFMCommunicate OK [20:23:42]wFMCommunicate request_size=4 [20:23:42]MH_SAM_APDU [20:23:42]CAPDU: 80 0D 03 02 [20:23:42]Write to MH i2c: E2 08 00 F2 08 80 0D 03 02 00 00 00 00 75 [20:23:42]Write i2c OK [20:23:42]MH_I2C_Read... [20:23:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:42]Read from MH i2c: E2 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 0B 00 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 0B 00 F2 08 00 EE 17 A3 22 76 01 0D 5C 90 00 20 [20:23:42]RAPDU: EE 17 A3 22 76 01 0D 5C 90 00 [20:23:42]wFMCommunicate OK [20:23:42]SAM_PROTO_SignData done [20:23:42]FM_MakeSignedData done [20:23:42]CreateOFDProtocolMessage [20:23:42]wFMCommunicate request_size=4 [20:23:42]MH_SAM_APDU [20:23:42]CAPDU: 80 11 00 00 [20:23:42]Write to MH i2c: E2 08 00 F3 08 80 11 00 00 00 00 00 00 75 [20:23:42]Write i2c OK [20:23:42]MH_I2C_Read... [20:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:42]Read from MH i2c: E2 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 17 00 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 17 00 F3 08 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:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:23:42]wFMCommunicate OK [20:23:42]CreateOFDProtocolMessage done [20:23:42]OFDSenderStorePacket 187169 [20:23:42]StoreOFDPacket docnum=187169 [20:23: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 2B 79 07 01 59 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 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 EB 00 00 00 F4 03 04 00 CD 3D B6 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 21 DB 02 00 35 04 06 00 B1 6A 25 50 52 6B EE 17 A3 22 76 01 0D 5C [20:23:42]CheckFolder [20:23:42]dirname=/storage/ofd_packets [20:23:42]CheckFolder done [20:23:42]ProducePacketName [20:23:42]name=ofd_packets/00187169 [20:23:42]NVStorageSaveData ofd_packets/00187169 [20:23:42]File name is /storage/ofd_packets/00187169 [20:23:42]Write 301 bytes [20:23:42]NVStorageSaveData done [20:23:42]OFDSenderStorePacket done [20:23:42]KKMCreateOFDPacket done [20:23:42]NVStorageSaveData kkm_last_timestamp [20:23:42]File name is /storage/kkm_last_timestamp [20:23:42]Write 4 bytes [20:23:42]NVStorageSaveData done [20:23:42]ExternCall_PrintAddStr [20:23:42]wPrintStart [20:23:42]Write to MH i2c: 01 00 00 F4 08 FC [20:23:42]Write i2c OK [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: 01 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: 01 07 00 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: 01 07 00 F4 08 00 00 00 00 00 FF 0F 11 [20:23:42]RasterBufferAndPrint [20:23:42]line Счет N : (1)412324 [20:23:42]line ИНН: 02508201610067 [20:23:42]line Контрольно-Кассовый Чек [20:23:42]line ПРОДАЖА [20:23:42]line ТРК (МРК, ГНК) : 12 [20:23:42]line Товар: 2710124130 [20:23:42]line Аи-92-К-2 [20:23:42]line 18.700 * 64.20 [20:23:42]line = 1200.54 [20:23:42]line НДС 12% НСП 1% [20:23:42]line > о реализуемом товаре [20:23:42]line ОКРУГЛЕНИЕ: -0.54 [20:23:42]line ИТОГО: 1200.00 [20:23:42]line Внесено: 1200.00 [20:23:42]line СДАЧА: 0.00 [20:23:42]line НСП 1% : 10.62 [20:23:42]line НДС 12% : 127.49 [20:23:42]line Наличными: 1200.00 [20:23:42]line Безнал.: 0.00 [20:23:42]line Место: АЗС № 92 "Партнер Нефть" [20:23:42]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:23:42]line СНО: Общий режим [20:23:42]line Чек 235 19.02.2025 20:23 [20:23:42]line Смена: 647 ФФД: 1.0 [20:23:42]line ЗНМ: 0300000118 [20:23:42]line РНМ: 0000000000091857 [20:23:42]line Версия ККМ: 001 [20:23:42]line ФМ: 0000000000871826 [20:23:42]line ФД: 187169 [20:23:42]line ФПД: 195069450670699 [20:23:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T202341&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187169&fm=195069450670699&tin=02508201610067®Number=0000000000091857&sum=120000 [20:23:42]OFD Sender: Processing packet 187169 [packets to send 49, broken 48] [20:23:42]ProducePacketName [20:23:42]name=ofd_packets/00187169 [20:23:42]OFD Sender: To server: pG, [20:23:42]CommunicateWithHost lk.salyk.kg:30040 [20:23:42]ConnectInit lk.salyk.kg [20:23:42]written 0, free lines is 4095 [20:23:42]Connected sock=11 [20:23:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2B 79 07 01 59 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 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 EB 00 00 00 F4 03 04 00 CD 3D B6 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 21 DB 02 00 35 04 06 00 B1 6A 25 50 52 6B EE 17 A3 22 76 01 0D 5C [20:23:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A5 0E 47 00 23 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 21 DB 02 00 F4 03 04 00 20 E4 B5 67 B6 04 01 00 00 8F 3E E2 7B C1 45 48 6F [20:23:43]CommunicateWithHost err = 0 [20:23:43]CheckOFDResponse [20:23:43]1017 (14) - 77093643461234 [20:23:43]1041 (16) - 0000000000871826 [20:23:43]1040 (4) - 187169 [20:23:43]1012 (4) - 19.02.2025 14:01 [20:23:43]1206 (1) - 0 [20:23:43]OFD Sender: Remove packet 187169 [20:23:43]ProducePacketName [20:23:43]name=ofd_packets/00187169 [20:23:43]NVStorageDeleteData [20:23:43]Write to MH i2c: 01 00 00 1F 09 28 [20:23:43]Write i2c OK [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: 01 [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: 01 07 00 [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: 01 07 00 1F 09 00 00 00 00 00 00 0D 3C [20:23:43]RasterBufferAndPrint [20:23:43]line [20:23:43]line [20:23:43]line [20:23:43]line [20:23:43]line [20:23:43]written 0, free lines is 3334 [20:23:43]MH_Cut [20:23:43]Write to MH i2c: D1 01 00 26 09 01 01 [20:23:43]Write i2c OK [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: D1 [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: D1 01 00 [20:23:43]MH_I2C_Read... [20:23:43]Read from MH i2c: D1 01 00 26 09 00 00 [20:23:43]Write to MH i2c: 01 00 00 27 09 30 [20:23:43]Write i2c OK [20:23:43]MH_I2C_Read... [20:23:43]OFD Sender: No OFD packet to send [20:23:43]*** Cut start [20:23:43]*** Partial cut [20:23:43]*** CUTSNS_PIN = 1 [20:23:43]*** CUTSNS_PIN = 0 [20:23:44]*** Brake cut motor [20:23:44]Read from MH i2c: 01 [20:23:44]MH_I2C_Read... [20:23:44]*** Stop cut motor [20:23:44]*** Cut end [20:23:44]Read from MH i2c: 01 07 00 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: 01 07 00 27 09 00 00 00 00 00 FF 0F 45 [20:23:44]process_action close_receipt done [20:23:44]requested_data is exist [20:23:44]produce_requested_data [20:23:44]requested_item fm.sn is exist - process it [20:23:44]wFMCommunicate request_size=4 [20:23:44]MH_SAM_APDU [20:23:44]CAPDU: 80 11 00 00 [20:23:44]Write to MH i2c: E2 08 00 28 09 80 11 00 00 00 00 00 00 AB [20:23:44]Write i2c OK [20:23:44]MH_I2C_Read... [20:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:44]Read from MH i2c: E2 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 17 00 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 17 00 28 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FE [20:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:23:44]wFMCommunicate OK [20:23:44]requested_item fd.num is exist - process it [20:23:44]SAM_PROTO_GetFieldsCounters [20:23:44]wFMCommunicate request_size=4 [20:23:44]MH_SAM_APDU [20:23:44]CAPDU: 80 13 00 00 [20:23:44]Write to MH i2c: E2 08 00 29 09 80 13 00 00 00 00 00 00 AE [20:23:44]Write i2c OK [20:23:44]MH_I2C_Read... [20:23:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:44]Read from MH i2c: E2 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 62 00 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 62 00 29 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 21 DB 02 00 0E 04 04 00 87 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 1C [20:23:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DB 02 00 0E 04 04 00 87 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 [20:23:44]wFMCommunicate OK [20:23:44]SAM_PROTO_GetFieldsCounters done [20:23:44]requested_item shift.num is exist - process it [20:23:44]requested_item shift.opened is exist - process it [20:23:44]req_shift_opened [20:23:44]FM_GetShiftState [20:23:44]SAM_PROTO_GetShiftState [20:23:44]wFMCommunicate request_size=4 [20:23:44]MH_SAM_APDU [20:23:44]CAPDU: 80 13 01 00 [20:23:44]Write to MH i2c: E2 08 00 2A 09 80 13 01 00 00 00 00 00 B0 [20:23:44]Write i2c OK [20:23:44]MH_I2C_Read... [20:23:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:44]Read from MH i2c: E2 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 0E 00 [20:23:44]MH_I2C_Read... [20:23:44]Read from MH i2c: E2 0E 00 2A 09 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 2F [20:23:44]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:23:44]wFMCommunicate OK [20:23:44]SAM_PROTO_GetShiftState done [20:23:44]FM_GetShiftState done [20:23:44]req_shift_opened done [20:23:44]requested_item shift.open_date is exist - process it [20:23:44]req_shift_open_date [20:23:44]req_shift_open_date done [20:23:44]produce_requested_data done [20:23:44]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187169,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [20:23:44]process_action_free close_receipt [20:23:44]json_value_free [20:23:44]json_value_free done [20:23:44]process_json_proto returns [20:23:44]Send response to host [20:23:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187169,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [20:23:44]free response buf [20:23:44]execute_script done [20:23:44]execute_script returns [20:23:44]free content buf [20:23:44]Sock 9.Close socket [20:23:44]Sock 9.Thread stoped [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:58]OFD Sender: No OFD packet to send [20:26:03]OFD Sender: No OFD packet to send [20:26:08]OFD Sender: No OFD packet to send [20:26:13]OFD Sender: No OFD packet to send [20:26:18]OFD Sender: No OFD packet to send [20:26:23]OFD Sender: No OFD packet to send [20:26:28]OFD Sender: No OFD packet to send [20:26:33]OFD Sender: No OFD packet to send [20:26:38]OFD Sender: No OFD packet to send [20:26:43]OFD Sender: No OFD packet to send [20:26:48]OFD Sender: No OFD packet to send [20:26:53]OFD Sender: No OFD packet to send [20:26:58]OFD Sender: No OFD packet to send [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]accept exits with 7 [20:28:13]New connection [20:28:13]New thread 3066510692 created [20:28:13]Thread 3066654052 joined [20:28:13]Waiting for new connection... [20:28:13] Sock 7.Parse request [20:28:13]Sock 7.Check first char [20:28:13]Sock 7.First char is OK [20:28:13]request: POST /json_proto HTTP/1.0 [20:28:13]Method: POST [20:28:13]URL: /json_proto [20:28:13]Method is POST - this is cgi request [20:28:13]url: /json_proto [20:28:13]query_string will be loaded in cgi processing [20:28:13]execute_cgi json_proto POST (null) [20:28:13]execute_cgi path=json_proto method=POST [20:28:13]POST find Content-Length [20:28:13]Host: 172.17.46.131:8080 [20:28:13]Content-Length: 682 [20:28:13]Content-Type: application/json [20:28:13] [20:28:13]POST finish read [20:28:13]Found Content-Length = 682 [20:28:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412325", "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.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" ] } } [20:28:13]execute_script... [20:28: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)412325", "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.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" ] } } [20:28:13]POST & json_proto [20:28:13]process_json_proto [20:28:13]json parsed OK: [20:28:13]protocol is kg_v1.0 [20:28:13]action value=close_receipt [20:28:13]process_action close_receipt [20:28:13]cmd_close_receipt [20:28:13]MH_GetDate [20:28:13]Write to MH i2c: F0 00 00 2B 09 23 [20:28:13]Write i2c OK [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: F0 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: F0 09 00 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: F0 09 00 2B 09 00 DE 3E B6 67 7E 41 4F 65 D8 [20:28:13]GetLastDocTimeStamp 1739996621 [20:28:13]current date 1739996894 [20:28:13]FM_GetShiftState [20:28:13]SAM_PROTO_GetShiftState [20:28:13]wFMCommunicate request_size=4 [20:28:13]MH_SAM_APDU [20:28:13]CAPDU: 80 13 01 00 [20:28:13]Write to MH i2c: E2 08 00 2C 09 80 13 01 00 00 00 00 00 B2 [20:28:13]Write i2c OK [20:28:13]MH_I2C_Read... [20:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:13]Read from MH i2c: E2 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 0E 00 [20:28:13]MH_I2C_Read... [20:28:13]Read from MH i2c: E2 0E 00 2C 09 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 31 [20:28:13]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:28:13]wFMCommunicate OK [20:28:13]SAM_PROTO_GetShiftState done [20:28:13]FM_GetShiftState done [20:28:13]opened in 1739929631 [20:28:13]opened+sec_in_day 1740016031 [20:28:13]quantity*price = 200047 [20:28:13]sum+1 = 200048 [20:28:13]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 СНО: Общий режим Чек 236 19.02.2025 20:28 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187170 ФПД: 221853425138810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T202814&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187170&fm=221853425138810&tin=02508201610067®Number=0000000000091857&sum=200000 [20:28:14]StoreToDocumentArchive [20:28:14]shift 647 fd 187170 [20:28:14]save to /storage/0647/doc_00187170 [20:28:14]save last doc name /storage/0647/doc_00187170 to /storage/kkm_last_doc_name [20:28:14]save OK [20:28:14]Clear old archive folders... [20:28:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:28:14]tlvbuf is 01F6F820 [20:28:14]SAM_PROTO_ClearQueue [20:28:14]wFMCommunicate request_size=4 [20:28:14]MH_SAM_APDU [20:28:14]CAPDU: 80 09 00 00 [20:28:14]Write to MH i2c: E2 08 00 39 09 80 09 00 00 00 00 00 00 B4 [20:28:14]Write i2c OK [20:28:14]MH_I2C_Read... [20:28:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:14]Read from MH i2c: E2 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 03 00 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 03 00 39 09 00 90 00 B6 [20:28:14]RAPDU: 90 00 [20:28:14]wFMCommunicate OK [20:28:14]SAM_PROTO_ClearQueue done [20:28:14]KKMCreateOFDPacket [20:28:14]OFDProtocolAddRootSTLVToBuf [20:28:14]FM_MakeSignedData [20:28:14]FM_MakeSignedData [20:28:14]SAM_PROTO_SignData [20:28:14]wFMCommunicate request_size=4 [20:28:14]MH_SAM_APDU [20:28:14]CAPDU: 80 0D 01 02 [20:28:14]Write to MH i2c: E2 08 00 3A 09 80 0D 01 02 00 00 00 00 BC [20:28:14]Write i2c OK [20:28:14]MH_I2C_Read... [20:28:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:14]Read from MH i2c: E2 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 03 00 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 03 00 3A 09 00 90 00 B7 [20:28:14]RAPDU: 90 00 [20:28:14]wFMCommunicate OK [20:28:14]wFMCommunicate request_size=255 [20:28:14]MH_SAM_APDU [20:28: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 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 EC 00 00 00 F4 03 04 00 DE 3E B6 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 22 DB 02 00 35 04 06 00 C9 [20:28:14]Write to MH i2c: E2 02 01 3B 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 EC 00 00 00 F4 03 04 00 DE 3E B6 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 22 DB 02 00 35 04 06 00 C9 00 00 F9 [20:28:14]Write i2c OK [20:28:14]MH_I2C_Read... [20:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:14]Read from MH i2c: E2 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 03 00 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 03 00 3B 09 00 90 00 B8 [20:28:14]RAPDU: 90 00 [20:28:14]wFMCommunicate OK [20:28:14]wFMCommunicate request_size=10 [20:28:14]MH_SAM_APDU [20:28:14]CAPDU: 80 0D 02 02 05 C6 46 98 FC 7A [20:28:14]Write to MH i2c: E2 0D 00 3C 09 80 0D 02 02 05 00 C6 46 98 FC 7A 00 00 E3 [20:28:14]Write i2c OK [20:28:14]MH_I2C_Read... [20:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:14]Read from MH i2c: E2 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 03 00 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 03 00 3C 09 00 90 00 B9 [20:28:14]RAPDU: 90 00 [20:28:14]wFMCommunicate OK [20:28:14]wFMCommunicate request_size=4 [20:28:14]MH_SAM_APDU [20:28:14]CAPDU: 80 0D 03 02 [20:28:14]Write to MH i2c: E2 08 00 3D 09 80 0D 03 02 00 00 00 00 C1 [20:28:14]Write i2c OK [20:28:14]MH_I2C_Read... [20:28:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:14]Read from MH i2c: E2 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 0B 00 [20:28:14]MH_I2C_Read... [20:28:14]Read from MH i2c: E2 0B 00 3D 09 00 80 2C 4C 7F 97 73 FD 3E 90 00 7E [20:28:14]RAPDU: 80 2C 4C 7F 97 73 FD 3E 90 00 [20:28:14]wFMCommunicate OK [20:28:14]SAM_PROTO_SignData done [20:28:14]FM_MakeSignedData done [20:28:14]CreateOFDProtocolMessage [20:28:14]wFMCommunicate request_size=4 [20:28:14]MH_SAM_APDU [20:28:14]CAPDU: 80 11 00 00 [20:28:14]Write to MH i2c: E2 08 00 3E 09 80 11 00 00 00 00 00 00 C1 [20:28:14]Write i2c OK [20:28:14]MH_I2C_Read... [20:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:15]Read from MH i2c: E2 [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: E2 17 00 [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: E2 17 00 3E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 14 [20:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:28:15]wFMCommunicate OK [20:28:15]CreateOFDProtocolMessage done [20:28:15]OFDSenderStorePacket 187170 [20:28:15]StoreOFDPacket docnum=187170 [20:28: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 92 FA 07 01 22 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 EC 00 00 00 F4 03 04 00 DE 3E B6 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 22 DB 02 00 35 04 06 00 C9 C6 46 98 FC 7A 80 2C 4C 7F 97 73 FD 3E [20:28:15]CheckFolder [20:28:15]dirname=/storage/ofd_packets [20:28:15]CheckFolder done [20:28:15]ProducePacketName [20:28:15]name=ofd_packets/00187170 [20:28:15]NVStorageSaveData ofd_packets/00187170 [20:28:15]File name is /storage/ofd_packets/00187170 [20:28:15]Write 301 bytes [20:28:15]NVStorageSaveData done [20:28:15]OFDSenderStorePacket done [20:28:15]KKMCreateOFDPacket done [20:28:15]NVStorageSaveData kkm_last_timestamp [20:28:15]File name is /storage/kkm_last_timestamp [20:28:15]Write 4 bytes [20:28:15]NVStorageSaveData done [20:28:15]OFD Sender: Processing packet 187170 [packets to send 49, broken 48] [20:28:15]ProducePacketName [20:28:15]name=ofd_packets/00187170 [20:28:15]OFD Sender: To server: pG, [20:28:15]CommunicateWithHost lk.salyk.kg:30040 [20:28:15]ConnectInit lk.salyk.kg [20:28:15]ExternCall_PrintAddStr [20:28:15]wPrintStart [20:28:15]Write to MH i2c: 01 00 00 3F 09 48 [20:28:15]Write i2c OK [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: 01 [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: 01 07 00 [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: 01 07 00 3F 09 00 00 00 00 00 FF 0F 5D [20:28:15]RasterBufferAndPrint [20:28:15]line Счет N : (1)412325 [20:28:15]line ИНН: 02508201610067 [20:28:15]line Контрольно-Кассовый Чек [20:28:15]line ПРОДАЖА [20:28:15]line ТРК (МРК, ГНК) : 22 [20:28:15]line Товар: 2710124130 [20:28:15]line Аи-92-К-2 [20:28:15]line 31.160 * 64.20 [20:28:15]line = 2000.47 [20:28:15]line НДС 12% НСП 1% [20:28:15]line > о реализуемом товаре [20:28:15]line ОКРУГЛЕНИЕ: -0.47 [20:28:15]line ИТОГО: 2000.00 [20:28:15]line Внесено: 2000.00 [20:28:15]line СДАЧА: 0.00 [20:28:15]line НСП 1% : 17.70 [20:28:15]line НДС 12% : 212.44 [20:28:15]line Наличными: 2000.00 [20:28:15]line Безнал.: 0.00 [20:28:15]line Место: АЗС № 92 "Партнер Нефть" [20:28:15]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:28:15]line СНО: Общий режим [20:28:15]line Чек 236 19.02.2025 20:28 [20:28:15]line Смена: 647 ФФД: 1.0 [20:28:15]line ЗНМ: 0300000118 [20:28:15]line РНМ: 0000000000091857 [20:28:15]line Версия ККМ: 001 [20:28:15]line ФМ: 0000000000871826 [20:28:15]line ФД: 187170 [20:28:15]line ФПД: 221853425138810 [20:28:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T202814&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187170&fm=221853425138810&tin=02508201610067®Number=0000000000091857&sum=200000 [20:28:15]Connected sock=11 [20:28: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 92 FA 07 01 22 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 EC 00 00 00 F4 03 04 00 DE 3E B6 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 22 DB 02 00 35 04 06 00 C9 C6 46 98 FC 7A 80 2C 4C 7F 97 73 FD 3E [20:28:15]written 0, free lines is 4095 [20:28: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 2D B0 47 00 C7 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 22 DB 02 00 F4 03 04 00 31 E5 B5 67 B6 04 01 00 00 EF D1 EC 6F FE FA 68 51 [20:28:15]CommunicateWithHost err = 0 [20:28:15]CheckOFDResponse [20:28:15]1017 (14) - 77093643461234 [20:28:15]1041 (16) - 0000000000871826 [20:28:15]1040 (4) - 187170 [20:28:15]1012 (4) - 19.02.2025 14:05 [20:28:15]1206 (1) - 0 [20:28:15]OFD Sender: Remove packet 187170 [20:28:15]ProducePacketName [20:28:15]name=ofd_packets/00187170 [20:28:15]NVStorageDeleteData [20:28:15]Write to MH i2c: 01 00 00 6A 09 73 [20:28:15]Write i2c OK [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: 01 [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: 01 07 00 [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: 01 07 00 6A 09 00 00 00 00 00 F6 0C 7C [20:28:15]RasterBufferAndPrint [20:28:15]line [20:28:15]line [20:28:15]line [20:28:15]line [20:28:15]line [20:28:15]written 0, free lines is 3324 [20:28:15]MH_Cut [20:28:15]Write to MH i2c: D1 01 00 71 09 01 4C [20:28:15]Write i2c OK [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: D1 [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: D1 01 00 [20:28:15]MH_I2C_Read... [20:28:15]Read from MH i2c: D1 01 00 71 09 00 4B [20:28:15]Write to MH i2c: 01 00 00 72 09 7B [20:28:15]Write i2c OK [20:28:15]MH_I2C_Read... [20:28:16]OFD Sender: No OFD packet to send [20:28:16]*** Cut start [20:28:16]*** Partial cut [20:28:16]*** CUTSNS_PIN = 1 [20:28:16]*** CUTSNS_PIN = 0 [20:28:16]*** Brake cut motor [20:28:17]Read from MH i2c: 01 [20:28:17]MH_I2C_Read... [20:28:17]*** Stop cut motor [20:28:17]*** Cut end [20:28:17]Read from MH i2c: 01 07 00 [20:28:17]MH_I2C_Read... [20:28:17]Read from MH i2c: 01 07 00 72 09 00 00 00 00 00 FF 0F 90 [20:28:17]process_action close_receipt done [20:28:17]requested_data is exist [20:28:17]produce_requested_data [20:28:17]requested_item fm.sn is exist - process it [20:28:17]wFMCommunicate request_size=4 [20:28:17]MH_SAM_APDU [20:28:17]CAPDU: 80 11 00 00 [20:28:17]Write to MH i2c: E2 08 00 73 09 80 11 00 00 00 00 00 00 F6 [20:28:17]Write i2c OK [20:28:17]MH_I2C_Read... [20:28:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:17]Read from MH i2c: E2 [20:28:17]MH_I2C_Read... [20:28:17]Read from MH i2c: E2 17 00 [20:28:17]MH_I2C_Read... [20:28:17]Read from MH i2c: E2 17 00 73 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 49 [20:28:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:28:17]wFMCommunicate OK [20:28:17]requested_item fd.num is exist - process it [20:28:17]SAM_PROTO_GetFieldsCounters [20:28:17]wFMCommunicate request_size=4 [20:28:17]MH_SAM_APDU [20:28:17]CAPDU: 80 13 00 00 [20:28:17]Write to MH i2c: E2 08 00 74 09 80 13 00 00 00 00 00 00 F9 [20:28:17]Write i2c OK [20:28:17]MH_I2C_Read... [20:28:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:17]Read from MH i2c: E2 [20:28:17]MH_I2C_Read... [20:28:17]Read from MH i2c: E2 62 00 [20:28:17]MH_I2C_Read... [20:28:17]Read from MH i2c: E2 62 00 74 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 22 DB 02 00 0E 04 04 00 87 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 6B [20:28: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 22 DB 02 00 0E 04 04 00 87 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 [20:28:17]wFMCommunicate OK [20:28:17]SAM_PROTO_GetFieldsCounters done [20:28:17]requested_item shift.num is exist - process it [20:28:17]requested_item shift.opened is exist - process it [20:28:17]req_shift_opened [20:28:17]FM_GetShiftState [20:28:17]SAM_PROTO_GetShiftState [20:28:17]wFMCommunicate request_size=4 [20:28:17]MH_SAM_APDU [20:28:17]CAPDU: 80 13 01 00 [20:28:17]Write to MH i2c: E2 08 00 75 09 80 13 01 00 00 00 00 00 FB [20:28:17]Write i2c OK [20:28:17]MH_I2C_Read... [20:28:17]Read from MH i2c: E2 [20:28:17]MH_I2C_Read... [20:28:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:17]Read from MH i2c: E2 0E 00 [20:28:17]MH_I2C_Read... [20:28:17]Read from MH i2c: E2 0E 00 75 09 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 7A [20:28:17]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:28:17]wFMCommunicate OK [20:28:17]SAM_PROTO_GetShiftState done [20:28:17]FM_GetShiftState done [20:28:17]req_shift_opened done [20:28:17]requested_item shift.open_date is exist - process it [20:28:17]req_shift_open_date [20:28:17]req_shift_open_date done [20:28:17]produce_requested_data done [20:28:17]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187170,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [20:28:17]process_action_free close_receipt [20:28:17]json_value_free [20:28:17]json_value_free done [20:28:17]process_json_proto returns [20:28:17]Send response to host [20:28:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187170,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [20:28:17]free response buf [20:28:17]execute_script done [20:28:17]execute_script returns [20:28:17]free content buf [20:28:17]Sock 7.Close socket [20:28:17]Sock 7.Thread stoped [20:28:21]OFD Sender: No OFD packet to send [20:28:26]OFD Sender: No OFD packet to send [20:28:31]OFD Sender: No OFD packet to send [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]OFD Sender: No OFD packet to send [20:30:36]OFD Sender: No OFD packet to send [20:30:41]OFD Sender: No OFD packet to send [20:30:46]OFD Sender: No OFD packet to send [20:30:51]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:56]OFD Sender: No OFD packet to send [20:32:01]OFD Sender: No OFD packet to send [20:32:06]OFD Sender: No OFD packet to send [20:32:11]OFD Sender: No OFD packet to send [20:32:16]OFD Sender: No OFD packet to send [20:32:21]OFD Sender: No OFD packet to send [20:32:26]OFD Sender: No OFD packet to send [20:32:31]OFD Sender: No OFD packet to send [20:32:36]OFD Sender: No OFD packet to send [20:32:41]OFD Sender: No OFD packet to send [20:32:46]OFD Sender: No OFD packet to send [20:32:51]OFD Sender: No OFD packet to send [20:32:56]OFD Sender: No OFD packet to send [20:33:01]OFD Sender: No OFD packet to send [20:33:06]OFD Sender: No OFD packet to send [20:33:11]OFD Sender: No OFD packet to send [20:33:16]OFD Sender: No OFD packet to send [20:33:21]accept exits with 9 [20:33:21]New connection [20:33:21]New thread 3066654052 created [20:33:21]Thread 3066510692 joined [20:33:21]Waiting for new connection... [20:33:21] Sock 9.Parse request [20:33:21]Sock 9.Check first char [20:33:21]Sock 9.First char is OK [20:33:21]request: POST /json_proto HTTP/1.0 [20:33:21]Method: POST [20:33:21]URL: /json_proto [20:33:21]Method is POST - this is cgi request [20:33:21]url: /json_proto [20:33:21]query_string will be loaded in cgi processing [20:33:21]execute_cgi json_proto POST (null) [20:33:21]execute_cgi path=json_proto method=POST [20:33:21]POST find Content-Length [20:33:21]Host: 172.17.46.131:8080 [20:33:21]Content-Length: 803 [20:33:21]Content-Type: application/json [20:33:21] [20:33:21]POST finish read [20:33:21]Found Content-Length = 803 [20:33:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412326", "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 }]} ], "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" : 1200.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:21]execute_script... [20:33:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412326", "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 }]} ], "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" : 1200.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:21]POST & json_proto [20:33:21]process_json_proto [20:33:21]json parsed OK: [20:33:21]protocol is kg_v1.0 [20:33:21]action value=close_receipt [20:33:21]process_action close_receipt [20:33:21]cmd_close_receipt [20:33:21]MH_GetDate [20:33:21]Write to MH i2c: F0 00 00 76 09 6E [20:33:21]Write i2c OK [20:33:21]MH_I2C_Read... [20:33:21]Read from MH i2c: F0 [20:33:21]MH_I2C_Read... [20:33:21]Read from MH i2c: F0 09 00 [20:33:21]MH_I2C_Read... [20:33:21]Read from MH i2c: F0 09 00 76 09 00 12 40 B6 67 7E 41 4F 65 59 [20:33:21]GetLastDocTimeStamp 1739996894 [20:33:21]current date 1739997202 [20:33:21]FM_GetShiftState [20:33:21]SAM_PROTO_GetShiftState [20:33:21]wFMCommunicate request_size=4 [20:33:21]MH_SAM_APDU [20:33:21]CAPDU: 80 13 01 00 [20:33:21]Write to MH i2c: E2 08 00 77 09 80 13 01 00 00 00 00 00 FD [20:33:21]Write i2c OK [20:33:21]MH_I2C_Read... [20:33:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:21]Read from MH i2c: E2 [20:33:21]MH_I2C_Read... [20:33:21]Read from MH i2c: E2 0E 00 [20:33:21]MH_I2C_Read... [20:33:21]Read from MH i2c: E2 0E 00 77 09 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 7C [20:33:21]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:33:21]wFMCommunicate OK [20:33:21]SAM_PROTO_GetShiftState done [20:33:21]FM_GetShiftState done [20:33:21]opened in 1739929631 [20:33:21]opened+sec_in_day 1740016031 [20:33:21]quantity*price = 120054 [20:33:21]sum+1 = 120055 [20:33:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.54 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 0.00 Безнал.: 1200.54 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 237 19.02.2025 20:33 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187171 ФПД: 163412276749422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T203322&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187171&fm=163412276749422&tin=02508201610067®Number=0000000000091857&sum=120054 [20:33:22]StoreToDocumentArchive [20:33:22]shift 647 fd 187171 [20:33:22]save to /storage/0647/doc_00187171 [20:33:22]save last doc name /storage/0647/doc_00187171 to /storage/kkm_last_doc_name [20:33:22]save OK [20:33:22]Clear old archive folders... [20:33:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:33:22]tlvbuf is 01F45330 [20:33:22]SAM_PROTO_ClearQueue [20:33:22]wFMCommunicate request_size=4 [20:33:22]MH_SAM_APDU [20:33:22]CAPDU: 80 09 00 00 [20:33:22]Write to MH i2c: E2 08 00 84 09 80 09 00 00 00 00 00 00 FF [20:33:22]Write i2c OK [20:33:22]MH_I2C_Read... [20:33:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:22]Read from MH i2c: E2 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: E2 03 00 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: E2 03 00 84 09 00 90 00 01 [20:33:22]RAPDU: 90 00 [20:33:22]wFMCommunicate OK [20:33:22]SAM_PROTO_ClearQueue done [20:33:22]KKMCreateOFDPacket [20:33:22]OFDProtocolAddRootSTLVToBuf [20:33:22]FM_MakeSignedData [20:33:22]FM_MakeSignedData [20:33:22]SAM_PROTO_SignData [20:33:22]wFMCommunicate request_size=4 [20:33:22]MH_SAM_APDU [20:33:22]CAPDU: 80 0D 01 02 [20:33:22]Write to MH i2c: E2 08 00 85 09 80 0D 01 02 00 00 00 00 07 [20:33:22]Write i2c OK [20:33:22]MH_I2C_Read... [20:33:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:22]Read from MH i2c: E2 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: E2 03 00 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: E2 03 00 85 09 00 90 00 02 [20:33:22]RAPDU: 90 00 [20:33:22]wFMCommunicate OK [20:33:22]wFMCommunicate request_size=255 [20:33:22]MH_SAM_APDU [20:33:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F6 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 12 40 B6 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 23 DB 02 00 35 04 06 00 94 [20:33:22]Write to MH i2c: E2 02 01 86 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F6 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 12 40 B6 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 23 DB 02 00 35 04 06 00 94 00 00 97 [20:33:22]Write i2c OK [20:33:22]MH_I2C_Read... [20:33:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:22]Read from MH i2c: E2 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: E2 03 00 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: E2 03 00 86 09 00 90 00 03 [20:33:22]RAPDU: 90 00 [20:33:22]wFMCommunicate OK [20:33:22]wFMCommunicate request_size=10 [20:33:22]MH_SAM_APDU [20:33:22]CAPDU: 80 0D 02 02 05 9F 62 B5 24 6E [20:33:22]Write to MH i2c: E2 0D 00 87 09 80 0D 02 02 05 00 9F 62 B5 24 6E 00 00 5C [20:33:22]Write i2c OK [20:33:22]MH_I2C_Read... [20:33:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:22]Read from MH i2c: E2 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: E2 03 00 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: E2 03 00 87 09 00 90 00 04 [20:33:22]RAPDU: 90 00 [20:33:22]wFMCommunicate OK [20:33:22]wFMCommunicate request_size=4 [20:33:22]MH_SAM_APDU [20:33:22]CAPDU: 80 0D 03 02 [20:33:22]Write to MH i2c: E2 08 00 88 09 80 0D 03 02 00 00 00 00 0C [20:33:22]Write i2c OK [20:33:22]MH_I2C_Read... [20:33:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:22]Read from MH i2c: E2 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: E2 0B 00 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: E2 0B 00 88 09 00 42 FE 6D 87 B3 F3 98 7C 90 00 FB [20:33:22]RAPDU: 42 FE 6D 87 B3 F3 98 7C 90 00 [20:33:22]wFMCommunicate OK [20:33:22]SAM_PROTO_SignData done [20:33:22]FM_MakeSignedData done [20:33:22]CreateOFDProtocolMessage [20:33:22]wFMCommunicate request_size=4 [20:33:22]MH_SAM_APDU [20:33:22]CAPDU: 80 11 00 00 [20:33:22]Write to MH i2c: E2 08 00 89 09 80 11 00 00 00 00 00 00 0C [20:33:22]Write i2c OK [20:33:22]MH_I2C_Read... [20:33:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:22]Read from MH i2c: E2 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: E2 17 00 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: E2 17 00 89 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5F [20:33:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:33:22]wFMCommunicate OK [20:33:22]CreateOFDProtocolMessage done [20:33:22]OFDSenderStorePacket 187171 [20:33:22]StoreOFDPacket docnum=187171 [20:33: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 0F 01 00 00 BB 92 07 01 92 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F6 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 12 40 B6 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 23 DB 02 00 35 04 06 00 94 9F 62 B5 24 6E 42 FE 6D 87 B3 F3 98 7C [20:33:22]CheckFolder [20:33:22]dirname=/storage/ofd_packets [20:33:22]CheckFolder done [20:33:22]ProducePacketName [20:33:22]name=ofd_packets/00187171 [20:33:22]NVStorageSaveData ofd_packets/00187171 [20:33:22]File name is /storage/ofd_packets/00187171 [20:33:22]Write 301 bytes [20:33:22]NVStorageSaveData done [20:33:22]OFDSenderStorePacket done [20:33:22]KKMCreateOFDPacket done [20:33:22]NVStorageSaveData kkm_last_timestamp [20:33:22]File name is /storage/kkm_last_timestamp [20:33:22]Write 4 bytes [20:33:22]NVStorageSaveData done [20:33:22]ExternCall_PrintAddStr [20:33:22]wPrintStart [20:33:22]Write to MH i2c: 01 00 00 8A 09 93 [20:33:22]Write i2c OK [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: 01 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: 01 07 00 [20:33:22]MH_I2C_Read... [20:33:22]Read from MH i2c: 01 07 00 8A 09 00 00 00 00 00 FF 0F A8 [20:33:22]RasterBufferAndPrint [20:33:22]line Счет N : (1)412326 [20:33:22]line ИНН: 02508201610067 [20:33:22]line Контрольно-Кассовый Чек [20:33:22]line ПРОДАЖА [20:33:22]line ТРК (МРК, ГНК) : 32 [20:33:22]line Товар: 2710124130 [20:33:22]line Аи-92-К-2 [20:33:22]line 18.700 * 64.20 [20:33:22]line = 1200.54 [20:33:22]line НДС 12% НСП 1% [20:33:22]line > о реализуемом товаре [20:33:22]line ИТОГО: 1200.54 [20:33:22]line НСП 1% : 10.62 [20:33:22]line НДС 12% : 127.49 [20:33:22]line Наличными: 0.00 [20:33:22]line Безнал.: 1200.54 [20:33:22]line Место: АЗС № 92 "Партнер Нефть" [20:33:22]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:33:22]line СНО: Общий режим [20:33:22]line Чек 237 19.02.2025 20:33 [20:33:22]line Смена: 647 ФФД: 1.0 [20:33:22]line ЗНМ: 0300000118 [20:33:22]line РНМ: 0000000000091857 [20:33:22]line Версия ККМ: 001 [20:33:22]line Платежная система: O! деньги [20:33:22]line ФМ: 0000000000871826 [20:33:22]line ФД: 187171 [20:33:22]line ФПД: 163412276749422 [20:33:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T203322&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187171&fm=163412276749422&tin=02508201610067®Number=0000000000091857&sum=120054 [20:33:23]written 0, free lines is 4095 [20:33:23]OFD Sender: Processing packet 187171 [packets to send 49, broken 48] [20:33:23]ProducePacketName [20:33:23]name=ofd_packets/00187171 [20:33:23]OFD Sender: To server: pG, [20:33:23]CommunicateWithHost lk.salyk.kg:30040 [20:33:23]ConnectInit lk.salyk.kg [20:33:23]Connected sock=10 [20:33:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BB 92 07 01 92 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F6 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 12 40 B6 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 23 DB 02 00 35 04 06 00 94 9F 62 B5 24 6E 42 FE 6D 87 B3 F3 98 7C [20:33: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 F1 39 47 00 BB 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 23 DB 02 00 F4 03 04 00 65 E6 B5 67 B6 04 01 00 00 4B 29 10 05 21 09 01 B6 [20:33:23]CommunicateWithHost err = 0 [20:33:23]CheckOFDResponse [20:33:23]1017 (14) - 77093643461234 [20:33:23]1041 (16) - 0000000000871826 [20:33:23]1040 (4) - 187171 [20:33:23]1012 (4) - 19.02.2025 14:10 [20:33:23]1206 (1) - 0 [20:33:23]OFD Sender: Remove packet 187171 [20:33:23]ProducePacketName [20:33:23]name=ofd_packets/00187171 [20:33:23]NVStorageDeleteData [20:33:23]Write to MH i2c: 01 00 00 B4 09 BD [20:33:23]Write i2c OK [20:33:23]MH_I2C_Read... [20:33:23]Read from MH i2c: 01 [20:33:23]MH_I2C_Read... [20:33:23]Read from MH i2c: 01 07 00 [20:33:23]MH_I2C_Read... [20:33:23]Read from MH i2c: 01 07 00 B4 09 00 00 00 00 00 0D 0D DE [20:33:23]RasterBufferAndPrint [20:33:23]line [20:33:23]line [20:33:23]line [20:33:23]line [20:33:23]line [20:33:23]written 0, free lines is 3348 [20:33:23]MH_Cut [20:33:23]Write to MH i2c: D1 01 00 BB 09 01 96 [20:33:23]Write i2c OK [20:33:23]MH_I2C_Read... [20:33:23]Read from MH i2c: D1 [20:33:23]MH_I2C_Read... [20:33:23]Read from MH i2c: D1 01 00 [20:33:23]MH_I2C_Read... [20:33:23]Read from MH i2c: D1 01 00 BB 09 00 95 [20:33:23]Write to MH i2c: 01 00 00 BC 09 C5 [20:33:23]Write i2c OK [20:33:23]MH_I2C_Read... [20:33:24]OFD Sender: No OFD packet to send [20:33:24]*** Cut start [20:33:24]*** Partial cut [20:33:24]*** CUTSNS_PIN = 1 [20:33:24]*** CUTSNS_PIN = 0 [20:33:24]*** Brake cut motor [20:33:25]Read from MH i2c: 01 [20:33:25]MH_I2C_Read... [20:33:25]*** Stop cut motor [20:33:25]*** Cut end [20:33:25]Read from MH i2c: 01 07 00 [20:33:25]MH_I2C_Read... [20:33:25]Read from MH i2c: 01 07 00 BC 09 00 00 00 00 00 FF 0F DA [20:33:25]process_action close_receipt done [20:33:25]requested_data is exist [20:33:25]produce_requested_data [20:33:25]requested_item fm.sn is exist - process it [20:33:25]wFMCommunicate request_size=4 [20:33:25]MH_SAM_APDU [20:33:25]CAPDU: 80 11 00 00 [20:33:25]Write to MH i2c: E2 08 00 BD 09 80 11 00 00 00 00 00 00 40 [20:33:25]Write i2c OK [20:33:25]MH_I2C_Read... [20:33:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:25]Read from MH i2c: E2 [20:33:25]MH_I2C_Read... [20:33:25]Read from MH i2c: E2 17 00 [20:33:25]MH_I2C_Read... [20:33:25]Read from MH i2c: E2 17 00 BD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 93 [20:33:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:33:25]wFMCommunicate OK [20:33:25]requested_item fd.num is exist - process it [20:33:25]SAM_PROTO_GetFieldsCounters [20:33:25]wFMCommunicate request_size=4 [20:33:25]MH_SAM_APDU [20:33:25]CAPDU: 80 13 00 00 [20:33:25]Write to MH i2c: E2 08 00 BE 09 80 13 00 00 00 00 00 00 43 [20:33:25]Write i2c OK [20:33:25]MH_I2C_Read... [20:33:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:25]Read from MH i2c: E2 [20:33:25]MH_I2C_Read... [20:33:25]Read from MH i2c: E2 62 00 [20:33:25]MH_I2C_Read... [20:33:25]Read from MH i2c: E2 62 00 BE 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 23 DB 02 00 0E 04 04 00 87 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 B9 [20:33:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DB 02 00 0E 04 04 00 87 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 [20:33:25]wFMCommunicate OK [20:33:25]SAM_PROTO_GetFieldsCounters done [20:33:25]requested_item shift.num is exist - process it [20:33:25]requested_item shift.opened is exist - process it [20:33:25]req_shift_opened [20:33:25]FM_GetShiftState [20:33:25]SAM_PROTO_GetShiftState [20:33:25]wFMCommunicate request_size=4 [20:33:25]MH_SAM_APDU [20:33:25]CAPDU: 80 13 01 00 [20:33:25]Write to MH i2c: E2 08 00 BF 09 80 13 01 00 00 00 00 00 45 [20:33:25]Write i2c OK [20:33:25]MH_I2C_Read... [20:33:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:25]Read from MH i2c: E2 [20:33:25]MH_I2C_Read... [20:33:25]Read from MH i2c: E2 0E 00 [20:33:25]MH_I2C_Read... [20:33:25]Read from MH i2c: E2 0E 00 BF 09 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C4 [20:33:25]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:33:25]wFMCommunicate OK [20:33:25]SAM_PROTO_GetShiftState done [20:33:25]FM_GetShiftState done [20:33:25]req_shift_opened done [20:33:25]requested_item shift.open_date is exist - process it [20:33:25]req_shift_open_date [20:33:25]req_shift_open_date done [20:33:25]produce_requested_data done [20:33:25]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187171,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [20:33:25]process_action_free close_receipt [20:33:25]json_value_free [20:33:25]json_value_free done [20:33:25]process_json_proto returns [20:33:25]Send response to host [20:33:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187171,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [20:33:25]free response buf [20:33:25]execute_script done [20:33:25]execute_script returns [20:33:25]free content buf [20:33:25]Sock 9.Close socket [20:33:25]Sock 9.Thread stoped [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:03]accept exits with 7 [20:35:03]New connection [20:35:03]New thread 3066510692 created [20:35:03]Thread 3066654052 joined [20:35:03]Waiting for new connection... [20:35:03] Sock 7.Parse request [20:35:03]Sock 7.Check first char [20:35:03]Sock 7.First char is OK [20:35:03]request: POST /json_proto HTTP/1.0 [20:35:03]Method: POST [20:35:03]URL: /json_proto [20:35:03]Method is POST - this is cgi request [20:35:03]url: /json_proto [20:35:03]query_string will be loaded in cgi processing [20:35:03]execute_cgi json_proto POST (null) [20:35:03]execute_cgi path=json_proto method=POST [20:35:03]POST find Content-Length [20:35:03]Host: 172.17.46.131:8080 [20:35:03]Content-Length: 682 [20:35:03]Content-Type: application/json [20:35:03] [20:35:03]POST finish read [20:35:03]Found Content-Length = 682 [20:35:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412327", "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" ] } } [20:35:03]execute_script... [20:35:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412327", "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" ] } } [20:35:03]POST & json_proto [20:35:03]process_json_proto [20:35:03]json parsed OK: [20:35:03]protocol is kg_v1.0 [20:35:03]action value=close_receipt [20:35:03]process_action close_receipt [20:35:03]cmd_close_receipt [20:35:03]MH_GetDate [20:35:03]Write to MH i2c: F0 00 00 C0 09 B8 [20:35:03]Write i2c OK [20:35:03]MH_I2C_Read... [20:35:03]Read from MH i2c: F0 [20:35:03]MH_I2C_Read... [20:35:03]Read from MH i2c: F0 09 00 [20:35:03]MH_I2C_Read... [20:35:03]Read from MH i2c: F0 09 00 C0 09 00 78 40 B6 67 7E 41 4F 65 09 [20:35:03]GetLastDocTimeStamp 1739997202 [20:35:03]current date 1739997304 [20:35:03]FM_GetShiftState [20:35:03]SAM_PROTO_GetShiftState [20:35:03]wFMCommunicate request_size=4 [20:35:03]MH_SAM_APDU [20:35:03]CAPDU: 80 13 01 00 [20:35:03]Write to MH i2c: E2 08 00 C1 09 80 13 01 00 00 00 00 00 47 [20:35:03]Write i2c OK [20:35:03]MH_I2C_Read... [20:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:03]Read from MH i2c: E2 [20:35:03]MH_I2C_Read... [20:35:03]Read from MH i2c: E2 0E 00 [20:35:03]MH_I2C_Read... [20:35:03]Read from MH i2c: E2 0E 00 C1 09 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C6 [20:35:03]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:35:03]wFMCommunicate OK [20:35:03]SAM_PROTO_GetShiftState done [20:35:03]FM_GetShiftState done [20:35:03]opened in 1739929631 [20:35:03]opened+sec_in_day 1740016031 [20:35:03]quantity*price = 200025 [20:35:03]sum+1 = 200027 [20:35:03]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 СНО: Общий режим Чек 238 19.02.2025 20:35 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187172 ФПД: 270693051417287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T203504&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187172&fm=270693051417287&tin=02508201610067®Number=0000000000091857&sum=200000 [20:35:04]StoreToDocumentArchive [20:35:04]shift 647 fd 187172 [20:35:04]save to /storage/0647/doc_00187172 [20:35:04]save last doc name /storage/0647/doc_00187172 to /storage/kkm_last_doc_name [20:35:04]save OK [20:35:04]Clear old archive folders... [20:35:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:35:04]tlvbuf is 01F23EB0 [20:35:04]SAM_PROTO_ClearQueue [20:35:04]wFMCommunicate request_size=4 [20:35:04]MH_SAM_APDU [20:35:04]CAPDU: 80 09 00 00 [20:35:04]Write to MH i2c: E2 08 00 CE 09 80 09 00 00 00 00 00 00 49 [20:35:04]Write i2c OK [20:35:04]MH_I2C_Read... [20:35:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:35:04]Read from MH i2c: E2 [20:35:04]MH_I2C_Read... [20:35:04]Read from MH i2c: E2 03 00 [20:35:04]MH_I2C_Read... [20:35:04]Read from MH i2c: E2 03 00 CE 09 00 90 00 4B [20:35:04]RAPDU: 90 00 [20:35:04]wFMCommunicate OK [20:35:04]SAM_PROTO_ClearQueue done [20:35:04]KKMCreateOFDPacket [20:35:04]OFDProtocolAddRootSTLVToBuf [20:35:04]FM_MakeSignedData [20:35:04]FM_MakeSignedData [20:35:04]SAM_PROTO_SignData [20:35:04]wFMCommunicate request_size=4 [20:35:04]MH_SAM_APDU [20:35:04]CAPDU: 80 0D 01 02 [20:35:04]Write to MH i2c: E2 08 00 CF 09 80 0D 01 02 00 00 00 00 51 [20:35:04]Write i2c OK [20:35:04]MH_I2C_Read... [20:35:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:35:04]Read from MH i2c: E2 [20:35:04]MH_I2C_Read... [20:35:04]Read from MH i2c: E2 03 00 [20:35:04]MH_I2C_Read... [20:35:04]Read from MH i2c: E2 03 00 CF 09 00 90 00 4C [20:35:04]RAPDU: 90 00 [20:35:04]wFMCommunicate OK [20:35:04]wFMCommunicate request_size=255 [20:35:04]MH_SAM_APDU [20:35:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 EE 00 00 00 F4 03 04 00 78 40 B6 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 24 DB 02 00 35 04 06 00 F6 [20:35:04]Write to MH i2c: E2 02 01 D0 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 EE 00 00 00 F4 03 04 00 78 40 B6 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 24 DB 02 00 35 04 06 00 F6 00 00 37 [20:35:04]Write i2c OK [20:35:04]MH_I2C_Read... [20:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:04]Read from MH i2c: E2 [20:35:04]MH_I2C_Read... [20:35:04]Read from MH i2c: E2 03 00 [20:35:04]MH_I2C_Read... [20:35:04]Read from MH i2c: E2 03 00 D0 09 00 90 00 4D [20:35:04]RAPDU: 90 00 [20:35:04]wFMCommunicate OK [20:35:04]wFMCommunicate request_size=10 [20:35:04]MH_SAM_APDU [20:35:04]CAPDU: 80 0D 02 02 05 31 A3 2C 42 C7 [20:35:04]Write to MH i2c: E2 0D 00 D1 09 80 0D 02 02 05 00 31 A3 2C 42 C7 00 00 67 [20:35:04]Write i2c OK [20:35:04]MH_I2C_Read... [20:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:04]Read from MH i2c: E2 [20:35:04]MH_I2C_Read... [20:35:04]Read from MH i2c: E2 03 00 [20:35:04]MH_I2C_Read... [20:35:04]Read from MH i2c: E2 03 00 D1 09 00 90 00 4E [20:35:04]RAPDU: 90 00 [20:35:04]wFMCommunicate OK [20:35:04]wFMCommunicate request_size=4 [20:35:04]MH_SAM_APDU [20:35:04]CAPDU: 80 0D 03 02 [20:35:04]Write to MH i2c: E2 08 00 D2 09 80 0D 03 02 00 00 00 00 56 [20:35:04]Write i2c OK [20:35:04]MH_I2C_Read... [20:35:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:35:04]Read from MH i2c: E2 [20:35:04]MH_I2C_Read... [20:35:04]Read from MH i2c: E2 0B 00 [20:35:04]MH_I2C_Read... [20:35:04]Read from MH i2c: E2 0B 00 D2 09 00 66 69 9C 6A AD DF F0 ED 90 00 95 [20:35:04]RAPDU: 66 69 9C 6A AD DF F0 ED 90 00 [20:35:04]wFMCommunicate OK [20:35:04]SAM_PROTO_SignData done [20:35:04]FM_MakeSignedData done [20:35:04]CreateOFDProtocolMessage [20:35:04]wFMCommunicate request_size=4 [20:35:04]MH_SAM_APDU [20:35:04]CAPDU: 80 11 00 00 [20:35:04]Write to MH i2c: E2 08 00 D3 09 80 11 00 00 00 00 00 00 56 [20:35:04]Write i2c OK [20:35:04]MH_I2C_Read... [20:35:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:04]Read from MH i2c: E2 [20:35:04]MH_I2C_Read... [20:35:04]Read from MH i2c: E2 17 00 [20:35:04]MH_I2C_Read... [20:35:04]Read from MH i2c: E2 17 00 D3 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A9 [20:35:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:35:04]wFMCommunicate OK [20:35:04]CreateOFDProtocolMessage done [20:35:04]OFDSenderStorePacket 187172 [20:35:04]StoreOFDPacket docnum=187172 [20:35: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 D2 2F 07 01 31 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 EE 00 00 00 F4 03 04 00 78 40 B6 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 24 DB 02 00 35 04 06 00 F6 31 A3 2C 42 C7 66 69 9C 6A AD DF F0 ED [20:35:04]CheckFolder [20:35:04]dirname=/storage/ofd_packets [20:35:04]CheckFolder done [20:35:04]ProducePacketName [20:35:04]name=ofd_packets/00187172 [20:35:04]NVStorageSaveData ofd_packets/00187172 [20:35:04]File name is /storage/ofd_packets/00187172 [20:35:04]Write 301 bytes [20:35:04]NVStorageSaveData done [20:35:04]OFDSenderStorePacket done [20:35:04]KKMCreateOFDPacket done [20:35:04]NVStorageSaveData kkm_last_timestamp [20:35:04]File name is /storage/kkm_last_timestamp [20:35:04]Write 4 bytes [20:35:04]NVStorageSaveData done [20:35:04]ExternCall_PrintAddStr [20:35:04]wPrintStart [20:35:04]Write to MH i2c: 01 00 00 D4 09 DD [20:35:04]Write i2c OK [20:35:04]MH_I2C_Read... [20:35:04]Read from MH i2c: 01 [20:35:04]MH_I2C_Read... [20:35:04]Read from MH i2c: 01 07 00 [20:35:04]MH_I2C_Read... [20:35:04]Read from MH i2c: 01 07 00 D4 09 00 00 00 00 00 FF 0F F2 [20:35:04]RasterBufferAndPrint [20:35:04]line Счет N : (1)412327 [20:35:04]line ИНН: 02508201610067 [20:35:04]line Контрольно-Кассовый Чек [20:35:04]line ПРОДАЖА [20:35:04]line ТРК (МРК, ГНК) : 23 [20:35:04]line Товар: 2710124500 [20:35:04]line Аи-95-К-5 [20:35:04]line 27.820 * 71.90 [20:35:04]line = 2000.26 [20:35:04]line НДС 12% НСП 1% [20:35:04]line > о реализуемом товаре [20:35:04]line ОКРУГЛЕНИЕ: -0.26 [20:35:04]line ИТОГО: 2000.00 [20:35:04]line Внесено: 2000.00 [20:35:04]line СДАЧА: 0.00 [20:35:04]line НСП 1% : 17.70 [20:35:04]line НДС 12% : 212.42 [20:35:04]line Наличными: 2000.00 [20:35:04]line Безнал.: 0.00 [20:35:04]line Место: АЗС № 92 "Партнер Нефть" [20:35:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:35:04]line СНО: Общий режим [20:35:04]line Чек 238 19.02.2025 20:35 [20:35:04]line Смена: 647 ФФД: 1.0 [20:35:04]line ЗНМ: 0300000118 [20:35:04]line РНМ: 0000000000091857 [20:35:04]line Версия ККМ: 001 [20:35:04]line ФМ: 0000000000871826 [20:35:04]line ФД: 187172 [20:35:04]line ФПД: 270693051417287 [20:35:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T203504&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187172&fm=270693051417287&tin=02508201610067®Number=0000000000091857&sum=200000 [20:35:05]OFD Sender: Processing packet 187172 [packets to send 49, broken 48] [20:35:05]ProducePacketName [20:35:05]name=ofd_packets/00187172 [20:35:05]OFD Sender: To server: pG, [20:35:05]CommunicateWithHost lk.salyk.kg:30040 [20:35:05]ConnectInit lk.salyk.kg [20:35:05]written 0, free lines is 4095 [20:35:05]Connected sock=9 [20:35:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D2 2F 07 01 31 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 EE 00 00 00 F4 03 04 00 78 40 B6 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 24 DB 02 00 35 04 06 00 F6 31 A3 2C 42 C7 66 69 9C 6A AD DF F0 ED [20:35:05]Write to MH i2c: 01 00 00 FF 09 08 [20:35:05]Write i2c OK [20:35:05]MH_I2C_Read... [20:35:05]Read from MH i2c: 01 [20:35:05]MH_I2C_Read... [20:35:05]Read from MH i2c: 01 07 00 [20:35:05]MH_I2C_Read... [20:35:05]Read from MH i2c: 01 07 00 FF 09 00 00 00 00 00 F6 0C 11 [20:35:05]RasterBufferAndPrint [20:35:05]line [20:35:05]line [20:35:05]line [20:35:05]line [20:35:05]line [20:35:05]written 0, free lines is 3325 [20:35:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2D CB 47 00 FE 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 24 DB 02 00 F4 03 04 00 CB E6 B5 67 B6 04 01 00 00 85 CA AB 54 5F A9 3F 8E [20:35:05]CommunicateWithHost err = 0 [20:35:05]CheckOFDResponse [20:35:05]1017 (14) - 77093643461234 [20:35:05]1041 (16) - 0000000000871826 [20:35:05]1040 (4) - 187172 [20:35:05]1012 (4) - 19.02.2025 14:12 [20:35:05]1206 (1) - 0 [20:35:05]OFD Sender: Remove packet 187172 [20:35:05]ProducePacketName [20:35:05]name=ofd_packets/00187172 [20:35:05]NVStorageDeleteData [20:35:05]MH_Cut [20:35:05]Write to MH i2c: D1 01 00 06 0A 01 E2 [20:35:05]Write i2c OK [20:35:05]MH_I2C_Read... [20:35:05]Read from MH i2c: D1 [20:35:05]MH_I2C_Read... [20:35:05]Read from MH i2c: D1 01 00 [20:35:05]MH_I2C_Read... [20:35:05]Read from MH i2c: D1 01 00 06 0A 00 E1 [20:35:05]Write to MH i2c: 01 00 00 07 0A 11 [20:35:05]Write i2c OK [20:35:05]MH_I2C_Read... [20:35:06]OFD Sender: No OFD packet to send [20:35:06]*** Cut start [20:35:06]*** Partial cut [20:35:06]*** CUTSNS_PIN = 1 [20:35:06]*** CUTSNS_PIN = 0 [20:35:06]*** Brake cut motor [20:35:07]Read from MH i2c: 01 [20:35:07]MH_I2C_Read... [20:35:07]*** Stop cut motor [20:35:07]*** Cut end [20:35:07]Read from MH i2c: 01 07 00 [20:35:07]MH_I2C_Read... [20:35:07]Read from MH i2c: 01 07 00 07 0A 00 00 00 00 00 FF 0F 26 [20:35:07]process_action close_receipt done [20:35:07]requested_data is exist [20:35:07]produce_requested_data [20:35:07]requested_item fm.sn is exist - process it [20:35:07]wFMCommunicate request_size=4 [20:35:07]MH_SAM_APDU [20:35:07]CAPDU: 80 11 00 00 [20:35:07]Write to MH i2c: E2 08 00 08 0A 80 11 00 00 00 00 00 00 8C [20:35:07]Write i2c OK [20:35:07]MH_I2C_Read... [20:35:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:07]Read from MH i2c: E2 [20:35:07]MH_I2C_Read... [20:35:07]Read from MH i2c: E2 17 00 [20:35:07]MH_I2C_Read... [20:35:07]Read from MH i2c: E2 17 00 08 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DF [20:35: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:35:07]wFMCommunicate OK [20:35:07]requested_item fd.num is exist - process it [20:35:07]SAM_PROTO_GetFieldsCounters [20:35:07]wFMCommunicate request_size=4 [20:35:07]MH_SAM_APDU [20:35:07]CAPDU: 80 13 00 00 [20:35:07]Write to MH i2c: E2 08 00 09 0A 80 13 00 00 00 00 00 00 8F [20:35:07]Write i2c OK [20:35:07]MH_I2C_Read... [20:35:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:35:07]Read from MH i2c: E2 [20:35:07]MH_I2C_Read... [20:35:07]Read from MH i2c: E2 62 00 [20:35:07]MH_I2C_Read... [20:35:07]Read from MH i2c: E2 62 00 09 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 24 DB 02 00 0E 04 04 00 87 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 09 [20:35:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DB 02 00 0E 04 04 00 87 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 [20:35:07]wFMCommunicate OK [20:35:07]SAM_PROTO_GetFieldsCounters done [20:35:07]requested_item shift.num is exist - process it [20:35:07]requested_item shift.opened is exist - process it [20:35:07]req_shift_opened [20:35:07]FM_GetShiftState [20:35:07]SAM_PROTO_GetShiftState [20:35:07]wFMCommunicate request_size=4 [20:35:07]MH_SAM_APDU [20:35:07]CAPDU: 80 13 01 00 [20:35:07]Write to MH i2c: E2 08 00 0A 0A 80 13 01 00 00 00 00 00 91 [20:35:07]Write i2c OK [20:35:07]MH_I2C_Read... [20:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:07]Read from MH i2c: E2 [20:35:07]MH_I2C_Read... [20:35:07]Read from MH i2c: E2 0E 00 [20:35:07]MH_I2C_Read... [20:35:07]Read from MH i2c: E2 0E 00 0A 0A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 10 [20:35:07]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:35:07]wFMCommunicate OK [20:35:07]SAM_PROTO_GetShiftState done [20:35:07]FM_GetShiftState done [20:35:07]req_shift_opened done [20:35:07]requested_item shift.open_date is exist - process it [20:35:07]req_shift_open_date [20:35:07]req_shift_open_date done [20:35:07]produce_requested_data done [20:35:07]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187172,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [20:35:07]process_action_free close_receipt [20:35:07]json_value_free [20:35:07]json_value_free done [20:35:07]process_json_proto returns [20:35:07]Send response to host [20:35:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187172,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [20:35:07]free response buf [20:35:07]execute_script done [20:35:07]execute_script returns [20:35:07]free content buf [20:35:07]Sock 7.Close socket [20:35:07]Sock 7.Thread stoped [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:38:01]OFD Sender: No OFD packet to send [20:38:06]OFD Sender: No OFD packet to send [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:21]OFD Sender: No OFD packet to send [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:51]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:23]accept exits with 10 [20:39:23]New connection [20:39:23]New thread 3066654052 created [20:39:23]Thread 3066510692 joined [20:39:23]Waiting for new connection... [20:39:23] Sock 10.Parse request [20:39:23]Sock 10.Check first char [20:39:23]Sock 10.First char is OK [20:39:23]request: POST /json_proto HTTP/1.0 [20:39:23]Method: POST [20:39:23]URL: /json_proto [20:39:23]Method is POST - this is cgi request [20:39:23]url: /json_proto [20:39:23]query_string will be loaded in cgi processing [20:39:23]execute_cgi json_proto POST (null) [20:39:23]execute_cgi path=json_proto method=POST [20:39:23]POST find Content-Length [20:39:23]Host: 172.17.46.131:8080 [20:39:23]Content-Length: 673 [20:39:23]Content-Type: application/json [20:39:23] [20:39:23]POST finish read [20:39:23]Found Content-Length = 673 [20:39:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412328", "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" ] } } [20:39:23]execute_script... [20:39: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)412328", "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" ] } } [20:39:23]POST & json_proto [20:39:23]process_json_proto [20:39:23]json parsed OK: [20:39:23]protocol is kg_v1.0 [20:39:23]action value=close_receipt [20:39:23]process_action close_receipt [20:39:23]cmd_close_receipt [20:39:23]MH_GetDate [20:39:23]Write to MH i2c: F0 00 00 0B 0A 04 [20:39:23]Write i2c OK [20:39:23]MH_I2C_Read... [20:39:23]Read from MH i2c: F0 [20:39:23]MH_I2C_Read... [20:39:23]Read from MH i2c: F0 09 00 [20:39:23]MH_I2C_Read... [20:39:23]Read from MH i2c: F0 09 00 0B 0A 00 7C 41 B6 67 7E 41 4F 65 5A [20:39:23]GetLastDocTimeStamp 1739997304 [20:39:23]current date 1739997564 [20:39:23]FM_GetShiftState [20:39:23]SAM_PROTO_GetShiftState [20:39:23]wFMCommunicate request_size=4 [20:39:23]MH_SAM_APDU [20:39:23]CAPDU: 80 13 01 00 [20:39:23]Write to MH i2c: E2 08 00 0C 0A 80 13 01 00 00 00 00 00 93 [20:39:23]Write i2c OK [20:39:23]MH_I2C_Read... [20:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:23]Read from MH i2c: E2 [20:39:23]MH_I2C_Read... [20:39:23]Read from MH i2c: E2 0E 00 [20:39:23]MH_I2C_Read... [20:39:23]Read from MH i2c: E2 0E 00 0C 0A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 12 [20:39:23]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:39:23]wFMCommunicate OK [20:39:23]SAM_PROTO_GetShiftState done [20:39:23]FM_GetShiftState done [20:39:23]opened in 1739929631 [20:39:23]opened+sec_in_day 1740016031 [20:39:23]quantity*price = 20037 [20:39:23]sum+1 = 20039 [20:39:23]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 СНО: Общий режим Чек 239 19.02.2025 20:39 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187173 ФПД: 147043553818368 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T203924&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187173&fm=147043553818368&tin=02508201610067®Number=0000000000091857&sum=20000 [20:39:24]StoreToDocumentArchive [20:39:24]shift 647 fd 187173 [20:39:24]save to /storage/0647/doc_00187173 [20:39:24]save last doc name /storage/0647/doc_00187173 to /storage/kkm_last_doc_name [20:39:24]save OK [20:39:24]Clear old archive folders... [20:39:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:39:24]tlvbuf is 01FB97C0 [20:39:24]SAM_PROTO_ClearQueue [20:39:24]wFMCommunicate request_size=4 [20:39:24]MH_SAM_APDU [20:39:24]CAPDU: 80 09 00 00 [20:39:24]Write to MH i2c: E2 08 00 19 0A 80 09 00 00 00 00 00 00 95 [20:39:24]Write i2c OK [20:39:24]MH_I2C_Read... [20:39:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:25]Read from MH i2c: E2 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: E2 03 00 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: E2 03 00 19 0A 00 90 00 97 [20:39:25]RAPDU: 90 00 [20:39:25]wFMCommunicate OK [20:39:25]SAM_PROTO_ClearQueue done [20:39:25]KKMCreateOFDPacket [20:39:25]OFDProtocolAddRootSTLVToBuf [20:39:25]FM_MakeSignedData [20:39:25]FM_MakeSignedData [20:39:25]SAM_PROTO_SignData [20:39:25]wFMCommunicate request_size=4 [20:39:25]MH_SAM_APDU [20:39:25]CAPDU: 80 0D 01 02 [20:39:25]Write to MH i2c: E2 08 00 1A 0A 80 0D 01 02 00 00 00 00 9D [20:39:25]Write i2c OK [20:39:25]MH_I2C_Read... [20:39:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:25]Read from MH i2c: E2 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: E2 03 00 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: E2 03 00 1A 0A 00 90 00 98 [20:39:25]RAPDU: 90 00 [20:39:25]wFMCommunicate OK [20:39:25]wFMCommunicate request_size=255 [20:39:25]MH_SAM_APDU [20:39: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 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 EF 00 00 00 F4 03 04 00 7C 41 B6 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 25 DB 02 00 35 04 06 00 85 BC 3E CA [20:39:25]Write to MH i2c: E2 02 01 1B 0A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 EF 00 00 00 F4 03 04 00 7C 41 B6 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 25 DB 02 00 35 04 06 00 85 BC 3E CA 00 00 5F [20:39:25]Write i2c OK [20:39:25]MH_I2C_Read... [20:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:25]Read from MH i2c: E2 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: E2 03 00 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: E2 03 00 1B 0A 00 90 00 99 [20:39:25]RAPDU: 90 00 [20:39:25]wFMCommunicate OK [20:39:25]wFMCommunicate request_size=7 [20:39:25]MH_SAM_APDU [20:39:25]CAPDU: 80 0D 02 02 02 B7 00 [20:39:25]Write to MH i2c: E2 0A 00 1C 0A 80 0D 02 02 02 00 B7 00 00 00 5B [20:39:25]Write i2c OK [20:39:25]MH_I2C_Read... [20:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:25]Read from MH i2c: E2 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: E2 03 00 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: E2 03 00 1C 0A 00 90 00 9A [20:39:25]RAPDU: 90 00 [20:39:25]wFMCommunicate OK [20:39:25]wFMCommunicate request_size=4 [20:39:25]MH_SAM_APDU [20:39:25]CAPDU: 80 0D 03 02 [20:39:25]Write to MH i2c: E2 08 00 1D 0A 80 0D 03 02 00 00 00 00 A2 [20:39:25]Write i2c OK [20:39:25]MH_I2C_Read... [20:39:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:25]Read from MH i2c: E2 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: E2 0B 00 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: E2 0B 00 1D 0A 00 D9 93 EC 96 78 0D EE B2 90 00 B6 [20:39:25]RAPDU: D9 93 EC 96 78 0D EE B2 90 00 [20:39:25]wFMCommunicate OK [20:39:25]SAM_PROTO_SignData done [20:39:25]FM_MakeSignedData done [20:39:25]CreateOFDProtocolMessage [20:39:25]wFMCommunicate request_size=4 [20:39:25]MH_SAM_APDU [20:39:25]CAPDU: 80 11 00 00 [20:39:25]Write to MH i2c: E2 08 00 1E 0A 80 11 00 00 00 00 00 00 A2 [20:39:25]Write i2c OK [20:39:25]MH_I2C_Read... [20:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:25]Read from MH i2c: E2 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: E2 17 00 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: E2 17 00 1E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F5 [20:39:25]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:25]wFMCommunicate OK [20:39:25]CreateOFDProtocolMessage done [20:39:25]OFDSenderStorePacket 187173 [20:39:25]StoreOFDPacket docnum=187173 [20:39: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 15 3C 04 01 EA 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 EF 00 00 00 F4 03 04 00 7C 41 B6 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 25 DB 02 00 35 04 06 00 85 BC 3E CA B7 00 D9 93 EC 96 78 0D EE B2 [20:39:25]CheckFolder [20:39:25]dirname=/storage/ofd_packets [20:39:25]CheckFolder done [20:39:25]ProducePacketName [20:39:25]name=ofd_packets/00187173 [20:39:25]NVStorageSaveData ofd_packets/00187173 [20:39:25]File name is /storage/ofd_packets/00187173 [20:39:25]Write 298 bytes [20:39:25]NVStorageSaveData done [20:39:25]OFDSenderStorePacket done [20:39:25]KKMCreateOFDPacket done [20:39:25]NVStorageSaveData kkm_last_timestamp [20:39:25]File name is /storage/kkm_last_timestamp [20:39:25]Write 4 bytes [20:39:25]NVStorageSaveData done [20:39:25]ExternCall_PrintAddStr [20:39:25]wPrintStart [20:39:25]Write to MH i2c: 01 00 00 1F 0A 29 [20:39:25]Write i2c OK [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: 01 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: 01 07 00 [20:39:25]MH_I2C_Read... [20:39:25]Read from MH i2c: 01 07 00 1F 0A 00 00 00 00 00 FF 0F 3E [20:39:25]RasterBufferAndPrint [20:39:25]line Счет N : (1)412328 [20:39:25]line ИНН: 02508201610067 [20:39:25]line Контрольно-Кассовый Чек [20:39:25]line ПРОДАЖА [20:39:25]line ТРК (МРК, ГНК) : 6 [20:39:25]line Товар: 2710194210 [20:39:25]line ДТ-К-5 [20:39:25]line 2.760 * 72.60 [20:39:25]line = 200.38 [20:39:25]line НДС 12% НСП 1% [20:39:25]line > о реализуемом товаре [20:39:25]line ОКРУГЛЕНИЕ: -0.38 [20:39:25]line ИТОГО: 200.00 [20:39:25]line Внесено: 200.00 [20:39:25]line СДАЧА: 0.00 [20:39:25]line НСП 1% : 1.77 [20:39:25]line НДС 12% : 21.28 [20:39:25]line Наличными: 200.00 [20:39:25]line Безнал.: 0.00 [20:39:25]line Место: АЗС № 92 "Партнер Нефть" [20:39:25]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:39:25]line СНО: Общий режим [20:39:25]line Чек 239 19.02.2025 20:39 [20:39:25]line Смена: 647 ФФД: 1.0 [20:39:25]line ЗНМ: 0300000118 [20:39:25]line РНМ: 0000000000091857 [20:39:25]line Версия ККМ: 001 [20:39:25]line ФМ: 0000000000871826 [20:39:25]line ФД: 187173 [20:39:25]line ФПД: 147043553818368 [20:39:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T203924&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187173&fm=147043553818368&tin=02508201610067®Number=0000000000091857&sum=20000 [20:39:25]OFD Sender: Processing packet 187173 [packets to send 49, broken 48] [20:39:25]ProducePacketName [20:39:25]name=ofd_packets/00187173 [20:39:25]OFD Sender: To server: pG, [20:39:25]CommunicateWithHost lk.salyk.kg:30040 [20:39:25]ConnectInit lk.salyk.kg [20:39:25]written 0, free lines is 4095 [20:39:25]Connected sock=9 [20:39:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 15 3C 04 01 EA 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 EF 00 00 00 F4 03 04 00 7C 41 B6 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 25 DB 02 00 35 04 06 00 85 BC 3E CA B7 00 D9 93 EC 96 78 0D EE B2 [20:39: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 73 66 47 00 2D 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 25 DB 02 00 F4 03 04 00 CF E7 B5 67 B6 04 01 00 00 9C 67 0A 7D 18 D4 A5 1C [20:39:26]CommunicateWithHost err = 0 [20:39:26]CheckOFDResponse [20:39:26]1017 (14) - 77093643461234 [20:39:26]1041 (16) - 0000000000871826 [20:39:26]1040 (4) - 187173 [20:39:26]1012 (4) - 19.02.2025 14:16 [20:39:26]1206 (1) - 0 [20:39:26]OFD Sender: Remove packet 187173 [20:39:26]ProducePacketName [20:39:26]name=ofd_packets/00187173 [20:39:26]NVStorageDeleteData [20:39:26]Write to MH i2c: 01 00 00 4A 0A 54 [20:39:26]Write i2c OK [20:39:26]MH_I2C_Read... [20:39:26]Read from MH i2c: 01 [20:39:26]MH_I2C_Read... [20:39:26]Read from MH i2c: 01 07 00 [20:39:26]MH_I2C_Read... [20:39:26]Read from MH i2c: 01 07 00 4A 0A 00 00 00 00 00 EF 0C 56 [20:39:26]RasterBufferAndPrint [20:39:26]line [20:39:26]line [20:39:26]line [20:39:26]line [20:39:26]line [20:39:26]written 0, free lines is 3317 [20:39:26]MH_Cut [20:39:26]Write to MH i2c: D1 01 00 51 0A 01 2D [20:39:26]Write i2c OK [20:39:26]MH_I2C_Read... [20:39:26]Read from MH i2c: D1 [20:39:26]MH_I2C_Read... [20:39:26]Read from MH i2c: D1 01 00 [20:39:26]MH_I2C_Read... [20:39:26]Read from MH i2c: D1 01 00 51 0A 00 2C [20:39:26]Write to MH i2c: 01 00 00 52 0A 5C [20:39:26]Write i2c OK [20:39:26]MH_I2C_Read... [20:39:26]OFD Sender: No OFD packet to send [20:39:26]*** Cut start [20:39:26]*** Partial cut [20:39:26]*** CUTSNS_PIN = 1 [20:39:27]*** CUTSNS_PIN = 0 [20:39:27]*** Brake cut motor [20:39:27]Read from MH i2c: 01 [20:39:27]MH_I2C_Read... [20:39:27]*** Stop cut motor [20:39:27]*** Cut end [20:39:27]Read from MH i2c: 01 07 00 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: 01 07 00 52 0A 00 00 00 00 00 FF 0F 71 [20:39:27]process_action close_receipt done [20:39:27]requested_data is exist [20:39:27]produce_requested_data [20:39:27]requested_item fm.sn is exist - process it [20:39:27]wFMCommunicate request_size=4 [20:39:27]MH_SAM_APDU [20:39:27]CAPDU: 80 11 00 00 [20:39:27]Write to MH i2c: E2 08 00 53 0A 80 11 00 00 00 00 00 00 D7 [20:39:27]Write i2c OK [20:39:27]MH_I2C_Read... [20:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:27]Read from MH i2c: E2 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: E2 17 00 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: E2 17 00 53 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2A [20:39:27]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:27]wFMCommunicate OK [20:39:27]requested_item fd.num is exist - process it [20:39:27]SAM_PROTO_GetFieldsCounters [20:39:27]wFMCommunicate request_size=4 [20:39:27]MH_SAM_APDU [20:39:27]CAPDU: 80 13 00 00 [20:39:27]Write to MH i2c: E2 08 00 54 0A 80 13 00 00 00 00 00 00 DA [20:39:27]Write i2c OK [20:39:27]MH_I2C_Read... [20:39:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:27]Read from MH i2c: E2 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: E2 62 00 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: E2 62 00 54 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DB 02 00 0E 04 04 00 87 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 58 [20:39: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 25 DB 02 00 0E 04 04 00 87 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:39:27]wFMCommunicate OK [20:39:27]SAM_PROTO_GetFieldsCounters done [20:39:27]requested_item shift.num is exist - process it [20:39:27]requested_item shift.opened is exist - process it [20:39:27]req_shift_opened [20:39:27]FM_GetShiftState [20:39:27]SAM_PROTO_GetShiftState [20:39:27]wFMCommunicate request_size=4 [20:39:27]MH_SAM_APDU [20:39:27]CAPDU: 80 13 01 00 [20:39:27]Write to MH i2c: E2 08 00 55 0A 80 13 01 00 00 00 00 00 DC [20:39:27]Write i2c OK [20:39:27]MH_I2C_Read... [20:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:27]Read from MH i2c: E2 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: E2 0E 00 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: E2 0E 00 55 0A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 5B [20:39:27]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:39:27]wFMCommunicate OK [20:39:27]SAM_PROTO_GetShiftState done [20:39:27]FM_GetShiftState done [20:39:27]req_shift_opened done [20:39:27]requested_item shift.open_date is exist - process it [20:39:27]req_shift_open_date [20:39:27]req_shift_open_date done [20:39:27]produce_requested_data done [20:39:27]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187173,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [20:39:27]process_action_free close_receipt [20:39:27]json_value_free [20:39:27]json_value_free done [20:39:27]process_json_proto returns [20:39:27]Send response to host [20:39:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187173,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [20:39:27]free response buf [20:39:27]execute_script done [20:39:27]execute_script returns [20:39:27]free content buf [20:39:27]Sock 10.Close socket [20:39:27]Sock 10.Thread stoped [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:56]OFD Sender: No OFD packet to send [20:42:01]OFD Sender: No OFD packet to send [20:42:06]OFD Sender: No OFD packet to send [20:42:11]OFD Sender: No OFD packet to send [20:42:16]OFD Sender: No OFD packet to send [20:42:21]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:27]OFD Sender: No OFD packet to send [20:45:32]OFD Sender: No OFD packet to send [20:45:37]OFD Sender: No OFD packet to send [20:45:42]OFD Sender: No OFD packet to send [20:45:47]OFD Sender: No OFD packet to send [20:45:52]OFD Sender: No OFD packet to send [20:45:57]OFD Sender: No OFD packet to send [20:46:02]OFD Sender: No OFD packet to send [20:46:07]OFD Sender: No OFD packet to send [20:46:12]OFD Sender: No OFD packet to send [20:46:17]OFD Sender: No OFD packet to send [20:46:22]OFD Sender: No OFD packet to send [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:52]OFD Sender: No OFD packet to send [20:47:57]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:07]OFD Sender: No OFD packet to send [20:48:12]OFD Sender: No OFD packet to send [20:48:17]OFD Sender: No OFD packet to send [20:48:22]OFD Sender: No OFD packet to send [20:48:27]OFD Sender: No OFD packet to send [20:48:32]OFD Sender: No OFD packet to send [20:48:37]OFD Sender: No OFD packet to send [20:48:42]OFD Sender: No OFD packet to send [20:48:47]OFD Sender: No OFD packet to send [20:48:52]OFD Sender: No OFD packet to send [20:48:57]OFD Sender: No OFD packet to send [20:49:02]OFD Sender: No OFD packet to send [20:49:07]OFD Sender: No OFD packet to send [20:49:12]OFD Sender: No OFD packet to send [20:49:17]OFD Sender: No OFD packet to send [20:49:22]OFD Sender: No OFD packet to send [20:49:27]OFD Sender: No OFD packet to send [20:49:32]OFD Sender: No OFD packet to send [20:49:37]OFD Sender: No OFD packet to send [20:49:42]OFD Sender: No OFD packet to send [20:49:47]OFD Sender: No OFD packet to send [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:17]OFD Sender: No OFD packet to send [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]OFD Sender: No OFD packet to send [20:52:52]OFD Sender: No OFD packet to send [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:12]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]OFD Sender: No OFD packet to send [20:53:42]OFD Sender: No OFD packet to send [20:53:47]OFD Sender: No OFD packet to send [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]accept exits with 7 [20:56:32]New connection [20:56:32]New thread 3066510692 created [20:56:32]Thread 3066654052 joined [20:56:32]Waiting for new connection... [20:56:32] Sock 7.Parse request [20:56:32]Sock 7.Check first char [20:56:32]Sock 7.First char is OK [20:56:32]request: POST /json_proto HTTP/1.0 [20:56:32]Method: POST [20:56:32]URL: /json_proto [20:56:32]Method is POST - this is cgi request [20:56:32]url: /json_proto [20:56:32]query_string will be loaded in cgi processing [20:56:32]execute_cgi json_proto POST (null) [20:56:32]execute_cgi path=json_proto method=POST [20:56:32]POST find Content-Length [20:56:32]Host: 172.17.46.131:8080 [20:56:32]Content-Length: 682 [20:56:32]Content-Type: application/json [20:56:32] [20:56:32]POST finish read [20:56:32]Found Content-Length = 682 [20:56:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412329", "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" ] } } [20:56:32]execute_script... [20:56: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)412329", "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" ] } } [20:56:32]POST & json_proto [20:56:32]process_json_proto [20:56:32]json parsed OK: [20:56:32]protocol is kg_v1.0 [20:56:32]action value=close_receipt [20:56:32]process_action close_receipt [20:56:32]cmd_close_receipt [20:56:32]MH_GetDate [20:56:32]Write to MH i2c: F0 00 00 56 0A 4F [20:56:32]Write i2c OK [20:56:32]MH_I2C_Read... [20:56:32]Read from MH i2c: F0 [20:56:32]MH_I2C_Read... [20:56:32]Read from MH i2c: F0 09 00 [20:56:32]MH_I2C_Read... [20:56:32]Read from MH i2c: F0 09 00 56 0A 00 81 45 B6 67 7E 41 4F 65 AE [20:56:32]GetLastDocTimeStamp 1739997564 [20:56:32]current date 1739998593 [20:56:32]FM_GetShiftState [20:56:32]SAM_PROTO_GetShiftState [20:56:32]wFMCommunicate request_size=4 [20:56:32]MH_SAM_APDU [20:56:32]CAPDU: 80 13 01 00 [20:56:32]Write to MH i2c: E2 08 00 57 0A 80 13 01 00 00 00 00 00 DE [20:56:32]Write i2c OK [20:56:32]MH_I2C_Read... [20:56:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:32]Read from MH i2c: E2 [20:56:32]MH_I2C_Read... [20:56:32]Read from MH i2c: E2 0E 00 [20:56:32]MH_I2C_Read... [20:56:32]Read from MH i2c: E2 0E 00 57 0A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 5D [20:56:32]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:56:32]wFMCommunicate OK [20:56:32]SAM_PROTO_GetShiftState done [20:56:32]FM_GetShiftState done [20:56:32]opened in 1739929631 [20:56:32]opened+sec_in_day 1740016031 [20:56:32]quantity*price = 100023 [20:56:32]sum+1 = 100025 [20:56:32]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 СНО: Общий режим Чек 240 19.02.2025 20:56 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187174 ФПД: 207868036304181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T205633&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187174&fm=207868036304181&tin=02508201610067®Number=0000000000091857&sum=100000 [20:56:33]StoreToDocumentArchive [20:56:33]shift 647 fd 187174 [20:56:33]save to /storage/0647/doc_00187174 [20:56:33]save last doc name /storage/0647/doc_00187174 to /storage/kkm_last_doc_name [20:56:33]save OK [20:56:33]Clear old archive folders... [20:56:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:56:33]tlvbuf is 01F625D0 [20:56:33]SAM_PROTO_ClearQueue [20:56:33]wFMCommunicate request_size=4 [20:56:33]MH_SAM_APDU [20:56:33]CAPDU: 80 09 00 00 [20:56:33]Write to MH i2c: E2 08 00 64 0A 80 09 00 00 00 00 00 00 E0 [20:56:33]Write i2c OK [20:56:33]MH_I2C_Read... [20:56:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:56:33]Read from MH i2c: E2 [20:56:33]MH_I2C_Read... [20:56:33]Read from MH i2c: E2 03 00 [20:56:33]MH_I2C_Read... [20:56:33]Read from MH i2c: E2 03 00 64 0A 00 90 00 E2 [20:56:33]RAPDU: 90 00 [20:56:33]wFMCommunicate OK [20:56:33]SAM_PROTO_ClearQueue done [20:56:33]KKMCreateOFDPacket [20:56:33]OFDProtocolAddRootSTLVToBuf [20:56:33]FM_MakeSignedData [20:56:33]FM_MakeSignedData [20:56:33]SAM_PROTO_SignData [20:56:33]wFMCommunicate request_size=4 [20:56:33]MH_SAM_APDU [20:56:33]CAPDU: 80 0D 01 02 [20:56:33]Write to MH i2c: E2 08 00 65 0A 80 0D 01 02 00 00 00 00 E8 [20:56:33]Write i2c OK [20:56:33]MH_I2C_Read... [20:56:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:56:33]Read from MH i2c: E2 [20:56:33]MH_I2C_Read... [20:56:33]Read from MH i2c: E2 03 00 [20:56:33]MH_I2C_Read... [20:56:33]Read from MH i2c: E2 03 00 65 0A 00 90 00 E3 [20:56:33]RAPDU: 90 00 [20:56:33]wFMCommunicate OK [20:56:33]wFMCommunicate request_size=255 [20:56:33]MH_SAM_APDU [20:56:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F0 00 00 00 F4 03 04 00 81 45 B6 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 26 DB 02 00 35 04 06 00 BD [20:56:33]Write to MH i2c: E2 02 01 66 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 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 F0 00 00 00 F4 03 04 00 81 45 B6 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 26 DB 02 00 35 04 06 00 BD 00 00 01 [20:56:33]Write i2c OK [20:56:33]MH_I2C_Read... [20:56:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:33]Read from MH i2c: E2 [20:56:33]MH_I2C_Read... [20:56:33]Read from MH i2c: E2 03 00 [20:56:33]MH_I2C_Read... [20:56:33]Read from MH i2c: E2 03 00 66 0A 00 90 00 E4 [20:56:33]RAPDU: 90 00 [20:56:33]wFMCommunicate OK [20:56:33]wFMCommunicate request_size=10 [20:56:33]MH_SAM_APDU [20:56:33]CAPDU: 80 0D 02 02 05 0E 0C 76 CD 35 [20:56:33]Write to MH i2c: E2 0D 00 67 0A 80 0D 02 02 05 00 0E 0C 76 CD 35 00 00 87 [20:56:33]Write i2c OK [20:56:33]MH_I2C_Read... [20:56:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:56:33]Read from MH i2c: E2 [20:56:33]MH_I2C_Read... [20:56:33]Read from MH i2c: E2 03 00 [20:56:33]MH_I2C_Read... [20:56:33]Read from MH i2c: E2 03 00 67 0A 00 90 00 E5 [20:56:33]RAPDU: 90 00 [20:56:33]wFMCommunicate OK [20:56:33]wFMCommunicate request_size=4 [20:56:33]MH_SAM_APDU [20:56:33]CAPDU: 80 0D 03 02 [20:56:33]Write to MH i2c: E2 08 00 68 0A 80 0D 03 02 00 00 00 00 ED [20:56:33]Write i2c OK [20:56:33]MH_I2C_Read... [20:56:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:56:33]Read from MH i2c: E2 [20:56:33]MH_I2C_Read... [20:56:33]Read from MH i2c: E2 0B 00 [20:56:33]MH_I2C_Read... [20:56:33]Read from MH i2c: E2 0B 00 68 0A 00 3F 2C 7B 7D 41 24 74 58 90 00 82 [20:56:33]RAPDU: 3F 2C 7B 7D 41 24 74 58 90 00 [20:56:33]wFMCommunicate OK [20:56:33]SAM_PROTO_SignData done [20:56:33]FM_MakeSignedData done [20:56:33]CreateOFDProtocolMessage [20:56:33]wFMCommunicate request_size=4 [20:56:33]MH_SAM_APDU [20:56:33]CAPDU: 80 11 00 00 [20:56:33]Write to MH i2c: E2 08 00 69 0A 80 11 00 00 00 00 00 00 ED [20:56:33]Write i2c OK [20:56:33]MH_I2C_Read... [20:56:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:33]Read from MH i2c: E2 [20:56:33]MH_I2C_Read... [20:56:33]Read from MH i2c: E2 17 00 [20:56:33]MH_I2C_Read... [20:56:33]Read from MH i2c: E2 17 00 69 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 40 [20:56:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:56:33]wFMCommunicate OK [20:56:33]CreateOFDProtocolMessage done [20:56:33]OFDSenderStorePacket 187174 [20:56:33]StoreOFDPacket docnum=187174 [20:56: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 B6 BD 07 01 37 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F0 00 00 00 F4 03 04 00 81 45 B6 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 26 DB 02 00 35 04 06 00 BD 0E 0C 76 CD 35 3F 2C 7B 7D 41 24 74 58 [20:56:33]CheckFolder [20:56:33]dirname=/storage/ofd_packets [20:56:33]CheckFolder done [20:56:33]ProducePacketName [20:56:33]name=ofd_packets/00187174 [20:56:33]NVStorageSaveData ofd_packets/00187174 [20:56:33]File name is /storage/ofd_packets/00187174 [20:56:33]Write 301 bytes [20:56:33]NVStorageSaveData done [20:56:33]OFDSenderStorePacket done [20:56:33]KKMCreateOFDPacket done [20:56:33]NVStorageSaveData kkm_last_timestamp [20:56:33]File name is /storage/kkm_last_timestamp [20:56:33]Write 4 bytes [20:56:33]NVStorageSaveData done [20:56:33]OFD Sender: Processing packet 187174 [packets to send 49, broken 48] [20:56:33]ProducePacketName [20:56:33]name=ofd_packets/00187174 [20:56:33]OFD Sender: To server: pG, [20:56:33]CommunicateWithHost lk.salyk.kg:30040 [20:56:33]ConnectInit lk.salyk.kg [20:56:33]ExternCall_PrintAddStr [20:56:33]wPrintStart [20:56:33]Write to MH i2c: 01 00 00 6A 0A 74 [20:56:33]Write i2c OK [20:56:33]MH_I2C_Read... [20:56:33]Read from MH i2c: 01 [20:56:33]MH_I2C_Read... [20:56:33]Read from MH i2c: 01 07 00 [20:56:33]MH_I2C_Read... [20:56:33]Read from MH i2c: 01 07 00 6A 0A 00 00 00 00 00 FF 0F 89 [20:56:33]RasterBufferAndPrint [20:56:33]line Счет N : (1)412329 [20:56:33]line ИНН: 02508201610067 [20:56:33]line Контрольно-Кассовый Чек [20:56:33]line ПРОДАЖА [20:56:33]line ТРК (МРК, ГНК) : 32 [20:56:33]line Товар: 2710124130 [20:56:33]line Аи-92-К-2 [20:56:33]line 15.580 * 64.20 [20:56:33]line = 1000.24 [20:56:33]line НДС 12% НСП 1% [20:56:33]line > о реализуемом товаре [20:56:33]line ОКРУГЛЕНИЕ: -0.24 [20:56:33]line ИТОГО: 1000.00 [20:56:33]line Внесено: 1000.00 [20:56:33]line СДАЧА: 0.00 [20:56:33]line НСП 1% : 8.85 [20:56:33]line НДС 12% : 106.22 [20:56:33]line Наличными: 1000.00 [20:56:33]line Безнал.: 0.00 [20:56:33]line Место: АЗС № 92 "Партнер Нефть" [20:56:33]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:56:33]line СНО: Общий режим [20:56:33]line Чек 240 19.02.2025 20:56 [20:56:33]line Смена: 647 ФФД: 1.0 [20:56:33]line ЗНМ: 0300000118 [20:56:33]line РНМ: 0000000000091857 [20:56:33]line Версия ККМ: 001 [20:56:33]line ФМ: 0000000000871826 [20:56:33]line ФД: 187174 [20:56:33]line ФПД: 207868036304181 [20:56:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T205633&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187174&fm=207868036304181&tin=02508201610067®Number=0000000000091857&sum=100000 [20:56:34]Connected sock=11 [20:56: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 0F 01 00 00 B6 BD 07 01 37 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F0 00 00 00 F4 03 04 00 81 45 B6 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 26 DB 02 00 35 04 06 00 BD 0E 0C 76 CD 35 3F 2C 7B 7D 41 24 74 58 [20:56:34]written 0, free lines is 4095 [20:56: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 1E 08 47 00 63 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 26 DB 02 00 F4 03 04 00 D3 EB B5 67 B6 04 01 00 00 87 F2 D9 C5 FF 62 EC D9 [20:56:34]CommunicateWithHost err = 0 [20:56:34]CheckOFDResponse [20:56:34]1017 (14) - 77093643461234 [20:56:34]1041 (16) - 0000000000871826 [20:56:34]1040 (4) - 187174 [20:56:34]1012 (4) - 19.02.2025 14:33 [20:56:34]1206 (1) - 0 [20:56:34]OFD Sender: Remove packet 187174 [20:56:34]ProducePacketName [20:56:34]name=ofd_packets/00187174 [20:56:34]NVStorageDeleteData [20:56:34]Write to MH i2c: 01 00 00 95 0A 9F [20:56:34]Write i2c OK [20:56:34]MH_I2C_Read... [20:56:34]Read from MH i2c: 01 [20:56:34]MH_I2C_Read... [20:56:34]Read from MH i2c: 01 07 00 [20:56:34]MH_I2C_Read... [20:56:34]Read from MH i2c: 01 07 00 95 0A 00 00 00 00 00 EB 0C 9D [20:56:34]RasterBufferAndPrint [20:56:34]line [20:56:34]line [20:56:34]line [20:56:34]line [20:56:34]line [20:56:34]written 0, free lines is 3313 [20:56:34]MH_Cut [20:56:34]Write to MH i2c: D1 01 00 9C 0A 01 78 [20:56:34]Write i2c OK [20:56:34]MH_I2C_Read... [20:56:34]Read from MH i2c: D1 [20:56:34]MH_I2C_Read... [20:56:34]Read from MH i2c: D1 01 00 [20:56:34]MH_I2C_Read... [20:56:34]Read from MH i2c: D1 01 00 9C 0A 00 77 [20:56:34]Write to MH i2c: 01 00 00 9D 0A A7 [20:56:34]Write i2c OK [20:56:34]MH_I2C_Read... [20:56:34]OFD Sender: No OFD packet to send [20:56:35]*** Cut start [20:56:35]*** Partial cut [20:56:35]*** CUTSNS_PIN = 1 [20:56:35]*** CUTSNS_PIN = 0 [20:56:35]*** Brake cut motor [20:56:35]Read from MH i2c: 01 [20:56:35]MH_I2C_Read... [20:56:35]*** Stop cut motor [20:56:35]*** Cut end [20:56:35]Read from MH i2c: 01 07 00 [20:56:35]MH_I2C_Read... [20:56:35]Read from MH i2c: 01 07 00 9D 0A 00 00 00 00 00 FF 0F BC [20:56:35]process_action close_receipt done [20:56:35]requested_data is exist [20:56:35]produce_requested_data [20:56:35]requested_item fm.sn is exist - process it [20:56:35]wFMCommunicate request_size=4 [20:56:35]MH_SAM_APDU [20:56:35]CAPDU: 80 11 00 00 [20:56:35]Write to MH i2c: E2 08 00 9E 0A 80 11 00 00 00 00 00 00 22 [20:56:35]Write i2c OK [20:56:35]MH_I2C_Read... [20:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:56:36]Read from MH i2c: E2 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 17 00 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 17 00 9E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 75 [20:56: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:56:36]wFMCommunicate OK [20:56:36]requested_item fd.num is exist - process it [20:56:36]SAM_PROTO_GetFieldsCounters [20:56:36]wFMCommunicate request_size=4 [20:56:36]MH_SAM_APDU [20:56:36]CAPDU: 80 13 00 00 [20:56:36]Write to MH i2c: E2 08 00 9F 0A 80 13 00 00 00 00 00 00 25 [20:56:36]Write i2c OK [20:56:36]MH_I2C_Read... [20:56:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:56:36]Read from MH i2c: E2 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 62 00 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 62 00 9F 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 26 DB 02 00 0E 04 04 00 87 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 A7 [20:56: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 26 DB 02 00 0E 04 04 00 87 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 [20:56:36]wFMCommunicate OK [20:56:36]SAM_PROTO_GetFieldsCounters done [20:56:36]requested_item shift.num is exist - process it [20:56:36]requested_item shift.opened is exist - process it [20:56:36]req_shift_opened [20:56:36]FM_GetShiftState [20:56:36]SAM_PROTO_GetShiftState [20:56:36]wFMCommunicate request_size=4 [20:56:36]MH_SAM_APDU [20:56:36]CAPDU: 80 13 01 00 [20:56:36]Write to MH i2c: E2 08 00 A0 0A 80 13 01 00 00 00 00 00 27 [20:56:36]Write i2c OK [20:56:36]MH_I2C_Read... [20:56:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:56:36]Read from MH i2c: E2 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 0E 00 [20:56:36]MH_I2C_Read... [20:56:36]Read from MH i2c: E2 0E 00 A0 0A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A6 [20:56:36]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:56:36]wFMCommunicate OK [20:56:36]SAM_PROTO_GetShiftState done [20:56:36]FM_GetShiftState done [20:56:36]req_shift_opened done [20:56:36]requested_item shift.open_date is exist - process it [20:56:36]req_shift_open_date [20:56:36]req_shift_open_date done [20:56:36]produce_requested_data done [20:56:36]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187174,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [20:56:36]process_action_free close_receipt [20:56:36]json_value_free [20:56:36]json_value_free done [20:56:36]process_json_proto returns [20:56:36]Send response to host [20:56:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187174,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [20:56:36]free response buf [20:56:36]execute_script done [20:56:36]execute_script returns [20:56:36]free content buf [20:56:36]Sock 7.Close socket [20:56:36]Sock 7.Thread stoped [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:42]accept exits with 9 [20:57:42]New connection [20:57:42]New thread 3066654052 created [20:57:42]Thread 3066510692 joined [20:57:42]Waiting for new connection... [20:57:42] Sock 9.Parse request [20:57:42]Sock 9.Check first char [20:57:42]Sock 9.First char is OK [20:57:42]request: POST /json_proto HTTP/1.0 [20:57:42]Method: POST [20:57:42]URL: /json_proto [20:57:42]Method is POST - this is cgi request [20:57:42]url: /json_proto [20:57:42]query_string will be loaded in cgi processing [20:57:42]execute_cgi json_proto POST (null) [20:57:42]execute_cgi path=json_proto method=POST [20:57:42]POST find Content-Length [20:57:42]Host: 172.17.46.131:8080 [20:57:42]Content-Length: 677 [20:57:42]Content-Type: application/json [20:57:42] [20:57:42]POST finish read [20:57:42]Found Content-Length = 677 [20:57:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412330", "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" ] } } [20:57:42]execute_script... [20:57: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)412330", "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" ] } } [20:57:42]POST & json_proto [20:57:42]process_json_proto [20:57:42]json parsed OK: [20:57:42]protocol is kg_v1.0 [20:57:42]action value=close_receipt [20:57:42]process_action close_receipt [20:57:42]cmd_close_receipt [20:57:42]MH_GetDate [20:57:42]Write to MH i2c: F0 00 00 A1 0A 9A [20:57:42]Write i2c OK [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: F0 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: F0 09 00 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: F0 09 00 A1 0A 00 C7 45 B6 67 7E 41 4F 65 3F [20:57:42]GetLastDocTimeStamp 1739998593 [20:57:42]current date 1739998663 [20:57:42]FM_GetShiftState [20:57:42]SAM_PROTO_GetShiftState [20:57:42]wFMCommunicate request_size=4 [20:57:42]MH_SAM_APDU [20:57:42]CAPDU: 80 13 01 00 [20:57:42]Write to MH i2c: E2 08 00 A2 0A 80 13 01 00 00 00 00 00 29 [20:57:42]Write i2c OK [20:57:42]MH_I2C_Read... [20:57:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:42]Read from MH i2c: E2 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: E2 0E 00 [20:57:42]MH_I2C_Read... [20:57:42]Read from MH i2c: E2 0E 00 A2 0A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A8 [20:57:42]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:57:42]wFMCommunicate OK [20:57:42]SAM_PROTO_GetShiftState done [20:57:42]FM_GetShiftState done [20:57:42]opened in 1739929631 [20:57:42]opened+sec_in_day 1740016031 [20:57:42]quantity*price = 50011 [20:57:42]sum+1 = 50013 [20:57:42]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 СНО: Общий режим Чек 241 19.02.2025 20:57 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187175 ФПД: 8101547465585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T205743&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187175&fm=8101547465585&tin=02508201610067®Number=0000000000091857&sum=50000 [20:57:43]StoreToDocumentArchive [20:57:43]shift 647 fd 187175 [20:57:43]save to /storage/0647/doc_00187175 [20:57:43]save last doc name /storage/0647/doc_00187175 to /storage/kkm_last_doc_name [20:57:43]save OK [20:57:43]Clear old archive folders... [20:57:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:57:43]tlvbuf is 01F23DB0 [20:57:43]SAM_PROTO_ClearQueue [20:57:43]wFMCommunicate request_size=4 [20:57:43]MH_SAM_APDU [20:57:43]CAPDU: 80 09 00 00 [20:57:43]Write to MH i2c: E2 08 00 AF 0A 80 09 00 00 00 00 00 00 2B [20:57:44]Write i2c OK [20:57:44]MH_I2C_Read... [20:57:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:57:44]Read from MH i2c: E2 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 03 00 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 03 00 AF 0A 00 90 00 2D [20:57:44]RAPDU: 90 00 [20:57:44]wFMCommunicate OK [20:57:44]SAM_PROTO_ClearQueue done [20:57:44]KKMCreateOFDPacket [20:57:44]OFDProtocolAddRootSTLVToBuf [20:57:44]FM_MakeSignedData [20:57:44]FM_MakeSignedData [20:57:44]SAM_PROTO_SignData [20:57:44]wFMCommunicate request_size=4 [20:57:44]MH_SAM_APDU [20:57:44]CAPDU: 80 0D 01 02 [20:57:44]Write to MH i2c: E2 08 00 B0 0A 80 0D 01 02 00 00 00 00 33 [20:57:44]Write i2c OK [20:57:44]MH_I2C_Read... [20:57:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:57:44]Read from MH i2c: E2 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 03 00 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 03 00 B0 0A 00 90 00 2E [20:57:44]RAPDU: 90 00 [20:57:44]wFMCommunicate OK [20:57:44]wFMCommunicate request_size=255 [20:57:44]MH_SAM_APDU [20:57: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 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F1 00 00 00 F4 03 04 00 C7 45 B6 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 27 DB 02 00 35 04 06 00 07 [20:57:44]Write to MH i2c: E2 02 01 B1 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 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 F1 00 00 00 F4 03 04 00 C7 45 B6 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 27 DB 02 00 35 04 06 00 07 00 00 7A [20:57:44]Write i2c OK [20:57:44]MH_I2C_Read... [20:57:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:44]Read from MH i2c: E2 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 03 00 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 03 00 B1 0A 00 90 00 2F [20:57:44]RAPDU: 90 00 [20:57:44]wFMCommunicate OK [20:57:44]wFMCommunicate request_size=10 [20:57:44]MH_SAM_APDU [20:57:44]CAPDU: 80 0D 02 02 05 5E 49 DB DB 71 [20:57:44]Write to MH i2c: E2 0D 00 B2 0A 80 0D 02 02 05 00 5E 49 DB DB 71 00 00 0E [20:57:44]Write i2c OK [20:57:44]MH_I2C_Read... [20:57:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:44]Read from MH i2c: E2 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 03 00 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 03 00 B2 0A 00 90 00 30 [20:57:44]RAPDU: 90 00 [20:57:44]wFMCommunicate OK [20:57:44]wFMCommunicate request_size=4 [20:57:44]MH_SAM_APDU [20:57:44]CAPDU: 80 0D 03 02 [20:57:44]Write to MH i2c: E2 08 00 B3 0A 80 0D 03 02 00 00 00 00 38 [20:57:44]Write i2c OK [20:57:44]MH_I2C_Read... [20:57:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:57:44]Read from MH i2c: E2 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 0B 00 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 0B 00 B3 0A 00 AF FF EE 02 5A 2F 1F 6B 90 00 EA [20:57:44]RAPDU: AF FF EE 02 5A 2F 1F 6B 90 00 [20:57:44]wFMCommunicate OK [20:57:44]SAM_PROTO_SignData done [20:57:44]FM_MakeSignedData done [20:57:44]CreateOFDProtocolMessage [20:57:44]wFMCommunicate request_size=4 [20:57:44]MH_SAM_APDU [20:57:44]CAPDU: 80 11 00 00 [20:57:44]Write to MH i2c: E2 08 00 B4 0A 80 11 00 00 00 00 00 00 38 [20:57:44]Write i2c OK [20:57:44]MH_I2C_Read... [20:57:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:44]Read from MH i2c: E2 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 17 00 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: E2 17 00 B4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8B [20:57:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:57:44]wFMCommunicate OK [20:57:44]CreateOFDProtocolMessage done [20:57:44]OFDSenderStorePacket 187175 [20:57:44]StoreOFDPacket docnum=187175 [20:57: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 D0 17 07 01 73 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F1 00 00 00 F4 03 04 00 C7 45 B6 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 27 DB 02 00 35 04 06 00 07 5E 49 DB DB 71 AF FF EE 02 5A 2F 1F 6B [20:57:44]CheckFolder [20:57:44]dirname=/storage/ofd_packets [20:57:44]CheckFolder done [20:57:44]ProducePacketName [20:57:44]name=ofd_packets/00187175 [20:57:44]NVStorageSaveData ofd_packets/00187175 [20:57:44]File name is /storage/ofd_packets/00187175 [20:57:44]Write 301 bytes [20:57:44]NVStorageSaveData done [20:57:44]OFDSenderStorePacket done [20:57:44]KKMCreateOFDPacket done [20:57:44]NVStorageSaveData kkm_last_timestamp [20:57:44]File name is /storage/kkm_last_timestamp [20:57:44]Write 4 bytes [20:57:44]NVStorageSaveData done [20:57:44]ExternCall_PrintAddStr [20:57:44]wPrintStart [20:57:44]Write to MH i2c: 01 00 00 B5 0A BF [20:57:44]Write i2c OK [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: 01 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: 01 07 00 [20:57:44]MH_I2C_Read... [20:57:44]Read from MH i2c: 01 07 00 B5 0A 00 00 00 00 00 FF 0F D4 [20:57:44]RasterBufferAndPrint [20:57:44]line Счет N : (1)412330 [20:57:44]line ИНН: 02508201610067 [20:57:44]line Контрольно-Кассовый Чек [20:57:44]line ПРОДАЖА [20:57:44]line ТРК (МРК, ГНК) : 12 [20:57:44]line Товар: 2710124130 [20:57:44]line Аи-92-К-2 [20:57:44]line 7.790 * 64.20 [20:57:44]line = 500.12 [20:57:44]line НДС 12% НСП 1% [20:57:44]line > о реализуемом товаре [20:57:44]line ОКРУГЛЕНИЕ: -0.12 [20:57:44]line ИТОГО: 500.00 [20:57:44]line Внесено: 500.00 [20:57:44]line СДАЧА: 0.00 [20:57:44]line НСП 1% : 4.43 [20:57:44]line НДС 12% : 53.11 [20:57:44]line Наличными: 500.00 [20:57:44]line Безнал.: 0.00 [20:57:44]line Место: АЗС № 92 "Партнер Нефть" [20:57:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:57:44]line СНО: Общий режим [20:57:44]line Чек 241 19.02.2025 20:57 [20:57:44]line Смена: 647 ФФД: 1.0 [20:57:44]line ЗНМ: 0300000118 [20:57:44]line РНМ: 0000000000091857 [20:57:44]line Версия ККМ: 001 [20:57:44]line ФМ: 0000000000871826 [20:57:44]line ФД: 187175 [20:57:44]line ФПД: 8101547465585 [20:57:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T205743&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187175&fm=8101547465585&tin=02508201610067®Number=0000000000091857&sum=50000 [20:57:44]written 0, free lines is 4095 [20:57:44]OFD Sender: Processing packet 187175 [packets to send 49, broken 48] [20:57:44]ProducePacketName [20:57:44]name=ofd_packets/00187175 [20:57:44]OFD Sender: To server: pG, [20:57:44]CommunicateWithHost lk.salyk.kg:30040 [20:57:44]ConnectInit lk.salyk.kg [20:57:45]Write to MH i2c: 01 00 00 E0 0A EA [20:57:45]Write i2c OK [20:57:45]MH_I2C_Read... [20:57:45]Read from MH i2c: 01 [20:57:45]MH_I2C_Read... [20:57:45]Read from MH i2c: 01 07 00 [20:57:45]MH_I2C_Read... [20:57:45]Read from MH i2c: 01 07 00 E0 0A 00 00 00 00 00 E8 0C E5 [20:57:45]RasterBufferAndPrint [20:57:45]line [20:57:45]line [20:57:45]line [20:57:45]line [20:57:45]line [20:57:45]written 0, free lines is 3308 [20:57:45]MH_Cut [20:57:45]Write to MH i2c: D1 01 00 E7 0A 01 C3 [20:57:45]Write i2c OK [20:57:45]MH_I2C_Read... [20:57:45]Read from MH i2c: D1 [20:57:45]MH_I2C_Read... [20:57:45]Read from MH i2c: D1 01 00 [20:57:45]MH_I2C_Read... [20:57:45]Read from MH i2c: D1 01 00 E7 0A 00 C2 [20:57:45]Write to MH i2c: 01 00 00 E8 0A F2 [20:57:45]Write i2c OK [20:57:45]MH_I2C_Read... [20:57:45]*** Cut start [20:57:45]*** Partial cut [20:57:45]*** CUTSNS_PIN = 1 [20:57:46]*** CUTSNS_PIN = 0 [20:57:46]*** Brake cut motor [20:57:46]Read from MH i2c: 01 [20:57:46]MH_I2C_Read... [20:57:46]*** Stop cut motor [20:57:46]*** Cut end [20:57:46]Read from MH i2c: 01 07 00 [20:57:46]MH_I2C_Read... [20:57:46]Read from MH i2c: 01 07 00 E8 0A 00 00 00 00 00 FF 0F 07 [20:57:46]process_action close_receipt done [20:57:46]requested_data is exist [20:57:46]produce_requested_data [20:57:46]requested_item fm.sn is exist - process it [20:57:46]wFMCommunicate request_size=4 [20:57:46]MH_SAM_APDU [20:57:46]CAPDU: 80 11 00 00 [20:57:46]Write to MH i2c: E2 08 00 E9 0A 80 11 00 00 00 00 00 00 6D [20:57:46]Write i2c OK [20:57:46]MH_I2C_Read... [20:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:46]Read from MH i2c: E2 [20:57:46]MH_I2C_Read... [20:57:46]Read from MH i2c: E2 17 00 [20:57:46]MH_I2C_Read... [20:57:46]Read from MH i2c: E2 17 00 E9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C0 [20:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:57:46]wFMCommunicate OK [20:57:46]requested_item fd.num is exist - process it [20:57:46]SAM_PROTO_GetFieldsCounters [20:57:46]wFMCommunicate request_size=4 [20:57:46]MH_SAM_APDU [20:57:46]CAPDU: 80 13 00 00 [20:57:46]Write to MH i2c: E2 08 00 EA 0A 80 13 00 00 00 00 00 00 70 [20:57:46]Write i2c OK [20:57:46]MH_I2C_Read... [20:57:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:46]Read from MH i2c: E2 [20:57:46]MH_I2C_Read... [20:57:46]Read from MH i2c: E2 62 00 [20:57:46]MH_I2C_Read... [20:57:46]Read from MH i2c: E2 62 00 EA 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 27 DB 02 00 0E 04 04 00 87 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 F6 [20:57: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 27 DB 02 00 0E 04 04 00 87 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 [20:57:46]wFMCommunicate OK [20:57:46]SAM_PROTO_GetFieldsCounters done [20:57:46]requested_item shift.num is exist - process it [20:57:46]requested_item shift.opened is exist - process it [20:57:46]req_shift_opened [20:57:46]FM_GetShiftState [20:57:46]SAM_PROTO_GetShiftState [20:57:46]wFMCommunicate request_size=4 [20:57:46]MH_SAM_APDU [20:57:46]CAPDU: 80 13 01 00 [20:57:46]Write to MH i2c: E2 08 00 EB 0A 80 13 01 00 00 00 00 00 72 [20:57:46]Write i2c OK [20:57:46]MH_I2C_Read... [20:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:46]Read from MH i2c: E2 [20:57:46]MH_I2C_Read... [20:57:46]Read from MH i2c: E2 0E 00 [20:57:46]MH_I2C_Read... [20:57:46]Read from MH i2c: E2 0E 00 EB 0A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F1 [20:57:46]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [20:57:46]wFMCommunicate OK [20:57:46]SAM_PROTO_GetShiftState done [20:57:46]FM_GetShiftState done [20:57:46]req_shift_opened done [20:57:46]requested_item shift.open_date is exist - process it [20:57:46]req_shift_open_date [20:57:46]req_shift_open_date done [20:57:46]produce_requested_data done [20:57:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187175,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [20:57:46]process_action_free close_receipt [20:57:46]json_value_free [20:57:46]json_value_free done [20:57:46]process_json_proto returns [20:57:46]Send response to host [20:57:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187175,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [20:57:46]free response buf [20:57:46]execute_script done [20:57:46]execute_script returns [20:57:46]free content buf [20:57:46]Sock 9.Close socket [20:57:46]Sock 9.Thread stoped [20:59:58]ConnectInit Can't connect to host [20:59:58]CommunicateWithHost connect error [20:59:58]CommunicateWithHost err = -1 [20:59:58]OFD Sender: Server communicate error [21:00:03]OFD Sender: Processing packet 187175 [packets to send 49, broken 48] [21:00:03]ProducePacketName [21:00:03]name=ofd_packets/00187175 [21:00:03]OFD Sender: To server: pG, [21:00:03]CommunicateWithHost lk.salyk.kg:30040 [21:00:03]ConnectInit lk.salyk.kg [21:00:04]Connected sock=9 [21:00: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 D0 17 07 01 73 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F1 00 00 00 F4 03 04 00 C7 45 B6 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 27 DB 02 00 35 04 06 00 07 5E 49 DB DB 71 AF FF EE 02 5A 2F 1F 6B [21:00: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 83 9A 47 00 89 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 27 DB 02 00 F4 03 04 00 A5 EC B5 67 B6 04 01 00 00 3D B4 72 51 AB 4E D6 65 [21:00:04]CommunicateWithHost err = 0 [21:00:04]CheckOFDResponse [21:00:04]1017 (14) - 77093643461234 [21:00:04]1041 (16) - 0000000000871826 [21:00:04]1040 (4) - 187175 [21:00:04]1012 (4) - 19.02.2025 14:37 [21:00:04]1206 (1) - 0 [21:00:04]OFD Sender: Remove packet 187175 [21:00:04]ProducePacketName [21:00:04]name=ofd_packets/00187175 [21:00:04]NVStorageDeleteData [21:00:04]OFD Sender: No OFD packet to send [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:54]OFD Sender: No OFD packet to send [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:50]accept exits with 7 [21:02:50]New connection [21:02:50]New thread 3066510692 created [21:02:50]Thread 3066654052 joined [21:02:50]Waiting for new connection... [21:02:50] Sock 7.Parse request [21:02:50]Sock 7.Check first char [21:02:50]Sock 7.First char is OK [21:02:50]request: POST /json_proto HTTP/1.0 [21:02:50]Method: POST [21:02:50]URL: /json_proto [21:02:50]Method is POST - this is cgi request [21:02:50]url: /json_proto [21:02:50]query_string will be loaded in cgi processing [21:02:50]execute_cgi json_proto POST (null) [21:02:50]execute_cgi path=json_proto method=POST [21:02:50]POST find Content-Length [21:02:50]Host: 172.17.46.131:8080 [21:02:50]Content-Length: 800 [21:02:50]Content-Type: application/json [21:02:50] [21:02:50]POST finish read [21:02:50]Found Content-Length = 800 [21:02:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412331", "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\u000A4997509", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:50]execute_script... [21:02: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)412331", "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\u000A4997509", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:50]POST & json_proto [21:02:50]process_json_proto [21:02:50]json parsed OK: [21:02:50]protocol is kg_v1.0 [21:02:50]action value=close_receipt [21:02:50]process_action close_receipt [21:02:50]cmd_close_receipt [21:02:50]MH_GetDate [21:02:50]Write to MH i2c: F0 00 00 EC 0A E5 [21:02:50]Write i2c OK [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: F0 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: F0 09 00 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: F0 09 00 EC 0A 00 FB 46 B6 67 7E 41 4F 65 BF [21:02:50]GetLastDocTimeStamp 1739998663 [21:02:50]current date 1739998971 [21:02:50]FM_GetShiftState [21:02:50]SAM_PROTO_GetShiftState [21:02:50]wFMCommunicate request_size=4 [21:02:50]MH_SAM_APDU [21:02:50]CAPDU: 80 13 01 00 [21:02:50]Write to MH i2c: E2 08 00 ED 0A 80 13 01 00 00 00 00 00 74 [21:02:50]Write i2c OK [21:02:50]MH_I2C_Read... [21:02:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:50]Read from MH i2c: E2 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: E2 0E 00 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: E2 0E 00 ED 0A 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F3 [21:02:50]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [21:02:50]wFMCommunicate OK [21:02:50]SAM_PROTO_GetShiftState done [21:02:50]FM_GetShiftState done [21:02:50]opened in 1739929631 [21:02:50]opened+sec_in_day 1740016031 [21:02:50]quantity*price = 0 [21:02:50]sum+1 = 1 [21:02:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 242 19.02.2025 21:02 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4997509 ФМ: 0000000000871826 ФД: 187176 ФПД: 257206074488888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T210251&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187176&fm=257206074488888&tin=02508201610067®Number=0000000000091857&sum=0 [21:02:51]StoreToDocumentArchive [21:02:51]shift 647 fd 187176 [21:02:51]save to /storage/0647/doc_00187176 [21:02:51]save last doc name /storage/0647/doc_00187176 to /storage/kkm_last_doc_name [21:02:51]save OK [21:02:51]Clear old archive folders... [21:02:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:02:51]tlvbuf is 01FB4D90 [21:02:51]SAM_PROTO_ClearQueue [21:02:51]wFMCommunicate request_size=4 [21:02:51]MH_SAM_APDU [21:02:51]CAPDU: 80 09 00 00 [21:02:51]Write to MH i2c: E2 08 00 FA 0A 80 09 00 00 00 00 00 00 76 [21:02:51]Write i2c OK [21:02:51]MH_I2C_Read... [21:02:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:02:51]Read from MH i2c: E2 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: E2 03 00 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: E2 03 00 FA 0A 00 90 00 78 [21:02:51]RAPDU: 90 00 [21:02:51]wFMCommunicate OK [21:02:51]SAM_PROTO_ClearQueue done [21:02:51]KKMCreateOFDPacket [21:02:51]OFDProtocolAddRootSTLVToBuf [21:02:51]FM_MakeSignedData [21:02:51]FM_MakeSignedData [21:02:51]SAM_PROTO_SignData [21:02:51]wFMCommunicate request_size=4 [21:02:51]MH_SAM_APDU [21:02:51]CAPDU: 80 0D 01 02 [21:02:51]Write to MH i2c: E2 08 00 FB 0A 80 0D 01 02 00 00 00 00 7E [21:02:51]Write i2c OK [21:02:51]MH_I2C_Read... [21:02:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:02:51]Read from MH i2c: E2 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: E2 03 00 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: E2 03 00 FB 0A 00 90 00 79 [21:02:51]RAPDU: 90 00 [21:02:51]wFMCommunicate OK [21:02:51]wFMCommunicate request_size=255 [21:02:51]MH_SAM_APDU [21:02: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 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 F2 00 00 00 F4 03 04 00 FB 46 B6 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 28 DB 02 00 35 04 06 00 E9 [21:02:51]Write to MH i2c: E2 02 01 FC 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 F2 00 00 00 F4 03 04 00 FB 46 B6 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 28 DB 02 00 35 04 06 00 E9 00 00 88 [21:02:51]Write i2c OK [21:02:51]MH_I2C_Read... [21:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:51]Read from MH i2c: E2 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: E2 03 00 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: E2 03 00 FC 0A 00 90 00 7A [21:02:51]RAPDU: 90 00 [21:02:51]wFMCommunicate OK [21:02:51]wFMCommunicate request_size=10 [21:02:51]MH_SAM_APDU [21:02:51]CAPDU: 80 0D 02 02 05 ED 74 B4 38 38 [21:02:51]Write to MH i2c: E2 0D 00 FD 0A 80 0D 02 02 05 00 ED 74 B4 38 38 00 00 10 [21:02:51]Write i2c OK [21:02:51]MH_I2C_Read... [21:02:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:52]Read from MH i2c: E2 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: E2 03 00 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: E2 03 00 FD 0A 00 90 00 7B [21:02:52]RAPDU: 90 00 [21:02:52]wFMCommunicate OK [21:02:52]wFMCommunicate request_size=4 [21:02:52]MH_SAM_APDU [21:02:52]CAPDU: 80 0D 03 02 [21:02:52]Write to MH i2c: E2 08 00 FE 0A 80 0D 03 02 00 00 00 00 83 [21:02:52]Write i2c OK [21:02:52]MH_I2C_Read... [21:02:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:02:52]Read from MH i2c: E2 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: E2 0B 00 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: E2 0B 00 FE 0A 00 FE 26 5B 16 C6 E9 44 D0 90 00 DC [21:02:52]RAPDU: FE 26 5B 16 C6 E9 44 D0 90 00 [21:02:52]wFMCommunicate OK [21:02:52]SAM_PROTO_SignData done [21:02:52]FM_MakeSignedData done [21:02:52]CreateOFDProtocolMessage [21:02:52]wFMCommunicate request_size=4 [21:02:52]MH_SAM_APDU [21:02:52]CAPDU: 80 11 00 00 [21:02:52]Write to MH i2c: E2 08 00 FF 0A 80 11 00 00 00 00 00 00 83 [21:02:52]Write i2c OK [21:02:52]MH_I2C_Read... [21:02:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:52]Read from MH i2c: E2 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: E2 17 00 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: E2 17 00 FF 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D6 [21:02:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:02:52]wFMCommunicate OK [21:02:52]CreateOFDProtocolMessage done [21:02:52]OFDSenderStorePacket 187176 [21:02:52]StoreOFDPacket docnum=187176 [21:02: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 2E 76 07 01 97 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 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 F2 00 00 00 F4 03 04 00 FB 46 B6 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 28 DB 02 00 35 04 06 00 E9 ED 74 B4 38 38 FE 26 5B 16 C6 E9 44 D0 [21:02:52]CheckFolder [21:02:52]dirname=/storage/ofd_packets [21:02:52]CheckFolder done [21:02:52]ProducePacketName [21:02:52]name=ofd_packets/00187176 [21:02:52]NVStorageSaveData ofd_packets/00187176 [21:02:52]File name is /storage/ofd_packets/00187176 [21:02:52]Write 301 bytes [21:02:52]NVStorageSaveData done [21:02:52]OFDSenderStorePacket done [21:02:52]KKMCreateOFDPacket done [21:02:52]NVStorageSaveData kkm_last_timestamp [21:02:52]File name is /storage/kkm_last_timestamp [21:02:52]Write 4 bytes [21:02:52]NVStorageSaveData done [21:02:52]ExternCall_PrintAddStr [21:02:52]wPrintStart [21:02:52]Write to MH i2c: 01 00 00 00 0B 0B [21:02:52]Write i2c OK [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: 01 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: 01 07 00 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: 01 07 00 00 0B 00 00 00 00 00 FF 0F 20 [21:02:52]RasterBufferAndPrint [21:02:52]line Счет N : (1)412331 [21:02:52]line ИНН: 02508201610067 [21:02:52]line Контрольно-Кассовый Чек [21:02:52]line ПРОДАЖА [21:02:52]line ТРК (МРК, ГНК) : 32 [21:02:52]line Товар: 2710124130 [21:02:52]line Аи-92-К-2 [21:02:52]line 10.000 * 0.00 [21:02:52]line = 0.00 [21:02:52]line НДС 12% НСП 1% [21:02:52]line > о реализуемом товаре [21:02:52]line ИТОГО: 0.00 [21:02:52]line НСП 1% : 0.00 [21:02:52]line НДС 12% : 0.00 [21:02:52]line Наличными: 0.00 [21:02:52]line Безнал.: 0.00 [21:02:52]line Место: АЗС № 92 "Партнер Нефть" [21:02:52]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:02:52]line СНО: Общий режим [21:02:52]line Чек 242 19.02.2025 21:02 [21:02:52]line Смена: 647 ФФД: 1.0 [21:02:52]line ЗНМ: 0300000118 [21:02:52]line РНМ: 0000000000091857 [21:02:52]line Версия ККМ: 001 [21:02:52]line Талоны: Топливные Талоны [21:02:52]line 4997509 [21:02:52]line ФМ: 0000000000871826 [21:02:52]line ФД: 187176 [21:02:52]line ФПД: 257206074488888 [21:02:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T210251&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187176&fm=257206074488888&tin=02508201610067®Number=0000000000091857&sum=0 [21:02:52]written 0, free lines is 4095 [21:02:52]OFD Sender: Processing packet 187176 [packets to send 49, broken 48] [21:02:52]ProducePacketName [21:02:52]name=ofd_packets/00187176 [21:02:52]OFD Sender: To server: pG, [21:02:52]CommunicateWithHost lk.salyk.kg:30040 [21:02:52]ConnectInit lk.salyk.kg [21:02:52]Connected sock=10 [21:02: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 2E 76 07 01 97 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 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 F2 00 00 00 F4 03 04 00 FB 46 B6 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 28 DB 02 00 35 04 06 00 E9 ED 74 B4 38 38 FE 26 5B 16 C6 E9 44 D0 [21:02:52]Write to MH i2c: 01 00 00 2A 0B 35 [21:02:52]Write i2c OK [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: 01 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: 01 07 00 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: 01 07 00 2A 0B 00 00 00 00 00 04 0D 4D [21:02:52]RasterBufferAndPrint [21:02:52]line [21:02:52]line [21:02:52]line [21:02:52]line [21:02:52]line [21:02:52]written 0, free lines is 3338 [21:02:52]MH_Cut [21:02:52]Write to MH i2c: D1 01 00 31 0B 01 0E [21:02:52]Write i2c OK [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: D1 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: D1 01 00 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: D1 01 00 31 0B 00 0D [21:02:52]Write to MH i2c: 01 00 00 32 0B 3D [21:02:52]Write i2c OK [21:02:52]MH_I2C_Read... [21:02: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 9A 2A 47 00 2A A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 28 DB 02 00 F4 03 04 00 4E ED B5 67 B6 04 01 00 00 EB B6 23 B3 C6 32 A4 65 [21:02:52]CommunicateWithHost err = 0 [21:02:52]CheckOFDResponse [21:02:52]1017 (14) - 77093643461234 [21:02:52]1041 (16) - 0000000000871826 [21:02:52]1040 (4) - 187176 [21:02:52]1012 (4) - 19.02.2025 14:40 [21:02:52]1206 (1) - 0 [21:02:52]OFD Sender: Remove packet 187176 [21:02:52]ProducePacketName [21:02:52]name=ofd_packets/00187176 [21:02:52]NVStorageDeleteData [21:02:53]OFD Sender: No OFD packet to send [21:02:53]*** Cut start [21:02:53]*** Partial cut [21:02:53]*** CUTSNS_PIN = 1 [21:02:53]*** CUTSNS_PIN = 0 [21:02:53]*** Brake cut motor [21:02:53]Read from MH i2c: 01 [21:02:53]MH_I2C_Read... [21:02:53]*** Stop cut motor [21:02:53]*** Cut end [21:02:53]Read from MH i2c: 01 07 00 [21:02:53]MH_I2C_Read... [21:02:53]Read from MH i2c: 01 07 00 32 0B 00 00 00 00 00 FF 0F 52 [21:02:53]process_action close_receipt done [21:02:53]requested_data is exist [21:02:53]produce_requested_data [21:02:53]requested_item fm.sn is exist - process it [21:02:53]wFMCommunicate request_size=4 [21:02:53]MH_SAM_APDU [21:02:53]CAPDU: 80 11 00 00 [21:02:53]Write to MH i2c: E2 08 00 33 0B 80 11 00 00 00 00 00 00 B8 [21:02:53]Write i2c OK [21:02:53]MH_I2C_Read... [21:02:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:54]Read from MH i2c: E2 [21:02:54]MH_I2C_Read... [21:02:54]Read from MH i2c: E2 17 00 [21:02:54]MH_I2C_Read... [21:02:54]Read from MH i2c: E2 17 00 33 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0B [21:02: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:02:54]wFMCommunicate OK [21:02:54]requested_item fd.num is exist - process it [21:02:54]SAM_PROTO_GetFieldsCounters [21:02:54]wFMCommunicate request_size=4 [21:02:54]MH_SAM_APDU [21:02:54]CAPDU: 80 13 00 00 [21:02:54]Write to MH i2c: E2 08 00 34 0B 80 13 00 00 00 00 00 00 BB [21:02:54]Write i2c OK [21:02:54]MH_I2C_Read... [21:02:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:02:54]Read from MH i2c: E2 [21:02:54]MH_I2C_Read... [21:02:54]Read from MH i2c: E2 62 00 [21:02:54]MH_I2C_Read... [21:02:54]Read from MH i2c: E2 62 00 34 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 28 DB 02 00 0E 04 04 00 87 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 45 [21:02: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 28 DB 02 00 0E 04 04 00 87 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 [21:02:54]wFMCommunicate OK [21:02:54]SAM_PROTO_GetFieldsCounters done [21:02:54]requested_item shift.num is exist - process it [21:02:54]requested_item shift.opened is exist - process it [21:02:54]req_shift_opened [21:02:54]FM_GetShiftState [21:02:54]SAM_PROTO_GetShiftState [21:02:54]wFMCommunicate request_size=4 [21:02:54]MH_SAM_APDU [21:02:54]CAPDU: 80 13 01 00 [21:02:54]Write to MH i2c: E2 08 00 35 0B 80 13 01 00 00 00 00 00 BD [21:02:54]Write i2c OK [21:02:54]MH_I2C_Read... [21:02:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:54]Read from MH i2c: E2 [21:02:54]MH_I2C_Read... [21:02:54]Read from MH i2c: E2 0E 00 [21:02:54]MH_I2C_Read... [21:02:54]Read from MH i2c: E2 0E 00 35 0B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 3C [21:02:54]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [21:02:54]wFMCommunicate OK [21:02:54]SAM_PROTO_GetShiftState done [21:02:54]FM_GetShiftState done [21:02:54]req_shift_opened done [21:02:54]requested_item shift.open_date is exist - process it [21:02:54]req_shift_open_date [21:02:54]req_shift_open_date done [21:02:54]produce_requested_data done [21:02:54]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187176,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [21:02:54]process_action_free close_receipt [21:02:54]json_value_free [21:02:54]json_value_free done [21:02:54]process_json_proto returns [21:02:54]Send response to host [21:02:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187176,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [21:02:54]free response buf [21:02:54]execute_script done [21:02:54]execute_script returns [21:02:54]free content buf [21:02:54]Sock 7.Close socket [21:02:54]Sock 7.Thread stoped [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:57]accept exits with 9 [21:03:57]New connection [21:03:57]New thread 3066654052 created [21:03:57]Thread 3066510692 joined [21:03:57]Waiting for new connection... [21:03:57] Sock 9.Parse request [21:03:57]Sock 9.Check first char [21:03:57]Sock 9.First char is OK [21:03:57]request: POST /json_proto HTTP/1.0 [21:03:57]Method: POST [21:03:57]URL: /json_proto [21:03:57]Method is POST - this is cgi request [21:03:57]url: /json_proto [21:03:57]query_string will be loaded in cgi processing [21:03:57]execute_cgi json_proto POST (null) [21:03:57]execute_cgi path=json_proto method=POST [21:03:57]POST find Content-Length [21:03:57]Host: 172.17.46.131:8080 [21:03:57]Content-Length: 678 [21:03:57]Content-Type: application/json [21:03:57] [21:03:57]POST finish read [21:03:57]Found Content-Length = 678 [21:03:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412332", "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" : 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" ] } } [21:03:57]execute_script... [21: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)412332", "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" : 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" ] } } [21:03:57]POST & json_proto [21:03:57]process_json_proto [21:03:57]json parsed OK: [21:03:57]protocol is kg_v1.0 [21:03:57]action value=close_receipt [21:03:57]process_action close_receipt [21:03:57]cmd_close_receipt [21:03:57]MH_GetDate [21:03:57]Write to MH i2c: F0 00 00 36 0B 30 [21:03:57]Write i2c OK [21:03:57]MH_I2C_Read... [21:03:57]Read from MH i2c: F0 [21:03:57]MH_I2C_Read... [21:03:57]Read from MH i2c: F0 09 00 [21:03:57]MH_I2C_Read... [21:03:57]Read from MH i2c: F0 09 00 36 0B 00 3E 47 B6 67 7E 41 4F 65 4E [21:03:57]GetLastDocTimeStamp 1739998971 [21:03:57]current date 1739999038 [21:03:57]FM_GetShiftState [21:03:57]SAM_PROTO_GetShiftState [21:03:57]wFMCommunicate request_size=4 [21:03:57]MH_SAM_APDU [21:03:57]CAPDU: 80 13 01 00 [21:03:57]Write to MH i2c: E2 08 00 37 0B 80 13 01 00 00 00 00 00 BF [21:03:57]Write i2c OK [21:03:57]MH_I2C_Read... [21:03:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:57]Read from MH i2c: E2 [21:03:57]MH_I2C_Read... [21:03:57]Read from MH i2c: E2 0E 00 [21:03:57]MH_I2C_Read... [21:03:57]Read from MH i2c: E2 0E 00 37 0B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 3E [21:03:57]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [21:03:57]wFMCommunicate OK [21:03:57]SAM_PROTO_GetShiftState done [21:03:57]FM_GetShiftState done [21:03:57]opened in 1739929631 [21:03:57]opened+sec_in_day 1740016031 [21:03:57]quantity*price = 80057 [21:03:57]sum+1 = 80058 [21:03:57]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 СНО: Общий режим Чек 243 19.02.2025 21:03 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187177 ФПД: 6195068231173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T210358&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187177&fm=6195068231173&tin=02508201610067®Number=0000000000091857&sum=80000 [21:03:58]StoreToDocumentArchive [21:03:58]shift 647 fd 187177 [21:03:58]save to /storage/0647/doc_00187177 [21:03:58]save last doc name /storage/0647/doc_00187177 to /storage/kkm_last_doc_name [21:03:58]save OK [21:03:58]Clear old archive folders... [21:03:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:03:58]tlvbuf is 01FAD450 [21:03:58]SAM_PROTO_ClearQueue [21:03:58]wFMCommunicate request_size=4 [21:03:58]MH_SAM_APDU [21:03:58]CAPDU: 80 09 00 00 [21:03:58]Write to MH i2c: E2 08 00 44 0B 80 09 00 00 00 00 00 00 C1 [21:03:58]Write i2c OK [21:03:58]MH_I2C_Read... [21:03:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:03:58]Read from MH i2c: E2 [21:03:58]MH_I2C_Read... [21:03:58]Read from MH i2c: E2 03 00 [21:03:58]MH_I2C_Read... [21:03:58]Read from MH i2c: E2 03 00 44 0B 00 90 00 C3 [21:03:58]RAPDU: 90 00 [21:03:58]wFMCommunicate OK [21:03:58]SAM_PROTO_ClearQueue done [21:03:58]KKMCreateOFDPacket [21:03:58]OFDProtocolAddRootSTLVToBuf [21:03:58]FM_MakeSignedData [21:03:58]FM_MakeSignedData [21:03:58]SAM_PROTO_SignData [21:03:58]wFMCommunicate request_size=4 [21:03:58]MH_SAM_APDU [21:03:58]CAPDU: 80 0D 01 02 [21:03:58]Write to MH i2c: E2 08 00 45 0B 80 0D 01 02 00 00 00 00 C9 [21:03:58]Write i2c OK [21:03:58]MH_I2C_Read... [21:03:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:03:58]Read from MH i2c: E2 [21:03:58]MH_I2C_Read... [21:03:58]Read from MH i2c: E2 03 00 [21:03:58]MH_I2C_Read... [21:03:58]Read from MH i2c: E2 03 00 45 0B 00 90 00 C4 [21:03:58]RAPDU: 90 00 [21:03:58]wFMCommunicate OK [21:03:58]wFMCommunicate request_size=255 [21:03:58]MH_SAM_APDU [21: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 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 F3 00 00 00 F4 03 04 00 3E 47 B6 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 29 DB 02 00 35 04 06 00 05 [21:03:58]Write to MH i2c: E2 02 01 46 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F3 00 00 00 F4 03 04 00 3E 47 B6 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 29 DB 02 00 35 04 06 00 05 00 00 92 [21:03:58]Write i2c OK [21:03:58]MH_I2C_Read... [21:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:58]Read from MH i2c: E2 [21:03:58]MH_I2C_Read... [21:03:58]Read from MH i2c: E2 03 00 [21:03:58]MH_I2C_Read... [21:03:58]Read from MH i2c: E2 03 00 46 0B 00 90 00 C5 [21:03:58]RAPDU: 90 00 [21:03:58]wFMCommunicate OK [21:03:58]wFMCommunicate request_size=10 [21:03:58]MH_SAM_APDU [21:03:58]CAPDU: 80 0D 02 02 05 A2 66 D7 5E 05 [21:03:58]Write to MH i2c: E2 0D 00 47 0B 80 0D 02 02 05 00 A2 66 D7 5E 05 00 00 18 [21:03:58]Write i2c OK [21:03:58]MH_I2C_Read... [21:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:58]Read from MH i2c: E2 [21:03:58]MH_I2C_Read... [21:03:58]Read from MH i2c: E2 03 00 [21:03:58]MH_I2C_Read... [21:03:58]Read from MH i2c: E2 03 00 47 0B 00 90 00 C6 [21:03:58]RAPDU: 90 00 [21:03:58]wFMCommunicate OK [21:03:58]wFMCommunicate request_size=4 [21:03:58]MH_SAM_APDU [21:03:58]CAPDU: 80 0D 03 02 [21:03:58]Write to MH i2c: E2 08 00 48 0B 80 0D 03 02 00 00 00 00 CE [21:03:58]Write i2c OK [21:03:58]MH_I2C_Read... [21:03:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:58]Read from MH i2c: E2 [21:03:58]MH_I2C_Read... [21:03:58]Read from MH i2c: E2 0B 00 [21:03:58]MH_I2C_Read... [21:03:58]Read from MH i2c: E2 0B 00 48 0B 00 EE DC 6E C8 5D E5 D6 22 90 00 09 [21:03:58]RAPDU: EE DC 6E C8 5D E5 D6 22 90 00 [21:03:58]wFMCommunicate OK [21:03:58]SAM_PROTO_SignData done [21:03:58]FM_MakeSignedData done [21:03:58]CreateOFDProtocolMessage [21:03:58]wFMCommunicate request_size=4 [21:03:58]MH_SAM_APDU [21:03:58]CAPDU: 80 11 00 00 [21:03:58]Write to MH i2c: E2 08 00 49 0B 80 11 00 00 00 00 00 00 CE [21:03:58]Write i2c OK [21:03:58]MH_I2C_Read... [21:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:58]Read from MH i2c: E2 [21:03:58]MH_I2C_Read... [21:03:58]Read from MH i2c: E2 17 00 [21:03:58]MH_I2C_Read... [21:03:58]Read from MH i2c: E2 17 00 49 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 21 [21: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 [21:03:58]wFMCommunicate OK [21:03:58]CreateOFDProtocolMessage done [21:03:58]OFDSenderStorePacket 187177 [21:03:58]StoreOFDPacket docnum=187177 [21:03: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 6E 78 07 01 07 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F3 00 00 00 F4 03 04 00 3E 47 B6 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 29 DB 02 00 35 04 06 00 05 A2 66 D7 5E 05 EE DC 6E C8 5D E5 D6 22 [21:03:58]CheckFolder [21:03:58]dirname=/storage/ofd_packets [21:03:58]CheckFolder done [21:03:58]ProducePacketName [21:03:58]name=ofd_packets/00187177 [21:03:58]NVStorageSaveData ofd_packets/00187177 [21:03:58]File name is /storage/ofd_packets/00187177 [21:03:58]Write 301 bytes [21:03:58]NVStorageSaveData done [21:03:58]OFDSenderStorePacket done [21:03:58]KKMCreateOFDPacket done [21:03:58]NVStorageSaveData kkm_last_timestamp [21:03:58]File name is /storage/kkm_last_timestamp [21:03:58]Write 4 bytes [21:03:58]NVStorageSaveData done [21:03:58]ExternCall_PrintAddStr [21:03:58]wPrintStart [21:03:58]Write to MH i2c: 01 00 00 4A 0B 55 [21:03:58]Write i2c OK [21:03:58]MH_I2C_Read... [21:03:58]Read from MH i2c: 01 [21:03:58]MH_I2C_Read... [21:03:58]Read from MH i2c: 01 07 00 [21:03:58]MH_I2C_Read... [21:03:58]Read from MH i2c: 01 07 00 4A 0B 00 00 00 00 00 FF 0F 6A [21:03:58]RasterBufferAndPrint [21:03:58]line Счет N : (1)412332 [21:03:58]line ИНН: 02508201610067 [21:03:58]line Контрольно-Кассовый Чек [21:03:58]line ПРОДАЖА [21:03:58]line ТРК (МРК, ГНК) : 12 [21:03:58]line Товар: 2710124130 [21:03:58]line Аи-92-К-2 [21:03:58]line 12.470 * 64.20 [21:03:58]line = 800.57 [21:03:58]line НДС 12% НСП 1% [21:03:58]line > о реализуемом товаре [21:03:58]line ОКРУГЛЕНИЕ: -0.57 [21:03:58]line ИТОГО: 800.00 [21:03:58]line Внесено: 800.00 [21:03:58]line СДАЧА: 0.00 [21:03:58]line НСП 1% : 7.08 [21:03:58]line НДС 12% : 85.02 [21:03:58]line Наличными: 800.00 [21:03:58]line Безнал.: 0.00 [21:03:58]line Место: АЗС № 92 "Партнер Нефть" [21:03:58]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:03:58]line СНО: Общий режим [21:03:58]line Чек 243 19.02.2025 21:03 [21:03:58]line Смена: 647 ФФД: 1.0 [21:03:58]line ЗНМ: 0300000118 [21:03:58]line РНМ: 0000000000091857 [21:03:58]line Версия ККМ: 001 [21:03:58]line ФМ: 0000000000871826 [21:03:58]line ФД: 187177 [21:03:58]line ФПД: 6195068231173 [21:03:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T210358&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187177&fm=6195068231173&tin=02508201610067®Number=0000000000091857&sum=80000 [21:03:59]written 0, free lines is 4095 [21:03:59]OFD Sender: Processing packet 187177 [packets to send 49, broken 48] [21:03:59]ProducePacketName [21:03:59]name=ofd_packets/00187177 [21:03:59]OFD Sender: To server: pG, [21:03:59]CommunicateWithHost lk.salyk.kg:30040 [21:03:59]ConnectInit lk.salyk.kg [21:03:59]Connected sock=11 [21: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 6E 78 07 01 07 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F3 00 00 00 F4 03 04 00 3E 47 B6 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 29 DB 02 00 35 04 06 00 05 A2 66 D7 5E 05 EE DC 6E C8 5D E5 D6 22 [21:03:59]Write to MH i2c: 01 00 00 75 0B 80 [21:03:59]Write i2c OK [21:03:59]MH_I2C_Read... [21:03:59]Read from MH i2c: 01 [21:03:59]MH_I2C_Read... [21:03:59]Read from MH i2c: 01 07 00 [21:03:59]MH_I2C_Read... [21:03:59]Read from MH i2c: 01 07 00 75 0B 00 00 00 00 00 F9 0C 8C [21:03:59]RasterBufferAndPrint [21:03:59]line [21:03:59]line [21:03:59]line [21:03:59]line [21:03:59]line [21:03:59]written 0, free lines is 3328 [21:03:59]MH_Cut [21:03:59]Write to MH i2c: D1 01 00 7C 0B 01 59 [21:03:59]Write i2c OK [21:03:59]MH_I2C_Read... [21:03:59]Read from MH i2c: D1 [21:03:59]MH_I2C_Read... [21:03:59]Read from MH i2c: D1 01 00 [21:03:59]MH_I2C_Read... [21:03:59]Read from MH i2c: D1 01 00 7C 0B 00 58 [21:03:59]Write to MH i2c: 01 00 00 7D 0B 88 [21:03:59]Write i2c OK [21:03:59]MH_I2C_Read... [21: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 5A 02 47 00 0B 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 29 DB 02 00 F4 03 04 00 91 ED B5 67 B6 04 01 00 00 AE AE 76 0B 95 4B 47 04 [21:03:59]CommunicateWithHost err = 0 [21:03:59]CheckOFDResponse [21:03:59]1017 (14) - 77093643461234 [21:03:59]1041 (16) - 0000000000871826 [21:03:59]1040 (4) - 187177 [21:03:59]1012 (4) - 19.02.2025 14:41 [21:03:59]1206 (1) - 0 [21:03:59]OFD Sender: Remove packet 187177 [21:03:59]ProducePacketName [21:03:59]name=ofd_packets/00187177 [21:03:59]NVStorageDeleteData [21:04:00]OFD Sender: No OFD packet to send [21:04:00]*** Cut start [21:04:00]*** Partial cut [21:04:00]*** CUTSNS_PIN = 1 [21:04:00]*** CUTSNS_PIN = 0 [21:04:00]*** Brake cut motor [21:04:01]Read from MH i2c: 01 [21:04:01]MH_I2C_Read... [21:04:01]*** Stop cut motor [21:04:01]*** Cut end [21:04:01]Read from MH i2c: 01 07 00 [21:04:01]MH_I2C_Read... [21:04:01]Read from MH i2c: 01 07 00 7D 0B 00 00 00 00 00 FF 0F 9D [21:04:01]process_action close_receipt done [21:04:01]requested_data is exist [21:04:01]produce_requested_data [21:04:01]requested_item fm.sn is exist - process it [21:04:01]wFMCommunicate request_size=4 [21:04:01]MH_SAM_APDU [21:04:01]CAPDU: 80 11 00 00 [21:04:01]Write to MH i2c: E2 08 00 7E 0B 80 11 00 00 00 00 00 00 03 [21:04:01]Write i2c OK [21:04:01]MH_I2C_Read... [21:04:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:01]Read from MH i2c: E2 [21:04:01]MH_I2C_Read... [21:04:01]Read from MH i2c: E2 17 00 [21:04:01]MH_I2C_Read... [21:04:01]Read from MH i2c: E2 17 00 7E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 56 [21: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 [21:04:01]wFMCommunicate OK [21:04:01]requested_item fd.num is exist - process it [21:04:01]SAM_PROTO_GetFieldsCounters [21:04:01]wFMCommunicate request_size=4 [21:04:01]MH_SAM_APDU [21:04:01]CAPDU: 80 13 00 00 [21:04:01]Write to MH i2c: E2 08 00 7F 0B 80 13 00 00 00 00 00 00 06 [21:04:01]Write i2c OK [21:04:01]MH_I2C_Read... [21:04:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:01]Read from MH i2c: E2 [21:04:01]MH_I2C_Read... [21:04:01]Read from MH i2c: E2 62 00 [21:04:01]MH_I2C_Read... [21:04:01]Read from MH i2c: E2 62 00 7F 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 29 DB 02 00 0E 04 04 00 87 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 94 [21: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 29 DB 02 00 0E 04 04 00 87 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 [21:04:01]wFMCommunicate OK [21:04:01]SAM_PROTO_GetFieldsCounters done [21:04:01]requested_item shift.num is exist - process it [21:04:01]requested_item shift.opened is exist - process it [21:04:01]req_shift_opened [21:04:01]FM_GetShiftState [21:04:01]SAM_PROTO_GetShiftState [21:04:01]wFMCommunicate request_size=4 [21:04:01]MH_SAM_APDU [21:04:01]CAPDU: 80 13 01 00 [21:04:01]Write to MH i2c: E2 08 00 80 0B 80 13 01 00 00 00 00 00 08 [21:04:01]Write i2c OK [21:04:01]MH_I2C_Read... [21:04:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:01]Read from MH i2c: E2 [21:04:01]MH_I2C_Read... [21:04:01]Read from MH i2c: E2 0E 00 [21:04:01]MH_I2C_Read... [21:04:01]Read from MH i2c: E2 0E 00 80 0B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 87 [21:04:01]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [21:04:01]wFMCommunicate OK [21:04:01]SAM_PROTO_GetShiftState done [21:04:01]FM_GetShiftState done [21:04:01]req_shift_opened done [21:04:01]requested_item shift.open_date is exist - process it [21:04:01]req_shift_open_date [21:04:01]req_shift_open_date done [21:04:01]produce_requested_data done [21:04:01]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187177,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [21:04:01]process_action_free close_receipt [21:04:01]json_value_free [21:04:01]json_value_free done [21:04:01]process_json_proto returns [21:04:01]Send response to host [21:04:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187177,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [21:04:01]free response buf [21:04:01]execute_script done [21:04:01]execute_script returns [21:04:01]free content buf [21:04:01]Sock 9.Close socket [21:04:01]Sock 9.Thread stoped [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:15]OFD Sender: No OFD packet to send [21:04:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [21:04:40]OFD Sender: No OFD packet to send [21:04:45]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:55]OFD Sender: No OFD packet to send [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:15]OFD Sender: No OFD packet to send [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:36]OFD Sender: No OFD packet to send [21:16:41]OFD Sender: No OFD packet to send [21:16:46]OFD Sender: No OFD packet to send [21:16:51]OFD Sender: No OFD packet to send [21:16:56]OFD Sender: No OFD packet to send [21:17:01]OFD Sender: No OFD packet to send [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [21:17:46]OFD Sender: No OFD packet to send [21:17:51]OFD Sender: No OFD packet to send [21:17:56]OFD Sender: No OFD packet to send [21:18:01]OFD Sender: No OFD packet to send [21:18:06]OFD Sender: No OFD packet to send [21:18:11]OFD Sender: No OFD packet to send [21:18:16]OFD Sender: No OFD packet to send [21:18:21]OFD Sender: No OFD packet to send [21:18:26]OFD Sender: No OFD packet to send [21:18:31]OFD Sender: No OFD packet to send [21:18:36]OFD Sender: No OFD packet to send [21:18:41]OFD Sender: No OFD packet to send [21:18:46]OFD Sender: No OFD packet to send [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:21]OFD Sender: No OFD packet to send [21:19:26]OFD Sender: No OFD packet to send [21:19:31]OFD Sender: No OFD packet to send [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:55]accept exits with 7 [21:19:55]New connection [21:19:55]New thread 3066510692 created [21:19:55]Thread 3066654052 joined [21:19:55]Waiting for new connection... [21:19:55] Sock 7.Parse request [21:19:55]Sock 7.Check first char [21:19:55]Sock 7.First char is OK [21:19:55]request: POST /json_proto HTTP/1.0 [21:19:55]Method: POST [21:19:55]URL: /json_proto [21:19:55]Method is POST - this is cgi request [21:19:55]url: /json_proto [21:19:55]query_string will be loaded in cgi processing [21:19:55]execute_cgi json_proto POST (null) [21:19:55]execute_cgi path=json_proto method=POST [21:19:55]POST find Content-Length [21:19:55]Host: 172.17.46.131:8080 [21:19:55]Content-Length: 678 [21:19:55]Content-Type: application/json [21:19:55] [21:19:55]POST finish read [21:19:55]Found Content-Length = 678 [21:19:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412333", "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:19:55]execute_script... [21:19: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)412333", "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:19:55]POST & json_proto [21:19:55]process_json_proto [21:19:55]json parsed OK: [21:19:55]protocol is kg_v1.0 [21:19:55]action value=close_receipt [21:19:55]process_action close_receipt [21:19:55]cmd_close_receipt [21:19:55]MH_GetDate [21:19:55]Write to MH i2c: F0 00 00 81 0B 7B [21:19:55]Write i2c OK [21:19:55]MH_I2C_Read... [21:19:55]Read from MH i2c: F0 [21:19:55]MH_I2C_Read... [21:19:55]Read from MH i2c: F0 09 00 [21:19:55]MH_I2C_Read... [21:19:55]Read from MH i2c: F0 09 00 81 0B 00 FD 4A B6 67 7E 41 4F 65 5B [21:19:55]GetLastDocTimeStamp 1739999038 [21:19:55]current date 1739999997 [21:19:55]FM_GetShiftState [21:19:55]SAM_PROTO_GetShiftState [21:19:55]wFMCommunicate request_size=4 [21:19:55]MH_SAM_APDU [21:19:55]CAPDU: 80 13 01 00 [21:19:55]Write to MH i2c: E2 08 00 82 0B 80 13 01 00 00 00 00 00 0A [21:19:55]Write i2c OK [21:19:55]MH_I2C_Read... [21:19:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:56]Read from MH i2c: E2 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 0E 00 [21:19:56]MH_I2C_Read... [21:19:56]Read from MH i2c: E2 0E 00 82 0B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 89 [21:19:56]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [21:19:56]wFMCommunicate OK [21:19:56]SAM_PROTO_GetShiftState done [21:19:56]FM_GetShiftState done [21:19:56]opened in 1739929631 [21:19:56]opened+sec_in_day 1740016031 [21:19:56]quantity*price = 100042 [21:19:56]sum+1 = 100044 [21:19:56]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 СНО: Общий режим Чек 244 19.02.2025 21:19 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187178 ФПД: 150129833906568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T211957&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187178&fm=150129833906568&tin=02508201610067®Number=0000000000091857&sum=100000 [21:19:57]StoreToDocumentArchive [21:19:57]shift 647 fd 187178 [21:19:57]save to /storage/0647/doc_00187178 [21:19:57]save last doc name /storage/0647/doc_00187178 to /storage/kkm_last_doc_name [21:19:57]save OK [21:19:57]Clear old archive folders... [21:19:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:19:57]tlvbuf is 01F633A0 [21:19:57]SAM_PROTO_ClearQueue [21:19:57]wFMCommunicate request_size=4 [21:19:57]MH_SAM_APDU [21:19:57]CAPDU: 80 09 00 00 [21:19:57]Write to MH i2c: E2 08 00 8F 0B 80 09 00 00 00 00 00 00 0C [21:19:57]Write i2c OK [21:19:57]MH_I2C_Read... [21:19:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:57]Read from MH i2c: E2 [21:19:57]MH_I2C_Read... [21:19:57]Read from MH i2c: E2 03 00 [21:19:57]MH_I2C_Read... [21:19:57]Read from MH i2c: E2 03 00 8F 0B 00 90 00 0E [21:19:57]RAPDU: 90 00 [21:19:57]wFMCommunicate OK [21:19:57]SAM_PROTO_ClearQueue done [21:19:57]KKMCreateOFDPacket [21:19:57]OFDProtocolAddRootSTLVToBuf [21:19:57]FM_MakeSignedData [21:19:57]FM_MakeSignedData [21:19:57]SAM_PROTO_SignData [21:19:57]wFMCommunicate request_size=4 [21:19:57]MH_SAM_APDU [21:19:57]CAPDU: 80 0D 01 02 [21:19:57]Write to MH i2c: E2 08 00 90 0B 80 0D 01 02 00 00 00 00 14 [21:19:57]Write i2c OK [21:19:57]MH_I2C_Read... [21:19:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:57]Read from MH i2c: E2 [21:19:57]MH_I2C_Read... [21:19:57]Read from MH i2c: E2 03 00 [21:19:57]MH_I2C_Read... [21:19:57]Read from MH i2c: E2 03 00 90 0B 00 90 00 0F [21:19:57]RAPDU: 90 00 [21:19:57]wFMCommunicate OK [21:19:57]wFMCommunicate request_size=255 [21:19:57]MH_SAM_APDU [21:19: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 F4 00 00 00 F4 03 04 00 FD 4A B6 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 2A DB 02 00 35 04 06 00 88 8A D3 6B [21:19:57]Write to MH i2c: E2 02 01 91 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 F4 00 00 00 F4 03 04 00 FD 4A B6 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 2A DB 02 00 35 04 06 00 88 8A D3 6B 00 00 F0 [21:19:57]Write i2c OK [21:19:57]MH_I2C_Read... [21:19:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:57]Read from MH i2c: E2 [21:19:57]MH_I2C_Read... [21:19:57]Read from MH i2c: E2 03 00 [21:19:57]MH_I2C_Read... [21:19:57]Read from MH i2c: E2 03 00 91 0B 00 90 00 10 [21:19:57]RAPDU: 90 00 [21:19:57]wFMCommunicate OK [21:19:57]wFMCommunicate request_size=7 [21:19:57]MH_SAM_APDU [21:19:57]CAPDU: 80 0D 02 02 02 91 88 [21:19:57]Write to MH i2c: E2 0A 00 92 0B 80 0D 02 02 02 00 91 88 00 00 34 [21:19:57]Write i2c OK [21:19:57]MH_I2C_Read... [21:19:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:57]Read from MH i2c: E2 [21:19:57]MH_I2C_Read... [21:19:57]Read from MH i2c: E2 03 00 [21:19:57]MH_I2C_Read... [21:19:57]Read from MH i2c: E2 03 00 92 0B 00 90 00 11 [21:19:57]RAPDU: 90 00 [21:19:57]wFMCommunicate OK [21:19:57]wFMCommunicate request_size=4 [21:19:57]MH_SAM_APDU [21:19:57]CAPDU: 80 0D 03 02 [21:19:57]Write to MH i2c: E2 08 00 93 0B 80 0D 03 02 00 00 00 00 19 [21:19:57]Write i2c OK [21:19:57]MH_I2C_Read... [21:19:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:57]Read from MH i2c: E2 [21:19:57]MH_I2C_Read... [21:19:57]Read from MH i2c: E2 0B 00 [21:19:57]MH_I2C_Read... [21:19:57]Read from MH i2c: E2 0B 00 93 0B 00 7B EA 96 8D 80 F3 6A 4B 90 00 CA [21:19:57]RAPDU: 7B EA 96 8D 80 F3 6A 4B 90 00 [21:19:57]wFMCommunicate OK [21:19:57]SAM_PROTO_SignData done [21:19:57]FM_MakeSignedData done [21:19:57]CreateOFDProtocolMessage [21:19:57]wFMCommunicate request_size=4 [21:19:57]MH_SAM_APDU [21:19:57]CAPDU: 80 11 00 00 [21:19:57]Write to MH i2c: E2 08 00 94 0B 80 11 00 00 00 00 00 00 19 [21:19:57]Write i2c OK [21:19:57]MH_I2C_Read... [21:19:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:57]Read from MH i2c: E2 [21:19:57]MH_I2C_Read... [21:19:57]Read from MH i2c: E2 17 00 [21:19:57]MH_I2C_Read... [21:19:57]Read from MH i2c: E2 17 00 94 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6C [21:19:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:19:57]wFMCommunicate OK [21:19:57]CreateOFDProtocolMessage done [21:19:57]OFDSenderStorePacket 187178 [21:19:57]StoreOFDPacket docnum=187178 [21:19: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 B8 8C 04 01 0D BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 F4 00 00 00 F4 03 04 00 FD 4A B6 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 2A DB 02 00 35 04 06 00 88 8A D3 6B 91 88 7B EA 96 8D 80 F3 6A 4B [21:19:57]CheckFolder [21:19:57]dirname=/storage/ofd_packets [21:19:57]CheckFolder done [21:19:57]ProducePacketName [21:19:57]name=ofd_packets/00187178 [21:19:57]NVStorageSaveData ofd_packets/00187178 [21:19:57]File name is /storage/ofd_packets/00187178 [21:19:57]Write 298 bytes [21:19:57]NVStorageSaveData done [21:19:57]OFDSenderStorePacket done [21:19:57]KKMCreateOFDPacket done [21:19:57]NVStorageSaveData kkm_last_timestamp [21:19:57]File name is /storage/kkm_last_timestamp [21:19:57]Write 4 bytes [21:19:57]NVStorageSaveData done [21:19:57]ExternCall_PrintAddStr [21:19:57]wPrintStart [21:19:57]Write to MH i2c: 01 00 00 95 0B A0 [21:19:57]Write i2c OK [21:19:57]MH_I2C_Read... [21:19:57]Read from MH i2c: 01 [21:19:57]MH_I2C_Read... [21:19:57]Read from MH i2c: 01 07 00 [21:19:57]MH_I2C_Read... [21:19:57]Read from MH i2c: 01 07 00 95 0B 00 00 00 00 00 FF 0F B5 [21:19:57]RasterBufferAndPrint [21:19:57]line Счет N : (1)412333 [21:19:57]line ИНН: 02508201610067 [21:19:57]line Контрольно-Кассовый Чек [21:19:57]line ПРОДАЖА [21:19:57]line ТРК (МРК, ГНК) : 5 [21:19:57]line Товар: 2710194210 [21:19:57]line ДТ-К-5 [21:19:57]line 13.780 * 72.60 [21:19:57]line = 1000.43 [21:19:57]line НДС 12% НСП 1% [21:19:57]line > о реализуемом товаре [21:19:57]line ОКРУГЛЕНИЕ: -0.43 [21:19:57]line ИТОГО: 1000.00 [21:19:57]line Внесено: 1000.00 [21:19:57]line СДАЧА: 0.00 [21:19:57]line НСП 1% : 8.85 [21:19:57]line НДС 12% : 106.24 [21:19:57]line Наличными: 1000.00 [21:19:57]line Безнал.: 0.00 [21:19:57]line Место: АЗС № 92 "Партнер Нефть" [21:19:57]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:19:57]line СНО: Общий режим [21:19:57]line Чек 244 19.02.2025 21:19 [21:19:57]line Смена: 647 ФФД: 1.0 [21:19:57]line ЗНМ: 0300000118 [21:19:57]line РНМ: 0000000000091857 [21:19:57]line Версия ККМ: 001 [21:19:57]line ФМ: 0000000000871826 [21:19:57]line ФД: 187178 [21:19:57]line ФПД: 150129833906568 [21:19:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T211957&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187178&fm=150129833906568&tin=02508201610067®Number=0000000000091857&sum=100000 [21:19:58]written 0, free lines is 4095 [21:19:58]OFD Sender: Processing packet 187178 [packets to send 49, broken 48] [21:19:58]ProducePacketName [21:19:58]name=ofd_packets/00187178 [21:19:58]OFD Sender: To server: pG, [21:19:58]CommunicateWithHost lk.salyk.kg:30040 [21:19:58]ConnectInit lk.salyk.kg [21:19:58]Connected sock=10 [21:19:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B8 8C 04 01 0D BE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 F4 00 00 00 F4 03 04 00 FD 4A B6 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 2A DB 02 00 35 04 06 00 88 8A D3 6B 91 88 7B EA 96 8D 80 F3 6A 4B [21:19: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 7C C6 47 00 15 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2A DB 02 00 F4 03 04 00 50 F1 B5 67 B6 04 01 00 00 9E 47 12 96 3F 2A AD BB [21:19:58]CommunicateWithHost err = 0 [21:19:58]CheckOFDResponse [21:19:58]1017 (14) - 77093643461234 [21:19:58]1041 (16) - 0000000000871826 [21:19:58]1040 (4) - 187178 [21:19:58]1012 (4) - 19.02.2025 14:57 [21:19:58]1206 (1) - 0 [21:19:58]OFD Sender: Remove packet 187178 [21:19:58]ProducePacketName [21:19:58]name=ofd_packets/00187178 [21:19:58]NVStorageDeleteData [21:19:58]Write to MH i2c: 01 00 00 C0 0B CB [21:19:58]Write i2c OK [21:19:58]MH_I2C_Read... [21:19:58]Read from MH i2c: 01 [21:19:58]MH_I2C_Read... [21:19:58]Read from MH i2c: 01 07 00 [21:19:58]MH_I2C_Read... [21:19:58]Read from MH i2c: 01 07 00 C0 0B 00 00 00 00 00 FA 0C D8 [21:19:58]RasterBufferAndPrint [21:19:58]line [21:19:58]line [21:19:58]line [21:19:58]line [21:19:58]line [21:19:58]written 0, free lines is 3328 [21:19:58]MH_Cut [21:19:58]Write to MH i2c: D1 01 00 C7 0B 01 A4 [21:19:58]Write i2c OK [21:19:58]MH_I2C_Read... [21:19:58]Read from MH i2c: D1 [21:19:58]MH_I2C_Read... [21:19:58]Read from MH i2c: D1 01 00 [21:19:58]MH_I2C_Read... [21:19:58]Read from MH i2c: D1 01 00 C7 0B 00 A3 [21:19:58]Write to MH i2c: 01 00 00 C8 0B D3 [21:19:58]Write i2c OK [21:19:58]MH_I2C_Read... [21:19:58]OFD Sender: No OFD packet to send [21:19:59]*** Cut start [21:19:59]*** Partial cut [21:19:59]*** CUTSNS_PIN = 1 [21:19:59]*** CUTSNS_PIN = 0 [21:19:59]*** Brake cut motor [21:19:59]Read from MH i2c: 01 [21:19:59]MH_I2C_Read... [21:19:59]*** Stop cut motor [21:19:59]*** Cut end [21:19:59]Read from MH i2c: 01 07 00 [21:19:59]MH_I2C_Read... [21:19:59]Read from MH i2c: 01 07 00 C8 0B 00 00 00 00 00 FF 0F E8 [21:19:59]process_action close_receipt done [21:19:59]requested_data is exist [21:19:59]produce_requested_data [21:19:59]requested_item fm.sn is exist - process it [21:19:59]wFMCommunicate request_size=4 [21:19:59]MH_SAM_APDU [21:19:59]CAPDU: 80 11 00 00 [21:19:59]Write to MH i2c: E2 08 00 C9 0B 80 11 00 00 00 00 00 00 4E [21:19:59]Write i2c OK [21:19:59]MH_I2C_Read... [21:19:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:59]Read from MH i2c: E2 [21:19:59]MH_I2C_Read... [21:19:59]Read from MH i2c: E2 17 00 [21:19:59]MH_I2C_Read... [21:19:59]Read from MH i2c: E2 17 00 C9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A1 [21:19:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:19:59]wFMCommunicate OK [21:19:59]requested_item fd.num is exist - process it [21:19:59]SAM_PROTO_GetFieldsCounters [21:19:59]wFMCommunicate request_size=4 [21:19:59]MH_SAM_APDU [21:19:59]CAPDU: 80 13 00 00 [21:19:59]Write to MH i2c: E2 08 00 CA 0B 80 13 00 00 00 00 00 00 51 [21:19:59]Write i2c OK [21:19:59]MH_I2C_Read... [21:20:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:20:00]Read from MH i2c: E2 [21:20:00]MH_I2C_Read... [21:20:00]Read from MH i2c: E2 62 00 [21:20:00]MH_I2C_Read... [21:20:00]Read from MH i2c: E2 62 00 CA 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 2A DB 02 00 0E 04 04 00 87 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 E3 [21:20:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DB 02 00 0E 04 04 00 87 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 [21:20:00]wFMCommunicate OK [21:20:00]SAM_PROTO_GetFieldsCounters done [21:20:00]requested_item shift.num is exist - process it [21:20:00]requested_item shift.opened is exist - process it [21:20:00]req_shift_opened [21:20:00]FM_GetShiftState [21:20:00]SAM_PROTO_GetShiftState [21:20:00]wFMCommunicate request_size=4 [21:20:00]MH_SAM_APDU [21:20:00]CAPDU: 80 13 01 00 [21:20:00]Write to MH i2c: E2 08 00 CB 0B 80 13 01 00 00 00 00 00 53 [21:20:00]Write i2c OK [21:20:00]MH_I2C_Read... [21:20:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:00]Read from MH i2c: E2 [21:20:00]MH_I2C_Read... [21:20:00]Read from MH i2c: E2 0E 00 [21:20:00]MH_I2C_Read... [21:20:00]Read from MH i2c: E2 0E 00 CB 0B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D2 [21:20:00]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [21:20:00]wFMCommunicate OK [21:20:00]SAM_PROTO_GetShiftState done [21:20:00]FM_GetShiftState done [21:20:00]req_shift_opened done [21:20:00]requested_item shift.open_date is exist - process it [21:20:00]req_shift_open_date [21:20:00]req_shift_open_date done [21:20:00]produce_requested_data done [21:20:00]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187178,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [21:20:00]process_action_free close_receipt [21:20:00]json_value_free [21:20:00]json_value_free done [21:20:00]process_json_proto returns [21:20:00]Send response to host [21:20:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187178,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [21:20:00]free response buf [21:20:00]execute_script done [21:20:00]execute_script returns [21:20:00]free content buf [21:20:00]Sock 7.Close socket [21:20:00]Sock 7.Thread stoped [21:20:03]OFD Sender: No OFD packet to send [21:20:08]OFD Sender: No OFD packet to send [21:20:13]OFD Sender: No OFD packet to send [21:20:18]OFD Sender: No OFD packet to send [21:20:23]OFD Sender: No OFD packet to send [21:20:28]OFD Sender: No OFD packet to send [21:20:33]OFD Sender: No OFD packet to send [21:20:38]OFD Sender: No OFD packet to send [21:20:43]OFD Sender: No OFD packet to send [21:20:48]OFD Sender: No OFD packet to send [21:20:53]OFD Sender: No OFD packet to send [21:20:58]OFD Sender: No OFD packet to send [21:21:03]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:48]accept exits with 9 [21:22:48]New connection [21:22:48]New thread 3066654052 created [21:22:48]Thread 3066510692 joined [21:22:48]Waiting for new connection... [21:22:48] Sock 9.Parse request [21:22:48]Sock 9.Check first char [21:22:48]Sock 9.First char is OK [21:22:48]request: POST /json_proto HTTP/1.0 [21:22:48]Method: POST [21:22:48]URL: /json_proto [21:22:48]Method is POST - this is cgi request [21:22:48]url: /json_proto [21:22:48]query_string will be loaded in cgi processing [21:22:48]execute_cgi json_proto POST (null) [21:22:48]execute_cgi path=json_proto method=POST [21:22:48]POST find Content-Length [21:22:48]Host: 172.17.46.131:8080 [21:22:48]Content-Length: 677 [21:22:48]Content-Type: application/json [21:22:48] [21:22:48]POST finish read [21:22:48]Found Content-Length = 677 [21:22:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412335", "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" : 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" ] } } [21:22:48]execute_script... [21: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)412335", "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" : 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" ] } } [21:22:48]POST & json_proto [21:22:48]process_json_proto [21:22:48]json parsed OK: [21:22:48]protocol is kg_v1.0 [21:22:48]action value=close_receipt [21:22:48]process_action close_receipt [21:22:48]cmd_close_receipt [21:22:48]MH_GetDate [21:22:48]Write to MH i2c: F0 00 00 CC 0B C6 [21:22:48]Write i2c OK [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: F0 [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: F0 09 00 [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: F0 09 00 CC 0B 00 A9 4B B6 67 7E 41 4F 65 53 [21:22:48]GetLastDocTimeStamp 1739999997 [21:22:48]current date 1740000169 [21:22:48]FM_GetShiftState [21:22:48]SAM_PROTO_GetShiftState [21:22:48]wFMCommunicate request_size=4 [21:22:48]MH_SAM_APDU [21:22:48]CAPDU: 80 13 01 00 [21:22:48]Write to MH i2c: E2 08 00 CD 0B 80 13 01 00 00 00 00 00 55 [21:22:48]Write i2c OK [21:22:48]MH_I2C_Read... [21:22:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:48]Read from MH i2c: E2 [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: E2 0E 00 [21:22:48]MH_I2C_Read... [21:22:48]Read from MH i2c: E2 0E 00 CD 0B 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D4 [21:22:48]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [21:22:48]wFMCommunicate OK [21:22:48]SAM_PROTO_GetShiftState done [21:22:48]FM_GetShiftState done [21:22:48]opened in 1739929631 [21:22:48]opened+sec_in_day 1740016031 [21:22:48]quantity*price = 70030 [21:22:48]sum+1 = 70032 [21:22:48]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 СНО: Общий режим Чек 245 19.02.2025 21:22 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187179 ФПД: 117523293640670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T212249&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187179&fm=117523293640670&tin=02508201610067®Number=0000000000091857&sum=70000 [21:22:49]StoreToDocumentArchive [21:22:49]shift 647 fd 187179 [21:22:49]save to /storage/0647/doc_00187179 [21:22:49]save last doc name /storage/0647/doc_00187179 to /storage/kkm_last_doc_name [21:22:49]save OK [21:22:49]Clear old archive folders... [21:22:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:22:49]tlvbuf is 01FB9D50 [21:22:49]SAM_PROTO_ClearQueue [21:22:49]wFMCommunicate request_size=4 [21:22:49]MH_SAM_APDU [21:22:49]CAPDU: 80 09 00 00 [21:22:49]Write to MH i2c: E2 08 00 DA 0B 80 09 00 00 00 00 00 00 57 [21:22:49]Write i2c OK [21:22:49]MH_I2C_Read... [21:22:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:22:49]Read from MH i2c: E2 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 03 00 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 03 00 DA 0B 00 90 00 59 [21:22:49]RAPDU: 90 00 [21:22:49]wFMCommunicate OK [21:22:49]SAM_PROTO_ClearQueue done [21:22:49]KKMCreateOFDPacket [21:22:49]OFDProtocolAddRootSTLVToBuf [21:22:49]FM_MakeSignedData [21:22:49]FM_MakeSignedData [21:22:49]SAM_PROTO_SignData [21:22:49]wFMCommunicate request_size=4 [21:22:49]MH_SAM_APDU [21:22:49]CAPDU: 80 0D 01 02 [21:22:49]Write to MH i2c: E2 08 00 DB 0B 80 0D 01 02 00 00 00 00 5F [21:22:49]Write i2c OK [21:22:49]MH_I2C_Read... [21:22:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:22:49]Read from MH i2c: E2 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 03 00 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 03 00 DB 0B 00 90 00 5A [21:22:49]RAPDU: 90 00 [21:22:49]wFMCommunicate OK [21:22:49]wFMCommunicate request_size=255 [21:22:49]MH_SAM_APDU [21: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 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 F5 00 00 00 F4 03 04 00 A9 4B B6 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 2B DB 02 00 35 04 06 00 6A [21:22:49]Write to MH i2c: E2 02 01 DC 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F5 00 00 00 F4 03 04 00 A9 4B B6 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 2B DB 02 00 35 04 06 00 6A 00 00 14 [21:22:49]Write i2c OK [21:22:49]MH_I2C_Read... [21:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:49]Read from MH i2c: E2 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 03 00 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 03 00 DC 0B 00 90 00 5B [21:22:49]RAPDU: 90 00 [21:22:49]wFMCommunicate OK [21:22:49]wFMCommunicate request_size=10 [21:22:49]MH_SAM_APDU [21:22:49]CAPDU: 80 0D 02 02 05 E3 06 2B 97 DE [21:22:49]Write to MH i2c: E2 0D 00 DD 0B 80 0D 02 02 05 00 E3 06 2B 97 DE 00 00 F5 [21:22:49]Write i2c OK [21:22:49]MH_I2C_Read... [21:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:49]Read from MH i2c: E2 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 03 00 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 03 00 DD 0B 00 90 00 5C [21:22:49]RAPDU: 90 00 [21:22:49]wFMCommunicate OK [21:22:49]wFMCommunicate request_size=4 [21:22:49]MH_SAM_APDU [21:22:49]CAPDU: 80 0D 03 02 [21:22:49]Write to MH i2c: E2 08 00 DE 0B 80 0D 03 02 00 00 00 00 64 [21:22:49]Write i2c OK [21:22:49]MH_I2C_Read... [21:22:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:50]Read from MH i2c: E2 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: E2 0B 00 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: E2 0B 00 DE 0B 00 AC 91 66 02 D7 A1 52 0A 90 00 DE [21:22:50]RAPDU: AC 91 66 02 D7 A1 52 0A 90 00 [21:22:50]wFMCommunicate OK [21:22:50]SAM_PROTO_SignData done [21:22:50]FM_MakeSignedData done [21:22:50]CreateOFDProtocolMessage [21:22:50]wFMCommunicate request_size=4 [21:22:50]MH_SAM_APDU [21:22:50]CAPDU: 80 11 00 00 [21:22:50]Write to MH i2c: E2 08 00 DF 0B 80 11 00 00 00 00 00 00 64 [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:50]Read from MH i2c: E2 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: E2 17 00 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: E2 17 00 DF 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B7 [21: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 [21:22:50]wFMCommunicate OK [21:22:50]CreateOFDProtocolMessage done [21:22:50]OFDSenderStorePacket 187179 [21:22:50]StoreOFDPacket docnum=187179 [21: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 41 80 07 01 C0 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 F5 00 00 00 F4 03 04 00 A9 4B B6 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 2B DB 02 00 35 04 06 00 6A E3 06 2B 97 DE AC 91 66 02 D7 A1 52 0A [21:22:50]CheckFolder [21:22:50]dirname=/storage/ofd_packets [21:22:50]CheckFolder done [21:22:50]ProducePacketName [21:22:50]name=ofd_packets/00187179 [21:22:50]NVStorageSaveData ofd_packets/00187179 [21:22:50]File name is /storage/ofd_packets/00187179 [21:22:50]Write 301 bytes [21:22:50]NVStorageSaveData done [21:22:50]OFDSenderStorePacket done [21:22:50]KKMCreateOFDPacket done [21:22:50]NVStorageSaveData kkm_last_timestamp [21:22:50]File name is /storage/kkm_last_timestamp [21:22:50]Write 4 bytes [21:22:50]NVStorageSaveData done [21:22:50]ExternCall_PrintAddStr [21:22:50]wPrintStart [21:22:50]Write to MH i2c: 01 00 00 E0 0B EB [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 07 00 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 07 00 E0 0B 00 00 00 00 00 FF 0F 00 [21:22:50]RasterBufferAndPrint [21:22:50]line Счет N : (1)412335 [21:22:50]line ИНН: 02508201610067 [21:22:50]line Контрольно-Кассовый Чек [21:22:50]line ПРОДАЖА [21:22:50]line ТРК (МРК, ГНК) : 13 [21:22:50]line Товар: 2710124500 [21:22:50]line Аи-95-К-5 [21:22:50]line 9.740 * 71.90 [21:22:50]line = 700.31 [21:22:50]line НДС 12% НСП 1% [21:22:50]line > о реализуемом товаре [21:22:50]line ОКРУГЛЕНИЕ: -0.31 [21:22:50]line ИТОГО: 700.00 [21:22:50]line Внесено: 700.00 [21:22:50]line СДАЧА: 0.00 [21:22:50]line НСП 1% : 6.20 [21:22:50]line НДС 12% : 74.37 [21:22:50]line Наличными: 700.00 [21:22:50]line Безнал.: 0.00 [21:22:50]line Место: АЗС № 92 "Партнер Нефть" [21:22:50]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:22:50]line СНО: Общий режим [21:22:50]line Чек 245 19.02.2025 21:22 [21:22:50]line Смена: 647 ФФД: 1.0 [21:22:50]line ЗНМ: 0300000118 [21:22:50]line РНМ: 0000000000091857 [21:22:50]line Версия ККМ: 001 [21:22:50]line ФМ: 0000000000871826 [21:22:50]line ФД: 187179 [21:22:50]line ФПД: 117523293640670 [21:22:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T212249&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187179&fm=117523293640670&tin=02508201610067®Number=0000000000091857&sum=70000 [21:22:50]written 0, free lines is 4095 [21:22:50]OFD Sender: Processing packet 187179 [packets to send 49, broken 48] [21:22:50]ProducePacketName [21:22:50]name=ofd_packets/00187179 [21:22:50]OFD Sender: To server: pG, [21:22:50]CommunicateWithHost lk.salyk.kg:30040 [21:22:50]ConnectInit lk.salyk.kg [21:22:50]Connected sock=10 [21: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 41 80 07 01 C0 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 F5 00 00 00 F4 03 04 00 A9 4B B6 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 2B DB 02 00 35 04 06 00 6A E3 06 2B 97 DE AC 91 66 02 D7 A1 52 0A [21:22:50]Write to MH i2c: 01 00 00 0B 0C 17 [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 07 00 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 07 00 0B 0C 00 00 00 00 00 EB 0C 15 [21:22:50]RasterBufferAndPrint [21:22:50]line [21:22:50]line [21:22:50]line [21:22:50]line [21:22:50]line [21:22:50]written 0, free lines is 3313 [21: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 9B 0F 47 00 3E 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2B DB 02 00 F4 03 04 00 FC F1 B5 67 B6 04 01 00 00 69 44 87 DE AB E0 74 0D [21:22:50]CommunicateWithHost err = 0 [21:22:50]CheckOFDResponse [21:22:50]1017 (14) - 77093643461234 [21:22:50]1041 (16) - 0000000000871826 [21:22:50]1040 (4) - 187179 [21:22:50]1012 (4) - 19.02.2025 15:00 [21:22:50]1206 (1) - 0 [21:22:50]OFD Sender: Remove packet 187179 [21:22:50]ProducePacketName [21:22:50]name=ofd_packets/00187179 [21:22:50]NVStorageDeleteData [21:22:50]MH_Cut [21:22:50]Write to MH i2c: D1 01 00 12 0C 01 F0 [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: D1 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: D1 01 00 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: D1 01 00 12 0C 00 EF [21:22:50]Write to MH i2c: 01 00 00 13 0C 1F [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:51]OFD Sender: No OFD packet to send [21:22:51]*** Cut start [21:22:51]*** Partial cut [21:22:51]*** CUTSNS_PIN = 1 [21:22:51]*** CUTSNS_PIN = 0 [21:22:51]*** Brake cut motor [21:22:52]Read from MH i2c: 01 [21:22:52]MH_I2C_Read... [21:22:52]*** Stop cut motor [21:22:52]*** Cut end [21:22:52]Read from MH i2c: 01 07 00 [21:22:52]MH_I2C_Read... [21:22:52]Read from MH i2c: 01 07 00 13 0C 00 00 00 00 00 FF 0F 34 [21:22:52]process_action close_receipt done [21:22:52]requested_data is exist [21:22:52]produce_requested_data [21:22:52]requested_item fm.sn is exist - process it [21:22:52]wFMCommunicate request_size=4 [21:22:52]MH_SAM_APDU [21:22:52]CAPDU: 80 11 00 00 [21:22:52]Write to MH i2c: E2 08 00 14 0C 80 11 00 00 00 00 00 00 9A [21:22:52]Write i2c OK [21:22:52]MH_I2C_Read... [21:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:52]Read from MH i2c: E2 [21:22:52]MH_I2C_Read... [21:22:52]Read from MH i2c: E2 17 00 [21:22:52]MH_I2C_Read... [21:22:52]Read from MH i2c: E2 17 00 14 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 ED [21: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 [21:22:52]wFMCommunicate OK [21:22:52]requested_item fd.num is exist - process it [21:22:52]SAM_PROTO_GetFieldsCounters [21:22:52]wFMCommunicate request_size=4 [21:22:52]MH_SAM_APDU [21:22:52]CAPDU: 80 13 00 00 [21:22:52]Write to MH i2c: E2 08 00 15 0C 80 13 00 00 00 00 00 00 9D [21:22:52]Write i2c OK [21:22:52]MH_I2C_Read... [21:22:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:52]Read from MH i2c: E2 [21:22:52]MH_I2C_Read... [21:22:52]Read from MH i2c: E2 62 00 [21:22:52]MH_I2C_Read... [21:22:52]Read from MH i2c: E2 62 00 15 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 2B DB 02 00 0E 04 04 00 87 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 33 [21: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 2B DB 02 00 0E 04 04 00 87 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 [21:22:52]wFMCommunicate OK [21:22:52]SAM_PROTO_GetFieldsCounters done [21:22:52]requested_item shift.num is exist - process it [21:22:52]requested_item shift.opened is exist - process it [21:22:52]req_shift_opened [21:22:52]FM_GetShiftState [21:22:52]SAM_PROTO_GetShiftState [21:22:52]wFMCommunicate request_size=4 [21:22:52]MH_SAM_APDU [21:22:52]CAPDU: 80 13 01 00 [21:22:52]Write to MH i2c: E2 08 00 16 0C 80 13 01 00 00 00 00 00 9F [21:22:52]Write i2c OK [21:22:52]MH_I2C_Read... [21:22:52]Read from MH i2c: E2 [21:22:52]MH_I2C_Read... [21:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:52]Read from MH i2c: E2 0E 00 [21:22:52]MH_I2C_Read... [21:22:52]Read from MH i2c: E2 0E 00 16 0C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 1E [21:22:52]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [21:22:52]wFMCommunicate OK [21:22:52]SAM_PROTO_GetShiftState done [21:22:52]FM_GetShiftState done [21:22:52]req_shift_opened done [21:22:52]requested_item shift.open_date is exist - process it [21:22:52]req_shift_open_date [21:22:52]req_shift_open_date done [21:22:52]produce_requested_data done [21:22:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187179,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [21:22:52]process_action_free close_receipt [21:22:52]json_value_free [21:22:52]json_value_free done [21:22:52]process_json_proto returns [21:22:52]Send response to host [21:22:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187179,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [21:22:52]free response buf [21:22:52]execute_script done [21:22:52]execute_script returns [21:22:52]free content buf [21:22:52]Sock 9.Close socket [21:22:52]Sock 9.Thread stoped [21:22:56]OFD Sender: No OFD packet to send [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [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]accept exits with 7 [21:24:41]New connection [21:24:41]New thread 3066510692 created [21:24:41]Thread 3066654052 joined [21:24:41]Waiting for new connection... [21:24:41] Sock 7.Parse request [21:24:41]Sock 7.Check first char [21:24:41]Sock 7.First char is OK [21:24:41]request: POST /json_proto HTTP/1.0 [21:24:41]Method: POST [21:24:41]URL: /json_proto [21:24:41]Method is POST - this is cgi request [21:24:41]url: /json_proto [21:24:41]query_string will be loaded in cgi processing [21:24:41]execute_cgi json_proto POST (null) [21:24:41]execute_cgi path=json_proto method=POST [21:24:41]POST find Content-Length [21:24:41]Host: 172.17.46.131:8080 [21:24:41]Content-Length: 682 [21:24:41]Content-Type: application/json [21:24:41] [21:24:41]POST finish read [21:24:41]Found Content-Length = 682 [21:24:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412334", "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" ] } } [21:24:41]execute_script... [21:24: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)412334", "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" ] } } [21:24:41]POST & json_proto [21:24:41]process_json_proto [21:24:41]json parsed OK: [21:24:41]protocol is kg_v1.0 [21:24:41]action value=close_receipt [21:24:41]process_action close_receipt [21:24:41]cmd_close_receipt [21:24:41]MH_GetDate [21:24:41]Write to MH i2c: F0 00 00 17 0C 12 [21:24:41]Write i2c OK [21:24:41]MH_I2C_Read... [21:24:41]Read from MH i2c: F0 [21:24:41]MH_I2C_Read... [21:24:41]Read from MH i2c: F0 09 00 [21:24:41]MH_I2C_Read... [21:24:41]Read from MH i2c: F0 09 00 17 0C 00 1A 4C B6 67 7E 41 4F 65 11 [21:24:41]GetLastDocTimeStamp 1740000169 [21:24:41]current date 1740000282 [21:24:41]FM_GetShiftState [21:24:41]SAM_PROTO_GetShiftState [21:24:41]wFMCommunicate request_size=4 [21:24:41]MH_SAM_APDU [21:24:41]CAPDU: 80 13 01 00 [21:24:41]Write to MH i2c: E2 08 00 18 0C 80 13 01 00 00 00 00 00 A1 [21:24:41]Write i2c OK [21:24:41]MH_I2C_Read... [21:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:41]Read from MH i2c: E2 [21:24:41]MH_I2C_Read... [21:24:41]Read from MH i2c: E2 0E 00 [21:24:41]MH_I2C_Read... [21:24:41]Read from MH i2c: E2 0E 00 18 0C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 20 [21:24:41]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [21:24:41]wFMCommunicate OK [21:24:41]SAM_PROTO_GetShiftState done [21:24:41]FM_GetShiftState done [21:24:41]opened in 1739929631 [21:24:41]opened+sec_in_day 1740016031 [21:24:41]quantity*price = 100023 [21:24:41]sum+1 = 100025 [21:24:41]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 СНО: Общий режим Чек 246 19.02.2025 21:24 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187180 ФПД: 144053723650109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T212442&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187180&fm=144053723650109&tin=02508201610067®Number=0000000000091857&sum=100000 [21:24:42]StoreToDocumentArchive [21:24:42]shift 647 fd 187180 [21:24:42]save to /storage/0647/doc_00187180 [21:24:42]save last doc name /storage/0647/doc_00187180 to /storage/kkm_last_doc_name [21:24:42]save OK [21:24:42]Clear old archive folders... [21:24:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:24:42]tlvbuf is 01F63090 [21:24:42]SAM_PROTO_ClearQueue [21:24:42]wFMCommunicate request_size=4 [21:24:42]MH_SAM_APDU [21:24:42]CAPDU: 80 09 00 00 [21:24:42]Write to MH i2c: E2 08 00 25 0C 80 09 00 00 00 00 00 00 A3 [21:24:42]Write i2c OK [21:24:42]MH_I2C_Read... [21:24:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:42]Read from MH i2c: E2 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 03 00 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 03 00 25 0C 00 90 00 A5 [21:24:42]RAPDU: 90 00 [21:24:42]wFMCommunicate OK [21:24:42]SAM_PROTO_ClearQueue done [21:24:42]KKMCreateOFDPacket [21:24:42]OFDProtocolAddRootSTLVToBuf [21:24:42]FM_MakeSignedData [21:24:42]FM_MakeSignedData [21:24:42]SAM_PROTO_SignData [21:24:42]wFMCommunicate request_size=4 [21:24:42]MH_SAM_APDU [21:24:42]CAPDU: 80 0D 01 02 [21:24:42]Write to MH i2c: E2 08 00 26 0C 80 0D 01 02 00 00 00 00 AB [21:24:42]Write i2c OK [21:24:42]MH_I2C_Read... [21:24:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:42]Read from MH i2c: E2 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 03 00 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 03 00 26 0C 00 90 00 A6 [21:24:42]RAPDU: 90 00 [21:24:42]wFMCommunicate OK [21:24:42]wFMCommunicate request_size=255 [21:24:42]MH_SAM_APDU [21:24: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 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 F6 00 00 00 F4 03 04 00 1A 4C B6 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 2C DB 02 00 35 04 06 00 83 [21:24:42]Write to MH i2c: E2 02 01 27 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 F6 00 00 00 F4 03 04 00 1A 4C B6 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 2C DB 02 00 35 04 06 00 83 00 00 36 [21:24:42]Write i2c OK [21:24:42]MH_I2C_Read... [21:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:42]Read from MH i2c: E2 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 03 00 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 03 00 27 0C 00 90 00 A7 [21:24:42]RAPDU: 90 00 [21:24:42]wFMCommunicate OK [21:24:42]wFMCommunicate request_size=10 [21:24:42]MH_SAM_APDU [21:24:42]CAPDU: 80 0D 02 02 05 04 1F 06 D8 3D [21:24:42]Write to MH i2c: E2 0D 00 28 0C 80 0D 02 02 05 00 04 1F 06 D8 3D 00 00 F6 [21:24:42]Write i2c OK [21:24:42]MH_I2C_Read... [21:24:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:42]Read from MH i2c: E2 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 03 00 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 03 00 28 0C 00 90 00 A8 [21:24:42]RAPDU: 90 00 [21:24:42]wFMCommunicate OK [21:24:42]wFMCommunicate request_size=4 [21:24:42]MH_SAM_APDU [21:24:42]CAPDU: 80 0D 03 02 [21:24:42]Write to MH i2c: E2 08 00 29 0C 80 0D 03 02 00 00 00 00 B0 [21:24:42]Write i2c OK [21:24:42]MH_I2C_Read... [21:24:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:42]Read from MH i2c: E2 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 0B 00 [21:24:42]MH_I2C_Read... [21:24:42]Read from MH i2c: E2 0B 00 29 0C 00 2C E8 7D 98 D6 85 B7 CC 90 00 B8 [21:24:42]RAPDU: 2C E8 7D 98 D6 85 B7 CC 90 00 [21:24:42]wFMCommunicate OK [21:24:42]SAM_PROTO_SignData done [21:24:42]FM_MakeSignedData done [21:24:42]CreateOFDProtocolMessage [21:24:42]wFMCommunicate request_size=4 [21:24:42]MH_SAM_APDU [21:24:42]CAPDU: 80 11 00 00 [21:24:42]Write to MH i2c: E2 08 00 2A 0C 80 11 00 00 00 00 00 00 B0 [21:24:42]Write i2c OK [21:24:42]MH_I2C_Read... [21:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:43]Read from MH i2c: E2 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 17 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: E2 17 00 2A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 03 [21:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:24:43]wFMCommunicate OK [21:24:43]CreateOFDProtocolMessage done [21:24:43]OFDSenderStorePacket 187180 [21:24:43]StoreOFDPacket docnum=187180 [21:24: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 11 68 07 01 C0 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F6 00 00 00 F4 03 04 00 1A 4C B6 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 2C DB 02 00 35 04 06 00 83 04 1F 06 D8 3D 2C E8 7D 98 D6 85 B7 CC [21:24:43]CheckFolder [21:24:43]dirname=/storage/ofd_packets [21:24:43]CheckFolder done [21:24:43]ProducePacketName [21:24:43]name=ofd_packets/00187180 [21:24:43]NVStorageSaveData ofd_packets/00187180 [21:24:43]File name is /storage/ofd_packets/00187180 [21:24:43]Write 301 bytes [21:24:43]NVStorageSaveData done [21:24:43]OFDSenderStorePacket done [21:24:43]KKMCreateOFDPacket done [21:24:43]NVStorageSaveData kkm_last_timestamp [21:24:43]File name is /storage/kkm_last_timestamp [21:24:43]Write 4 bytes [21:24:43]NVStorageSaveData done [21:24:43]ExternCall_PrintAddStr [21:24:43]wPrintStart [21:24:43]Write to MH i2c: 01 00 00 2B 0C 37 [21:24:43]Write i2c OK [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: 01 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: 01 07 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: 01 07 00 2B 0C 00 00 00 00 00 FF 0F 4C [21:24:43]RasterBufferAndPrint [21:24:43]line Счет N : (1)412334 [21:24:43]line ИНН: 02508201610067 [21:24:43]line Контрольно-Кассовый Чек [21:24:43]line ПРОДАЖА [21:24:43]line ТРК (МРК, ГНК) : 32 [21:24:43]line Товар: 2710124130 [21:24:43]line Аи-92-К-2 [21:24:43]line 15.580 * 64.20 [21:24:43]line = 1000.24 [21:24:43]line НДС 12% НСП 1% [21:24:43]line > о реализуемом товаре [21:24:43]line ОКРУГЛЕНИЕ: -0.24 [21:24:43]line ИТОГО: 1000.00 [21:24:43]line Внесено: 1000.00 [21:24:43]line СДАЧА: 0.00 [21:24:43]line НСП 1% : 8.85 [21:24:43]line НДС 12% : 106.22 [21:24:43]line Наличными: 1000.00 [21:24:43]line Безнал.: 0.00 [21:24:43]line Место: АЗС № 92 "Партнер Нефть" [21:24:43]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:24:43]line СНО: Общий режим [21:24:43]line Чек 246 19.02.2025 21:24 [21:24:43]line Смена: 647 ФФД: 1.0 [21:24:43]line ЗНМ: 0300000118 [21:24:43]line РНМ: 0000000000091857 [21:24:43]line Версия ККМ: 001 [21:24:43]line ФМ: 0000000000871826 [21:24:43]line ФД: 187180 [21:24:43]line ФПД: 144053723650109 [21:24:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T212442&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187180&fm=144053723650109&tin=02508201610067®Number=0000000000091857&sum=100000 [21:24:43]OFD Sender: Processing packet 187180 [packets to send 49, broken 48] [21:24:43]ProducePacketName [21:24:43]name=ofd_packets/00187180 [21:24:43]OFD Sender: To server: pG, [21:24:43]CommunicateWithHost lk.salyk.kg:30040 [21:24:43]ConnectInit lk.salyk.kg [21:24:43]written 0, free lines is 4095 [21:24:43]Connected sock=10 [21:24: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 11 68 07 01 C0 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 F6 00 00 00 F4 03 04 00 1A 4C B6 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 2C DB 02 00 35 04 06 00 83 04 1F 06 D8 3D 2C E8 7D 98 D6 85 B7 CC [21:24: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 BB FE 47 00 18 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2C DB 02 00 F4 03 04 00 6D F2 B5 67 B6 04 01 00 00 46 0C EC C9 49 1A 94 F3 [21:24:43]CommunicateWithHost err = 0 [21:24:43]CheckOFDResponse [21:24:43]1017 (14) - 77093643461234 [21:24:43]1041 (16) - 0000000000871826 [21:24:43]1040 (4) - 187180 [21:24:43]1012 (4) - 19.02.2025 15:02 [21:24:43]1206 (1) - 0 [21:24:43]OFD Sender: Remove packet 187180 [21:24:43]ProducePacketName [21:24:43]name=ofd_packets/00187180 [21:24:43]NVStorageDeleteData [21:24:43]Write to MH i2c: 01 00 00 56 0C 62 [21:24:43]Write i2c OK [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: 01 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: 01 07 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: 01 07 00 56 0C 00 00 00 00 00 F9 0C 6E [21:24:43]RasterBufferAndPrint [21:24:43]line [21:24:43]line [21:24:43]line [21:24:43]line [21:24:43]line [21:24:43]written 0, free lines is 3327 [21:24:43]MH_Cut [21:24:43]Write to MH i2c: D1 01 00 5D 0C 01 3B [21:24:43]Write i2c OK [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: D1 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: D1 01 00 [21:24:43]MH_I2C_Read... [21:24:43]Read from MH i2c: D1 01 00 5D 0C 00 3A [21:24:43]Write to MH i2c: 01 00 00 5E 0C 6A [21:24:43]Write i2c OK [21:24:43]MH_I2C_Read... [21:24:44]OFD Sender: No OFD packet to send [21:24:44]*** Cut start [21:24:44]*** Partial cut [21:24:44]*** CUTSNS_PIN = 1 [21:24:44]*** CUTSNS_PIN = 0 [21:24:44]*** Brake cut motor [21:24:45]Read from MH i2c: 01 [21:24:45]MH_I2C_Read... [21:24:45]*** Stop cut motor [21:24:45]*** Cut end [21:24:45]Read from MH i2c: 01 07 00 [21:24:45]MH_I2C_Read... [21:24:45]Read from MH i2c: 01 07 00 5E 0C 00 00 00 00 00 FF 0F 7F [21:24:45]process_action close_receipt done [21:24:45]requested_data is exist [21:24:45]produce_requested_data [21:24:45]requested_item fm.sn is exist - process it [21:24:45]wFMCommunicate request_size=4 [21:24:45]MH_SAM_APDU [21:24:45]CAPDU: 80 11 00 00 [21:24:45]Write to MH i2c: E2 08 00 5F 0C 80 11 00 00 00 00 00 00 E5 [21:24:45]Write i2c OK [21:24:45]MH_I2C_Read... [21:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:45]Read from MH i2c: E2 [21:24:45]MH_I2C_Read... [21:24:45]Read from MH i2c: E2 17 00 [21:24:45]MH_I2C_Read... [21:24:45]Read from MH i2c: E2 17 00 5F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 38 [21:24: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:24:45]wFMCommunicate OK [21:24:45]requested_item fd.num is exist - process it [21:24:45]SAM_PROTO_GetFieldsCounters [21:24:45]wFMCommunicate request_size=4 [21:24:45]MH_SAM_APDU [21:24:45]CAPDU: 80 13 00 00 [21:24:45]Write to MH i2c: E2 08 00 60 0C 80 13 00 00 00 00 00 00 E8 [21:24:45]Write i2c OK [21:24:45]MH_I2C_Read... [21:24:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:45]Read from MH i2c: E2 [21:24:45]MH_I2C_Read... [21:24:45]Read from MH i2c: E2 62 00 [21:24:45]MH_I2C_Read... [21:24:45]Read from MH i2c: E2 62 00 60 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 2C DB 02 00 0E 04 04 00 87 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 82 [21:24: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 2C DB 02 00 0E 04 04 00 87 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 [21:24:45]wFMCommunicate OK [21:24:45]SAM_PROTO_GetFieldsCounters done [21:24:45]requested_item shift.num is exist - process it [21:24:45]requested_item shift.opened is exist - process it [21:24:45]req_shift_opened [21:24:45]FM_GetShiftState [21:24:45]SAM_PROTO_GetShiftState [21:24:45]wFMCommunicate request_size=4 [21:24:45]MH_SAM_APDU [21:24:45]CAPDU: 80 13 01 00 [21:24:45]Write to MH i2c: E2 08 00 61 0C 80 13 01 00 00 00 00 00 EA [21:24:45]Write i2c OK [21:24:45]MH_I2C_Read... [21:24:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:45]Read from MH i2c: E2 [21:24:45]MH_I2C_Read... [21:24:45]Read from MH i2c: E2 0E 00 [21:24:45]MH_I2C_Read... [21:24:45]Read from MH i2c: E2 0E 00 61 0C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 69 [21:24:45]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [21:24:45]wFMCommunicate OK [21:24:45]SAM_PROTO_GetShiftState done [21:24:45]FM_GetShiftState done [21:24:45]req_shift_opened done [21:24:45]requested_item shift.open_date is exist - process it [21:24:45]req_shift_open_date [21:24:45]req_shift_open_date done [21:24:45]produce_requested_data done [21:24:45]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187180,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [21:24:45]process_action_free close_receipt [21:24:45]json_value_free [21:24:45]json_value_free done [21:24:45]process_json_proto returns [21:24:45]Send response to host [21:24:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187180,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [21:24:45]free response buf [21:24:45]execute_script done [21:24:45]execute_script returns [21:24:45]free content buf [21:24:45]Sock 7.Close socket [21:24:45]Sock 7.Thread stoped [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:29]OFD Sender: No OFD packet to send [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:54]OFD Sender: No OFD packet to send [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]OFD Sender: No OFD packet to send [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]OFD Sender: No OFD packet to send [21:29:24]OFD Sender: No OFD packet to send [21:29:29]OFD Sender: No OFD packet to send [21:29:34]OFD Sender: No OFD packet to send [21:29:39]OFD Sender: No OFD packet to send [21:29:44]OFD Sender: No OFD packet to send [21:29:49]OFD Sender: No OFD packet to send [21:29:54]OFD Sender: No OFD packet to send [21:29:59]OFD Sender: No OFD packet to send [21:30:04]OFD Sender: No OFD packet to send [21:30:09]OFD Sender: No OFD packet to send [21:30:14]OFD Sender: No OFD packet to send [21:30:19]OFD Sender: No OFD packet to send [21:30:24]OFD Sender: No OFD packet to send [21:30:29]OFD Sender: No OFD packet to send [21:30:34]OFD Sender: No OFD packet to send [21:30:39]OFD Sender: No OFD packet to send [21:30:44]OFD Sender: No OFD packet to send [21:30:49]OFD Sender: No OFD packet to send [21:30:54]OFD Sender: No OFD packet to send [21:30:59]OFD Sender: No OFD packet to send [21:31:04]OFD Sender: No OFD packet to send [21:31:09]OFD Sender: No OFD packet to send [21:31:14]OFD Sender: No OFD packet to send [21:31:19]OFD Sender: No OFD packet to send [21:31:24]OFD Sender: No OFD packet to send [21:31:29]OFD Sender: No OFD packet to send [21:31:34]OFD Sender: No OFD packet to send [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:49]OFD Sender: No OFD packet to send [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:04]OFD Sender: No OFD packet to send [21:33:09]OFD Sender: No OFD packet to send [21:33:14]OFD Sender: No OFD packet to send [21:33:19]OFD Sender: No OFD packet to send [21:33:24]OFD Sender: No OFD packet to send [21:33:29]OFD Sender: No OFD packet to send [21:33:34]OFD Sender: No OFD packet to send [21:33:39]OFD Sender: No OFD packet to send [21:33:44]OFD Sender: No OFD packet to send [21:33:49]OFD Sender: No OFD packet to send [21:33:54]OFD Sender: No OFD packet to send [21:33:59]OFD Sender: No OFD packet to send [21:34:04]OFD Sender: No OFD packet to send [21:34:09]OFD Sender: No OFD packet to send [21:34:14]OFD Sender: No OFD packet to send [21:34:19]OFD Sender: No OFD packet to send [21:34:24]OFD Sender: No OFD packet to send [21:34:29]OFD Sender: No OFD packet to send [21:34:34]OFD Sender: No OFD packet to send [21:34:39]OFD Sender: No OFD packet to send [21:34:44]OFD Sender: No OFD packet to send [21:34:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:14]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:29]OFD Sender: No OFD packet to send [21:35:34]OFD Sender: No OFD packet to send [21:35:39]OFD Sender: No OFD packet to send [21:35:44]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:01]accept exits with 9 [21:39:01]New connection [21:39:01]New thread 3066654052 created [21:39:01]Thread 3066510692 joined [21:39:01]Waiting for new connection... [21:39:01] Sock 9.Parse request [21:39:01]Sock 9.Check first char [21:39:01]Sock 9.First char is OK [21:39:01]request: POST /json_proto HTTP/1.0 [21:39:01]Method: POST [21:39:01]URL: /json_proto [21:39:01]Method is POST - this is cgi request [21:39:01]url: /json_proto [21:39:01]query_string will be loaded in cgi processing [21:39:01]execute_cgi json_proto POST (null) [21:39:01]execute_cgi path=json_proto method=POST [21:39:01]POST find Content-Length [21:39:01]Host: 172.17.46.131:8080 [21:39:01]Content-Length: 682 [21:39:01]Content-Type: application/json [21:39:01] [21:39:01]POST finish read [21:39:01]Found Content-Length = 682 [21:39:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412336", "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" : 15.300, "sum" : 1100.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:01]execute_script... [21:39: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)412336", "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" : 15.300, "sum" : 1100.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:01]POST & json_proto [21:39:01]process_json_proto [21:39:01]json parsed OK: [21:39:01]protocol is kg_v1.0 [21:39:01]action value=close_receipt [21:39:01]process_action close_receipt [21:39:01]cmd_close_receipt [21:39:01]MH_GetDate [21:39:01]Write to MH i2c: F0 00 00 62 0C 5D [21:39:01]Write i2c OK [21:39:01]MH_I2C_Read... [21:39:01]Read from MH i2c: F0 [21:39:01]MH_I2C_Read... [21:39:01]Read from MH i2c: F0 09 00 [21:39:01]MH_I2C_Read... [21:39:01]Read from MH i2c: F0 09 00 62 0C 00 76 4F B6 67 7E 41 4F 65 BB [21:39:01]GetLastDocTimeStamp 1740000282 [21:39:01]current date 1740001142 [21:39:01]FM_GetShiftState [21:39:01]SAM_PROTO_GetShiftState [21:39:01]wFMCommunicate request_size=4 [21:39:01]MH_SAM_APDU [21:39:01]CAPDU: 80 13 01 00 [21:39:01]Write to MH i2c: E2 08 00 63 0C 80 13 01 00 00 00 00 00 EC [21:39:01]Write i2c OK [21:39:01]MH_I2C_Read... [21:39:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:01]Read from MH i2c: E2 [21:39:01]MH_I2C_Read... [21:39:01]Read from MH i2c: E2 0E 00 [21:39:01]MH_I2C_Read... [21:39:01]Read from MH i2c: E2 0E 00 63 0C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 6B [21:39:01]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [21:39:01]wFMCommunicate OK [21:39:01]SAM_PROTO_GetShiftState done [21:39:01]FM_GetShiftState done [21:39:01]opened in 1739929631 [21:39:01]opened+sec_in_day 1740016031 [21:39:01]quantity*price = 110007 [21:39:01]sum+1 = 110008 [21:39:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.73 НДС 12% : 116.82 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 247 19.02.2025 21:39 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187181 ФПД: 264162299948345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T213902&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187181&fm=264162299948345&tin=02508201610067®Number=0000000000091857&sum=110000 [21:39:02]StoreToDocumentArchive [21:39:02]shift 647 fd 187181 [21:39:02]save to /storage/0647/doc_00187181 [21:39:02]save last doc name /storage/0647/doc_00187181 to /storage/kkm_last_doc_name [21:39:02]save OK [21:39:02]Clear old archive folders... [21:39:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:39:02]tlvbuf is 01FB98B0 [21:39:02]SAM_PROTO_ClearQueue [21:39:02]wFMCommunicate request_size=4 [21:39:02]MH_SAM_APDU [21:39:02]CAPDU: 80 09 00 00 [21:39:02]Write to MH i2c: E2 08 00 70 0C 80 09 00 00 00 00 00 00 EE [21:39:02]Write i2c OK [21:39:02]MH_I2C_Read... [21:39:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:02]Read from MH i2c: E2 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: E2 03 00 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: E2 03 00 70 0C 00 90 00 F0 [21:39:02]RAPDU: 90 00 [21:39:02]wFMCommunicate OK [21:39:02]SAM_PROTO_ClearQueue done [21:39:02]KKMCreateOFDPacket [21:39:02]OFDProtocolAddRootSTLVToBuf [21:39:02]FM_MakeSignedData [21:39:02]FM_MakeSignedData [21:39:02]SAM_PROTO_SignData [21:39:02]wFMCommunicate request_size=4 [21:39:02]MH_SAM_APDU [21:39:02]CAPDU: 80 0D 01 02 [21:39:02]Write to MH i2c: E2 08 00 71 0C 80 0D 01 02 00 00 00 00 F6 [21:39:02]Write i2c OK [21:39:02]MH_I2C_Read... [21:39:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:02]Read from MH i2c: E2 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: E2 03 00 [21:39:02]MH_I2C_Read... [21:39:02]Read from MH i2c: E2 03 00 71 0C 00 90 00 F1 [21:39:02]RAPDU: 90 00 [21:39:02]wFMCommunicate OK [21:39:02]wFMCommunicate request_size=255 [21:39:02]MH_SAM_APDU [21:39: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 C4 3B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 76 4F B6 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 2D DB 02 00 35 04 06 00 F0 [21:39:02]Write to MH i2c: E2 02 01 72 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 76 4F B6 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 2D DB 02 00 35 04 06 00 F0 00 00 56 [21:39:02]Write i2c OK [21:39:02]MH_I2C_Read... [21:39:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:03]Read from MH i2c: E2 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: E2 03 00 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: E2 03 00 72 0C 00 90 00 F2 [21:39:03]RAPDU: 90 00 [21:39:03]wFMCommunicate OK [21:39:03]wFMCommunicate request_size=10 [21:39:03]MH_SAM_APDU [21:39:03]CAPDU: 80 0D 02 02 05 41 14 0D 2D 39 [21:39:03]Write to MH i2c: E2 0D 00 73 0C 80 0D 02 02 05 00 41 14 0D 2D 39 00 00 CB [21:39:03]Write i2c OK [21:39:03]MH_I2C_Read... [21:39:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:03]Read from MH i2c: E2 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: E2 03 00 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: E2 03 00 73 0C 00 90 00 F3 [21:39:03]RAPDU: 90 00 [21:39:03]wFMCommunicate OK [21:39:03]wFMCommunicate request_size=4 [21:39:03]MH_SAM_APDU [21:39:03]CAPDU: 80 0D 03 02 [21:39:03]Write to MH i2c: E2 08 00 74 0C 80 0D 03 02 00 00 00 00 FB [21:39:03]Write i2c OK [21:39:03]MH_I2C_Read... [21:39:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:03]Read from MH i2c: E2 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: E2 0B 00 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: E2 0B 00 74 0C 00 84 5D 44 0B EC DF 09 CE 90 00 CE [21:39:03]RAPDU: 84 5D 44 0B EC DF 09 CE 90 00 [21:39:03]wFMCommunicate OK [21:39:03]SAM_PROTO_SignData done [21:39:03]FM_MakeSignedData done [21:39:03]CreateOFDProtocolMessage [21:39:03]wFMCommunicate request_size=4 [21:39:03]MH_SAM_APDU [21:39:03]CAPDU: 80 11 00 00 [21:39:03]Write to MH i2c: E2 08 00 75 0C 80 11 00 00 00 00 00 00 FB [21:39:03]Write i2c OK [21:39:03]MH_I2C_Read... [21:39:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:03]Read from MH i2c: E2 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: E2 17 00 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: E2 17 00 75 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4E [21:39: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:39:03]wFMCommunicate OK [21:39:03]CreateOFDProtocolMessage done [21:39:03]OFDSenderStorePacket 187181 [21:39:03]StoreOFDPacket docnum=187181 [21:39: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 C5 40 07 01 C3 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 76 4F B6 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 2D DB 02 00 35 04 06 00 F0 41 14 0D 2D 39 84 5D 44 0B EC DF 09 CE [21:39:03]CheckFolder [21:39:03]dirname=/storage/ofd_packets [21:39:03]CheckFolder done [21:39:03]ProducePacketName [21:39:03]name=ofd_packets/00187181 [21:39:03]NVStorageSaveData ofd_packets/00187181 [21:39:03]File name is /storage/ofd_packets/00187181 [21:39:03]Write 301 bytes [21:39:03]NVStorageSaveData done [21:39:03]OFDSenderStorePacket done [21:39:03]KKMCreateOFDPacket done [21:39:03]NVStorageSaveData kkm_last_timestamp [21:39:03]File name is /storage/kkm_last_timestamp [21:39:03]Write 4 bytes [21:39:03]NVStorageSaveData done [21:39:03]ExternCall_PrintAddStr [21:39:03]wPrintStart [21:39:03]Write to MH i2c: 01 00 00 76 0C 82 [21:39:03]Write i2c OK [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: 01 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: 01 07 00 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: 01 07 00 76 0C 00 00 00 00 00 FF 0F 97 [21:39:03]RasterBufferAndPrint [21:39:03]line Счет N : (1)412336 [21:39:03]line ИНН: 02508201610067 [21:39:03]line Контрольно-Кассовый Чек [21:39:03]line ПРОДАЖА [21:39:03]line ТРК (МРК, ГНК) : 43 [21:39:03]line Товар: 2710124500 [21:39:03]line Аи-95-К-5 [21:39:03]line 15.300 * 71.90 [21:39:03]line = 1100.07 [21:39:03]line НДС 12% НСП 1% [21:39:03]line > о реализуемом товаре [21:39:03]line ОКРУГЛЕНИЕ: -0.07 [21:39:03]line ИТОГО: 1100.00 [21:39:03]line Внесено: 1100.00 [21:39:03]line СДАЧА: 0.00 [21:39:03]line НСП 1% : 9.73 [21:39:03]line НДС 12% : 116.82 [21:39:03]line Наличными: 1100.00 [21:39:03]line Безнал.: 0.00 [21:39:03]line Место: АЗС № 92 "Партнер Нефть" [21:39:03]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:39:03]line СНО: Общий режим [21:39:03]line Чек 247 19.02.2025 21:39 [21:39:03]line Смена: 647 ФФД: 1.0 [21:39:03]line ЗНМ: 0300000118 [21:39:03]line РНМ: 0000000000091857 [21:39:03]line Версия ККМ: 001 [21:39:03]line ФМ: 0000000000871826 [21:39:03]line ФД: 187181 [21:39:03]line ФПД: 264162299948345 [21:39:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T213902&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187181&fm=264162299948345&tin=02508201610067®Number=0000000000091857&sum=110000 [21:39:03]written 0, free lines is 4095 [21:39:03]OFD Sender: Processing packet 187181 [packets to send 49, broken 48] [21:39:03]ProducePacketName [21:39:03]name=ofd_packets/00187181 [21:39:03]OFD Sender: To server: pG, [21:39:03]CommunicateWithHost lk.salyk.kg:30040 [21:39:03]ConnectInit lk.salyk.kg [21:39:03]Connected sock=10 [21:39: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 C5 40 07 01 C3 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 76 4F B6 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 2D DB 02 00 35 04 06 00 F0 41 14 0D 2D 39 84 5D 44 0B EC DF 09 CE [21:39: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 C4 AC 47 00 74 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2D DB 02 00 F4 03 04 00 C9 F5 B5 67 B6 04 01 00 00 6B EC D8 DA 23 97 DA 02 [21:39:03]CommunicateWithHost err = 0 [21:39:03]CheckOFDResponse [21:39:03]1017 (14) - 77093643461234 [21:39:03]1041 (16) - 0000000000871826 [21:39:03]1040 (4) - 187181 [21:39:03]1012 (4) - 19.02.2025 15:16 [21:39:03]1206 (1) - 0 [21:39:03]OFD Sender: Remove packet 187181 [21:39:03]ProducePacketName [21:39:03]name=ofd_packets/00187181 [21:39:03]NVStorageDeleteData [21:39:03]Write to MH i2c: 01 00 00 A1 0C AD [21:39:03]Write i2c OK [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: 01 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: 01 07 00 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: 01 07 00 A1 0C 00 00 00 00 00 01 0D C2 [21:39:03]RasterBufferAndPrint [21:39:03]line [21:39:03]line [21:39:03]line [21:39:03]line [21:39:03]line [21:39:03]written 0, free lines is 3335 [21:39:03]MH_Cut [21:39:03]Write to MH i2c: D1 01 00 A8 0C 01 86 [21:39:03]Write i2c OK [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: D1 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: D1 01 00 [21:39:03]MH_I2C_Read... [21:39:03]Read from MH i2c: D1 01 00 A8 0C 00 85 [21:39:03]Write to MH i2c: 01 00 00 A9 0C B5 [21:39:03]Write i2c OK [21:39:03]MH_I2C_Read... [21:39:04]OFD Sender: No OFD packet to send [21:39:04]*** Cut start [21:39:04]*** Partial cut [21:39:04]*** CUTSNS_PIN = 1 [21:39:04]*** CUTSNS_PIN = 0 [21:39:04]*** Brake cut motor [21:39:05]Read from MH i2c: 01 [21:39:05]MH_I2C_Read... [21:39:05]*** Stop cut motor [21:39:05]*** Cut end [21:39:05]Read from MH i2c: 01 07 00 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: 01 07 00 A9 0C 00 00 00 00 00 FF 0F CA [21:39:05]process_action close_receipt done [21:39:05]requested_data is exist [21:39:05]produce_requested_data [21:39:05]requested_item fm.sn is exist - process it [21:39:05]wFMCommunicate request_size=4 [21:39:05]MH_SAM_APDU [21:39:05]CAPDU: 80 11 00 00 [21:39:05]Write to MH i2c: E2 08 00 AA 0C 80 11 00 00 00 00 00 00 30 [21:39:05]Write i2c OK [21:39:05]MH_I2C_Read... [21:39:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:05]Read from MH i2c: E2 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 17 00 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 17 00 AA 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 83 [21:39:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:39:05]wFMCommunicate OK [21:39:05]requested_item fd.num is exist - process it [21:39:05]SAM_PROTO_GetFieldsCounters [21:39:05]wFMCommunicate request_size=4 [21:39:05]MH_SAM_APDU [21:39:05]CAPDU: 80 13 00 00 [21:39:05]Write to MH i2c: E2 08 00 AB 0C 80 13 00 00 00 00 00 00 33 [21:39:05]Write i2c OK [21:39:05]MH_I2C_Read... [21:39:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:05]Read from MH i2c: E2 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 62 00 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 62 00 AB 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 2D DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [21:39:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:39:05]wFMCommunicate OK [21:39:05]SAM_PROTO_GetFieldsCounters done [21:39:05]requested_item shift.num is exist - process it [21:39:05]requested_item shift.opened is exist - process it [21:39:05]req_shift_opened [21:39:05]FM_GetShiftState [21:39:05]SAM_PROTO_GetShiftState [21:39:05]wFMCommunicate request_size=4 [21:39:05]MH_SAM_APDU [21:39:05]CAPDU: 80 13 01 00 [21:39:05]Write to MH i2c: E2 08 00 AC 0C 80 13 01 00 00 00 00 00 35 [21:39:05]Write i2c OK [21:39:05]MH_I2C_Read... [21:39:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:05]Read from MH i2c: E2 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 0E 00 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 0E 00 AC 0C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 B4 [21:39:05]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [21:39:05]wFMCommunicate OK [21:39:05]SAM_PROTO_GetShiftState done [21:39:05]FM_GetShiftState done [21:39:05]req_shift_opened done [21:39:05]requested_item shift.open_date is exist - process it [21:39:05]req_shift_open_date [21:39:05]req_shift_open_date done [21:39:05]produce_requested_data done [21:39:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187181,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [21:39:05]process_action_free close_receipt [21:39:05]json_value_free [21:39:05]json_value_free done [21:39:05]process_json_proto returns [21:39:05]Send response to host [21:39:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187181,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [21:39:05]free response buf [21:39:05]execute_script done [21:39:05]execute_script returns [21:39:05]free content buf [21:39:05]Sock 9.Close socket [21:39:05]Sock 9.Thread stoped [21:39:09]OFD Sender: No OFD packet to send [21:39:14]OFD Sender: No OFD packet to send [21:39:19]OFD Sender: No OFD packet to send [21:39:24]OFD Sender: No OFD packet to send [21:39:29]OFD Sender: No OFD packet to send [21:39:34]OFD Sender: No OFD packet to send [21:39:39]OFD Sender: No OFD packet to send [21:39:44]OFD Sender: No OFD packet to send [21:39:49]OFD Sender: No OFD packet to send [21:39:54]OFD Sender: No OFD packet to send [21:39:59]OFD Sender: No OFD packet to send [21:40:04]OFD Sender: No OFD packet to send [21:40:09]OFD Sender: No OFD packet to send [21:40:14]OFD Sender: No OFD packet to send [21:40:19]OFD Sender: No OFD packet to send [21:40:24]OFD Sender: No OFD packet to send [21:40:29]OFD Sender: No OFD packet to send [21:40:34]OFD Sender: No OFD packet to send [21:40:39]OFD Sender: No OFD packet to send [21:40:44]OFD Sender: No OFD packet to send [21:40:49]OFD Sender: No OFD packet to send [21:40:54]OFD Sender: No OFD packet to send [21:40:59]OFD Sender: No OFD packet to send [21:41:04]OFD Sender: No OFD packet to send [21:41:09]OFD Sender: No OFD packet to send [21:41:14]OFD Sender: No OFD packet to send [21:41:19]OFD Sender: No OFD packet to send [21:41:24]OFD Sender: No OFD packet to send [21:41:29]OFD Sender: No OFD packet to send [21:41:34]OFD Sender: No OFD packet to send [21:41:39]OFD Sender: No OFD packet to send [21:41:44]OFD Sender: No OFD packet to send [21:41:49]OFD Sender: No OFD packet to send [21:41:54]OFD Sender: No OFD packet to send [21:41:59]OFD Sender: No OFD packet to send [21:42:04]OFD Sender: No OFD packet to send [21:42:09]OFD Sender: No OFD packet to send [21:42:14]OFD Sender: No OFD packet to send [21:42:19]OFD Sender: No OFD packet to send [21:42:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:59]OFD Sender: No OFD packet to send [21:43:04]OFD Sender: No OFD packet to send [21:43:09]OFD Sender: No OFD packet to send [21:43:14]OFD Sender: No OFD packet to send [21:43:19]OFD Sender: No OFD packet to send [21:43:24]OFD Sender: No OFD packet to send [21:43:29]OFD Sender: No OFD packet to send [21:43:34]OFD Sender: No OFD packet to send [21:43:39]OFD Sender: No OFD packet to send [21:43:44]OFD Sender: No OFD packet to send [21:43:49]OFD Sender: No OFD packet to send [21:43:54]OFD Sender: No OFD packet to send [21:43:59]OFD Sender: No OFD packet to send [21:44:04]OFD Sender: No OFD packet to send [21:44:09]OFD Sender: No OFD packet to send [21:44:14]OFD Sender: No OFD packet to send [21:44:19]OFD Sender: No OFD packet to send [21:44:24]OFD Sender: No OFD packet to send [21:44:29]OFD Sender: No OFD packet to send [21:44:34]OFD Sender: No OFD packet to send [21:44:39]OFD Sender: No OFD packet to send [21:44:44]OFD Sender: No OFD packet to send [21:44:49]OFD Sender: No OFD packet to send [21:44:54]OFD Sender: No OFD packet to send [21:44:59]OFD Sender: No OFD packet to send [21:45:04]OFD Sender: No OFD packet to send [21:45:09]OFD Sender: No OFD packet to send [21:45:14]OFD Sender: No OFD packet to send [21:45:19]OFD Sender: No OFD packet to send [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:45]OFD Sender: No OFD packet to send [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:45]OFD Sender: No OFD packet to send [21:55:50]OFD Sender: No OFD packet to send [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:02]accept exits with 7 [21:57:02]New connection [21:57:02]New thread 3066510692 created [21:57:02]Thread 3066654052 joined [21:57:02]Waiting for new connection... [21:57:02] Sock 7.Parse request [21:57:02]Sock 7.Check first char [21:57:02]Sock 7.First char is OK [21:57:02]request: POST /json_proto HTTP/1.0 [21:57:02]Method: POST [21:57:02]URL: /json_proto [21:57:02]Method is POST - this is cgi request [21:57:02]url: /json_proto [21:57:02]query_string will be loaded in cgi processing [21:57:02]execute_cgi json_proto POST (null) [21:57:02]execute_cgi path=json_proto method=POST [21:57:02]POST find Content-Length [21:57:02]Host: 172.17.46.131:8080 [21:57:02]Content-Length: 678 [21:57:02]Content-Type: application/json [21:57:02] [21:57:02]POST finish read [21:57:02]Found Content-Length = 678 [21:57:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412337", "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:57:02]execute_script... [21:57: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)412337", "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:57:02]POST & json_proto [21:57:02]process_json_proto [21:57:02]json parsed OK: [21:57:02]protocol is kg_v1.0 [21:57:02]action value=close_receipt [21:57:02]process_action close_receipt [21:57:02]cmd_close_receipt [21:57:02]MH_GetDate [21:57:02]Write to MH i2c: F0 00 00 AD 0C A8 [21:57:02]Write i2c OK [21:57:02]MH_I2C_Read... [21:57:02]Read from MH i2c: F0 [21:57:02]MH_I2C_Read... [21:57:02]Read from MH i2c: F0 09 00 [21:57:02]MH_I2C_Read... [21:57:02]Read from MH i2c: F0 09 00 AD 0C 00 AF 53 B6 67 7E 41 4F 65 43 [21:57:02]GetLastDocTimeStamp 1740001142 [21:57:02]current date 1740002223 [21:57:02]FM_GetShiftState [21:57:02]SAM_PROTO_GetShiftState [21:57:02]wFMCommunicate request_size=4 [21:57:02]MH_SAM_APDU [21:57:02]CAPDU: 80 13 01 00 [21:57:02]Write to MH i2c: E2 08 00 AE 0C 80 13 01 00 00 00 00 00 37 [21:57:02]Write i2c OK [21:57:02]MH_I2C_Read... [21:57:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:02]Read from MH i2c: E2 [21:57:02]MH_I2C_Read... [21:57:02]Read from MH i2c: E2 0E 00 [21:57:02]MH_I2C_Read... [21:57:02]Read from MH i2c: E2 0E 00 AE 0C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 B6 [21:57:02]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [21:57:02]wFMCommunicate OK [21:57:02]SAM_PROTO_GetShiftState done [21:57:02]FM_GetShiftState done [21:57:02]opened in 1739929631 [21:57:02]opened+sec_in_day 1740016031 [21:57:02]quantity*price = 100042 [21:57:02]sum+1 = 100044 [21:57: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 СНО: Общий режим Чек 248 19.02.2025 21:57 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187182 ФПД: 54346894234119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T215703&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187182&fm=54346894234119&tin=02508201610067®Number=0000000000091857&sum=100000 [21:57:03]StoreToDocumentArchive [21:57:03]shift 647 fd 187182 [21:57:03]save to /storage/0647/doc_00187182 [21:57:03]save last doc name /storage/0647/doc_00187182 to /storage/kkm_last_doc_name [21:57:03]save OK [21:57:03]Clear old archive folders... [21:57:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:57:03]tlvbuf is 01F6D1F0 [21:57:03]SAM_PROTO_ClearQueue [21:57:03]wFMCommunicate request_size=4 [21:57:03]MH_SAM_APDU [21:57:03]CAPDU: 80 09 00 00 [21:57:03]Write to MH i2c: E2 08 00 BB 0C 80 09 00 00 00 00 00 00 39 [21:57:03]Write i2c OK [21:57:03]MH_I2C_Read... [21:57:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:03]Read from MH i2c: E2 [21:57:03]MH_I2C_Read... [21:57:03]Read from MH i2c: E2 03 00 [21:57:03]MH_I2C_Read... [21:57:03]Read from MH i2c: E2 03 00 BB 0C 00 90 00 3B [21:57:03]RAPDU: 90 00 [21:57:03]wFMCommunicate OK [21:57:03]SAM_PROTO_ClearQueue done [21:57:03]KKMCreateOFDPacket [21:57:03]OFDProtocolAddRootSTLVToBuf [21:57:03]FM_MakeSignedData [21:57:03]FM_MakeSignedData [21:57:03]SAM_PROTO_SignData [21:57:03]wFMCommunicate request_size=4 [21:57:03]MH_SAM_APDU [21:57:03]CAPDU: 80 0D 01 02 [21:57:03]Write to MH i2c: E2 08 00 BC 0C 80 0D 01 02 00 00 00 00 41 [21:57:03]Write i2c OK [21:57:03]MH_I2C_Read... [21:57:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:03]Read from MH i2c: E2 [21:57:03]MH_I2C_Read... [21:57:03]Read from MH i2c: E2 03 00 [21:57:03]MH_I2C_Read... [21:57:03]Read from MH i2c: E2 03 00 BC 0C 00 90 00 3C [21:57:03]RAPDU: 90 00 [21:57:03]wFMCommunicate OK [21:57:03]wFMCommunicate request_size=255 [21:57:03]MH_SAM_APDU [21:57:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 F8 00 00 00 F4 03 04 00 AF 53 B6 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 2E DB 02 00 35 04 06 00 31 6D 9F 53 [21:57:03]Write to MH i2c: E2 02 01 BD 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 F8 00 00 00 F4 03 04 00 AF 53 B6 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 2E DB 02 00 35 04 06 00 31 6D 9F 53 00 00 20 [21:57:03]Write i2c OK [21:57:03]MH_I2C_Read... [21:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:03]Read from MH i2c: E2 [21:57:03]MH_I2C_Read... [21:57:03]Read from MH i2c: E2 03 00 [21:57:03]MH_I2C_Read... [21:57:03]Read from MH i2c: E2 03 00 BD 0C 00 90 00 3D [21:57:03]RAPDU: 90 00 [21:57:03]wFMCommunicate OK [21:57:03]wFMCommunicate request_size=7 [21:57:03]MH_SAM_APDU [21:57:03]CAPDU: 80 0D 02 02 02 52 07 [21:57:03]Write to MH i2c: E2 0A 00 BE 0C 80 0D 02 02 02 00 52 07 00 00 A1 [21:57:03]Write i2c OK [21:57:03]MH_I2C_Read... [21:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:03]Read from MH i2c: E2 [21:57:03]MH_I2C_Read... [21:57:03]Read from MH i2c: E2 03 00 [21:57:03]MH_I2C_Read... [21:57:03]Read from MH i2c: E2 03 00 BE 0C 00 90 00 3E [21:57:03]RAPDU: 90 00 [21:57:03]wFMCommunicate OK [21:57:03]wFMCommunicate request_size=4 [21:57:03]MH_SAM_APDU [21:57:03]CAPDU: 80 0D 03 02 [21:57:03]Write to MH i2c: E2 08 00 BF 0C 80 0D 03 02 00 00 00 00 46 [21:57:03]Write i2c OK [21:57:03]MH_I2C_Read... [21:57:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:03]Read from MH i2c: E2 [21:57:03]MH_I2C_Read... [21:57:03]Read from MH i2c: E2 0B 00 [21:57:03]MH_I2C_Read... [21:57:03]Read from MH i2c: E2 0B 00 BF 0C 00 E9 48 E7 89 BA C1 C6 D2 90 00 FB [21:57:03]RAPDU: E9 48 E7 89 BA C1 C6 D2 90 00 [21:57:03]wFMCommunicate OK [21:57:03]SAM_PROTO_SignData done [21:57:03]FM_MakeSignedData done [21:57:03]CreateOFDProtocolMessage [21:57:03]wFMCommunicate request_size=4 [21:57:03]MH_SAM_APDU [21:57:03]CAPDU: 80 11 00 00 [21:57:03]Write to MH i2c: E2 08 00 C0 0C 80 11 00 00 00 00 00 00 46 [21:57:03]Write i2c OK [21:57:03]MH_I2C_Read... [21:57:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:03]Read from MH i2c: E2 [21:57:03]MH_I2C_Read... [21:57:03]Read from MH i2c: E2 17 00 [21:57:03]MH_I2C_Read... [21:57:03]Read from MH i2c: E2 17 00 C0 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 99 [21:57: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:57:03]wFMCommunicate OK [21:57:03]CreateOFDProtocolMessage done [21:57:03]OFDSenderStorePacket 187182 [21:57:03]StoreOFDPacket docnum=187182 [21:57: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 94 6C 04 01 2D AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 F8 00 00 00 F4 03 04 00 AF 53 B6 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 2E DB 02 00 35 04 06 00 31 6D 9F 53 52 07 E9 48 E7 89 BA C1 C6 D2 [21:57:03]CheckFolder [21:57:03]dirname=/storage/ofd_packets [21:57:03]CheckFolder done [21:57:03]ProducePacketName [21:57:03]name=ofd_packets/00187182 [21:57:03]NVStorageSaveData ofd_packets/00187182 [21:57:03]File name is /storage/ofd_packets/00187182 [21:57:03]Write 298 bytes [21:57:03]NVStorageSaveData done [21:57:03]OFDSenderStorePacket done [21:57:03]KKMCreateOFDPacket done [21:57:03]NVStorageSaveData kkm_last_timestamp [21:57:03]File name is /storage/kkm_last_timestamp [21:57:03]Write 4 bytes [21:57:03]NVStorageSaveData done [21:57:03]ExternCall_PrintAddStr [21:57:03]wPrintStart [21:57:03]Write to MH i2c: 01 00 00 C1 0C CD [21:57:03]Write i2c OK [21:57:03]MH_I2C_Read... [21:57:03]Read from MH i2c: 01 [21:57:03]MH_I2C_Read... [21:57:03]Read from MH i2c: 01 07 00 [21:57:03]MH_I2C_Read... [21:57:03]Read from MH i2c: 01 07 00 C1 0C 00 00 00 00 00 FF 0F E2 [21:57:03]RasterBufferAndPrint [21:57:03]line Счет N : (1)412337 [21:57:03]line ИНН: 02508201610067 [21:57:03]line Контрольно-Кассовый Чек [21:57:03]line ПРОДАЖА [21:57:03]line ТРК (МРК, ГНК) : 5 [21:57:03]line Товар: 2710194210 [21:57:03]line ДТ-К-5 [21:57:03]line 13.780 * 72.60 [21:57:03]line = 1000.43 [21:57:03]line НДС 12% НСП 1% [21:57:03]line > о реализуемом товаре [21:57:03]line ОКРУГЛЕНИЕ: -0.43 [21:57:03]line ИТОГО: 1000.00 [21:57:03]line Внесено: 1000.00 [21:57:03]line СДАЧА: 0.00 [21:57:03]line НСП 1% : 8.85 [21:57:03]line НДС 12% : 106.24 [21:57:03]line Наличными: 1000.00 [21:57:03]line Безнал.: 0.00 [21:57:03]line Место: АЗС № 92 "Партнер Нефть" [21:57:03]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:57:03]line СНО: Общий режим [21:57:03]line Чек 248 19.02.2025 21:57 [21:57:03]line Смена: 647 ФФД: 1.0 [21:57:03]line ЗНМ: 0300000118 [21:57:03]line РНМ: 0000000000091857 [21:57:03]line Версия ККМ: 001 [21:57:03]line ФМ: 0000000000871826 [21:57:03]line ФД: 187182 [21:57:03]line ФПД: 54346894234119 [21:57:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T215703&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187182&fm=54346894234119&tin=02508201610067®Number=0000000000091857&sum=100000 [21:57:04]OFD Sender: Processing packet 187182 [packets to send 49, broken 48] [21:57:04]ProducePacketName [21:57:04]name=ofd_packets/00187182 [21:57:04]OFD Sender: To server: pG, [21:57:04]CommunicateWithHost lk.salyk.kg:30040 [21:57:04]ConnectInit lk.salyk.kg [21:57:04]written 0, free lines is 4095 [21:57:04]Connected sock=10 [21:57: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 0C 01 00 00 94 6C 04 01 2D AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 F8 00 00 00 F4 03 04 00 AF 53 B6 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 2E DB 02 00 35 04 06 00 31 6D 9F 53 52 07 E9 48 E7 89 BA C1 C6 D2 [21:57: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 06 1C 47 00 84 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 2E DB 02 00 F4 03 04 00 02 FA B5 67 B6 04 01 00 00 48 09 D9 92 79 17 54 4B [21:57:04]CommunicateWithHost err = 0 [21:57:04]CheckOFDResponse [21:57:04]1017 (14) - 77093643461234 [21:57:04]1041 (16) - 0000000000871826 [21:57:04]1040 (4) - 187182 [21:57:04]1012 (4) - 19.02.2025 15:34 [21:57:04]1206 (1) - 0 [21:57:04]OFD Sender: Remove packet 187182 [21:57:04]ProducePacketName [21:57:04]name=ofd_packets/00187182 [21:57:04]NVStorageDeleteData [21:57:04]Write to MH i2c: 01 00 00 EC 0C F8 [21:57:04]Write i2c OK [21:57:04]MH_I2C_Read... [21:57:04]Read from MH i2c: 01 [21:57:04]MH_I2C_Read... [21:57:04]Read from MH i2c: 01 07 00 [21:57:04]MH_I2C_Read... [21:57:04]Read from MH i2c: 01 07 00 EC 0C 00 00 00 00 00 04 0D 10 [21:57:04]RasterBufferAndPrint [21:57:04]line [21:57:04]line [21:57:04]line [21:57:04]line [21:57:04]line [21:57:04]written 0, free lines is 3339 [21:57:04]MH_Cut [21:57:04]Write to MH i2c: D1 01 00 F3 0C 01 D1 [21:57:04]Write i2c OK [21:57:04]MH_I2C_Read... [21:57:04]Read from MH i2c: D1 [21:57:04]MH_I2C_Read... [21:57:04]Read from MH i2c: D1 01 00 [21:57:04]MH_I2C_Read... [21:57:04]Read from MH i2c: D1 01 00 F3 0C 00 D0 [21:57:04]Write to MH i2c: 01 00 00 F4 0C 00 [21:57:04]Write i2c OK [21:57:04]MH_I2C_Read... [21:57:04]OFD Sender: No OFD packet to send [21:57:05]*** Cut start [21:57:05]*** Partial cut [21:57:05]*** CUTSNS_PIN = 1 [21:57:05]*** CUTSNS_PIN = 0 [21:57:05]*** Brake cut motor [21:57:05]Read from MH i2c: 01 [21:57:05]MH_I2C_Read... [21:57:05]*** Stop cut motor [21:57:05]*** Cut end [21:57:05]Read from MH i2c: 01 07 00 [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: 01 07 00 F4 0C 00 00 00 00 00 FF 0F 15 [21:57:05]process_action close_receipt done [21:57:05]requested_data is exist [21:57:05]produce_requested_data [21:57:05]requested_item fm.sn is exist - process it [21:57:05]wFMCommunicate request_size=4 [21:57:05]MH_SAM_APDU [21:57:05]CAPDU: 80 11 00 00 [21:57:05]Write to MH i2c: E2 08 00 F5 0C 80 11 00 00 00 00 00 00 7B [21:57:05]Write i2c OK [21:57:05]MH_I2C_Read... [21:57:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:05]Read from MH i2c: E2 [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: E2 17 00 [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: E2 17 00 F5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CE [21:57:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:57:05]wFMCommunicate OK [21:57:05]requested_item fd.num is exist - process it [21:57:05]SAM_PROTO_GetFieldsCounters [21:57:05]wFMCommunicate request_size=4 [21:57:05]MH_SAM_APDU [21:57:05]CAPDU: 80 13 00 00 [21:57:05]Write to MH i2c: E2 08 00 F6 0C 80 13 00 00 00 00 00 00 7E [21:57:05]Write i2c OK [21:57:05]MH_I2C_Read... [21:57:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:06]Read from MH i2c: E2 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: E2 62 00 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: E2 62 00 F6 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 2E DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [21:57: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 2E DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:57:06]wFMCommunicate OK [21:57:06]SAM_PROTO_GetFieldsCounters done [21:57:06]requested_item shift.num is exist - process it [21:57:06]requested_item shift.opened is exist - process it [21:57:06]req_shift_opened [21:57:06]FM_GetShiftState [21:57:06]SAM_PROTO_GetShiftState [21:57:06]wFMCommunicate request_size=4 [21:57:06]MH_SAM_APDU [21:57:06]CAPDU: 80 13 01 00 [21:57:06]Write to MH i2c: E2 08 00 F7 0C 80 13 01 00 00 00 00 00 80 [21:57:06]Write i2c OK [21:57:06]MH_I2C_Read... [21:57:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:06]Read from MH i2c: E2 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: E2 0E 00 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: E2 0E 00 F7 0C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 FF [21:57:06]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [21:57:06]wFMCommunicate OK [21:57:06]SAM_PROTO_GetShiftState done [21:57:06]FM_GetShiftState done [21:57:06]req_shift_opened done [21:57:06]requested_item shift.open_date is exist - process it [21:57:06]req_shift_open_date [21:57:06]req_shift_open_date done [21:57:06]produce_requested_data done [21:57:06]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187182,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [21:57:06]process_action_free close_receipt [21:57:06]json_value_free [21:57:06]json_value_free done [21:57:06]process_json_proto returns [21:57:06]Send response to host [21:57:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187182,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [21:57:06]free response buf [21:57:06]execute_script done [21:57:06]execute_script returns [21:57:06]free content buf [21:57:06]Sock 7.Close socket [21:57:06]Sock 7.Thread stoped [21:57:09]OFD Sender: No OFD packet to send [21:57:14]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:58:55]accept exits with 9 [21:58:55]New connection [21:58:55]New thread 3066654052 created [21:58:55]Thread 3066510692 joined [21:58:55]Waiting for new connection... [21:58:55] Sock 9.Parse request [21:58:55]Sock 9.Check first char [21:58:55]Sock 9.First char is OK [21:58:55]request: POST /json_proto HTTP/1.0 [21:58:55]Method: POST [21:58:55]URL: /json_proto [21:58:55]Method is POST - this is cgi request [21:58:55]url: /json_proto [21:58:55]query_string will be loaded in cgi processing [21:58:55]execute_cgi json_proto POST (null) [21:58:55]execute_cgi path=json_proto method=POST [21:58:55]POST find Content-Length [21:58:55]Host: 172.17.46.131:8080 [21:58:55]Content-Length: 788 [21:58:55]Content-Type: application/json [21:58:55] [21:58:55]POST finish read [21:58:55]Found Content-Length = 788 [21:58:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412338", "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" : 28.100, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A59221", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:55]execute_script... [21:58: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)412338", "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" : 28.100, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A59221", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:58:55]POST & json_proto [21:58:55]process_json_proto [21:58:55]json parsed OK: [21:58:55]protocol is kg_v1.0 [21:58:55]action value=close_receipt [21:58:55]process_action close_receipt [21:58:55]cmd_close_receipt [21:58:55]MH_GetDate [21:58:55]Write to MH i2c: F0 00 00 F8 0C F3 [21:58:55]Write i2c OK [21:58:55]MH_I2C_Read... [21:58:55]Read from MH i2c: F0 [21:58:55]MH_I2C_Read... [21:58:55]Read from MH i2c: F0 09 00 [21:58:55]MH_I2C_Read... [21:58:55]Read from MH i2c: F0 09 00 F8 0C 00 20 54 B6 67 7E 41 4F 65 00 [21:58:55]GetLastDocTimeStamp 1740002223 [21:58:55]current date 1740002336 [21:58:55]FM_GetShiftState [21:58:55]SAM_PROTO_GetShiftState [21:58:55]wFMCommunicate request_size=4 [21:58:55]MH_SAM_APDU [21:58:55]CAPDU: 80 13 01 00 [21:58:55]Write to MH i2c: E2 08 00 F9 0C 80 13 01 00 00 00 00 00 82 [21:58:55]Write i2c OK [21:58:55]MH_I2C_Read... [21:58:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:55]Read from MH i2c: E2 [21:58:55]MH_I2C_Read... [21:58:55]Read from MH i2c: E2 0E 00 [21:58:55]MH_I2C_Read... [21:58:55]Read from MH i2c: E2 0E 00 F9 0C 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 01 [21:58:55]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [21:58:55]wFMCommunicate OK [21:58:55]SAM_PROTO_GetShiftState done [21:58:55]FM_GetShiftState done [21:58:55]opened in 1739929631 [21:58:55]opened+sec_in_day 1740016031 [21:58:55]quantity*price = 0 [21:58:55]sum+1 = 1 [21:58: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 СНО: Общий режим Чек 249 19.02.2025 21:58 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 59221 ФМ: 0000000000871826 ФД: 187183 ФПД: 33727094849868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T215856&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187183&fm=33727094849868&tin=02508201610067®Number=0000000000091857&sum=0 [21:58:56]StoreToDocumentArchive [21:58:56]shift 647 fd 187183 [21:58:56]save to /storage/0647/doc_00187183 [21:58:56]save last doc name /storage/0647/doc_00187183 to /storage/kkm_last_doc_name [21:58:56]save OK [21:58:56]Clear old archive folders... [21:58:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:58:56]tlvbuf is 01FA7AC0 [21:58:56]SAM_PROTO_ClearQueue [21:58:56]wFMCommunicate request_size=4 [21:58:56]MH_SAM_APDU [21:58:56]CAPDU: 80 09 00 00 [21:58:56]Write to MH i2c: E2 08 00 06 0D 80 09 00 00 00 00 00 00 85 [21:58:56]Write i2c OK [21:58:56]MH_I2C_Read... [21:58:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:58:56]Read from MH i2c: E2 [21:58:56]MH_I2C_Read... [21:58:56]Read from MH i2c: E2 03 00 [21:58:56]MH_I2C_Read... [21:58:56]Read from MH i2c: E2 03 00 06 0D 00 90 00 87 [21:58:56]RAPDU: 90 00 [21:58:56]wFMCommunicate OK [21:58:56]SAM_PROTO_ClearQueue done [21:58:56]KKMCreateOFDPacket [21:58:56]OFDProtocolAddRootSTLVToBuf [21:58:56]FM_MakeSignedData [21:58:56]FM_MakeSignedData [21:58:56]SAM_PROTO_SignData [21:58:56]wFMCommunicate request_size=4 [21:58:56]MH_SAM_APDU [21:58:56]CAPDU: 80 0D 01 02 [21:58:56]Write to MH i2c: E2 08 00 07 0D 80 0D 01 02 00 00 00 00 8D [21:58:56]Write i2c OK [21:58:56]MH_I2C_Read... [21:58:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:58:56]Read from MH i2c: E2 [21:58:56]MH_I2C_Read... [21:58:56]Read from MH i2c: E2 03 00 [21:58:56]MH_I2C_Read... [21:58:56]Read from MH i2c: E2 03 00 07 0D 00 90 00 88 [21:58:56]RAPDU: 90 00 [21:58:56]wFMCommunicate OK [21:58:56]wFMCommunicate request_size=255 [21:58:56]MH_SAM_APDU [21:58: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 C4 6D 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 F9 00 00 00 F4 03 04 00 20 54 B6 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 2F DB 02 00 35 04 06 00 1E AC B3 82 [21:58:56]Write to MH i2c: E2 02 01 08 0D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C4 6D 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 F9 00 00 00 F4 03 04 00 20 54 B6 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 2F DB 02 00 35 04 06 00 1E AC B3 82 00 00 3E [21:58:56]Write i2c OK [21:58:56]MH_I2C_Read... [21:58:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:56]Read from MH i2c: E2 [21:58:56]MH_I2C_Read... [21:58:56]Read from MH i2c: E2 03 00 [21:58:56]MH_I2C_Read... [21:58:56]Read from MH i2c: E2 03 00 08 0D 00 90 00 89 [21:58:56]RAPDU: 90 00 [21:58:56]wFMCommunicate OK [21:58:56]wFMCommunicate request_size=7 [21:58:56]MH_SAM_APDU [21:58:56]CAPDU: 80 0D 02 02 02 01 4C [21:58:56]Write to MH i2c: E2 0A 00 09 0D 80 0D 02 02 02 00 01 4C 00 00 E1 [21:58:56]Write i2c OK [21:58:56]MH_I2C_Read... [21:58:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:58:56]Read from MH i2c: E2 [21:58:56]MH_I2C_Read... [21:58:56]Read from MH i2c: E2 03 00 [21:58:56]MH_I2C_Read... [21:58:56]Read from MH i2c: E2 03 00 09 0D 00 90 00 8A [21:58:56]RAPDU: 90 00 [21:58:56]wFMCommunicate OK [21:58:56]wFMCommunicate request_size=4 [21:58:56]MH_SAM_APDU [21:58:56]CAPDU: 80 0D 03 02 [21:58:56]Write to MH i2c: E2 08 00 0A 0D 80 0D 03 02 00 00 00 00 92 [21:58:56]Write i2c OK [21:58:56]MH_I2C_Read... [21:58:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:58:56]Read from MH i2c: E2 [21:58:56]MH_I2C_Read... [21:58:56]Read from MH i2c: E2 0B 00 [21:58:56]MH_I2C_Read... [21:58:56]Read from MH i2c: E2 0B 00 0A 0D 00 40 BF 9C 15 0B B1 FE A7 90 00 A4 [21:58:56]RAPDU: 40 BF 9C 15 0B B1 FE A7 90 00 [21:58:56]wFMCommunicate OK [21:58:56]SAM_PROTO_SignData done [21:58:56]FM_MakeSignedData done [21:58:56]CreateOFDProtocolMessage [21:58:56]wFMCommunicate request_size=4 [21:58:56]MH_SAM_APDU [21:58:56]CAPDU: 80 11 00 00 [21:58:56]Write to MH i2c: E2 08 00 0B 0D 80 11 00 00 00 00 00 00 92 [21:58:56]Write i2c OK [21:58:56]MH_I2C_Read... [21:58:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:56]Read from MH i2c: E2 [21:58:56]MH_I2C_Read... [21:58:56]Read from MH i2c: E2 17 00 [21:58:56]MH_I2C_Read... [21:58:56]Read from MH i2c: E2 17 00 0B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E5 [21:58: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:58:56]wFMCommunicate OK [21:58:56]CreateOFDProtocolMessage done [21:58:56]OFDSenderStorePacket 187183 [21:58:56]StoreOFDPacket docnum=187183 [21:58: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 48 2C 04 01 2D 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 C4 6D 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 F9 00 00 00 F4 03 04 00 20 54 B6 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 2F DB 02 00 35 04 06 00 1E AC B3 82 01 4C 40 BF 9C 15 0B B1 FE A7 [21:58:56]CheckFolder [21:58:56]dirname=/storage/ofd_packets [21:58:56]CheckFolder done [21:58:56]ProducePacketName [21:58:56]name=ofd_packets/00187183 [21:58:56]NVStorageSaveData ofd_packets/00187183 [21:58:56]File name is /storage/ofd_packets/00187183 [21:58:56]Write 298 bytes [21:58:56]NVStorageSaveData done [21:58:56]OFDSenderStorePacket done [21:58:56]KKMCreateOFDPacket done [21:58:56]NVStorageSaveData kkm_last_timestamp [21:58:56]File name is /storage/kkm_last_timestamp [21:58:56]Write 4 bytes [21:58:56]NVStorageSaveData done [21:58:56]ExternCall_PrintAddStr [21:58:56]wPrintStart [21:58:56]Write to MH i2c: 01 00 00 0C 0D 19 [21:58:56]Write i2c OK [21:58:56]MH_I2C_Read... [21:58:56]Read from MH i2c: 01 [21:58:56]MH_I2C_Read... [21:58:56]Read from MH i2c: 01 07 00 [21:58:56]MH_I2C_Read... [21:58:56]Read from MH i2c: 01 07 00 0C 0D 00 00 00 00 00 FF 0F 2E [21:58:56]RasterBufferAndPrint [21:58:56]line Счет N : (1)412338 [21:58:56]line ИНН: 02508201610067 [21:58:56]line Контрольно-Кассовый Чек [21:58:56]line ПРОДАЖА [21:58:56]line ТРК (МРК, ГНК) : 6 [21:58:56]line Товар: 2710194210 [21:58:56]line ДТ-К-5 [21:58:56]line 28.100 * 0.00 [21:58:56]line = 0.00 [21:58:56]line НДС 12% НСП 1% [21:58:56]line > о реализуемом товаре [21:58:56]line ИТОГО: 0.00 [21:58:56]line НСП 1% : 0.00 [21:58:56]line НДС 12% : 0.00 [21:58:56]line Наличными: 0.00 [21:58:56]line Безнал.: 0.00 [21:58:56]line Место: АЗС № 92 "Партнер Нефть" [21:58:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:58:56]line СНО: Общий режим [21:58:56]line Чек 249 19.02.2025 21:58 [21:58:56]line Смена: 647 ФФД: 1.0 [21:58:56]line ЗНМ: 0300000118 [21:58:56]line РНМ: 0000000000091857 [21:58:56]line Версия ККМ: 001 [21:58:56]line Талоны: Топливная Карта [21:58:56]line 59221 [21:58:56]line ФМ: 0000000000871826 [21:58:56]line ФД: 187183 [21:58:56]line ФПД: 33727094849868 [21:58:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T215856&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187183&fm=33727094849868&tin=02508201610067®Number=0000000000091857&sum=0 [21:58:57]OFD Sender: Processing packet 187183 [packets to send 49, broken 48] [21:58:57]ProducePacketName [21:58:57]name=ofd_packets/00187183 [21:58:57]OFD Sender: To server: pG, [21:58:57]CommunicateWithHost lk.salyk.kg:30040 [21:58:57]ConnectInit lk.salyk.kg [21:58:57]written 0, free lines is 4095 [21:58:57]Connected sock=10 [21:58: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 48 2C 04 01 2D 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 C4 6D 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 F9 00 00 00 F4 03 04 00 20 54 B6 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 2F DB 02 00 35 04 06 00 1E AC B3 82 01 4C 40 BF 9C 15 0B B1 FE A7 [21:58: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 97 12 47 00 A6 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 2F DB 02 00 F4 03 04 00 73 FA B5 67 B6 04 01 00 00 88 65 DD 39 11 B8 32 35 [21:58:57]CommunicateWithHost err = 0 [21:58:57]CheckOFDResponse [21:58:57]1017 (14) - 77093643461234 [21:58:57]1041 (16) - 0000000000871826 [21:58:57]1040 (4) - 187183 [21:58:57]1012 (4) - 19.02.2025 15:36 [21:58:57]1206 (1) - 0 [21:58:57]OFD Sender: Remove packet 187183 [21:58:57]ProducePacketName [21:58:57]name=ofd_packets/00187183 [21:58:57]NVStorageDeleteData [21:58:57]Write to MH i2c: 01 00 00 36 0D 43 [21:58:57]Write i2c OK [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: 01 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: 01 07 00 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: 01 07 00 36 0D 00 00 00 00 00 0A 0D 61 [21:58:57]RasterBufferAndPrint [21:58:57]line [21:58:57]line [21:58:57]line [21:58:57]line [21:58:57]line [21:58:57]written 0, free lines is 3344 [21:58:57]MH_Cut [21:58:57]Write to MH i2c: D1 01 00 3D 0D 01 1C [21:58:57]Write i2c OK [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: D1 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: D1 01 00 [21:58:57]MH_I2C_Read... [21:58:57]Read from MH i2c: D1 01 00 3D 0D 00 1B [21:58:57]Write to MH i2c: 01 00 00 3E 0D 4B [21:58:57]Write i2c OK [21:58:57]MH_I2C_Read... [21:58:58]OFD Sender: No OFD packet to send [21:58:58]*** Cut start [21:58:58]*** Partial cut [21:58:58]*** CUTSNS_PIN = 1 [21:58:58]*** CUTSNS_PIN = 0 [21:58:58]*** Brake cut motor [21:58:59]Read from MH i2c: 01 [21:58:59]MH_I2C_Read... [21:58:59]*** Stop cut motor [21:58:59]*** Cut end [21:58:59]Read from MH i2c: 01 07 00 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: 01 07 00 3E 0D 00 00 00 00 00 FF 0F 60 [21:58:59]process_action close_receipt done [21:58:59]requested_data is exist [21:58:59]produce_requested_data [21:58:59]requested_item fm.sn is exist - process it [21:58:59]wFMCommunicate request_size=4 [21:58:59]MH_SAM_APDU [21:58:59]CAPDU: 80 11 00 00 [21:58:59]Write to MH i2c: E2 08 00 3F 0D 80 11 00 00 00 00 00 00 C6 [21:58:59]Write i2c OK [21:58:59]MH_I2C_Read... [21:58:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:58:59]Read from MH i2c: E2 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 17 00 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 17 00 3F 0D 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:58:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:58:59]wFMCommunicate OK [21:58:59]requested_item fd.num is exist - process it [21:58:59]SAM_PROTO_GetFieldsCounters [21:58:59]wFMCommunicate request_size=4 [21:58:59]MH_SAM_APDU [21:58:59]CAPDU: 80 13 00 00 [21:58:59]Write to MH i2c: E2 08 00 40 0D 80 13 00 00 00 00 00 00 C9 [21:58:59]Write i2c OK [21:58:59]MH_I2C_Read... [21:58:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:58:59]Read from MH i2c: E2 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 62 00 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 62 00 40 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 2F DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [21:58: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 2F DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:58:59]wFMCommunicate OK [21:58:59]SAM_PROTO_GetFieldsCounters done [21:58:59]requested_item shift.num is exist - process it [21:58:59]requested_item shift.opened is exist - process it [21:58:59]req_shift_opened [21:58:59]FM_GetShiftState [21:58:59]SAM_PROTO_GetShiftState [21:58:59]wFMCommunicate request_size=4 [21:58:59]MH_SAM_APDU [21:58:59]CAPDU: 80 13 01 00 [21:58:59]Write to MH i2c: E2 08 00 41 0D 80 13 01 00 00 00 00 00 CB [21:58:59]Write i2c OK [21:58:59]MH_I2C_Read... [21:58:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:58:59]Read from MH i2c: E2 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 0E 00 [21:58:59]MH_I2C_Read... [21:58:59]Read from MH i2c: E2 0E 00 41 0D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 4A [21:58:59]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [21:58:59]wFMCommunicate OK [21:58:59]SAM_PROTO_GetShiftState done [21:58:59]FM_GetShiftState done [21:58:59]req_shift_opened done [21:58:59]requested_item shift.open_date is exist - process it [21:58:59]req_shift_open_date [21:58:59]req_shift_open_date done [21:58:59]produce_requested_data done [21:58:59]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187183,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [21:58:59]process_action_free close_receipt [21:58:59]json_value_free [21:58:59]json_value_free done [21:58:59]process_json_proto returns [21:58:59]Send response to host [21:58:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187183,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [21:58:59]free response buf [21:58:59]execute_script done [21:58:59]execute_script returns [21:58:59]free content buf [21:58:59]Sock 9.Close socket [21:58:59]Sock 9.Thread stoped [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:57]accept exits with 7 [22:03:57]New connection [22:03:57]New thread 3066510692 created [22:03:57]Thread 3066654052 joined [22:03:57]Waiting for new connection... [22:03:57] Sock 7.Parse request [22:03:57]Sock 7.Check first char [22:03:57]Sock 7.First char is OK [22:03:57]request: POST /json_proto HTTP/1.0 [22:03:57]Method: POST [22:03:57]URL: /json_proto [22:03:57]Method is POST - this is cgi request [22:03:57]url: /json_proto [22:03:57]query_string will be loaded in cgi processing [22:03:57]execute_cgi json_proto POST (null) [22:03:57]execute_cgi path=json_proto method=POST [22:03:57]POST find Content-Length [22:03:57]Host: 172.17.46.131:8080 [22:03:57]Content-Length: 677 [22:03:57]Content-Type: application/json [22:03:57] [22:03:57]POST finish read [22:03:57]Found Content-Length = 677 [22:03:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412340", "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.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" ] } } [22:03:57]execute_script... [22: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)412340", "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.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" ] } } [22:03:57]POST & json_proto [22:03:57]process_json_proto [22:03:57]json parsed OK: [22:03:57]protocol is kg_v1.0 [22:03:57]action value=close_receipt [22:03:57]process_action close_receipt [22:03:57]cmd_close_receipt [22:03:57]MH_GetDate [22:03:57]Write to MH i2c: F0 00 00 42 0D 3E [22:03:57]Write i2c OK [22:03:57]MH_I2C_Read... [22:03:57]Read from MH i2c: F0 [22:03:57]MH_I2C_Read... [22:03:57]Read from MH i2c: F0 09 00 [22:03:57]MH_I2C_Read... [22:03:57]Read from MH i2c: F0 09 00 42 0D 00 4F 55 B6 67 7E 41 4F 65 7B [22:03:57]GetLastDocTimeStamp 1740002336 [22:03:57]current date 1740002639 [22:03:57]FM_GetShiftState [22:03:57]SAM_PROTO_GetShiftState [22:03:57]wFMCommunicate request_size=4 [22:03:57]MH_SAM_APDU [22:03:57]CAPDU: 80 13 01 00 [22:03:57]Write to MH i2c: E2 08 00 43 0D 80 13 01 00 00 00 00 00 CD [22:03:57]Write i2c OK [22:03:57]MH_I2C_Read... [22:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:58]Read from MH i2c: E2 [22:03:58]MH_I2C_Read... [22:03:58]Read from MH i2c: E2 0E 00 [22:03:58]MH_I2C_Read... [22:03:58]Read from MH i2c: E2 0E 00 43 0D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 4C [22:03:58]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [22:03:58]wFMCommunicate OK [22:03:58]SAM_PROTO_GetShiftState done [22:03:58]FM_GetShiftState done [22:03:58]opened in 1739929631 [22:03:58]opened+sec_in_day 1740016031 [22:03:58]quantity*price = 25038 [22:03:58]sum+1 = 25039 [22:03:58]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 СНО: Общий режим Чек 250 19.02.2025 22:03 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187184 ФПД: 233605586798029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T220359&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187184&fm=233605586798029&tin=02508201610067®Number=0000000000091857&sum=25000 [22:03:59]StoreToDocumentArchive [22:03:59]shift 647 fd 187184 [22:03:59]save to /storage/0647/doc_00187184 [22:03:59]save last doc name /storage/0647/doc_00187184 to /storage/kkm_last_doc_name [22:03:59]save OK [22:03:59]Clear old archive folders... [22:03:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:03:59]tlvbuf is 01FACCE0 [22:03:59]SAM_PROTO_ClearQueue [22:03:59]wFMCommunicate request_size=4 [22:03:59]MH_SAM_APDU [22:03:59]CAPDU: 80 09 00 00 [22:03:59]Write to MH i2c: E2 08 00 50 0D 80 09 00 00 00 00 00 00 CF [22:03:59]Write i2c OK [22:03:59]MH_I2C_Read... [22:03:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:03:59]Read from MH i2c: E2 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 03 00 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 03 00 50 0D 00 90 00 D1 [22:03:59]RAPDU: 90 00 [22:03:59]wFMCommunicate OK [22:03:59]SAM_PROTO_ClearQueue done [22:03:59]KKMCreateOFDPacket [22:03:59]OFDProtocolAddRootSTLVToBuf [22:03:59]FM_MakeSignedData [22:03:59]FM_MakeSignedData [22:03:59]SAM_PROTO_SignData [22:03:59]wFMCommunicate request_size=4 [22:03:59]MH_SAM_APDU [22:03:59]CAPDU: 80 0D 01 02 [22:03:59]Write to MH i2c: E2 08 00 51 0D 80 0D 01 02 00 00 00 00 D7 [22:03:59]Write i2c OK [22:03:59]MH_I2C_Read... [22:03:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:03:59]Read from MH i2c: E2 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 03 00 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 03 00 51 0D 00 90 00 D2 [22:03:59]RAPDU: 90 00 [22:03:59]wFMCommunicate OK [22:03:59]wFMCommunicate request_size=255 [22:03:59]MH_SAM_APDU [22:03: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 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 FA 00 00 00 F4 03 04 00 4F 55 B6 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 30 DB 02 00 35 04 06 00 D4 [22:03:59]Write to MH i2c: E2 02 01 52 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 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 FA 00 00 00 F4 03 04 00 4F 55 B6 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 30 DB 02 00 35 04 06 00 D4 00 00 0C [22:03:59]Write i2c OK [22:03:59]MH_I2C_Read... [22:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:59]Read from MH i2c: E2 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 03 00 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 03 00 52 0D 00 90 00 D3 [22:03:59]RAPDU: 90 00 [22:03:59]wFMCommunicate OK [22:03:59]wFMCommunicate request_size=10 [22:03:59]MH_SAM_APDU [22:03:59]CAPDU: 80 0D 02 02 05 76 8A 04 C5 CD [22:03:59]Write to MH i2c: E2 0D 00 53 0D 80 0D 02 02 05 00 76 8A 04 C5 CD 00 00 7A [22:03:59]Write i2c OK [22:03:59]MH_I2C_Read... [22:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:59]Read from MH i2c: E2 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 03 00 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 03 00 53 0D 00 90 00 D4 [22:03:59]RAPDU: 90 00 [22:03:59]wFMCommunicate OK [22:03:59]wFMCommunicate request_size=4 [22:03:59]MH_SAM_APDU [22:03:59]CAPDU: 80 0D 03 02 [22:03:59]Write to MH i2c: E2 08 00 54 0D 80 0D 03 02 00 00 00 00 DC [22:03:59]Write i2c OK [22:03:59]MH_I2C_Read... [22:03:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:03:59]Read from MH i2c: E2 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 0B 00 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 0B 00 54 0D 00 A7 A1 77 23 5E 0C 8B F4 90 00 A8 [22:03:59]RAPDU: A7 A1 77 23 5E 0C 8B F4 90 00 [22:03:59]wFMCommunicate OK [22:03:59]SAM_PROTO_SignData done [22:03:59]FM_MakeSignedData done [22:03:59]CreateOFDProtocolMessage [22:03:59]wFMCommunicate request_size=4 [22:03:59]MH_SAM_APDU [22:03:59]CAPDU: 80 11 00 00 [22:03:59]Write to MH i2c: E2 08 00 55 0D 80 11 00 00 00 00 00 00 DC [22:03:59]Write i2c OK [22:03:59]MH_I2C_Read... [22:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:59]Read from MH i2c: E2 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 17 00 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: E2 17 00 55 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2F [22: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 [22:03:59]wFMCommunicate OK [22:03:59]CreateOFDProtocolMessage done [22:03:59]OFDSenderStorePacket 187184 [22:03:59]StoreOFDPacket docnum=187184 [22: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 00 34 07 01 A6 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 FA 00 00 00 F4 03 04 00 4F 55 B6 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 30 DB 02 00 35 04 06 00 D4 76 8A 04 C5 CD A7 A1 77 23 5E 0C 8B F4 [22:03:59]CheckFolder [22:03:59]dirname=/storage/ofd_packets [22:03:59]CheckFolder done [22:03:59]ProducePacketName [22:03:59]name=ofd_packets/00187184 [22:03:59]NVStorageSaveData ofd_packets/00187184 [22:03:59]File name is /storage/ofd_packets/00187184 [22:03:59]Write 301 bytes [22:03:59]NVStorageSaveData done [22:03:59]OFDSenderStorePacket done [22:03:59]KKMCreateOFDPacket done [22:03:59]NVStorageSaveData kkm_last_timestamp [22:03:59]File name is /storage/kkm_last_timestamp [22:03:59]Write 4 bytes [22:03:59]NVStorageSaveData done [22:03:59]OFD Sender: Processing packet 187184 [packets to send 49, broken 48] [22:03:59]ProducePacketName [22:03:59]name=ofd_packets/00187184 [22:03:59]OFD Sender: To server: pG, [22:03:59]CommunicateWithHost lk.salyk.kg:30040 [22:03:59]ConnectInit lk.salyk.kg [22:03:59]ExternCall_PrintAddStr [22:03:59]wPrintStart [22:03:59]Write to MH i2c: 01 00 00 56 0D 63 [22:03:59]Write i2c OK [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: 01 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: 01 07 00 [22:03:59]MH_I2C_Read... [22:03:59]Read from MH i2c: 01 07 00 56 0D 00 00 00 00 00 FF 0F 78 [22:03:59]RasterBufferAndPrint [22:03:59]line Счет N : (1)412340 [22:03:59]line ИНН: 02508201610067 [22:03:59]line Контрольно-Кассовый Чек [22:03:59]line ПРОДАЖА [22:03:59]line ТРК (МРК, ГНК) : 32 [22:03:59]line Товар: 2710124130 [22:03:59]line Аи-92-К-2 [22:03:59]line 3.900 * 64.20 [22:03:59]line = 250.38 [22:03:59]line НДС 12% НСП 1% [22:03:59]line > о реализуемом товаре [22:03:59]line ОКРУГЛЕНИЕ: -0.38 [22:03:59]line ИТОГО: 250.00 [22:03:59]line Внесено: 250.00 [22:03:59]line СДАЧА: 0.00 [22:03:59]line НСП 1% : 2.22 [22:03:59]line НДС 12% : 26.59 [22:03:59]line Наличными: 250.00 [22:03:59]line Безнал.: 0.00 [22:03:59]line Место: АЗС № 92 "Партнер Нефть" [22:03:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:03:59]line СНО: Общий режим [22:03:59]line Чек 250 19.02.2025 22:03 [22:03:59]line Смена: 647 ФФД: 1.0 [22:03:59]line ЗНМ: 0300000118 [22:03:59]line РНМ: 0000000000091857 [22:03:59]line Версия ККМ: 001 [22:03:59]line ФМ: 0000000000871826 [22:03:59]line ФД: 187184 [22:03:59]line ФПД: 233605586798029 [22:04:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T220359&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187184&fm=233605586798029&tin=02508201610067®Number=0000000000091857&sum=25000 [22:04:00]Connected sock=11 [22:04: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 00 34 07 01 A6 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 FA 00 00 00 F4 03 04 00 4F 55 B6 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 30 DB 02 00 35 04 06 00 D4 76 8A 04 C5 CD A7 A1 77 23 5E 0C 8B F4 [22:04:00]written 0, free lines is 4095 [22:04: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 33 DA 47 00 28 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 30 DB 02 00 F4 03 04 00 A1 FB B5 67 B6 04 01 00 00 0F 03 A0 17 FC E3 C5 3D [22:04:00]CommunicateWithHost err = 0 [22:04:00]CheckOFDResponse [22:04:00]1017 (14) - 77093643461234 [22:04:00]1041 (16) - 0000000000871826 [22:04:00]1040 (4) - 187184 [22:04:00]1012 (4) - 19.02.2025 15:41 [22:04:00]1206 (1) - 0 [22:04:00]OFD Sender: Remove packet 187184 [22:04:00]ProducePacketName [22:04:00]name=ofd_packets/00187184 [22:04:00]NVStorageDeleteData [22:04:00]Write to MH i2c: 01 00 00 81 0D 8E [22:04:00]Write i2c OK [22:04:00]MH_I2C_Read... [22:04:00]Read from MH i2c: 01 [22:04:00]MH_I2C_Read... [22:04:00]Read from MH i2c: 01 07 00 [22:04:00]MH_I2C_Read... [22:04:00]Read from MH i2c: 01 07 00 81 0D 00 00 00 00 00 F6 0C 97 [22:04:00]RasterBufferAndPrint [22:04:00]line [22:04:00]line [22:04:00]line [22:04:00]line [22:04:00]line [22:04:00]written 0, free lines is 3324 [22:04:00]MH_Cut [22:04:00]Write to MH i2c: D1 01 00 88 0D 01 67 [22:04:00]Write i2c OK [22:04:00]MH_I2C_Read... [22:04:00]Read from MH i2c: D1 [22:04:00]MH_I2C_Read... [22:04:00]Read from MH i2c: D1 01 00 [22:04:00]MH_I2C_Read... [22:04:00]Read from MH i2c: D1 01 00 88 0D 00 66 [22:04:00]Write to MH i2c: 01 00 00 89 0D 96 [22:04:00]Write i2c OK [22:04:00]MH_I2C_Read... [22:04:00]OFD Sender: No OFD packet to send [22:04:01]*** Cut start [22:04:01]*** Partial cut [22:04:01]*** CUTSNS_PIN = 1 [22:04:01]*** CUTSNS_PIN = 0 [22:04:01]*** Brake cut motor [22:04:01]Read from MH i2c: 01 [22:04:01]MH_I2C_Read... [22:04:01]*** Stop cut motor [22:04:01]*** Cut end [22:04:01]Read from MH i2c: 01 07 00 [22:04:01]MH_I2C_Read... [22:04:01]Read from MH i2c: 01 07 00 89 0D 00 00 00 00 00 FF 0F AB [22:04:01]process_action close_receipt done [22:04:01]requested_data is exist [22:04:01]produce_requested_data [22:04:01]requested_item fm.sn is exist - process it [22:04:01]wFMCommunicate request_size=4 [22:04:01]MH_SAM_APDU [22:04:01]CAPDU: 80 11 00 00 [22:04:01]Write to MH i2c: E2 08 00 8A 0D 80 11 00 00 00 00 00 00 11 [22:04:01]Write i2c OK [22:04:01]MH_I2C_Read... [22:04:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:01]Read from MH i2c: E2 [22:04:01]MH_I2C_Read... [22:04:01]Read from MH i2c: E2 17 00 [22:04:01]MH_I2C_Read... [22:04:01]Read from MH i2c: E2 17 00 8A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 64 [22: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 [22:04:01]wFMCommunicate OK [22:04:01]requested_item fd.num is exist - process it [22:04:01]SAM_PROTO_GetFieldsCounters [22:04:01]wFMCommunicate request_size=4 [22:04:01]MH_SAM_APDU [22:04:01]CAPDU: 80 13 00 00 [22:04:01]Write to MH i2c: E2 08 00 8B 0D 80 13 00 00 00 00 00 00 14 [22:04:01]Write i2c OK [22:04:01]MH_I2C_Read... [22:04:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:02]Read from MH i2c: E2 [22:04:02]MH_I2C_Read... [22:04:02]Read from MH i2c: E2 62 00 [22:04:02]MH_I2C_Read... [22:04:02]Read from MH i2c: E2 62 00 8B 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 30 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [22:04: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 30 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:04:02]wFMCommunicate OK [22:04:02]SAM_PROTO_GetFieldsCounters done [22:04:02]requested_item shift.num is exist - process it [22:04:02]requested_item shift.opened is exist - process it [22:04:02]req_shift_opened [22:04:02]FM_GetShiftState [22:04:02]SAM_PROTO_GetShiftState [22:04:02]wFMCommunicate request_size=4 [22:04:02]MH_SAM_APDU [22:04:02]CAPDU: 80 13 01 00 [22:04:02]Write to MH i2c: E2 08 00 8C 0D 80 13 01 00 00 00 00 00 16 [22:04:02]Write i2c OK [22:04:02]MH_I2C_Read... [22:04:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:02]Read from MH i2c: E2 [22:04:02]MH_I2C_Read... [22:04:02]Read from MH i2c: E2 0E 00 [22:04:02]MH_I2C_Read... [22:04:02]Read from MH i2c: E2 0E 00 8C 0D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 95 [22:04:02]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [22:04:02]wFMCommunicate OK [22:04:02]SAM_PROTO_GetShiftState done [22:04:02]FM_GetShiftState done [22:04:02]req_shift_opened done [22:04:02]requested_item shift.open_date is exist - process it [22:04:02]req_shift_open_date [22:04:02]req_shift_open_date done [22:04:02]produce_requested_data done [22:04:02]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187184,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [22:04:02]process_action_free close_receipt [22:04:02]json_value_free [22:04:02]json_value_free done [22:04:02]process_json_proto returns [22:04:02]Send response to host [22:04:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187184,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [22:04:02]free response buf [22:04:02]execute_script done [22:04:02]execute_script returns [22:04:02]free content buf [22:04:02]Sock 7.Close socket [22:04:02]Sock 7.Thread stoped [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:16]accept exits with 9 [22:04:16]New connection [22:04:16]New thread 3066654052 created [22:04:16]Thread 3066510692 joined [22:04:16]Waiting for new connection... [22:04:16] Sock 9.Parse request [22:04:16]Sock 9.Check first char [22:04:16]Sock 9.First char is OK [22:04:16]request: POST /json_proto HTTP/1.0 [22:04:16]Method: POST [22:04:16]URL: /json_proto [22:04:16]Method is POST - this is cgi request [22:04:16]url: /json_proto [22:04:16]query_string will be loaded in cgi processing [22:04:16]execute_cgi json_proto POST (null) [22:04:16]execute_cgi path=json_proto method=POST [22:04:16]POST find Content-Length [22:04:16]Host: 172.17.46.131:8080 [22:04:16]Content-Length: 803 [22:04:16]Content-Type: application/json [22:04:16] [22:04:16]POST finish read [22:04:16]Found Content-Length = 803 [22:04:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412339", "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 }]} ], "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:04:16]execute_script... [22:04: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)412339", "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 }]} ], "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:04:16]POST & json_proto [22:04:16]process_json_proto [22:04:16]json parsed OK: [22:04:16]protocol is kg_v1.0 [22:04:16]action value=close_receipt [22:04:16]process_action close_receipt [22:04:16]cmd_close_receipt [22:04:16]MH_GetDate [22:04:16]Write to MH i2c: F0 00 00 8D 0D 89 [22:04:16]Write i2c OK [22:04:16]MH_I2C_Read... [22:04:16]Read from MH i2c: F0 [22:04:16]MH_I2C_Read... [22:04:16]Read from MH i2c: F0 09 00 [22:04:16]MH_I2C_Read... [22:04:16]Read from MH i2c: F0 09 00 8D 0D 00 61 55 B6 67 7E 41 4F 65 D8 [22:04:16]GetLastDocTimeStamp 1740002639 [22:04:16]current date 1740002657 [22:04:16]FM_GetShiftState [22:04:16]SAM_PROTO_GetShiftState [22:04:16]wFMCommunicate request_size=4 [22:04:16]MH_SAM_APDU [22:04:16]CAPDU: 80 13 01 00 [22:04:16]Write to MH i2c: E2 08 00 8E 0D 80 13 01 00 00 00 00 00 18 [22:04:16]Write i2c OK [22:04:16]MH_I2C_Read... [22:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:16]Read from MH i2c: E2 [22:04:16]MH_I2C_Read... [22:04:16]Read from MH i2c: E2 0E 00 [22:04:16]MH_I2C_Read... [22:04:16]Read from MH i2c: E2 0E 00 8E 0D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 97 [22:04:16]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [22:04:16]wFMCommunicate OK [22:04:16]SAM_PROTO_GetShiftState done [22:04:16]FM_GetShiftState done [22:04:16]opened in 1739929631 [22:04:16]opened+sec_in_day 1740016031 [22:04:16]quantity*price = 100023 [22:04:16]sum+1 = 100025 [22:04:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 251 19.02.2025 22:04 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187185 ФПД: 213878050654875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T220417&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187185&fm=213878050654875&tin=02508201610067®Number=0000000000091857&sum=100024 [22:04:17]StoreToDocumentArchive [22:04:17]shift 647 fd 187185 [22:04:17]save to /storage/0647/doc_00187185 [22:04:17]save last doc name /storage/0647/doc_00187185 to /storage/kkm_last_doc_name [22:04:17]save OK [22:04:17]Clear old archive folders... [22:04:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:04:17]tlvbuf is 01F244F0 [22:04:17]SAM_PROTO_ClearQueue [22:04:17]wFMCommunicate request_size=4 [22:04:17]MH_SAM_APDU [22:04:17]CAPDU: 80 09 00 00 [22:04:17]Write to MH i2c: E2 08 00 9B 0D 80 09 00 00 00 00 00 00 1A [22:04:17]Write i2c OK [22:04:17]MH_I2C_Read... [22:04:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:04:17]Read from MH i2c: E2 [22:04:17]MH_I2C_Read... [22:04:17]Read from MH i2c: E2 03 00 [22:04:17]MH_I2C_Read... [22:04:17]Read from MH i2c: E2 03 00 9B 0D 00 90 00 1C [22:04:17]RAPDU: 90 00 [22:04:17]wFMCommunicate OK [22:04:17]SAM_PROTO_ClearQueue done [22:04:17]KKMCreateOFDPacket [22:04:17]OFDProtocolAddRootSTLVToBuf [22:04:17]FM_MakeSignedData [22:04:17]FM_MakeSignedData [22:04:17]SAM_PROTO_SignData [22:04:17]wFMCommunicate request_size=4 [22:04:17]MH_SAM_APDU [22:04:17]CAPDU: 80 0D 01 02 [22:04:17]Write to MH i2c: E2 08 00 9C 0D 80 0D 01 02 00 00 00 00 22 [22:04:17]Write i2c OK [22:04:17]MH_I2C_Read... [22:04:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:04:17]Read from MH i2c: E2 [22:04:17]MH_I2C_Read... [22:04:17]Read from MH i2c: E2 03 00 [22:04:17]MH_I2C_Read... [22:04:17]Read from MH i2c: E2 03 00 9C 0D 00 90 00 1D [22:04:17]RAPDU: 90 00 [22:04:17]wFMCommunicate OK [22:04:17]wFMCommunicate request_size=255 [22:04:17]MH_SAM_APDU [22:04: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 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 FB 00 00 00 F4 03 04 00 61 55 B6 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 31 DB 02 00 35 04 06 00 C2 [22:04:17]Write to MH i2c: E2 02 01 9D 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 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 FB 00 00 00 F4 03 04 00 61 55 B6 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 31 DB 02 00 35 04 06 00 C2 00 00 76 [22:04:17]Write i2c OK [22:04:17]MH_I2C_Read... [22:04:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:18]Read from MH i2c: E2 [22:04:18]MH_I2C_Read... [22:04:18]Read from MH i2c: E2 03 00 [22:04:18]MH_I2C_Read... [22:04:18]Read from MH i2c: E2 03 00 9D 0D 00 90 00 1E [22:04:18]RAPDU: 90 00 [22:04:18]wFMCommunicate OK [22:04:18]wFMCommunicate request_size=10 [22:04:18]MH_SAM_APDU [22:04:18]CAPDU: 80 0D 02 02 05 85 5D 3C 0A 9B [22:04:18]Write to MH i2c: E2 0D 00 9E 0D 80 0D 02 02 05 00 85 5D 3C 0A 9B 00 00 F2 [22:04:18]Write i2c OK [22:04:18]MH_I2C_Read... [22:04:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:18]Read from MH i2c: E2 [22:04:18]MH_I2C_Read... [22:04:18]Read from MH i2c: E2 03 00 [22:04:18]MH_I2C_Read... [22:04:18]Read from MH i2c: E2 03 00 9E 0D 00 90 00 1F [22:04:18]RAPDU: 90 00 [22:04:18]wFMCommunicate OK [22:04:18]wFMCommunicate request_size=4 [22:04:18]MH_SAM_APDU [22:04:18]CAPDU: 80 0D 03 02 [22:04:18]Write to MH i2c: E2 08 00 9F 0D 80 0D 03 02 00 00 00 00 27 [22:04:18]Write i2c OK [22:04:18]MH_I2C_Read... [22:04:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:04:18]Read from MH i2c: E2 [22:04:18]MH_I2C_Read... [22:04:18]Read from MH i2c: E2 0B 00 [22:04:18]MH_I2C_Read... [22:04:18]Read from MH i2c: E2 0B 00 9F 0D 00 D2 47 4A 40 38 C4 44 13 90 00 1E [22:04:18]RAPDU: D2 47 4A 40 38 C4 44 13 90 00 [22:04:18]wFMCommunicate OK [22:04:18]SAM_PROTO_SignData done [22:04:18]FM_MakeSignedData done [22:04:18]CreateOFDProtocolMessage [22:04:18]wFMCommunicate request_size=4 [22:04:18]MH_SAM_APDU [22:04:18]CAPDU: 80 11 00 00 [22:04:18]Write to MH i2c: E2 08 00 A0 0D 80 11 00 00 00 00 00 00 27 [22:04:18]Write i2c OK [22:04:18]MH_I2C_Read... [22:04:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:18]Read from MH i2c: E2 [22:04:18]MH_I2C_Read... [22:04:18]Read from MH i2c: E2 17 00 [22:04:18]MH_I2C_Read... [22:04:18]Read from MH i2c: E2 17 00 A0 0D 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:04:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:04:18]wFMCommunicate OK [22:04:18]CreateOFDProtocolMessage done [22:04:18]OFDSenderStorePacket 187185 [22:04:18]StoreOFDPacket docnum=187185 [22:04: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 EE E0 07 01 76 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 FB 00 00 00 F4 03 04 00 61 55 B6 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 31 DB 02 00 35 04 06 00 C2 85 5D 3C 0A 9B D2 47 4A 40 38 C4 44 13 [22:04:18]CheckFolder [22:04:18]dirname=/storage/ofd_packets [22:04:18]CheckFolder done [22:04:18]ProducePacketName [22:04:18]name=ofd_packets/00187185 [22:04:18]NVStorageSaveData ofd_packets/00187185 [22:04:18]File name is /storage/ofd_packets/00187185 [22:04:18]Write 301 bytes [22:04:18]NVStorageSaveData done [22:04:18]OFDSenderStorePacket done [22:04:18]KKMCreateOFDPacket done [22:04:18]NVStorageSaveData kkm_last_timestamp [22:04:18]File name is /storage/kkm_last_timestamp [22:04:18]Write 4 bytes [22:04:18]NVStorageSaveData done [22:04:18]ExternCall_PrintAddStr [22:04:18]wPrintStart [22:04:18]Write to MH i2c: 01 00 00 A1 0D AE [22:04:18]Write i2c OK [22:04:18]MH_I2C_Read... [22:04:18]Read from MH i2c: 01 [22:04:18]MH_I2C_Read... [22:04:18]Read from MH i2c: 01 07 00 [22:04:18]MH_I2C_Read... [22:04:18]Read from MH i2c: 01 07 00 A1 0D 00 00 00 00 00 FF 0F C3 [22:04:18]RasterBufferAndPrint [22:04:18]line Счет N : (1)412339 [22:04:18]line ИНН: 02508201610067 [22:04:18]line Контрольно-Кассовый Чек [22:04:18]line ПРОДАЖА [22:04:18]line ТРК (МРК, ГНК) : 12 [22:04:18]line Товар: 2710124130 [22:04:18]line Аи-92-К-2 [22:04:18]line 15.580 * 64.20 [22:04:18]line = 1000.24 [22:04:18]line НДС 12% НСП 1% [22:04:18]line > о реализуемом товаре [22:04:18]line ИТОГО: 1000.24 [22:04:18]line НСП 1% : 8.85 [22:04:18]line НДС 12% : 106.22 [22:04:18]line Наличными: 0.00 [22:04:18]line Безнал.: 1000.24 [22:04:18]line Место: АЗС № 92 "Партнер Нефть" [22:04:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:04:18]line СНО: Общий режим [22:04:18]line Чек 251 19.02.2025 22:04 [22:04:18]line Смена: 647 ФФД: 1.0 [22:04:18]line ЗНМ: 0300000118 [22:04:18]line РНМ: 0000000000091857 [22:04:18]line Версия ККМ: 001 [22:04:18]line Платежная система: O! деньги [22:04:18]line ФМ: 0000000000871826 [22:04:18]line ФД: 187185 [22:04:18]line ФПД: 213878050654875 [22:04:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T220417&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187185&fm=213878050654875&tin=02508201610067®Number=0000000000091857&sum=100024 [22:04:18]OFD Sender: Processing packet 187185 [packets to send 49, broken 48] [22:04:18]ProducePacketName [22:04:18]name=ofd_packets/00187185 [22:04:18]OFD Sender: To server: pG, [22:04:18]CommunicateWithHost lk.salyk.kg:30040 [22:04:18]ConnectInit lk.salyk.kg [22:04:18]written 0, free lines is 4095 [22:04:18]Connected sock=11 [22:04: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 EE E0 07 01 76 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 FB 00 00 00 F4 03 04 00 61 55 B6 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 31 DB 02 00 35 04 06 00 C2 85 5D 3C 0A 9B D2 47 4A 40 38 C4 44 13 [22:04:18]Write to MH i2c: 01 00 00 CB 0D D8 [22:04:18]Write i2c OK [22:04:18]MH_I2C_Read... [22:04:18]Read from MH i2c: 01 [22:04:18]MH_I2C_Read... [22:04:18]Read from MH i2c: 01 07 00 [22:04:18]MH_I2C_Read... [22:04:18]Read from MH i2c: 01 07 00 CB 0D 00 00 00 00 00 00 0D EC [22:04:18]RasterBufferAndPrint [22:04:18]line [22:04:18]line [22:04:18]line [22:04:18]line [22:04:18]line [22:04:18]written 0, free lines is 3333 [22:04:18]MH_Cut [22:04:18]Write to MH i2c: D1 01 00 D2 0D 01 B1 [22:04:18]Write i2c OK [22:04:18]MH_I2C_Read... [22:04:18]Read from MH i2c: D1 [22:04:18]MH_I2C_Read... [22:04:18]Read from MH i2c: D1 01 00 [22:04:18]MH_I2C_Read... [22:04:18]Read from MH i2c: D1 01 00 D2 0D 00 B0 [22:04:18]Write to MH i2c: 01 00 00 D3 0D E0 [22:04:18]Write i2c OK [22:04:18]MH_I2C_Read... [22:04: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 34 81 47 00 34 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 31 DB 02 00 F4 03 04 00 B4 FB B5 67 B6 04 01 00 00 B5 2E 86 48 8B 48 1F 7C [22:04:18]CommunicateWithHost err = 0 [22:04:18]CheckOFDResponse [22:04:18]1017 (14) - 77093643461234 [22:04:18]1041 (16) - 0000000000871826 [22:04:18]1040 (4) - 187185 [22:04:18]1012 (4) - 19.02.2025 15:41 [22:04:18]1206 (1) - 0 [22:04:18]OFD Sender: Remove packet 187185 [22:04:18]ProducePacketName [22:04:18]name=ofd_packets/00187185 [22:04:18]NVStorageDeleteData [22:04:19]OFD Sender: No OFD packet to send [22:04:19]*** Cut start [22:04:19]*** Partial cut [22:04:19]*** CUTSNS_PIN = 1 [22:04:19]*** CUTSNS_PIN = 0 [22:04:20]*** Brake cut motor [22:04:20]Read from MH i2c: 01 [22:04:20]MH_I2C_Read... [22:04:20]*** Stop cut motor [22:04:20]*** Cut end [22:04:20]Read from MH i2c: 01 07 00 [22:04:20]MH_I2C_Read... [22:04:20]Read from MH i2c: 01 07 00 D3 0D 00 00 00 00 00 FF 0F F5 [22:04:20]process_action close_receipt done [22:04:20]requested_data is exist [22:04:20]produce_requested_data [22:04:20]requested_item fm.sn is exist - process it [22:04:20]wFMCommunicate request_size=4 [22:04:20]MH_SAM_APDU [22:04:20]CAPDU: 80 11 00 00 [22:04:20]Write to MH i2c: E2 08 00 D4 0D 80 11 00 00 00 00 00 00 5B [22:04:20]Write i2c OK [22:04:20]MH_I2C_Read... [22:04:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:20]Read from MH i2c: E2 [22:04:20]MH_I2C_Read... [22:04:20]Read from MH i2c: E2 17 00 [22:04:20]MH_I2C_Read... [22:04:20]Read from MH i2c: E2 17 00 D4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AE [22: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 [22:04:20]wFMCommunicate OK [22:04:20]requested_item fd.num is exist - process it [22:04:20]SAM_PROTO_GetFieldsCounters [22:04:20]wFMCommunicate request_size=4 [22:04:20]MH_SAM_APDU [22:04:20]CAPDU: 80 13 00 00 [22:04:20]Write to MH i2c: E2 08 00 D5 0D 80 13 00 00 00 00 00 00 5E [22:04:20]Write i2c OK [22:04:20]MH_I2C_Read... [22:04:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:20]Read from MH i2c: E2 [22:04:20]MH_I2C_Read... [22:04:20]Read from MH i2c: E2 62 00 [22:04:20]MH_I2C_Read... [22:04:20]Read from MH i2c: E2 62 00 D5 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 31 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [22:04: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 31 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:04:20]wFMCommunicate OK [22:04:20]SAM_PROTO_GetFieldsCounters done [22:04:20]requested_item shift.num is exist - process it [22:04:20]requested_item shift.opened is exist - process it [22:04:20]req_shift_opened [22:04:20]FM_GetShiftState [22:04:20]SAM_PROTO_GetShiftState [22:04:20]wFMCommunicate request_size=4 [22:04:20]MH_SAM_APDU [22:04:20]CAPDU: 80 13 01 00 [22:04:20]Write to MH i2c: E2 08 00 D6 0D 80 13 01 00 00 00 00 00 60 [22:04:20]Write i2c OK [22:04:20]MH_I2C_Read... [22:04:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:20]Read from MH i2c: E2 [22:04:20]MH_I2C_Read... [22:04:20]Read from MH i2c: E2 0E 00 [22:04:20]MH_I2C_Read... [22:04:20]Read from MH i2c: E2 0E 00 D6 0D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 DF [22:04:20]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [22:04:20]wFMCommunicate OK [22:04:20]SAM_PROTO_GetShiftState done [22:04:20]FM_GetShiftState done [22:04:20]req_shift_opened done [22:04:20]requested_item shift.open_date is exist - process it [22:04:20]req_shift_open_date [22:04:20]req_shift_open_date done [22:04:20]produce_requested_data done [22:04:20]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187185,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [22:04:20]process_action_free close_receipt [22:04:20]json_value_free [22:04:20]json_value_free done [22:04:20]process_json_proto returns [22:04:20]Send response to host [22:04:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187185,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [22:04:20]free response buf [22:04:20]execute_script done [22:04:20]execute_script returns [22:04:20]free content buf [22:04:20]Sock 9.Close socket [22:04:20]Sock 9.Thread stoped [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:11]accept exits with 7 [22:10:11]New connection [22:10:11]New thread 3066510692 created [22:10:11]Thread 3066654052 joined [22:10:11]Waiting for new connection... [22:10:11] Sock 7.Parse request [22:10:11]Sock 7.Check first char [22:10:11]Sock 7.First char is OK [22:10:11]request: POST /json_proto HTTP/1.0 [22:10:11]Method: POST [22:10:11]URL: /json_proto [22:10:11]Method is POST - this is cgi request [22:10:11]url: /json_proto [22:10:11]query_string will be loaded in cgi processing [22:10:11]execute_cgi json_proto POST (null) [22:10:11]execute_cgi path=json_proto method=POST [22:10:11]POST find Content-Length [22:10:11]Host: 172.17.46.131:8080 [22:10:11]Content-Length: 677 [22:10:11]Content-Type: application/json [22:10:11] [22:10:11]POST finish read [22:10:11]Found Content-Length = 677 [22:10:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412341", "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 }]} ], "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" ] } } [22:10:11]execute_script... [22:10: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)412341", "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 }]} ], "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" ] } } [22:10:11]POST & json_proto [22:10:11]process_json_proto [22:10:11]json parsed OK: [22:10:11]protocol is kg_v1.0 [22:10:11]action value=close_receipt [22:10:11]process_action close_receipt [22:10:11]cmd_close_receipt [22:10:11]MH_GetDate [22:10:11]Write to MH i2c: F0 00 00 D7 0D D3 [22:10:11]Write i2c OK [22:10:11]MH_I2C_Read... [22:10:11]Read from MH i2c: F0 [22:10:11]MH_I2C_Read... [22:10:11]Read from MH i2c: F0 09 00 [22:10:11]MH_I2C_Read... [22:10:11]Read from MH i2c: F0 09 00 D7 0D 00 C4 56 B6 67 7E 41 4F 65 86 [22:10:11]GetLastDocTimeStamp 1740002657 [22:10:11]current date 1740003012 [22:10:11]FM_GetShiftState [22:10:11]SAM_PROTO_GetShiftState [22:10:11]wFMCommunicate request_size=4 [22:10:11]MH_SAM_APDU [22:10:11]CAPDU: 80 13 01 00 [22:10:11]Write to MH i2c: E2 08 00 D8 0D 80 13 01 00 00 00 00 00 62 [22:10:11]Write i2c OK [22:10:11]MH_I2C_Read... [22:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:11]Read from MH i2c: E2 [22:10:11]MH_I2C_Read... [22:10:11]Read from MH i2c: E2 0E 00 [22:10:11]MH_I2C_Read... [22:10:11]Read from MH i2c: E2 0E 00 D8 0D 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E1 [22:10:11]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [22:10:11]wFMCommunicate OK [22:10:11]SAM_PROTO_GetShiftState done [22:10:11]FM_GetShiftState done [22:10:11]opened in 1739929631 [22:10:11]opened+sec_in_day 1740016031 [22:10:11]quantity*price = 20030 [22:10:11]sum+1 = 20031 [22:10:11]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 СНО: Общий режим Чек 252 19.02.2025 22:10 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187186 ФПД: 225783576924153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T221012&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187186&fm=225783576924153&tin=02508201610067®Number=0000000000091857&sum=20000 [22:10:12]StoreToDocumentArchive [22:10:12]shift 647 fd 187186 [22:10:12]save to /storage/0647/doc_00187186 [22:10:12]save last doc name /storage/0647/doc_00187186 to /storage/kkm_last_doc_name [22:10:12]save OK [22:10:12]Clear old archive folders... [22:10:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:10:12]tlvbuf is 01FAC400 [22:10:12]SAM_PROTO_ClearQueue [22:10:12]wFMCommunicate request_size=4 [22:10:12]MH_SAM_APDU [22:10:12]CAPDU: 80 09 00 00 [22:10:12]Write to MH i2c: E2 08 00 E5 0D 80 09 00 00 00 00 00 00 64 [22:10:12]Write i2c OK [22:10:12]MH_I2C_Read... [22:10:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:10:12]Read from MH i2c: E2 [22:10:12]MH_I2C_Read... [22:10:12]Read from MH i2c: E2 03 00 [22:10:12]MH_I2C_Read... [22:10:12]Read from MH i2c: E2 03 00 E5 0D 00 90 00 66 [22:10:12]RAPDU: 90 00 [22:10:12]wFMCommunicate OK [22:10:12]SAM_PROTO_ClearQueue done [22:10:12]KKMCreateOFDPacket [22:10:12]OFDProtocolAddRootSTLVToBuf [22:10:12]FM_MakeSignedData [22:10:12]FM_MakeSignedData [22:10:12]SAM_PROTO_SignData [22:10:12]wFMCommunicate request_size=4 [22:10:12]MH_SAM_APDU [22:10:12]CAPDU: 80 0D 01 02 [22:10:12]Write to MH i2c: E2 08 00 E6 0D 80 0D 01 02 00 00 00 00 6C [22:10:12]Write i2c OK [22:10:12]MH_I2C_Read... [22:10:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:10:12]Read from MH i2c: E2 [22:10:12]MH_I2C_Read... [22:10:12]Read from MH i2c: E2 03 00 [22:10:12]MH_I2C_Read... [22:10:12]Read from MH i2c: E2 03 00 E6 0D 00 90 00 67 [22:10:12]RAPDU: 90 00 [22:10:12]wFMCommunicate OK [22:10:12]wFMCommunicate request_size=255 [22:10:12]MH_SAM_APDU [22:10: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 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 FC 00 00 00 F4 03 04 00 C4 56 B6 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 32 DB 02 00 35 04 06 00 CD [22:10:12]Write to MH i2c: E2 02 01 E7 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 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 FC 00 00 00 F4 03 04 00 C4 56 B6 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 32 DB 02 00 35 04 06 00 CD 00 00 E9 [22:10:12]Write i2c OK [22:10:12]MH_I2C_Read... [22:10:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:12]Read from MH i2c: E2 [22:10:12]MH_I2C_Read... [22:10:12]Read from MH i2c: E2 03 00 [22:10:12]MH_I2C_Read... [22:10:12]Read from MH i2c: E2 03 00 E7 0D 00 90 00 68 [22:10:12]RAPDU: 90 00 [22:10:12]wFMCommunicate OK [22:10:12]wFMCommunicate request_size=10 [22:10:12]MH_SAM_APDU [22:10:12]CAPDU: 80 0D 02 02 05 59 55 E6 0F F9 [22:10:12]Write to MH i2c: E2 0D 00 E8 0D 80 0D 02 02 05 00 59 55 E6 0F F9 00 00 15 [22:10:12]Write i2c OK [22:10:12]MH_I2C_Read... [22:10:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:12]Read from MH i2c: E2 [22:10:12]MH_I2C_Read... [22:10:12]Read from MH i2c: E2 03 00 [22:10:12]MH_I2C_Read... [22:10:12]Read from MH i2c: E2 03 00 E8 0D 00 90 00 69 [22:10:12]RAPDU: 90 00 [22:10:12]wFMCommunicate OK [22:10:12]wFMCommunicate request_size=4 [22:10:12]MH_SAM_APDU [22:10:12]CAPDU: 80 0D 03 02 [22:10:12]Write to MH i2c: E2 08 00 E9 0D 80 0D 03 02 00 00 00 00 71 [22:10:12]Write i2c OK [22:10:12]MH_I2C_Read... [22:10:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:10:12]Read from MH i2c: E2 [22:10:12]MH_I2C_Read... [22:10:12]Read from MH i2c: E2 0B 00 [22:10:12]MH_I2C_Read... [22:10:12]Read from MH i2c: E2 0B 00 E9 0D 00 B9 85 97 84 1A 5F 15 A1 90 00 FA [22:10:12]RAPDU: B9 85 97 84 1A 5F 15 A1 90 00 [22:10:12]wFMCommunicate OK [22:10:12]SAM_PROTO_SignData done [22:10:12]FM_MakeSignedData done [22:10:12]CreateOFDProtocolMessage [22:10:12]wFMCommunicate request_size=4 [22:10:12]MH_SAM_APDU [22:10:12]CAPDU: 80 11 00 00 [22:10:12]Write to MH i2c: E2 08 00 EA 0D 80 11 00 00 00 00 00 00 71 [22:10:12]Write i2c OK [22:10:12]MH_I2C_Read... [22:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:12]Read from MH i2c: E2 [22:10:12]MH_I2C_Read... [22:10:12]Read from MH i2c: E2 17 00 [22:10:12]MH_I2C_Read... [22:10:12]Read from MH i2c: E2 17 00 EA 0D 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:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:10:12]wFMCommunicate OK [22:10:12]CreateOFDProtocolMessage done [22:10:12]OFDSenderStorePacket 187186 [22:10:12]StoreOFDPacket docnum=187186 [22:10: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 0F 01 00 00 19 E1 07 01 A7 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 FC 00 00 00 F4 03 04 00 C4 56 B6 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 32 DB 02 00 35 04 06 00 CD 59 55 E6 0F F9 B9 85 97 84 1A 5F 15 A1 [22:10:12]CheckFolder [22:10:12]dirname=/storage/ofd_packets [22:10:12]CheckFolder done [22:10:12]ProducePacketName [22:10:12]name=ofd_packets/00187186 [22:10:12]NVStorageSaveData ofd_packets/00187186 [22:10:12]File name is /storage/ofd_packets/00187186 [22:10:12]Write 301 bytes [22:10:12]NVStorageSaveData done [22:10:12]OFDSenderStorePacket done [22:10:12]KKMCreateOFDPacket done [22:10:12]NVStorageSaveData kkm_last_timestamp [22:10:12]File name is /storage/kkm_last_timestamp [22:10:12]Write 4 bytes [22:10:12]NVStorageSaveData done [22:10:12]ExternCall_PrintAddStr [22:10:12]wPrintStart [22:10:12]Write to MH i2c: 01 00 00 EB 0D F8 [22:10:12]Write i2c OK [22:10:12]MH_I2C_Read... [22:10:12]Read from MH i2c: 01 [22:10:12]MH_I2C_Read... [22:10:12]Read from MH i2c: 01 07 00 [22:10:12]MH_I2C_Read... [22:10:12]Read from MH i2c: 01 07 00 EB 0D 00 00 00 00 00 FF 0F 0D [22:10:12]RasterBufferAndPrint [22:10:12]line Счет N : (1)412341 [22:10:12]line ИНН: 02508201610067 [22:10:12]line Контрольно-Кассовый Чек [22:10:12]line ПРОДАЖА [22:10:12]line ТРК (МРК, ГНК) : 32 [22:10:12]line Товар: 2710124130 [22:10:12]line Аи-92-К-2 [22:10:12]line 3.120 * 64.20 [22:10:12]line = 200.30 [22:10:12]line НДС 12% НСП 1% [22:10:12]line > о реализуемом товаре [22:10:12]line ОКРУГЛЕНИЕ: -0.30 [22:10:12]line ИТОГО: 200.00 [22:10:12]line Внесено: 200.00 [22:10:12]line СДАЧА: 0.00 [22:10:12]line НСП 1% : 1.77 [22:10:12]line НДС 12% : 21.27 [22:10:12]line Наличными: 200.00 [22:10:12]line Безнал.: 0.00 [22:10:12]line Место: АЗС № 92 "Партнер Нефть" [22:10:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:10:12]line СНО: Общий режим [22:10:12]line Чек 252 19.02.2025 22:10 [22:10:12]line Смена: 647 ФФД: 1.0 [22:10:12]line ЗНМ: 0300000118 [22:10:12]line РНМ: 0000000000091857 [22:10:12]line Версия ККМ: 001 [22:10:12]line ФМ: 0000000000871826 [22:10:12]line ФД: 187186 [22:10:12]line ФПД: 225783576924153 [22:10:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T221012&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187186&fm=225783576924153&tin=02508201610067®Number=0000000000091857&sum=20000 [22:10:13]written 0, free lines is 4095 [22:10:13]OFD Sender: Processing packet 187186 [packets to send 49, broken 48] [22:10:13]ProducePacketName [22:10:13]name=ofd_packets/00187186 [22:10:13]OFD Sender: To server: pG, [22:10:13]CommunicateWithHost lk.salyk.kg:30040 [22:10:13]ConnectInit lk.salyk.kg [22:10:13]Connected sock=10 [22:10: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 19 E1 07 01 A7 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 FC 00 00 00 F4 03 04 00 C4 56 B6 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 32 DB 02 00 35 04 06 00 CD 59 55 E6 0F F9 B9 85 97 84 1A 5F 15 A1 [22:10: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 94 71 47 00 0D 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 32 DB 02 00 F4 03 04 00 17 FD B5 67 B6 04 01 00 00 7C 85 00 E9 34 44 8D 75 [22:10:13]CommunicateWithHost err = 0 [22:10:13]CheckOFDResponse [22:10:13]1017 (14) - 77093643461234 [22:10:13]1041 (16) - 0000000000871826 [22:10:13]1040 (4) - 187186 [22:10:13]1012 (4) - 19.02.2025 15:47 [22:10:13]1206 (1) - 0 [22:10:13]OFD Sender: Remove packet 187186 [22:10:13]ProducePacketName [22:10:13]name=ofd_packets/00187186 [22:10:13]NVStorageDeleteData [22:10:13]Write to MH i2c: 01 00 00 16 0E 24 [22:10:13]Write i2c OK [22:10:13]MH_I2C_Read... [22:10:13]Read from MH i2c: 01 [22:10:13]MH_I2C_Read... [22:10:13]Read from MH i2c: 01 07 00 [22:10:13]MH_I2C_Read... [22:10:13]Read from MH i2c: 01 07 00 16 0E 00 00 00 00 00 E4 0C 1B [22:10:13]RasterBufferAndPrint [22:10:13]line [22:10:13]line [22:10:13]line [22:10:13]line [22:10:13]line [22:10:13]written 0, free lines is 3306 [22:10:13]MH_Cut [22:10:13]Write to MH i2c: D1 01 00 1D 0E 01 FD [22:10:13]Write i2c OK [22:10:13]MH_I2C_Read... [22:10:13]Read from MH i2c: D1 [22:10:13]MH_I2C_Read... [22:10:13]Read from MH i2c: D1 01 00 [22:10:13]MH_I2C_Read... [22:10:13]Read from MH i2c: D1 01 00 1D 0E 00 FC [22:10:13]Write to MH i2c: 01 00 00 1E 0E 2C [22:10:13]Write i2c OK [22:10:13]MH_I2C_Read... [22:10:14]OFD Sender: No OFD packet to send [22:10:14]*** Cut start [22:10:14]*** Partial cut [22:10:14]*** CUTSNS_PIN = 1 [22:10:14]*** CUTSNS_PIN = 0 [22:10:14]*** Brake cut motor [22:10:14]Read from MH i2c: 01 [22:10:15]MH_I2C_Read... [22:10:15]*** Stop cut motor [22:10:15]*** Cut end [22:10:15]Read from MH i2c: 01 07 00 [22:10:15]MH_I2C_Read... [22:10:15]Read from MH i2c: 01 07 00 1E 0E 00 00 00 00 00 FF 0F 41 [22:10:15]process_action close_receipt done [22:10:15]requested_data is exist [22:10:15]produce_requested_data [22:10:15]requested_item fm.sn is exist - process it [22:10:15]wFMCommunicate request_size=4 [22:10:15]MH_SAM_APDU [22:10:15]CAPDU: 80 11 00 00 [22:10:15]Write to MH i2c: E2 08 00 1F 0E 80 11 00 00 00 00 00 00 A7 [22:10:15]Write i2c OK [22:10:15]MH_I2C_Read... [22:10:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:15]Read from MH i2c: E2 [22:10:15]MH_I2C_Read... [22:10:15]Read from MH i2c: E2 17 00 [22:10:15]MH_I2C_Read... [22:10:15]Read from MH i2c: E2 17 00 1F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FA [22:10:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:10:15]wFMCommunicate OK [22:10:15]requested_item fd.num is exist - process it [22:10:15]SAM_PROTO_GetFieldsCounters [22:10:15]wFMCommunicate request_size=4 [22:10:15]MH_SAM_APDU [22:10:15]CAPDU: 80 13 00 00 [22:10:15]Write to MH i2c: E2 08 00 20 0E 80 13 00 00 00 00 00 00 AA [22:10:15]Write i2c OK [22:10:15]MH_I2C_Read... [22:10:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:10:15]Read from MH i2c: E2 [22:10:15]MH_I2C_Read... [22:10:15]Read from MH i2c: E2 62 00 [22:10:15]MH_I2C_Read... [22:10:15]Read from MH i2c: E2 62 00 20 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 32 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [22:10: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 32 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:10:15]wFMCommunicate OK [22:10:15]SAM_PROTO_GetFieldsCounters done [22:10:15]requested_item shift.num is exist - process it [22:10:15]requested_item shift.opened is exist - process it [22:10:15]req_shift_opened [22:10:15]FM_GetShiftState [22:10:15]SAM_PROTO_GetShiftState [22:10:15]wFMCommunicate request_size=4 [22:10:15]MH_SAM_APDU [22:10:15]CAPDU: 80 13 01 00 [22:10:15]Write to MH i2c: E2 08 00 21 0E 80 13 01 00 00 00 00 00 AC [22:10:15]Write i2c OK [22:10:15]MH_I2C_Read... [22:10:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:15]Read from MH i2c: E2 [22:10:15]MH_I2C_Read... [22:10:15]Read from MH i2c: E2 0E 00 [22:10:15]MH_I2C_Read... [22:10:15]Read from MH i2c: E2 0E 00 21 0E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 2B [22:10:15]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [22:10:15]wFMCommunicate OK [22:10:15]SAM_PROTO_GetShiftState done [22:10:15]FM_GetShiftState done [22:10:15]req_shift_opened done [22:10:15]requested_item shift.open_date is exist - process it [22:10:15]req_shift_open_date [22:10:15]req_shift_open_date done [22:10:15]produce_requested_data done [22:10:15]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187186,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [22:10:15]process_action_free close_receipt [22:10:15]json_value_free [22:10:15]json_value_free done [22:10:15]process_json_proto returns [22:10:15]Send response to host [22:10:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187186,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [22:10:15]free response buf [22:10:15]execute_script done [22:10:15]execute_script returns [22:10:15]free content buf [22:10:15]Sock 7.Close socket [22:10:15]Sock 7.Thread stoped [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:02]accept exits with 9 [22:11:02]New connection [22:11:02]New thread 3066654052 created [22:11:02]Thread 3066510692 joined [22:11:02]Waiting for new connection... [22:11:02] Sock 9.Parse request [22:11:02]Sock 9.Check first char [22:11:02]Sock 9.First char is OK [22:11:02]request: POST /json_proto HTTP/1.0 [22:11:02]Method: POST [22:11:02]URL: /json_proto [22:11:02]Method is POST - this is cgi request [22:11:02]url: /json_proto [22:11:02]query_string will be loaded in cgi processing [22:11:02]execute_cgi json_proto POST (null) [22:11:02]execute_cgi path=json_proto method=POST [22:11:02]POST find Content-Length [22:11:02]Host: 172.17.46.131:8080 [22:11:02]Content-Length: 677 [22:11:02]Content-Type: application/json [22:11:02] [22:11:02]POST finish read [22:11:02]Found Content-Length = 677 [22:11:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412342", "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.430, "sum" : 220.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:02]execute_script... [22:11: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)412342", "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.430, "sum" : 220.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:02]POST & json_proto [22:11:02]process_json_proto [22:11:02]json parsed OK: [22:11:02]protocol is kg_v1.0 [22:11:02]action value=close_receipt [22:11:02]process_action close_receipt [22:11:02]cmd_close_receipt [22:11:02]MH_GetDate [22:11:02]Write to MH i2c: F0 00 00 22 0E 1F [22:11:02]Write i2c OK [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: F0 [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: F0 09 00 [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: F0 09 00 22 0E 00 F7 56 B6 67 7E 41 4F 65 05 [22:11:02]GetLastDocTimeStamp 1740003012 [22:11:02]current date 1740003063 [22:11:02]FM_GetShiftState [22:11:02]SAM_PROTO_GetShiftState [22:11:02]wFMCommunicate request_size=4 [22:11:02]MH_SAM_APDU [22:11:02]CAPDU: 80 13 01 00 [22:11:02]Write to MH i2c: E2 08 00 23 0E 80 13 01 00 00 00 00 00 AE [22:11:02]Write i2c OK [22:11:02]MH_I2C_Read... [22:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:02]Read from MH i2c: E2 [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: E2 0E 00 [22:11:02]MH_I2C_Read... [22:11:02]Read from MH i2c: E2 0E 00 23 0E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 2D [22:11:02]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [22:11:02]wFMCommunicate OK [22:11:02]SAM_PROTO_GetShiftState done [22:11:02]FM_GetShiftState done [22:11:02]opened in 1739929631 [22:11:02]opened+sec_in_day 1740016031 [22:11:02]quantity*price = 22020 [22:11:02]sum+1 = 22022 [22:11:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.38 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 253 19.02.2025 22:11 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187187 ФПД: 94555729425475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T221103&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187187&fm=94555729425475&tin=02508201610067®Number=0000000000091857&sum=22000 [22:11:03]StoreToDocumentArchive [22:11:03]shift 647 fd 187187 [22:11:03]save to /storage/0647/doc_00187187 [22:11:03]save last doc name /storage/0647/doc_00187187 to /storage/kkm_last_doc_name [22:11:03]save OK [22:11:03]Clear old archive folders... [22:11:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:11:03]tlvbuf is 01FCBF10 [22:11:03]SAM_PROTO_ClearQueue [22:11:03]wFMCommunicate request_size=4 [22:11:03]MH_SAM_APDU [22:11:03]CAPDU: 80 09 00 00 [22:11:03]Write to MH i2c: E2 08 00 30 0E 80 09 00 00 00 00 00 00 B0 [22:11:03]Write i2c OK [22:11:03]MH_I2C_Read... [22:11:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:03]Read from MH i2c: E2 [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: E2 03 00 [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: E2 03 00 30 0E 00 90 00 B2 [22:11:03]RAPDU: 90 00 [22:11:03]wFMCommunicate OK [22:11:03]SAM_PROTO_ClearQueue done [22:11:03]KKMCreateOFDPacket [22:11:03]OFDProtocolAddRootSTLVToBuf [22:11:03]FM_MakeSignedData [22:11:03]FM_MakeSignedData [22:11:03]SAM_PROTO_SignData [22:11:03]wFMCommunicate request_size=4 [22:11:03]MH_SAM_APDU [22:11:03]CAPDU: 80 0D 01 02 [22:11:03]Write to MH i2c: E2 08 00 31 0E 80 0D 01 02 00 00 00 00 B8 [22:11:03]Write i2c OK [22:11:03]MH_I2C_Read... [22:11:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:03]Read from MH i2c: E2 [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: E2 03 00 [22:11:03]MH_I2C_Read... [22:11:03]Read from MH i2c: E2 03 00 31 0E 00 90 00 B3 [22:11:03]RAPDU: 90 00 [22:11:03]wFMCommunicate OK [22:11:03]wFMCommunicate request_size=255 [22:11:03]MH_SAM_APDU [22:11: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 66 0D 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 05 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 F7 56 B6 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 33 DB 02 00 35 04 06 00 55 [22:11:03]Write to MH i2c: E2 02 01 32 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 66 0D 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 05 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 F7 56 B6 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 33 DB 02 00 35 04 06 00 55 00 00 8C [22:11:03]Write i2c OK [22:11:03]MH_I2C_Read... [22:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:04]Read from MH i2c: E2 [22:11:04]MH_I2C_Read... [22:11:04]Read from MH i2c: E2 03 00 [22:11:04]MH_I2C_Read... [22:11:04]Read from MH i2c: E2 03 00 32 0E 00 90 00 B4 [22:11:04]RAPDU: 90 00 [22:11:04]wFMCommunicate OK [22:11:04]wFMCommunicate request_size=10 [22:11:04]MH_SAM_APDU [22:11:04]CAPDU: 80 0D 02 02 05 FF 78 A9 F4 43 [22:11:04]Write to MH i2c: E2 0D 00 33 0E 80 0D 02 02 05 00 FF 78 A9 F4 43 00 00 1C [22:11:04]Write i2c OK [22:11:04]MH_I2C_Read... [22:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:04]Read from MH i2c: E2 [22:11:04]MH_I2C_Read... [22:11:04]Read from MH i2c: E2 03 00 [22:11:04]MH_I2C_Read... [22:11:04]Read from MH i2c: E2 03 00 33 0E 00 90 00 B5 [22:11:04]RAPDU: 90 00 [22:11:04]wFMCommunicate OK [22:11:04]wFMCommunicate request_size=4 [22:11:04]MH_SAM_APDU [22:11:04]CAPDU: 80 0D 03 02 [22:11:04]Write to MH i2c: E2 08 00 34 0E 80 0D 03 02 00 00 00 00 BD [22:11:04]Write i2c OK [22:11:04]MH_I2C_Read... [22:11:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:04]Read from MH i2c: E2 [22:11:04]MH_I2C_Read... [22:11:04]Read from MH i2c: E2 0B 00 [22:11:04]MH_I2C_Read... [22:11:04]Read from MH i2c: E2 0B 00 34 0E 00 5F 54 FC 15 69 E4 68 D7 90 00 0E [22:11:04]RAPDU: 5F 54 FC 15 69 E4 68 D7 90 00 [22:11:04]wFMCommunicate OK [22:11:04]SAM_PROTO_SignData done [22:11:04]FM_MakeSignedData done [22:11:04]CreateOFDProtocolMessage [22:11:04]wFMCommunicate request_size=4 [22:11:04]MH_SAM_APDU [22:11:04]CAPDU: 80 11 00 00 [22:11:04]Write to MH i2c: E2 08 00 35 0E 80 11 00 00 00 00 00 00 BD [22:11:04]Write i2c OK [22:11:04]MH_I2C_Read... [22:11:04]OFD Sender: No OFD packet to send [22:11:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:04]Read from MH i2c: E2 [22:11:04]MH_I2C_Read... [22:11:04]Read from MH i2c: E2 17 00 [22:11:04]MH_I2C_Read... [22:11:04]Read from MH i2c: E2 17 00 35 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 10 [22:11:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:11:04]wFMCommunicate OK [22:11:04]CreateOFDProtocolMessage done [22:11:04]OFDSenderStorePacket 187187 [22:11:04]StoreOFDPacket docnum=187187 [22:11: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 69 F2 07 01 7B 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 66 0D 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 05 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 F7 56 B6 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 33 DB 02 00 35 04 06 00 55 FF 78 A9 F4 43 5F 54 FC 15 69 E4 68 D7 [22:11:04]CheckFolder [22:11:04]dirname=/storage/ofd_packets [22:11:04]CheckFolder done [22:11:04]ProducePacketName [22:11:04]name=ofd_packets/00187187 [22:11:04]NVStorageSaveData ofd_packets/00187187 [22:11:04]File name is /storage/ofd_packets/00187187 [22:11:04]Write 301 bytes [22:11:04]NVStorageSaveData done [22:11:04]OFDSenderStorePacket done [22:11:04]KKMCreateOFDPacket done [22:11:04]NVStorageSaveData kkm_last_timestamp [22:11:04]File name is /storage/kkm_last_timestamp [22:11:04]Write 4 bytes [22:11:04]NVStorageSaveData done [22:11:04]ExternCall_PrintAddStr [22:11:04]wPrintStart [22:11:04]Write to MH i2c: 01 00 00 36 0E 44 [22:11:04]Write i2c OK [22:11:04]MH_I2C_Read... [22:11:04]Read from MH i2c: 01 [22:11:04]MH_I2C_Read... [22:11:04]Read from MH i2c: 01 07 00 [22:11:04]MH_I2C_Read... [22:11:04]Read from MH i2c: 01 07 00 36 0E 00 00 00 00 00 FF 0F 59 [22:11:04]RasterBufferAndPrint [22:11:04]line Счет N : (1)412342 [22:11:04]line ИНН: 02508201610067 [22:11:04]line Контрольно-Кассовый Чек [22:11:04]line ПРОДАЖА [22:11:04]line ТРК (МРК, ГНК) : 12 [22:11:04]line Товар: 2710124130 [22:11:04]line Аи-92-К-2 [22:11:04]line 3.430 * 64.20 [22:11:04]line = 220.21 [22:11:04]line НДС 12% НСП 1% [22:11:04]line > о реализуемом товаре [22:11:04]line ОКРУГЛЕНИЕ: -0.21 [22:11:04]line ИТОГО: 220.00 [22:11:04]line Внесено: 220.00 [22:11:04]line СДАЧА: 0.00 [22:11:04]line НСП 1% : 1.95 [22:11:04]line НДС 12% : 23.38 [22:11:04]line Наличными: 220.00 [22:11:04]line Безнал.: 0.00 [22:11:04]line Место: АЗС № 92 "Партнер Нефть" [22:11:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:11:04]line СНО: Общий режим [22:11:04]line Чек 253 19.02.2025 22:11 [22:11:04]line Смена: 647 ФФД: 1.0 [22:11:04]line ЗНМ: 0300000118 [22:11:04]line РНМ: 0000000000091857 [22:11:04]line Версия ККМ: 001 [22:11:04]line ФМ: 0000000000871826 [22:11:04]line ФД: 187187 [22:11:04]line ФПД: 94555729425475 [22:11:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T221103&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187187&fm=94555729425475&tin=02508201610067®Number=0000000000091857&sum=22000 [22:11:04]OFD Sender: Processing packet 187187 [packets to send 49, broken 48] [22:11:04]ProducePacketName [22:11:04]name=ofd_packets/00187187 [22:11:04]OFD Sender: To server: pG, [22:11:04]CommunicateWithHost lk.salyk.kg:30040 [22:11:04]ConnectInit lk.salyk.kg [22:11:04]written 0, free lines is 4095 [22:11:04]Connected sock=10 [22:11: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 69 F2 07 01 7B 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 66 0D 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 05 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 F7 56 B6 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 33 DB 02 00 35 04 06 00 55 FF 78 A9 F4 43 5F 54 FC 15 69 E4 68 D7 [22:11: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 FA AE 47 00 9D 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 33 DB 02 00 F4 03 04 00 4A FD B5 67 B6 04 01 00 00 79 1E DB 15 43 AD E6 18 [22:11:04]CommunicateWithHost err = 0 [22:11:04]CheckOFDResponse [22:11:04]1017 (14) - 77093643461234 [22:11:04]1041 (16) - 0000000000871826 [22:11:04]1040 (4) - 187187 [22:11:04]1012 (4) - 19.02.2025 15:48 [22:11:04]1206 (1) - 0 [22:11:04]OFD Sender: Remove packet 187187 [22:11:04]ProducePacketName [22:11:04]name=ofd_packets/00187187 [22:11:04]NVStorageDeleteData [22:11:05]Write to MH i2c: 01 00 00 61 0E 6F [22:11:05]Write i2c OK [22:11:05]MH_I2C_Read... [22:11:05]Read from MH i2c: 01 [22:11:05]MH_I2C_Read... [22:11:05]Read from MH i2c: 01 07 00 [22:11:05]MH_I2C_Read... [22:11:05]Read from MH i2c: 01 07 00 61 0E 00 00 00 00 00 ED 0C 6F [22:11:05]RasterBufferAndPrint [22:11:05]line [22:11:05]line [22:11:05]line [22:11:05]line [22:11:05]line [22:11:05]written 0, free lines is 3315 [22:11:05]MH_Cut [22:11:05]Write to MH i2c: D1 01 00 68 0E 01 48 [22:11:05]Write i2c OK [22:11:05]MH_I2C_Read... [22:11:05]Read from MH i2c: D1 [22:11:05]MH_I2C_Read... [22:11:05]Read from MH i2c: D1 01 00 [22:11:05]MH_I2C_Read... [22:11:05]Read from MH i2c: D1 01 00 68 0E 00 47 [22:11:05]Write to MH i2c: 01 00 00 69 0E 77 [22:11:05]Write i2c OK [22:11:05]MH_I2C_Read... [22:11:05]OFD Sender: No OFD packet to send [22:11:05]*** Cut start [22:11:05]*** Partial cut [22:11:05]*** CUTSNS_PIN = 1 [22:11:05]*** CUTSNS_PIN = 0 [22:11:06]*** Brake cut motor [22:11:06]Read from MH i2c: 01 [22:11:06]MH_I2C_Read... [22:11:06]*** Stop cut motor [22:11:06]*** Cut end [22:11:06]Read from MH i2c: 01 07 00 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: 01 07 00 69 0E 00 00 00 00 00 FF 0F 8C [22:11:06]process_action close_receipt done [22:11:06]requested_data is exist [22:11:06]produce_requested_data [22:11:06]requested_item fm.sn is exist - process it [22:11:06]wFMCommunicate request_size=4 [22:11:06]MH_SAM_APDU [22:11:06]CAPDU: 80 11 00 00 [22:11:06]Write to MH i2c: E2 08 00 6A 0E 80 11 00 00 00 00 00 00 F2 [22:11:06]Write i2c OK [22:11:06]MH_I2C_Read... [22:11:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:06]Read from MH i2c: E2 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 17 00 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 17 00 6A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 45 [22:11:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:11:06]wFMCommunicate OK [22:11:06]requested_item fd.num is exist - process it [22:11:06]SAM_PROTO_GetFieldsCounters [22:11:06]wFMCommunicate request_size=4 [22:11:06]MH_SAM_APDU [22:11:06]CAPDU: 80 13 00 00 [22:11:06]Write to MH i2c: E2 08 00 6B 0E 80 13 00 00 00 00 00 00 F5 [22:11:06]Write i2c OK [22:11:06]MH_I2C_Read... [22:11:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:06]Read from MH i2c: E2 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 62 00 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 62 00 6B 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 33 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [22:11: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 33 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:11:06]wFMCommunicate OK [22:11:06]SAM_PROTO_GetFieldsCounters done [22:11:06]requested_item shift.num is exist - process it [22:11:06]requested_item shift.opened is exist - process it [22:11:06]req_shift_opened [22:11:06]FM_GetShiftState [22:11:06]SAM_PROTO_GetShiftState [22:11:06]wFMCommunicate request_size=4 [22:11:06]MH_SAM_APDU [22:11:06]CAPDU: 80 13 01 00 [22:11:06]Write to MH i2c: E2 08 00 6C 0E 80 13 01 00 00 00 00 00 F7 [22:11:06]Write i2c OK [22:11:06]MH_I2C_Read... [22:11:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:06]Read from MH i2c: E2 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 0E 00 [22:11:06]MH_I2C_Read... [22:11:06]Read from MH i2c: E2 0E 00 6C 0E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 76 [22:11:06]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [22:11:06]wFMCommunicate OK [22:11:06]SAM_PROTO_GetShiftState done [22:11:06]FM_GetShiftState done [22:11:06]req_shift_opened done [22:11:06]requested_item shift.open_date is exist - process it [22:11:06]req_shift_open_date [22:11:06]req_shift_open_date done [22:11:06]produce_requested_data done [22:11:06]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187187,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [22:11:06]process_action_free close_receipt [22:11:06]json_value_free [22:11:06]json_value_free done [22:11:06]process_json_proto returns [22:11:06]Send response to host [22:11:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187187,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [22:11:06]free response buf [22:11:06]execute_script done [22:11:06]execute_script returns [22:11:06]free content buf [22:11:06]Sock 9.Close socket [22:11:06]Sock 9.Thread stoped [22:11:10]OFD Sender: No OFD packet to send [22:11:15]OFD Sender: No OFD packet to send [22:11:20]OFD Sender: No OFD packet to send [22:11:25]OFD Sender: No OFD packet to send [22:11:30]OFD Sender: No OFD packet to send [22:11:35]OFD Sender: No OFD packet to send [22:11:40]OFD Sender: No OFD packet to send [22:11:45]OFD Sender: No OFD packet to send [22:11:50]OFD Sender: No OFD packet to send [22:11:55]OFD Sender: No OFD packet to send [22:12:00]OFD Sender: No OFD packet to send [22:12:05]OFD Sender: No OFD packet to send [22:12:10]OFD Sender: No OFD packet to send [22:12:15]OFD Sender: No OFD packet to send [22:12:20]OFD Sender: No OFD packet to send [22:12:25]OFD Sender: No OFD packet to send [22:12:30]OFD Sender: No OFD packet to send [22:12:35]OFD Sender: No OFD packet to send [22:12:40]OFD Sender: No OFD packet to send [22:12:45]OFD Sender: No OFD packet to send [22:12:50]OFD Sender: No OFD packet to send [22:12:55]OFD Sender: No OFD packet to send [22:13:00]OFD Sender: No OFD packet to send [22:13:05]OFD Sender: No OFD packet to send [22:13:10]OFD Sender: No OFD packet to send [22:13:15]OFD Sender: No OFD packet to send [22:13:20]OFD Sender: No OFD packet to send [22:13:25]OFD Sender: No OFD packet to send [22:13:30]OFD Sender: No OFD packet to send [22:13:35]OFD Sender: No OFD packet to send [22:13:40]OFD Sender: No OFD packet to send [22:13:45]OFD Sender: No OFD packet to send [22:13:50]OFD Sender: No OFD packet to send [22:13:55]OFD Sender: No OFD packet to send [22:14:00]OFD Sender: No OFD packet to send [22:14:05]OFD Sender: No OFD packet to send [22:14:10]OFD Sender: No OFD packet to send [22:14:15]OFD Sender: No OFD packet to send [22:14:20]OFD Sender: No OFD packet to send [22:14:25]OFD Sender: No OFD packet to send [22:14:30]OFD Sender: No OFD packet to send [22:14:35]OFD Sender: No OFD packet to send [22:14:40]OFD Sender: No OFD packet to send [22:14:45]OFD Sender: No OFD packet to send [22:14:50]OFD Sender: No OFD packet to send [22:14:55]OFD Sender: No OFD packet to send [22:15:00]OFD Sender: No OFD packet to send [22:15:05]OFD Sender: No OFD packet to send [22:15:10]OFD Sender: No OFD packet to send [22:15:15]OFD Sender: No OFD packet to send [22:15:20]OFD Sender: No OFD packet to send [22:15:25]OFD Sender: No OFD packet to send [22:15:30]OFD Sender: No OFD packet to send [22:15:35]OFD Sender: No OFD packet to send [22:15:40]OFD Sender: No OFD packet to send [22:15:45]OFD Sender: No OFD packet to send [22:15:50]OFD Sender: No OFD packet to send [22:15:55]OFD Sender: No OFD packet to send [22:16:00]OFD Sender: No OFD packet to send [22:16:05]OFD Sender: No OFD packet to send [22:16:10]OFD Sender: No OFD packet to send [22:16:15]OFD Sender: No OFD packet to send [22:16:20]OFD Sender: No OFD packet to send [22:16:25]OFD Sender: No OFD packet to send [22:16:30]OFD Sender: No OFD packet to send [22:16:35]OFD Sender: No OFD packet to send [22:16:40]OFD Sender: No OFD packet to send [22:16:45]OFD Sender: No OFD packet to send [22:16:50]OFD Sender: No OFD packet to send [22:16:55]OFD Sender: No OFD packet to send [22:17:00]OFD Sender: No OFD packet to send [22:17:05]OFD Sender: No OFD packet to send [22:17:10]OFD Sender: No OFD packet to send [22:17:15]OFD Sender: No OFD packet to send [22:17:20]OFD Sender: No OFD packet to send [22:17:25]OFD Sender: No OFD packet to send [22:17:30]OFD Sender: No OFD packet to send [22:17:35]OFD Sender: No OFD packet to send [22:17:40]OFD Sender: No OFD packet to send [22:17:45]OFD Sender: No OFD packet to send [22:17:50]OFD Sender: No OFD packet to send [22:17:55]OFD Sender: No OFD packet to send [22:18:00]OFD Sender: No OFD packet to send [22:18:05]OFD Sender: No OFD packet to send [22:18:10]OFD Sender: No OFD packet to send [22:18:15]OFD Sender: No OFD packet to send [22:18:20]OFD Sender: No OFD packet to send [22:18:25]OFD Sender: No OFD packet to send [22:18:30]OFD Sender: No OFD packet to send [22:18:35]OFD Sender: No OFD packet to send [22:18:40]OFD Sender: No OFD packet to send [22:18:45]OFD Sender: No OFD packet to send [22:18:50]OFD Sender: No OFD packet to send [22:18:55]OFD Sender: No OFD packet to send [22:19:00]OFD Sender: No OFD packet to send [22:19:05]OFD Sender: No OFD packet to send [22:19:10]OFD Sender: No OFD packet to send [22:19:15]OFD Sender: No OFD packet to send [22:19:20]OFD Sender: No OFD packet to send [22:19:25]OFD Sender: No OFD packet to send [22:19:30]OFD Sender: No OFD packet to send [22:19:35]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:10]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:22]accept exits with 7 [22:20:22]New connection [22:20:22]New thread 3066510692 created [22:20:22]Thread 3066654052 joined [22:20:22]Waiting for new connection... [22:20:22] Sock 7.Parse request [22:20:22]Sock 7.Check first char [22:20:22]Sock 7.First char is OK [22:20:22]request: POST /json_proto HTTP/1.0 [22:20:22]Method: POST [22:20:22]URL: /json_proto [22:20:22]Method is POST - this is cgi request [22:20:22]url: /json_proto [22:20:22]query_string will be loaded in cgi processing [22:20:22]execute_cgi json_proto POST (null) [22:20:22]execute_cgi path=json_proto method=POST [22:20:22]POST find Content-Length [22:20:22]Host: 172.17.46.131:8080 [22:20:22]Content-Length: 677 [22:20:22]Content-Type: application/json [22:20:22] [22:20:22]POST finish read [22:20:22]Found Content-Length = 677 [22:20:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412343", "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" ] } } [22:20:22]execute_script... [22:20: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)412343", "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" ] } } [22:20:22]POST & json_proto [22:20:22]process_json_proto [22:20:22]json parsed OK: [22:20:22]protocol is kg_v1.0 [22:20:22]action value=close_receipt [22:20:22]process_action close_receipt [22:20:22]cmd_close_receipt [22:20:22]MH_GetDate [22:20:22]Write to MH i2c: F0 00 00 6D 0E 6A [22:20:22]Write i2c OK [22:20:22]MH_I2C_Read... [22:20:22]Read from MH i2c: F0 [22:20:22]MH_I2C_Read... [22:20:22]Read from MH i2c: F0 09 00 [22:20:22]MH_I2C_Read... [22:20:22]Read from MH i2c: F0 09 00 6D 0E 00 27 59 B6 67 7E 41 4F 65 83 [22:20:22]GetLastDocTimeStamp 1740003063 [22:20:22]current date 1740003623 [22:20:22]FM_GetShiftState [22:20:22]SAM_PROTO_GetShiftState [22:20:22]wFMCommunicate request_size=4 [22:20:22]MH_SAM_APDU [22:20:22]CAPDU: 80 13 01 00 [22:20:22]Write to MH i2c: E2 08 00 6E 0E 80 13 01 00 00 00 00 00 F9 [22:20:22]Write i2c OK [22:20:22]MH_I2C_Read... [22:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:22]Read from MH i2c: E2 [22:20:22]MH_I2C_Read... [22:20:22]Read from MH i2c: E2 0E 00 [22:20:22]MH_I2C_Read... [22:20:22]Read from MH i2c: E2 0E 00 6E 0E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 78 [22:20:22]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [22:20:22]wFMCommunicate OK [22:20:22]SAM_PROTO_GetShiftState done [22:20:22]FM_GetShiftState done [22:20:22]opened in 1739929631 [22:20:22]opened+sec_in_day 1740016031 [22:20:22]quantity*price = 60027 [22:20:22]sum+1 = 60028 [22:20:22]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 СНО: Общий режим Чек 254 19.02.2025 22:20 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187188 ФПД: 222308373614853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T222023&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187188&fm=222308373614853&tin=02508201610067®Number=0000000000091857&sum=60000 [22:20:23]StoreToDocumentArchive [22:20:23]shift 647 fd 187188 [22:20:23]save to /storage/0647/doc_00187188 [22:20:23]save last doc name /storage/0647/doc_00187188 to /storage/kkm_last_doc_name [22:20:23]save OK [22:20:23]Clear old archive folders... [22:20:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:20:23]tlvbuf is 01F43490 [22:20:23]SAM_PROTO_ClearQueue [22:20:23]wFMCommunicate request_size=4 [22:20:23]MH_SAM_APDU [22:20:23]CAPDU: 80 09 00 00 [22:20:23]Write to MH i2c: E2 08 00 7B 0E 80 09 00 00 00 00 00 00 FB [22:20:23]Write i2c OK [22:20:23]MH_I2C_Read... [22:20:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:20:23]Read from MH i2c: E2 [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: E2 03 00 [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: E2 03 00 7B 0E 00 90 00 FD [22:20:23]RAPDU: 90 00 [22:20:23]wFMCommunicate OK [22:20:23]SAM_PROTO_ClearQueue done [22:20:23]KKMCreateOFDPacket [22:20:23]OFDProtocolAddRootSTLVToBuf [22:20:23]FM_MakeSignedData [22:20:23]FM_MakeSignedData [22:20:23]SAM_PROTO_SignData [22:20:23]wFMCommunicate request_size=4 [22:20:23]MH_SAM_APDU [22:20:23]CAPDU: 80 0D 01 02 [22:20:23]Write to MH i2c: E2 08 00 7C 0E 80 0D 01 02 00 00 00 00 03 [22:20:23]Write i2c OK [22:20:23]MH_I2C_Read... [22:20:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:20:23]Read from MH i2c: E2 [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: E2 03 00 [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: E2 03 00 7C 0E 00 90 00 FE [22:20:23]RAPDU: 90 00 [22:20:23]wFMCommunicate OK [22:20:23]wFMCommunicate request_size=255 [22:20:23]MH_SAM_APDU [22:20: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 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 FE 00 00 00 F4 03 04 00 27 59 B6 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 34 DB 02 00 35 04 06 00 CA [22:20:23]Write to MH i2c: E2 02 01 7D 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 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 FE 00 00 00 F4 03 04 00 27 59 B6 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 34 DB 02 00 35 04 06 00 CA 00 00 F1 [22:20:23]Write i2c OK [22:20:23]MH_I2C_Read... [22:20:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:23]Read from MH i2c: E2 [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: E2 03 00 [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: E2 03 00 7D 0E 00 90 00 FF [22:20:23]RAPDU: 90 00 [22:20:23]wFMCommunicate OK [22:20:23]wFMCommunicate request_size=10 [22:20:23]MH_SAM_APDU [22:20:23]CAPDU: 80 0D 02 02 05 30 33 A3 D1 05 [22:20:23]Write to MH i2c: E2 0D 00 7E 0E 80 0D 02 02 05 00 30 33 A3 D1 05 00 00 EC [22:20:23]Write i2c OK [22:20:23]MH_I2C_Read... [22:20:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:23]Read from MH i2c: E2 [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: E2 03 00 [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: E2 03 00 7E 0E 00 90 00 00 [22:20:23]RAPDU: 90 00 [22:20:23]wFMCommunicate OK [22:20:23]wFMCommunicate request_size=4 [22:20:23]MH_SAM_APDU [22:20:23]CAPDU: 80 0D 03 02 [22:20:23]Write to MH i2c: E2 08 00 7F 0E 80 0D 03 02 00 00 00 00 08 [22:20:23]Write i2c OK [22:20:23]MH_I2C_Read... [22:20:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:20:23]Read from MH i2c: E2 [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: E2 0B 00 [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: E2 0B 00 7F 0E 00 70 2F 18 D2 F1 69 5E D4 90 00 1E [22:20:23]RAPDU: 70 2F 18 D2 F1 69 5E D4 90 00 [22:20:23]wFMCommunicate OK [22:20:23]SAM_PROTO_SignData done [22:20:23]FM_MakeSignedData done [22:20:23]CreateOFDProtocolMessage [22:20:23]wFMCommunicate request_size=4 [22:20:23]MH_SAM_APDU [22:20:23]CAPDU: 80 11 00 00 [22:20:23]Write to MH i2c: E2 08 00 80 0E 80 11 00 00 00 00 00 00 08 [22:20:23]Write i2c OK [22:20:23]MH_I2C_Read... [22:20:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:23]Read from MH i2c: E2 [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: E2 17 00 [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: E2 17 00 80 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5B [22:20: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:20:23]wFMCommunicate OK [22:20:23]CreateOFDProtocolMessage done [22:20:23]OFDSenderStorePacket 187188 [22:20:23]StoreOFDPacket docnum=187188 [22:20: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 E0 1D 07 01 DD 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 FE 00 00 00 F4 03 04 00 27 59 B6 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 34 DB 02 00 35 04 06 00 CA 30 33 A3 D1 05 70 2F 18 D2 F1 69 5E D4 [22:20:23]CheckFolder [22:20:23]dirname=/storage/ofd_packets [22:20:23]CheckFolder done [22:20:23]ProducePacketName [22:20:23]name=ofd_packets/00187188 [22:20:23]NVStorageSaveData ofd_packets/00187188 [22:20:23]File name is /storage/ofd_packets/00187188 [22:20:23]Write 301 bytes [22:20:23]NVStorageSaveData done [22:20:23]OFDSenderStorePacket done [22:20:23]KKMCreateOFDPacket done [22:20:23]NVStorageSaveData kkm_last_timestamp [22:20:23]File name is /storage/kkm_last_timestamp [22:20:23]Write 4 bytes [22:20:23]NVStorageSaveData done [22:20:23]OFD Sender: Processing packet 187188 [packets to send 49, broken 48] [22:20:23]ProducePacketName [22:20:23]name=ofd_packets/00187188 [22:20:23]OFD Sender: To server: pG, [22:20:23]CommunicateWithHost lk.salyk.kg:30040 [22:20:23]ConnectInit lk.salyk.kg [22:20:23]ExternCall_PrintAddStr [22:20:23]wPrintStart [22:20:23]Write to MH i2c: 01 00 00 81 0E 8F [22:20:23]Write i2c OK [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: 01 [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: 01 07 00 [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: 01 07 00 81 0E 00 00 00 00 00 FF 0F A4 [22:20:23]RasterBufferAndPrint [22:20:23]line Счет N : (1)412343 [22:20:23]line ИНН: 02508201610067 [22:20:23]line Контрольно-Кассовый Чек [22:20:23]line ПРОДАЖА [22:20:23]line ТРК (МРК, ГНК) : 32 [22:20:23]line Товар: 2710124130 [22:20:23]line Аи-92-К-2 [22:20:23]line 9.350 * 64.20 [22:20:23]line = 600.27 [22:20:23]line НДС 12% НСП 1% [22:20:23]line > о реализуемом товаре [22:20:23]line ОКРУГЛЕНИЕ: -0.27 [22:20:23]line ИТОГО: 600.00 [22:20:23]line Внесено: 600.00 [22:20:23]line СДАЧА: 0.00 [22:20:23]line НСП 1% : 5.31 [22:20:23]line НДС 12% : 63.74 [22:20:23]line Наличными: 600.00 [22:20:23]line Безнал.: 0.00 [22:20:23]line Место: АЗС № 92 "Партнер Нефть" [22:20:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:20:23]line СНО: Общий режим [22:20:23]line Чек 254 19.02.2025 22:20 [22:20:23]line Смена: 647 ФФД: 1.0 [22:20:23]line ЗНМ: 0300000118 [22:20:23]line РНМ: 0000000000091857 [22:20:23]line Версия ККМ: 001 [22:20:23]line ФМ: 0000000000871826 [22:20:23]line ФД: 187188 [22:20:23]line ФПД: 222308373614853 [22:20:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T222023&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187188&fm=222308373614853&tin=02508201610067®Number=0000000000091857&sum=60000 [22:20:24]Connected sock=11 [22:20: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 E0 1D 07 01 DD 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 FE 00 00 00 F4 03 04 00 27 59 B6 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 34 DB 02 00 35 04 06 00 CA 30 33 A3 D1 05 70 2F 18 D2 F1 69 5E D4 [22:20:24]written 0, free lines is 4095 [22:20:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 EB 92 47 00 7E 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 34 DB 02 00 F4 03 04 00 7A FF B5 67 B6 04 01 00 00 B4 22 F1 0E E2 46 C7 BF [22:20:24]CommunicateWithHost err = 0 [22:20:24]CheckOFDResponse [22:20:24]1017 (14) - 77093643461234 [22:20:24]1041 (16) - 0000000000871826 [22:20:24]1040 (4) - 187188 [22:20:24]1012 (4) - 19.02.2025 15:57 [22:20:24]1206 (1) - 0 [22:20:24]OFD Sender: Remove packet 187188 [22:20:24]ProducePacketName [22:20:24]name=ofd_packets/00187188 [22:20:24]NVStorageDeleteData [22:20:24]Write to MH i2c: 01 00 00 AC 0E BA [22:20:24]Write i2c OK [22:20:24]MH_I2C_Read... [22:20:24]Read from MH i2c: 01 [22:20:24]MH_I2C_Read... [22:20:24]Read from MH i2c: 01 07 00 [22:20:24]MH_I2C_Read... [22:20:24]Read from MH i2c: 01 07 00 AC 0E 00 00 00 00 00 F5 0C C2 [22:20:24]RasterBufferAndPrint [22:20:24]line [22:20:24]line [22:20:24]line [22:20:24]line [22:20:24]line [22:20:24]written 0, free lines is 3324 [22:20:24]MH_Cut [22:20:24]Write to MH i2c: D1 01 00 B3 0E 01 93 [22:20:24]Write i2c OK [22:20:24]MH_I2C_Read... [22:20:24]Read from MH i2c: D1 [22:20:24]MH_I2C_Read... [22:20:24]Read from MH i2c: D1 01 00 [22:20:24]MH_I2C_Read... [22:20:24]Read from MH i2c: D1 01 00 B3 0E 00 92 [22:20:24]Write to MH i2c: 01 00 00 B4 0E C2 [22:20:24]Write i2c OK [22:20:24]MH_I2C_Read... [22:20:24]OFD Sender: No OFD packet to send [22:20:25]*** Cut start [22:20:25]*** Partial cut [22:20:25]*** CUTSNS_PIN = 1 [22:20:25]*** CUTSNS_PIN = 0 [22:20:25]*** Brake cut motor [22:20:26]Read from MH i2c: 01 [22:20:26]MH_I2C_Read... [22:20:26]*** Stop cut motor [22:20:26]*** Cut end [22:20:26]Read from MH i2c: 01 07 00 [22:20:26]MH_I2C_Read... [22:20:26]Read from MH i2c: 01 07 00 B4 0E 00 00 00 00 00 FF 0F D7 [22:20:26]process_action close_receipt done [22:20:26]requested_data is exist [22:20:26]produce_requested_data [22:20:26]requested_item fm.sn is exist - process it [22:20:26]wFMCommunicate request_size=4 [22:20:26]MH_SAM_APDU [22:20:26]CAPDU: 80 11 00 00 [22:20:26]Write to MH i2c: E2 08 00 B5 0E 80 11 00 00 00 00 00 00 3D [22:20:26]Write i2c OK [22:20:26]MH_I2C_Read... [22:20:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:26]Read from MH i2c: E2 [22:20:26]MH_I2C_Read... [22:20:26]Read from MH i2c: E2 17 00 [22:20:26]MH_I2C_Read... [22:20:26]Read from MH i2c: E2 17 00 B5 0E 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:20: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:20:26]wFMCommunicate OK [22:20:26]requested_item fd.num is exist - process it [22:20:26]SAM_PROTO_GetFieldsCounters [22:20:26]wFMCommunicate request_size=4 [22:20:26]MH_SAM_APDU [22:20:26]CAPDU: 80 13 00 00 [22:20:26]Write to MH i2c: E2 08 00 B6 0E 80 13 00 00 00 00 00 00 40 [22:20:26]Write i2c OK [22:20:26]MH_I2C_Read... [22:20:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:20:26]Read from MH i2c: E2 [22:20:26]MH_I2C_Read... [22:20:26]Read from MH i2c: E2 62 00 [22:20:26]MH_I2C_Read... [22:20:26]Read from MH i2c: E2 62 00 B6 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 34 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [22:20: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 34 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:20:26]wFMCommunicate OK [22:20:26]SAM_PROTO_GetFieldsCounters done [22:20:26]requested_item shift.num is exist - process it [22:20:26]requested_item shift.opened is exist - process it [22:20:26]req_shift_opened [22:20:26]FM_GetShiftState [22:20:26]SAM_PROTO_GetShiftState [22:20:26]wFMCommunicate request_size=4 [22:20:26]MH_SAM_APDU [22:20:26]CAPDU: 80 13 01 00 [22:20:26]Write to MH i2c: E2 08 00 B7 0E 80 13 01 00 00 00 00 00 42 [22:20:26]Write i2c OK [22:20:26]MH_I2C_Read... [22:20:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:26]Read from MH i2c: E2 [22:20:26]MH_I2C_Read... [22:20:26]Read from MH i2c: E2 0E 00 [22:20:26]MH_I2C_Read... [22:20:26]Read from MH i2c: E2 0E 00 B7 0E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C1 [22:20:26]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [22:20:26]wFMCommunicate OK [22:20:26]SAM_PROTO_GetShiftState done [22:20:26]FM_GetShiftState done [22:20:26]req_shift_opened done [22:20:26]requested_item shift.open_date is exist - process it [22:20:26]req_shift_open_date [22:20:26]req_shift_open_date done [22:20:26]produce_requested_data done [22:20:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187188,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [22:20:26]process_action_free close_receipt [22:20:26]json_value_free [22:20:26]json_value_free done [22:20:26]process_json_proto returns [22:20:26]Send response to host [22:20:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187188,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [22:20:26]free response buf [22:20:26]execute_script done [22:20:26]execute_script returns [22:20:26]free content buf [22:20:26]Sock 7.Close socket [22:20:26]Sock 7.Thread stoped [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:45]OFD Sender: No OFD packet to send [22:21:50]OFD Sender: No OFD packet to send [22:21:55]OFD Sender: No OFD packet to send [22:22:00]OFD Sender: No OFD packet to send [22:22:05]OFD Sender: No OFD packet to send [22:22:10]OFD Sender: No OFD packet to send [22:22:15]OFD Sender: No OFD packet to send [22:22:20]OFD Sender: No OFD packet to send [22:22:25]OFD Sender: No OFD packet to send [22:22:30]OFD Sender: No OFD packet to send [22:22:35]OFD Sender: No OFD packet to send [22:22:40]OFD Sender: No OFD packet to send [22:22:45]OFD Sender: No OFD packet to send [22:22:50]OFD Sender: No OFD packet to send [22:22:55]OFD Sender: No OFD packet to send [22:23:00]OFD Sender: No OFD packet to send [22:23:05]OFD Sender: No OFD packet to send [22:23:10]OFD Sender: No OFD packet to send [22:23:15]OFD Sender: No OFD packet to send [22:23:20]OFD Sender: No OFD packet to send [22:23:25]OFD Sender: No OFD packet to send [22:23:30]OFD Sender: No OFD packet to send [22:23:35]OFD Sender: No OFD packet to send [22:23:40]OFD Sender: No OFD packet to send [22:23:45]OFD Sender: No OFD packet to send [22:23:50]OFD Sender: No OFD packet to send [22:23:55]OFD Sender: No OFD packet to send [22:24:00]OFD Sender: No OFD packet to send [22:24:05]OFD Sender: No OFD packet to send [22:24:10]OFD Sender: No OFD packet to send [22:24:15]OFD Sender: No OFD packet to send [22:24:20]OFD Sender: No OFD packet to send [22:24:25]OFD Sender: No OFD packet to send [22:24:30]OFD Sender: No OFD packet to send [22:24:35]OFD Sender: No OFD packet to send [22:24:40]OFD Sender: No OFD packet to send [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:20]OFD Sender: No OFD packet to send [22:27:20]accept exits with 9 [22:27:20]New connection [22:27:20]New thread 3066654052 created [22:27:20]Thread 3066510692 joined [22:27:20]Waiting for new connection... [22:27:20] Sock 9.Parse request [22:27:20]Sock 9.Check first char [22:27:20]Sock 9.First char is OK [22:27:20]request: POST /json_proto HTTP/1.0 [22:27:20]Method: POST [22:27:20]URL: /json_proto [22:27:20]Method is POST - this is cgi request [22:27:20]url: /json_proto [22:27:20]query_string will be loaded in cgi processing [22:27:20]execute_cgi json_proto POST (null) [22:27:20]execute_cgi path=json_proto method=POST [22:27:20]POST find Content-Length [22:27:20]Host: 172.17.46.131:8080 [22:27:20]Content-Length: 801 [22:27:20]Content-Type: application/json [22:27:20] [22:27:20]POST finish read [22:27:20]Found Content-Length = 801 [22:27:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412344", "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 }]} ], "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.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:20]execute_script... [22:27: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)412344", "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 }]} ], "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.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:20]POST & json_proto [22:27:20]process_json_proto [22:27:20]json parsed OK: [22:27:20]protocol is kg_v1.0 [22:27:20]action value=close_receipt [22:27:20]process_action close_receipt [22:27:20]cmd_close_receipt [22:27:20]MH_GetDate [22:27:20]Write to MH i2c: F0 00 00 B8 0E B5 [22:27:20]Write i2c OK [22:27:20]MH_I2C_Read... [22:27:20]Read from MH i2c: F0 [22:27:20]MH_I2C_Read... [22:27:20]Read from MH i2c: F0 09 00 [22:27:20]MH_I2C_Read... [22:27:20]Read from MH i2c: F0 09 00 B8 0E 00 C9 5A B6 67 7E 41 4F 65 71 [22:27:20]GetLastDocTimeStamp 1740003623 [22:27:20]current date 1740004041 [22:27:20]FM_GetShiftState [22:27:20]SAM_PROTO_GetShiftState [22:27:20]wFMCommunicate request_size=4 [22:27:20]MH_SAM_APDU [22:27:20]CAPDU: 80 13 01 00 [22:27:20]Write to MH i2c: E2 08 00 B9 0E 80 13 01 00 00 00 00 00 44 [22:27:20]Write i2c OK [22:27:20]MH_I2C_Read... [22:27:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:20]Read from MH i2c: E2 [22:27:20]MH_I2C_Read... [22:27:20]Read from MH i2c: E2 0E 00 [22:27:20]MH_I2C_Read... [22:27:20]Read from MH i2c: E2 0E 00 B9 0E 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 C3 [22:27:20]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [22:27:20]wFMCommunicate OK [22:27:20]SAM_PROTO_GetShiftState done [22:27:20]FM_GetShiftState done [22:27:20]opened in 1739929631 [22:27:20]opened+sec_in_day 1740016031 [22:27:20]quantity*price = 70042 [22:27:20]sum+1 = 70043 [22:27:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.42 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.42 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 255 19.02.2025 22:27 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187189 ФПД: 248235742157017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T222721&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187189&fm=248235742157017&tin=02508201610067®Number=0000000000091857&sum=70042 [22:27:21]StoreToDocumentArchive [22:27:21]shift 647 fd 187189 [22:27:21]save to /storage/0647/doc_00187189 [22:27:21]save last doc name /storage/0647/doc_00187189 to /storage/kkm_last_doc_name [22:27:21]save OK [22:27:21]Clear old archive folders... [22:27:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:27:21]tlvbuf is 01FACF10 [22:27:21]SAM_PROTO_ClearQueue [22:27:21]wFMCommunicate request_size=4 [22:27:21]MH_SAM_APDU [22:27:21]CAPDU: 80 09 00 00 [22:27:21]Write to MH i2c: E2 08 00 C6 0E 80 09 00 00 00 00 00 00 46 [22:27:21]Write i2c OK [22:27:21]MH_I2C_Read... [22:27:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:21]Read from MH i2c: E2 [22:27:21]MH_I2C_Read... [22:27:21]Read from MH i2c: E2 03 00 [22:27:21]MH_I2C_Read... [22:27:21]Read from MH i2c: E2 03 00 C6 0E 00 90 00 48 [22:27:21]RAPDU: 90 00 [22:27:21]wFMCommunicate OK [22:27:21]SAM_PROTO_ClearQueue done [22:27:21]KKMCreateOFDPacket [22:27:21]OFDProtocolAddRootSTLVToBuf [22:27:21]FM_MakeSignedData [22:27:21]FM_MakeSignedData [22:27:21]SAM_PROTO_SignData [22:27:21]wFMCommunicate request_size=4 [22:27:21]MH_SAM_APDU [22:27:21]CAPDU: 80 0D 01 02 [22:27:21]Write to MH i2c: E2 08 00 C7 0E 80 0D 01 02 00 00 00 00 4E [22:27:21]Write i2c OK [22:27:21]MH_I2C_Read... [22:27:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:21]Read from MH i2c: E2 [22:27:21]MH_I2C_Read... [22:27:21]Read from MH i2c: E2 03 00 [22:27:21]MH_I2C_Read... [22:27:21]Read from MH i2c: E2 03 00 C7 0E 00 90 00 49 [22:27:21]RAPDU: 90 00 [22:27:21]wFMCommunicate OK [22:27:21]wFMCommunicate request_size=255 [22:27:21]MH_SAM_APDU [22:27:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 C9 5A B6 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 35 DB 02 00 35 04 06 00 E1 [22:27:21]Write to MH i2c: E2 02 01 C8 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 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 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 C9 5A B6 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 35 DB 02 00 35 04 06 00 E1 00 00 A7 [22:27:21]Write i2c OK [22:27:21]MH_I2C_Read... [22:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:21]Read from MH i2c: E2 [22:27:21]MH_I2C_Read... [22:27:21]Read from MH i2c: E2 03 00 [22:27:21]MH_I2C_Read... [22:27:21]Read from MH i2c: E2 03 00 C8 0E 00 90 00 4A [22:27:21]RAPDU: 90 00 [22:27:21]wFMCommunicate OK [22:27:21]wFMCommunicate request_size=10 [22:27:21]MH_SAM_APDU [22:27:21]CAPDU: 80 0D 02 02 05 C4 E3 3B 58 D9 [22:27:21]Write to MH i2c: E2 0D 00 C9 0E 80 0D 02 02 05 00 C4 E3 3B 58 D9 00 00 6E [22:27:21]Write i2c OK [22:27:21]MH_I2C_Read... [22:27:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:22]Read from MH i2c: E2 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 03 00 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 03 00 C9 0E 00 90 00 4B [22:27:22]RAPDU: 90 00 [22:27:22]wFMCommunicate OK [22:27:22]wFMCommunicate request_size=4 [22:27:22]MH_SAM_APDU [22:27:22]CAPDU: 80 0D 03 02 [22:27:22]Write to MH i2c: E2 08 00 CA 0E 80 0D 03 02 00 00 00 00 53 [22:27:22]Write i2c OK [22:27:22]MH_I2C_Read... [22:27:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:22]Read from MH i2c: E2 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 0B 00 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 0B 00 CA 0E 00 DA 34 B1 24 E5 AF 4E 2C 90 00 45 [22:27:22]RAPDU: DA 34 B1 24 E5 AF 4E 2C 90 00 [22:27:22]wFMCommunicate OK [22:27:22]SAM_PROTO_SignData done [22:27:22]FM_MakeSignedData done [22:27:22]CreateOFDProtocolMessage [22:27:22]wFMCommunicate request_size=4 [22:27:22]MH_SAM_APDU [22:27:22]CAPDU: 80 11 00 00 [22:27:22]Write to MH i2c: E2 08 00 CB 0E 80 11 00 00 00 00 00 00 53 [22:27:22]Write i2c OK [22:27:22]MH_I2C_Read... [22:27:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:22]Read from MH i2c: E2 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 17 00 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 17 00 CB 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A6 [22:27:22]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:22]wFMCommunicate OK [22:27:22]CreateOFDProtocolMessage done [22:27:22]OFDSenderStorePacket 187189 [22:27:22]StoreOFDPacket docnum=187189 [22:27: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 0F 01 00 00 75 ED 07 01 24 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 C9 5A B6 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 35 DB 02 00 35 04 06 00 E1 C4 E3 3B 58 D9 DA 34 B1 24 E5 AF 4E 2C [22:27:22]CheckFolder [22:27:22]dirname=/storage/ofd_packets [22:27:22]CheckFolder done [22:27:22]ProducePacketName [22:27:22]name=ofd_packets/00187189 [22:27:22]NVStorageSaveData ofd_packets/00187189 [22:27:22]File name is /storage/ofd_packets/00187189 [22:27:22]Write 301 bytes [22:27:22]NVStorageSaveData done [22:27:22]OFDSenderStorePacket done [22:27:22]KKMCreateOFDPacket done [22:27:22]NVStorageSaveData kkm_last_timestamp [22:27:22]File name is /storage/kkm_last_timestamp [22:27:22]Write 4 bytes [22:27:22]NVStorageSaveData done [22:27:22]ExternCall_PrintAddStr [22:27:22]wPrintStart [22:27:22]Write to MH i2c: 01 00 00 CC 0E DA [22:27:22]Write i2c OK [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: 01 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: 01 07 00 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: 01 07 00 CC 0E 00 00 00 00 00 FF 0F EF [22:27:22]RasterBufferAndPrint [22:27:22]line Счет N : (1)412344 [22:27:22]line ИНН: 02508201610067 [22:27:22]line Контрольно-Кассовый Чек [22:27:22]line ПРОДАЖА [22:27:22]line ТРК (МРК, ГНК) : 42 [22:27:22]line Товар: 2710124130 [22:27:22]line Аи-92-К-2 [22:27:22]line 10.910 * 64.20 [22:27:22]line = 700.42 [22:27:22]line НДС 12% НСП 1% [22:27:22]line > о реализуемом товаре [22:27:22]line ИТОГО: 700.42 [22:27:22]line НСП 1% : 6.20 [22:27:22]line НДС 12% : 74.38 [22:27:22]line Наличными: 0.00 [22:27:22]line Безнал.: 700.42 [22:27:22]line Место: АЗС № 92 "Партнер Нефть" [22:27:22]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:27:22]line СНО: Общий режим [22:27:22]line Чек 255 19.02.2025 22:27 [22:27:22]line Смена: 647 ФФД: 1.0 [22:27:22]line ЗНМ: 0300000118 [22:27:22]line РНМ: 0000000000091857 [22:27:22]line Версия ККМ: 001 [22:27:22]line Платежная система: O! деньги [22:27:22]line ФМ: 0000000000871826 [22:27:22]line ФД: 187189 [22:27:22]line ФПД: 248235742157017 [22:27:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T222721&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187189&fm=248235742157017&tin=02508201610067®Number=0000000000091857&sum=70042 [22:27:22]written 0, free lines is 4095 [22:27:22]OFD Sender: Processing packet 187189 [packets to send 49, broken 48] [22:27:22]ProducePacketName [22:27:22]name=ofd_packets/00187189 [22:27:22]OFD Sender: To server: pG, [22:27:22]CommunicateWithHost lk.salyk.kg:30040 [22:27:22]ConnectInit lk.salyk.kg [22:27:22]Write to MH i2c: 01 00 00 F6 0E 04 [22:27:22]Write i2c OK [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: 01 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: 01 07 00 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: 01 07 00 F6 0E 00 00 00 00 00 FF 0C 16 [22:27:22]RasterBufferAndPrint [22:27:22]line [22:27:22]line [22:27:22]line [22:27:22]line [22:27:22]line [22:27:22]written 0, free lines is 3333 [22:27:22]MH_Cut [22:27:22]Write to MH i2c: D1 01 00 FD 0E 01 DD [22:27:22]Write i2c OK [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: D1 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: D1 01 00 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: D1 01 00 FD 0E 00 DC [22:27:22]Write to MH i2c: 01 00 00 FE 0E 0C [22:27:22]Write i2c OK [22:27:22]MH_I2C_Read... [22:27:22]Connected sock=6 [22:27: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 75 ED 07 01 24 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 C9 5A B6 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 35 DB 02 00 35 04 06 00 E1 C4 E3 3B 58 D9 DA 34 B1 24 E5 AF 4E 2C [22:27: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 A9 37 47 00 BC 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 35 DB 02 00 F4 03 04 00 1C 01 B6 67 B6 04 01 00 00 4E A5 26 EE 11 48 D1 26 [22:27:22]CommunicateWithHost err = 0 [22:27:22]CheckOFDResponse [22:27:22]1017 (14) - 77093643461234 [22:27:22]1041 (16) - 0000000000871826 [22:27:22]1040 (4) - 187189 [22:27:22]1012 (4) - 19.02.2025 16:04 [22:27:22]1206 (1) - 0 [22:27:22]OFD Sender: Remove packet 187189 [22:27:22]ProducePacketName [22:27:22]name=ofd_packets/00187189 [22:27:22]NVStorageDeleteData [22:27:23]*** Cut start [22:27:23]*** Partial cut [22:27:23]*** CUTSNS_PIN = 1 [22:27:23]*** CUTSNS_PIN = 0 [22:27:23]OFD Sender: No OFD packet to send [22:27:23]*** Brake cut motor [22:27:23]Read from MH i2c: 01 [22:27:23]MH_I2C_Read... [22:27:23]*** Stop cut motor [22:27:24]*** Cut end [22:27:24]Read from MH i2c: 01 07 00 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: 01 07 00 FE 0E 00 00 00 00 00 FF 0F 21 [22:27:24]process_action close_receipt done [22:27:24]requested_data is exist [22:27:24]produce_requested_data [22:27:24]requested_item fm.sn is exist - process it [22:27:24]wFMCommunicate request_size=4 [22:27:24]MH_SAM_APDU [22:27:24]CAPDU: 80 11 00 00 [22:27:24]Write to MH i2c: E2 08 00 FF 0E 80 11 00 00 00 00 00 00 87 [22:27:24]Write i2c OK [22:27:24]MH_I2C_Read... [22:27:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:24]Read from MH i2c: E2 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: E2 17 00 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: E2 17 00 FF 0E 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:27:24]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:24]wFMCommunicate OK [22:27:24]requested_item fd.num is exist - process it [22:27:24]SAM_PROTO_GetFieldsCounters [22:27:24]wFMCommunicate request_size=4 [22:27:24]MH_SAM_APDU [22:27:24]CAPDU: 80 13 00 00 [22:27:24]Write to MH i2c: E2 08 00 00 0F 80 13 00 00 00 00 00 00 8B [22:27:24]Write i2c OK [22:27:24]MH_I2C_Read... [22:27:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:24]Read from MH i2c: E2 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: E2 62 00 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: E2 62 00 00 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 35 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 4A [22:27: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 35 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:24]wFMCommunicate OK [22:27:24]SAM_PROTO_GetFieldsCounters done [22:27:24]requested_item shift.num is exist - process it [22:27:24]requested_item shift.opened is exist - process it [22:27:24]req_shift_opened [22:27:24]FM_GetShiftState [22:27:24]SAM_PROTO_GetShiftState [22:27:24]wFMCommunicate request_size=4 [22:27:24]MH_SAM_APDU [22:27:24]CAPDU: 80 13 01 00 [22:27:24]Write to MH i2c: E2 08 00 01 0F 80 13 01 00 00 00 00 00 8D [22:27:24]Write i2c OK [22:27:24]MH_I2C_Read... [22:27:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:24]Read from MH i2c: E2 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: E2 0E 00 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: E2 0E 00 01 0F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 0C [22:27:24]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [22:27:24]wFMCommunicate OK [22:27:24]SAM_PROTO_GetShiftState done [22:27:24]FM_GetShiftState done [22:27:24]req_shift_opened done [22:27:24]requested_item shift.open_date is exist - process it [22:27:24]req_shift_open_date [22:27:24]req_shift_open_date done [22:27:24]produce_requested_data done [22:27:24]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187189,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [22:27:24]process_action_free close_receipt [22:27:24]json_value_free [22:27:24]json_value_free done [22:27:24]process_json_proto returns [22:27:24]Send response to host [22:27:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187189,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [22:27:24]free response buf [22:27:24]execute_script done [22:27:24]execute_script returns [22:27:24]free content buf [22:27:24]Sock 9.Close socket [22:27:24]Sock 9.Thread stoped [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:28:03]OFD Sender: No OFD packet to send [22:28:08]OFD Sender: No OFD packet to send [22:28:13]OFD Sender: No OFD packet to send [22:28:18]OFD Sender: No OFD packet to send [22:28:23]OFD Sender: No OFD packet to send [22:28:28]OFD Sender: No OFD packet to send [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:18]OFD Sender: No OFD packet to send [22:33:23]OFD Sender: No OFD packet to send [22:33:28]OFD Sender: No OFD packet to send [22:33:33]OFD Sender: No OFD packet to send [22:33:38]OFD Sender: No OFD packet to send [22:33:43]OFD Sender: No OFD packet to send [22:33:48]OFD Sender: No OFD packet to send [22:33:53]OFD Sender: No OFD packet to send [22:33:58]OFD Sender: No OFD packet to send [22:34:03]OFD Sender: No OFD packet to send [22:34:08]OFD Sender: No OFD packet to send [22:34:13]OFD Sender: No OFD packet to send [22:34:18]OFD Sender: No OFD packet to send [22:34:23]OFD Sender: No OFD packet to send [22:34:28]OFD Sender: No OFD packet to send [22:34:33]OFD Sender: No OFD packet to send [22:34:38]OFD Sender: No OFD packet to send [22:34:43]OFD Sender: No OFD packet to send [22:34:48]OFD Sender: No OFD packet to send [22:34:53]OFD Sender: No OFD packet to send [22:34:58]OFD Sender: No OFD packet to send [22:35:03]OFD Sender: No OFD packet to send [22:35:08]OFD Sender: No OFD packet to send [22:35:13]OFD Sender: No OFD packet to send [22:35:18]OFD Sender: No OFD packet to send [22:35:23]OFD Sender: No OFD packet to send [22:35:28]OFD Sender: No OFD packet to send [22:35:33]OFD Sender: No OFD packet to send [22:35:38]OFD Sender: No OFD packet to send [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:53]OFD Sender: No OFD packet to send [22:35:58]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:49]accept exits with 10 [22:36:49]New connection [22:36:49]New thread 3066510692 created [22:36:49]Thread 3066654052 joined [22:36:49]Waiting for new connection... [22:36:49] Sock 10.Parse request [22:36:49]Sock 10.Check first char [22:36:49]Sock 10.First char is OK [22:36:49]request: POST /json_proto HTTP/1.0 [22:36:49]Method: POST [22:36:49]URL: /json_proto [22:36:49]Method is POST - this is cgi request [22:36:49]url: /json_proto [22:36:49]query_string will be loaded in cgi processing [22:36:49]execute_cgi json_proto POST (null) [22:36:49]execute_cgi path=json_proto method=POST [22:36:49]POST find Content-Length [22:36:49]Host: 172.17.46.131:8080 [22:36:49]Content-Length: 801 [22:36:49]Content-Type: application/json [22:36:49] [22:36:49]POST finish read [22:36:49]Found Content-Length = 801 [22:36:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412345", "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" : 12.240, "sum" : 785.81, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 785.81 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:49]execute_script... [22:36: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)412345", "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" : 12.240, "sum" : 785.81, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 785.81 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:49]POST & json_proto [22:36:49]process_json_proto [22:36:49]json parsed OK: [22:36:49]protocol is kg_v1.0 [22:36:49]action value=close_receipt [22:36:49]process_action close_receipt [22:36:49]cmd_close_receipt [22:36:49]MH_GetDate [22:36:49]Write to MH i2c: F0 00 00 02 0F 00 [22:36:49]Write i2c OK [22:36:49]MH_I2C_Read... [22:36:49]Read from MH i2c: F0 [22:36:49]MH_I2C_Read... [22:36:49]Read from MH i2c: F0 09 00 [22:36:49]MH_I2C_Read... [22:36:49]Read from MH i2c: F0 09 00 02 0F 00 03 5D B6 67 7E 41 4F 65 F9 [22:36:49]GetLastDocTimeStamp 1740004041 [22:36:49]current date 1740004611 [22:36:49]FM_GetShiftState [22:36:49]SAM_PROTO_GetShiftState [22:36:49]wFMCommunicate request_size=4 [22:36:49]MH_SAM_APDU [22:36:49]CAPDU: 80 13 01 00 [22:36:49]Write to MH i2c: E2 08 00 03 0F 80 13 01 00 00 00 00 00 8F [22:36:49]Write i2c OK [22:36:49]MH_I2C_Read... [22:36:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:49]Read from MH i2c: E2 [22:36:49]MH_I2C_Read... [22:36:49]Read from MH i2c: E2 0E 00 [22:36:49]MH_I2C_Read... [22:36:49]Read from MH i2c: E2 0E 00 03 0F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 0E [22:36:49]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [22:36:49]wFMCommunicate OK [22:36:49]SAM_PROTO_GetShiftState done [22:36:49]FM_GetShiftState done [22:36:49]opened in 1739929631 [22:36:49]opened+sec_in_day 1740016031 [22:36:49]quantity*price = 78580 [22:36:49]sum+1 = 78582 [22:36:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 785.81 НСП 1% : 6.95 НДС 12% : 83.45 Наличными: 0.00 Безнал.: 785.81 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 256 19.02.2025 22:36 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187190 ФПД: 267187373057249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T223651&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187190&fm=267187373057249&tin=02508201610067®Number=0000000000091857&sum=78581 [22:36:50]StoreToDocumentArchive [22:36:50]shift 647 fd 187190 [22:36:50]save to /storage/0647/doc_00187190 [22:36:50]save last doc name /storage/0647/doc_00187190 to /storage/kkm_last_doc_name [22:36:50]save OK [22:36:50]Clear old archive folders... [22:36:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:36:50]tlvbuf is 01F6C750 [22:36:50]SAM_PROTO_ClearQueue [22:36:50]wFMCommunicate request_size=4 [22:36:50]MH_SAM_APDU [22:36:50]CAPDU: 80 09 00 00 [22:36:50]Write to MH i2c: E2 08 00 10 0F 80 09 00 00 00 00 00 00 91 [22:36:50]Write i2c OK [22:36:50]MH_I2C_Read... [22:36:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:36:50]Read from MH i2c: E2 [22:36:50]MH_I2C_Read... [22:36:50]Read from MH i2c: E2 03 00 [22:36:50]MH_I2C_Read... [22:36:50]Read from MH i2c: E2 03 00 10 0F 00 90 00 93 [22:36:50]RAPDU: 90 00 [22:36:50]wFMCommunicate OK [22:36:50]SAM_PROTO_ClearQueue done [22:36:50]KKMCreateOFDPacket [22:36:50]OFDProtocolAddRootSTLVToBuf [22:36:50]FM_MakeSignedData [22:36:50]FM_MakeSignedData [22:36:50]SAM_PROTO_SignData [22:36:50]wFMCommunicate request_size=4 [22:36:50]MH_SAM_APDU [22:36:50]CAPDU: 80 0D 01 02 [22:36:50]Write to MH i2c: E2 08 00 11 0F 80 0D 01 02 00 00 00 00 99 [22:36:50]Write i2c OK [22:36:50]MH_I2C_Read... [22:36:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:36:50]Read from MH i2c: E2 [22:36:50]MH_I2C_Read... [22:36:50]Read from MH i2c: E2 03 00 [22:36:50]MH_I2C_Read... [22:36:50]Read from MH i2c: E2 03 00 11 0F 00 90 00 94 [22:36:50]RAPDU: 90 00 [22:36:50]wFMCommunicate OK [22:36:50]wFMCommunicate request_size=255 [22:36:50]MH_SAM_APDU [22:36: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 D0 2F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 F5 32 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 32 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 32 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 03 5D B6 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 36 DB 02 00 35 04 06 00 F3 [22:36:50]Write to MH i2c: E2 02 01 12 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 D0 2F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 F5 32 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 32 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 32 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 03 5D B6 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 36 DB 02 00 35 04 06 00 F3 00 00 C8 [22:36:50]Write i2c OK [22:36:50]MH_I2C_Read... [22:36:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:51]Read from MH i2c: E2 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 03 00 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 03 00 12 0F 00 90 00 95 [22:36:51]RAPDU: 90 00 [22:36:51]wFMCommunicate OK [22:36:51]wFMCommunicate request_size=10 [22:36:51]MH_SAM_APDU [22:36:51]CAPDU: 80 0D 02 02 05 01 68 75 A4 E1 [22:36:51]Write to MH i2c: E2 0D 00 13 0F 80 0D 02 02 05 00 01 68 75 A4 E1 00 00 09 [22:36:51]Write i2c OK [22:36:51]MH_I2C_Read... [22:36:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:51]Read from MH i2c: E2 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 03 00 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 03 00 13 0F 00 90 00 96 [22:36:51]RAPDU: 90 00 [22:36:51]wFMCommunicate OK [22:36:51]wFMCommunicate request_size=4 [22:36:51]MH_SAM_APDU [22:36:51]CAPDU: 80 0D 03 02 [22:36:51]Write to MH i2c: E2 08 00 14 0F 80 0D 03 02 00 00 00 00 9E [22:36:51]Write i2c OK [22:36:51]MH_I2C_Read... [22:36:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:36:51]Read from MH i2c: E2 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 0B 00 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 0B 00 14 0F 00 38 21 DD 8A 00 7A 67 D7 90 00 17 [22:36:51]RAPDU: 38 21 DD 8A 00 7A 67 D7 90 00 [22:36:51]wFMCommunicate OK [22:36:51]SAM_PROTO_SignData done [22:36:51]FM_MakeSignedData done [22:36:51]CreateOFDProtocolMessage [22:36:51]wFMCommunicate request_size=4 [22:36:51]MH_SAM_APDU [22:36:51]CAPDU: 80 11 00 00 [22:36:51]Write to MH i2c: E2 08 00 15 0F 80 11 00 00 00 00 00 00 9E [22:36:51]Write i2c OK [22:36:51]MH_I2C_Read... [22:36:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:51]Read from MH i2c: E2 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 17 00 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: E2 17 00 15 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F1 [22:36: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:36:51]wFMCommunicate OK [22:36:51]CreateOFDProtocolMessage done [22:36:51]OFDSenderStorePacket 187190 [22:36:51]StoreOFDPacket docnum=187190 [22:36: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 54 1D 07 01 AA F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D0 2F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 F5 32 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 32 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 32 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 03 5D B6 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 36 DB 02 00 35 04 06 00 F3 01 68 75 A4 E1 38 21 DD 8A 00 7A 67 D7 [22:36:51]CheckFolder [22:36:51]dirname=/storage/ofd_packets [22:36:51]CheckFolder done [22:36:51]ProducePacketName [22:36:51]name=ofd_packets/00187190 [22:36:51]NVStorageSaveData ofd_packets/00187190 [22:36:51]File name is /storage/ofd_packets/00187190 [22:36:51]Write 301 bytes [22:36:51]NVStorageSaveData done [22:36:51]OFDSenderStorePacket done [22:36:51]KKMCreateOFDPacket done [22:36:51]NVStorageSaveData kkm_last_timestamp [22:36:51]File name is /storage/kkm_last_timestamp [22:36:51]Write 4 bytes [22:36:51]NVStorageSaveData done [22:36:51]ExternCall_PrintAddStr [22:36:51]wPrintStart [22:36:51]Write to MH i2c: 01 00 00 16 0F 25 [22:36:51]Write i2c OK [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: 01 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: 01 07 00 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: 01 07 00 16 0F 00 00 00 00 00 FF 0F 3A [22:36:51]RasterBufferAndPrint [22:36:51]line Счет N : (1)412345 [22:36:51]line ИНН: 02508201610067 [22:36:51]line Контрольно-Кассовый Чек [22:36:51]line ПРОДАЖА [22:36:51]line ТРК (МРК, ГНК) : 12 [22:36:51]line Товар: 2710124130 [22:36:51]line Аи-92-К-2 [22:36:51]line 12.240 * 64.20 [22:36:51]line = 785.81 [22:36:51]line НДС 12% НСП 1% [22:36:51]line > о реализуемом товаре [22:36:51]line ИТОГО: 785.81 [22:36:51]line НСП 1% : 6.95 [22:36:51]line НДС 12% : 83.45 [22:36:51]line Наличными: 0.00 [22:36:51]line Безнал.: 785.81 [22:36:51]line Место: АЗС № 92 "Партнер Нефть" [22:36:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:36:51]line СНО: Общий режим [22:36:51]line Чек 256 19.02.2025 22:36 [22:36:51]line Смена: 647 ФФД: 1.0 [22:36:51]line ЗНМ: 0300000118 [22:36:51]line РНМ: 0000000000091857 [22:36:51]line Версия ККМ: 001 [22:36:51]line Платежная система: O! деньги [22:36:51]line ФМ: 0000000000871826 [22:36:51]line ФД: 187190 [22:36:51]line ФПД: 267187373057249 [22:36:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T223651&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187190&fm=267187373057249&tin=02508201610067®Number=0000000000091857&sum=78581 [22:36:51]written 0, free lines is 4095 [22:36:51]OFD Sender: Processing packet 187190 [packets to send 49, broken 48] [22:36:51]ProducePacketName [22:36:51]name=ofd_packets/00187190 [22:36:51]OFD Sender: To server: pG, [22:36:51]CommunicateWithHost lk.salyk.kg:30040 [22:36:51]ConnectInit lk.salyk.kg [22:36:51]Write to MH i2c: 01 00 00 40 0F 4F [22:36:51]Write i2c OK [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: 01 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: 01 07 00 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: 01 07 00 40 0F 00 00 00 00 00 02 0D 65 [22:36:51]RasterBufferAndPrint [22:36:51]line [22:36:51]line [22:36:51]line [22:36:51]line [22:36:51]line [22:36:51]written 0, free lines is 3336 [22:36:51]MH_Cut [22:36:51]Write to MH i2c: D1 01 00 47 0F 01 28 [22:36:51]Write i2c OK [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: D1 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: D1 01 00 [22:36:51]MH_I2C_Read... [22:36:51]Read from MH i2c: D1 01 00 47 0F 00 27 [22:36:51]Write to MH i2c: 01 00 00 48 0F 57 [22:36:51]Write i2c OK [22:36:51]MH_I2C_Read... [22:36:51]Connected sock=9 [22:36: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 54 1D 07 01 AA F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D0 2F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 F5 32 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 32 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 20 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 32 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 03 5D B6 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 36 DB 02 00 35 04 06 00 F3 01 68 75 A4 E1 38 21 DD 8A 00 7A 67 D7 [22:36: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 A8 36 47 00 CA 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 36 DB 02 00 F4 03 04 00 55 03 B6 67 B6 04 01 00 00 49 C8 E7 2B EF 47 35 71 [22:36:52]CommunicateWithHost err = 0 [22:36:52]CheckOFDResponse [22:36:52]1017 (14) - 77093643461234 [22:36:52]1041 (16) - 0000000000871826 [22:36:52]1040 (4) - 187190 [22:36:52]1012 (4) - 19.02.2025 16:14 [22:36:52]1206 (1) - 0 [22:36:52]OFD Sender: Remove packet 187190 [22:36:52]ProducePacketName [22:36:52]name=ofd_packets/00187190 [22:36:52]NVStorageDeleteData [22:36:52]*** Cut start [22:36:52]*** Partial cut [22:36:52]*** CUTSNS_PIN = 1 [22:36:52]*** CUTSNS_PIN = 0 [22:36:52]OFD Sender: No OFD packet to send [22:36:52]*** Brake cut motor [22:36:53]Read from MH i2c: 01 [22:36:53]MH_I2C_Read... [22:36:53]*** Stop cut motor [22:36:53]*** Cut end [22:36:53]Read from MH i2c: 01 07 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: 01 07 00 48 0F 00 00 00 00 00 FF 0F 6C [22:36:53]process_action close_receipt done [22:36:53]requested_data is exist [22:36:53]produce_requested_data [22:36:53]requested_item fm.sn is exist - process it [22:36:53]wFMCommunicate request_size=4 [22:36:53]MH_SAM_APDU [22:36:53]CAPDU: 80 11 00 00 [22:36:53]Write to MH i2c: E2 08 00 49 0F 80 11 00 00 00 00 00 00 D2 [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:53]Read from MH i2c: E2 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 17 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 17 00 49 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 25 [22: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 [22:36:53]wFMCommunicate OK [22:36:53]requested_item fd.num is exist - process it [22:36:53]SAM_PROTO_GetFieldsCounters [22:36:53]wFMCommunicate request_size=4 [22:36:53]MH_SAM_APDU [22:36:53]CAPDU: 80 13 00 00 [22:36:53]Write to MH i2c: E2 08 00 4A 0F 80 13 00 00 00 00 00 00 D5 [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:36:53]Read from MH i2c: E2 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 62 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 62 00 4A 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 36 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 9A [22:36: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 36 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:36:53]wFMCommunicate OK [22:36:53]SAM_PROTO_GetFieldsCounters done [22:36:53]requested_item shift.num is exist - process it [22:36:53]requested_item shift.opened is exist - process it [22:36:53]req_shift_opened [22:36:53]FM_GetShiftState [22:36:53]SAM_PROTO_GetShiftState [22:36:53]wFMCommunicate request_size=4 [22:36:53]MH_SAM_APDU [22:36:53]CAPDU: 80 13 01 00 [22:36:53]Write to MH i2c: E2 08 00 4B 0F 80 13 01 00 00 00 00 00 D7 [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:53]Read from MH i2c: E2 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 0E 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 0E 00 4B 0F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 56 [22:36:53]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [22:36:53]wFMCommunicate OK [22:36:53]SAM_PROTO_GetShiftState done [22:36:53]FM_GetShiftState done [22:36:53]req_shift_opened done [22:36:53]requested_item shift.open_date is exist - process it [22:36:53]req_shift_open_date [22:36:53]req_shift_open_date done [22:36:53]produce_requested_data done [22:36:53]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187190,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [22:36:53]process_action_free close_receipt [22:36:53]json_value_free [22:36:53]json_value_free done [22:36:53]process_json_proto returns [22:36:53]Send response to host [22:36:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187190,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [22:36:53]free response buf [22:36:53]execute_script done [22:36:53]execute_script returns [22:36:53]free content buf [22:36:53]Sock 10.Close socket [22:36:53]Sock 10.Thread stoped [22:36:57]OFD Sender: No OFD packet to send [22:37:02]OFD Sender: No OFD packet to send [22:37:07]OFD Sender: No OFD packet to send [22:37:12]OFD Sender: No OFD packet to send [22:37:17]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:32]OFD Sender: No OFD packet to send [22:37:37]OFD Sender: No OFD packet to send [22:37:42]OFD Sender: No OFD packet to send [22:37:47]OFD Sender: No OFD packet to send [22:37:52]OFD Sender: No OFD packet to send [22:37:57]OFD Sender: No OFD packet to send [22:38:02]OFD Sender: No OFD packet to send [22:38:07]OFD Sender: No OFD packet to send [22:38:12]OFD Sender: No OFD packet to send [22:38:17]OFD Sender: No OFD packet to send [22:38:22]OFD Sender: No OFD packet to send [22:38:27]OFD Sender: No OFD packet to send [22:38:32]OFD Sender: No OFD packet to send [22:38:37]OFD Sender: No OFD packet to send [22:38:42]OFD Sender: No OFD packet to send [22:38:47]OFD Sender: No OFD packet to send [22:38:52]OFD Sender: No OFD packet to send [22:38:57]OFD Sender: No OFD packet to send [22:39:02]OFD Sender: No OFD packet to send [22:39:07]OFD Sender: No OFD packet to send [22:39:12]OFD Sender: No OFD packet to send [22:39:17]OFD Sender: No OFD packet to send [22:39:22]OFD Sender: No OFD packet to send [22:39:27]OFD Sender: No OFD packet to send [22:39:32]OFD Sender: No OFD packet to send [22:39:37]OFD Sender: No OFD packet to send [22:39:42]OFD Sender: No OFD packet to send [22:39:47]OFD Sender: No OFD packet to send [22:39:52]OFD Sender: No OFD packet to send [22:39:57]OFD Sender: No OFD packet to send [22:40:02]OFD Sender: No OFD packet to send [22:40:07]OFD Sender: No OFD packet to send [22:40:12]OFD Sender: No OFD packet to send [22:40:17]OFD Sender: No OFD packet to send [22:40:22]OFD Sender: No OFD packet to send [22:40:27]OFD Sender: No OFD packet to send [22:40:32]OFD Sender: No OFD packet to send [22:40:37]OFD Sender: No OFD packet to send [22:40:42]OFD Sender: No OFD packet to send [22:40:47]OFD Sender: No OFD packet to send [22:40:52]OFD Sender: No OFD packet to send [22:40:57]OFD Sender: No OFD packet to send [22:41:02]OFD Sender: No OFD packet to send [22:41:07]OFD Sender: No OFD packet to send [22:41:12]OFD Sender: No OFD packet to send [22:41:13]recv_with_timeout no data received [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:33]recv_with_timeout no data received [22:41:37]OFD Sender: No OFD packet to send [22:41:42]OFD Sender: No OFD packet to send [22:41:47]OFD Sender: No OFD packet to send [22:41:52]OFD Sender: No OFD packet to send [22:41:57]OFD Sender: No OFD packet to send [22:42:02]OFD Sender: No OFD packet to send [22:42:07]OFD Sender: No OFD packet to send [22:42:12]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:07]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:33]OFD Sender: No OFD packet to send [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:46]accept exits with 7 [22:45:46]New connection [22:45:46]New thread 3066654052 created [22:45:46]Thread 3066510692 joined [22:45:46]Waiting for new connection... [22:45:46] Sock 7.Parse request [22:45:46]Sock 7.Check first char [22:45:46]Sock 7.First char is OK [22:45:46]request: POST /json_proto HTTP/1.0 [22:45:46]Method: POST [22:45:46]URL: /json_proto [22:45:46]Method is POST - this is cgi request [22:45:46]url: /json_proto [22:45:46]query_string will be loaded in cgi processing [22:45:46]execute_cgi json_proto POST (null) [22:45:46]execute_cgi path=json_proto method=POST [22:45:46]POST find Content-Length [22:45:46]Host: 172.17.46.131:8080 [22:45:46]Content-Length: 682 [22:45:46]Content-Type: application/json [22:45:46] [22:45:46]POST finish read [22:45:46]Found Content-Length = 682 [22:45:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412346", "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" ] } } [22:45:46]execute_script... [22:45: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)412346", "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" ] } } [22:45:46]POST & json_proto [22:45:46]process_json_proto [22:45:46]json parsed OK: [22:45:46]protocol is kg_v1.0 [22:45:46]action value=close_receipt [22:45:46]process_action close_receipt [22:45:46]cmd_close_receipt [22:45:46]MH_GetDate [22:45:46]Write to MH i2c: F0 00 00 4C 0F 4A [22:45:46]Write i2c OK [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: F0 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: F0 09 00 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: F0 09 00 4C 0F 00 1C 5F B6 67 7E 41 4F 65 5E [22:45:46]GetLastDocTimeStamp 1740004611 [22:45:46]current date 1740005148 [22:45:46]FM_GetShiftState [22:45:46]SAM_PROTO_GetShiftState [22:45:46]wFMCommunicate request_size=4 [22:45:46]MH_SAM_APDU [22:45:46]CAPDU: 80 13 01 00 [22:45:46]Write to MH i2c: E2 08 00 4D 0F 80 13 01 00 00 00 00 00 D9 [22:45:46]Write i2c OK [22:45:46]MH_I2C_Read... [22:45:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:46]Read from MH i2c: E2 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 0E 00 [22:45:46]MH_I2C_Read... [22:45:46]Read from MH i2c: E2 0E 00 4D 0F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 58 [22:45:46]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [22:45:46]wFMCommunicate OK [22:45:46]SAM_PROTO_GetShiftState done [22:45:46]FM_GetShiftState done [22:45:46]opened in 1739929631 [22:45:46]opened+sec_in_day 1740016031 [22:45:46]quantity*price = 100012 [22:45:46]sum+1 = 100014 [22:45: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 СНО: Общий режим Чек 257 19.02.2025 22:45 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187191 ФПД: 15051318851795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T224548&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187191&fm=15051318851795&tin=02508201610067®Number=0000000000091857&sum=100000 [22:45:47]StoreToDocumentArchive [22:45:47]shift 647 fd 187191 [22:45:47]save to /storage/0647/doc_00187191 [22:45:47]save last doc name /storage/0647/doc_00187191 to /storage/kkm_last_doc_name [22:45:47]save OK [22:45:47]Clear old archive folders... [22:45:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:45:47]tlvbuf is 01FCBF10 [22:45:47]SAM_PROTO_ClearQueue [22:45:47]wFMCommunicate request_size=4 [22:45:47]MH_SAM_APDU [22:45:47]CAPDU: 80 09 00 00 [22:45:47]Write to MH i2c: E2 08 00 5A 0F 80 09 00 00 00 00 00 00 DB [22:45:47]Write i2c OK [22:45:47]MH_I2C_Read... [22:45:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:45:47]Read from MH i2c: E2 [22:45:47]MH_I2C_Read... [22:45:47]Read from MH i2c: E2 03 00 [22:45:47]MH_I2C_Read... [22:45:47]Read from MH i2c: E2 03 00 5A 0F 00 90 00 DD [22:45:47]RAPDU: 90 00 [22:45:47]wFMCommunicate OK [22:45:47]SAM_PROTO_ClearQueue done [22:45:47]KKMCreateOFDPacket [22:45:47]OFDProtocolAddRootSTLVToBuf [22:45:47]FM_MakeSignedData [22:45:47]FM_MakeSignedData [22:45:47]SAM_PROTO_SignData [22:45:47]wFMCommunicate request_size=4 [22:45:47]MH_SAM_APDU [22:45:47]CAPDU: 80 0D 01 02 [22:45:47]Write to MH i2c: E2 08 00 5B 0F 80 0D 01 02 00 00 00 00 E3 [22:45:47]Write i2c OK [22:45:47]MH_I2C_Read... [22:45:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:45:48]Read from MH i2c: E2 [22:45:48]MH_I2C_Read... [22:45:48]Read from MH i2c: E2 03 00 [22:45:48]MH_I2C_Read... [22:45:48]Read from MH i2c: E2 03 00 5B 0F 00 90 00 DE [22:45:48]RAPDU: 90 00 [22:45:48]wFMCommunicate OK [22:45:48]wFMCommunicate request_size=255 [22:45:48]MH_SAM_APDU [22:45: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 01 01 00 00 F4 03 04 00 1C 5F B6 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 DB 02 00 35 04 06 00 0D [22:45:48]Write to MH i2c: E2 02 01 5C 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 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 01 01 00 00 F4 03 04 00 1C 5F B6 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 DB 02 00 35 04 06 00 0D 00 00 98 [22:45:48]Write i2c OK [22:45:48]MH_I2C_Read... [22:45:48]OFD Sender: No OFD packet to send [22:45:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:48]Read from MH i2c: E2 [22:45:48]MH_I2C_Read... [22:45:48]Read from MH i2c: E2 03 00 [22:45:48]MH_I2C_Read... [22:45:48]Read from MH i2c: E2 03 00 5C 0F 00 90 00 DF [22:45:48]RAPDU: 90 00 [22:45:48]wFMCommunicate OK [22:45:48]wFMCommunicate request_size=10 [22:45:48]MH_SAM_APDU [22:45:48]CAPDU: 80 0D 02 02 05 B0 68 83 78 D3 [22:45:48]Write to MH i2c: E2 0D 00 5D 0F 80 0D 02 02 05 00 B0 68 83 78 D3 00 00 D6 [22:45:48]Write i2c OK [22:45:48]MH_I2C_Read... [22:45:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:45:48]Read from MH i2c: E2 [22:45:48]MH_I2C_Read... [22:45:48]Read from MH i2c: E2 03 00 [22:45:48]MH_I2C_Read... [22:45:48]Read from MH i2c: E2 03 00 5D 0F 00 90 00 E0 [22:45:48]RAPDU: 90 00 [22:45:48]wFMCommunicate OK [22:45:48]wFMCommunicate request_size=4 [22:45:48]MH_SAM_APDU [22:45:48]CAPDU: 80 0D 03 02 [22:45:48]Write to MH i2c: E2 08 00 5E 0F 80 0D 03 02 00 00 00 00 E8 [22:45:48]Write i2c OK [22:45:48]MH_I2C_Read... [22:45:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:45:48]Read from MH i2c: E2 [22:45:48]MH_I2C_Read... [22:45:48]Read from MH i2c: E2 0B 00 [22:45:48]MH_I2C_Read... [22:45:48]Read from MH i2c: E2 0B 00 5E 0F 00 3B DA A7 01 1C E0 74 DB 90 00 F1 [22:45:48]RAPDU: 3B DA A7 01 1C E0 74 DB 90 00 [22:45:48]wFMCommunicate OK [22:45:48]SAM_PROTO_SignData done [22:45:48]FM_MakeSignedData done [22:45:48]CreateOFDProtocolMessage [22:45:48]wFMCommunicate request_size=4 [22:45:48]MH_SAM_APDU [22:45:48]CAPDU: 80 11 00 00 [22:45:48]Write to MH i2c: E2 08 00 5F 0F 80 11 00 00 00 00 00 00 E8 [22:45:48]Write i2c OK [22:45:48]MH_I2C_Read... [22:45:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:48]Read from MH i2c: E2 [22:45:48]MH_I2C_Read... [22:45:48]Read from MH i2c: E2 17 00 [22:45:48]MH_I2C_Read... [22:45:48]Read from MH i2c: E2 17 00 5F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3B [22:45:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:45:48]wFMCommunicate OK [22:45:48]CreateOFDProtocolMessage done [22:45:48]OFDSenderStorePacket 187191 [22:45:48]StoreOFDPacket docnum=187191 [22:45: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 60 B9 07 01 0D 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 01 01 00 00 F4 03 04 00 1C 5F B6 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 DB 02 00 35 04 06 00 0D B0 68 83 78 D3 3B DA A7 01 1C E0 74 DB [22:45:48]CheckFolder [22:45:48]dirname=/storage/ofd_packets [22:45:48]CheckFolder done [22:45:48]ProducePacketName [22:45:48]name=ofd_packets/00187191 [22:45:48]NVStorageSaveData ofd_packets/00187191 [22:45:48]File name is /storage/ofd_packets/00187191 [22:45:48]Write 301 bytes [22:45:48]NVStorageSaveData done [22:45:48]OFDSenderStorePacket done [22:45:48]KKMCreateOFDPacket done [22:45:48]NVStorageSaveData kkm_last_timestamp [22:45:48]File name is /storage/kkm_last_timestamp [22:45:48]Write 4 bytes [22:45:48]NVStorageSaveData done [22:45:48]ExternCall_PrintAddStr [22:45:48]wPrintStart [22:45:48]Write to MH i2c: 01 00 00 60 0F 6F [22:45:48]Write i2c OK [22:45:48]MH_I2C_Read... [22:45:48]Read from MH i2c: 01 [22:45:48]MH_I2C_Read... [22:45:48]Read from MH i2c: 01 07 00 [22:45:48]MH_I2C_Read... [22:45:48]Read from MH i2c: 01 07 00 60 0F 00 00 00 00 00 FF 0F 84 [22:45:48]RasterBufferAndPrint [22:45:48]line Счет N : (1)412346 [22:45:48]line ИНН: 02508201610067 [22:45:48]line Контрольно-Кассовый Чек [22:45:48]line ПРОДАЖА [22:45:48]line ТРК (МРК, ГНК) : 13 [22:45:48]line Товар: 2710124500 [22:45:48]line Аи-95-К-5 [22:45:48]line 13.910 * 71.90 [22:45:48]line = 1000.13 [22:45:48]line НДС 12% НСП 1% [22:45:48]line > о реализуемом товаре [22:45:48]line ОКРУГЛЕНИЕ: -0.13 [22:45:48]line ИТОГО: 1000.00 [22:45:48]line Внесено: 1000.00 [22:45:48]line СДАЧА: 0.00 [22:45:48]line НСП 1% : 8.85 [22:45:48]line НДС 12% : 106.21 [22:45:48]line Наличными: 1000.00 [22:45:48]line Безнал.: 0.00 [22:45:48]line Место: АЗС № 92 "Партнер Нефть" [22:45:48]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:45:48]line СНО: Общий режим [22:45:48]line Чек 257 19.02.2025 22:45 [22:45:48]line Смена: 647 ФФД: 1.0 [22:45:48]line ЗНМ: 0300000118 [22:45:48]line РНМ: 0000000000091857 [22:45:48]line Версия ККМ: 001 [22:45:48]line ФМ: 0000000000871826 [22:45:48]line ФД: 187191 [22:45:48]line ФПД: 15051318851795 [22:45:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T224548&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187191&fm=15051318851795&tin=02508201610067®Number=0000000000091857&sum=100000 [22:45:48]OFD Sender: Processing packet 187191 [packets to send 49, broken 48] [22:45:48]ProducePacketName [22:45:48]name=ofd_packets/00187191 [22:45:48]OFD Sender: To server: pG, [22:45:48]CommunicateWithHost lk.salyk.kg:30040 [22:45:48]ConnectInit lk.salyk.kg [22:45:48]written 0, free lines is 4095 [22:45:48]Connected sock=10 [22:45: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 60 B9 07 01 0D 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 01 01 00 00 F4 03 04 00 1C 5F B6 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 DB 02 00 35 04 06 00 0D B0 68 83 78 D3 3B DA A7 01 1C E0 74 DB [22:45: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 6E 5C 47 00 94 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 37 DB 02 00 F4 03 04 00 6E 05 B6 67 B6 04 01 00 00 83 12 A4 67 81 5E E3 70 [22:45:49]CommunicateWithHost err = 0 [22:45:49]CheckOFDResponse [22:45:49]1017 (14) - 77093643461234 [22:45:49]1041 (16) - 0000000000871826 [22:45:49]1040 (4) - 187191 [22:45:49]1012 (4) - 19.02.2025 16:23 [22:45:49]1206 (1) - 0 [22:45:49]OFD Sender: Remove packet 187191 [22:45:49]ProducePacketName [22:45:49]name=ofd_packets/00187191 [22:45:49]NVStorageDeleteData [22:45:49]Write to MH i2c: 01 00 00 8B 0F 9A [22:45:49]Write i2c OK [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: 01 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: 01 07 00 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: 01 07 00 8B 0F 00 00 00 00 00 F6 0C A3 [22:45:49]RasterBufferAndPrint [22:45:49]line [22:45:49]line [22:45:49]line [22:45:49]line [22:45:49]line [22:45:49]written 0, free lines is 3324 [22:45:49]MH_Cut [22:45:49]Write to MH i2c: D1 01 00 92 0F 01 73 [22:45:49]Write i2c OK [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: D1 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: D1 01 00 [22:45:49]MH_I2C_Read... [22:45:49]Read from MH i2c: D1 01 00 92 0F 00 72 [22:45:49]Write to MH i2c: 01 00 00 93 0F A2 [22:45:49]Write i2c OK [22:45:49]MH_I2C_Read... [22:45:49]OFD Sender: No OFD packet to send [22:45:49]*** Cut start [22:45:49]*** Partial cut [22:45:49]*** CUTSNS_PIN = 1 [22:45:50]*** CUTSNS_PIN = 0 [22:45:50]*** Brake cut motor [22:45:50]Read from MH i2c: 01 [22:45:50]MH_I2C_Read... [22:45:50]*** Stop cut motor [22:45:50]*** Cut end [22:45:50]Read from MH i2c: 01 07 00 [22:45:50]MH_I2C_Read... [22:45:50]Read from MH i2c: 01 07 00 93 0F 00 00 00 00 00 FF 0F B7 [22:45:50]process_action close_receipt done [22:45:50]requested_data is exist [22:45:50]produce_requested_data [22:45:50]requested_item fm.sn is exist - process it [22:45:50]wFMCommunicate request_size=4 [22:45:50]MH_SAM_APDU [22:45:50]CAPDU: 80 11 00 00 [22:45:50]Write to MH i2c: E2 08 00 94 0F 80 11 00 00 00 00 00 00 1D [22:45:50]Write i2c OK [22:45:50]MH_I2C_Read... [22:45:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:45:50]Read from MH i2c: E2 [22:45:50]MH_I2C_Read... [22:45:50]Read from MH i2c: E2 17 00 [22:45:50]MH_I2C_Read... [22:45:50]Read from MH i2c: E2 17 00 94 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 70 [22:45:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:45:50]wFMCommunicate OK [22:45:50]requested_item fd.num is exist - process it [22:45:50]SAM_PROTO_GetFieldsCounters [22:45:50]wFMCommunicate request_size=4 [22:45:50]MH_SAM_APDU [22:45:50]CAPDU: 80 13 00 00 [22:45:50]Write to MH i2c: E2 08 00 95 0F 80 13 00 00 00 00 00 00 20 [22:45:50]Write i2c OK [22:45:50]MH_I2C_Read... [22:45:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:45:50]Read from MH i2c: E2 [22:45:50]MH_I2C_Read... [22:45:50]Read from MH i2c: E2 62 00 [22:45:50]MH_I2C_Read... [22:45:50]Read from MH i2c: E2 62 00 95 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 37 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 E9 [22:45: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 37 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:45:50]wFMCommunicate OK [22:45:50]SAM_PROTO_GetFieldsCounters done [22:45:50]requested_item shift.num is exist - process it [22:45:50]requested_item shift.opened is exist - process it [22:45:50]req_shift_opened [22:45:50]FM_GetShiftState [22:45:50]SAM_PROTO_GetShiftState [22:45:50]wFMCommunicate request_size=4 [22:45:50]MH_SAM_APDU [22:45:50]CAPDU: 80 13 01 00 [22:45:50]Write to MH i2c: E2 08 00 96 0F 80 13 01 00 00 00 00 00 22 [22:45:50]Write i2c OK [22:45:50]MH_I2C_Read... [22:45:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:45:50]Read from MH i2c: E2 [22:45:50]MH_I2C_Read... [22:45:50]Read from MH i2c: E2 0E 00 [22:45:50]MH_I2C_Read... [22:45:50]Read from MH i2c: E2 0E 00 96 0F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A1 [22:45:50]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [22:45:50]wFMCommunicate OK [22:45:50]SAM_PROTO_GetShiftState done [22:45:50]FM_GetShiftState done [22:45:50]req_shift_opened done [22:45:50]requested_item shift.open_date is exist - process it [22:45:50]req_shift_open_date [22:45:50]req_shift_open_date done [22:45:50]produce_requested_data done [22:45:50]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187191,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [22:45:50]process_action_free close_receipt [22:45:50]json_value_free [22:45:50]json_value_free done [22:45:50]process_json_proto returns [22:45:50]Send response to host [22:45:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187191,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [22:45:50]free response buf [22:45:50]execute_script done [22:45:50]execute_script returns [22:45:50]free content buf [22:45:50]Sock 7.Close socket [22:45:50]Sock 7.Thread stoped [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50: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]accept exits with 9 [22:51:45]New connection [22:51:45]New thread 3066510692 created [22:51:45]Thread 3066654052 joined [22:51:45]Waiting for new connection... [22:51:45] Sock 9.Parse request [22:51:45]Sock 9.Check first char [22:51:45]Sock 9.First char is OK [22:51:45]request: POST /json_proto HTTP/1.0 [22:51:45]Method: POST [22:51:45]URL: /json_proto [22:51:45]Method is POST - this is cgi request [22:51:45]url: /json_proto [22:51:45]query_string will be loaded in cgi processing [22:51:45]execute_cgi json_proto POST (null) [22:51:45]execute_cgi path=json_proto method=POST [22:51:45]POST find Content-Length [22:51:45]Host: 172.17.46.131:8080 [22:51:45]Content-Length: 792 [22:51:45]Content-Type: application/json [22:51:45] [22:51:45]POST finish read [22:51:45]Found Content-Length = 792 [22:51:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412347", "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\u000A52191", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:51:45]execute_script... [22: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)412347", "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\u000A52191", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:51:45]POST & json_proto [22:51:45]process_json_proto [22:51:45]json parsed OK: [22:51:45]protocol is kg_v1.0 [22:51:45]action value=close_receipt [22:51:45]process_action close_receipt [22:51:45]cmd_close_receipt [22:51:45]MH_GetDate [22:51:45]Write to MH i2c: F0 00 00 97 0F 95 [22:51:45]Write i2c OK [22:51:45]MH_I2C_Read... [22:51:45]Read from MH i2c: F0 [22:51:45]MH_I2C_Read... [22:51:45]Read from MH i2c: F0 09 00 [22:51:45]MH_I2C_Read... [22:51:45]Read from MH i2c: F0 09 00 97 0F 00 82 60 B6 67 7E 41 4F 65 10 [22:51:45]GetLastDocTimeStamp 1740005148 [22:51:45]current date 1740005506 [22:51:45]FM_GetShiftState [22:51:45]SAM_PROTO_GetShiftState [22:51:45]wFMCommunicate request_size=4 [22:51:45]MH_SAM_APDU [22:51:45]CAPDU: 80 13 01 00 [22:51:45]Write to MH i2c: E2 08 00 98 0F 80 13 01 00 00 00 00 00 24 [22:51:45]Write i2c OK [22:51:45]MH_I2C_Read... [22:51:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:45]Read from MH i2c: E2 [22:51:45]MH_I2C_Read... [22:51:45]Read from MH i2c: E2 0E 00 [22:51:45]MH_I2C_Read... [22:51:45]Read from MH i2c: E2 0E 00 98 0F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 A3 [22:51:45]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [22:51:45]wFMCommunicate OK [22:51:45]SAM_PROTO_GetShiftState done [22:51:45]FM_GetShiftState done [22:51:45]opened in 1739929631 [22:51:45]opened+sec_in_day 1740016031 [22:51:45]quantity*price = 0 [22:51:45]sum+1 = 1 [22:51:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 258 19.02.2025 22:51 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 52191 ФМ: 0000000000871826 ФД: 187192 ФПД: 221838257049832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T225146&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187192&fm=221838257049832&tin=02508201610067®Number=0000000000091857&sum=0 [22:51:46]StoreToDocumentArchive [22:51:46]shift 647 fd 187192 [22:51:46]save to /storage/0647/doc_00187192 [22:51:46]save last doc name /storage/0647/doc_00187192 to /storage/kkm_last_doc_name [22:51:46]save OK [22:51:46]Clear old archive folders... [22:51:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:51:46]tlvbuf is 01F9DA90 [22:51:46]SAM_PROTO_ClearQueue [22:51:46]wFMCommunicate request_size=4 [22:51:46]MH_SAM_APDU [22:51:46]CAPDU: 80 09 00 00 [22:51:46]Write to MH i2c: E2 08 00 A5 0F 80 09 00 00 00 00 00 00 26 [22:51:46]Write i2c OK [22:51:46]MH_I2C_Read... [22:51:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:51:46]Read from MH i2c: E2 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 03 00 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 03 00 A5 0F 00 90 00 28 [22:51:46]RAPDU: 90 00 [22:51:46]wFMCommunicate OK [22:51:46]SAM_PROTO_ClearQueue done [22:51:46]KKMCreateOFDPacket [22:51:46]OFDProtocolAddRootSTLVToBuf [22:51:46]FM_MakeSignedData [22:51:46]FM_MakeSignedData [22:51:46]SAM_PROTO_SignData [22:51:46]wFMCommunicate request_size=4 [22:51:46]MH_SAM_APDU [22:51:46]CAPDU: 80 0D 01 02 [22:51:46]Write to MH i2c: E2 08 00 A6 0F 80 0D 01 02 00 00 00 00 2E [22:51:46]Write i2c OK [22:51:46]MH_I2C_Read... [22:51:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:51:46]Read from MH i2c: E2 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 03 00 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 03 00 A6 0F 00 90 00 29 [22:51:46]RAPDU: 90 00 [22:51:46]wFMCommunicate OK [22:51:46]wFMCommunicate request_size=255 [22:51:46]MH_SAM_APDU [22:51: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 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 02 01 00 00 F4 03 04 00 82 60 B6 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 DB 02 00 35 04 06 00 C9 [22:51:46]Write to MH i2c: E2 02 01 A7 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 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 02 01 00 00 F4 03 04 00 82 60 B6 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 DB 02 00 35 04 06 00 C9 00 00 11 [22:51:46]Write i2c OK [22:51:46]MH_I2C_Read... [22:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:46]Read from MH i2c: E2 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 03 00 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 03 00 A7 0F 00 90 00 2A [22:51:46]RAPDU: 90 00 [22:51:46]wFMCommunicate OK [22:51:46]wFMCommunicate request_size=10 [22:51:46]MH_SAM_APDU [22:51:46]CAPDU: 80 0D 02 02 05 C2 BE 82 50 E8 [22:51:46]Write to MH i2c: E2 0D 00 A8 0F 80 0D 02 02 05 00 C2 BE 82 50 E8 00 00 75 [22:51:46]Write i2c OK [22:51:46]MH_I2C_Read... [22:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:46]Read from MH i2c: E2 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 03 00 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 03 00 A8 0F 00 90 00 2B [22:51:46]RAPDU: 90 00 [22:51:46]wFMCommunicate OK [22:51:46]wFMCommunicate request_size=4 [22:51:46]MH_SAM_APDU [22:51:46]CAPDU: 80 0D 03 02 [22:51:46]Write to MH i2c: E2 08 00 A9 0F 80 0D 03 02 00 00 00 00 33 [22:51:46]Write i2c OK [22:51:46]MH_I2C_Read... [22:51:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:51:46]Read from MH i2c: E2 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 0B 00 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 0B 00 A9 0F 00 A3 2B BC 68 06 EF 10 81 90 00 AC [22:51:46]RAPDU: A3 2B BC 68 06 EF 10 81 90 00 [22:51:46]wFMCommunicate OK [22:51:46]SAM_PROTO_SignData done [22:51:46]FM_MakeSignedData done [22:51:46]CreateOFDProtocolMessage [22:51:46]wFMCommunicate request_size=4 [22:51:46]MH_SAM_APDU [22:51:46]CAPDU: 80 11 00 00 [22:51:46]Write to MH i2c: E2 08 00 AA 0F 80 11 00 00 00 00 00 00 33 [22:51:46]Write i2c OK [22:51:46]MH_I2C_Read... [22:51:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:46]Read from MH i2c: E2 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 17 00 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: E2 17 00 AA 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 86 [22: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 [22:51:46]wFMCommunicate OK [22:51:46]CreateOFDProtocolMessage done [22:51:46]OFDSenderStorePacket 187192 [22:51:46]StoreOFDPacket docnum=187192 [22: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 0F 01 00 00 B0 DB 07 01 3B 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 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 02 01 00 00 F4 03 04 00 82 60 B6 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 DB 02 00 35 04 06 00 C9 C2 BE 82 50 E8 A3 2B BC 68 06 EF 10 81 [22:51:46]CheckFolder [22:51:46]dirname=/storage/ofd_packets [22:51:46]CheckFolder done [22:51:46]ProducePacketName [22:51:46]name=ofd_packets/00187192 [22:51:46]NVStorageSaveData ofd_packets/00187192 [22:51:46]File name is /storage/ofd_packets/00187192 [22:51:46]Write 301 bytes [22:51:46]NVStorageSaveData done [22:51:46]OFDSenderStorePacket done [22:51:46]KKMCreateOFDPacket done [22:51:46]NVStorageSaveData kkm_last_timestamp [22:51:46]File name is /storage/kkm_last_timestamp [22:51:46]Write 4 bytes [22:51:46]NVStorageSaveData done [22:51:46]ExternCall_PrintAddStr [22:51:46]wPrintStart [22:51:46]Write to MH i2c: 01 00 00 AB 0F BA [22:51:46]Write i2c OK [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: 01 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: 01 07 00 [22:51:46]MH_I2C_Read... [22:51:46]Read from MH i2c: 01 07 00 AB 0F 00 00 00 00 00 FF 0F CF [22:51:46]RasterBufferAndPrint [22:51:46]line Счет N : (1)412347 [22:51:46]line ИНН: 02508201610067 [22:51:46]line Контрольно-Кассовый Чек [22:51:46]line ПРОДАЖА [22:51:46]line ТРК (МРК, ГНК) : 32 [22:51:46]line Товар: 2710124130 [22:51:46]line Аи-92-К-2 [22:51:46]line 20.000 * 0.00 [22:51:46]line = 0.00 [22:51:46]line НДС 12% НСП 1% [22:51:46]line > о реализуемом товаре [22:51:46]line ИТОГО: 0.00 [22:51:46]line НСП 1% : 0.00 [22:51:46]line НДС 12% : 0.00 [22:51:46]line Наличными: 0.00 [22:51:46]line Безнал.: 0.00 [22:51:46]line Место: АЗС № 92 "Партнер Нефть" [22:51:46]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:51:46]line СНО: Общий режим [22:51:46]line Чек 258 19.02.2025 22:51 [22:51:46]line Смена: 647 ФФД: 1.0 [22:51:46]line ЗНМ: 0300000118 [22:51:46]line РНМ: 0000000000091857 [22:51:46]line Версия ККМ: 001 [22:51:46]line Талоны: Топливная Карта [22:51:46]line 52191 [22:51:46]line ФМ: 0000000000871826 [22:51:46]line ФД: 187192 [22:51:46]line ФПД: 221838257049832 [22:51:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T225146&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187192&fm=221838257049832&tin=02508201610067®Number=0000000000091857&sum=0 [22:51:46]written 0, free lines is 4095 [22:51:46]OFD Sender: Processing packet 187192 [packets to send 49, broken 48] [22:51:46]ProducePacketName [22:51:46]name=ofd_packets/00187192 [22:51:47]OFD Sender: To server: pG, [22:51:47]CommunicateWithHost lk.salyk.kg:30040 [22:51:47]ConnectInit lk.salyk.kg [22:51:47]Write to MH i2c: 01 00 00 D5 0F E4 [22:51:47]Write i2c OK [22:51:47]MH_I2C_Read... [22:51:47]Read from MH i2c: 01 [22:51:47]MH_I2C_Read... [22:51:47]Read from MH i2c: 01 07 00 [22:51:47]MH_I2C_Read... [22:51:47]Read from MH i2c: 01 07 00 D5 0F 00 00 00 00 00 FA 0C F1 [22:51:47]RasterBufferAndPrint [22:51:47]line [22:51:47]line [22:51:47]line [22:51:47]line [22:51:47]line [22:51:47]written 0, free lines is 3328 [22:51:47]MH_Cut [22:51:47]Write to MH i2c: D1 01 00 DC 0F 01 BD [22:51:47]Write i2c OK [22:51:47]MH_I2C_Read... [22:51:47]Read from MH i2c: D1 [22:51:47]MH_I2C_Read... [22:51:47]Read from MH i2c: D1 01 00 [22:51:47]MH_I2C_Read... [22:51:47]Read from MH i2c: D1 01 00 DC 0F 00 BC [22:51:47]Write to MH i2c: 01 00 00 DD 0F EC [22:51:47]Write i2c OK [22:51:47]MH_I2C_Read... [22:51:47]Connected sock=10 [22: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 0F 01 00 00 B0 DB 07 01 3B 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 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 02 01 00 00 F4 03 04 00 82 60 B6 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 DB 02 00 35 04 06 00 C9 C2 BE 82 50 E8 A3 2B BC 68 06 EF 10 81 [22: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 26 99 47 00 57 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 DB 02 00 F4 03 04 00 D5 06 B6 67 B6 04 01 00 00 2F F3 26 39 30 D2 42 59 [22:51:47]CommunicateWithHost err = 0 [22:51:47]CheckOFDResponse [22:51:47]1017 (14) - 77093643461234 [22:51:47]1041 (16) - 0000000000871826 [22:51:47]1040 (4) - 187192 [22:51:47]1012 (4) - 19.02.2025 16:29 [22:51:47]1206 (1) - 0 [22:51:47]OFD Sender: Remove packet 187192 [22:51:47]ProducePacketName [22:51:47]name=ofd_packets/00187192 [22:51:47]NVStorageDeleteData [22:51:47]*** Cut start [22:51:47]*** Partial cut [22:51:47]*** CUTSNS_PIN = 1 [22:51:47]*** CUTSNS_PIN = 0 [22:51:47]OFD Sender: No OFD packet to send [22:51:48]*** Brake cut motor [22:51:48]Read from MH i2c: 01 [22:51:48]MH_I2C_Read... [22:51:48]*** Stop cut motor [22:51:48]*** Cut end [22:51:48]Read from MH i2c: 01 07 00 [22:51:48]MH_I2C_Read... [22:51:48]Read from MH i2c: 01 07 00 DD 0F 00 00 00 00 00 FF 0F 01 [22:51:48]process_action close_receipt done [22:51:48]requested_data is exist [22:51:48]produce_requested_data [22:51:48]requested_item fm.sn is exist - process it [22:51:48]wFMCommunicate request_size=4 [22:51:48]MH_SAM_APDU [22:51:48]CAPDU: 80 11 00 00 [22:51:48]Write to MH i2c: E2 08 00 DE 0F 80 11 00 00 00 00 00 00 67 [22:51:48]Write i2c OK [22:51:48]MH_I2C_Read... [22:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:48]Read from MH i2c: E2 [22:51:48]MH_I2C_Read... [22:51:48]Read from MH i2c: E2 17 00 [22:51:48]MH_I2C_Read... [22:51:48]Read from MH i2c: E2 17 00 DE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BA [22:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:51:48]wFMCommunicate OK [22:51:48]requested_item fd.num is exist - process it [22:51:48]SAM_PROTO_GetFieldsCounters [22:51:48]wFMCommunicate request_size=4 [22:51:48]MH_SAM_APDU [22:51:48]CAPDU: 80 13 00 00 [22:51:48]Write to MH i2c: E2 08 00 DF 0F 80 13 00 00 00 00 00 00 6A [22:51:48]Write i2c OK [22:51:48]MH_I2C_Read... [22:51:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:51:48]Read from MH i2c: E2 [22:51:48]MH_I2C_Read... [22:51:48]Read from MH i2c: E2 62 00 [22:51:48]MH_I2C_Read... [22:51:48]Read from MH i2c: E2 62 00 DF 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 38 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 37 [22:51: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 38 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:51:48]wFMCommunicate OK [22:51:48]SAM_PROTO_GetFieldsCounters done [22:51:48]requested_item shift.num is exist - process it [22:51:48]requested_item shift.opened is exist - process it [22:51:48]req_shift_opened [22:51:48]FM_GetShiftState [22:51:48]SAM_PROTO_GetShiftState [22:51:48]wFMCommunicate request_size=4 [22:51:48]MH_SAM_APDU [22:51:48]CAPDU: 80 13 01 00 [22:51:48]Write to MH i2c: E2 08 00 E0 0F 80 13 01 00 00 00 00 00 6C [22:51:48]Write i2c OK [22:51:48]MH_I2C_Read... [22:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:48]Read from MH i2c: E2 [22:51:48]MH_I2C_Read... [22:51:48]Read from MH i2c: E2 0E 00 [22:51:48]MH_I2C_Read... [22:51:48]Read from MH i2c: E2 0E 00 E0 0F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 EB [22:51:48]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [22:51:48]wFMCommunicate OK [22:51:48]SAM_PROTO_GetShiftState done [22:51:48]FM_GetShiftState done [22:51:48]req_shift_opened done [22:51:48]requested_item shift.open_date is exist - process it [22:51:48]req_shift_open_date [22:51:48]req_shift_open_date done [22:51:48]produce_requested_data done [22:51:48]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187192,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [22:51:48]process_action_free close_receipt [22:51:48]json_value_free [22:51:48]json_value_free done [22:51:48]process_json_proto returns [22:51:48]Send response to host [22:51:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187192,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [22:51:48]free response buf [22:51:48]execute_script done [22:51:48]execute_script returns [22:51:48]free content buf [22:51:48]Sock 9.Close socket [22:51:48]Sock 9.Thread stoped [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:15]int [22:54:15]Write to MH i2c: 01 00 00 E1 0F F0 [22:54:15]*** FLAG_PRN_KEY set [22:54:15]Write i2c OK [22:54:15]MH_I2C_Read... [22:54:15]Read from MH i2c: 01 [22:54:15]MH_I2C_Read... [22:54:15]Read from MH i2c: 01 07 00 [22:54:15]MH_I2C_Read... [22:54:15]Read from MH i2c: 01 07 00 E1 0F 00 08 00 00 00 FF 0F 0D [22:54:15]state=0 [22:54:15]Key pressed [22:54:15]Feed [22:54:15]Write to MH i2c: D8 00 00 E2 0F C8 [22:54:15]Write i2c OK [22:54:15]MH_I2C_Read... [22:54:15]Read from MH i2c: D8 [22:54:15]MH_I2C_Read... [22:54:15]Read from MH i2c: D8 01 00 [22:54:15]MH_I2C_Read... [22:54:16]Read from MH i2c: D8 01 00 E2 0F 00 C9 [22:54:16]int [22:54:16]Write to MH i2c: 01 00 00 E3 0F F2 [22:54:16]Write i2c OK [22:54:16]MH_I2C_Read... [22:54:16]Read from MH i2c: 01 [22:54:16]MH_I2C_Read... [22:54:16]Read from MH i2c: 01 07 00 [22:54:16]MH_I2C_Read... [22:54:16]Read from MH i2c: 01 07 00 E3 0F 00 48 00 00 00 3C 00 7D [22:54:16]state=2 [22:54:16]Key pressed [22:54:16]int [22:54:16]Write to MH i2c: 01 00 00 E4 0F F3 [22:54:16]*** FLAG_PRN_KEY reset [22:54:16]Write i2c OK [22:54:16]MH_I2C_Read... [22:54:16]Read from MH i2c: 01 [22:54:16]MH_I2C_Read... [22:54:16]Read from MH i2c: 01 07 00 [22:54:16]MH_I2C_Read... [22:54:16]Read from MH i2c: 01 07 00 E4 0F 00 00 00 00 00 F6 0F FF [22:54:16]state=2 [22:54:16]Stop feed [22:54:16]int [22:54:16]Write to MH i2c: 01 00 00 E5 0F F4 [22:54:16]*** FLAG_PRN_KEY set [22:54:16]Write i2c OK [22:54:16]MH_I2C_Read... [22:54:16]Read from MH i2c: 01 [22:54:16]MH_I2C_Read... [22:54:16]Read from MH i2c: 01 07 00 [22:54:16]MH_I2C_Read... [22:54:16]Read from MH i2c: 01 07 00 E5 0F 00 08 00 00 00 FF 0F 11 [22:54:16]state=0 [22:54:16]Key pressed [22:54:16]Feed [22:54:16]Write to MH i2c: D8 00 00 E6 0F CC [22:54:16]Write i2c OK [22:54:16]MH_I2C_Read... [22:54:16]Read from MH i2c: D8 [22:54:16]MH_I2C_Read... [22:54:16]Read from MH i2c: D8 01 00 [22:54:16]MH_I2C_Read... [22:54:16]Read from MH i2c: D8 01 00 E6 0F 00 CD [22:54:16]int [22:54:16]Write to MH i2c: 01 00 00 E7 0F F6 [22:54:16]Write i2c OK [22:54:16]MH_I2C_Read... [22:54:16]Read from MH i2c: 01 [22:54:16]MH_I2C_Read... [22:54:16]Read from MH i2c: 01 07 00 [22:54:16]MH_I2C_Read... [22:54:16]Read from MH i2c: 01 07 00 E7 0F 00 48 00 00 00 3C 00 81 [22:54:16]state=2 [22:54:16]Key pressed [22:54:17]int [22:54:17]Write to MH i2c: 01 00 00 E8 0F F7 [22:54:17]*** FLAG_PRN_KEY reset [22:54:17]Write i2c OK [22:54:17]MH_I2C_Read... [22:54:17]Read from MH i2c: 01 [22:54:17]MH_I2C_Read... [22:54:17]Read from MH i2c: 01 07 00 [22:54:17]MH_I2C_Read... [22:54:17]Read from MH i2c: 01 07 00 E8 0F 00 00 00 00 00 F6 0F 03 [22:54:17]state=2 [22:54:17]Stop feed [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:56:03]OFD Sender: No OFD packet to send [22:56:08]OFD Sender: No OFD packet to send [22:56:13]OFD Sender: No OFD packet to send [22:56:18]OFD Sender: No OFD packet to send [22:56:23]OFD Sender: No OFD packet to send [22:56:28]OFD Sender: No OFD packet to send [22:56:33]OFD Sender: No OFD packet to send [22:56:38]OFD Sender: No OFD packet to send [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:03]OFD Sender: No OFD packet to send [22:57:08]OFD Sender: No OFD packet to send [22:57:13]OFD Sender: No OFD packet to send [22:57:18]OFD Sender: No OFD packet to send [22:57:23]OFD Sender: No OFD packet to send [22:57:28]OFD Sender: No OFD packet to send [22:57:33]OFD Sender: No OFD packet to send [22:57:38]OFD Sender: No OFD packet to send [22:57:43]OFD Sender: No OFD packet to send [22:57:48]OFD Sender: No OFD packet to send [22:57:53]OFD Sender: No OFD packet to send [22:57:58]OFD Sender: No OFD packet to send [22:58:03]OFD Sender: No OFD packet to send [22:58:08]OFD Sender: No OFD packet to send [22:58:13]OFD Sender: No OFD packet to send [22:58:18]OFD Sender: No OFD packet to send [22:58:23]OFD Sender: No OFD packet to send [22:58:28]OFD Sender: No OFD packet to send [22:58:33]OFD Sender: No OFD packet to send [22:58:38]OFD Sender: No OFD packet to send [22:58:43]OFD Sender: No OFD packet to send [22:58:48]OFD Sender: No OFD packet to send [22:58:53]OFD Sender: No OFD packet to send [22:58:58]OFD Sender: No OFD packet to send [22:59:03]OFD Sender: No OFD packet to send [22:59:08]OFD Sender: No OFD packet to send [22:59:13]OFD Sender: No OFD packet to send [22:59:18]OFD Sender: No OFD packet to send [22:59:23]OFD Sender: No OFD packet to send [22:59:28]OFD Sender: No OFD packet to send [22:59:33]OFD Sender: No OFD packet to send [22:59:38]OFD Sender: No OFD packet to send [22:59:43]OFD Sender: No OFD packet to send [22:59:48]OFD Sender: No OFD packet to send [22:59:53]OFD Sender: No OFD packet to send [22:59:58]OFD Sender: No OFD packet to send [23:00:03]OFD Sender: No OFD packet to send [23:00:08]OFD Sender: No OFD packet to send [23:00:13]OFD Sender: No OFD packet to send [23:00:18]OFD Sender: No OFD packet to send [23:00:23]OFD Sender: No OFD packet to send [23:00:28]OFD Sender: No OFD packet to send [23:00:33]OFD Sender: No OFD packet to send [23:00:38]OFD Sender: No OFD packet to send [23:00:43]OFD Sender: No OFD packet to send [23:00:48]OFD Sender: No OFD packet to send [23:00:53]OFD Sender: No OFD packet to send [23:00:58]OFD Sender: No OFD packet to send [23:01:03]OFD Sender: No OFD packet to send [23:01:08]OFD Sender: No OFD packet to send [23:01:13]OFD Sender: No OFD packet to send [23:01:18]OFD Sender: No OFD packet to send [23:01:23]OFD Sender: No OFD packet to send [23:01:28]OFD Sender: No OFD packet to send [23:01:33]OFD Sender: No OFD packet to send [23:01:38]OFD Sender: No OFD packet to send [23:01:43]OFD Sender: No OFD packet to send [23:01:48]OFD Sender: No OFD packet to send [23:01:53]OFD Sender: No OFD packet to send [23:01:58]OFD Sender: No OFD packet to send [23:02:03]OFD Sender: No OFD packet to send [23:02:08]OFD Sender: No OFD packet to send [23:02:13]OFD Sender: No OFD packet to send [23:02:18]OFD Sender: No OFD packet to send [23:02:23]OFD Sender: No OFD packet to send [23:02:28]OFD Sender: No OFD packet to send [23:02:33]OFD Sender: No OFD packet to send [23:02:38]OFD Sender: No OFD packet to send [23:02:43]OFD Sender: No OFD packet to send [23:02:48]OFD Sender: No OFD packet to send [23:02:53]OFD Sender: No OFD packet to send [23:02:58]OFD Sender: No OFD packet to send [23:03:03]OFD Sender: No OFD packet to send [23:03:08]OFD Sender: No OFD packet to send [23:03:13]OFD Sender: No OFD packet to send [23:03:18]OFD Sender: No OFD packet to send [23:03:23]OFD Sender: No OFD packet to send [23:03:28]OFD Sender: No OFD packet to send [23:03:33]OFD Sender: No OFD packet to send [23:03:38]OFD Sender: No OFD packet to send [23:03:43]OFD Sender: No OFD packet to send [23:03:48]OFD Sender: No OFD packet to send [23:03:53]OFD Sender: No OFD packet to send [23:03:58]OFD Sender: No OFD packet to send [23:04:03]OFD Sender: No OFD packet to send [23:04:08]OFD Sender: No OFD packet to send [23:04:13]OFD Sender: No OFD packet to send [23:04:18]OFD Sender: No OFD packet to send [23:04:23]OFD Sender: No OFD packet to send [23:04:28]OFD Sender: No OFD packet to send [23:04:33]OFD Sender: No OFD packet to send [23:04:38]OFD Sender: No OFD packet to send [23:04:43]OFD Sender: No OFD packet to send [23:04:48]OFD Sender: No OFD packet to send [23:04:53]OFD Sender: No OFD packet to send [23:04:58]OFD Sender: No OFD packet to send [23:05:03]OFD Sender: No OFD packet to send [23:05:08]OFD Sender: No OFD packet to send [23:05:13]OFD Sender: No OFD packet to send [23:05:18]OFD Sender: No OFD packet to send [23:05:23]OFD Sender: No OFD packet to send [23:05:28]OFD Sender: No OFD packet to send [23:05:33]OFD Sender: No OFD packet to send [23:05:38]OFD Sender: No OFD packet to send [23:05:43]OFD Sender: No OFD packet to send [23:05:48]OFD Sender: No OFD packet to send [23:05:53]OFD Sender: No OFD packet to send [23:05:58]OFD Sender: No OFD packet to send [23:06:03]OFD Sender: No OFD packet to send [23:06:08]OFD Sender: No OFD packet to send [23:06:13]OFD Sender: No OFD packet to send [23:06:18]OFD Sender: No OFD packet to send [23:06:23]OFD Sender: No OFD packet to send [23:06:28]OFD Sender: No OFD packet to send [23:06:33]OFD Sender: No OFD packet to send [23:06:38]OFD Sender: No OFD packet to send [23:06:43]OFD Sender: No OFD packet to send [23:06:48]OFD Sender: No OFD packet to send [23:06:53]OFD Sender: No OFD packet to send [23:06:58]OFD Sender: No OFD packet to send [23:07:03]OFD Sender: No OFD packet to send [23:07:08]OFD Sender: No OFD packet to send [23:07:13]OFD Sender: No OFD packet to send [23:07:18]OFD Sender: No OFD packet to send [23:07:23]OFD Sender: No OFD packet to send [23:07:28]OFD Sender: No OFD packet to send [23:07:33]OFD Sender: No OFD packet to send [23:07:38]OFD Sender: No OFD packet to send [23:07:43]OFD Sender: No OFD packet to send [23:07:48]OFD Sender: No OFD packet to send [23:07:53]OFD Sender: No OFD packet to send [23:07:58]OFD Sender: No OFD packet to send [23:08:03]OFD Sender: No OFD packet to send [23:08:08]OFD Sender: No OFD packet to send [23:08:13]OFD Sender: No OFD packet to send [23:08:18]OFD Sender: No OFD packet to send [23:08:23]OFD Sender: No OFD packet to send [23:08:28]OFD Sender: No OFD packet to send [23:08:33]OFD Sender: No OFD packet to send [23:08:38]OFD Sender: No OFD packet to send [23:08:43]OFD Sender: No OFD packet to send [23:08:48]OFD Sender: No OFD packet to send [23:08:53]OFD Sender: No OFD packet to send [23:08:58]OFD Sender: No OFD packet to send [23:09:03]OFD Sender: No OFD packet to send [23:09:08]OFD Sender: No OFD packet to send [23:09:13]OFD Sender: No OFD packet to send [23:09:18]OFD Sender: No OFD packet to send [23:09:23]OFD Sender: No OFD packet to send [23:09:28]OFD Sender: No OFD packet to send [23:09:33]OFD Sender: No OFD packet to send [23:09:38]OFD Sender: No OFD packet to send [23:09:43]OFD Sender: No OFD packet to send [23:09:48]OFD Sender: No OFD packet to send [23:09:53]OFD Sender: No OFD packet to send [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:59]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:09]OFD Sender: No OFD packet to send [23:12:14]OFD Sender: No OFD packet to send [23:12:19]OFD Sender: No OFD packet to send [23:12:24]OFD Sender: No OFD packet to send [23:12:29]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:06]accept exits with 7 [23:13:06]New connection [23:13:06]New thread 3066654052 created [23:13:06]Thread 3066510692 joined [23:13:06]Waiting for new connection... [23:13:06] Sock 7.Parse request [23:13:06]Sock 7.Check first char [23:13:06]Sock 7.First char is OK [23:13:06]request: POST /json_proto HTTP/1.0 [23:13:06]Method: POST [23:13:06]URL: /json_proto [23:13:06]Method is POST - this is cgi request [23:13:06]url: /json_proto [23:13:06]query_string will be loaded in cgi processing [23:13:06]execute_cgi json_proto POST (null) [23:13:06]execute_cgi path=json_proto method=POST [23:13:06]POST find Content-Length [23:13:06]Host: 172.17.46.131:8080 [23:13:06]Content-Length: 682 [23:13:06]Content-Type: application/json [23:13:06] [23:13:06]POST finish read [23:13:06]Found Content-Length = 682 [23:13:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412348", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:06]execute_script... [23:13:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412348", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:06]POST & json_proto [23:13:06]process_json_proto [23:13:06]json parsed OK: [23:13:06]protocol is kg_v1.0 [23:13:06]action value=close_receipt [23:13:06]process_action close_receipt [23:13:06]cmd_close_receipt [23:13:06]MH_GetDate [23:13:06]Write to MH i2c: F0 00 00 E9 0F E7 [23:13:06]Write i2c OK [23:13:06]MH_I2C_Read... [23:13:06]Read from MH i2c: F0 [23:13:06]MH_I2C_Read... [23:13:06]Read from MH i2c: F0 09 00 [23:13:06]MH_I2C_Read... [23:13:06]Read from MH i2c: F0 09 00 E9 0F 00 84 65 B6 67 7E 41 4F 65 69 [23:13:06]GetLastDocTimeStamp 1740005506 [23:13:06]current date 1740006788 [23:13:06]FM_GetShiftState [23:13:06]SAM_PROTO_GetShiftState [23:13:06]wFMCommunicate request_size=4 [23:13:06]MH_SAM_APDU [23:13:06]CAPDU: 80 13 01 00 [23:13:06]Write to MH i2c: E2 08 00 EA 0F 80 13 01 00 00 00 00 00 76 [23:13:06]Write i2c OK [23:13:06]MH_I2C_Read... [23:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:06]Read from MH i2c: E2 [23:13:06]MH_I2C_Read... [23:13:06]Read from MH i2c: E2 0E 00 [23:13:06]MH_I2C_Read... [23:13:06]Read from MH i2c: E2 0E 00 EA 0F 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 F5 [23:13:06]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [23:13:06]wFMCommunicate OK [23:13:06]SAM_PROTO_GetShiftState done [23:13:06]FM_GetShiftState done [23:13:06]opened in 1739929631 [23:13:06]opened+sec_in_day 1740016031 [23:13:06]quantity*price = 150035 [23:13:06]sum+1 = 150036 [23:13:06]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 СНО: Общий режим Чек 259 19.02.2025 23:13 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187193 ФПД: 214212302799240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T231308&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187193&fm=214212302799240&tin=02508201610067®Number=0000000000091857&sum=150000 [23:13:08]StoreToDocumentArchive [23:13:08]shift 647 fd 187193 [23:13:08]save to /storage/0647/doc_00187193 [23:13:08]save last doc name /storage/0647/doc_00187193 to /storage/kkm_last_doc_name [23:13:08]save OK [23:13:08]Clear old archive folders... [23:13:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:13:08]tlvbuf is B6E780E0 [23:13:08]SAM_PROTO_ClearQueue [23:13:08]wFMCommunicate request_size=4 [23:13:08]MH_SAM_APDU [23:13:08]CAPDU: 80 09 00 00 [23:13:08]Write to MH i2c: E2 08 00 F7 0F 80 09 00 00 00 00 00 00 78 [23:13:08]Write i2c OK [23:13:08]MH_I2C_Read... [23:13:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:13:08]Read from MH i2c: E2 [23:13:08]MH_I2C_Read... [23:13:08]Read from MH i2c: E2 03 00 [23:13:08]MH_I2C_Read... [23:13:08]Read from MH i2c: E2 03 00 F7 0F 00 90 00 7A [23:13:08]RAPDU: 90 00 [23:13:08]wFMCommunicate OK [23:13:08]SAM_PROTO_ClearQueue done [23:13:08]KKMCreateOFDPacket [23:13:08]OFDProtocolAddRootSTLVToBuf [23:13:08]FM_MakeSignedData [23:13:08]FM_MakeSignedData [23:13:08]SAM_PROTO_SignData [23:13:08]wFMCommunicate request_size=4 [23:13:08]MH_SAM_APDU [23:13:08]CAPDU: 80 0D 01 02 [23:13:08]Write to MH i2c: E2 08 00 F8 0F 80 0D 01 02 00 00 00 00 80 [23:13:08]Write i2c OK [23:13:08]MH_I2C_Read... [23:13:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:13:08]Read from MH i2c: E2 [23:13:08]MH_I2C_Read... [23:13:08]Read from MH i2c: E2 03 00 [23:13:08]MH_I2C_Read... [23:13:08]Read from MH i2c: E2 03 00 F8 0F 00 90 00 7B [23:13:08]RAPDU: 90 00 [23:13:08]wFMCommunicate OK [23:13:08]wFMCommunicate request_size=255 [23:13:08]MH_SAM_APDU [23:13:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 03 01 00 00 F4 03 04 00 84 65 B6 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 39 DB 02 00 35 04 06 00 C2 [23:13:08]Write to MH i2c: E2 02 01 F9 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 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 03 01 00 00 F4 03 04 00 84 65 B6 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 39 DB 02 00 35 04 06 00 C2 00 00 4E [23:13:08]Write i2c OK [23:13:08]MH_I2C_Read... [23:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:08]Read from MH i2c: E2 [23:13:08]MH_I2C_Read... [23:13:08]Read from MH i2c: E2 03 00 [23:13:08]MH_I2C_Read... [23:13:08]Read from MH i2c: E2 03 00 F9 0F 00 90 00 7C [23:13:08]RAPDU: 90 00 [23:13:08]wFMCommunicate OK [23:13:08]wFMCommunicate request_size=10 [23:13:08]MH_SAM_APDU [23:13:08]CAPDU: 80 0D 02 02 05 D3 30 37 01 88 [23:13:08]Write to MH i2c: E2 0D 00 FA 0F 80 0D 02 02 05 00 D3 30 37 01 88 00 00 50 [23:13:08]Write i2c OK [23:13:08]MH_I2C_Read... [23:13:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:08]Read from MH i2c: E2 [23:13:08]MH_I2C_Read... [23:13:08]Read from MH i2c: E2 03 00 [23:13:08]MH_I2C_Read... [23:13:08]Read from MH i2c: E2 03 00 FA 0F 00 90 00 7D [23:13:08]RAPDU: 90 00 [23:13:08]wFMCommunicate OK [23:13:08]wFMCommunicate request_size=4 [23:13:08]MH_SAM_APDU [23:13:08]CAPDU: 80 0D 03 02 [23:13:08]Write to MH i2c: E2 08 00 FB 0F 80 0D 03 02 00 00 00 00 85 [23:13:08]Write i2c OK [23:13:08]MH_I2C_Read... [23:13:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:13:08]Read from MH i2c: E2 [23:13:08]MH_I2C_Read... [23:13:08]Read from MH i2c: E2 0B 00 [23:13:08]MH_I2C_Read... [23:13:08]Read from MH i2c: E2 0B 00 FB 0F 00 BF 38 36 9B CD 3E CC B3 90 00 D8 [23:13:08]RAPDU: BF 38 36 9B CD 3E CC B3 90 00 [23:13:08]wFMCommunicate OK [23:13:08]SAM_PROTO_SignData done [23:13:08]FM_MakeSignedData done [23:13:08]CreateOFDProtocolMessage [23:13:08]wFMCommunicate request_size=4 [23:13:08]MH_SAM_APDU [23:13:08]CAPDU: 80 11 00 00 [23:13:08]Write to MH i2c: E2 08 00 FC 0F 80 11 00 00 00 00 00 00 85 [23:13:08]Write i2c OK [23:13:08]MH_I2C_Read... [23:13:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:08]Read from MH i2c: E2 [23:13:08]MH_I2C_Read... [23:13:08]Read from MH i2c: E2 17 00 [23:13:08]MH_I2C_Read... [23:13:08]Read from MH i2c: E2 17 00 FC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D8 [23:13:08]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:08]wFMCommunicate OK [23:13:08]CreateOFDProtocolMessage done [23:13:08]OFDSenderStorePacket 187193 [23:13:08]StoreOFDPacket docnum=187193 [23:13: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 32 18 07 01 DE 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 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 03 01 00 00 F4 03 04 00 84 65 B6 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 39 DB 02 00 35 04 06 00 C2 D3 30 37 01 88 BF 38 36 9B CD 3E CC B3 [23:13:08]CheckFolder [23:13:08]dirname=/storage/ofd_packets [23:13:08]CheckFolder done [23:13:08]ProducePacketName [23:13:08]name=ofd_packets/00187193 [23:13:08]NVStorageSaveData ofd_packets/00187193 [23:13:08]File name is /storage/ofd_packets/00187193 [23:13:08]Write 301 bytes [23:13:08]NVStorageSaveData done [23:13:08]OFDSenderStorePacket done [23:13:08]KKMCreateOFDPacket done [23:13:08]NVStorageSaveData kkm_last_timestamp [23:13:08]File name is /storage/kkm_last_timestamp [23:13:08]Write 4 bytes [23:13:08]NVStorageSaveData done [23:13:08]ExternCall_PrintAddStr [23:13:08]wPrintStart [23:13:08]Write to MH i2c: 01 00 00 FD 0F 0C [23:13:08]Write i2c OK [23:13:08]MH_I2C_Read... [23:13:08]Read from MH i2c: 01 [23:13:08]MH_I2C_Read... [23:13:08]Read from MH i2c: 01 07 00 [23:13:08]MH_I2C_Read... [23:13:08]Read from MH i2c: 01 07 00 FD 0F 00 00 00 00 00 FF 0F 21 [23:13:08]RasterBufferAndPrint [23:13:08]line Счет N : (1)412348 [23:13:08]line ИНН: 02508201610067 [23:13:08]line Контрольно-Кассовый Чек [23:13:08]line ПРОДАЖА [23:13:08]line ТРК (МРК, ГНК) : 32 [23:13:08]line Товар: 2710124130 [23:13:08]line Аи-92-К-2 [23:13:08]line 23.370 * 64.20 [23:13:08]line = 1500.35 [23:13:08]line НДС 12% НСП 1% [23:13:08]line > о реализуемом товаре [23:13:08]line ОКРУГЛЕНИЕ: -0.35 [23:13:08]line ИТОГО: 1500.00 [23:13:08]line Внесено: 1500.00 [23:13:08]line СДАЧА: 0.00 [23:13:08]line НСП 1% : 13.28 [23:13:08]line НДС 12% : 159.33 [23:13:08]line Наличными: 1500.00 [23:13:08]line Безнал.: 0.00 [23:13:08]line Место: АЗС № 92 "Партнер Нефть" [23:13:08]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:13:08]line СНО: Общий режим [23:13:08]line Чек 259 19.02.2025 23:13 [23:13:08]line Смена: 647 ФФД: 1.0 [23:13:08]line ЗНМ: 0300000118 [23:13:08]line РНМ: 0000000000091857 [23:13:08]line Версия ККМ: 001 [23:13:08]line ФМ: 0000000000871826 [23:13:08]line ФД: 187193 [23:13:08]line ФПД: 214212302799240 [23:13:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T231308&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187193&fm=214212302799240&tin=02508201610067®Number=0000000000091857&sum=150000 [23:13:08]OFD Sender: Processing packet 187193 [packets to send 49, broken 48] [23:13:08]ProducePacketName [23:13:08]name=ofd_packets/00187193 [23:13:08]OFD Sender: To server: pG, [23:13:08]CommunicateWithHost lk.salyk.kg:30040 [23:13:08]ConnectInit lk.salyk.kg [23:13:08]written 0, free lines is 4095 [23:13:09]Connected sock=10 [23:13:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 32 18 07 01 DE 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 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 03 01 00 00 F4 03 04 00 84 65 B6 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 39 DB 02 00 35 04 06 00 C2 D3 30 37 01 88 BF 38 36 9B CD 3E CC B3 [23:13: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 F8 C3 47 00 AF 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 39 DB 02 00 F4 03 04 00 D7 0B B6 67 B6 04 01 00 00 82 E3 BF E0 DA 98 29 73 [23:13:09]CommunicateWithHost err = 0 [23:13:09]CheckOFDResponse [23:13:09]1017 (14) - 77093643461234 [23:13:09]1041 (16) - 0000000000871826 [23:13:09]1040 (4) - 187193 [23:13:09]1012 (4) - 19.02.2025 16:50 [23:13:09]1206 (1) - 0 [23:13:09]OFD Sender: Remove packet 187193 [23:13:09]ProducePacketName [23:13:09]name=ofd_packets/00187193 [23:13:09]NVStorageDeleteData [23:13:09]Write to MH i2c: 01 00 00 28 10 38 [23:13:09]Write i2c OK [23:13:09]MH_I2C_Read... [23:13:09]Read from MH i2c: 01 [23:13:09]MH_I2C_Read... [23:13:09]Read from MH i2c: 01 07 00 [23:13:09]MH_I2C_Read... [23:13:09]Read from MH i2c: 01 07 00 28 10 00 00 00 00 00 EF 0C 3A [23:13:09]RasterBufferAndPrint [23:13:09]line [23:13:09]line [23:13:09]line [23:13:09]line [23:13:09]line [23:13:09]written 0, free lines is 3317 [23:13:09]MH_Cut [23:13:09]Write to MH i2c: D1 01 00 2F 10 01 11 [23:13:09]Write i2c OK [23:13:09]MH_I2C_Read... [23:13:09]Read from MH i2c: D1 [23:13:09]MH_I2C_Read... [23:13:09]Read from MH i2c: D1 01 00 [23:13:09]MH_I2C_Read... [23:13:09]Read from MH i2c: D1 01 00 2F 10 00 10 [23:13:09]Write to MH i2c: 01 00 00 30 10 40 [23:13:09]Write i2c OK [23:13:09]MH_I2C_Read... [23:13:09]OFD Sender: No OFD packet to send [23:13:10]*** Cut start [23:13:10]*** Partial cut [23:13:10]*** CUTSNS_PIN = 1 [23:13:10]*** CUTSNS_PIN = 0 [23:13:10]*** Brake cut motor [23:13:10]Read from MH i2c: 01 [23:13:10]MH_I2C_Read... [23:13:10]*** Stop cut motor [23:13:10]*** Cut end [23:13:10]Read from MH i2c: 01 07 00 [23:13:10]MH_I2C_Read... [23:13:10]Read from MH i2c: 01 07 00 30 10 00 00 00 00 00 FF 0F 55 [23:13:10]process_action close_receipt done [23:13:10]requested_data is exist [23:13:10]produce_requested_data [23:13:10]requested_item fm.sn is exist - process it [23:13:10]wFMCommunicate request_size=4 [23:13:10]MH_SAM_APDU [23:13:10]CAPDU: 80 11 00 00 [23:13:10]Write to MH i2c: E2 08 00 31 10 80 11 00 00 00 00 00 00 BB [23:13:10]Write i2c OK [23:13:10]MH_I2C_Read... [23:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:10]Read from MH i2c: E2 [23:13:10]MH_I2C_Read... [23:13:10]Read from MH i2c: E2 17 00 [23:13:10]MH_I2C_Read... [23:13:10]Read from MH i2c: E2 17 00 31 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0E [23:13:10]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:10]wFMCommunicate OK [23:13:10]requested_item fd.num is exist - process it [23:13:10]SAM_PROTO_GetFieldsCounters [23:13:10]wFMCommunicate request_size=4 [23:13:10]MH_SAM_APDU [23:13:10]CAPDU: 80 13 00 00 [23:13:10]Write to MH i2c: E2 08 00 32 10 80 13 00 00 00 00 00 00 BE [23:13:10]Write i2c OK [23:13:10]MH_I2C_Read... [23:13:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:13:11]Read from MH i2c: E2 [23:13:11]MH_I2C_Read... [23:13:11]Read from MH i2c: E2 62 00 [23:13:11]MH_I2C_Read... [23:13:11]Read from MH i2c: E2 62 00 32 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 39 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 8F [23:13:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 39 DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:13:11]wFMCommunicate OK [23:13:11]SAM_PROTO_GetFieldsCounters done [23:13:11]requested_item shift.num is exist - process it [23:13:11]requested_item shift.opened is exist - process it [23:13:11]req_shift_opened [23:13:11]FM_GetShiftState [23:13:11]SAM_PROTO_GetShiftState [23:13:11]wFMCommunicate request_size=4 [23:13:11]MH_SAM_APDU [23:13:11]CAPDU: 80 13 01 00 [23:13:11]Write to MH i2c: E2 08 00 33 10 80 13 01 00 00 00 00 00 C0 [23:13:11]Write i2c OK [23:13:11]MH_I2C_Read... [23:13:11]Read from MH i2c: E2 [23:13:11]MH_I2C_Read... [23:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:11]Read from MH i2c: E2 0E 00 [23:13:11]MH_I2C_Read... [23:13:11]Read from MH i2c: E2 0E 00 33 10 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 3F [23:13:11]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [23:13:11]wFMCommunicate OK [23:13:11]SAM_PROTO_GetShiftState done [23:13:11]FM_GetShiftState done [23:13:11]req_shift_opened done [23:13:11]requested_item shift.open_date is exist - process it [23:13:11]req_shift_open_date [23:13:11]req_shift_open_date done [23:13:11]produce_requested_data done [23:13:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187193,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [23:13:11]process_action_free close_receipt [23:13:11]json_value_free [23:13:11]json_value_free done [23:13:11]process_json_proto returns [23:13:11]Send response to host [23:13:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187193,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [23:13:11]free response buf [23:13:11]execute_script done [23:13:11]execute_script returns [23:13:11]free content buf [23:13:11]Sock 7.Close socket [23:13:11]Sock 7.Thread stoped [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:39]OFD Sender: No OFD packet to send [23:14:44]OFD Sender: No OFD packet to send [23:14:49]OFD Sender: No OFD packet to send [23:14:54]OFD Sender: No OFD packet to send [23:14:59]OFD Sender: No OFD packet to send [23:15:04]OFD Sender: No OFD packet to send [23:15:09]OFD Sender: No OFD packet to send [23:15:14]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:33:59]accept exits with 9 [23:33:59]New connection [23:33:59]New thread 3066510692 created [23:33:59]Thread 3066654052 joined [23:33:59]Waiting for new connection... [23:33:59] Sock 9.Parse request [23:33:59]Sock 9.Check first char [23:33:59]Sock 9.First char is OK [23:33:59]request: POST /json_proto HTTP/1.0 [23:33:59]Method: POST [23:33:59]URL: /json_proto [23:33:59]Method is POST - this is cgi request [23:33:59]url: /json_proto [23:33:59]query_string will be loaded in cgi processing [23:33:59]execute_cgi json_proto POST (null) [23:33:59]execute_cgi path=json_proto method=POST [23:33:59]POST find Content-Length [23:33:59]Host: 172.17.46.131:8080 [23:33:59]Content-Length: 800 [23:33:59]Content-Type: application/json [23:33:59] [23:33:59]POST finish read [23:33:59]Found Content-Length = 800 [23:33:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412349", "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" : 5.460, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 350.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:59]execute_script... [23:33: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)412349", "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" : 5.460, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 350.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:59]POST & json_proto [23:33:59]process_json_proto [23:33:59]json parsed OK: [23:33:59]protocol is kg_v1.0 [23:33:59]action value=close_receipt [23:33:59]process_action close_receipt [23:33:59]cmd_close_receipt [23:33:59]MH_GetDate [23:33:59]Write to MH i2c: F0 00 00 34 10 33 [23:33:59]Write i2c OK [23:33:59]MH_I2C_Read... [23:33:59]Read from MH i2c: F0 [23:33:59]MH_I2C_Read... [23:33:59]Read from MH i2c: F0 09 00 [23:33:59]MH_I2C_Read... [23:33:59]Read from MH i2c: F0 09 00 34 10 00 69 6A B6 67 7E 41 4F 65 9F [23:33:59]GetLastDocTimeStamp 1740006788 [23:33:59]current date 1740008041 [23:33:59]FM_GetShiftState [23:33:59]SAM_PROTO_GetShiftState [23:33:59]wFMCommunicate request_size=4 [23:33:59]MH_SAM_APDU [23:33:59]CAPDU: 80 13 01 00 [23:33:59]Write to MH i2c: E2 08 00 35 10 80 13 01 00 00 00 00 00 C2 [23:33:59]Write i2c OK [23:33:59]MH_I2C_Read... [23:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:59]Read from MH i2c: E2 [23:33:59]MH_I2C_Read... [23:33:59]Read from MH i2c: E2 0E 00 [23:33:59]MH_I2C_Read... [23:33:59]Read from MH i2c: E2 0E 00 35 10 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 41 [23:33:59]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [23:33:59]wFMCommunicate OK [23:33:59]SAM_PROTO_GetShiftState done [23:33:59]FM_GetShiftState done [23:33:59]opened in 1739929631 [23:33:59]opened+sec_in_day 1740016031 [23:33:59]quantity*price = 35053 [23:33:59]sum+1 = 35054 [23:33:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.53 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 0.00 Безнал.: 350.53 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 260 19.02.2025 23:34 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187194 ФПД: 54368566092624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T233401&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187194&fm=54368566092624&tin=02508201610067®Number=0000000000091857&sum=35053 [23:34:01]StoreToDocumentArchive [23:34:01]shift 647 fd 187194 [23:34:01]save to /storage/0647/doc_00187194 [23:34:01]save last doc name /storage/0647/doc_00187194 to /storage/kkm_last_doc_name [23:34:01]save OK [23:34:01]Clear old archive folders... [23:34:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:34:01]tlvbuf is 01FCBF10 [23:34:01]SAM_PROTO_ClearQueue [23:34:01]wFMCommunicate request_size=4 [23:34:01]MH_SAM_APDU [23:34:01]CAPDU: 80 09 00 00 [23:34:01]Write to MH i2c: E2 08 00 42 10 80 09 00 00 00 00 00 00 C4 [23:34:01]Write i2c OK [23:34:01]MH_I2C_Read... [23:34:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:01]Read from MH i2c: E2 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: E2 03 00 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: E2 03 00 42 10 00 90 00 C6 [23:34:01]RAPDU: 90 00 [23:34:01]wFMCommunicate OK [23:34:01]SAM_PROTO_ClearQueue done [23:34:01]KKMCreateOFDPacket [23:34:01]OFDProtocolAddRootSTLVToBuf [23:34:01]FM_MakeSignedData [23:34:01]FM_MakeSignedData [23:34:01]SAM_PROTO_SignData [23:34:01]wFMCommunicate request_size=4 [23:34:01]MH_SAM_APDU [23:34:01]CAPDU: 80 0D 01 02 [23:34:01]Write to MH i2c: E2 08 00 43 10 80 0D 01 02 00 00 00 00 CC [23:34:01]Write i2c OK [23:34:01]MH_I2C_Read... [23:34:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:01]Read from MH i2c: E2 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: E2 03 00 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: E2 03 00 43 10 00 90 00 C7 [23:34:01]RAPDU: 90 00 [23:34:01]wFMCommunicate OK [23:34:01]wFMCommunicate request_size=255 [23:34:01]MH_SAM_APDU [23:34: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 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 ED 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 00 00 00 00 00 00 39 04 06 00 ED 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 69 6A B6 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 3A DB 02 00 35 04 06 00 31 [23:34:01]Write to MH i2c: E2 02 01 44 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 ED 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 00 00 00 00 00 00 39 04 06 00 ED 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 69 6A B6 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 3A DB 02 00 35 04 06 00 31 00 00 62 [23:34:01]Write i2c OK [23:34:01]MH_I2C_Read... [23:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:01]Read from MH i2c: E2 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: E2 03 00 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: E2 03 00 44 10 00 90 00 C8 [23:34:01]RAPDU: 90 00 [23:34:01]wFMCommunicate OK [23:34:01]wFMCommunicate request_size=10 [23:34:01]MH_SAM_APDU [23:34:01]CAPDU: 80 0D 02 02 05 72 AB 11 A3 50 [23:34:01]Write to MH i2c: E2 0D 00 45 10 80 0D 02 02 05 00 72 AB 11 A3 50 00 00 FA [23:34:01]Write i2c OK [23:34:01]MH_I2C_Read... [23:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:01]Read from MH i2c: E2 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: E2 03 00 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: E2 03 00 45 10 00 90 00 C9 [23:34:01]RAPDU: 90 00 [23:34:01]wFMCommunicate OK [23:34:01]wFMCommunicate request_size=4 [23:34:01]MH_SAM_APDU [23:34:01]CAPDU: 80 0D 03 02 [23:34:01]Write to MH i2c: E2 08 00 46 10 80 0D 03 02 00 00 00 00 D1 [23:34:01]Write i2c OK [23:34:01]MH_I2C_Read... [23:34:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:01]Read from MH i2c: E2 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: E2 0B 00 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: E2 0B 00 46 10 00 3E C4 0C AA 1A 19 8E 40 90 00 8B [23:34:01]RAPDU: 3E C4 0C AA 1A 19 8E 40 90 00 [23:34:01]wFMCommunicate OK [23:34:01]SAM_PROTO_SignData done [23:34:01]FM_MakeSignedData done [23:34:01]CreateOFDProtocolMessage [23:34:01]wFMCommunicate request_size=4 [23:34:01]MH_SAM_APDU [23:34:01]CAPDU: 80 11 00 00 [23:34:01]Write to MH i2c: E2 08 00 47 10 80 11 00 00 00 00 00 00 D1 [23:34:01]Write i2c OK [23:34:01]MH_I2C_Read... [23:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:01]Read from MH i2c: E2 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: E2 17 00 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: E2 17 00 47 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 24 [23:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:34:01]wFMCommunicate OK [23:34:01]CreateOFDProtocolMessage done [23:34:01]OFDSenderStorePacket 187194 [23:34:01]StoreOFDPacket docnum=187194 [23:34: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 A6 54 07 01 6A 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 ED 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 00 00 00 00 00 00 39 04 06 00 ED 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 69 6A B6 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 3A DB 02 00 35 04 06 00 31 72 AB 11 A3 50 3E C4 0C AA 1A 19 8E 40 [23:34:01]CheckFolder [23:34:01]dirname=/storage/ofd_packets [23:34:01]CheckFolder done [23:34:01]ProducePacketName [23:34:01]name=ofd_packets/00187194 [23:34:01]NVStorageSaveData ofd_packets/00187194 [23:34:01]File name is /storage/ofd_packets/00187194 [23:34:01]Write 301 bytes [23:34:01]NVStorageSaveData done [23:34:01]OFDSenderStorePacket done [23:34:01]KKMCreateOFDPacket done [23:34:01]NVStorageSaveData kkm_last_timestamp [23:34:01]File name is /storage/kkm_last_timestamp [23:34:01]Write 4 bytes [23:34:01]NVStorageSaveData done [23:34:01]ExternCall_PrintAddStr [23:34:01]wPrintStart [23:34:01]Write to MH i2c: 01 00 00 48 10 58 [23:34:01]Write i2c OK [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: 01 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: 01 07 00 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: 01 07 00 48 10 00 00 00 00 00 FF 0F 6D [23:34:01]RasterBufferAndPrint [23:34:01]line Счет N : (1)412349 [23:34:01]line ИНН: 02508201610067 [23:34:01]line Контрольно-Кассовый Чек [23:34:01]line ПРОДАЖА [23:34:01]line ТРК (МРК, ГНК) : 42 [23:34:01]line Товар: 2710124130 [23:34:01]line Аи-92-К-2 [23:34:01]line 5.460 * 64.20 [23:34:01]line = 350.53 [23:34:01]line НДС 12% НСП 1% [23:34:01]line > о реализуемом товаре [23:34:01]line ИТОГО: 350.53 [23:34:01]line НСП 1% : 3.10 [23:34:01]line НДС 12% : 37.22 [23:34:01]line Наличными: 0.00 [23:34:01]line Безнал.: 350.53 [23:34:01]line Место: АЗС № 92 "Партнер Нефть" [23:34:01]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:34:01]line СНО: Общий режим [23:34:01]line Чек 260 19.02.2025 23:34 [23:34:01]line Смена: 647 ФФД: 1.0 [23:34:01]line ЗНМ: 0300000118 [23:34:01]line РНМ: 0000000000091857 [23:34:01]line Версия ККМ: 001 [23:34:01]line Платежная система: O! деньги [23:34:01]line ФМ: 0000000000871826 [23:34:01]line ФД: 187194 [23:34:01]line ФПД: 54368566092624 [23:34:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T233401&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187194&fm=54368566092624&tin=02508201610067®Number=0000000000091857&sum=35053 [23:34:01]OFD Sender: Processing packet 187194 [packets to send 49, broken 48] [23:34:01]ProducePacketName [23:34:01]name=ofd_packets/00187194 [23:34:01]OFD Sender: To server: pG, [23:34:01]CommunicateWithHost lk.salyk.kg:30040 [23:34:01]ConnectInit lk.salyk.kg [23:34:01]written 0, free lines is 4095 [23:34:02]Connected sock=10 [23:34: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 A6 54 07 01 6A 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 ED 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 00 00 00 00 00 00 39 04 06 00 ED 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 69 6A B6 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 3A DB 02 00 35 04 06 00 31 72 AB 11 A3 50 3E C4 0C AA 1A 19 8E 40 [23:34: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 B1 AD 47 00 81 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 3A DB 02 00 F4 03 04 00 BC 10 B6 67 B6 04 01 00 00 14 09 6A 48 3F DD 02 14 [23:34:02]CommunicateWithHost err = 0 [23:34:02]CheckOFDResponse [23:34:02]1017 (14) - 77093643461234 [23:34:02]1041 (16) - 0000000000871826 [23:34:02]1040 (4) - 187194 [23:34:02]1012 (4) - 19.02.2025 17:11 [23:34:02]1206 (1) - 0 [23:34:02]OFD Sender: Remove packet 187194 [23:34:02]ProducePacketName [23:34:02]name=ofd_packets/00187194 [23:34:02]NVStorageDeleteData [23:34:02]Write to MH i2c: 01 00 00 72 10 82 [23:34:02]Write i2c OK [23:34:02]MH_I2C_Read... [23:34:02]Read from MH i2c: 01 [23:34:02]MH_I2C_Read... [23:34:02]Read from MH i2c: 01 07 00 [23:34:02]MH_I2C_Read... [23:34:02]Read from MH i2c: 01 07 00 72 10 00 00 00 00 00 03 0D 99 [23:34:02]RasterBufferAndPrint [23:34:02]line [23:34:02]line [23:34:02]line [23:34:02]line [23:34:02]line [23:34:02]written 0, free lines is 3337 [23:34:02]MH_Cut [23:34:02]Write to MH i2c: D1 01 00 79 10 01 5B [23:34:02]Write i2c OK [23:34:02]MH_I2C_Read... [23:34:02]Read from MH i2c: D1 [23:34:02]MH_I2C_Read... [23:34:02]Read from MH i2c: D1 01 00 [23:34:02]MH_I2C_Read... [23:34:02]Read from MH i2c: D1 01 00 79 10 00 5A [23:34:02]Write to MH i2c: 01 00 00 7A 10 8A [23:34:02]Write i2c OK [23:34:02]MH_I2C_Read... [23:34:02]OFD Sender: No OFD packet to send [23:34:03]*** Cut start [23:34:03]*** Partial cut [23:34:03]*** CUTSNS_PIN = 1 [23:34:03]*** CUTSNS_PIN = 0 [23:34:03]*** Brake cut motor [23:34:03]Read from MH i2c: 01 [23:34:03]MH_I2C_Read... [23:34:03]*** Stop cut motor [23:34:03]*** Cut end [23:34:03]Read from MH i2c: 01 07 00 [23:34:03]MH_I2C_Read... [23:34:03]Read from MH i2c: 01 07 00 7A 10 00 00 00 00 00 FF 0F 9F [23:34:03]process_action close_receipt done [23:34:03]requested_data is exist [23:34:03]produce_requested_data [23:34:03]requested_item fm.sn is exist - process it [23:34:03]wFMCommunicate request_size=4 [23:34:03]MH_SAM_APDU [23:34:03]CAPDU: 80 11 00 00 [23:34:03]Write to MH i2c: E2 08 00 7B 10 80 11 00 00 00 00 00 00 05 [23:34:03]Write i2c OK [23:34:03]MH_I2C_Read... [23:34:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:03]Read from MH i2c: E2 [23:34:03]MH_I2C_Read... [23:34:03]Read from MH i2c: E2 17 00 [23:34:03]MH_I2C_Read... [23:34:03]Read from MH i2c: E2 17 00 7B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 58 [23:34:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:34:03]wFMCommunicate OK [23:34:03]requested_item fd.num is exist - process it [23:34:03]SAM_PROTO_GetFieldsCounters [23:34:03]wFMCommunicate request_size=4 [23:34:03]MH_SAM_APDU [23:34:03]CAPDU: 80 13 00 00 [23:34:03]Write to MH i2c: E2 08 00 7C 10 80 13 00 00 00 00 00 00 08 [23:34:03]Write i2c OK [23:34:03]MH_I2C_Read... [23:34:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:03]Read from MH i2c: E2 [23:34:03]MH_I2C_Read... [23:34:03]Read from MH i2c: E2 62 00 [23:34:03]MH_I2C_Read... [23:34:03]Read from MH i2c: E2 62 00 7C 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 3A DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [23:34: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 3A DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:34:03]wFMCommunicate OK [23:34:03]SAM_PROTO_GetFieldsCounters done [23:34:03]requested_item shift.num is exist - process it [23:34:03]requested_item shift.opened is exist - process it [23:34:03]req_shift_opened [23:34:03]FM_GetShiftState [23:34:03]SAM_PROTO_GetShiftState [23:34:03]wFMCommunicate request_size=4 [23:34:03]MH_SAM_APDU [23:34:03]CAPDU: 80 13 01 00 [23:34:03]Write to MH i2c: E2 08 00 7D 10 80 13 01 00 00 00 00 00 0A [23:34:03]Write i2c OK [23:34:03]MH_I2C_Read... [23:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:04]Read from MH i2c: E2 [23:34:04]MH_I2C_Read... [23:34:04]Read from MH i2c: E2 0E 00 [23:34:04]MH_I2C_Read... [23:34:04]Read from MH i2c: E2 0E 00 7D 10 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 89 [23:34:04]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [23:34:04]wFMCommunicate OK [23:34:04]SAM_PROTO_GetShiftState done [23:34:04]FM_GetShiftState done [23:34:04]req_shift_opened done [23:34:04]requested_item shift.open_date is exist - process it [23:34:04]req_shift_open_date [23:34:04]req_shift_open_date done [23:34:04]produce_requested_data done [23:34:04]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187194,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [23:34:04]process_action_free close_receipt [23:34:04]json_value_free [23:34:04]json_value_free done [23:34:04]process_json_proto returns [23:34:04]Send response to host [23:34:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187194,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [23:34:04]free response buf [23:34:04]execute_script done [23:34:04]execute_script returns [23:34:04]free content buf [23:34:04]Sock 9.Close socket [23:34:04]Sock 9.Thread stoped [23:34:07]OFD Sender: No OFD packet to send [23:34:12]OFD Sender: No OFD packet to send [23:34:17]OFD Sender: No OFD packet to send [23:34:22]OFD Sender: No OFD packet to send [23:34:27]OFD Sender: No OFD packet to send [23:34:32]OFD Sender: No OFD packet to send [23:34:37]OFD Sender: No OFD packet to send [23:34:42]OFD Sender: No OFD packet to send [23:34:47]OFD Sender: No OFD packet to send [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:32]OFD Sender: No OFD packet to send [23:35:37]OFD Sender: No OFD packet to send [23:35:42]OFD Sender: No OFD packet to send [23:35:47]OFD Sender: No OFD packet to send [23:35:52]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:07]OFD Sender: No OFD packet to send [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36: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:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:03]OFD Sender: No OFD packet to send [23:46:07]accept exits with 7 [23:46:07]New connection [23:46:07]New thread 3066654052 created [23:46:07]Thread 3066510692 joined [23:46:07]Waiting for new connection... [23:46:07] Sock 7.Parse request [23:46:07]Sock 7.Check first char [23:46:07]Sock 7.First char is OK [23:46:07]request: POST /json_proto HTTP/1.0 [23:46:07]Method: POST [23:46:07]URL: /json_proto [23:46:07]Method is POST - this is cgi request [23:46:07]url: /json_proto [23:46:07]query_string will be loaded in cgi processing [23:46:07]execute_cgi json_proto POST (null) [23:46:07]execute_cgi path=json_proto method=POST [23:46:07]POST find Content-Length [23:46:07]Host: 172.17.46.131:8080 [23:46:07]Content-Length: 677 [23:46:07]Content-Type: application/json [23:46:07] [23:46:07]POST finish read [23:46:07]Found Content-Length = 677 [23:46:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412350", "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" ] } } [23:46:07]execute_script... [23:46: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)412350", "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" ] } } [23:46:07]POST & json_proto [23:46:07]process_json_proto [23:46:07]json parsed OK: [23:46:07]protocol is kg_v1.0 [23:46:07]action value=close_receipt [23:46:07]process_action close_receipt [23:46:07]cmd_close_receipt [23:46:07]MH_GetDate [23:46:07]Write to MH i2c: F0 00 00 7E 10 7D [23:46:07]Write i2c OK [23:46:07]MH_I2C_Read... [23:46:07]Read from MH i2c: F0 [23:46:07]MH_I2C_Read... [23:46:07]Read from MH i2c: F0 09 00 [23:46:07]MH_I2C_Read... [23:46:07]Read from MH i2c: F0 09 00 7E 10 00 41 6D B6 67 7E 41 4F 65 C4 [23:46:07]GetLastDocTimeStamp 1740008041 [23:46:07]current date 1740008769 [23:46:07]FM_GetShiftState [23:46:07]SAM_PROTO_GetShiftState [23:46:07]wFMCommunicate request_size=4 [23:46:07]MH_SAM_APDU [23:46:07]CAPDU: 80 13 01 00 [23:46:07]Write to MH i2c: E2 08 00 7F 10 80 13 01 00 00 00 00 00 0C [23:46:07]Write i2c OK [23:46:07]MH_I2C_Read... [23:46:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:07]Read from MH i2c: E2 [23:46:07]MH_I2C_Read... [23:46:07]Read from MH i2c: E2 0E 00 [23:46:07]MH_I2C_Read... [23:46:07]Read from MH i2c: E2 0E 00 7F 10 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 8B [23:46:07]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [23:46:07]wFMCommunicate OK [23:46:07]SAM_PROTO_GetShiftState done [23:46:07]FM_GetShiftState done [23:46:07]opened in 1739929631 [23:46:07]opened+sec_in_day 1740016031 [23:46:07]quantity*price = 50011 [23:46:07]sum+1 = 50013 [23:46:07]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 СНО: Общий режим Чек 261 19.02.2025 23:46 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187195 ФПД: 49334741290038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T234609&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187195&fm=49334741290038&tin=02508201610067®Number=0000000000091857&sum=50000 [23:46:08]StoreToDocumentArchive [23:46:08]shift 647 fd 187195 [23:46:08]save to /storage/0647/doc_00187195 [23:46:08]save last doc name /storage/0647/doc_00187195 to /storage/kkm_last_doc_name [23:46:08]save OK [23:46:08]Clear old archive folders... [23:46:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:46:08]tlvbuf is 01FAD0E0 [23:46:08]SAM_PROTO_ClearQueue [23:46:08]wFMCommunicate request_size=4 [23:46:08]MH_SAM_APDU [23:46:08]CAPDU: 80 09 00 00 [23:46:08]Write to MH i2c: E2 08 00 8C 10 80 09 00 00 00 00 00 00 0E [23:46:08]Write i2c OK [23:46:08]MH_I2C_Read... [23:46:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:46:08]Read from MH i2c: E2 [23:46:08]MH_I2C_Read... [23:46:08]Read from MH i2c: E2 03 00 [23:46:08]MH_I2C_Read... [23:46:08]Read from MH i2c: E2 03 00 8C 10 00 90 00 10 [23:46:08]RAPDU: 90 00 [23:46:08]wFMCommunicate OK [23:46:08]SAM_PROTO_ClearQueue done [23:46:08]KKMCreateOFDPacket [23:46:08]OFDProtocolAddRootSTLVToBuf [23:46:08]FM_MakeSignedData [23:46:08]FM_MakeSignedData [23:46:08]SAM_PROTO_SignData [23:46:08]wFMCommunicate request_size=4 [23:46:08]MH_SAM_APDU [23:46:08]CAPDU: 80 0D 01 02 [23:46:08]Write to MH i2c: E2 08 00 8D 10 80 0D 01 02 00 00 00 00 16 [23:46:08]Write i2c OK [23:46:08]MH_I2C_Read... [23:46:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:46:08]Read from MH i2c: E2 [23:46:08]MH_I2C_Read... [23:46:08]Read from MH i2c: E2 03 00 [23:46:08]MH_I2C_Read... [23:46:08]Read from MH i2c: E2 03 00 8D 10 00 90 00 11 [23:46:08]RAPDU: 90 00 [23:46:08]wFMCommunicate OK [23:46:08]wFMCommunicate request_size=255 [23:46:08]MH_SAM_APDU [23:46:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 05 01 00 00 F4 03 04 00 41 6D B6 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 3B DB 02 00 35 04 06 00 2C [23:46:08]Write to MH i2c: E2 02 01 8E 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 05 01 00 00 F4 03 04 00 41 6D B6 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 3B DB 02 00 35 04 06 00 2C 00 00 4D [23:46:08]Write i2c OK [23:46:08]MH_I2C_Read... [23:46:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:08]Read from MH i2c: E2 [23:46:08]MH_I2C_Read... [23:46:08]Read from MH i2c: E2 03 00 [23:46:08]MH_I2C_Read... [23:46:08]Read from MH i2c: E2 03 00 8E 10 00 90 00 12 [23:46:08]RAPDU: 90 00 [23:46:08]wFMCommunicate OK [23:46:08]wFMCommunicate request_size=10 [23:46:08]MH_SAM_APDU [23:46:08]CAPDU: 80 0D 02 02 05 DE A3 BA CC 36 [23:46:08]Write to MH i2c: E2 0D 00 8F 10 80 0D 02 02 05 00 DE A3 BA CC 36 00 00 60 [23:46:08]Write i2c OK [23:46:08]MH_I2C_Read... [23:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:46:09]Read from MH i2c: E2 [23:46:09]MH_I2C_Read... [23:46:09]Read from MH i2c: E2 03 00 [23:46:09]MH_I2C_Read... [23:46:09]Read from MH i2c: E2 03 00 8F 10 00 90 00 13 [23:46:09]RAPDU: 90 00 [23:46:09]wFMCommunicate OK [23:46:09]wFMCommunicate request_size=4 [23:46:09]MH_SAM_APDU [23:46:09]CAPDU: 80 0D 03 02 [23:46:09]Write to MH i2c: E2 08 00 90 10 80 0D 03 02 00 00 00 00 1B [23:46:09]Write i2c OK [23:46:09]MH_I2C_Read... [23:46:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:46:09]Read from MH i2c: E2 [23:46:09]MH_I2C_Read... [23:46:09]Read from MH i2c: E2 0B 00 [23:46:09]MH_I2C_Read... [23:46:09]Read from MH i2c: E2 0B 00 90 10 00 5E F0 F8 E2 25 FD E0 39 90 00 7F [23:46:09]RAPDU: 5E F0 F8 E2 25 FD E0 39 90 00 [23:46:09]wFMCommunicate OK [23:46:09]SAM_PROTO_SignData done [23:46:09]FM_MakeSignedData done [23:46:09]CreateOFDProtocolMessage [23:46:09]wFMCommunicate request_size=4 [23:46:09]MH_SAM_APDU [23:46:09]CAPDU: 80 11 00 00 [23:46:09]Write to MH i2c: E2 08 00 91 10 80 11 00 00 00 00 00 00 1B [23:46:09]Write i2c OK [23:46:09]MH_I2C_Read... [23:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:09]Read from MH i2c: E2 [23:46:09]MH_I2C_Read... [23:46:09]Read from MH i2c: E2 17 00 [23:46:09]MH_I2C_Read... [23:46:09]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 [23:46: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:46:09]wFMCommunicate OK [23:46:09]CreateOFDProtocolMessage done [23:46:09]OFDSenderStorePacket 187195 [23:46:09]StoreOFDPacket docnum=187195 [23:46: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 65 92 07 01 CA 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 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 05 01 00 00 F4 03 04 00 41 6D B6 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 3B DB 02 00 35 04 06 00 2C DE A3 BA CC 36 5E F0 F8 E2 25 FD E0 39 [23:46:09]CheckFolder [23:46:09]dirname=/storage/ofd_packets [23:46:09]CheckFolder done [23:46:09]ProducePacketName [23:46:09]name=ofd_packets/00187195 [23:46:09]NVStorageSaveData ofd_packets/00187195 [23:46:09]File name is /storage/ofd_packets/00187195 [23:46:09]Write 301 bytes [23:46:09]NVStorageSaveData done [23:46:09]OFDSenderStorePacket done [23:46:09]KKMCreateOFDPacket done [23:46:09]NVStorageSaveData kkm_last_timestamp [23:46:09]File name is /storage/kkm_last_timestamp [23:46:09]Write 4 bytes [23:46:09]NVStorageSaveData done [23:46:09]ExternCall_PrintAddStr [23:46:09]wPrintStart [23:46:09]Write to MH i2c: 01 00 00 92 10 A2 [23:46:09]Write i2c OK [23:46:09]MH_I2C_Read... [23:46:09]Read from MH i2c: 01 [23:46:09]MH_I2C_Read... [23:46:09]Read from MH i2c: 01 07 00 [23:46:09]MH_I2C_Read... [23:46:09]Read from MH i2c: 01 07 00 92 10 00 00 00 00 00 FF 0F B7 [23:46:09]RasterBufferAndPrint [23:46:09]line Счет N : (1)412350 [23:46:09]line ИНН: 02508201610067 [23:46:09]line Контрольно-Кассовый Чек [23:46:09]line ПРОДАЖА [23:46:09]line ТРК (МРК, ГНК) : 42 [23:46:09]line Товар: 2710124130 [23:46:09]line Аи-92-К-2 [23:46:09]line 7.790 * 64.20 [23:46:09]line = 500.12 [23:46:09]line НДС 12% НСП 1% [23:46:09]line > о реализуемом товаре [23:46:09]line ОКРУГЛЕНИЕ: -0.12 [23:46:09]line ИТОГО: 500.00 [23:46:09]line Внесено: 500.00 [23:46:09]line СДАЧА: 0.00 [23:46:09]line НСП 1% : 4.43 [23:46:09]line НДС 12% : 53.11 [23:46:09]line Наличными: 500.00 [23:46:09]line Безнал.: 0.00 [23:46:09]line Место: АЗС № 92 "Партнер Нефть" [23:46:09]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:46:09]line СНО: Общий режим [23:46:09]line Чек 261 19.02.2025 23:46 [23:46:09]line Смена: 647 ФФД: 1.0 [23:46:09]line ЗНМ: 0300000118 [23:46:09]line РНМ: 0000000000091857 [23:46:09]line Версия ККМ: 001 [23:46:09]line ФМ: 0000000000871826 [23:46:09]line ФД: 187195 [23:46:09]line ФПД: 49334741290038 [23:46:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T234609&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187195&fm=49334741290038&tin=02508201610067®Number=0000000000091857&sum=50000 [23:46:09]OFD Sender: Processing packet 187195 [packets to send 49, broken 48] [23:46:09]ProducePacketName [23:46:09]name=ofd_packets/00187195 [23:46:09]OFD Sender: To server: pG, [23:46:09]CommunicateWithHost lk.salyk.kg:30040 [23:46:09]ConnectInit lk.salyk.kg [23:46:09]written 0, free lines is 4095 [23:46:09]Connected sock=10 [23: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 0F 01 00 00 65 92 07 01 CA 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 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 05 01 00 00 F4 03 04 00 41 6D B6 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 3B DB 02 00 35 04 06 00 2C DE A3 BA CC 36 5E F0 F8 E2 25 FD E0 39 [23: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 DC C3 47 00 89 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3B DB 02 00 F4 03 04 00 93 13 B6 67 B6 04 01 00 00 F3 68 E7 E5 9A 27 5D 3D [23:46:09]CommunicateWithHost err = 0 [23:46:09]CheckOFDResponse [23:46:09]1017 (14) - 77093643461234 [23:46:09]1041 (16) - 0000000000871826 [23:46:09]1040 (4) - 187195 [23:46:09]1012 (4) - 19.02.2025 17:23 [23:46:09]1206 (1) - 0 [23:46:09]OFD Sender: Remove packet 187195 [23:46:09]ProducePacketName [23:46:09]name=ofd_packets/00187195 [23:46:09]NVStorageDeleteData [23:46:09]Write to MH i2c: 01 00 00 BD 10 CD [23:46:09]Write i2c OK [23:46:09]MH_I2C_Read... [23:46:09]Read from MH i2c: 01 [23:46:09]MH_I2C_Read... [23:46:09]Read from MH i2c: 01 07 00 [23:46:09]MH_I2C_Read... [23:46:09]Read from MH i2c: 01 07 00 BD 10 00 00 00 00 00 FA 0C DA [23:46:09]RasterBufferAndPrint [23:46:09]line [23:46:09]line [23:46:09]line [23:46:09]line [23:46:09]line [23:46:09]written 0, free lines is 3328 [23:46:09]MH_Cut [23:46:09]Write to MH i2c: D1 01 00 C4 10 01 A6 [23:46:09]Write i2c OK [23:46:09]MH_I2C_Read... [23:46:09]Read from MH i2c: D1 [23:46:09]MH_I2C_Read... [23:46:09]Read from MH i2c: D1 01 00 [23:46:09]MH_I2C_Read... [23:46:09]Read from MH i2c: D1 01 00 C4 10 00 A5 [23:46:09]Write to MH i2c: 01 00 00 C5 10 D5 [23:46:09]Write i2c OK [23:46:09]MH_I2C_Read... [23:46:10]OFD Sender: No OFD packet to send [23:46:10]*** Cut start [23:46:10]*** Partial cut [23:46:10]*** CUTSNS_PIN = 1 [23:46:10]*** CUTSNS_PIN = 0 [23:46:10]*** Brake cut motor [23:46:11]Read from MH i2c: 01 [23:46:11]MH_I2C_Read... [23:46:11]*** Stop cut motor [23:46:11]*** Cut end [23:46:11]Read from MH i2c: 01 07 00 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: 01 07 00 C5 10 00 00 00 00 00 FF 0F EA [23:46:11]process_action close_receipt done [23:46:11]requested_data is exist [23:46:11]produce_requested_data [23:46:11]requested_item fm.sn is exist - process it [23:46:11]wFMCommunicate request_size=4 [23:46:11]MH_SAM_APDU [23:46:11]CAPDU: 80 11 00 00 [23:46:11]Write to MH i2c: E2 08 00 C6 10 80 11 00 00 00 00 00 00 50 [23:46:11]Write i2c OK [23:46:11]MH_I2C_Read... [23:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:46:11]Read from MH i2c: E2 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 17 00 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 17 00 C6 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A3 [23:46: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:46:11]wFMCommunicate OK [23:46:11]requested_item fd.num is exist - process it [23:46:11]SAM_PROTO_GetFieldsCounters [23:46:11]wFMCommunicate request_size=4 [23:46:11]MH_SAM_APDU [23:46:11]CAPDU: 80 13 00 00 [23:46:11]Write to MH i2c: E2 08 00 C7 10 80 13 00 00 00 00 00 00 53 [23:46:11]Write i2c OK [23:46:11]MH_I2C_Read... [23:46:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:46:11]Read from MH i2c: E2 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 62 00 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 62 00 C7 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 3B DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 2C [23:46: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 3B DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:46:11]wFMCommunicate OK [23:46:11]SAM_PROTO_GetFieldsCounters done [23:46:11]requested_item shift.num is exist - process it [23:46:11]requested_item shift.opened is exist - process it [23:46:11]req_shift_opened [23:46:11]FM_GetShiftState [23:46:11]SAM_PROTO_GetShiftState [23:46:11]wFMCommunicate request_size=4 [23:46:11]MH_SAM_APDU [23:46:11]CAPDU: 80 13 01 00 [23:46:11]Write to MH i2c: E2 08 00 C8 10 80 13 01 00 00 00 00 00 55 [23:46:11]Write i2c OK [23:46:11]MH_I2C_Read... [23:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:46:11]Read from MH i2c: E2 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 0E 00 [23:46:11]MH_I2C_Read... [23:46:11]Read from MH i2c: E2 0E 00 C8 10 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D4 [23:46:11]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [23:46:11]wFMCommunicate OK [23:46:11]SAM_PROTO_GetShiftState done [23:46:11]FM_GetShiftState done [23:46:11]req_shift_opened done [23:46:11]requested_item shift.open_date is exist - process it [23:46:11]req_shift_open_date [23:46:11]req_shift_open_date done [23:46:11]produce_requested_data done [23:46:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187195,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [23:46:11]process_action_free close_receipt [23:46:11]json_value_free [23:46:11]json_value_free done [23:46:11]process_json_proto returns [23:46:11]Send response to host [23:46:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187195,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [23:46:11]free response buf [23:46:11]execute_script done [23:46:11]execute_script returns [23:46:11]free content buf [23:46:11]Sock 7.Close socket [23:46:11]Sock 7.Thread stoped [23:46:15]OFD Sender: No OFD packet to send [23:46:20]OFD Sender: No OFD packet to send [23:46:25]OFD Sender: No OFD packet to send [23:46:30]OFD Sender: No OFD packet to send [23:46:35]OFD Sender: No OFD packet to send [23:46:40]OFD Sender: No OFD packet to send [23:46:45]OFD Sender: No OFD packet to send [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:05]OFD Sender: No OFD packet to send [23:47:10]OFD Sender: No OFD packet to send [23:47:15]OFD Sender: No OFD packet to send [23:47:20]OFD Sender: No OFD packet to send [23:47:25]OFD Sender: No OFD packet to send [23:47:30]OFD Sender: No OFD packet to send [23:47:35]OFD Sender: No OFD packet to send [23:47:40]OFD Sender: No OFD packet to send [23:47:45]OFD Sender: No OFD packet to send [23:47:50]OFD Sender: No OFD packet to send [23:47:55]OFD Sender: No OFD packet to send [23:48:00]OFD Sender: No OFD packet to send [23:48:05]OFD Sender: No OFD packet to send [23:48:10]OFD Sender: No OFD packet to send [23:48:15]OFD Sender: No OFD packet to send [23:48:20]OFD Sender: No OFD packet to send [23:48:25]OFD Sender: No OFD packet to send [23:48:30]OFD Sender: No OFD packet to send [23:48:35]OFD Sender: No OFD packet to send [23:48:40]OFD Sender: No OFD packet to send [23:48:45]OFD Sender: No OFD packet to send [23:48:50]OFD Sender: No OFD packet to send [23:48:55]OFD Sender: No OFD packet to send [23:49:00]OFD Sender: No OFD packet to send [23:49:05]OFD Sender: No OFD packet to send [23:49:10]OFD Sender: No OFD packet to send [23:49:15]OFD Sender: No OFD packet to send [23:49:20]OFD Sender: No OFD packet to send [23:49:25]OFD Sender: No OFD packet to send [23:49:30]OFD Sender: No OFD packet to send [23:49:35]OFD Sender: No OFD packet to send [23:49:40]OFD Sender: No OFD packet to send [23:49:45]OFD Sender: No OFD packet to send [23:49:50]OFD Sender: No OFD packet to send [23:49:55]OFD Sender: No OFD packet to send [23:50:00]OFD Sender: No OFD packet to send [23:50:05]OFD Sender: No OFD packet to send [23:50:10]OFD Sender: No OFD packet to send [23:50:15]OFD Sender: No OFD packet to send [23:50:20]OFD Sender: No OFD packet to send [23:50:25]OFD Sender: No OFD packet to send [23:50:30]OFD Sender: No OFD packet to send [23:50:35]OFD Sender: No OFD packet to send [23:50:40]OFD Sender: No OFD packet to send [23:50:45]OFD Sender: No OFD packet to send [23:50:50]OFD Sender: No OFD packet to send [23:50:55]OFD Sender: No OFD packet to send [23:51:00]OFD Sender: No OFD packet to send [23:51:05]OFD Sender: No OFD packet to send [23:51:10]OFD Sender: No OFD packet to send [23:51:15]OFD Sender: No OFD packet to send [23:51:20]OFD Sender: No OFD packet to send [23:51:25]OFD Sender: No OFD packet to send [23:51:30]OFD Sender: No OFD packet to send [23:51:35]OFD Sender: No OFD packet to send [23:51:40]OFD Sender: No OFD packet to send [23:51:45]OFD Sender: No OFD packet to send [23:51:50]OFD Sender: No OFD packet to send [23:51:55]OFD Sender: No OFD packet to send [23:52:00]OFD Sender: No OFD packet to send [23:52:05]OFD Sender: No OFD packet to send [23:52:10]OFD Sender: No OFD packet to send [23:52:15]OFD Sender: No OFD packet to send [23:52:20]OFD Sender: No OFD packet to send [23:52:25]OFD Sender: No OFD packet to send [23:52:30]OFD Sender: No OFD packet to send [23:52:35]OFD Sender: No OFD packet to send [23:52:40]OFD Sender: No OFD packet to send [23:52:45]OFD Sender: No OFD packet to send [23:52:50]OFD Sender: No OFD packet to send [23:52:55]OFD Sender: No OFD packet to send [23:53:00]OFD Sender: No OFD packet to send [23:53:05]OFD Sender: No OFD packet to send [23:53:10]OFD Sender: No OFD packet to send [23:53:15]OFD Sender: No OFD packet to send [23:53:19]accept exits with 9 [23:53:19]New connection [23:53:19]New thread 3066510692 created [23:53:19]Thread 3066654052 joined [23:53:19]Waiting for new connection... [23:53:19] Sock 9.Parse request [23:53:19]Sock 9.Check first char [23:53:19]Sock 9.First char is OK [23:53:19]request: POST /json_proto HTTP/1.0 [23:53:19]Method: POST [23:53:19]URL: /json_proto [23:53:19]Method is POST - this is cgi request [23:53:19]url: /json_proto [23:53:19]query_string will be loaded in cgi processing [23:53:19]execute_cgi json_proto POST (null) [23:53:19]execute_cgi path=json_proto method=POST [23:53:19]POST find Content-Length [23:53:19]Host: 172.17.46.131:8080 [23:53:19]Content-Length: 682 [23:53:19]Content-Type: application/json [23:53:19] [23:53:19]POST finish read [23:53:19]Found Content-Length = 682 [23:53:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412351", "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" : 34.780, "sum" : 2500.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:19]execute_script... [23: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)412351", "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" : 34.780, "sum" : 2500.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:19]POST & json_proto [23:53:19]process_json_proto [23:53:19]json parsed OK: [23:53:19]protocol is kg_v1.0 [23:53:19]action value=close_receipt [23:53:19]process_action close_receipt [23:53:19]cmd_close_receipt [23:53:19]MH_GetDate [23:53:19]Write to MH i2c: F0 00 00 C9 10 C8 [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: F0 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: F0 09 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: F0 09 00 C9 10 00 F1 6E B6 67 7E 41 4F 65 C0 [23:53:19]GetLastDocTimeStamp 1740008769 [23:53:19]current date 1740009201 [23:53:19]FM_GetShiftState [23:53:19]SAM_PROTO_GetShiftState [23:53:19]wFMCommunicate request_size=4 [23:53:19]MH_SAM_APDU [23:53:19]CAPDU: 80 13 01 00 [23:53:19]Write to MH i2c: E2 08 00 CA 10 80 13 01 00 00 00 00 00 57 [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:20]Read from MH i2c: E2 [23:53:20]MH_I2C_Read... [23:53:20]Read from MH i2c: E2 0E 00 [23:53:20]MH_I2C_Read... [23:53:20]Read from MH i2c: E2 0E 00 CA 10 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 D6 [23:53:20]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [23:53:20]wFMCommunicate OK [23:53:20]SAM_PROTO_GetShiftState done [23:53:20]FM_GetShiftState done [23:53:20]opened in 1739929631 [23:53:20]opened+sec_in_day 1740016031 [23:53:20]quantity*price = 250068 [23:53:20]sum+1 = 250069 [23:53:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.56 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 262 19.02.2025 23:53 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187196 ФПД: 150588796396928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T235321&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187196&fm=150588796396928&tin=02508201610067®Number=0000000000091857&sum=250000 [23:53:21]StoreToDocumentArchive [23:53:21]shift 647 fd 187196 [23:53:21]save to /storage/0647/doc_00187196 [23:53:21]save last doc name /storage/0647/doc_00187196 to /storage/kkm_last_doc_name [23:53:21]save OK [23:53:21]Clear old archive folders... [23:53:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:53:21]tlvbuf is 01F42890 [23:53:21]SAM_PROTO_ClearQueue [23:53:21]wFMCommunicate request_size=4 [23:53:21]MH_SAM_APDU [23:53:21]CAPDU: 80 09 00 00 [23:53:21]Write to MH i2c: E2 08 00 D7 10 80 09 00 00 00 00 00 00 59 [23:53:21]Write i2c OK [23:53:21]MH_I2C_Read... [23:53:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:53:21]Read from MH i2c: E2 [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: E2 03 00 [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: E2 03 00 D7 10 00 90 00 5B [23:53:21]RAPDU: 90 00 [23:53:21]wFMCommunicate OK [23:53:21]SAM_PROTO_ClearQueue done [23:53:21]KKMCreateOFDPacket [23:53:21]OFDProtocolAddRootSTLVToBuf [23:53:21]FM_MakeSignedData [23:53:21]FM_MakeSignedData [23:53:21]SAM_PROTO_SignData [23:53:21]wFMCommunicate request_size=4 [23:53:21]MH_SAM_APDU [23:53:21]CAPDU: 80 0D 01 02 [23:53:21]Write to MH i2c: E2 08 00 D8 10 80 0D 01 02 00 00 00 00 61 [23:53:21]Write i2c OK [23:53:21]MH_I2C_Read... [23:53:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:53:21]Read from MH i2c: E2 [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: E2 03 00 [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: E2 03 00 D8 10 00 90 00 5C [23:53:21]RAPDU: 90 00 [23:53:21]wFMCommunicate OK [23:53:21]wFMCommunicate request_size=255 [23:53:21]MH_SAM_APDU [23: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 DC 87 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D4 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 F1 6E B6 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 3C DB 02 00 35 04 06 00 88 [23:53:21]Write to MH i2c: E2 02 01 D9 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 DC 87 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D4 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 F1 6E B6 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 3C DB 02 00 35 04 06 00 88 00 00 F3 [23:53:21]Write i2c OK [23:53:21]MH_I2C_Read... [23:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:21]Read from MH i2c: E2 [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: E2 03 00 [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: E2 03 00 D9 10 00 90 00 5D [23:53:21]RAPDU: 90 00 [23:53:21]wFMCommunicate OK [23:53:21]wFMCommunicate request_size=10 [23:53:21]MH_SAM_APDU [23:53:21]CAPDU: 80 0D 02 02 05 F5 AF B7 65 80 [23:53:21]Write to MH i2c: E2 0D 00 DA 10 80 0D 02 02 05 00 F5 AF B7 65 80 00 00 AE [23:53:21]Write i2c OK [23:53:21]MH_I2C_Read... [23:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:21]Read from MH i2c: E2 [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: E2 03 00 [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: E2 03 00 DA 10 00 90 00 5E [23:53:21]RAPDU: 90 00 [23:53:21]wFMCommunicate OK [23:53:21]wFMCommunicate request_size=4 [23:53:21]MH_SAM_APDU [23:53:21]CAPDU: 80 0D 03 02 [23:53:21]Write to MH i2c: E2 08 00 DB 10 80 0D 03 02 00 00 00 00 66 [23:53:21]Write i2c OK [23:53:21]MH_I2C_Read... [23:53:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:53:21]Read from MH i2c: E2 [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: E2 0B 00 [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: E2 0B 00 DB 10 00 04 C6 35 92 CE 58 02 59 90 00 79 [23:53:21]RAPDU: 04 C6 35 92 CE 58 02 59 90 00 [23:53:21]wFMCommunicate OK [23:53:21]SAM_PROTO_SignData done [23:53:21]FM_MakeSignedData done [23:53:21]CreateOFDProtocolMessage [23:53:21]wFMCommunicate request_size=4 [23:53:21]MH_SAM_APDU [23:53:21]CAPDU: 80 11 00 00 [23:53:21]Write to MH i2c: E2 08 00 DC 10 80 11 00 00 00 00 00 00 66 [23:53:21]Write i2c OK [23:53:21]MH_I2C_Read... [23:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:21]Read from MH i2c: E2 [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: E2 17 00 [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: E2 17 00 DC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B9 [23: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 [23:53:21]wFMCommunicate OK [23:53:21]CreateOFDProtocolMessage done [23:53:21]OFDSenderStorePacket 187196 [23:53:21]StoreOFDPacket docnum=187196 [23: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 1C 99 07 01 43 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DC 87 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D4 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 F1 6E B6 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 3C DB 02 00 35 04 06 00 88 F5 AF B7 65 80 04 C6 35 92 CE 58 02 59 [23:53:21]CheckFolder [23:53:21]dirname=/storage/ofd_packets [23:53:21]CheckFolder done [23:53:21]ProducePacketName [23:53:21]name=ofd_packets/00187196 [23:53:21]NVStorageSaveData ofd_packets/00187196 [23:53:21]File name is /storage/ofd_packets/00187196 [23:53:21]Write 301 bytes [23:53:21]NVStorageSaveData done [23:53:21]OFDSenderStorePacket done [23:53:21]KKMCreateOFDPacket done [23:53:21]NVStorageSaveData kkm_last_timestamp [23:53:21]File name is /storage/kkm_last_timestamp [23:53:21]Write 4 bytes [23:53:21]NVStorageSaveData done [23:53:21]ExternCall_PrintAddStr [23:53:21]wPrintStart [23:53:21]Write to MH i2c: 01 00 00 DD 10 ED [23:53:21]Write i2c OK [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: 01 [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: 01 07 00 [23:53:21]MH_I2C_Read... [23:53:21]Read from MH i2c: 01 07 00 DD 10 00 00 00 00 00 FF 0F 02 [23:53:21]RasterBufferAndPrint [23:53:21]line Счет N : (1)412351 [23:53:21]line ИНН: 02508201610067 [23:53:21]line Контрольно-Кассовый Чек [23:53:21]line ПРОДАЖА [23:53:21]line ТРК (МРК, ГНК) : 43 [23:53:21]line Товар: 2710124500 [23:53:21]line Аи-95-К-5 [23:53:21]line 34.780 * 71.90 [23:53:21]line = 2500.68 [23:53:21]line НДС 12% НСП 1% [23:53:21]line > о реализуемом товаре [23:53:21]line ОКРУГЛЕНИЕ: -0.68 [23:53:21]line ИТОГО: 2500.00 [23:53:21]line Внесено: 2500.00 [23:53:21]line СДАЧА: 0.00 [23:53:21]line НСП 1% : 22.13 [23:53:21]line НДС 12% : 265.56 [23:53:21]line Наличными: 2500.00 [23:53:21]line Безнал.: 0.00 [23:53:21]line Место: АЗС № 92 "Партнер Нефть" [23:53:21]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:53:21]line СНО: Общий режим [23:53:21]line Чек 262 19.02.2025 23:53 [23:53:21]line Смена: 647 ФФД: 1.0 [23:53:21]line ЗНМ: 0300000118 [23:53:21]line РНМ: 0000000000091857 [23:53:21]line Версия ККМ: 001 [23:53:21]line ФМ: 0000000000871826 [23:53:21]line ФД: 187196 [23:53:21]line ФПД: 150588796396928 [23:53:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250219T235321&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187196&fm=150588796396928&tin=02508201610067®Number=0000000000091857&sum=250000 [23:53:22]OFD Sender: Processing packet 187196 [packets to send 49, broken 48] [23:53:22]ProducePacketName [23:53:22]name=ofd_packets/00187196 [23:53:22]OFD Sender: To server: pG, [23:53:22]CommunicateWithHost lk.salyk.kg:30040 [23:53:22]ConnectInit lk.salyk.kg [23:53:22]written 0, free lines is 4095 [23:53:22]Connected sock=10 [23: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 1C 99 07 01 43 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DC 87 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 D4 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 F1 6E B6 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 3C DB 02 00 35 04 06 00 88 F5 AF B7 65 80 04 C6 35 92 CE 58 02 59 [23: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 58 53 47 00 4E 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 3C DB 02 00 F4 03 04 00 44 15 B6 67 B6 04 01 00 00 8E 82 3B EB 0F 66 43 A7 [23:53:22]CommunicateWithHost err = 0 [23:53:22]CheckOFDResponse [23:53:22]1017 (14) - 77093643461234 [23:53:22]1041 (16) - 0000000000871826 [23:53:22]1040 (4) - 187196 [23:53:22]1012 (4) - 19.02.2025 17:30 [23:53:22]1206 (1) - 0 [23:53:22]OFD Sender: Remove packet 187196 [23:53:22]ProducePacketName [23:53:22]name=ofd_packets/00187196 [23:53:22]NVStorageDeleteData [23:53:22]Write to MH i2c: 01 00 00 08 11 19 [23:53:22]Write i2c OK [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: 01 [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: 01 07 00 [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: 01 07 00 08 11 00 00 00 00 00 02 0D 2F [23:53:22]RasterBufferAndPrint [23:53:22]line [23:53:22]line [23:53:22]line [23:53:22]line [23:53:22]line [23:53:22]written 0, free lines is 3336 [23:53:22]MH_Cut [23:53:22]Write to MH i2c: D1 01 00 0F 11 01 F2 [23:53:22]Write i2c OK [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: D1 [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: D1 01 00 [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: D1 01 00 0F 11 00 F1 [23:53:22]Write to MH i2c: 01 00 00 10 11 21 [23:53:22]Write i2c OK [23:53:22]MH_I2C_Read... [23:53:22]OFD Sender: No OFD packet to send [23:53:23]*** Cut start [23:53:23]*** Partial cut [23:53:23]*** CUTSNS_PIN = 1 [23:53:23]*** CUTSNS_PIN = 0 [23:53:23]*** Brake cut motor [23:53:23]Read from MH i2c: 01 [23:53:23]MH_I2C_Read... [23:53:23]*** Stop cut motor [23:53:23]*** Cut end [23:53:23]Read from MH i2c: 01 07 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 10 11 00 00 00 00 00 FF 0F 36 [23:53:23]process_action close_receipt done [23:53:23]requested_data is exist [23:53:23]produce_requested_data [23:53:23]requested_item fm.sn is exist - process it [23:53:23]wFMCommunicate request_size=4 [23:53:23]MH_SAM_APDU [23:53:23]CAPDU: 80 11 00 00 [23:53:23]Write to MH i2c: E2 08 00 11 11 80 11 00 00 00 00 00 00 9C [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:23]Read from MH i2c: E2 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: E2 17 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: E2 17 00 11 11 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: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 [23:53:23]wFMCommunicate OK [23:53:23]requested_item fd.num is exist - process it [23:53:23]SAM_PROTO_GetFieldsCounters [23:53:23]wFMCommunicate request_size=4 [23:53:23]MH_SAM_APDU [23:53:23]CAPDU: 80 13 00 00 [23:53:23]Write to MH i2c: E2 08 00 12 11 80 13 00 00 00 00 00 00 9F [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:53:24]Read from MH i2c: E2 [23:53:24]MH_I2C_Read... [23:53:24]Read from MH i2c: E2 62 00 [23:53:24]MH_I2C_Read... [23:53:24]Read from MH i2c: E2 62 00 12 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 3C DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 7C [23:53: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 3C DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:53:24]wFMCommunicate OK [23:53:24]SAM_PROTO_GetFieldsCounters done [23:53:24]requested_item shift.num is exist - process it [23:53:24]requested_item shift.opened is exist - process it [23:53:24]req_shift_opened [23:53:24]FM_GetShiftState [23:53:24]SAM_PROTO_GetShiftState [23:53:24]wFMCommunicate request_size=4 [23:53:24]MH_SAM_APDU [23:53:24]CAPDU: 80 13 01 00 [23:53:24]Write to MH i2c: E2 08 00 13 11 80 13 01 00 00 00 00 00 A1 [23:53:24]Write i2c OK [23:53:24]MH_I2C_Read... [23:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:24]Read from MH i2c: E2 [23:53:24]MH_I2C_Read... [23:53:24]Read from MH i2c: E2 0E 00 [23:53:24]MH_I2C_Read... [23:53:24]Read from MH i2c: E2 0E 00 13 11 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 20 [23:53:24]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [23:53:24]wFMCommunicate OK [23:53:24]SAM_PROTO_GetShiftState done [23:53:24]FM_GetShiftState done [23:53:24]req_shift_opened done [23:53:24]requested_item shift.open_date is exist - process it [23:53:24]req_shift_open_date [23:53:24]req_shift_open_date done [23:53:24]produce_requested_data done [23:53:24]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187196,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [23:53:24]process_action_free close_receipt [23:53:24]json_value_free [23:53:24]json_value_free done [23:53:24]process_json_proto returns [23:53:24]Send response to host [23:53:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187196,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [23:53:24]free response buf [23:53:24]execute_script done [23:53:24]execute_script returns [23:53:24]free content buf [23:53:24]Sock 9.Close socket [23:53:24]Sock 9.Thread stoped [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:18]OFD Sender: No OFD packet to send [23:54:23]OFD Sender: No OFD packet to send [23:54:28]OFD Sender: No OFD packet to send [23:54:33]OFD Sender: No OFD packet to send [23:54:38]OFD Sender: No OFD packet to send [23:54:43]OFD Sender: No OFD packet to send [23:54:48]OFD Sender: No OFD packet to send [23:54:53]OFD Sender: No OFD packet to send [23:54:58]OFD Sender: No OFD packet to send [23:55:03]OFD Sender: No OFD packet to send [23:55:08]OFD Sender: No OFD packet to send [23:55:13]OFD Sender: No OFD packet to send [23:55:18]OFD Sender: No OFD packet to send [23:55:23]OFD Sender: No OFD packet to send [23:55:28]OFD Sender: No OFD packet to send [23:55:33]OFD Sender: No OFD packet to send [23:55:38]OFD Sender: No OFD packet to send [23:55:43]OFD Sender: No OFD packet to send [23:55:48]OFD Sender: No OFD packet to send [23:55:53]OFD Sender: No OFD packet to send [23:55:58]OFD Sender: No OFD packet to send [23:56:03]OFD Sender: No OFD packet to send [23:56:08]OFD Sender: No OFD packet to send [23:56:13]OFD Sender: No OFD packet to send [23:56:18]OFD Sender: No OFD packet to send [23:56:23]OFD Sender: No OFD packet to send [23:56:28]OFD Sender: No OFD packet to send [23:56:33]OFD Sender: No OFD packet to send [23:56:38]OFD Sender: No OFD packet to send [23:56:43]OFD Sender: No OFD packet to send [23:56:48]OFD Sender: No OFD packet to send [23:56:53]OFD Sender: No OFD packet to send [23:56:58]OFD Sender: No OFD packet to send [23:57:03]OFD Sender: No OFD packet to send [23:57:08]OFD Sender: No OFD packet to send [23:57:13]OFD Sender: No OFD packet to send [23:57:18]OFD Sender: No OFD packet to send [23:57:23]OFD Sender: No OFD packet to send [23:57:28]OFD Sender: No OFD packet to send [23:57:33]OFD Sender: No OFD packet to send [23:57:38]OFD Sender: No OFD packet to send [23:57:43]OFD Sender: No OFD packet to send [23:57:48]OFD Sender: No OFD packet to send [23:57:53]OFD Sender: No OFD packet to send [23:57:58]OFD Sender: No OFD packet to send [23:58:03]OFD Sender: No OFD packet to send [23:58:08]OFD Sender: No OFD packet to send [23:58:13]OFD Sender: No OFD packet to send [23:58:18]OFD Sender: No OFD packet to send [23:58:23]OFD Sender: No OFD packet to send [23:58:28]OFD Sender: No OFD packet to send [23:58:33]OFD Sender: No OFD packet to send [23:58:38]OFD Sender: No OFD packet to send [23:58:43]OFD Sender: No OFD packet to send [23:58:48]OFD Sender: No OFD packet to send [23:58:53]OFD Sender: No OFD packet to send [23:58:58]OFD Sender: No OFD packet to send [23:59:03]OFD Sender: No OFD packet to send [23:59:08]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:03]OFD Sender: No OFD packet to send [00:00:08]OFD Sender: No OFD packet to send [00:00:13]OFD Sender: No OFD packet to send [00:00:18]OFD Sender: No OFD packet to send [00:00:23]OFD Sender: No OFD packet to send [00:00:28]OFD Sender: No OFD packet to send [00:00:33]OFD Sender: No OFD packet to send [00:00:38]OFD Sender: No OFD packet to send [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:48]OFD Sender: No OFD packet to send [00:01:53]OFD Sender: No OFD packet to send [00:01:58]OFD Sender: No OFD packet to send [00:02:03]OFD Sender: No OFD packet to send [00:02:08]OFD Sender: No OFD packet to send [00:02:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:38]OFD Sender: No OFD packet to send [00:02:43]OFD Sender: No OFD packet to send [00:02:48]OFD Sender: No OFD packet to send [00:02:53]OFD Sender: No OFD packet to send [00:02:58]OFD Sender: No OFD packet to send [00:03:03]OFD Sender: No OFD packet to send [00:03:08]OFD Sender: No OFD packet to send [00:03:13]OFD Sender: No OFD packet to send [00:03:18]OFD Sender: No OFD packet to send [00:03:23]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:33]OFD Sender: No OFD packet to send [00:03:38]OFD Sender: No OFD packet to send [00:03:43]OFD Sender: No OFD packet to send [00:03:48]OFD Sender: No OFD packet to send [00:03:53]OFD Sender: No OFD packet to send [00:03:58]OFD Sender: No OFD packet to send [00:04:03]OFD Sender: No OFD packet to send [00:04:08]OFD Sender: No OFD packet to send [00:04:13]OFD Sender: No OFD packet to send [00:04:18]OFD Sender: No OFD packet to send [00:04:23]OFD Sender: No OFD packet to send [00:04:28]OFD Sender: No OFD packet to send [00:04:33]OFD Sender: No OFD packet to send [00:04:38]OFD Sender: No OFD packet to send [00:04:43]OFD Sender: No OFD packet to send [00:04:48]OFD Sender: No OFD packet to send [00:04:53]OFD Sender: No OFD packet to send [00:04:58]OFD Sender: No OFD packet to send [00:05:03]OFD Sender: No OFD packet to send [00:05:08]OFD Sender: No OFD packet to send [00:05:13]OFD Sender: No OFD packet to send [00:05:18]OFD Sender: No OFD packet to send [00:05:23]OFD Sender: No OFD packet to send [00:05:28]OFD Sender: No OFD packet to send [00:05:33]OFD Sender: No OFD packet to send [00:05:38]OFD Sender: No OFD packet to send [00:05:43]OFD Sender: No OFD packet to send [00:05:48]OFD Sender: No OFD packet to send [00:05:53]OFD Sender: No OFD packet to send [00:05:58]OFD Sender: No OFD packet to send [00:06:03]OFD Sender: No OFD packet to send [00:06:08]OFD Sender: No OFD packet to send [00:06:13]OFD Sender: No OFD packet to send [00:06:18]OFD Sender: No OFD packet to send [00:06:23]OFD Sender: No OFD packet to send [00:06:28]OFD Sender: No OFD packet to send [00:06:33]OFD Sender: No OFD packet to send [00:06:38]OFD Sender: No OFD packet to send [00:06:43]OFD Sender: No OFD packet to send [00:06:48]OFD Sender: No OFD packet to send [00:06:53]OFD Sender: No OFD packet to send [00:06:58]OFD Sender: No OFD packet to send [00:07:03]OFD Sender: No OFD packet to send [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:38]OFD Sender: No OFD packet to send [00:07:43]OFD Sender: No OFD packet to send [00:07:48]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [00:08:18]OFD Sender: No OFD packet to send [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:38]OFD Sender: No OFD packet to send [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:58]OFD Sender: No OFD packet to send [00:10:03]OFD Sender: No OFD packet to send [00:10:08]OFD Sender: No OFD packet to send [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:28]OFD Sender: No OFD packet to send [00:10:33]OFD Sender: No OFD packet to send [00:10:38]OFD Sender: No OFD packet to send [00:10:43]OFD Sender: No OFD packet to send [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:08]OFD Sender: No OFD packet to send [00:11:13]OFD Sender: No OFD packet to send [00:11:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:38]OFD Sender: No OFD packet to send [00:11:43]OFD Sender: No OFD packet to send [00:11:48]OFD Sender: No OFD packet to send [00:11:53]OFD Sender: No OFD packet to send [00:11:58]OFD Sender: No OFD packet to send [00:12:03]OFD Sender: No OFD packet to send [00:12:08]OFD Sender: No OFD packet to send [00:12:13]OFD Sender: No OFD packet to send [00:12:18]OFD Sender: No OFD packet to send [00:12:23]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [00:12:34]OFD Sender: No OFD packet to send [00:12:39]OFD Sender: No OFD packet to send [00:12:44]OFD Sender: No OFD packet to send [00:12:49]OFD Sender: No OFD packet to send [00:12:54]OFD Sender: No OFD packet to send [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:39]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:49]OFD Sender: No OFD packet to send [00:14:54]OFD Sender: No OFD packet to send [00:14:59]OFD Sender: No OFD packet to send [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:21]accept exits with 7 [00:17:21]New connection [00:17:21]New thread 3066654052 created [00:17:21]Thread 3066510692 joined [00:17:21]Waiting for new connection... [00:17:21] Sock 7.Parse request [00:17:21]Sock 7.Check first char [00:17:21]Sock 7.First char is OK [00:17:21]request: POST /json_proto HTTP/1.0 [00:17:21]Method: POST [00:17:21]URL: /json_proto [00:17:21]Method is POST - this is cgi request [00:17:21]url: /json_proto [00:17:21]query_string will be loaded in cgi processing [00:17:21]execute_cgi json_proto POST (null) [00:17:21]execute_cgi path=json_proto method=POST [00:17:21]POST find Content-Length [00:17:21]Host: 172.17.46.131:8080 [00:17:21]Content-Length: 677 [00:17:21]Content-Type: application/json [00:17:21] [00:17:21]POST finish read [00:17:21]Found Content-Length = 677 [00:17:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412352", "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" ] } } [00:17:21]execute_script... [00:17: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)412352", "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" ] } } [00:17:21]POST & json_proto [00:17:21]process_json_proto [00:17:21]json parsed OK: [00:17:21]protocol is kg_v1.0 [00:17:21]action value=close_receipt [00:17:21]process_action close_receipt [00:17:21]cmd_close_receipt [00:17:21]MH_GetDate [00:17:21]Write to MH i2c: F0 00 00 14 11 14 [00:17:21]Write i2c OK [00:17:21]MH_I2C_Read... [00:17:21]Read from MH i2c: F0 [00:17:21]MH_I2C_Read... [00:17:21]Read from MH i2c: F0 09 00 [00:17:21]MH_I2C_Read... [00:17:21]Read from MH i2c: F0 09 00 14 11 00 93 74 B6 67 7E 41 4F 65 B4 [00:17:21]GetLastDocTimeStamp 1740009201 [00:17:21]current date 1740010643 [00:17:21]FM_GetShiftState [00:17:21]SAM_PROTO_GetShiftState [00:17:21]wFMCommunicate request_size=4 [00:17:21]MH_SAM_APDU [00:17:21]CAPDU: 80 13 01 00 [00:17:21]Write to MH i2c: E2 08 00 15 11 80 13 01 00 00 00 00 00 A3 [00:17:21]Write i2c OK [00:17:21]MH_I2C_Read... [00:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:21]Read from MH i2c: E2 [00:17:21]MH_I2C_Read... [00:17:21]Read from MH i2c: E2 0E 00 [00:17:21]MH_I2C_Read... [00:17:21]Read from MH i2c: E2 0E 00 15 11 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 22 [00:17:21]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [00:17:21]wFMCommunicate OK [00:17:21]SAM_PROTO_GetShiftState done [00:17:21]FM_GetShiftState done [00:17:21]opened in 1739929631 [00:17:21]opened+sec_in_day 1740016031 [00:17:21]quantity*price = 60027 [00:17:21]sum+1 = 60028 [00:17:21]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 СНО: Общий режим Чек 263 20.02.2025 00:17 Смена: 647 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187197 ФПД: 81440823539339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T001723&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187197&fm=81440823539339&tin=02508201610067®Number=0000000000091857&sum=60000 [00:17:23]StoreToDocumentArchive [00:17:23]shift 647 fd 187197 [00:17:23]save to /storage/0647/doc_00187197 [00:17:23]save last doc name /storage/0647/doc_00187197 to /storage/kkm_last_doc_name [00:17:23]save OK [00:17:23]Clear old archive folders... [00:17:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:17:23]tlvbuf is 01F42A20 [00:17:23]SAM_PROTO_ClearQueue [00:17:23]wFMCommunicate request_size=4 [00:17:23]MH_SAM_APDU [00:17:23]CAPDU: 80 09 00 00 [00:17:23]Write to MH i2c: E2 08 00 22 11 80 09 00 00 00 00 00 00 A5 [00:17:23]Write i2c OK [00:17:23]MH_I2C_Read... [00:17:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:17:23]Read from MH i2c: E2 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 03 00 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 03 00 22 11 00 90 00 A7 [00:17:23]RAPDU: 90 00 [00:17:23]wFMCommunicate OK [00:17:23]SAM_PROTO_ClearQueue done [00:17:23]KKMCreateOFDPacket [00:17:23]OFDProtocolAddRootSTLVToBuf [00:17:23]FM_MakeSignedData [00:17:23]FM_MakeSignedData [00:17:23]SAM_PROTO_SignData [00:17:23]wFMCommunicate request_size=4 [00:17:23]MH_SAM_APDU [00:17:23]CAPDU: 80 0D 01 02 [00:17:23]Write to MH i2c: E2 08 00 23 11 80 0D 01 02 00 00 00 00 AD [00:17:23]Write i2c OK [00:17:23]MH_I2C_Read... [00:17:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:17:23]Read from MH i2c: E2 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 03 00 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 03 00 23 11 00 90 00 A8 [00:17:23]RAPDU: 90 00 [00:17:23]wFMCommunicate OK [00:17:23]wFMCommunicate request_size=255 [00:17:23]MH_SAM_APDU [00:17: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 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 07 01 00 00 F4 03 04 00 93 74 B6 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 3D DB 02 00 35 04 06 00 4A [00:17:23]Write to MH i2c: E2 02 01 24 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 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 07 01 00 00 F4 03 04 00 93 74 B6 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 3D DB 02 00 35 04 06 00 4A 00 00 B5 [00:17:23]Write i2c OK [00:17:23]MH_I2C_Read... [00:17:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:23]Read from MH i2c: E2 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 03 00 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 03 00 24 11 00 90 00 A9 [00:17:23]RAPDU: 90 00 [00:17:23]wFMCommunicate OK [00:17:23]wFMCommunicate request_size=10 [00:17:23]MH_SAM_APDU [00:17:23]CAPDU: 80 0D 02 02 05 11 EB 5B 76 8B [00:17:23]Write to MH i2c: E2 0D 00 25 11 80 0D 02 02 05 00 11 EB 5B 76 8B 00 00 12 [00:17:23]Write i2c OK [00:17:23]MH_I2C_Read... [00:17:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:23]Read from MH i2c: E2 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 03 00 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 03 00 25 11 00 90 00 AA [00:17:23]RAPDU: 90 00 [00:17:23]wFMCommunicate OK [00:17:23]wFMCommunicate request_size=4 [00:17:23]MH_SAM_APDU [00:17:23]CAPDU: 80 0D 03 02 [00:17:23]Write to MH i2c: E2 08 00 26 11 80 0D 03 02 00 00 00 00 B2 [00:17:23]Write i2c OK [00:17:23]MH_I2C_Read... [00:17:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:17:23]Read from MH i2c: E2 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 0B 00 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 0B 00 26 11 00 79 66 75 0D 89 06 32 CB 90 00 A0 [00:17:23]RAPDU: 79 66 75 0D 89 06 32 CB 90 00 [00:17:23]wFMCommunicate OK [00:17:23]SAM_PROTO_SignData done [00:17:23]FM_MakeSignedData done [00:17:23]CreateOFDProtocolMessage [00:17:23]wFMCommunicate request_size=4 [00:17:23]MH_SAM_APDU [00:17:23]CAPDU: 80 11 00 00 [00:17:23]Write to MH i2c: E2 08 00 27 11 80 11 00 00 00 00 00 00 B2 [00:17:23]Write i2c OK [00:17:23]MH_I2C_Read... [00:17:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:23]Read from MH i2c: E2 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 17 00 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: E2 17 00 27 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 05 [00:17: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:17:23]wFMCommunicate OK [00:17:23]CreateOFDProtocolMessage done [00:17:23]OFDSenderStorePacket 187197 [00:17:23]StoreOFDPacket docnum=187197 [00:17: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 9E 4D 07 01 44 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 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 07 01 00 00 F4 03 04 00 93 74 B6 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 3D DB 02 00 35 04 06 00 4A 11 EB 5B 76 8B 79 66 75 0D 89 06 32 CB [00:17:23]CheckFolder [00:17:23]dirname=/storage/ofd_packets [00:17:23]CheckFolder done [00:17:23]ProducePacketName [00:17:23]name=ofd_packets/00187197 [00:17:23]NVStorageSaveData ofd_packets/00187197 [00:17:23]File name is /storage/ofd_packets/00187197 [00:17:23]Write 301 bytes [00:17:23]NVStorageSaveData done [00:17:23]OFDSenderStorePacket done [00:17:23]KKMCreateOFDPacket done [00:17:23]NVStorageSaveData kkm_last_timestamp [00:17:23]File name is /storage/kkm_last_timestamp [00:17:23]Write 4 bytes [00:17:23]NVStorageSaveData done [00:17:23]ExternCall_PrintAddStr [00:17:23]wPrintStart [00:17:23]Write to MH i2c: 01 00 00 28 11 39 [00:17:23]Write i2c OK [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: 01 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: 01 07 00 [00:17:23]MH_I2C_Read... [00:17:23]Read from MH i2c: 01 07 00 28 11 00 00 00 00 00 FF 0F 4E [00:17:23]RasterBufferAndPrint [00:17:23]line Счет N : (1)412352 [00:17:23]line ИНН: 02508201610067 [00:17:23]line Контрольно-Кассовый Чек [00:17:23]line ПРОДАЖА [00:17:23]line ТРК (МРК, ГНК) : 12 [00:17:23]line Товар: 2710124130 [00:17:23]line Аи-92-К-2 [00:17:23]line 9.350 * 64.20 [00:17:23]line = 600.27 [00:17:23]line НДС 12% НСП 1% [00:17:23]line > о реализуемом товаре [00:17:23]line ОКРУГЛЕНИЕ: -0.27 [00:17:23]line ИТОГО: 600.00 [00:17:23]line Внесено: 600.00 [00:17:23]line СДАЧА: 0.00 [00:17:23]line НСП 1% : 5.31 [00:17:23]line НДС 12% : 63.74 [00:17:23]line Наличными: 600.00 [00:17:23]line Безнал.: 0.00 [00:17:23]line Место: АЗС № 92 "Партнер Нефть" [00:17:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [00:17:23]line СНО: Общий режим [00:17:23]line Чек 263 20.02.2025 00:17 [00:17:23]line Смена: 647 ФФД: 1.0 [00:17:23]line ЗНМ: 0300000118 [00:17:23]line РНМ: 0000000000091857 [00:17:23]line Версия ККМ: 001 [00:17:23]line ФМ: 0000000000871826 [00:17:23]line ФД: 187197 [00:17:23]line ФПД: 81440823539339 [00:17:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T001723&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187197&fm=81440823539339&tin=02508201610067®Number=0000000000091857&sum=60000 [00:17:23]written 0, free lines is 4095 [00:17:23]OFD Sender: Processing packet 187197 [packets to send 49, broken 48] [00:17:23]ProducePacketName [00:17:23]name=ofd_packets/00187197 [00:17:23]OFD Sender: To server: pG, [00:17:23]CommunicateWithHost lk.salyk.kg:30040 [00:17:23]ConnectInit lk.salyk.kg [00:17:24]Connected sock=10 [00:17: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 9E 4D 07 01 44 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 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 07 01 00 00 F4 03 04 00 93 74 B6 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 3D DB 02 00 35 04 06 00 4A 11 EB 5B 76 8B 79 66 75 0D 89 06 32 CB [00:17: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 F8 1D 47 00 C1 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 3D DB 02 00 F4 03 04 00 E6 1A B6 67 B6 04 01 00 00 30 D6 64 66 7B 3A 80 2C [00:17:24]CommunicateWithHost err = 0 [00:17:24]CheckOFDResponse [00:17:24]1017 (14) - 77093643461234 [00:17:24]1041 (16) - 0000000000871826 [00:17:24]1040 (4) - 187197 [00:17:24]1012 (4) - 19.02.2025 17:54 [00:17:24]1206 (1) - 0 [00:17:24]OFD Sender: Remove packet 187197 [00:17:24]ProducePacketName [00:17:24]name=ofd_packets/00187197 [00:17:24]NVStorageDeleteData [00:17:24]Write to MH i2c: 01 00 00 53 11 64 [00:17:24]Write i2c OK [00:17:24]MH_I2C_Read... [00:17:24]Read from MH i2c: 01 [00:17:24]MH_I2C_Read... [00:17:24]Read from MH i2c: 01 07 00 [00:17:24]MH_I2C_Read... [00:17:24]Read from MH i2c: 01 07 00 53 11 00 00 00 00 00 F3 0C 6A [00:17:24]RasterBufferAndPrint [00:17:24]line [00:17:24]line [00:17:24]line [00:17:24]line [00:17:24]line [00:17:24]written 0, free lines is 3321 [00:17:24]MH_Cut [00:17:24]Write to MH i2c: D1 01 00 5A 11 01 3D [00:17:24]Write i2c OK [00:17:24]MH_I2C_Read... [00:17:24]Read from MH i2c: D1 [00:17:24]MH_I2C_Read... [00:17:24]Read from MH i2c: D1 01 00 [00:17:24]MH_I2C_Read... [00:17:24]Read from MH i2c: D1 01 00 5A 11 00 3C [00:17:24]Write to MH i2c: 01 00 00 5B 11 6C [00:17:24]Write i2c OK [00:17:24]MH_I2C_Read... [00:17:24]OFD Sender: No OFD packet to send [00:17:25]*** Cut start [00:17:25]*** Partial cut [00:17:25]*** CUTSNS_PIN = 1 [00:17:25]*** CUTSNS_PIN = 0 [00:17:25]*** Brake cut motor [00:17:25]Read from MH i2c: 01 [00:17:25]MH_I2C_Read... [00:17:25]*** Stop cut motor [00:17:25]*** Cut end [00:17:25]Read from MH i2c: 01 07 00 [00:17:25]MH_I2C_Read... [00:17:25]Read from MH i2c: 01 07 00 5B 11 00 00 00 00 00 FF 0F 81 [00:17:25]process_action close_receipt done [00:17:25]requested_data is exist [00:17:25]produce_requested_data [00:17:25]requested_item fm.sn is exist - process it [00:17:25]wFMCommunicate request_size=4 [00:17:25]MH_SAM_APDU [00:17:25]CAPDU: 80 11 00 00 [00:17:25]Write to MH i2c: E2 08 00 5C 11 80 11 00 00 00 00 00 00 E7 [00:17:25]Write i2c OK [00:17:25]MH_I2C_Read... [00:17:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:25]Read from MH i2c: E2 [00:17:25]MH_I2C_Read... [00:17:25]Read from MH i2c: E2 17 00 [00:17:25]MH_I2C_Read... [00:17:25]Read from MH i2c: E2 17 00 5C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3A [00:17:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:17:25]wFMCommunicate OK [00:17:25]requested_item fd.num is exist - process it [00:17:25]SAM_PROTO_GetFieldsCounters [00:17:25]wFMCommunicate request_size=4 [00:17:25]MH_SAM_APDU [00:17:25]CAPDU: 80 13 00 00 [00:17:25]Write to MH i2c: E2 08 00 5D 11 80 13 00 00 00 00 00 00 EA [00:17:25]Write i2c OK [00:17:25]MH_I2C_Read... [00:17:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:26]Read from MH i2c: E2 [00:17:26]MH_I2C_Read... [00:17:26]Read from MH i2c: E2 62 00 [00:17:26]MH_I2C_Read... [00:17:26]Read from MH i2c: E2 62 00 5D 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 3D DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [00:17:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3D DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:17:26]wFMCommunicate OK [00:17:26]SAM_PROTO_GetFieldsCounters done [00:17:26]requested_item shift.num is exist - process it [00:17:26]requested_item shift.opened is exist - process it [00:17:26]req_shift_opened [00:17:26]FM_GetShiftState [00:17:26]SAM_PROTO_GetShiftState [00:17:26]wFMCommunicate request_size=4 [00:17:26]MH_SAM_APDU [00:17:26]CAPDU: 80 13 01 00 [00:17:26]Write to MH i2c: E2 08 00 5E 11 80 13 01 00 00 00 00 00 EC [00:17:26]Write i2c OK [00:17:26]MH_I2C_Read... [00:17:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:26]Read from MH i2c: E2 [00:17:26]MH_I2C_Read... [00:17:26]Read from MH i2c: E2 0E 00 [00:17:26]MH_I2C_Read... [00:17:26]Read from MH i2c: E2 0E 00 5E 11 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 6B [00:17:26]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [00:17:26]wFMCommunicate OK [00:17:26]SAM_PROTO_GetShiftState done [00:17:26]FM_GetShiftState done [00:17:26]req_shift_opened done [00:17:26]requested_item shift.open_date is exist - process it [00:17:26]req_shift_open_date [00:17:26]req_shift_open_date done [00:17:26]produce_requested_data done [00:17:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187197,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [00:17:26]process_action_free close_receipt [00:17:26]json_value_free [00:17:26]json_value_free done [00:17:26]process_json_proto returns [00:17:26]Send response to host [00:17:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187197,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [00:17:26]free response buf [00:17:26]execute_script done [00:17:26]execute_script returns [00:17:26]free content buf [00:17:26]Sock 7.Close socket [00:17:26]Sock 7.Thread stoped [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:54]OFD Sender: No OFD packet to send [00:17:59]OFD Sender: No OFD packet to send [00:18:04]OFD Sender: No OFD packet to send [00:18:09]OFD Sender: No OFD packet to send [00:18:14]OFD Sender: No OFD packet to send [00:18:19]OFD Sender: No OFD packet to send [00:18:24]OFD Sender: No OFD packet to send [00:18:29]OFD Sender: No OFD packet to send [00:18:34]OFD Sender: No OFD packet to send [00:18:39]OFD Sender: No OFD packet to send [00:18:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:19:00]OFD Sender: No OFD packet to send [00:19:05]OFD Sender: No OFD packet to send [00:19:10]OFD Sender: No OFD packet to send [00:19:15]OFD Sender: No OFD packet to send [00:19:20]OFD Sender: No OFD packet to send [00:19:25]OFD Sender: No OFD packet to send [00:19:30]OFD Sender: No OFD packet to send [00:19:35]OFD Sender: No OFD packet to send [00:19:40]OFD Sender: No OFD packet to send [00:19:45]OFD Sender: No OFD packet to send [00:19:50]OFD Sender: No OFD packet to send [00:19:55]OFD Sender: No OFD packet to send [00:19:55]accept exits with 9 [00:19:55]New connection [00:19:55]New thread 3066510692 created [00:19:55]Thread 3066654052 joined [00:19:55]Waiting for new connection... [00:19:55] Sock 9.Parse request [00:19:55]Sock 9.Check first char [00:19:55]Sock 9.First char is OK [00:19:55]request: POST /json_proto HTTP/1.0 [00:19:55]Method: POST [00:19:55]URL: /json_proto [00:19:55]Method is POST - this is cgi request [00:19:55]url: /json_proto [00:19:55]query_string will be loaded in cgi processing [00:19:55]execute_cgi json_proto POST (null) [00:19:55]execute_cgi path=json_proto method=POST [00:19:55]POST find Content-Length [00:19:55]Host: 172.17.46.131:8080 [00:19:55]Content-Length: 215 [00:19:55]Content-Type: application/json [00:19:55] [00:19:55]POST finish read [00:19:55]Found Content-Length = 215 [00:19:55]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:19:55]execute_script... [00:19:55]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:19:55]POST & json_proto [00:19:55]process_json_proto [00:19:55]json parsed OK: [00:19:55]protocol is kg_v1.0 [00:19:55]action value=get_value [00:19:55]process_action get_value [00:19:55]cmd_get_value [00:19:55]process_action get_value done [00:19:55]requested_data is exist [00:19:55]produce_requested_data [00:19:55]requested_item kkm.sn is exist - process it [00:19:55]requested_item kkm.ver is exist - process it [00:19:55]requested_item fm.sn is exist - process it [00:19:55]wFMCommunicate request_size=4 [00:19:55]MH_SAM_APDU [00:19:55]CAPDU: 80 11 00 00 [00:19:55]Write to MH i2c: E2 08 00 5F 11 80 11 00 00 00 00 00 00 EA [00:19:55]Write i2c OK [00:19:55]MH_I2C_Read... [00:19:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:55]Read from MH i2c: E2 [00:19:55]MH_I2C_Read... [00:19:55]Read from MH i2c: E2 17 00 [00:19:55]MH_I2C_Read... [00:19:55]Read from MH i2c: E2 17 00 5F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3D [00:19:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:19:55]wFMCommunicate OK [00:19:55]requested_item fd.num is exist - process it [00:19:55]SAM_PROTO_GetFieldsCounters [00:19:55]wFMCommunicate request_size=4 [00:19:55]MH_SAM_APDU [00:19:55]CAPDU: 80 13 00 00 [00:19:55]Write to MH i2c: E2 08 00 60 11 80 13 00 00 00 00 00 00 ED [00:19:55]Write i2c OK [00:19:55]MH_I2C_Read... [00:19:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:55]Read from MH i2c: E2 [00:19:55]MH_I2C_Read... [00:19:55]Read from MH i2c: E2 62 00 [00:19:55]MH_I2C_Read... [00:19:55]Read from MH i2c: E2 62 00 60 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 3D DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 CE [00:19: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 3D DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:55]wFMCommunicate OK [00:19:55]SAM_PROTO_GetFieldsCounters done [00:19:55]requested_item shift.num is exist - process it [00:19:55]requested_item shift.opened is exist - process it [00:19:55]req_shift_opened [00:19:55]FM_GetShiftState [00:19:55]SAM_PROTO_GetShiftState [00:19:55]wFMCommunicate request_size=4 [00:19:55]MH_SAM_APDU [00:19:55]CAPDU: 80 13 01 00 [00:19:55]Write to MH i2c: E2 08 00 61 11 80 13 01 00 00 00 00 00 EF [00:19:55]Write i2c OK [00:19:55]MH_I2C_Read... [00:19:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:55]Read from MH i2c: E2 [00:19:55]MH_I2C_Read... [00:19:55]Read from MH i2c: E2 0E 00 [00:19:55]MH_I2C_Read... [00:19:55]Read from MH i2c: E2 0E 00 61 11 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 6E [00:19:55]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [00:19:55]wFMCommunicate OK [00:19:55]SAM_PROTO_GetShiftState done [00:19:55]FM_GetShiftState done [00:19:55]req_shift_opened done [00:19:55]requested_item shift.open_date is exist - process it [00:19:56]req_shift_open_date [00:19:56]req_shift_open_date done [00:19:56]produce_requested_data done [00:19:56]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":187197,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [00:19:56]process_action_free get_value [00:19:56]json_value_free [00:19:56]json_value_free done [00:19:56]process_json_proto returns [00:19:56]Send response to host [00:19:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":187197,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [00:19:56]free response buf [00:19:56]execute_script done [00:19:56]execute_script returns [00:19:56]free content buf [00:19:56]Sock 9.Close socket [00:19:56]Sock 9.Thread stoped [00:19:56]accept exits with 10 [00:19:56]New connection [00:19:56]New thread 3066654052 created [00:19:56]Thread 3066510692 joined [00:19:56]Waiting for new connection... [00:19:56] Sock 10.Parse request [00:19:56]Sock 10.Check first char [00:19:56]Sock 10.First char is OK [00:19:56]request: POST /json_proto HTTP/1.0 [00:19:56]Method: POST [00:19:56]URL: /json_proto [00:19:56]Method is POST - this is cgi request [00:19:56]url: /json_proto [00:19:56]query_string will be loaded in cgi processing [00:19:56]execute_cgi json_proto POST (null) [00:19:56]execute_cgi path=json_proto method=POST [00:19:56]POST find Content-Length [00:19:56]Host: 172.17.46.131:8080 [00:19:56]Content-Length: 331 [00:19:56]Content-Type: application/json [00:19:56] [00:19:56]POST finish read [00:19:56]Found Content-Length = 331 [00:19:56]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:19:56]execute_script... [00:19:56]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:19:56]POST & json_proto [00:19:56]process_json_proto [00:19:56]json parsed OK: [00:19:56]protocol is kg_v1.0 [00:19:56]action value=get_value [00:19:56]process_action get_value [00:19:56]cmd_get_value [00:19:56]process_action get_value done [00:19:56]requested_data is exist [00:19:56]produce_requested_data [00:19:56]requested_item fm.sale.total is exist - process it [00:19:56]SAM_PROTO_GetFMData [00:19:56]wFMCommunicate request_size=4 [00:19:56]MH_SAM_APDU [00:19:56]CAPDU: 80 13 03 00 [00:19:56]Write to MH i2c: E2 08 00 62 11 80 13 03 00 00 00 00 00 F2 [00:19:56]Write i2c OK [00:19:56]MH_I2C_Read... [00:19:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:56]Read from MH i2c: E2 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 FD 00 [00:19:56]MH_I2C_Read... [00:19:56]Read from MH i2c: E2 FD 00 62 11 00 C1 04 85 04 BD 04 6E 04 04 00 2F D6 02 00 69 04 A3 00 6F 04 04 00 1C D6 02 00 B1 04 05 00 8F 75 C1 1B 04 70 04 05 00 90 4B 8B 9A 03 72 04 04 00 FF 29 36 81 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 FF 8B B9 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 17 43 4F 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 4C [00:19:56]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 2F D6 02 00 69 04 A3 00 6F 04 04 00 1C D6 02 00 B1 04 05 00 8F 75 C1 1B 04 70 04 05 00 90 4B 8B 9A 03 72 04 04 00 FF 29 36 81 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 FF 8B B9 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 17 43 4F 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:19:56]wFMCommunicate OK [00:19:56]wFMCommunicate request_size=4 [00:19:56]MH_SAM_APDU [00:19:56]CAPDU: 80 17 00 00 [00:19:56]Write to MH i2c: E2 08 00 63 11 80 17 00 00 00 00 00 00 F4 [00:19:56]Write i2c OK [00:19:56]MH_I2C_Read... [00:19:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:57]Read from MH i2c: E2 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 FD 00 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 FD 00 63 11 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 BD [00:19:57]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:19:57]wFMCommunicate OK [00:19:57]wFMCommunicate request_size=4 [00:19:57]MH_SAM_APDU [00:19:57]CAPDU: 80 17 00 00 [00:19:57]Write to MH i2c: E2 08 00 64 11 80 17 00 00 00 00 00 00 F5 [00:19:57]Write i2c OK [00:19:57]MH_I2C_Read... [00:19:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:57]Read from MH i2c: E2 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 FD 00 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 FD 00 64 11 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 95 [00:19:57]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:19:57]wFMCommunicate OK [00:19:57]wFMCommunicate request_size=4 [00:19:57]MH_SAM_APDU [00:19:57]CAPDU: 80 17 00 00 [00:19:57]Write to MH i2c: E2 08 00 65 11 80 17 00 00 00 00 00 00 F6 [00:19:57]Write i2c OK [00:19:57]MH_I2C_Read... [00:19:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:57]Read from MH i2c: E2 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 FD 00 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 FD 00 65 11 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 7B [00:19:57]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:19:57]wFMCommunicate OK [00:19:57]wFMCommunicate request_size=4 [00:19:57]MH_SAM_APDU [00:19:57]CAPDU: 80 17 00 00 [00:19:57]Write to MH i2c: E2 08 00 66 11 80 17 00 00 00 00 00 00 F7 [00:19:57]Write i2c OK [00:19:57]MH_I2C_Read... [00:19:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:19:57]Read from MH i2c: E2 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 DE 00 [00:19:57]MH_I2C_Read... [00:19:57]Read from MH i2c: E2 DE 00 66 11 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D6 [00:19:57]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:19:57]wFMCommunicate OK [00:19:57]SAM_PROTO_GetFMData done [00:19:57]requested_item fm.sale_refund.total is exist - process it [00:19:57]requested_item fm.buy.total is exist - process it [00:19:57]requested_item shift.sale.total is exist - process it [00:19:57]SAM_PROTO_GetShiftData [00:19:57]wFMCommunicate request_size=4 [00:19:57]MH_SAM_APDU [00:19:57]CAPDU: 80 13 02 00 [00:19:57]Write to MH i2c: E2 08 00 67 11 80 13 02 00 00 00 00 00 F6 [00:19:57]Write i2c OK [00:19:57]MH_I2C_Read... [00:19:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:58]Read from MH i2c: E2 [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: E2 FD 00 [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: E2 FD 00 67 11 00 B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 65 D3 57 01 70 04 04 00 70 BB 00 01 72 04 03 00 F5 17 57 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 59 85 24 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 10 0B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 1C [00:19:58]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 65 D3 57 01 70 04 04 00 70 BB 00 01 72 04 03 00 F5 17 57 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 59 85 24 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 10 0B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:19:58]wFMCommunicate OK [00:19:58]wFMCommunicate request_size=4 [00:19:58]MH_SAM_APDU [00:19:58]CAPDU: 80 17 00 00 [00:19:58]Write to MH i2c: E2 08 00 68 11 80 17 00 00 00 00 00 00 F9 [00:19:58]Write i2c OK [00:19:58]MH_I2C_Read... [00:19:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:58]Read from MH i2c: E2 [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: E2 FD 00 [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: E2 FD 00 68 11 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 12 [00:19:58]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:19:58]wFMCommunicate OK [00:19:58]wFMCommunicate request_size=4 [00:19:58]MH_SAM_APDU [00:19:58]CAPDU: 80 17 00 00 [00:19:58]Write to MH i2c: E2 08 00 69 11 80 17 00 00 00 00 00 00 FA [00:19:58]Write i2c OK [00:19:58]MH_I2C_Read... [00:19:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:58]Read from MH i2c: E2 [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: E2 FD 00 [00:19:58]MH_I2C_Read... [00:19:58]Read from MH i2c: E2 FD 00 69 11 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 B3 [00:19:58]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:19:58]wFMCommunicate OK [00:19:58]wFMCommunicate request_size=4 [00:19:58]MH_SAM_APDU [00:19:58]CAPDU: 80 17 00 00 [00:19:58]Write to MH i2c: E2 08 00 6A 11 80 17 00 00 00 00 00 00 FB [00:19:58]Write i2c OK [00:19:58]MH_I2C_Read... [00:19:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:59]Read from MH i2c: E2 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 FD 00 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 FD 00 6A 11 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 73 [00:19:59]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:19:59]wFMCommunicate OK [00:19:59]wFMCommunicate request_size=4 [00:19:59]MH_SAM_APDU [00:19:59]CAPDU: 80 17 00 00 [00:19:59]Write to MH i2c: E2 08 00 6B 11 80 17 00 00 00 00 00 00 FC [00:19:59]Write i2c OK [00:19:59]MH_I2C_Read... [00:19:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:19:59]Read from MH i2c: E2 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 CE 00 [00:19:59]MH_I2C_Read... [00:19:59]Read from MH i2c: E2 CE 00 6B 11 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E1 [00:19:59]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:59]wFMCommunicate OK [00:19:59]SAM_PROTO_GetShiftData done [00:19:59]requested_item shift.sale.total_cash is exist - process it [00:19:59]requested_item shift.sale_refund.total is exist - process it [00:19:59]requested_item shift.sale_refund.total_cash is exist - process it [00:19:59]requested_item shift.buy.total is exist - process it [00:19:59]requested_item shift.buy.total_cash is exist - process it [00:19:59]produce_requested_data done [00:19:59]produce_requested_data return {"fm.sale.total":176455325.59,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":225329.65,"shift.sale.total_cash":168252.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:19:59]process_action_free get_value [00:19:59]json_value_free [00:19:59]json_value_free done [00:19:59]process_json_proto returns [00:19:59]Send response to host [00:19:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176455325.59,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":225329.65,"shift.sale.total_cash":168252.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:19:59]free response buf [00:19:59]execute_script done [00:19:59]execute_script returns [00:19:59]free content buf [00:19:59]Sock 10.Close socket [00:19:59]Sock 10.Thread stoped [00:19:59]accept exits with 9 [00:19:59]New connection [00:19:59]New thread 3066510692 created [00:19:59]Thread 3066654052 joined [00:19:59]Waiting for new connection... [00:19:59] Sock 9.Parse request [00:19:59]Sock 9.Check first char [00:19:59]Sock 9.First char is OK [00:19:59]request: POST /json_proto HTTP/1.0 [00:19:59]Method: POST [00:19:59]URL: /json_proto [00:19:59]Method is POST - this is cgi request [00:19:59]url: /json_proto [00:19:59]query_string will be loaded in cgi processing [00:19:59]execute_cgi json_proto POST (null) [00:19:59]execute_cgi path=json_proto method=POST [00:19:59]POST find Content-Length [00:19:59]Host: 172.17.46.131:8080 [00:19:59]Content-Length: 331 [00:19:59]Content-Type: application/json [00:19:59] [00:19:59]POST finish read [00:19:59]Found Content-Length = 331 [00:19:59]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:19:59]execute_script... [00:19:59]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:19:59]POST & json_proto [00:19:59]process_json_proto [00:19:59]json parsed OK: [00:19:59]protocol is kg_v1.0 [00:19:59]action value=get_value [00:19:59]process_action get_value [00:19:59]cmd_get_value [00:19:59]process_action get_value done [00:19:59]requested_data is exist [00:19:59]produce_requested_data [00:19:59]requested_item fm.sale.total is exist - process it [00:19:59]SAM_PROTO_GetFMData [00:19:59]wFMCommunicate request_size=4 [00:19:59]MH_SAM_APDU [00:19:59]CAPDU: 80 13 03 00 [00:19:59]Write to MH i2c: E2 08 00 6C 11 80 13 03 00 00 00 00 00 FC [00:19:59]Write i2c OK [00:19:59]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 [00:20:00]MH_I2C_Read... [00:20:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:00]Read from MH i2c: E2 FD 00 [00:20:00]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 FD 00 6C 11 00 C1 04 85 04 BD 04 6E 04 04 00 2F D6 02 00 69 04 A3 00 6F 04 04 00 1C D6 02 00 B1 04 05 00 8F 75 C1 1B 04 70 04 05 00 90 4B 8B 9A 03 72 04 04 00 FF 29 36 81 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 FF 8B B9 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 17 43 4F 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 56 [00:20:00]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 2F D6 02 00 69 04 A3 00 6F 04 04 00 1C D6 02 00 B1 04 05 00 8F 75 C1 1B 04 70 04 05 00 90 4B 8B 9A 03 72 04 04 00 FF 29 36 81 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 FF 8B B9 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 17 43 4F 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:00]wFMCommunicate OK [00:20:00]wFMCommunicate request_size=4 [00:20:00]MH_SAM_APDU [00:20:00]CAPDU: 80 17 00 00 [00:20:00]Write to MH i2c: E2 08 00 6D 11 80 17 00 00 00 00 00 00 FE [00:20:00]OFD Sender: No OFD packet to send [00:20:00]Write i2c OK [00:20:00]MH_I2C_Read... [00:20:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:00]Read from MH i2c: E2 [00:20:00]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 FD 00 [00:20:00]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 FD 00 6D 11 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 C7 [00:20:00]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:00]wFMCommunicate OK [00:20:00]wFMCommunicate request_size=4 [00:20:00]MH_SAM_APDU [00:20:00]CAPDU: 80 17 00 00 [00:20:00]Write to MH i2c: E2 08 00 6E 11 80 17 00 00 00 00 00 00 FF [00:20:00]Write i2c OK [00:20:00]MH_I2C_Read... [00:20:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:00]Read from MH i2c: E2 [00:20:00]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 FD 00 [00:20:00]MH_I2C_Read... [00:20:00]Read from MH i2c: E2 FD 00 6E 11 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 9F [00:20:00]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:00]wFMCommunicate OK [00:20:00]wFMCommunicate request_size=4 [00:20:00]MH_SAM_APDU [00:20:00]CAPDU: 80 17 00 00 [00:20:00]Write to MH i2c: E2 08 00 6F 11 80 17 00 00 00 00 00 00 00 [00:20:01]Write i2c OK [00:20:01]MH_I2C_Read... [00:20:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:01]Read from MH i2c: E2 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: E2 FD 00 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: E2 FD 00 6F 11 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 85 [00:20:01]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:01]wFMCommunicate OK [00:20:01]wFMCommunicate request_size=4 [00:20:01]MH_SAM_APDU [00:20:01]CAPDU: 80 17 00 00 [00:20:01]Write to MH i2c: E2 08 00 70 11 80 17 00 00 00 00 00 00 01 [00:20:01]Write i2c OK [00:20:01]MH_I2C_Read... [00:20:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:20:01]Read from MH i2c: E2 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: E2 DE 00 [00:20:01]MH_I2C_Read... [00:20:01]Read from MH i2c: E2 DE 00 70 11 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E0 [00:20:01]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:01]wFMCommunicate OK [00:20:01]SAM_PROTO_GetFMData done [00:20:01]requested_item fm.sale_refund.total is exist - process it [00:20:01]requested_item fm.buy.total is exist - process it [00:20:01]requested_item shift.sale.total is exist - process it [00:20:01]SAM_PROTO_GetShiftData [00:20:01]wFMCommunicate request_size=4 [00:20:01]MH_SAM_APDU [00:20:01]CAPDU: 80 13 02 00 [00:20:01]Write to MH i2c: E2 08 00 71 11 80 13 02 00 00 00 00 00 00 [00:20:01]Write i2c OK [00:20:01]MH_I2C_Read... [00:20:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:02]Read from MH i2c: E2 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 FD 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 FD 00 71 11 00 B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 65 D3 57 01 70 04 04 00 70 BB 00 01 72 04 03 00 F5 17 57 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 59 85 24 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 10 0B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 26 [00:20:02]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 65 D3 57 01 70 04 04 00 70 BB 00 01 72 04 03 00 F5 17 57 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 59 85 24 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 10 0B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:20:02]wFMCommunicate OK [00:20:02]wFMCommunicate request_size=4 [00:20:02]MH_SAM_APDU [00:20:02]CAPDU: 80 17 00 00 [00:20:02]Write to MH i2c: E2 08 00 72 11 80 17 00 00 00 00 00 00 03 [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:02]Read from MH i2c: E2 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 FD 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 FD 00 72 11 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 1C [00:20:02]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:20:02]wFMCommunicate OK [00:20:02]wFMCommunicate request_size=4 [00:20:02]MH_SAM_APDU [00:20:02]CAPDU: 80 17 00 00 [00:20:02]Write to MH i2c: E2 08 00 73 11 80 17 00 00 00 00 00 00 04 [00:20:02]Write i2c OK [00:20:02]MH_I2C_Read... [00:20:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:02]Read from MH i2c: E2 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 FD 00 [00:20:02]MH_I2C_Read... [00:20:02]Read from MH i2c: E2 FD 00 73 11 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 BD [00:20:03]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:20:03]wFMCommunicate OK [00:20:03]wFMCommunicate request_size=4 [00:20:03]MH_SAM_APDU [00:20:03]CAPDU: 80 17 00 00 [00:20:03]Write to MH i2c: E2 08 00 74 11 80 17 00 00 00 00 00 00 05 [00:20:03]Write i2c OK [00:20:03]MH_I2C_Read... [00:20:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:03]Read from MH i2c: E2 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: E2 FD 00 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: E2 FD 00 74 11 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 7D [00:20:03]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:20:03]wFMCommunicate OK [00:20:03]wFMCommunicate request_size=4 [00:20:03]MH_SAM_APDU [00:20:03]CAPDU: 80 17 00 00 [00:20:03]Write to MH i2c: E2 08 00 75 11 80 17 00 00 00 00 00 00 06 [00:20:03]Write i2c OK [00:20:03]MH_I2C_Read... [00:20:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:20:03]Read from MH i2c: E2 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: E2 CE 00 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: E2 CE 00 75 11 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EB [00:20:03]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:03]wFMCommunicate OK [00:20:03]SAM_PROTO_GetShiftData done [00:20:03]requested_item shift.sale.total_cash is exist - process it [00:20:03]requested_item shift.sale_refund.total is exist - process it [00:20:03]requested_item shift.sale_refund.total_cash is exist - process it [00:20:03]requested_item shift.buy.total is exist - process it [00:20:03]requested_item shift.buy.total_cash is exist - process it [00:20:03]produce_requested_data done [00:20:03]produce_requested_data return {"fm.sale.total":176455325.59,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":225329.65,"shift.sale.total_cash":168252.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:03]process_action_free get_value [00:20:03]json_value_free [00:20:03]json_value_free done [00:20:03]process_json_proto returns [00:20:03]Send response to host [00:20:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176455325.59,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":225329.65,"shift.sale.total_cash":168252.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:03]free response buf [00:20:03]execute_script done [00:20:03]execute_script returns [00:20:03]free content buf [00:20:03]Sock 9.Close socket [00:20:03]Sock 9.Thread stoped [00:20:03]accept exits with 7 [00:20:03]New connection [00:20:03]New thread 3066654052 created [00:20:03]Thread 3066510692 joined [00:20:03]Waiting for new connection... [00:20:03] Sock 7.Parse request [00:20:03]Sock 7.Check first char [00:20:03]Sock 7.First char is OK [00:20:03]request: POST /json_proto HTTP/1.0 [00:20:03]Method: POST [00:20:03]URL: /json_proto [00:20:03]Method is POST - this is cgi request [00:20:03]url: /json_proto [00:20:03]query_string will be loaded in cgi processing [00:20:03]execute_cgi json_proto POST (null) [00:20:03]execute_cgi path=json_proto method=POST [00:20:03]POST find Content-Length [00:20:03]Host: 172.17.46.131:8080 [00:20:03]Content-Length: 256 [00:20:03]Content-Type: application/json [00:20:03] [00:20:03]POST finish read [00:20:03]Found Content-Length = 256 [00:20:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0420\u044B\u0441\u043A\u0443\u043B\u043E\u0432 \u0416." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:03]execute_script... [00:20:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0420\u044B\u0441\u043A\u0443\u043B\u043E\u0432 \u0416." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:03]POST & json_proto [00:20:03]process_json_proto [00:20:03]json parsed OK: [00:20:03]protocol is kg_v1.0 [00:20:03]action value=x_report [00:20:03]process_action x_report [00:20:03]cmd_x_report [00:20:03]MH_GetDate [00:20:03]Write to MH i2c: F0 00 00 76 11 76 [00:20:03]Write i2c OK [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: F0 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: F0 09 00 [00:20:03]MH_I2C_Read... [00:20:03]Read from MH i2c: F0 09 00 76 11 00 35 75 B6 67 7E 41 4F 65 B9 [00:20:04]GetLastDocTimeStamp 1740010643 [00:20:04]current date 1740010805 [00:20:04]FM_GetShiftState [00:20:04]SAM_PROTO_GetShiftState [00:20:04]wFMCommunicate request_size=4 [00:20:04]MH_SAM_APDU [00:20:04]CAPDU: 80 13 01 00 [00:20:04]Write to MH i2c: E2 08 00 77 11 80 13 01 00 00 00 00 00 05 [00:20:04]Write i2c OK [00:20:04]MH_I2C_Read... [00:20:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:04]Read from MH i2c: E2 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 0E 00 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 0E 00 77 11 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 84 [00:20:04]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [00:20:04]wFMCommunicate OK [00:20:04]SAM_PROTO_GetShiftState done [00:20:04]FM_GetShiftState done [00:20:04]KKMCreateXReportDocument [00:20:04]Load OK [00:20:04]Malloc new data [00:20:04]MH_GetDate [00:20:04]Write to MH i2c: F0 00 00 78 11 78 [00:20:04]Write i2c OK [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: F0 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: F0 09 00 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: F0 09 00 78 11 00 35 75 B6 67 7E 41 4F 65 BB [00:20:04]Malloc new data [00:20:04]Malloc new data [00:20:04]wFMCommunicate request_size=4 [00:20:04]MH_SAM_APDU [00:20:04]CAPDU: 80 11 00 00 [00:20:04]Write to MH i2c: E2 08 00 79 11 80 11 00 00 00 00 00 00 04 [00:20:04]Write i2c OK [00:20:04]MH_I2C_Read... [00:20:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:04]Read from MH i2c: E2 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 17 00 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 17 00 79 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 57 [00:20:04]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:04]wFMCommunicate OK [00:20:04]SAM_PROTO_GetFieldsCounters [00:20:04]wFMCommunicate request_size=4 [00:20:04]MH_SAM_APDU [00:20:04]CAPDU: 80 13 00 00 [00:20:04]Write to MH i2c: E2 08 00 7A 11 80 13 00 00 00 00 00 00 07 [00:20:04]Write i2c OK [00:20:04]MH_I2C_Read... [00:20:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:04]Read from MH i2c: E2 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 62 00 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 62 00 7A 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 3D DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 E8 [00:20: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 3D DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:04]wFMCommunicate OK [00:20:04]SAM_PROTO_GetFieldsCounters done [00:20:04]Malloc new data [00:20:04]Malloc new data [00:20:04]Malloc new data [00:20:04]KKMCreateXReportDocument OK [00:20:04]KKMSetXReportData OK [00:20:04]KKMPrepareXReportFMData [00:20:04]SAM_PROTO_GetShiftData [00:20:04]wFMCommunicate request_size=4 [00:20:04]MH_SAM_APDU [00:20:04]CAPDU: 80 13 02 00 [00:20:04]Write to MH i2c: E2 08 00 7B 11 80 13 02 00 00 00 00 00 0A [00:20:04]Write i2c OK [00:20:04]MH_I2C_Read... [00:20:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:04]Read from MH i2c: E2 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 FD 00 [00:20:04]MH_I2C_Read... [00:20:04]Read from MH i2c: E2 FD 00 7B 11 00 B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 65 D3 57 01 70 04 04 00 70 BB 00 01 72 04 03 00 F5 17 57 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 59 85 24 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 10 0B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 30 [00:20:04]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 65 D3 57 01 70 04 04 00 70 BB 00 01 72 04 03 00 F5 17 57 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 59 85 24 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 10 0B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:20:05]wFMCommunicate OK [00:20:05]wFMCommunicate request_size=4 [00:20:05]MH_SAM_APDU [00:20:05]CAPDU: 80 17 00 00 [00:20:05]Write to MH i2c: E2 08 00 7C 11 80 17 00 00 00 00 00 00 0D [00:20:05]Write i2c OK [00:20:05]MH_I2C_Read... [00:20:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:05]Read from MH i2c: E2 [00:20:05]MH_I2C_Read... [00:20:05]OFD Sender: No OFD packet to send [00:20:05]Read from MH i2c: E2 FD 00 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 FD 00 7C 11 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 26 [00:20:05]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:20:05]wFMCommunicate OK [00:20:05]wFMCommunicate request_size=4 [00:20:05]MH_SAM_APDU [00:20:05]CAPDU: 80 17 00 00 [00:20:05]Write to MH i2c: E2 08 00 7D 11 80 17 00 00 00 00 00 00 0E [00:20:05]Write i2c OK [00:20:05]MH_I2C_Read... [00:20:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:05]Read from MH i2c: E2 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 FD 00 [00:20:05]MH_I2C_Read... [00:20:05]Read from MH i2c: E2 FD 00 7D 11 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 C7 [00:20:05]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:20:06]wFMCommunicate OK [00:20:06]wFMCommunicate request_size=4 [00:20:06]MH_SAM_APDU [00:20:06]CAPDU: 80 17 00 00 [00:20:06]Write to MH i2c: E2 08 00 7E 11 80 17 00 00 00 00 00 00 0F [00:20:06]Write i2c OK [00:20:06]MH_I2C_Read... [00:20:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:06]Read from MH i2c: E2 [00:20:06]MH_I2C_Read... [00:20:06]Read from MH i2c: E2 FD 00 [00:20:06]MH_I2C_Read... [00:20:06]Read from MH i2c: E2 FD 00 7E 11 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 87 [00:20:06]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:20:06]wFMCommunicate OK [00:20:06]wFMCommunicate request_size=4 [00:20:06]MH_SAM_APDU [00:20:06]CAPDU: 80 17 00 00 [00:20:06]Write to MH i2c: E2 08 00 7F 11 80 17 00 00 00 00 00 00 10 [00:20:06]Write i2c OK [00:20:06]MH_I2C_Read... [00:20:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:20:06]Read from MH i2c: E2 [00:20:06]MH_I2C_Read... [00:20:06]Read from MH i2c: E2 CE 00 [00:20:06]MH_I2C_Read... [00:20:06]Read from MH i2c: E2 CE 00 7F 11 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F5 [00:20:06]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:07]wFMCommunicate OK [00:20:07]SAM_PROTO_GetShiftData done [00:20:07]1194 (1197) - счетчики итогов смены [00:20:07] 1134 (4) - 263 - количество чеков со всеми признаками расчетов [00:20:07] 1129 (158) - счетчики операций «приход» [00:20:07] 1135 (4) - 263 - количество чеков по признаку расчетов [00:20:07] 1201 (4) - 225329.65 - общая итоговая сумма в чеках [00:20:07] 1136 (4) - 168252.00 - итоговая сумма в чеках наличными [00:20:07] 1138 (3) - 57077.65 - итоговая сумма в чеках безналичными [00:20:07] 1024 (123) - суммы налогов [00:20:07] 1006 (9) - суммы НДС [00:20:07] 1010 (1) - 0% - код ставки НДС [00:20:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:07] 1006 (12) - суммы НДС [00:20:07] 1010 (1) - 12% - код ставки НДС [00:20:07] 1011 (3) - 23934.33 - сумма НДС по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 0% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (12) - суммы НСП [00:20:07] 1014 (1) - 1% - код ставки НСП [00:20:07] 1015 (3) - 1994.40 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 2% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 3% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 5% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 0,50% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 1,50% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1130 (141) - счетчики операций «возврат прихода» [00:20:07] 1135 (4) - 0 - количество чеков по признаку расчетов [00:20:07] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:20:07] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:20:07] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:20:07] 1024 (117) - суммы налогов [00:20:07] 1006 (9) - суммы НДС [00:20:07] 1010 (1) - 0% - код ставки НДС [00:20:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:07] 1006 (9) - суммы НДС [00:20:07] 1010 (1) - 12% - код ставки НДС [00:20:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 0% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 1% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 2% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 3% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 5% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 0,50% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 1,50% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1131 (141) - счетчики операций «расход» [00:20:07] 1135 (4) - 0 - количество чеков по признаку расчетов [00:20:07] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:20:07] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:20:07] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:20:07] 1024 (117) - суммы налогов [00:20:07] 1006 (9) - суммы НДС [00:20:07] 1010 (1) - 0% - код ставки НДС [00:20:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:07] 1006 (9) - суммы НДС [00:20:07] 1010 (1) - 12% - код ставки НДС [00:20:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 0% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 1% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 2% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 3% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 5% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 0,50% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 1,50% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1132 (141) - счетчики операций «возврат расхода» [00:20:07] 1135 (4) - 0 - количество чеков по признаку расчетов [00:20:07] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:20:07] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:20:07] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:20:07] 1024 (117) - суммы налогов [00:20:07] 1006 (9) - суммы НДС [00:20:07] 1010 (1) - 0% - код ставки НДС [00:20:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:07] 1006 (9) - суммы НДС [00:20:07] 1010 (1) - 12% - код ставки НДС [00:20:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 0% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 1% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 2% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 3% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 5% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 0,50% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1007 (9) - суммы НСП [00:20:07] 1014 (1) - 1,50% - код ставки НСП [00:20:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:20:07] 1133 (588) - - счетчики коррекции - не используются [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1194 (04AA) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1134 (046E) [00:20:07]Malloc new data [00:20:07]Processing tag 1129 (0469) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1135 (046F) [00:20:07]Malloc new data [00:20:07]Processing tag 1201 (04B1) [00:20:07]Malloc new data [00:20:07]Processing tag 1136 (0470) [00:20:07]Malloc new data [00:20:07]Processing tag 1138 (0472) [00:20:07]Malloc new data [00:20:07]Processing tag 1024 (0400) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1006 (03EE) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1010 (03F2) [00:20:07]Malloc new data [00:20:07]Processing tag 1011 (03F3) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1006 (03EE) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1010 (03F2) [00:20:07]Malloc new data [00:20:07]Processing tag 1011 (03F3) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1007 (03EF) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1014 (03F6) [00:20:07]Malloc new data [00:20:07]Processing tag 1015 (03F7) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1007 (03EF) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1014 (03F6) [00:20:07]Malloc new data [00:20:07]Processing tag 1015 (03F7) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1007 (03EF) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1014 (03F6) [00:20:07]Malloc new data [00:20:07]Processing tag 1015 (03F7) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1007 (03EF) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1014 (03F6) [00:20:07]Malloc new data [00:20:07]Processing tag 1015 (03F7) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1007 (03EF) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1014 (03F6) [00:20:07]Malloc new data [00:20:07]Processing tag 1015 (03F7) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1007 (03EF) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1014 (03F6) [00:20:07]Malloc new data [00:20:07]Processing tag 1015 (03F7) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1007 (03EF) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1014 (03F6) [00:20:07]Malloc new data [00:20:07]Processing tag 1015 (03F7) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]SetTLVBufToDocument err=0 [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1130 (046A) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1135 (046F) [00:20:07]Malloc new data [00:20:07]Processing tag 1201 (04B1) [00:20:07]Malloc new data [00:20:07]Processing tag 1136 (0470) [00:20:07]Malloc new data [00:20:07]Processing tag 1138 (0472) [00:20:07]Malloc new data [00:20:07]Processing tag 1024 (0400) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1006 (03EE) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1010 (03F2) [00:20:07]Malloc new data [00:20:07]Processing tag 1011 (03F3) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1006 (03EE) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1010 (03F2) [00:20:07]Malloc new data [00:20:07]Processing tag 1011 (03F3) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1007 (03EF) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1014 (03F6) [00:20:07]Malloc new data [00:20:07]Processing tag 1015 (03F7) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1007 (03EF) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1014 (03F6) [00:20:07]Malloc new data [00:20:07]Processing tag 1015 (03F7) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1007 (03EF) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1014 (03F6) [00:20:07]Malloc new data [00:20:07]Processing tag 1015 (03F7) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1007 (03EF) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1014 (03F6) [00:20:07]Malloc new data [00:20:07]Processing tag 1015 (03F7) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1007 (03EF) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1014 (03F6) [00:20:07]Malloc new data [00:20:07]Processing tag 1015 (03F7) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1007 (03EF) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1014 (03F6) [00:20:07]Malloc new data [00:20:07]Processing tag 1015 (03F7) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1007 (03EF) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1014 (03F6) [00:20:07]Malloc new data [00:20:07]Processing tag 1015 (03F7) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]SetTLVBufToDocument err=0 [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1131 (046B) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1135 (046F) [00:20:07]Malloc new data [00:20:07]Processing tag 1201 (04B1) [00:20:07]Malloc new data [00:20:07]Processing tag 1136 (0470) [00:20:07]Malloc new data [00:20:07]Processing tag 1138 (0472) [00:20:07]Malloc new data [00:20:07]Processing tag 1024 (0400) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1006 (03EE) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1010 (03F2) [00:20:07]Malloc new data [00:20:07]Processing tag 1011 (03F3) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1006 (03EE) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1010 (03F2) [00:20:07]Malloc new data [00:20:07]Processing tag 1011 (03F3) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1007 (03EF) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1014 (03F6) [00:20:07]Malloc new data [00:20:07]Processing tag 1015 (03F7) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1007 (03EF) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1014 (03F6) [00:20:07]Malloc new data [00:20:07]Processing tag 1015 (03F7) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1007 (03EF) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1014 (03F6) [00:20:07]Malloc new data [00:20:07]Processing tag 1015 (03F7) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1007 (03EF) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1014 (03F6) [00:20:07]Malloc new data [00:20:07]Processing tag 1015 (03F7) [00:20:07]Malloc new data [00:20:07]SetTLVBufToDocument err=0 [00:20:07]Processing tag 1007 (03EF) [00:20:07]Load OK [00:20:07]SetTLVBufToDocument [00:20:07]Processing tag 1014 (03F6) [00:20:07]Malloc new data [00:20:07]Processing tag 1015 (03F7) [00:20:07]Malloc new data [00:20:08]SetTLVBufToDocument err=0 [00:20:08]Processing tag 1007 (03EF) [00:20:08]Load OK [00:20:08]SetTLVBufToDocument [00:20:08]Processing tag 1014 (03F6) [00:20:08]Malloc new data [00:20:08]Processing tag 1015 (03F7) [00:20:08]Malloc new data [00:20:08]SetTLVBufToDocument err=0 [00:20:08]Processing tag 1007 (03EF) [00:20:08]Load OK [00:20:08]SetTLVBufToDocument [00:20:08]Processing tag 1014 (03F6) [00:20:08]Malloc new data [00:20:08]Processing tag 1015 (03F7) [00:20:08]Malloc new data [00:20:08]SetTLVBufToDocument err=0 [00:20:08]SetTLVBufToDocument err=0 [00:20:08]SetTLVBufToDocument err=0 [00:20:08]Processing tag 1132 (046C) [00:20:08]Load OK [00:20:08]SetTLVBufToDocument [00:20:08]Processing tag 1135 (046F) [00:20:08]Malloc new data [00:20:08]Processing tag 1201 (04B1) [00:20:08]Malloc new data [00:20:08]Processing tag 1136 (0470) [00:20:08]Malloc new data [00:20:08]Processing tag 1138 (0472) [00:20:08]Malloc new data [00:20:08]Processing tag 1024 (0400) [00:20:08]Load OK [00:20:08]SetTLVBufToDocument [00:20:08]Processing tag 1006 (03EE) [00:20:08]Load OK [00:20:08]SetTLVBufToDocument [00:20:08]Processing tag 1010 (03F2) [00:20:08]Malloc new data [00:20:08]Processing tag 1011 (03F3) [00:20:08]Malloc new data [00:20:08]SetTLVBufToDocument err=0 [00:20:08]Processing tag 1006 (03EE) [00:20:08]Load OK [00:20:08]SetTLVBufToDocument [00:20:08]Processing tag 1010 (03F2) [00:20:08]Malloc new data [00:20:08]Processing tag 1011 (03F3) [00:20:08]Malloc new data [00:20:08]SetTLVBufToDocument err=0 [00:20:08]Processing tag 1007 (03EF) [00:20:08]Load OK [00:20:08]SetTLVBufToDocument [00:20:08]Processing tag 1014 (03F6) [00:20:08]Malloc new data [00:20:08]Processing tag 1015 (03F7) [00:20:08]Malloc new data [00:20:08]SetTLVBufToDocument err=0 [00:20:08]Processing tag 1007 (03EF) [00:20:08]Load OK [00:20:08]SetTLVBufToDocument [00:20:08]Processing tag 1014 (03F6) [00:20:08]Malloc new data [00:20:08]Processing tag 1015 (03F7) [00:20:08]Malloc new data [00:20:08]SetTLVBufToDocument err=0 [00:20:08]Processing tag 1007 (03EF) [00:20:08]Load OK [00:20:08]SetTLVBufToDocument [00:20:08]Processing tag 1014 (03F6) [00:20:08]Malloc new data [00:20:08]Processing tag 1015 (03F7) [00:20:08]Malloc new data [00:20:08]SetTLVBufToDocument err=0 [00:20:08]Processing tag 1007 (03EF) [00:20:08]Load OK [00:20:08]SetTLVBufToDocument [00:20:08]Processing tag 1014 (03F6) [00:20:08]Malloc new data [00:20:08]Processing tag 1015 (03F7) [00:20:08]Malloc new data [00:20:08]SetTLVBufToDocument err=0 [00:20:08]Processing tag 1007 (03EF) [00:20:08]Load OK [00:20:08]SetTLVBufToDocument [00:20:08]Processing tag 1014 (03F6) [00:20:08]Malloc new data [00:20:08]Processing tag 1015 (03F7) [00:20:08]Malloc new data [00:20:08]SetTLVBufToDocument err=0 [00:20:08]Processing tag 1007 (03EF) [00:20:08]Load OK [00:20:08]SetTLVBufToDocument [00:20:08]Processing tag 1014 (03F6) [00:20:08]Malloc new data [00:20:08]Processing tag 1015 (03F7) [00:20:08]Malloc new data [00:20:08]SetTLVBufToDocument err=0 [00:20:08]Processing tag 1007 (03EF) [00:20:08]Load OK [00:20:08]SetTLVBufToDocument [00:20:08]Processing tag 1014 (03F6) [00:20:08]Malloc new data [00:20:08]Processing tag 1015 (03F7) [00:20:08]Malloc new data [00:20:08]SetTLVBufToDocument err=0 [00:20:08]SetTLVBufToDocument err=0 [00:20:08]SetTLVBufToDocument err=0 [00:20:08]Processing tag 1133 (046D) [00:20:08]Malloc new data [00:20:08]SetTLVBufToDocument err=0 [00:20:08]SetTLVBufToDocument err=0 [00:20:08]Malloc new data [00:20:08]SAM_PROTO_GetFMData [00:20:08]wFMCommunicate request_size=4 [00:20:08]MH_SAM_APDU [00:20:08]CAPDU: 80 13 03 00 [00:20:08]Write to MH i2c: E2 08 00 80 11 80 13 03 00 00 00 00 00 10 [00:20:08]Write i2c OK [00:20:08]MH_I2C_Read... [00:20:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:08]Read from MH i2c: E2 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: E2 FD 00 [00:20:08]MH_I2C_Read... [00:20:08]Read from MH i2c: E2 FD 00 80 11 00 C1 04 85 04 BD 04 6E 04 04 00 2F D6 02 00 69 04 A3 00 6F 04 04 00 1C D6 02 00 B1 04 05 00 8F 75 C1 1B 04 70 04 05 00 90 4B 8B 9A 03 72 04 04 00 FF 29 36 81 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 FF 8B B9 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 17 43 4F 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 6A [00:20:08]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 2F D6 02 00 69 04 A3 00 6F 04 04 00 1C D6 02 00 B1 04 05 00 8F 75 C1 1B 04 70 04 05 00 90 4B 8B 9A 03 72 04 04 00 FF 29 36 81 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 FF 8B B9 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 17 43 4F 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:08]wFMCommunicate OK [00:20:08]wFMCommunicate request_size=4 [00:20:08]MH_SAM_APDU [00:20:08]CAPDU: 80 17 00 00 [00:20:08]Write to MH i2c: E2 08 00 81 11 80 17 00 00 00 00 00 00 12 [00:20:08]Write i2c OK [00:20:08]MH_I2C_Read... [00:20:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:09]Read from MH i2c: E2 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 FD 00 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 FD 00 81 11 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 DB [00:20:09]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:09]wFMCommunicate OK [00:20:09]wFMCommunicate request_size=4 [00:20:09]MH_SAM_APDU [00:20:09]CAPDU: 80 17 00 00 [00:20:09]Write to MH i2c: E2 08 00 82 11 80 17 00 00 00 00 00 00 13 [00:20:09]Write i2c OK [00:20:09]MH_I2C_Read... [00:20:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:09]Read from MH i2c: E2 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 FD 00 [00:20:09]MH_I2C_Read... [00:20:09]Read from MH i2c: E2 FD 00 82 11 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 B3 [00:20:09]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:09]wFMCommunicate OK [00:20:09]wFMCommunicate request_size=4 [00:20:09]MH_SAM_APDU [00:20:09]CAPDU: 80 17 00 00 [00:20:09]Write to MH i2c: E2 08 00 83 11 80 17 00 00 00 00 00 00 14 [00:20:09]Write i2c OK [00:20:09]MH_I2C_Read... [00:20:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:10]Read from MH i2c: E2 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 FD 00 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 FD 00 83 11 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 99 [00:20:10]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 OFD Sender: No OFD packet to send [00:20:10]EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 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:10]wFMCommunicate OK [00:20:10]wFMCommunicate request_size=4 [00:20:10]MH_SAM_APDU [00:20:10]CAPDU: 80 17 00 00 [00:20:10]Write to MH i2c: E2 08 00 84 11 80 17 00 00 00 00 00 00 15 [00:20:10]Write i2c OK [00:20:10]MH_I2C_Read... [00:20:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:20:10]Read from MH i2c: E2 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 DE 00 [00:20:10]MH_I2C_Read... [00:20:10]Read from MH i2c: E2 DE 00 84 11 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F4 [00:20:10]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:11]wFMCommunicate OK [00:20:11]SAM_PROTO_GetFMData done [00:20:11]FM_GetFMData:85 04 BD 04 6E 04 04 00 2F D6 02 00 69 04 A3 00 6F 04 04 00 1C D6 02 00 B1 04 05 00 8F 75 C1 1B 04 70 04 05 00 90 4B 8B 9A 03 72 04 04 00 FF 29 36 81 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 FF 8B B9 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 17 43 4F 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:11]oper:6F 04 04 00 1C D6 02 00 B1 04 05 00 8F 75 C1 1B 04 70 04 05 00 90 4B 8B 9A 03 72 04 04 00 FF 29 36 81 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 FF 8B B9 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 17 43 4F 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:11]total:8F 75 C1 1B 04 [00:20:11]Malloc new data [00:20:11]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:11]total:9C 8A 38 [00:20:11]Malloc new data [00:20:11]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:11]total: [00:20:11]Malloc new data [00:20:11]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:12]total: [00:20:12]Malloc new data [00:20:12]KKMPrepareXReportFMData err=0 [00:20:12]Х отчет ИНН: 02508201610067 Кассир: Рыскулов Ж. 20.02.2025 00:20 Смена: 522 РНМ: 0000000000091857 ЗНМ: 0300000118 СНО: Общий режим Всего чеков: 263 ИТОГИ ПРИХОД Чеков: 263 Общий итог: 225329.65 Итого наличными: 168252.00 Итого безнал.: 57077.65 НДС 0% : 0.00 НДС 12% : 23934.33 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1994.40 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 168252.00 НС Приход: 176455325.59 НС Возвр.Прихода: 37055.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871826 [00:20:12]StoreToDocumentArchive [00:20:12]MH_GetDate [00:20:12]Write to MH i2c: F0 00 00 85 11 85 [00:20:12]Write i2c OK [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: F0 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: F0 09 00 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: F0 09 00 85 11 00 3D 75 B6 67 7E 41 4F 65 D0 [00:20:12]shift 522 fd 1740010813 [00:20:12]Create dir for shift 0522 [00:20:12]save to /storage/0522/doc_1740010813 [00:20:12]save last doc name /storage/0522/doc_1740010813 to /storage/kkm_last_doc_name [00:20:12]save OK [00:20:12]Clear old archive folders... [00:20:12]NVStorageSaveData kkm_last_timestamp [00:20:12]File name is /storage/kkm_last_timestamp [00:20:12]Write 4 bytes [00:20:12]NVStorageSaveData done [00:20:12]ExternCall_PrintAddStr [00:20:12]wPrintStart [00:20:12]Write to MH i2c: 01 00 00 86 11 97 [00:20:12]Write i2c OK [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: 01 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: 01 07 00 [00:20:12]MH_I2C_Read... [00:20:12]Read from MH i2c: 01 07 00 86 11 00 00 00 00 00 FF 0F AC [00:20:12]RasterBufferAndPrint [00:20:12]line Х отчет [00:20:12]line ИНН: 02508201610067 [00:20:12]line Кассир: Рыскулов Ж. [00:20:12]line 20.02.2025 00:20 [00:20:12]line Смена: 522 [00:20:12]line РНМ: 0000000000091857 [00:20:12]line ЗНМ: 0300000118 [00:20:12]line СНО: Общий режим [00:20:12]line Всего чеков: 263 [00:20:12]line ИТОГИ ПРИХОД [00:20:12]line Чеков: 263 [00:20:12]line Общий итог: 225329.65 [00:20:12]line Итого наличными: 168252.00 [00:20:12]line Итого безнал.: 57077.65 [00:20:12]line НДС 0% : 0.00 [00:20:12]line НДС 12% : 23934.33 [00:20:12]line НСП 0% : 0.00 [00:20:12]line НСП 1,50% : 0.00 [00:20:12]line НСП 0,50% : 0.00 [00:20:12]line НСП 5% : 0.00 [00:20:12]line НСП 3% : 0.00 [00:20:12]line НСП 2% : 0.00 [00:20:12]line НСП 1% : 1994.40 [00:20:12]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:20:12]line Чеков: 0 [00:20:12]line Общий итог: 0.00 [00:20:12]line Итого наличными: 0.00 [00:20:12]line Итого безнал.: 0.00 [00:20:12]line НДС 0% : 0.00 [00:20:12]line НДС 12% : 0.00 [00:20:12]line НСП 0% : 0.00 [00:20:12]line НСП 1,50% : 0.00 [00:20:12]line НСП 0,50% : 0.00 [00:20:12]line НСП 5% : 0.00 [00:20:12]line НСП 3% : 0.00 [00:20:12]line НСП 2% : 0.00 [00:20:12]line НСП 1% : 0.00 [00:20:12]line ИТОГИ РАСХОД [00:20:12]line Чеков: 0 [00:20:12]line Общий итог: 0.00 [00:20:12]line Итого наличными: 0.00 [00:20:12]line Итого безнал.: 0.00 [00:20:12]line НДС 0% : 0.00 [00:20:12]line НДС 12% : 0.00 [00:20:12]line НСП 0% : 0.00 [00:20:12]line НСП 1,50% : 0.00 [00:20:12]line НСП 0,50% : 0.00 [00:20:12]line НСП 5% : 0.00 [00:20:12]line НСП 3% : 0.00 [00:20:12]line НСП 2% : 0.00 [00:20:12]line НСП 1% : 0.00 [00:20:12]line ИТОГИ ВОЗВРАТ РАСХОДА [00:20:12]line Чеков: 0 [00:20:12]line Общий итог: 0.00 [00:20:12]line Итого наличными: 0.00 [00:20:12]line Итого безнал.: 0.00 [00:20:12]line НДС 0% : 0.00 [00:20:12]line НДС 12% : 0.00 [00:20:12]line НСП 0% : 0.00 [00:20:12]line НСП 1,50% : 0.00 [00:20:12]line НСП 0,50% : 0.00 [00:20:12]line НСП 5% : 0.00 [00:20:12]line НСП 3% : 0.00 [00:20:12]line НСП 2% : 0.00 [00:20:12]line НСП 1% : 0.00 [00:20:12]line Сумма внесений: 0.00 [00:20:12]line Сумма выплат: 0.00 [00:20:12]line Нал. в кассе: 168252.00 [00:20:12]line НС Приход: 176455325.59 [00:20:12]line НС Возвр.Прихода: 37055.00 [00:20:12]line НС Расход: 0.00 [00:20:12]line НС Возвр.Расхода: 0.00 [00:20:12]line ФМ: 0000000000871826 [00:20:12]written 0, free lines is 4095 [00:20:13]Write to MH i2c: 01 00 00 D1 11 E2 [00:20:13]Write i2c OK [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: 01 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: 01 07 00 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: 01 07 00 D1 11 00 00 00 00 00 1C 0B 10 [00:20:13]RasterBufferAndPrint [00:20:13]line [00:20:13]line [00:20:13]line [00:20:13]line [00:20:13]line [00:20:13]written 0, free lines is 2877 [00:20:13]MH_Cut [00:20:13]Write to MH i2c: D1 01 00 D8 11 01 BB [00:20:13]Write i2c OK [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: D1 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: D1 01 00 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: D1 01 00 D8 11 00 BA [00:20:13]Write to MH i2c: 01 00 00 D9 11 EA [00:20:13]Write i2c OK [00:20:13]MH_I2C_Read... [00:20:13]*** Cut start [00:20:13]*** Partial cut [00:20:13]*** CUTSNS_PIN = 1 [00:20:14]*** CUTSNS_PIN = 0 [00:20:14]*** Brake cut motor [00:20:14]Read from MH i2c: 01 [00:20:14]MH_I2C_Read... [00:20:14]*** Stop cut motor [00:20:14]*** Cut end [00:20:14]Read from MH i2c: 01 07 00 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: 01 07 00 D9 11 00 00 00 00 00 FF 0F FF [00:20:14]process_action x_report done [00:20:14]requested_data is exist [00:20:14]produce_requested_data [00:20:14]requested_item fd.num is exist - process it [00:20:14]SAM_PROTO_GetFieldsCounters [00:20:14]wFMCommunicate request_size=4 [00:20:14]MH_SAM_APDU [00:20:14]CAPDU: 80 13 00 00 [00:20:14]Write to MH i2c: E2 08 00 DA 11 80 13 00 00 00 00 00 00 67 [00:20:14]Write i2c OK [00:20:14]MH_I2C_Read... [00:20:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:14]Read from MH i2c: E2 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 62 00 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 62 00 DA 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 3D DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 48 [00:20: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 3D DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:15]wFMCommunicate OK [00:20:15]SAM_PROTO_GetFieldsCounters done [00:20:15]requested_item shift.num is exist - process it [00:20:15]requested_item shift.opened is exist - process it [00:20:15]req_shift_opened [00:20:15]FM_GetShiftState [00:20:15]SAM_PROTO_GetShiftState [00:20:15]wFMCommunicate request_size=4 [00:20:15]MH_SAM_APDU [00:20:15]CAPDU: 80 13 01 00 [00:20:15]Write to MH i2c: E2 08 00 DB 11 80 13 01 00 00 00 00 00 69 [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:15]Read from MH i2c: E2 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 0E 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 0E 00 DB 11 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 E8 [00:20:15]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [00:20:15]wFMCommunicate OK [00:20:15]SAM_PROTO_GetShiftState done [00:20:15]FM_GetShiftState done [00:20:15]req_shift_opened done [00:20:15]requested_item shift.open_date is exist - process it [00:20:15]req_shift_open_date [00:20:15]req_shift_open_date done [00:20:15]produce_requested_data done [00:20:15]produce_requested_data return {"fd.num":187197,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [00:20:15]process_action_free x_report [00:20:15]json_value_free [00:20:15]json_value_free done [00:20:15]process_json_proto returns [00:20:15]Send response to host [00:20:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":187197,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [00:20:15]free response buf [00:20:15]execute_script done [00:20:15]execute_script returns [00:20:15]free content buf [00:20:15]Sock 7.Close socket [00:20:15]Sock 7.Thread stoped [00:20:15]OFD Sender: No OFD packet to send [00:20:20]OFD Sender: No OFD packet to send [00:20:25]OFD Sender: No OFD packet to send [00:20:30]OFD Sender: No OFD packet to send [00:20:35]OFD Sender: No OFD packet to send [00:20:40]OFD Sender: No OFD packet to send [00:20:45]OFD Sender: No OFD packet to send [00:20:47]accept exits with 9 [00:20:47]New connection [00:20:47]New thread 3066510692 created [00:20:47]Thread 3066654052 joined [00:20:47]Waiting for new connection... [00:20:47] Sock 9.Parse request [00:20:47]Sock 9.Check first char [00:20:47]Sock 9.First char is OK [00:20:47]request: POST /json_proto HTTP/1.0 [00:20:47]Method: POST [00:20:47]URL: /json_proto [00:20:47]Method is POST - this is cgi request [00:20:47]url: /json_proto [00:20:47]query_string will be loaded in cgi processing [00:20:47]execute_cgi json_proto POST (null) [00:20:47]execute_cgi path=json_proto method=POST [00:20:47]POST find Content-Length [00:20:47]Host: 172.17.46.131:8080 [00:20:47]Content-Length: 215 [00:20:47]Content-Type: application/json [00:20:47] [00:20:47]POST finish read [00:20:47]Found Content-Length = 215 [00:20:47]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:47]execute_script... [00:20:47]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:47]POST & json_proto [00:20:47]process_json_proto [00:20:47]json parsed OK: [00:20:47]protocol is kg_v1.0 [00:20:47]action value=get_value [00:20:47]process_action get_value [00:20:47]cmd_get_value [00:20:47]process_action get_value done [00:20:47]requested_data is exist [00:20:47]produce_requested_data [00:20:47]requested_item kkm.sn is exist - process it [00:20:47]requested_item kkm.ver is exist - process it [00:20:47]requested_item fm.sn is exist - process it [00:20:47]wFMCommunicate request_size=4 [00:20:47]MH_SAM_APDU [00:20:47]CAPDU: 80 11 00 00 [00:20:47]Write to MH i2c: E2 08 00 DC 11 80 11 00 00 00 00 00 00 67 [00:20:47]Write i2c OK [00:20:47]MH_I2C_Read... [00:20:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:47]Read from MH i2c: E2 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 17 00 [00:20:47]MH_I2C_Read... [00:20:47]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 [00:20:47]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:47]wFMCommunicate OK [00:20:47]requested_item fd.num is exist - process it [00:20:47]SAM_PROTO_GetFieldsCounters [00:20:47]wFMCommunicate request_size=4 [00:20:47]MH_SAM_APDU [00:20:47]CAPDU: 80 13 00 00 [00:20:47]Write to MH i2c: E2 08 00 DD 11 80 13 00 00 00 00 00 00 6A [00:20:47]Write i2c OK [00:20:47]MH_I2C_Read... [00:20:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:47]Read from MH i2c: E2 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 62 00 [00:20:47]MH_I2C_Read... [00:20:47]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 3D DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [00:20: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 3D DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:20:47]wFMCommunicate OK [00:20:47]SAM_PROTO_GetFieldsCounters done [00:20:47]requested_item shift.num is exist - process it [00:20:47]requested_item shift.opened is exist - process it [00:20:47]req_shift_opened [00:20:47]FM_GetShiftState [00:20:47]SAM_PROTO_GetShiftState [00:20:47]wFMCommunicate request_size=4 [00:20:47]MH_SAM_APDU [00:20:47]CAPDU: 80 13 01 00 [00:20:47]Write to MH i2c: E2 08 00 DE 11 80 13 01 00 00 00 00 00 6C [00:20:47]Write i2c OK [00:20:47]MH_I2C_Read... [00:20:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:47]Read from MH i2c: E2 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 0E 00 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 0E 00 DE 11 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 EB [00:20:47]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [00:20:47]wFMCommunicate OK [00:20:47]SAM_PROTO_GetShiftState done [00:20:47]FM_GetShiftState done [00:20:47]req_shift_opened done [00:20:47]requested_item shift.open_date is exist - process it [00:20:47]req_shift_open_date [00:20:47]req_shift_open_date done [00:20:47]produce_requested_data done [00:20:47]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":187197,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631} [00:20:47]process_action_free get_value [00:20:47]json_value_free [00:20:47]json_value_free done [00:20:47]process_json_proto returns [00:20:47]Send response to host [00:20:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":187197,"shift.num":647,"shift.opened":1,"shift.open_date":1739929631}}} [00:20:47]free response buf [00:20:47]execute_script done [00:20:47]execute_script returns [00:20:47]free content buf [00:20:47]Sock 9.Close socket [00:20:47]Sock 9.Thread stoped [00:20:47]accept exits with 7 [00:20:47]New connection [00:20:47]New thread 3066654052 created [00:20:47]Thread 3066510692 joined [00:20:47]Waiting for new connection... [00:20:47] Sock 7.Parse request [00:20:47]Sock 7.Check first char [00:20:47]Sock 7.First char is OK [00:20:47]request: POST /json_proto HTTP/1.0 [00:20:47]Method: POST [00:20:47]URL: /json_proto [00:20:47]Method is POST - this is cgi request [00:20:47]url: /json_proto [00:20:47]query_string will be loaded in cgi processing [00:20:47]execute_cgi json_proto POST (null) [00:20:47]execute_cgi path=json_proto method=POST [00:20:47]POST find Content-Length [00:20:47]Host: 172.17.46.131:8080 [00:20:47]Content-Length: 331 [00:20:47]Content-Type: application/json [00:20:47] [00:20:47]POST finish read [00:20:47]Found Content-Length = 331 [00:20:47]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:47]execute_script... [00:20:47]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:47]POST & json_proto [00:20:47]process_json_proto [00:20:47]json parsed OK: [00:20:47]protocol is kg_v1.0 [00:20:47]action value=get_value [00:20:47]process_action get_value [00:20:47]cmd_get_value [00:20:47]process_action get_value done [00:20:47]requested_data is exist [00:20:47]produce_requested_data [00:20:47]requested_item fm.sale.total is exist - process it [00:20:47]SAM_PROTO_GetFMData [00:20:47]wFMCommunicate request_size=4 [00:20:47]MH_SAM_APDU [00:20:47]CAPDU: 80 13 03 00 [00:20:47]Write to MH i2c: E2 08 00 DF 11 80 13 03 00 00 00 00 00 6F [00:20:47]Write i2c OK [00:20:47]MH_I2C_Read... [00:20:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:47]Read from MH i2c: E2 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 FD 00 [00:20:47]MH_I2C_Read... [00:20:47]Read from MH i2c: E2 FD 00 DF 11 00 C1 04 85 04 BD 04 6E 04 04 00 2F D6 02 00 69 04 A3 00 6F 04 04 00 1C D6 02 00 B1 04 05 00 8F 75 C1 1B 04 70 04 05 00 90 4B 8B 9A 03 72 04 04 00 FF 29 36 81 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 FF 8B B9 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 17 43 4F 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 C9 [00:20:47]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 2F D6 02 00 69 04 A3 00 6F 04 04 00 1C D6 02 00 B1 04 05 00 8F 75 C1 1B 04 70 04 05 00 90 4B 8B 9A 03 72 04 04 00 FF 29 36 81 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 FF 8B B9 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 17 43 4F 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:47]wFMCommunicate OK [00:20:47]wFMCommunicate request_size=4 [00:20:47]MH_SAM_APDU [00:20:47]CAPDU: 80 17 00 00 [00:20:47]Write to MH i2c: E2 08 00 E0 11 80 17 00 00 00 00 00 00 71 [00:20:47]Write i2c OK [00:20:47]MH_I2C_Read... [00:20:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:48]Read from MH i2c: E2 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: E2 FD 00 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: E2 FD 00 E0 11 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 3A [00:20:48]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:48]wFMCommunicate OK [00:20:48]wFMCommunicate request_size=4 [00:20:48]MH_SAM_APDU [00:20:48]CAPDU: 80 17 00 00 [00:20:48]Write to MH i2c: E2 08 00 E1 11 80 17 00 00 00 00 00 00 72 [00:20:48]Write i2c OK [00:20:48]MH_I2C_Read... [00:20:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:48]Read from MH i2c: E2 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: E2 FD 00 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: E2 FD 00 E1 11 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 12 [00:20:48]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:48]wFMCommunicate OK [00:20:48]wFMCommunicate request_size=4 [00:20:48]MH_SAM_APDU [00:20:48]CAPDU: 80 17 00 00 [00:20:48]Write to MH i2c: E2 08 00 E2 11 80 17 00 00 00 00 00 00 73 [00:20:48]Write i2c OK [00:20:48]MH_I2C_Read... [00:20:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:48]Read from MH i2c: E2 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: E2 FD 00 [00:20:48]MH_I2C_Read... [00:20:48]Read from MH i2c: E2 FD 00 E2 11 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 F8 [00:20:48]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:48]wFMCommunicate OK [00:20:48]wFMCommunicate request_size=4 [00:20:48]MH_SAM_APDU [00:20:48]CAPDU: 80 17 00 00 [00:20:48]Write to MH i2c: E2 08 00 E3 11 80 17 00 00 00 00 00 00 74 [00:20:48]Write i2c OK [00:20:48]MH_I2C_Read... [00:20:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:20:49]Read from MH i2c: E2 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 DE 00 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 DE 00 E3 11 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 53 [00:20:49]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:49]wFMCommunicate OK [00:20:49]SAM_PROTO_GetFMData done [00:20:49]requested_item fm.sale_refund.total is exist - process it [00:20:49]requested_item fm.buy.total is exist - process it [00:20:49]requested_item shift.sale.total is exist - process it [00:20:49]SAM_PROTO_GetShiftData [00:20:49]wFMCommunicate request_size=4 [00:20:49]MH_SAM_APDU [00:20:49]CAPDU: 80 13 02 00 [00:20:49]Write to MH i2c: E2 08 00 E4 11 80 13 02 00 00 00 00 00 73 [00:20:49]Write i2c OK [00:20:49]MH_I2C_Read... [00:20:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:49]Read from MH i2c: E2 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 FD 00 [00:20:49]MH_I2C_Read... [00:20:49]Read from MH i2c: E2 FD 00 E4 11 00 B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 65 D3 57 01 70 04 04 00 70 BB 00 01 72 04 03 00 F5 17 57 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 59 85 24 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 10 0B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 99 [00:20:49]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 65 D3 57 01 70 04 04 00 70 BB 00 01 72 04 03 00 F5 17 57 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 59 85 24 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 10 0B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:20:49]wFMCommunicate OK [00:20:49]wFMCommunicate request_size=4 [00:20:49]MH_SAM_APDU [00:20:49]CAPDU: 80 17 00 00 [00:20:49]Write to MH i2c: E2 08 00 E5 11 80 17 00 00 00 00 00 00 76 [00:20:49]Write i2c OK [00:20:49]MH_I2C_Read... [00:20:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:50]Read from MH i2c: E2 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 FD 00 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 FD 00 E5 11 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 8F [00:20:50]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:20:50]wFMCommunicate OK [00:20:50]wFMCommunicate request_size=4 [00:20:50]MH_SAM_APDU [00:20:50]CAPDU: 80 17 00 00 [00:20:50]Write to MH i2c: E2 08 00 E6 11 80 17 00 00 00 00 00 00 77 [00:20:50]Write i2c OK [00:20:50]MH_I2C_Read... [00:20:50]OFD Sender: No OFD packet to send [00:20:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:50]Read from MH i2c: E2 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 FD 00 [00:20:50]MH_I2C_Read... [00:20:50]Read from MH i2c: E2 FD 00 E6 11 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 30 [00:20:50]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:20:50]wFMCommunicate OK [00:20:50]wFMCommunicate request_size=4 [00:20:50]MH_SAM_APDU [00:20:50]CAPDU: 80 17 00 00 [00:20:50]Write to MH i2c: E2 08 00 E7 11 80 17 00 00 00 00 00 00 78 [00:20:50]Write i2c OK [00:20:50]MH_I2C_Read... [00:20:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:51]Read from MH i2c: E2 [00:20:51]MH_I2C_Read... [00:20:51]Read from MH i2c: E2 FD 00 [00:20:51]MH_I2C_Read... [00:20:51]Read from MH i2c: E2 FD 00 E7 11 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 F0 [00:20:51]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:20:51]wFMCommunicate OK [00:20:51]wFMCommunicate request_size=4 [00:20:51]MH_SAM_APDU [00:20:51]CAPDU: 80 17 00 00 [00:20:51]Write to MH i2c: E2 08 00 E8 11 80 17 00 00 00 00 00 00 79 [00:20:51]Write i2c OK [00:20:51]MH_I2C_Read... [00:20:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:20:51]Read from MH i2c: E2 [00:20:51]MH_I2C_Read... [00:20:51]Read from MH i2c: E2 CE 00 [00:20:51]MH_I2C_Read... [00:20:51]Read from MH i2c: E2 CE 00 E8 11 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5E [00:20:51]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:51]wFMCommunicate OK [00:20:51]SAM_PROTO_GetShiftData done [00:20:51]requested_item shift.sale.total_cash is exist - process it [00:20:51]requested_item shift.sale_refund.total is exist - process it [00:20:51]requested_item shift.sale_refund.total_cash is exist - process it [00:20:51]requested_item shift.buy.total is exist - process it [00:20:51]requested_item shift.buy.total_cash is exist - process it [00:20:51]produce_requested_data done [00:20:51]produce_requested_data return {"fm.sale.total":176455325.59,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":225329.65,"shift.sale.total_cash":168252.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:51]process_action_free get_value [00:20:51]json_value_free [00:20:51]json_value_free done [00:20:51]process_json_proto returns [00:20:51]Send response to host [00:20:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176455325.59,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":225329.65,"shift.sale.total_cash":168252.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:51]free response buf [00:20:51]execute_script done [00:20:51]execute_script returns [00:20:51]free content buf [00:20:51]Sock 7.Close socket [00:20:51]Sock 7.Thread stoped [00:20:51]accept exits with 9 [00:20:51]New connection [00:20:51]New thread 3066510692 created [00:20:51]Thread 3066654052 joined [00:20:51]Waiting for new connection... [00:20:51] Sock 9.Parse request [00:20:51]Sock 9.Check first char [00:20:51]Sock 9.First char is OK [00:20:51]request: POST /json_proto HTTP/1.0 [00:20:51]Method: POST [00:20:51]URL: /json_proto [00:20:51]Method is POST - this is cgi request [00:20:51]url: /json_proto [00:20:51]query_string will be loaded in cgi processing [00:20:51]execute_cgi json_proto POST (null) [00:20:51]execute_cgi path=json_proto method=POST [00:20:51]POST find Content-Length [00:20:51]Host: 172.17.46.131:8080 [00:20:51]Content-Length: 331 [00:20:51]Content-Type: application/json [00:20:51] [00:20:51]POST finish read [00:20:51]Found Content-Length = 331 [00:20:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:51]execute_script... [00:20:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:20:51]POST & json_proto [00:20:51]process_json_proto [00:20:51]json parsed OK: [00:20:51]protocol is kg_v1.0 [00:20:51]action value=get_value [00:20:51]process_action get_value [00:20:51]cmd_get_value [00:20:51]process_action get_value done [00:20:51]requested_data is exist [00:20:51]produce_requested_data [00:20:51]requested_item fm.sale.total is exist - process it [00:20:51]SAM_PROTO_GetFMData [00:20:51]wFMCommunicate request_size=4 [00:20:51]MH_SAM_APDU [00:20:51]CAPDU: 80 13 03 00 [00:20:51]Write to MH i2c: E2 08 00 E9 11 80 13 03 00 00 00 00 00 79 [00:20:51]Write i2c OK [00:20:51]MH_I2C_Read... [00:20:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:20:52]Read from MH i2c: E2 [00:20:52]MH_I2C_Read... [00:20:52]Read from MH i2c: E2 FD 00 [00:20:52]MH_I2C_Read... [00:20:52]Read from MH i2c: E2 FD 00 E9 11 00 C1 04 85 04 BD 04 6E 04 04 00 2F D6 02 00 69 04 A3 00 6F 04 04 00 1C D6 02 00 B1 04 05 00 8F 75 C1 1B 04 70 04 05 00 90 4B 8B 9A 03 72 04 04 00 FF 29 36 81 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 FF 8B B9 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 17 43 4F 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 D3 [00:20:52]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 2F D6 02 00 69 04 A3 00 6F 04 04 00 1C D6 02 00 B1 04 05 00 8F 75 C1 1B 04 70 04 05 00 90 4B 8B 9A 03 72 04 04 00 FF 29 36 81 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 FF 8B B9 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 17 43 4F 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:52]wFMCommunicate OK [00:20:52]wFMCommunicate request_size=4 [00:20:52]MH_SAM_APDU [00:20:52]CAPDU: 80 17 00 00 [00:20:52]Write to MH i2c: E2 08 00 EA 11 80 17 00 00 00 00 00 00 7B [00:20:52]Write i2c OK [00:20:52]MH_I2C_Read... [00:20:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:52]Read from MH i2c: E2 [00:20:52]MH_I2C_Read... [00:20:52]Read from MH i2c: E2 FD 00 [00:20:52]MH_I2C_Read... [00:20:52]Read from MH i2c: E2 FD 00 EA 11 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 44 [00:20:52]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:52]wFMCommunicate OK [00:20:52]wFMCommunicate request_size=4 [00:20:52]MH_SAM_APDU [00:20:52]CAPDU: 80 17 00 00 [00:20:52]Write to MH i2c: E2 08 00 EB 11 80 17 00 00 00 00 00 00 7C [00:20:52]Write i2c OK [00:20:52]MH_I2C_Read... [00:20:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:53]Read from MH i2c: E2 [00:20:53]MH_I2C_Read... [00:20:53]Read from MH i2c: E2 FD 00 [00:20:53]MH_I2C_Read... [00:20:53]Read from MH i2c: E2 FD 00 EB 11 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 1C [00:20:53]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:53]wFMCommunicate OK [00:20:53]wFMCommunicate request_size=4 [00:20:53]MH_SAM_APDU [00:20:53]CAPDU: 80 17 00 00 [00:20:53]Write to MH i2c: E2 08 00 EC 11 80 17 00 00 00 00 00 00 7D [00:20:53]Write i2c OK [00:20:53]MH_I2C_Read... [00:20:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:53]Read from MH i2c: E2 [00:20:53]MH_I2C_Read... [00:20:53]Read from MH i2c: E2 FD 00 [00:20:53]MH_I2C_Read... [00:20:53]Read from MH i2c: E2 FD 00 EC 11 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 02 [00:20:53]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:53]wFMCommunicate OK [00:20:53]wFMCommunicate request_size=4 [00:20:53]MH_SAM_APDU [00:20:53]CAPDU: 80 17 00 00 [00:20:53]Write to MH i2c: E2 08 00 ED 11 80 17 00 00 00 00 00 00 7E [00:20:53]Write i2c OK [00:20:53]MH_I2C_Read... [00:20:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:20:53]Read from MH i2c: E2 [00:20:53]MH_I2C_Read... [00:20:53]Read from MH i2c: E2 DE 00 [00:20:53]MH_I2C_Read... [00:20:53]Read from MH i2c: E2 DE 00 ED 11 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5D [00:20:53]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:54]wFMCommunicate OK [00:20:54]SAM_PROTO_GetFMData done [00:20:54]requested_item fm.sale_refund.total is exist - process it [00:20:54]requested_item fm.buy.total is exist - process it [00:20:54]requested_item shift.sale.total is exist - process it [00:20:54]SAM_PROTO_GetShiftData [00:20:54]wFMCommunicate request_size=4 [00:20:54]MH_SAM_APDU [00:20:54]CAPDU: 80 13 02 00 [00:20:54]Write to MH i2c: E2 08 00 EE 11 80 13 02 00 00 00 00 00 7D [00:20:54]Write i2c OK [00:20:54]MH_I2C_Read... [00:20:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:20:54]Read from MH i2c: E2 [00:20:54]MH_I2C_Read... [00:20:54]Read from MH i2c: E2 FD 00 [00:20:54]MH_I2C_Read... [00:20:54]Read from MH i2c: E2 FD 00 EE 11 00 B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 65 D3 57 01 70 04 04 00 70 BB 00 01 72 04 03 00 F5 17 57 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 59 85 24 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 10 0B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 A3 [00:20:54]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 65 D3 57 01 70 04 04 00 70 BB 00 01 72 04 03 00 F5 17 57 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 59 85 24 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 10 0B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:20:54]wFMCommunicate OK [00:20:54]wFMCommunicate request_size=4 [00:20:54]MH_SAM_APDU [00:20:54]CAPDU: 80 17 00 00 [00:20:54]Write to MH i2c: E2 08 00 EF 11 80 17 00 00 00 00 00 00 80 [00:20:54]Write i2c OK [00:20:54]MH_I2C_Read... [00:20:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:54]Read from MH i2c: E2 [00:20:54]MH_I2C_Read... [00:20:54]Read from MH i2c: E2 FD 00 [00:20:54]MH_I2C_Read... [00:20:55]Read from MH i2c: E2 FD 00 EF 11 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 99 [00:20:55]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:20:55]wFMCommunicate OK [00:20:55]wFMCommunicate request_size=4 [00:20:55]MH_SAM_APDU [00:20:55]CAPDU: 80 17 00 00 [00:20:55]Write to MH i2c: E2 08 00 F0 11 80 17 00 00 00 00 00 00 81 [00:20:55]Write i2c OK [00:20:55]MH_I2C_Read... [00:20:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:55]Read from MH i2c: E2 [00:20:55]MH_I2C_Read... [00:20:55]Read from MH i2c: E2 FD 00 [00:20:55]MH_I2C_Read... [00:20:55]Read from MH i2c: E2 FD 00 F0 11 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 3A [00:20:55]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:20:55]wFMCommunicate OK [00:20:55]wFMCommunicate request_size=4 [00:20:55]MH_SAM_APDU [00:20:55]CAPDU: 80 17 00 00 [00:20:55]Write to MH i2c: E2 08 00 F1 11 80 17 00 00 00 00 00 00 82 [00:20:55]OFD Sender: No OFD packet to send [00:20:55]Write i2c OK [00:20:55]MH_I2C_Read... [00:20:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:56]Read from MH i2c: E2 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: E2 FD 00 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: E2 FD 00 F1 11 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 FA [00:20:56]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:20:56]wFMCommunicate OK [00:20:56]wFMCommunicate request_size=4 [00:20:56]MH_SAM_APDU [00:20:56]CAPDU: 80 17 00 00 [00:20:56]Write to MH i2c: E2 08 00 F2 11 80 17 00 00 00 00 00 00 83 [00:20:56]Write i2c OK [00:20:56]MH_I2C_Read... [00:20:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:20:56]Read from MH i2c: E2 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: E2 CE 00 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: E2 CE 00 F2 11 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 68 [00:20:56]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:20:56]wFMCommunicate OK [00:20:56]SAM_PROTO_GetShiftData done [00:20:56]requested_item shift.sale.total_cash is exist - process it [00:20:56]requested_item shift.sale_refund.total is exist - process it [00:20:56]requested_item shift.sale_refund.total_cash is exist - process it [00:20:56]requested_item shift.buy.total is exist - process it [00:20:56]requested_item shift.buy.total_cash is exist - process it [00:20:56]produce_requested_data done [00:20:56]produce_requested_data return {"fm.sale.total":176455325.59,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":225329.65,"shift.sale.total_cash":168252.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:56]process_action_free get_value [00:20:56]json_value_free [00:20:56]json_value_free done [00:20:56]process_json_proto returns [00:20:56]Send response to host [00:20:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176455325.59,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":225329.65,"shift.sale.total_cash":168252.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:56]free response buf [00:20:56]execute_script done [00:20:56]execute_script returns [00:20:56]free content buf [00:20:56]Sock 9.Close socket [00:20:56]Sock 9.Thread stoped [00:20:56]accept exits with 7 [00:20:56]New connection [00:20:56]New thread 3066654052 created [00:20:56]Thread 3066510692 joined [00:20:56]Waiting for new connection... [00:20:56] Sock 7.Parse request [00:20:56]Sock 7.Check first char [00:20:56]Sock 7.First char is OK [00:20:56]request: POST /json_proto HTTP/1.0 [00:20:56]Method: POST [00:20:56]URL: /json_proto [00:20:56]Method is POST - this is cgi request [00:20:56]url: /json_proto [00:20:56]query_string will be loaded in cgi processing [00:20:56]execute_cgi json_proto POST (null) [00:20:56]execute_cgi path=json_proto method=POST [00:20:56]POST find Content-Length [00:20:56]Host: 172.17.46.131:8080 [00:20:56]Content-Length: 259 [00:20:56]Content-Type: application/json [00:20:56] [00:20:56]POST finish read [00:20:56]Found Content-Length = 259 [00:20:56]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" ] } } [00:20:56]execute_script... [00:20:56]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" ] } } [00:20:56]POST & json_proto [00:20:56]process_json_proto [00:20:56]json parsed OK: [00:20:56]protocol is kg_v1.0 [00:20:56]action value=close_shift [00:20:56]process_action close_shift [00:20:56]cmd_close_shift [00:20:56]MH_GetDate [00:20:56]Write to MH i2c: F0 00 00 F3 11 F3 [00:20:56]Write i2c OK [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: F0 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: F0 09 00 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: F0 09 00 F3 11 00 6A 75 B6 67 7E 41 4F 65 6B [00:20:56]GetLastDocTimeStamp 1740010805 [00:20:56]current date 1740010858 [00:20:56]FM_GetShiftState [00:20:56]SAM_PROTO_GetShiftState [00:20:56]wFMCommunicate request_size=4 [00:20:56]MH_SAM_APDU [00:20:56]CAPDU: 80 13 01 00 [00:20:56]Write to MH i2c: E2 08 00 F4 11 80 13 01 00 00 00 00 00 82 [00:20:56]Write i2c OK [00:20:56]MH_I2C_Read... [00:20:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:56]Read from MH i2c: E2 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: E2 0E 00 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: E2 0E 00 F4 11 00 09 00 01 1F 38 B5 67 00 00 00 00 90 00 01 [00:20:56]RAPDU: 09 00 01 1F 38 B5 67 00 00 00 00 90 00 [00:20:56]wFMCommunicate OK [00:20:56]SAM_PROTO_GetShiftState done [00:20:56]FM_GetShiftState done [00:20:56]KKMCreateCloseShiftDocument [00:20:56]Load OK [00:20:56]Malloc new data [00:20:56]MH_GetDate [00:20:56]Write to MH i2c: F0 00 00 F5 11 F5 [00:20:56]Write i2c OK [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: F0 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: F0 09 00 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: F0 09 00 F5 11 00 6A 75 B6 67 7E 41 4F 65 6D [00:20:56]Malloc new data [00:20:56]Malloc new data [00:20:56]Malloc new data [00:20:56]Malloc new data [00:20:56]KKMCreateCloseShiftDocument OK [00:20:56]KKMSetCloseShiftData OK [00:20:56]ProcessDocumentItem done err = 0, tmpTLVsize=70 [00:20:56]tlvbuf is 01F873F0 [00:20:56]KKMLoadAndSignCloseShiftData [00:20:56]SAM_PROTO_ProcessDocument [00:20:56]wFMCommunicate request_size=9 [00:20:56]MH_SAM_APDU [00:20:56]CAPDU: 80 15 01 00 04 05 00 46 00 [00:20:56]Write to MH i2c: E2 0C 00 F6 11 80 15 01 00 04 00 05 00 46 00 00 00 D9 [00:20:56]Write i2c OK [00:20:56]MH_I2C_Read... [00:20:56]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:20:56]Read from MH i2c: E2 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: E2 03 00 [00:20:56]MH_I2C_Read... [00:20:56]Read from MH i2c: E2 03 00 F6 11 00 90 00 7B [00:20:56]RAPDU: 90 00 [00:20:56]wFMCommunicate OK [00:20:56]wFMCommunicate request_size=23 [00:20:56]MH_SAM_APDU [00:20:56]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:20:56]Write to MH i2c: E2 1A 00 F7 11 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 7D [00:20:57]Write i2c OK [00:20:57]MH_I2C_Read... [00:20:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:57]Read from MH i2c: E2 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 03 00 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 03 00 F7 11 00 90 00 7C [00:20:57]RAPDU: 90 00 [00:20:57]wFMCommunicate OK [00:20:57]wFMCommunicate request_size=29 [00:20:57]MH_SAM_APDU [00:20:57]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 [00:20:57]Write to MH i2c: E2 20 00 F8 11 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 18 [00:20:57]Write i2c OK [00:20:57]MH_I2C_Read... [00:20:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:57]Read from MH i2c: E2 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 03 00 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 03 00 F8 11 00 90 00 7D [00:20:57]RAPDU: 90 00 [00:20:57]wFMCommunicate OK [00:20:57]wFMCommunicate request_size=13 [00:20:57]MH_SAM_APDU [00:20:57]CAPDU: 80 15 02 00 08 F4 03 04 00 6A 75 B6 67 [00:20:57]Write to MH i2c: E2 10 00 F9 11 80 15 02 00 08 00 F4 03 04 00 6A 75 B6 67 00 00 91 [00:20:57]Write i2c OK [00:20:57]MH_I2C_Read... [00:20:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:57]Read from MH i2c: E2 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 03 00 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 03 00 F9 11 00 90 00 7E [00:20:57]RAPDU: 90 00 [00:20:57]wFMCommunicate OK [00:20:57]wFMCommunicate request_size=25 [00:20:57]MH_SAM_APDU [00:20:57]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:20:57]Write to MH i2c: E2 1C 00 FA 11 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 F2 [00:20:57]Write i2c OK [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 [00:20:57]MH_I2C_Read... [00:20:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:20:57]Read from MH i2c: E2 03 00 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 03 00 FA 11 00 90 00 7F [00:20:57]RAPDU: 90 00 [00:20:57]wFMCommunicate OK [00:20:57]wFMCommunicate request_size=4 [00:20:57]MH_SAM_APDU [00:20:57]CAPDU: 80 15 03 00 [00:20:57]Write to MH i2c: E2 08 00 FB 11 80 15 03 00 00 00 00 00 8D [00:20:57]Write i2c OK [00:20:57]MH_I2C_Read... [00:20:57]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:20:57]Read from MH i2c: E2 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 FD 00 [00:20:57]MH_I2C_Read... [00:20:57]Read from MH i2c: E2 FD 00 FB 11 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3E DB 02 00 0E 04 04 00 87 02 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 09 01 00 00 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 65 D3 57 01 70 04 04 00 70 BB 00 01 72 04 03 00 F5 17 57 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 59 85 24 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 10 0B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 FC [00:20:58]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3E DB 02 00 0E 04 04 00 87 02 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 09 01 00 00 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 65 D3 57 01 70 04 04 00 70 BB 00 01 72 04 03 00 F5 17 57 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 59 85 24 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 10 0B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:20:58]wFMCommunicate OK [00:20:58]SAM_PROTO_ProcessDocument answer len = 1268 [00:20:58]SAM_PROTO_ProcessDocument remain to read = 1020 [00:20:58]wFMCommunicate request_size=4 [00:20:58]MH_SAM_APDU [00:20:58]CAPDU: 80 17 00 00 [00:20:58]Write to MH i2c: E2 08 00 FC 11 80 17 00 00 00 00 00 00 8D [00:20:58]Write i2c OK [00:20:58]MH_I2C_Read... [00:20:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:58]Read from MH i2c: E2 [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: E2 FD 00 [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: E2 FD 00 FC 11 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 E1 [00:20:58]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 [00:20:58]wFMCommunicate OK [00:20:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:20:58]SAM_PROTO_ProcessDocument remain to read = 770 [00:20:58]wFMCommunicate request_size=4 [00:20:58]MH_SAM_APDU [00:20:58]CAPDU: 80 17 00 00 [00:20:58]Write to MH i2c: E2 08 00 FD 11 80 17 00 00 00 00 00 00 8E [00:20:58]Write i2c OK [00:20:58]MH_I2C_Read... [00:20:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:58]Read from MH i2c: E2 [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: E2 FD 00 [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: E2 FD 00 FD 11 00 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 F0 [00:20:59]RAPDU: 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [00:20:59]wFMCommunicate OK [00:20:59]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:20:59]SAM_PROTO_ProcessDocument remain to read = 520 [00:20:59]wFMCommunicate request_size=4 [00:20:59]MH_SAM_APDU [00:20:59]CAPDU: 80 17 00 00 [00:20:59]Write to MH i2c: E2 08 00 FE 11 80 17 00 00 00 00 00 00 8F [00:20:59]Write i2c OK [00:20:59]MH_I2C_Read... [00:20:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:20:59]Read from MH i2c: E2 [00:20:59]MH_I2C_Read... [00:20:59]Read from MH i2c: E2 FD 00 [00:20:59]MH_I2C_Read... [00:20:59]Read from MH i2c: E2 FD 00 FE 11 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 17 [00:20:59]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 [00:20:59]wFMCommunicate OK [00:20:59]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:20:59]SAM_PROTO_ProcessDocument remain to read = 270 [00:20:59]wFMCommunicate request_size=4 [00:20:59]MH_SAM_APDU [00:20:59]CAPDU: 80 17 00 00 [00:20:59]Write to MH i2c: E2 08 00 FF 11 80 17 00 00 00 00 00 00 90 [00:20:59]Write i2c OK [00:20:59]MH_I2C_Read... [00:21:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:00]Read from MH i2c: E2 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 FD 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 FD 00 FF 11 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 5A [00:21:00]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 [00:21:00]wFMCommunicate OK [00:21:00]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:21:00]SAM_PROTO_ProcessDocument remain to read = 20 [00:21:00]wFMCommunicate request_size=4 [00:21:00]MH_SAM_APDU [00:21:00]CAPDU: 80 17 00 00 [00:21:00]Write to MH i2c: E2 08 00 00 12 80 17 00 00 00 00 00 00 92 [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [00:21:00]Read from MH i2c: E2 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 17 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 17 00 00 12 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 81 3F 03 23 27 9D 90 00 7D [00:21:00]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 81 3F 03 23 27 9D 90 00 [00:21:00]wFMCommunicate OK [00:21:00]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:21:00]SAM_PROTO_ProcessDocument done [00:21:00]1209 (1) - 1.0 - номер версии ФФД [00:21:00]1041 (16) - 0000000000871826 - номер ФМ [00:21:00]1040 (4) - 187198 - номер ФД [00:21:00]1038 (4) - 647 - номер смены [00:21:00]1118 (4) - 263 - количество кассовых чеков за смену [00:21:00]1111 (4) - 265 - общее количество ФД за смену [00:21:00]1194 (1197) - счетчики итогов смены [00:21:00] 1134 (4) - 263 - количество чеков со всеми признаками расчетов [00:21:00] 1129 (158) - счетчики операций «приход» [00:21:00] 1135 (4) - 263 - количество чеков по признаку расчетов [00:21:00] 1201 (4) - 225329.65 - общая итоговая сумма в чеках [00:21:00] 1136 (4) - 168252.00 - итоговая сумма в чеках наличными [00:21:00] 1138 (3) - 57077.65 - итоговая сумма в чеках безналичными [00:21:00] 1024 (123) - суммы налогов [00:21:00] 1006 (9) - суммы НДС [00:21:00] 1010 (1) - 0% - код ставки НДС [00:21:00] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:00] 1006 (12) - суммы НДС [00:21:00] 1010 (1) - 12% - код ставки НДС [00:21:00] 1011 (3) - 23934.33 - сумма НДС по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 0% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (12) - суммы НСП [00:21:00] 1014 (1) - 1% - код ставки НСП [00:21:00] 1015 (3) - 1994.40 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 2% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 3% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 5% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 0,50% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 1,50% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1130 (141) - счетчики операций «возврат прихода» [00:21:00] 1135 (4) - 0 - количество чеков по признаку расчетов [00:21:00] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:21:00] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:21:00] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:21:00] 1024 (117) - суммы налогов [00:21:00] 1006 (9) - суммы НДС [00:21:00] 1010 (1) - 0% - код ставки НДС [00:21:00] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:00] 1006 (9) - суммы НДС [00:21:00] 1010 (1) - 12% - код ставки НДС [00:21:00] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 0% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 1% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 2% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 3% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 5% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 0,50% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 1,50% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1131 (141) - счетчики операций «расход» [00:21:00] 1135 (4) - 0 - количество чеков по признаку расчетов [00:21:00] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:21:00] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:21:00] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:21:00] 1024 (117) - суммы налогов [00:21:00] 1006 (9) - суммы НДС [00:21:00] 1010 (1) - 0% - код ставки НДС [00:21:00] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:00] 1006 (9) - суммы НДС [00:21:00] 1010 (1) - 12% - код ставки НДС [00:21:00] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 0% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 1% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 2% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 3% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 5% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 0,50% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 1,50% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1132 (141) - счетчики операций «возврат расхода» [00:21:00] 1135 (4) - 0 - количество чеков по признаку расчетов [00:21:00] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:21:00] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:21:00] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:21:00] 1024 (117) - суммы налогов [00:21:00] 1006 (9) - суммы НДС [00:21:00] 1010 (1) - 0% - код ставки НДС [00:21:00] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:00] 1006 (9) - суммы НДС [00:21:00] 1010 (1) - 12% - код ставки НДС [00:21:00] 1011 (0) - 0.00 - сумма НДС по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 0% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 1% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 2% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 3% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 5% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 0,50% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1007 (9) - суммы НСП [00:21:00] 1014 (1) - 1,50% - код ставки НСП [00:21:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:21:00] 1133 (588) - - счетчики коррекции - не используются [00:21:00]1077 (6) - 142107635558301 - ФПД [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1209 (04B9) [00:21:00]Malloc new data [00:21:00]Processing tag 1041 (0411) [00:21:00]Processing tag 1040 (0410) [00:21:00]Malloc new data [00:21:00]Processing tag 1038 (040E) [00:21:00]Malloc new data [00:21:00]Processing tag 1118 (045E) [00:21:00]Malloc new data [00:21:00]Processing tag 1111 (0457) [00:21:00]Malloc new data [00:21:00]Processing tag 1194 (04AA) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1134 (046E) [00:21:00]Malloc new data [00:21:00]Processing tag 1129 (0469) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1135 (046F) [00:21:00]Malloc new data [00:21:00]Processing tag 1201 (04B1) [00:21:00]Malloc new data [00:21:00]Processing tag 1136 (0470) [00:21:00]Malloc new data [00:21:00]Processing tag 1138 (0472) [00:21:00]Malloc new data [00:21:00]Processing tag 1024 (0400) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1006 (03EE) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1010 (03F2) [00:21:00]Malloc new data [00:21:00]Processing tag 1011 (03F3) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1006 (03EE) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1010 (03F2) [00:21:00]Malloc new data [00:21:00]Processing tag 1011 (03F3) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:00]Malloc new data [00:21:00]SetTLVBufToDocument err=0 [00:21:00]Processing tag 1007 (03EF) [00:21:00]Load OK [00:21:00]SetTLVBufToDocument [00:21:00]Processing tag 1014 (03F6) [00:21:00]Malloc new data [00:21:00]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]OFD Sender: No OFD packet to send [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]SetTLVBufToDocument err=0 [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1130 (046A) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1135 (046F) [00:21:01]Malloc new data [00:21:01]Processing tag 1201 (04B1) [00:21:01]Malloc new data [00:21:01]Processing tag 1136 (0470) [00:21:01]Malloc new data [00:21:01]Processing tag 1138 (0472) [00:21:01]Malloc new data [00:21:01]Processing tag 1024 (0400) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1006 (03EE) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1010 (03F2) [00:21:01]Malloc new data [00:21:01]Processing tag 1011 (03F3) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1006 (03EE) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1010 (03F2) [00:21:01]Malloc new data [00:21:01]Processing tag 1011 (03F3) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]SetTLVBufToDocument err=0 [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1131 (046B) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1135 (046F) [00:21:01]Malloc new data [00:21:01]Processing tag 1201 (04B1) [00:21:01]Malloc new data [00:21:01]Processing tag 1136 (0470) [00:21:01]Malloc new data [00:21:01]Processing tag 1138 (0472) [00:21:01]Malloc new data [00:21:01]Processing tag 1024 (0400) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1006 (03EE) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1010 (03F2) [00:21:01]Malloc new data [00:21:01]Processing tag 1011 (03F3) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1006 (03EE) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1010 (03F2) [00:21:01]Malloc new data [00:21:01]Processing tag 1011 (03F3) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]SetTLVBufToDocument err=0 [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1132 (046C) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1135 (046F) [00:21:01]Malloc new data [00:21:01]Processing tag 1201 (04B1) [00:21:01]Malloc new data [00:21:01]Processing tag 1136 (0470) [00:21:01]Malloc new data [00:21:01]Processing tag 1138 (0472) [00:21:01]Malloc new data [00:21:01]Processing tag 1024 (0400) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1006 (03EE) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1010 (03F2) [00:21:01]Malloc new data [00:21:01]Processing tag 1011 (03F3) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1006 (03EE) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1010 (03F2) [00:21:01]Malloc new data [00:21:01]Processing tag 1011 (03F3) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1007 (03EF) [00:21:01]Load OK [00:21:01]SetTLVBufToDocument [00:21:01]Processing tag 1014 (03F6) [00:21:01]Malloc new data [00:21:01]Processing tag 1015 (03F7) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]SetTLVBufToDocument err=0 [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1133 (046D) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Processing tag 1077 (0435) [00:21:01]Malloc new data [00:21:01]SetTLVBufToDocument err=0 [00:21:01]Malloc new data [00:21:01]SAM_PROTO_GetFMData [00:21:01]wFMCommunicate request_size=4 [00:21:01]MH_SAM_APDU [00:21:01]CAPDU: 80 13 03 00 [00:21:01]Write to MH i2c: E2 08 00 01 12 80 13 03 00 00 00 00 00 92 [00:21:01]Write i2c OK [00:21:01]MH_I2C_Read... [00:21:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:21:01]Read from MH i2c: E2 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: E2 FD 00 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: E2 FD 00 01 12 00 C1 04 85 04 BD 04 6E 04 04 00 2F D6 02 00 69 04 A3 00 6F 04 04 00 1C D6 02 00 B1 04 05 00 8F 75 C1 1B 04 70 04 05 00 90 4B 8B 9A 03 72 04 04 00 FF 29 36 81 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 FF 8B B9 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 17 43 4F 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 EC [00:21:02]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 2F D6 02 00 69 04 A3 00 6F 04 04 00 1C D6 02 00 B1 04 05 00 8F 75 C1 1B 04 70 04 05 00 90 4B 8B 9A 03 72 04 04 00 FF 29 36 81 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 FF 8B B9 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 17 43 4F 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:02]wFMCommunicate OK [00:21:02]wFMCommunicate request_size=4 [00:21:02]MH_SAM_APDU [00:21:02]CAPDU: 80 17 00 00 [00:21:02]Write to MH i2c: E2 08 00 02 12 80 17 00 00 00 00 00 00 94 [00:21:02]Write i2c OK [00:21:02]MH_I2C_Read... [00:21:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:02]Read from MH i2c: E2 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: E2 FD 00 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: E2 FD 00 02 12 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:21:02]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:02]wFMCommunicate OK [00:21:02]wFMCommunicate request_size=4 [00:21:02]MH_SAM_APDU [00:21:02]CAPDU: 80 17 00 00 [00:21:02]Write to MH i2c: E2 08 00 03 12 80 17 00 00 00 00 00 00 95 [00:21:02]Write i2c OK [00:21:02]MH_I2C_Read... [00:21:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:03]Read from MH i2c: E2 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 FD 00 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 FD 00 03 12 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:21:03]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:03]wFMCommunicate OK [00:21:03]wFMCommunicate request_size=4 [00:21:03]MH_SAM_APDU [00:21:03]CAPDU: 80 17 00 00 [00:21:03]Write to MH i2c: E2 08 00 04 12 80 17 00 00 00 00 00 00 96 [00:21:03]Write i2c OK [00:21:03]MH_I2C_Read... [00:21:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:21:03]Read from MH i2c: E2 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 FD 00 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 FD 00 04 12 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:21:03]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:04]wFMCommunicate OK [00:21:04]wFMCommunicate request_size=4 [00:21:04]MH_SAM_APDU [00:21:04]CAPDU: 80 17 00 00 [00:21:04]Write to MH i2c: E2 08 00 05 12 80 17 00 00 00 00 00 00 97 [00:21:04]Write i2c OK [00:21:04]MH_I2C_Read... [00:21:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:21:04]Read from MH i2c: E2 [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: E2 DE 00 [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: E2 DE 00 05 12 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:21:04]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:04]wFMCommunicate OK [00:21:04]SAM_PROTO_GetFMData done [00:21:04]Malloc new data [00:21:04]Malloc new data [00:21:04]Malloc new data [00:21:04]Malloc new data [00:21:04]KKMLoadAndSignCloseShiftData err=0 [00:21:04]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Рыскулов Ж. 20.02.2025 00:20 Смена: 647 РНМ: 0000000000091857 ЗНМ: 0300000118 СНО: Общий режим Чеков за смену: 263 ФД за смену: 265 Всего чеков: 263 ИТОГИ ПРИХОД Чеков: 263 Общий итог: 225329.65 Итого наличными: 168252.00 Итого безнал.: 57077.65 НДС 0% : 0.00 НДС 12% : 23934.33 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1994.40 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 168252.00 НС Приход: 176455325.59 НС Возвр.Прихода: 37055.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 187198 ФМ: 0000000000871826 ФПД: 142107635558301 [00:21:04]StoreToDocumentArchive [00:21:04]shift 647 fd 187198 [00:21:04]save to /storage/0647/doc_00187198 [00:21:04]save last doc name /storage/0647/doc_00187198 to /storage/kkm_last_doc_name [00:21:04]save OK [00:21:04]Clear old archive folders... [00:21:04]Remove dir /storage/0522 [00:21:04]opendir ok [00:21:04]file . [00:21:04]file .. [00:21:04]file doc_1740010813 [00:21:04]remove file /storage/0522/doc_1740010813 [00:21:04]remove dir /storage/0522 [00:21:04]NVStorageSaveData kkm_registers [00:21:04]File name is /storage/kkm_registers [00:21:04]Write 24 bytes [00:21:04]NVStorageSaveData done [00:21:04]NVStorageSaveData kkm_registers [00:21:04]File name is /storage/kkm_registers [00:21:04]Write 24 bytes [00:21:04]NVStorageSaveData done [00:21:04]ProcessDocumentItem done err = 0, tmpTLVsize=1381 [00:21:04]tlvbuf is 020B0B60 [00:21:04]SAM_PROTO_ClearQueue [00:21:04]wFMCommunicate request_size=4 [00:21:04]MH_SAM_APDU [00:21:04]CAPDU: 80 09 00 00 [00:21:04]Write to MH i2c: E2 08 00 06 12 80 09 00 00 00 00 00 00 8A [00:21:04]Write i2c OK [00:21:04]MH_I2C_Read... [00:21:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:04]Read from MH i2c: E2 [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: E2 03 00 [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: E2 03 00 06 12 00 90 00 8C [00:21:04]RAPDU: 90 00 [00:21:04]wFMCommunicate OK [00:21:04]SAM_PROTO_ClearQueue done [00:21:04]KKMCreateOFDPacket [00:21:04]OFDProtocolAddRootSTLVToBuf [00:21:04]FM_MakeSignedData [00:21:04]FM_MakeSignedData [00:21:04]SAM_PROTO_SignData [00:21:04]wFMCommunicate request_size=4 [00:21:04]MH_SAM_APDU [00:21:04]CAPDU: 80 0D 01 02 [00:21:04]Write to MH i2c: E2 08 00 07 12 80 0D 01 02 00 00 00 00 92 [00:21:04]Write i2c OK [00:21:04]MH_I2C_Read... [00:21:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:04]Read from MH i2c: E2 [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: E2 03 00 [00:21:04]MH_I2C_Read... [00:21:04]Read from MH i2c: E2 03 00 07 12 00 90 00 8D [00:21:04]RAPDU: 90 00 [00:21:04]wFMCommunicate OK [00:21:04]wFMCommunicate request_size=255 [00:21:04]MH_SAM_APDU [00:21:04]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 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 6A 75 B6 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 5E 04 04 00 07 01 00 00 57 04 04 00 09 01 00 00 AA 04 D8 04 6E 04 04 00 07 01 00 00 69 04 A5 00 6F 04 04 00 07 01 00 00 B1 04 04 00 65 D3 57 01 70 04 04 00 70 BB 00 01 72 04 03 00 F5 17 57 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 59 85 24 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:05]Write to MH i2c: E2 02 01 08 12 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 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 6A 75 B6 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 5E 04 04 00 07 01 00 00 57 04 04 00 09 01 00 00 AA 04 D8 04 6E 04 04 00 07 01 00 00 69 04 A5 00 6F 04 04 00 07 01 00 00 B1 04 04 00 65 D3 57 01 70 04 04 00 70 BB 00 01 72 04 03 00 F5 17 57 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 59 85 24 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 15 [00:21:05]Write i2c OK [00:21:05]MH_I2C_Read... [00:21:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:05]Read from MH i2c: E2 [00:21:05]MH_I2C_Read... [00:21:05]Read from MH i2c: E2 03 00 [00:21:05]MH_I2C_Read... [00:21:05]Read from MH i2c: E2 03 00 08 12 00 90 00 8E [00:21:05]RAPDU: 90 00 [00:21:05]wFMCommunicate OK [00:21:05]wFMCommunicate request_size=255 [00:21:05]MH_SAM_APDU [00:21:05]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 10 0B 03 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:05]Write to MH i2c: E2 02 01 09 12 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 10 0B 03 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 28 [00:21:05]Write i2c OK [00:21:05]MH_I2C_Read... [00:21:06]OFD Sender: No OFD packet to send [00:21:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:06]Read from MH i2c: E2 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 09 12 00 90 00 8F [00:21:06]RAPDU: 90 00 [00:21:06]wFMCommunicate OK [00:21:06]wFMCommunicate request_size=255 [00:21:06]MH_SAM_APDU [00:21:06]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 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:06]Write to MH i2c: E2 02 01 0A 12 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 5D [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:06]Read from MH i2c: E2 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 0A 12 00 90 00 90 [00:21:06]RAPDU: 90 00 [00:21:06]wFMCommunicate OK [00:21:06]wFMCommunicate request_size=255 [00:21:06]MH_SAM_APDU [00:21:06]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:07]Write to MH i2c: E2 02 01 0B 12 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 5B [00:21:07]Write i2c OK [00:21:07]MH_I2C_Read... [00:21:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:07]Read from MH i2c: E2 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 03 00 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 03 00 0B 12 00 90 00 91 [00:21:07]RAPDU: 90 00 [00:21:07]wFMCommunicate OK [00:21:07]wFMCommunicate request_size=255 [00:21:07]MH_SAM_APDU [00:21:07]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:07]Write to MH i2c: E2 02 01 0C 12 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 23 [00:21:07]Write i2c OK [00:21:07]MH_I2C_Read... [00:21:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:08]Read from MH i2c: E2 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 03 00 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 03 00 0C 12 00 90 00 92 [00:21:08]RAPDU: 90 00 [00:21:08]wFMCommunicate OK [00:21:08]wFMCommunicate request_size=140 [00:21:08]MH_SAM_APDU [00:21:08]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 3E DB 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 81 3F 03 23 27 9D [00:21:08]Write to MH i2c: E2 8F 00 0D 12 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 3E DB 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 81 3F 03 23 27 9D 00 00 9D [00:21:08]Write i2c OK [00:21:08]MH_I2C_Read... [00:21:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:08]Read from MH i2c: E2 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 03 00 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 03 00 0D 12 00 90 00 93 [00:21:08]RAPDU: 90 00 [00:21:08]wFMCommunicate OK [00:21:08]wFMCommunicate request_size=4 [00:21:08]MH_SAM_APDU [00:21:08]CAPDU: 80 0D 03 02 [00:21:08]Write to MH i2c: E2 08 00 0E 12 80 0D 03 02 00 00 00 00 9B [00:21:08]Write i2c OK [00:21:08]MH_I2C_Read... [00:21:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:08]Read from MH i2c: E2 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 0B 00 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 0B 00 0E 12 00 94 2E AA BC 51 C8 A8 B4 90 00 39 [00:21:08]RAPDU: 94 2E AA BC 51 C8 A8 B4 90 00 [00:21:08]wFMCommunicate OK [00:21:08]SAM_PROTO_SignData done [00:21:08]FM_MakeSignedData done [00:21:08]CreateOFDProtocolMessage [00:21:08]wFMCommunicate request_size=4 [00:21:08]MH_SAM_APDU [00:21:08]CAPDU: 80 11 00 00 [00:21:08]Write to MH i2c: E2 08 00 0F 12 80 11 00 00 00 00 00 00 9B [00:21:08]Write i2c OK [00:21:08]MH_I2C_Read... [00:21:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:08]Read from MH i2c: E2 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 17 00 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: E2 17 00 0F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EE [00:21:08]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:08]wFMCommunicate OK [00:21:08]CreateOFDProtocolMessage done [00:21:08]OFDSenderStorePacket 187198 [00:21:08]StoreOFDPacket docnum=187198 [00:21: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 79 05 00 00 32 3C 71 05 C0 37 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 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 6A 75 B6 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 5E 04 04 00 07 01 00 00 57 04 04 00 09 01 00 00 AA 04 D8 04 6E 04 04 00 07 01 00 00 69 04 A5 00 6F 04 04 00 07 01 00 00 B1 04 04 00 65 D3 57 01 70 04 04 00 70 BB 00 01 72 04 03 00 F5 17 57 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 59 85 24 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 10 0B 03 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 3E DB 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 81 3F 03 23 27 9D 94 2E AA BC 51 C8 A8 B4 [00:21:09]CheckFolder [00:21:09]dirname=/storage/ofd_packets [00:21:09]CheckFolder done [00:21:09]ProducePacketName [00:21:09]name=ofd_packets/00187198 [00:21:09]NVStorageSaveData ofd_packets/00187198 [00:21:09]File name is /storage/ofd_packets/00187198 [00:21:09]Write 1431 bytes [00:21:09]NVStorageSaveData done [00:21:09]OFDSenderStorePacket done [00:21:09]KKMCreateOFDPacket done [00:21:09]NVStorageSaveData kkm_last_timestamp [00:21:09]File name is /storage/kkm_last_timestamp [00:21:09]Write 4 bytes [00:21:09]NVStorageSaveData done [00:21:09]ExternCall_PrintAddStr [00:21:09]wPrintStart [00:21:09]Write to MH i2c: 01 00 00 10 12 22 [00:21:09]OFD Sender: Processing packet 187198 [packets to send 49, broken 48] [00:21:09]ProducePacketName [00:21:09]name=ofd_packets/00187198 [00:21:09]OFD Sender: To server: pG, [00:21:09]CommunicateWithHost lk.salyk.kg:30040 [00:21:09]ConnectInit lk.salyk.kg [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 10 12 00 00 00 00 00 FF 0F 37 [00:21:09]RasterBufferAndPrint [00:21:09]line Отчет о закрытии смены [00:21:09]line ФФД: 1.0 [00:21:09]line ИНН: 02508201610067 [00:21:09]line Кассир: Рыскулов Ж. [00:21:09]line 20.02.2025 00:20 [00:21:09]line Смена: 647 [00:21:09]line РНМ: 0000000000091857 [00:21:09]line ЗНМ: 0300000118 [00:21:09]line СНО: Общий режим [00:21:09]line Чеков за смену: 263 [00:21:09]line ФД за смену: 265 [00:21:09]line Всего чеков: 263 [00:21:09]line ИТОГИ ПРИХОД [00:21:09]line Чеков: 263 [00:21:09]line Общий итог: 225329.65 [00:21:09]line Итого наличными: 168252.00 [00:21:09]line Итого безнал.: 57077.65 [00:21:09]line НДС 0% : 0.00 [00:21:09]line НДС 12% : 23934.33 [00:21:09]line НСП 0% : 0.00 [00:21:09]line НСП 1,50% : 0.00 [00:21:09]line НСП 0,50% : 0.00 [00:21:09]line НСП 5% : 0.00 [00:21:09]line НСП 3% : 0.00 [00:21:09]line НСП 2% : 0.00 [00:21:09]line НСП 1% : 1994.40 [00:21:09]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:21:09]line Чеков: 0 [00:21:09]line Общий итог: 0.00 [00:21:09]line Итого наличными: 0.00 [00:21:09]line Итого безнал.: 0.00 [00:21:09]line НДС 0% : 0.00 [00:21:09]line НДС 12% : 0.00 [00:21:09]line НСП 0% : 0.00 [00:21:09]line НСП 1,50% : 0.00 [00:21:09]line НСП 0,50% : 0.00 [00:21:09]line НСП 5% : 0.00 [00:21:09]line НСП 3% : 0.00 [00:21:09]line НСП 2% : 0.00 [00:21:09]line НСП 1% : 0.00 [00:21:09]line ИТОГИ РАСХОД [00:21:09]line Чеков: 0 [00:21:09]line Общий итог: 0.00 [00:21:09]line Итого наличными: 0.00 [00:21:09]line Итого безнал.: 0.00 [00:21:09]line НДС 0% : 0.00 [00:21:09]line НДС 12% : 0.00 [00:21:09]line НСП 0% : 0.00 [00:21:09]line НСП 1,50% : 0.00 [00:21:09]line НСП 0,50% : 0.00 [00:21:09]line НСП 5% : 0.00 [00:21:09]line НСП 3% : 0.00 [00:21:09]line НСП 2% : 0.00 [00:21:09]line НСП 1% : 0.00 [00:21:09]line ИТОГИ ВОЗВРАТ РАСХОДА [00:21:09]line Чеков: 0 [00:21:09]line Общий итог: 0.00 [00:21:09]line Итого наличными: 0.00 [00:21:09]line Итого безнал.: 0.00 [00:21:09]line НДС 0% : 0.00 [00:21:09]line НДС 12% : 0.00 [00:21:09]line НСП 0% : 0.00 [00:21:09]line НСП 1,50% : 0.00 [00:21:09]line НСП 0,50% : 0.00 [00:21:09]line НСП 5% : 0.00 [00:21:09]line НСП 3% : 0.00 [00:21:09]line НСП 2% : 0.00 [00:21:09]line НСП 1% : 0.00 [00:21:09]line Сумма внесений: 0.00 [00:21:09]line Сумма выплат: 0.00 [00:21:09]line Нал. в кассе: 168252.00 [00:21:09]line НС Приход: 176455325.59 [00:21:09]line НС Возвр.Прихода: 37055.00 [00:21:09]line НС Расход: 0.00 [00:21:09]line НС Возвр.Расхода: 0.00 [00:21:09]line ФД: 187198 [00:21:09]line ФМ: 0000000000871826 [00:21:09]line ФПД: 142107635558301 [00:21:09]written 0, free lines is 4095 [00:21:09]Connected sock=10 [00:21: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 79 05 00 00 32 3C 71 05 C0 37 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 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 6A 75 B6 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 5E 04 04 00 07 01 00 00 57 04 04 00 09 01 00 00 AA 04 D8 04 6E 04 04 00 07 01 00 00 69 04 A5 00 6F 04 04 00 07 01 00 00 B1 04 04 00 65 D3 57 01 70 04 04 00 70 BB 00 01 72 04 03 00 F5 17 57 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 59 85 24 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 10 0B 03 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 Write to MH i2c: 00 01 79 00 04 00 8D 60 00 12 6F 72 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 [00:21:10]00 Write i2c OK [00:21:10]72 MH_I2C_Read... [00:21:10]04 Read from MH i2c: 00 01 00 [00:21:10]00 MH_I2C_Read... [00:21:10]04 Read from MH i2c: 75 01 00 07 EE 00 03 [00:21:10]09 MH_I2C_Read... [00:21:10]00 Read from MH i2c: F2 01 03 07 01 00 00 60 00 12 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 00 03 00 00 00 00 00 EF 00 03 EA 09 0B 00 6E F6 [00:21:10]03 RasterBufferAndPrint [00:21:10]01 line [00:21:10]00 line [00:21:10]00 line [00:21:10]F7 03 00 00 EF 03 09 00 F6 03 01 00 01 line [00:21:10]F7 line [00:21:10]03 00 00 written 0, free lines is 3219 [00:21:10]EF 03 09 00 F6 03 01 00 02 F7 03 00 00 MH_Cut [00:21:10]EF Write to MH i2c: 03 D1 09 01 00 00 F6 67 03 12 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 01 00 4B 04 [00:21:10]F7 03 00 00 EF 03 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 Write i2c OK [00:21:10]F3 MH_I2C_Read... [00:21:10]03 Read from MH i2c: 00 D1 00 [00:21:10]EF MH_I2C_Read... [00:21:10]03 09 00 F6 03 01 00 00 F7 03 00 00 EF Read from MH i2c: 03 D1 09 01 00 00 [00:21:10]F6 MH_I2C_Read... [00:21:10]03 Read from MH i2c: 01 D1 00 01 01 00 F7 67 03 12 00 00 00 4A EF [00:21:10]03 Write to MH i2c: 09 01 00 00 F6 00 03 68 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 12 01 7A 00 [00:21:10]03 F7 03 00 00 EF 03 09 00 Write i2c OK [00:21:10]F6 MH_I2C_Read... [00:21:10]03 01 00 04 F7 03 00 00 EF 03 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 3E DB 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 81 3F 03 23 27 9D 94 2E AA BC 51 C8 A8 B4 [00:21:11]*** Cut start [00:21:11]*** Partial cut [00:21:11]*** CUTSNS_PIN = 1 [00:21:11]*** CUTSNS_PIN = 0 [00:21: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 05 37 47 00 AD 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 3E DB 02 00 F4 03 04 00 C9 1B B6 67 B6 04 01 00 00 77 64 C6 58 8E 6C 42 07 [00:21:11]CommunicateWithHost err = 0 [00:21:11]CheckOFDResponse [00:21:11]1017 (14) - 77093643461234 [00:21:11]1041 (16) - 0000000000871826 [00:21:11]1040 (4) - 187198 [00:21:11]*** Brake cut motor [00:21:11]1012 (4) - 19.02.2025 17:58 [00:21:11]1206 (1) - 0 [00:21:11]OFD Sender: Remove packet 187198 [00:21:11]ProducePacketName [00:21:11]name=ofd_packets/00187198 [00:21:11]NVStorageDeleteData [00:21:11]Read from MH i2c: 01 [00:21:11]MH_I2C_Read... [00:21:11]*** Stop cut motor [00:21:11]*** Cut end [00:21:11]Read from MH i2c: 01 07 00 [00:21:11]MH_I2C_Read... [00:21:11]Read from MH i2c: 01 07 00 68 12 00 00 00 00 00 FF 0F 8F [00:21:11]process_action close_shift done [00:21:11]requested_data is exist [00:21:11]produce_requested_data [00:21:11]requested_item fd.num is exist - process it [00:21:11]SAM_PROTO_GetFieldsCounters [00:21:11]wFMCommunicate request_size=4 [00:21:11]MH_SAM_APDU [00:21:11]CAPDU: 80 13 00 00 [00:21:11]Write to MH i2c: E2 08 00 69 12 80 13 00 00 00 00 00 00 F7 [00:21:11]Write i2c OK [00:21:11]MH_I2C_Read... [00:21:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:12]OFD Sender: No OFD packet to send [00:21:12]Read from MH i2c: E2 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 62 00 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 62 00 69 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 3E DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 DA [00:21:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3E DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:12]wFMCommunicate OK [00:21:12]SAM_PROTO_GetFieldsCounters done [00:21:12]requested_item shift.num is exist - process it [00:21:12]requested_item shift.opened is exist - process it [00:21:12]req_shift_opened [00:21:12]FM_GetShiftState [00:21:12]SAM_PROTO_GetShiftState [00:21:12]wFMCommunicate request_size=4 [00:21:12]MH_SAM_APDU [00:21:12]CAPDU: 80 13 01 00 [00:21:12]Write to MH i2c: E2 08 00 6A 12 80 13 01 00 00 00 00 00 F9 [00:21:12]Write i2c OK [00:21:12]MH_I2C_Read... [00:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:12]Read from MH i2c: E2 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 0E 00 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 0E 00 6A 12 00 09 00 00 00 00 00 00 00 00 00 00 90 00 04 [00:21:12]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:21:12]wFMCommunicate OK [00:21:12]SAM_PROTO_GetShiftState done [00:21:12]FM_GetShiftState done [00:21:12]req_shift_opened done [00:21:12]requested_item shift.open_date is exist - process it [00:21:12]req_shift_open_date [00:21:12]FM_GetShiftState [00:21:12]SAM_PROTO_GetShiftState [00:21:12]wFMCommunicate request_size=4 [00:21:12]MH_SAM_APDU [00:21:12]CAPDU: 80 13 01 00 [00:21:12]Write to MH i2c: E2 08 00 6B 12 80 13 01 00 00 00 00 00 FA [00:21:12]Write i2c OK [00:21:12]MH_I2C_Read... [00:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:12]Read from MH i2c: E2 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 0E 00 [00:21:12]MH_I2C_Read... [00:21:12]Read from MH i2c: E2 0E 00 6B 12 00 09 00 00 00 00 00 00 00 00 00 00 90 00 05 [00:21:12]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:21:12]wFMCommunicate OK [00:21:12]SAM_PROTO_GetShiftState done [00:21:12]FM_GetShiftState done [00:21:12]req_shift_open_date done [00:21:12]produce_requested_data done [00:21:12]produce_requested_data return {"fd.num":187198,"shift.num":647,"shift.opened":0,"shift.open_date":0} [00:21:12]process_action_free close_shift [00:21:12]json_value_free [00:21:12]json_value_free done [00:21:12]process_json_proto returns [00:21:12]Send response to host [00:21:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":187198,"shift.num":647,"shift.opened":0,"shift.open_date":0}}} [00:21:12]free response buf [00:21:12]execute_script done [00:21:12]execute_script returns [00:21:12]free content buf [00:21:12]Sock 7.Close socket [00:21:12]Sock 7.Thread stoped [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:37]OFD Sender: No OFD packet to send [00:28:42]OFD Sender: No OFD packet to send [00:28:47]OFD Sender: No OFD packet to send [00:28:52]OFD Sender: No OFD packet to send [00:28:57]OFD Sender: No OFD packet to send [00:29:02]OFD Sender: No OFD packet to send [00:29:07]OFD Sender: No OFD packet to send [00:29:12]OFD Sender: No OFD packet to send [00:29:17]OFD Sender: No OFD packet to send [00:29:22]OFD Sender: No OFD packet to send [00:29:27]OFD Sender: No OFD packet to send [00:29:32]OFD Sender: No OFD packet to send [00:29:37]OFD Sender: No OFD packet to send [00:29:42]OFD Sender: No OFD packet to send [00:29:47]OFD Sender: No OFD packet to send [00:29:52]OFD Sender: No OFD packet to send [00:29:57]OFD Sender: No OFD packet to send [00:30:02]OFD Sender: No OFD packet to send [00:30:07]OFD Sender: No OFD packet to send [00:30:12]OFD Sender: No OFD packet to send [00:30:17]OFD Sender: No OFD packet to send [00:30:22]OFD Sender: No OFD packet to send [00:30:27]OFD Sender: No OFD packet to send [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:57]OFD Sender: No OFD packet to send [00:31:02]OFD Sender: No OFD packet to send [00:31:07]OFD Sender: No OFD packet to send [00:31:12]OFD Sender: No OFD packet to send [00:31:17]OFD Sender: No OFD packet to send [00:31:22]OFD Sender: No OFD packet to send [00:31:27]OFD Sender: No OFD packet to send [00:31:32]OFD Sender: No OFD packet to send [00:31:37]OFD Sender: No OFD packet to send [00:31:42]OFD Sender: No OFD packet to send [00:31:47]OFD Sender: No OFD packet to send [00:31:52]OFD Sender: No OFD packet to send [00:31:57]OFD Sender: No OFD packet to send [00:32:02]OFD Sender: No OFD packet to send [00:32:07]OFD Sender: No OFD packet to send [00:32:12]OFD Sender: No OFD packet to send [00:32:17]OFD Sender: No OFD packet to send [00:32:22]OFD Sender: No OFD packet to send [00:32:27]OFD Sender: No OFD packet to send [00:32:32]OFD Sender: No OFD packet to send [00:32:37]OFD Sender: No OFD packet to send [00:32:42]OFD Sender: No OFD packet to send [00:32:47]OFD Sender: No OFD packet to send [00:32:52]OFD Sender: No OFD packet to send [00:32:57]OFD Sender: No OFD packet to send [00:33:02]OFD Sender: No OFD packet to send [00:33:07]OFD Sender: No OFD packet to send [00:33:12]OFD Sender: No OFD packet to send [00:33:17]OFD Sender: No OFD packet to send [00:33:22]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:32]OFD Sender: No OFD packet to send [00:33:37]OFD Sender: No OFD packet to send [00:33:42]OFD Sender: No OFD packet to send [00:33:47]OFD Sender: No OFD packet to send [00:33:52]OFD Sender: No OFD packet to send [00:33:57]OFD Sender: No OFD packet to send [00:34:02]OFD Sender: No OFD packet to send [00:34:07]OFD Sender: No OFD packet to send [00:34:12]OFD Sender: No OFD packet to send [00:34:17]OFD Sender: No OFD packet to send [00:34:22]OFD Sender: No OFD packet to send [00:34:27]OFD Sender: No OFD packet to send [00:34:32]OFD Sender: No OFD packet to send [00:34:37]OFD Sender: No OFD packet to send [00:34:42]OFD Sender: No OFD packet to send [00:34:47]OFD Sender: No OFD packet to send [00:34:52]accept exits with 9 [00:34:52]New connection [00:34:52]New thread 3066510692 created [00:34:52]Thread 3066654052 joined [00:34:52]Waiting for new connection... [00:34:52] Sock 9.Parse request [00:34:52]Sock 9.Check first char [00:34:52]Sock 9.First char is OK [00:34:52]request: POST /json_proto HTTP/1.0 [00:34:52]Method: POST [00:34:52]URL: /json_proto [00:34:52]Method is POST - this is cgi request [00:34:52]url: /json_proto [00:34:52]query_string will be loaded in cgi processing [00:34:52]execute_cgi json_proto POST (null) [00:34:52]execute_cgi path=json_proto method=POST [00:34:52]POST find Content-Length [00:34:52]Host: 172.17.46.131:8080 [00:34:52]Content-Length: 215 [00:34:52]Content-Type: application/json [00:34:52] [00:34:52]POST finish read [00:34:52]Found Content-Length = 215 [00:34:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:52]execute_script... [00:34:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:52]POST & json_proto [00:34:52]process_json_proto [00:34:52]json parsed OK: [00:34:52]protocol is kg_v1.0 [00:34:52]action value=get_value [00:34:52]process_action get_value [00:34:52]cmd_get_value [00:34:52]process_action get_value done [00:34:52]requested_data is exist [00:34:52]produce_requested_data [00:34:52]requested_item kkm.sn is exist - process it [00:34:52]requested_item kkm.ver is exist - process it [00:34:52]requested_item fm.sn is exist - process it [00:34:52]wFMCommunicate request_size=4 [00:34:52]MH_SAM_APDU [00:34:52]CAPDU: 80 11 00 00 [00:34:52]Write to MH i2c: E2 08 00 6C 12 80 11 00 00 00 00 00 00 F8 [00:34:52]Write i2c OK [00:34:52]MH_I2C_Read... [00:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:52]Read from MH i2c: E2 [00:34:52]MH_I2C_Read... [00:34:52]Read from MH i2c: E2 17 00 [00:34:52]MH_I2C_Read... [00:34:52]Read from MH i2c: E2 17 00 6C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4B [00:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:34:52]wFMCommunicate OK [00:34:52]requested_item fd.num is exist - process it [00:34:52]SAM_PROTO_GetFieldsCounters [00:34:52]wFMCommunicate request_size=4 [00:34:52]MH_SAM_APDU [00:34:52]CAPDU: 80 13 00 00 [00:34:52]Write to MH i2c: E2 08 00 6D 12 80 13 00 00 00 00 00 00 FB [00:34:52]Write i2c OK [00:34:52]MH_I2C_Read... [00:34:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:34:52]Read from MH i2c: E2 [00:34:52]MH_I2C_Read... [00:34:52]Read from MH i2c: E2 62 00 [00:34:52]MH_I2C_Read... [00:34:52]Read from MH i2c: E2 62 00 6D 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 3E DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [00:34: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 3E DB 02 00 0E 04 04 00 87 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:34:52]wFMCommunicate OK [00:34:52]SAM_PROTO_GetFieldsCounters done [00:34:52]requested_item shift.num is exist - process it [00:34:52]requested_item shift.opened is exist - process it [00:34:52]req_shift_opened [00:34:52]FM_GetShiftState [00:34:52]SAM_PROTO_GetShiftState [00:34:52]wFMCommunicate request_size=4 [00:34:52]MH_SAM_APDU [00:34:52]CAPDU: 80 13 01 00 [00:34:52]Write to MH i2c: E2 08 00 6E 12 80 13 01 00 00 00 00 00 FD [00:34:52]Write i2c OK [00:34:52]MH_I2C_Read... [00:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:52]Read from MH i2c: E2 [00:34:52]MH_I2C_Read... [00:34:52]Read from MH i2c: E2 0E 00 [00:34:52]MH_I2C_Read... [00:34:52]Read from MH i2c: E2 0E 00 6E 12 00 09 00 00 00 00 00 00 00 00 00 00 90 00 08 [00:34:52]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:34:52]wFMCommunicate OK [00:34:52]SAM_PROTO_GetShiftState done [00:34:52]FM_GetShiftState done [00:34:52]req_shift_opened done [00:34:52]requested_item shift.open_date is exist - process it [00:34:52]req_shift_open_date [00:34:52]FM_GetShiftState [00:34:52]SAM_PROTO_GetShiftState [00:34:52]wFMCommunicate request_size=4 [00:34:52]MH_SAM_APDU [00:34:52]CAPDU: 80 13 01 00 [00:34:52]Write to MH i2c: E2 08 00 6F 12 80 13 01 00 00 00 00 00 FE [00:34:52]Write i2c OK [00:34:52]MH_I2C_Read... [00:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:52]Read from MH i2c: E2 [00:34:52]MH_I2C_Read... [00:34:52]Read from MH i2c: E2 0E 00 [00:34:52]MH_I2C_Read... [00:34:52]Read from MH i2c: E2 0E 00 6F 12 00 09 00 00 00 00 00 00 00 00 00 00 90 00 09 [00:34:52]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:34:52]wFMCommunicate OK [00:34:52]SAM_PROTO_GetShiftState done [00:34:52]FM_GetShiftState done [00:34:52]req_shift_open_date done [00:34:52]produce_requested_data done [00:34:52]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":187198,"shift.num":647,"shift.opened":0,"shift.open_date":0} [00:34:52]process_action_free get_value [00:34:52]json_value_free [00:34:52]json_value_free done [00:34:52]process_json_proto returns [00:34:52]Send response to host [00:34:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":187198,"shift.num":647,"shift.opened":0,"shift.open_date":0}}} [00:34:52]free response buf [00:34:52]execute_script done [00:34:52]execute_script returns [00:34:52]free content buf [00:34:52]Sock 9.Close socket [00:34:52]Sock 9.Thread stoped [00:34:52]accept exits with 7 [00:34:52]New connection [00:34:52]New thread 3066654052 created [00:34:52]Thread 3066510692 joined [00:34:52]Waiting for new connection... [00:34:52] Sock 7.Parse request [00:34:52]Sock 7.Check first char [00:34:52]Sock 7.First char is OK [00:34:52]request: POST /json_proto HTTP/1.0 [00:34:52]Method: POST [00:34:52]URL: /json_proto [00:34:52]Method is POST - this is cgi request [00:34:52]url: /json_proto [00:34:52]query_string will be loaded in cgi processing [00:34:52]execute_cgi json_proto POST (null) [00:34:52]execute_cgi path=json_proto method=POST [00:34:52]POST find Content-Length [00:34:52]Host: 172.17.46.131:8080 [00:34:52]Content-Length: 331 [00:34:52]Content-Type: application/json [00:34:52] [00:34:52]POST finish read [00:34:52]Found Content-Length = 331 [00:34:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:34:52]execute_script... [00:34:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:34:52]POST & json_proto [00:34:52]process_json_proto [00:34:52]json parsed OK: [00:34:52]protocol is kg_v1.0 [00:34:52]action value=get_value [00:34:52]process_action get_value [00:34:52]cmd_get_value [00:34:52]process_action get_value done [00:34:52]requested_data is exist [00:34:52]produce_requested_data [00:34:52]requested_item fm.sale.total is exist - process it [00:34:52]SAM_PROTO_GetFMData [00:34:52]wFMCommunicate request_size=4 [00:34:52]MH_SAM_APDU [00:34:52]CAPDU: 80 13 03 00 [00:34:52]Write to MH i2c: E2 08 00 70 12 80 13 03 00 00 00 00 00 01 [00:34:52]Write i2c OK [00:34:52]MH_I2C_Read... [00:34:52]OFD Sender: No OFD packet to send [00:34:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:34:53]Read from MH i2c: E2 [00:34:53]MH_I2C_Read... [00:34:53]Read from MH i2c: E2 FD 00 [00:34:53]MH_I2C_Read... [00:34:53]Read from MH i2c: E2 FD 00 70 12 00 C1 04 85 04 BD 04 6E 04 04 00 2F D6 02 00 69 04 A3 00 6F 04 04 00 1C D6 02 00 B1 04 05 00 8F 75 C1 1B 04 70 04 05 00 90 4B 8B 9A 03 72 04 04 00 FF 29 36 81 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 FF 8B B9 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 17 43 4F 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:34:53]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 2F D6 02 00 69 04 A3 00 6F 04 04 00 1C D6 02 00 B1 04 05 00 8F 75 C1 1B 04 70 04 05 00 90 4B 8B 9A 03 72 04 04 00 FF 29 36 81 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 FF 8B B9 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 17 43 4F 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:34:53]wFMCommunicate OK [00:34:53]wFMCommunicate request_size=4 [00:34:53]MH_SAM_APDU [00:34:53]CAPDU: 80 17 00 00 [00:34:53]Write to MH i2c: E2 08 00 71 12 80 17 00 00 00 00 00 00 03 [00:34:53]Write i2c OK [00:34:53]MH_I2C_Read... [00:34:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:53]Read from MH i2c: E2 [00:34:53]MH_I2C_Read... [00:34:53]Read from MH i2c: E2 FD 00 [00:34:53]MH_I2C_Read... [00:34:53]Read from MH i2c: E2 FD 00 71 12 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 CC [00:34:53]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:34:53]wFMCommunicate OK [00:34:53]wFMCommunicate request_size=4 [00:34:53]MH_SAM_APDU [00:34:53]CAPDU: 80 17 00 00 [00:34:53]Write to MH i2c: E2 08 00 72 12 80 17 00 00 00 00 00 00 04 [00:34:53]Write i2c OK [00:34:53]MH_I2C_Read... [00:34:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:53]Read from MH i2c: E2 [00:34:53]MH_I2C_Read... [00:34:53]Read from MH i2c: E2 FD 00 [00:34:53]MH_I2C_Read... [00:34:53]Read from MH i2c: E2 FD 00 72 12 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 A4 [00:34:53]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:34:53]wFMCommunicate OK [00:34:53]wFMCommunicate request_size=4 [00:34:53]MH_SAM_APDU [00:34:53]CAPDU: 80 17 00 00 [00:34:53]Write to MH i2c: E2 08 00 73 12 80 17 00 00 00 00 00 00 05 [00:34:53]Write i2c OK [00:34:53]MH_I2C_Read... [00:34:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:53]Read from MH i2c: E2 [00:34:53]MH_I2C_Read... [00:34:53]Read from MH i2c: E2 FD 00 [00:34:53]MH_I2C_Read... [00:34:53]Read from MH i2c: E2 FD 00 73 12 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 8A [00:34:53]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:34:53]wFMCommunicate OK [00:34:53]wFMCommunicate request_size=4 [00:34:53]MH_SAM_APDU [00:34:53]CAPDU: 80 17 00 00 [00:34:53]Write to MH i2c: E2 08 00 74 12 80 17 00 00 00 00 00 00 06 [00:34:53]Write i2c OK [00:34:53]MH_I2C_Read... [00:34:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:34:54]Read from MH i2c: E2 [00:34:54]MH_I2C_Read... [00:34:54]Read from MH i2c: E2 DE 00 [00:34:54]MH_I2C_Read... [00:34:54]Read from MH i2c: E2 DE 00 74 12 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E5 [00:34:54]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:54]wFMCommunicate OK [00:34:54]SAM_PROTO_GetFMData done [00:34:54]requested_item fm.sale_refund.total is exist - process it [00:34:54]requested_item fm.buy.total is exist - process it [00:34:54]requested_item shift.sale.total is exist - process it [00:34:54]SAM_PROTO_GetShiftData [00:34:54]wFMCommunicate request_size=4 [00:34:54]MH_SAM_APDU [00:34:54]CAPDU: 80 13 02 00 [00:34:54]Write to MH i2c: E2 08 00 75 12 80 13 02 00 00 00 00 00 05 [00:34:54]Write i2c OK [00:34:54]MH_I2C_Read... [00:34:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:34:54]Read from MH i2c: E2 [00:34:54]MH_I2C_Read... [00:34:54]Read from MH i2c: E2 FD 00 [00:34:54]MH_I2C_Read... [00:34:54]Read from MH i2c: E2 FD 00 75 12 00 B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 65 D3 57 01 70 04 04 00 70 BB 00 01 72 04 03 00 F5 17 57 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 59 85 24 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 10 0B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 2B [00:34:54]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 07 01 00 00 69 04 9E 00 6F 04 04 00 07 01 00 00 B1 04 04 00 65 D3 57 01 70 04 04 00 70 BB 00 01 72 04 03 00 F5 17 57 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 59 85 24 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 10 0B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:34:54]wFMCommunicate OK [00:34:54]wFMCommunicate request_size=4 [00:34:54]MH_SAM_APDU [00:34:54]CAPDU: 80 17 00 00 [00:34:54]Write to MH i2c: E2 08 00 76 12 80 17 00 00 00 00 00 00 08 [00:34:54]Write i2c OK [00:34:54]MH_I2C_Read... [00:34:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:54]Read from MH i2c: E2 [00:34:54]MH_I2C_Read... [00:34:54]Read from MH i2c: E2 FD 00 [00:34:54]MH_I2C_Read... [00:34:54]Read from MH i2c: E2 FD 00 76 12 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 21 [00:34:54]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:34:54]wFMCommunicate OK [00:34:54]wFMCommunicate request_size=4 [00:34:54]MH_SAM_APDU [00:34:54]CAPDU: 80 17 00 00 [00:34:54]Write to MH i2c: E2 08 00 77 12 80 17 00 00 00 00 00 00 09 [00:34:54]Write i2c OK [00:34:54]MH_I2C_Read... [00:34:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:55]Read from MH i2c: E2 [00:34:55]MH_I2C_Read... [00:34:55]Read from MH i2c: E2 FD 00 [00:34:55]MH_I2C_Read... [00:34:55]Read from MH i2c: E2 FD 00 77 12 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 C2 [00:34:55]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:34:55]wFMCommunicate OK [00:34:55]wFMCommunicate request_size=4 [00:34:55]MH_SAM_APDU [00:34:55]CAPDU: 80 17 00 00 [00:34:55]Write to MH i2c: E2 08 00 78 12 80 17 00 00 00 00 00 00 0A [00:34:55]Write i2c OK [00:34:55]MH_I2C_Read... [00:34:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:55]Read from MH i2c: E2 [00:34:55]MH_I2C_Read... [00:34:55]Read from MH i2c: E2 FD 00 [00:34:55]MH_I2C_Read... [00:34:55]Read from MH i2c: E2 FD 00 78 12 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 82 [00:34:55]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:34:55]wFMCommunicate OK [00:34:55]wFMCommunicate request_size=4 [00:34:55]MH_SAM_APDU [00:34:55]CAPDU: 80 17 00 00 [00:34:55]Write to MH i2c: E2 08 00 79 12 80 17 00 00 00 00 00 00 0B [00:34:55]Write i2c OK [00:34:55]MH_I2C_Read... [00:34:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:34:55]Read from MH i2c: E2 [00:34:55]MH_I2C_Read... [00:34:55]Read from MH i2c: E2 CE 00 [00:34:55]MH_I2C_Read... [00:34:55]Read from MH i2c: E2 CE 00 79 12 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F0 [00:34:55]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:34:55]wFMCommunicate OK [00:34:55]SAM_PROTO_GetShiftData done [00:34:55]requested_item shift.sale.total_cash is exist - process it [00:34:55]requested_item shift.sale_refund.total is exist - process it [00:34:55]requested_item shift.sale_refund.total_cash is exist - process it [00:34:55]requested_item shift.buy.total is exist - process it [00:34:55]requested_item shift.buy.total_cash is exist - process it [00:34:55]produce_requested_data done [00:34:55]produce_requested_data return {"fm.sale.total":176455325.59,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":225329.65,"shift.sale.total_cash":168252.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:34:55]process_action_free get_value [00:34:55]json_value_free [00:34:55]json_value_free done [00:34:55]process_json_proto returns [00:34:55]Send response to host [00:34:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176455325.59,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":225329.65,"shift.sale.total_cash":168252.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:34:55]free response buf [00:34:55]execute_script done [00:34:55]execute_script returns [00:34:55]free content buf [00:34:55]Sock 7.Close socket [00:34:55]Sock 7.Thread stoped [00:34:55]accept exits with 9 [00:34:55]New connection [00:34:55]New thread 3066510692 created [00:34:55]Thread 3066654052 joined [00:34:55]Waiting for new connection... [00:34:55] Sock 9.Parse request [00:34:56]Sock 9.Check first char [00:34:56]Sock 9.First char is OK [00:34:56]request: POST /json_proto HTTP/1.0 [00:34:56]Method: POST [00:34:56]URL: /json_proto [00:34:56]Method is POST - this is cgi request [00:34:56]url: /json_proto [00:34:56]query_string will be loaded in cgi processing [00:34:56]execute_cgi json_proto POST (null) [00:34:56]execute_cgi path=json_proto method=POST [00:34:56]POST find Content-Length [00:34:56]Host: 172.17.46.131:8080 [00:34:56]Content-Length: 247 [00:34:56]Content-Type: application/json [00:34:56] [00:34:56]POST finish read [00:34:56]Found Content-Length = 247 [00:34:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0440\u0430\u043F\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:56]execute_script... [00:34:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0440\u0430\u043F\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:56]POST & json_proto [00:34:56]process_json_proto [00:34:56]json parsed OK: [00:34:56]protocol is kg_v1.0 [00:34:56]action value=open_shift [00:34:56]process_action open_shift [00:34:56]cmd_open_shift [00:34:56]MH_GetDate [00:34:56]Write to MH i2c: F0 00 00 7A 12 7B [00:34:56]Write i2c OK [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: F0 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: F0 09 00 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: F0 09 00 7A 12 00 B1 78 B6 67 7E 41 4F 65 3D [00:34:56]GetLastDocTimeStamp 1740010858 [00:34:56]current date 1740011697 [00:34:56]FM_GetShiftState [00:34:56]SAM_PROTO_GetShiftState [00:34:56]wFMCommunicate request_size=4 [00:34:56]MH_SAM_APDU [00:34:56]CAPDU: 80 13 01 00 [00:34:56]Write to MH i2c: E2 08 00 7B 12 80 13 01 00 00 00 00 00 0A [00:34:56]Write i2c OK [00:34:56]MH_I2C_Read... [00:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:56]Read from MH i2c: E2 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: E2 0E 00 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: E2 0E 00 7B 12 00 09 00 00 00 00 00 00 00 00 00 00 90 00 15 [00:34:56]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:34:56]wFMCommunicate OK [00:34:56]SAM_PROTO_GetShiftState done [00:34:56]FM_GetShiftState done [00:34:56]KKMCreateOpenShiftDocument [00:34:56]Load OK [00:34:56]Malloc new data [00:34:56]MH_GetDate [00:34:56]Write to MH i2c: F0 00 00 7C 12 7D [00:34:56]Write i2c OK [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: F0 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: F0 09 00 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: F0 09 00 7C 12 00 B1 78 B6 67 7E 41 4F 65 3F [00:34:56]Malloc new data [00:34:56]KKMCreateOpenShiftDocument OK [00:34:56]KKMSetOpenShiftData OK [00:34:56]ProcessDocumentItem done err = 0, tmpTLVsize=191 [00:34:56]tlvbuf is 01F98A10 [00:34:56]KKMLoadAndSignOpenShiftData [00:34:56]SAM_PROTO_ProcessDocument [00:34:56]wFMCommunicate request_size=9 [00:34:56]MH_SAM_APDU [00:34:56]CAPDU: 80 15 01 00 04 02 00 BF 00 [00:34:56]Write to MH i2c: E2 0C 00 7D 12 80 15 01 00 04 00 02 00 BF 00 00 00 D7 [00:34:56]Write i2c OK [00:34:56]MH_I2C_Read... [00:34:56]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:34:56]Read from MH i2c: E2 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: E2 03 00 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: E2 03 00 7D 12 00 90 00 03 [00:34:56]RAPDU: 90 00 [00:34:56]wFMCommunicate OK [00:34:56]wFMCommunicate request_size=23 [00:34:56]MH_SAM_APDU [00:34:56]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:34:56]Write to MH i2c: E2 1A 00 7E 12 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 05 [00:34:56]Write i2c OK [00:34:56]MH_I2C_Read... [00:34:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:34:56]Read from MH i2c: E2 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: E2 03 00 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: E2 03 00 7E 12 00 90 00 04 [00:34:56]RAPDU: 90 00 [00:34:56]wFMCommunicate OK [00:34:56]wFMCommunicate request_size=26 [00:34:56]MH_SAM_APDU [00:34:56]CAPDU: 80 15 02 00 15 FD 03 11 00 D0 90 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 9D 2E 20 [00:34:56]Write to MH i2c: E2 1D 00 7F 12 80 15 02 00 15 00 FD 03 11 00 D0 90 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 9D 2E 20 00 00 F7 [00:34:56]Write i2c OK [00:34:56]MH_I2C_Read... [00:34:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:34:56]Read from MH i2c: E2 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: E2 03 00 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: E2 03 00 7F 12 00 90 00 05 [00:34:56]RAPDU: 90 00 [00:34:56]wFMCommunicate OK [00:34:56]wFMCommunicate request_size=84 [00:34:56]MH_SAM_APDU [00:34:56]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 [00:34:56]Write to MH i2c: E2 57 00 80 12 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 4B [00:34:56]Write i2c OK [00:34:56]MH_I2C_Read... [00:34:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:34:56]Read from MH i2c: E2 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: E2 03 00 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: E2 03 00 80 12 00 90 00 06 [00:34:56]RAPDU: 90 00 [00:34:56]wFMCommunicate OK [00:34:56]wFMCommunicate request_size=50 [00:34:56]MH_SAM_APDU [00:34:56]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 [00:34:56]Write to MH i2c: E2 35 00 81 12 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 8D [00:34:56]Write i2c OK [00:34:56]MH_I2C_Read... [00:34:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:34:56]Read from MH i2c: E2 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: E2 03 00 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: E2 03 00 81 12 00 90 00 07 [00:34:56]RAPDU: 90 00 [00:34:56]wFMCommunicate OK [00:34:56]wFMCommunicate request_size=13 [00:34:56]MH_SAM_APDU [00:34:56]CAPDU: 80 15 02 00 08 F4 03 04 00 B1 78 B6 67 [00:34:56]Write to MH i2c: E2 10 00 82 12 80 15 02 00 08 00 F4 03 04 00 B1 78 B6 67 00 00 65 [00:34:56]Write i2c OK [00:34:56]MH_I2C_Read... [00:34:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:34:56]Read from MH i2c: E2 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: E2 03 00 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: E2 03 00 82 12 00 90 00 08 [00:34:56]RAPDU: 90 00 [00:34:56]wFMCommunicate OK [00:34:56]wFMCommunicate request_size=25 [00:34:56]MH_SAM_APDU [00:34:56]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:34:56]Write to MH i2c: E2 1C 00 83 12 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 7C [00:34:56]Write i2c OK [00:34:56]MH_I2C_Read... [00:34:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:34:56]Read from MH i2c: E2 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: E2 03 00 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: E2 03 00 83 12 00 90 00 09 [00:34:56]RAPDU: 90 00 [00:34:56]wFMCommunicate OK [00:34:56]wFMCommunicate request_size=4 [00:34:56]MH_SAM_APDU [00:34:56]CAPDU: 80 15 03 00 [00:34:56]Write to MH i2c: E2 08 00 84 12 80 15 03 00 00 00 00 00 17 [00:34:56]Write i2c OK [00:34:56]MH_I2C_Read... [00:34:56]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:34:56]Read from MH i2c: E2 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: E2 38 00 [00:34:56]MH_I2C_Read... [00:34:56]Read from MH i2c: E2 38 00 84 12 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 3F DB 02 00 0E 04 04 00 88 02 00 00 35 04 06 00 68 78 8D 8F 8E D3 90 00 E6 [00:34:56]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 3F DB 02 00 0E 04 04 00 88 02 00 00 35 04 06 00 68 78 8D 8F 8E D3 90 00 [00:34:56]wFMCommunicate OK [00:34:56]SAM_PROTO_ProcessDocument answer len = 51 [00:34:56]SAM_PROTO_ProcessDocument done [00:34:56]SetTLVBufToDocument [00:34:56]Processing tag 1209 (04B9) [00:34:56]Malloc new data [00:34:56]Processing tag 1041 (0411) [00:34:56]Processing tag 1040 (0410) [00:34:56]Malloc new data [00:34:56]Processing tag 1038 (040E) [00:34:56]Malloc new data [00:34:56]Processing tag 1077 (0435) [00:34:56]Malloc new data [00:34:56]SetTLVBufToDocument err=0 [00:34:56]KKMLoadAndSignOpenShiftData store KKM data [00:34:56]KKMLoadAndSignOpenShiftData err=0 [00:34:56]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Арапов Н. Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 Место: АЗС № 92 "Партнер Нефть" 20.02.2025 00:34 Смена: 648 РНМ: 0000000000091857 ЗНМ: 0300000118 ФД: 187199 ФМ: 0000000000871826 ФПД: 114866980359891 [00:34:56]StoreToDocumentArchive [00:34:56]shift 648 fd 187199 [00:34:56]Create dir for shift 0648 [00:34:56]save to /storage/0648/doc_00187199 [00:34:56]save last doc name /storage/0648/doc_00187199 to /storage/kkm_last_doc_name [00:34:56]save OK [00:34:56]Clear old archive folders... [00:34:56]Remove dir /storage/0647 [00:34:56]opendir ok [00:34:56]file . [00:34:56]file .. [00:34:56]file doc_00186934 [00:34:56]remove file /storage/0647/doc_00186934 [00:34:56]file doc_00186935 [00:34:56]remove file /storage/0647/doc_00186935 [00:34:56]file doc_00186936 [00:34:56]remove file /storage/0647/doc_00186936 [00:34:56]file doc_00186937 [00:34:56]remove file /storage/0647/doc_00186937 [00:34:56]file doc_00186938 [00:34:56]remove file /storage/0647/doc_00186938 [00:34:56]file doc_00186939 [00:34:56]remove file /storage/0647/doc_00186939 [00:34:56]file doc_00186940 [00:34:56]remove file /storage/0647/doc_00186940 [00:34:56]file doc_00186941 [00:34:56]remove file /storage/0647/doc_00186941 [00:34:56]file doc_00186942 [00:34:56]remove file /storage/0647/doc_00186942 [00:34:56]file doc_00186943 [00:34:56]remove file /storage/0647/doc_00186943 [00:34:56]file doc_00186944 [00:34:56]remove file /storage/0647/doc_00186944 [00:34:56]file doc_00186945 [00:34:56]remove file /storage/0647/doc_00186945 [00:34:56]file doc_00186946 [00:34:56]remove file /storage/0647/doc_00186946 [00:34:56]file doc_00186947 [00:34:56]remove file /storage/0647/doc_00186947 [00:34:56]file doc_00186948 [00:34:56]remove file /storage/0647/doc_00186948 [00:34:57]file doc_00186949 [00:34:57]remove file /storage/0647/doc_00186949 [00:34:57]file doc_00186950 [00:34:57]remove file /storage/0647/doc_00186950 [00:34:57]file doc_00186951 [00:34:57]remove file /storage/0647/doc_00186951 [00:34:57]file doc_00186952 [00:34:57]remove file /storage/0647/doc_00186952 [00:34:57]file doc_00186953 [00:34:57]remove file /storage/0647/doc_00186953 [00:34:57]file doc_00186954 [00:34:57]remove file /storage/0647/doc_00186954 [00:34:57]file doc_00186955 [00:34:57]remove file /storage/0647/doc_00186955 [00:34:57]file doc_00186956 [00:34:57]remove file /storage/0647/doc_00186956 [00:34:57]file doc_00186957 [00:34:57]remove file /storage/0647/doc_00186957 [00:34:57]file doc_00186958 [00:34:57]remove file /storage/0647/doc_00186958 [00:34:57]file doc_00186959 [00:34:57]remove file /storage/0647/doc_00186959 [00:34:57]file doc_00186960 [00:34:57]remove file /storage/0647/doc_00186960 [00:34:57]file doc_00186961 [00:34:57]remove file /storage/0647/doc_00186961 [00:34:57]file doc_00186962 [00:34:57]remove file /storage/0647/doc_00186962 [00:34:57]file doc_00186963 [00:34:57]remove file /storage/0647/doc_00186963 [00:34:57]file doc_00186964 [00:34:57]remove file /storage/0647/doc_00186964 [00:34:57]file doc_00186965 [00:34:57]remove file /storage/0647/doc_00186965 [00:34:57]file doc_00186966 [00:34:57]remove file /storage/0647/doc_00186966 [00:34:57]file doc_00186967 [00:34:57]remove file /storage/0647/doc_00186967 [00:34:57]file doc_00186968 [00:34:57]remove file /storage/0647/doc_00186968 [00:34:57]file doc_00186969 [00:34:57]remove file /storage/0647/doc_00186969 [00:34:57]file doc_00186970 [00:34:57]remove file /storage/0647/doc_00186970 [00:34:57]file doc_00186971 [00:34:57]remove file /storage/0647/doc_00186971 [00:34:57]file doc_00186972 [00:34:57]remove file /storage/0647/doc_00186972 [00:34:57]file doc_00186973 [00:34:57]remove file /storage/0647/doc_00186973 [00:34:57]file doc_00186974 [00:34:57]remove file /storage/0647/doc_00186974 [00:34:57]file doc_00186975 [00:34:57]remove file /storage/0647/doc_00186975 [00:34:57]file doc_00186976 [00:34:57]remove file /storage/0647/doc_00186976 [00:34:57]file doc_00186977 [00:34:57]remove file /storage/0647/doc_00186977 [00:34:57]file doc_00186978 [00:34:57]remove file /storage/0647/doc_00186978 [00:34:57]file doc_00186979 [00:34:57]remove file /storage/0647/doc_00186979 [00:34:57]file doc_00186980 [00:34:57]remove file /storage/0647/doc_00186980 [00:34:57]file doc_00186981 [00:34:57]remove file /storage/0647/doc_00186981 [00:34:57]file doc_00186982 [00:34:57]remove file /storage/0647/doc_00186982 [00:34:57]file doc_00186983 [00:34:57]remove file /storage/0647/doc_00186983 [00:34:57]file doc_00186984 [00:34:57]remove file /storage/0647/doc_00186984 [00:34:57]file doc_00186985 [00:34:57]remove file /storage/0647/doc_00186985 [00:34:57]file doc_00186986 [00:34:57]remove file /storage/0647/doc_00186986 [00:34:57]file doc_00186987 [00:34:57]remove file /storage/0647/doc_00186987 [00:34:57]file doc_00186988 [00:34:57]remove file /storage/0647/doc_00186988 [00:34:57]file doc_00186989 [00:34:57]remove file /storage/0647/doc_00186989 [00:34:57]file doc_00186990 [00:34:57]remove file /storage/0647/doc_00186990 [00:34:57]file doc_00186991 [00:34:57]remove file /storage/0647/doc_00186991 [00:34:57]file doc_00186992 [00:34:57]remove file /storage/0647/doc_00186992 [00:34:57]file doc_00186993 [00:34:57]remove file /storage/0647/doc_00186993 [00:34:57]file doc_00186994 [00:34:57]remove file /storage/0647/doc_00186994 [00:34:57]file doc_00186995 [00:34:57]remove file /storage/0647/doc_00186995 [00:34:57]file doc_00186996 [00:34:57]remove file /storage/0647/doc_00186996 [00:34:57]file doc_00186997 [00:34:57]remove file /storage/0647/doc_00186997 [00:34:57]file doc_00186998 [00:34:57]remove file /storage/0647/doc_00186998 [00:34:57]file doc_00186999 [00:34:57]remove file /storage/0647/doc_00186999 [00:34:57]file doc_00187000 [00:34:57]remove file /storage/0647/doc_00187000 [00:34:57]file doc_00187001 [00:34:57]remove file /storage/0647/doc_00187001 [00:34:57]file doc_00187002 [00:34:57]remove file /storage/0647/doc_00187002 [00:34:57]file doc_00187003 [00:34:57]remove file /storage/0647/doc_00187003 [00:34:57]file doc_00187004 [00:34:57]remove file /storage/0647/doc_00187004 [00:34:57]file doc_00187005 [00:34:57]remove file /storage/0647/doc_00187005 [00:34:57]file doc_00187006 [00:34:57]remove file /storage/0647/doc_00187006 [00:34:57]file doc_00187007 [00:34:57]remove file /storage/0647/doc_00187007 [00:34:57]file doc_00187008 [00:34:57]remove file /storage/0647/doc_00187008 [00:34:57]file doc_00187009 [00:34:57]remove file /storage/0647/doc_00187009 [00:34:57]file doc_00187010 [00:34:57]remove file /storage/0647/doc_00187010 [00:34:57]file doc_00187011 [00:34:57]remove file /storage/0647/doc_00187011 [00:34:57]file doc_00187012 [00:34:57]remove file /storage/0647/doc_00187012 [00:34:57]file doc_00187013 [00:34:57]remove file /storage/0647/doc_00187013 [00:34:57]file doc_00187014 [00:34:57]remove file /storage/0647/doc_00187014 [00:34:57]file doc_00187015 [00:34:57]remove file /storage/0647/doc_00187015 [00:34:57]file doc_00187016 [00:34:57]remove file /storage/0647/doc_00187016 [00:34:57]file doc_00187017 [00:34:57]remove file /storage/0647/doc_00187017 [00:34:57]file doc_00187018 [00:34:57]remove file /storage/0647/doc_00187018 [00:34:57]file doc_00187019 [00:34:57]remove file /storage/0647/doc_00187019 [00:34:57]file doc_00187020 [00:34:57]remove file /storage/0647/doc_00187020 [00:34:57]file doc_00187021 [00:34:57]remove file /storage/0647/doc_00187021 [00:34:57]file doc_00187022 [00:34:57]remove file /storage/0647/doc_00187022 [00:34:57]file doc_00187023 [00:34:57]remove file /storage/0647/doc_00187023 [00:34:57]file doc_00187024 [00:34:57]remove file /storage/0647/doc_00187024 [00:34:57]file doc_00187025 [00:34:57]remove file /storage/0647/doc_00187025 [00:34:57]file doc_00187026 [00:34:57]remove file /storage/0647/doc_00187026 [00:34:57]file doc_00187027 [00:34:57]remove file /storage/0647/doc_00187027 [00:34:57]file doc_00187028 [00:34:57]remove file /storage/0647/doc_00187028 [00:34:57]file doc_00187029 [00:34:57]remove file /storage/0647/doc_00187029 [00:34:57]file doc_00187030 [00:34:57]remove file /storage/0647/doc_00187030 [00:34:57]file doc_00187031 [00:34:57]remove file /storage/0647/doc_00187031 [00:34:57]file doc_00187032 [00:34:57]remove file /storage/0647/doc_00187032 [00:34:57]file doc_00187033 [00:34:57]remove file /storage/0647/doc_00187033 [00:34:57]file doc_00187034 [00:34:57]remove file /storage/0647/doc_00187034 [00:34:57]file doc_00187035 [00:34:57]remove file /storage/0647/doc_00187035 [00:34:57]file doc_00187036 [00:34:57]remove file /storage/0647/doc_00187036 [00:34:57]file doc_00187037 [00:34:57]remove file /storage/0647/doc_00187037 [00:34:57]file doc_00187038 [00:34:57]remove file /storage/0647/doc_00187038 [00:34:57]file doc_00187039 [00:34:57]remove file /storage/0647/doc_00187039 [00:34:57]file doc_00187040 [00:34:57]remove file /storage/0647/doc_00187040 [00:34:57]file doc_00187041 [00:34:57]remove file /storage/0647/doc_00187041 [00:34:57]file doc_00187042 [00:34:57]remove file /storage/0647/doc_00187042 [00:34:57]file doc_00187043 [00:34:57]remove file /storage/0647/doc_00187043 [00:34:57]file doc_00187044 [00:34:57]remove file /storage/0647/doc_00187044 [00:34:57]file doc_00187045 [00:34:57]remove file /storage/0647/doc_00187045 [00:34:57]file doc_00187046 [00:34:57]remove file /storage/0647/doc_00187046 [00:34:57]file doc_00187047 [00:34:57]remove file /storage/0647/doc_00187047 [00:34:57]file doc_00187048 [00:34:57]remove file /storage/0647/doc_00187048 [00:34:57]file doc_00187049 [00:34:57]remove file /storage/0647/doc_00187049 [00:34:57]file doc_00187050 [00:34:57]remove file /storage/0647/doc_00187050 [00:34:57]file doc_00187051 [00:34:57]remove file /storage/0647/doc_00187051 [00:34:57]file doc_00187052 [00:34:57]remove file /storage/0647/doc_00187052 [00:34:57]file doc_00187053 [00:34:57]remove file /storage/0647/doc_00187053 [00:34:57]file doc_00187054 [00:34:57]remove file /storage/0647/doc_00187054 [00:34:57]file doc_00187055 [00:34:57]remove file /storage/0647/doc_00187055 [00:34:57]file doc_00187056 [00:34:57]remove file /storage/0647/doc_00187056 [00:34:57]file doc_00187057 [00:34:57]remove file /storage/0647/doc_00187057 [00:34:57]file doc_00187058 [00:34:57]remove file /storage/0647/doc_00187058 [00:34:57]file doc_00187059 [00:34:57]remove file /storage/0647/doc_00187059 [00:34:57]file doc_00187060 [00:34:57]remove file /storage/0647/doc_00187060 [00:34:57]file doc_00187061 [00:34:57]remove file /storage/0647/doc_00187061 [00:34:57]file doc_00187062 [00:34:57]remove file /storage/0647/doc_00187062 [00:34:57]file doc_00187063 [00:34:57]remove file /storage/0647/doc_00187063 [00:34:57]file doc_00187064 [00:34:57]remove file /storage/0647/doc_00187064 [00:34:57]file doc_00187065 [00:34:57]remove file /storage/0647/doc_00187065 [00:34:57]file doc_00187066 [00:34:57]remove file /storage/0647/doc_00187066 [00:34:57]file doc_00187067 [00:34:57]remove file /storage/0647/doc_00187067 [00:34:57]file doc_00187068 [00:34:57]remove file /storage/0647/doc_00187068 [00:34:57]file doc_00187069 [00:34:57]remove file /storage/0647/doc_00187069 [00:34:57]file doc_00187070 [00:34:57]remove file /storage/0647/doc_00187070 [00:34:57]file doc_00187071 [00:34:57]remove file /storage/0647/doc_00187071 [00:34:57]file doc_00187072 [00:34:57]remove file /storage/0647/doc_00187072 [00:34:57]file doc_00187073 [00:34:57]remove file /storage/0647/doc_00187073 [00:34:57]file doc_00187074 [00:34:57]remove file /storage/0647/doc_00187074 [00:34:57]file doc_00187075 [00:34:57]remove file /storage/0647/doc_00187075 [00:34:57]file doc_00187076 [00:34:57]remove file /storage/0647/doc_00187076 [00:34:57]file doc_00187077 [00:34:57]remove file /storage/0647/doc_00187077 [00:34:57]file doc_00187078 [00:34:57]remove file /storage/0647/doc_00187078 [00:34:57]file doc_00187079 [00:34:57]remove file /storage/0647/doc_00187079 [00:34:57]file doc_00187080 [00:34:57]remove file /storage/0647/doc_00187080 [00:34:57]file doc_00187081 [00:34:57]remove file /storage/0647/doc_00187081 [00:34:57]file doc_00187082 [00:34:57]remove file /storage/0647/doc_00187082 [00:34:57]OFD Sender: No OFD packet to send [00:34:57]file doc_00187083 [00:34:57]remove file /storage/0647/doc_00187083 [00:34:57]file doc_00187084 [00:34:57]remove file /storage/0647/doc_00187084 [00:34:57]file doc_00187085 [00:34:57]remove file /storage/0647/doc_00187085 [00:34:57]file doc_00187086 [00:34:57]remove file /storage/0647/doc_00187086 [00:34:57]file doc_00187087 [00:34:57]remove file /storage/0647/doc_00187087 [00:34:57]file doc_00187088 [00:34:57]remove file /storage/0647/doc_00187088 [00:34:57]file doc_00187089 [00:34:57]remove file /storage/0647/doc_00187089 [00:34:57]file doc_00187090 [00:34:57]remove file /storage/0647/doc_00187090 [00:34:57]file doc_00187091 [00:34:57]remove file /storage/0647/doc_00187091 [00:34:57]file doc_00187092 [00:34:57]remove file /storage/0647/doc_00187092 [00:34:57]file doc_00187093 [00:34:57]remove file /storage/0647/doc_00187093 [00:34:57]file doc_00187094 [00:34:57]remove file /storage/0647/doc_00187094 [00:34:57]file doc_00187095 [00:34:57]remove file /storage/0647/doc_00187095 [00:34:57]file doc_00187096 [00:34:57]remove file /storage/0647/doc_00187096 [00:34:57]file doc_00187097 [00:34:57]remove file /storage/0647/doc_00187097 [00:34:58]file doc_00187098 [00:34:58]remove file /storage/0647/doc_00187098 [00:34:58]file doc_00187099 [00:34:58]remove file /storage/0647/doc_00187099 [00:34:58]file doc_00187100 [00:34:58]remove file /storage/0647/doc_00187100 [00:34:58]file doc_00187101 [00:34:58]remove file /storage/0647/doc_00187101 [00:34:58]file doc_00187102 [00:34:58]remove file /storage/0647/doc_00187102 [00:34:58]file doc_00187103 [00:34:58]remove file /storage/0647/doc_00187103 [00:34:58]file doc_00187104 [00:34:58]remove file /storage/0647/doc_00187104 [00:34:58]file doc_00187105 [00:34:58]remove file /storage/0647/doc_00187105 [00:34:58]file doc_00187106 [00:34:58]remove file /storage/0647/doc_00187106 [00:34:58]file doc_00187107 [00:34:58]remove file /storage/0647/doc_00187107 [00:34:58]file doc_00187108 [00:34:58]remove file /storage/0647/doc_00187108 [00:34:58]file doc_00187109 [00:34:58]remove file /storage/0647/doc_00187109 [00:34:58]file doc_00187110 [00:34:58]remove file /storage/0647/doc_00187110 [00:34:58]file doc_00187111 [00:34:58]remove file /storage/0647/doc_00187111 [00:34:58]file doc_00187112 [00:34:58]remove file /storage/0647/doc_00187112 [00:34:58]file doc_00187113 [00:34:58]remove file /storage/0647/doc_00187113 [00:34:58]file doc_00187114 [00:34:58]remove file /storage/0647/doc_00187114 [00:34:58]file doc_00187115 [00:34:58]remove file /storage/0647/doc_00187115 [00:34:58]file doc_00187116 [00:34:58]remove file /storage/0647/doc_00187116 [00:34:58]file doc_00187117 [00:34:58]remove file /storage/0647/doc_00187117 [00:34:58]file doc_00187118 [00:34:58]remove file /storage/0647/doc_00187118 [00:34:58]file doc_00187119 [00:34:58]remove file /storage/0647/doc_00187119 [00:34:58]file doc_00187120 [00:34:58]remove file /storage/0647/doc_00187120 [00:34:58]file doc_00187121 [00:34:58]remove file /storage/0647/doc_00187121 [00:34:58]file doc_00187122 [00:34:58]remove file /storage/0647/doc_00187122 [00:34:58]file doc_00187123 [00:34:58]remove file /storage/0647/doc_00187123 [00:34:58]file doc_00187124 [00:34:58]remove file /storage/0647/doc_00187124 [00:34:58]file doc_00187125 [00:34:58]remove file /storage/0647/doc_00187125 [00:34:58]file doc_00187126 [00:34:58]remove file /storage/0647/doc_00187126 [00:34:58]file doc_00187127 [00:34:58]remove file /storage/0647/doc_00187127 [00:34:58]file doc_00187128 [00:34:58]remove file /storage/0647/doc_00187128 [00:34:58]file doc_00187129 [00:34:58]remove file /storage/0647/doc_00187129 [00:34:58]file doc_00187130 [00:34:58]remove file /storage/0647/doc_00187130 [00:34:58]file doc_00187131 [00:34:58]remove file /storage/0647/doc_00187131 [00:34:58]file doc_00187132 [00:34:58]remove file /storage/0647/doc_00187132 [00:34:58]file doc_00187133 [00:34:58]remove file /storage/0647/doc_00187133 [00:34:58]file doc_00187134 [00:34:58]remove file /storage/0647/doc_00187134 [00:34:58]file doc_00187135 [00:34:58]remove file /storage/0647/doc_00187135 [00:34:58]file doc_00187136 [00:34:58]remove file /storage/0647/doc_00187136 [00:34:58]file doc_00187137 [00:34:58]remove file /storage/0647/doc_00187137 [00:34:58]file doc_00187138 [00:34:58]remove file /storage/0647/doc_00187138 [00:34:58]file doc_00187139 [00:34:58]remove file /storage/0647/doc_00187139 [00:34:58]file doc_00187140 [00:34:58]remove file /storage/0647/doc_00187140 [00:34:58]file doc_00187141 [00:34:58]remove file /storage/0647/doc_00187141 [00:34:58]file doc_00187142 [00:34:58]remove file /storage/0647/doc_00187142 [00:34:58]file doc_00187143 [00:34:58]remove file /storage/0647/doc_00187143 [00:34:58]file doc_00187144 [00:34:58]remove file /storage/0647/doc_00187144 [00:34:58]file doc_00187145 [00:34:58]remove file /storage/0647/doc_00187145 [00:34:58]file doc_00187146 [00:34:58]remove file /storage/0647/doc_00187146 [00:34:58]file doc_00187147 [00:34:58]remove file /storage/0647/doc_00187147 [00:34:58]file doc_00187148 [00:34:58]remove file /storage/0647/doc_00187148 [00:34:58]file doc_00187149 [00:34:58]remove file /storage/0647/doc_00187149 [00:34:58]file doc_00187150 [00:34:58]remove file /storage/0647/doc_00187150 [00:34:58]file doc_00187151 [00:34:58]remove file /storage/0647/doc_00187151 [00:34:58]file doc_00187152 [00:34:58]remove file /storage/0647/doc_00187152 [00:34:58]file doc_00187153 [00:34:58]remove file /storage/0647/doc_00187153 [00:34:58]file doc_00187154 [00:34:58]remove file /storage/0647/doc_00187154 [00:34:58]file doc_00187155 [00:34:58]remove file /storage/0647/doc_00187155 [00:34:58]file doc_00187156 [00:34:58]remove file /storage/0647/doc_00187156 [00:34:58]file doc_00187157 [00:34:58]remove file /storage/0647/doc_00187157 [00:34:58]file doc_00187158 [00:34:58]remove file /storage/0647/doc_00187158 [00:34:58]file doc_00187159 [00:34:58]remove file /storage/0647/doc_00187159 [00:34:58]file doc_00187160 [00:34:58]remove file /storage/0647/doc_00187160 [00:34:58]file doc_00187161 [00:34:58]remove file /storage/0647/doc_00187161 [00:34:58]file doc_00187162 [00:34:58]remove file /storage/0647/doc_00187162 [00:34:58]file doc_00187163 [00:34:58]remove file /storage/0647/doc_00187163 [00:34:58]file doc_00187164 [00:34:58]remove file /storage/0647/doc_00187164 [00:34:58]file doc_00187165 [00:34:58]remove file /storage/0647/doc_00187165 [00:34:58]file doc_00187166 [00:34:58]remove file /storage/0647/doc_00187166 [00:34:58]file doc_00187167 [00:34:58]remove file /storage/0647/doc_00187167 [00:34:58]file doc_00187168 [00:34:58]remove file /storage/0647/doc_00187168 [00:34:58]file doc_00187169 [00:34:58]remove file /storage/0647/doc_00187169 [00:34:58]file doc_00187170 [00:34:58]remove file /storage/0647/doc_00187170 [00:34:58]file doc_00187171 [00:34:58]remove file /storage/0647/doc_00187171 [00:34:58]file doc_00187172 [00:34:58]remove file /storage/0647/doc_00187172 [00:34:58]file doc_00187173 [00:34:58]remove file /storage/0647/doc_00187173 [00:34:58]file doc_00187174 [00:34:58]remove file /storage/0647/doc_00187174 [00:34:58]file doc_00187175 [00:34:58]remove file /storage/0647/doc_00187175 [00:34:58]file doc_00187176 [00:34:58]remove file /storage/0647/doc_00187176 [00:34:58]file doc_00187177 [00:34:58]remove file /storage/0647/doc_00187177 [00:34:58]file doc_00187178 [00:34:58]remove file /storage/0647/doc_00187178 [00:34:58]file doc_00187179 [00:34:58]remove file /storage/0647/doc_00187179 [00:34:58]file doc_00187180 [00:34:58]remove file /storage/0647/doc_00187180 [00:34:58]file doc_00187181 [00:34:58]remove file /storage/0647/doc_00187181 [00:34:58]file doc_00187182 [00:34:58]remove file /storage/0647/doc_00187182 [00:34:58]file doc_00187183 [00:34:58]remove file /storage/0647/doc_00187183 [00:34:58]file doc_00187184 [00:34:58]remove file /storage/0647/doc_00187184 [00:34:58]file doc_00187185 [00:34:58]remove file /storage/0647/doc_00187185 [00:34:58]file doc_00187186 [00:34:58]remove file /storage/0647/doc_00187186 [00:34:58]file doc_00187187 [00:34:58]remove file /storage/0647/doc_00187187 [00:34:58]file doc_00187188 [00:34:58]remove file /storage/0647/doc_00187188 [00:34:58]file doc_00187189 [00:34:58]remove file /storage/0647/doc_00187189 [00:34:58]file doc_00187190 [00:34:58]remove file /storage/0647/doc_00187190 [00:34:58]file doc_00187191 [00:34:58]remove file /storage/0647/doc_00187191 [00:34:58]file doc_00187192 [00:34:58]remove file /storage/0647/doc_00187192 [00:34:58]file doc_00187193 [00:34:58]remove file /storage/0647/doc_00187193 [00:34:58]file doc_00187194 [00:34:58]remove file /storage/0647/doc_00187194 [00:34:58]file doc_00187195 [00:34:58]remove file /storage/0647/doc_00187195 [00:34:58]file doc_00187196 [00:34:58]remove file /storage/0647/doc_00187196 [00:34:58]file doc_00187197 [00:34:58]remove file /storage/0647/doc_00187197 [00:34:58]file doc_00187198 [00:34:58]remove file /storage/0647/doc_00187198 [00:34:58]remove dir /storage/0647 [00:34:58]ProcessDocumentItem done err = 0, tmpTLVsize=242 [00:34:58]tlvbuf is 01FEA180 [00:34:58]SAM_PROTO_ClearQueue [00:34:58]wFMCommunicate request_size=4 [00:34:58]MH_SAM_APDU [00:34:58]CAPDU: 80 09 00 00 [00:34:58]Write to MH i2c: E2 08 00 85 12 80 09 00 00 00 00 00 00 09 [00:34:58]Write i2c OK [00:34:58]MH_I2C_Read... [00:34:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:34:58]Read from MH i2c: E2 [00:34:58]MH_I2C_Read... [00:34:58]Read from MH i2c: E2 03 00 [00:34:58]MH_I2C_Read... [00:34:58]Read from MH i2c: E2 03 00 85 12 00 90 00 0B [00:34:58]RAPDU: 90 00 [00:34:58]wFMCommunicate OK [00:34:58]SAM_PROTO_ClearQueue done [00:34:58]KKMCreateOFDPacket [00:34:58]OFDProtocolAddRootSTLVToBuf [00:34:58]FM_MakeSignedData [00:34:58]FM_MakeSignedData [00:34:58]SAM_PROTO_SignData [00:34:58]wFMCommunicate request_size=4 [00:34:58]MH_SAM_APDU [00:34:58]CAPDU: 80 0D 01 02 [00:34:58]Write to MH i2c: E2 08 00 86 12 80 0D 01 02 00 00 00 00 11 [00:34:58]Write i2c OK [00:34:58]MH_I2C_Read... [00:34:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:34:58]Read from MH i2c: E2 [00:34:58]MH_I2C_Read... [00:34:58]Read from MH i2c: E2 03 00 [00:34:58]MH_I2C_Read... [00:34:58]Read from MH i2c: E2 03 00 86 12 00 90 00 0C [00:34:58]RAPDU: 90 00 [00:34:58]wFMCommunicate OK [00:34:58]wFMCommunicate request_size=251 [00:34:58]MH_SAM_APDU [00:34:58]CAPDU: 80 0D 02 02 F6 02 00 F2 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 90 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 9D 2E 20 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 B1 78 B6 67 0E 04 04 00 88 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 3F DB 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 68 78 8D 8F 8E D3 [00:34:58]Write to MH i2c: E2 FE 00 87 12 80 0D 02 02 F6 00 02 00 F2 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 90 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 9D 2E 20 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 B1 78 B6 67 0E 04 04 00 88 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 3F DB 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 68 78 8D 8F 8E D3 00 00 2F [00:34:58]Write i2c OK [00:34:58]MH_I2C_Read... [00:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:58]Read from MH i2c: E2 [00:34:58]MH_I2C_Read... [00:34:58]Read from MH i2c: E2 03 00 [00:34:58]MH_I2C_Read... [00:34:58]Read from MH i2c: E2 03 00 87 12 00 90 00 0D [00:34:59]RAPDU: 90 00 [00:34:59]wFMCommunicate OK [00:34:59]wFMCommunicate request_size=4 [00:34:59]MH_SAM_APDU [00:34:59]CAPDU: 80 0D 03 02 [00:34:59]Write to MH i2c: E2 08 00 88 12 80 0D 03 02 00 00 00 00 15 [00:34:59]Write i2c OK [00:34:59]MH_I2C_Read... [00:34:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:34:59]Read from MH i2c: E2 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: E2 0B 00 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: E2 0B 00 88 12 00 76 7C E3 3F C2 65 05 33 90 00 89 [00:34:59]RAPDU: 76 7C E3 3F C2 65 05 33 90 00 [00:34:59]wFMCommunicate OK [00:34:59]SAM_PROTO_SignData done [00:34:59]FM_MakeSignedData done [00:34:59]CreateOFDProtocolMessage [00:34:59]wFMCommunicate request_size=4 [00:34:59]MH_SAM_APDU [00:34:59]CAPDU: 80 11 00 00 [00:34:59]Write to MH i2c: E2 08 00 89 12 80 11 00 00 00 00 00 00 15 [00:34:59]Write i2c OK [00:34:59]MH_I2C_Read... [00:34:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:59]Read from MH i2c: E2 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: E2 17 00 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: E2 17 00 89 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 68 [00: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 [00:34:59]wFMCommunicate OK [00:34:59]CreateOFDProtocolMessage done [00:34:59]OFDSenderStorePacket 187199 [00:34:59]StoreOFDPacket docnum=187199 [00: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 06 01 00 00 37 F9 FE 00 46 E0 5A 02 01 00 02 00 F2 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 90 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 9D 2E 20 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 B1 78 B6 67 0E 04 04 00 88 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 3F DB 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 68 78 8D 8F 8E D3 76 7C E3 3F C2 65 05 33 [00:34:59]CheckFolder [00:34:59]dirname=/storage/ofd_packets [00:34:59]CheckFolder done [00:34:59]ProducePacketName [00:34:59]name=ofd_packets/00187199 [00:34:59]NVStorageSaveData ofd_packets/00187199 [00:34:59]File name is /storage/ofd_packets/00187199 [00:34:59]Write 292 bytes [00:34:59]NVStorageSaveData done [00:34:59]OFDSenderStorePacket done [00:34:59]KKMCreateOFDPacket done [00:34:59]NVStorageSaveData kkm_last_timestamp [00:34:59]File name is /storage/kkm_last_timestamp [00:34:59]Write 4 bytes [00:34:59]NVStorageSaveData done [00:34:59]ExternCall_PrintAddStr [00:34:59]wPrintStart [00:34:59]Write to MH i2c: 01 00 00 8A 12 9C [00:34:59]Write i2c OK [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: 01 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: 01 07 00 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: 01 07 00 8A 12 00 00 00 00 00 FF 0F B1 [00:34:59]RasterBufferAndPrint [00:34:59]line Отчет об открытии смены [00:34:59]line ФФД: 1.0 [00:34:59]line ИНН: 02508201610067 [00:34:59]line Кассир: Арапов Н. [00:34:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [00:34:59]line Место: АЗС № 92 "Партнер Нефть" [00:34:59]line 20.02.2025 00:34 [00:34:59]line Смена: 648 [00:34:59]line РНМ: 0000000000091857 [00:34:59]line ЗНМ: 0300000118 [00:34:59]line ФД: 187199 [00:34:59]line ФМ: 0000000000871826 [00:34:59]line ФПД: 114866980359891 [00:34:59]written 0, free lines is 4095 [00:34:59]OFD Sender: Processing packet 187199 [packets to send 49, broken 48] [00:34:59]ProducePacketName [00:34:59]name=ofd_packets/00187199 [00:34:59]OFD Sender: To server: pG, [00:34:59]CommunicateWithHost lk.salyk.kg:30040 [00:34:59]ConnectInit lk.salyk.kg [00:34:59]Write to MH i2c: 01 00 00 9C 12 AE [00:34:59]Write i2c OK [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: 01 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: 01 07 00 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: 01 07 00 9C 12 00 00 00 00 00 55 0E 18 [00:34:59]RasterBufferAndPrint [00:34:59]line [00:34:59]line [00:34:59]line [00:34:59]line [00:34:59]line [00:34:59]written 0, free lines is 3676 [00:34:59]MH_Cut [00:34:59]Write to MH i2c: D1 01 00 A3 12 01 87 [00:34:59]Write i2c OK [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: D1 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: D1 01 00 [00:34:59]MH_I2C_Read... [00:34:59]Read from MH i2c: D1 01 00 A3 12 00 86 [00:34:59]Write to MH i2c: 01 00 00 A4 12 B6 [00:34:59]Write i2c OK [00:34:59]MH_I2C_Read... [00:34:59]Connected sock=11 [00:34: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 06 01 00 00 37 F9 FE 00 46 E0 5A 02 01 00 02 00 F2 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 90 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 9D 2E 20 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 B1 78 B6 67 0E 04 04 00 88 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 3F DB 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 68 78 8D 8F 8E D3 76 7C E3 3F C2 65 05 33 [00:34:59]*** Cut start [00:34:59]*** Partial cut [00:34:59]*** CUTSNS_PIN = 1 [00:34:59]*** CUTSNS_PIN = 0 [00:34: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 12 BC 47 00 F1 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 3F DB 02 00 F4 03 04 00 05 1F B6 67 B6 04 01 00 00 EA 96 5F B8 31 2F 59 20 [00:34:59]CommunicateWithHost err = 0 [00:34:59]CheckOFDResponse [00:34:59]1017 (14) - 77093643461234 [00:34:59]1041 (16) - 0000000000871826 [00:34:59]1040 (4) - 187199 [00:34:59]1012 (4) - 19.02.2025 18:12 [00:34:59]1206 (1) - 0 [00:34:59]OFD Sender: Remove packet 187199 [00:34:59]ProducePacketName [00:34:59]name=ofd_packets/00187199 [00:34:59]NVStorageDeleteData [00:35:00]*** Brake cut motor [00:35:00]OFD Sender: No OFD packet to send [00:35:00]Read from MH i2c: 01 [00:35:00]MH_I2C_Read... [00:35:00]*** Stop cut motor [00:35:00]*** Cut end [00:35:00]Read from MH i2c: 01 07 00 [00:35:00]MH_I2C_Read... [00:35:00]Read from MH i2c: 01 07 00 A4 12 00 00 00 00 00 FF 0F CB [00:35:00]process_action open_shift done [00:35:00]requested_data is exist [00:35:00]produce_requested_data [00:35:00]requested_item fd.num is exist - process it [00:35:00]SAM_PROTO_GetFieldsCounters [00:35:00]wFMCommunicate request_size=4 [00:35:00]MH_SAM_APDU [00:35:00]CAPDU: 80 13 00 00 [00:35:00]Write to MH i2c: E2 08 00 A5 12 80 13 00 00 00 00 00 00 33 [00:35:00]Write i2c OK [00:35:00]MH_I2C_Read... [00:35:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:00]Read from MH i2c: E2 [00:35:00]MH_I2C_Read... [00:35:00]Read from MH i2c: E2 62 00 [00:35:00]MH_I2C_Read... [00:35:00]Read from MH i2c: E2 62 00 A5 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 3F DB 02 00 0E 04 04 00 88 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 FF [00:35: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 3F DB 02 00 0E 04 04 00 88 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:00]wFMCommunicate OK [00:35:00]SAM_PROTO_GetFieldsCounters done [00:35:00]requested_item shift.num is exist - process it [00:35:00]requested_item shift.opened is exist - process it [00:35:00]req_shift_opened [00:35:00]FM_GetShiftState [00:35:00]SAM_PROTO_GetShiftState [00:35:00]wFMCommunicate request_size=4 [00:35:00]MH_SAM_APDU [00:35:00]CAPDU: 80 13 01 00 [00:35:00]Write to MH i2c: E2 08 00 A6 12 80 13 01 00 00 00 00 00 35 [00:35:00]Write i2c OK [00:35:00]MH_I2C_Read... [00:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:00]Read from MH i2c: E2 [00:35:00]MH_I2C_Read... [00:35:00]Read from MH i2c: E2 0E 00 [00:35:00]MH_I2C_Read... [00:35:00]Read from MH i2c: E2 0E 00 A6 12 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 87 [00:35:00]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [00:35:00]wFMCommunicate OK [00:35:00]SAM_PROTO_GetShiftState done [00:35:00]FM_GetShiftState done [00:35:00]req_shift_opened done [00:35:00]requested_item shift.open_date is exist - process it [00:35:00]req_shift_open_date [00:35:00]req_shift_open_date done [00:35:00]produce_requested_data done [00:35:00]produce_requested_data return {"fd.num":187199,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [00:35:00]process_action_free open_shift [00:35:00]json_value_free [00:35:00]json_value_free done [00:35:00]process_json_proto returns [00:35:00]Send response to host [00:35:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":187199,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [00:35:00]free response buf [00:35:00]execute_script done [00:35:00]execute_script returns [00:35:00]free content buf [00:35:00]Sock 9.Close socket [00:35:00]Sock 9.Thread stoped [00:35:00]accept exits with 7 [00:35:00]New connection [00:35:00]New thread 3066654052 created [00:35:00]Thread 3066510692 joined [00:35:00]Waiting for new connection... [00:35:00] Sock 7.Parse request [00:35:00]Sock 7.Check first char [00:35:00]Sock 7.First char is OK [00:35:00]request: POST /json_proto HTTP/1.0 [00:35:00]Method: POST [00:35:00]URL: /json_proto [00:35:00]Method is POST - this is cgi request [00:35:00]url: /json_proto [00:35:00]query_string will be loaded in cgi processing [00:35:00]execute_cgi json_proto POST (null) [00:35:00]execute_cgi path=json_proto method=POST [00:35:00]POST find Content-Length [00:35:00]Host: 172.17.46.131:8080 [00:35:00]Content-Length: 331 [00:35:00]Content-Type: application/json [00:35:00] [00:35:00]POST finish read [00:35:00]Found Content-Length = 331 [00:35:00]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:00]execute_script... [00:35:00]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:00]POST & json_proto [00:35:00]process_json_proto [00:35:00]json parsed OK: [00:35:00]protocol is kg_v1.0 [00:35:00]action value=get_value [00:35:00]process_action get_value [00:35:00]cmd_get_value [00:35:00]process_action get_value done [00:35:00]requested_data is exist [00:35:00]produce_requested_data [00:35:00]requested_item fm.sale.total is exist - process it [00:35:00]SAM_PROTO_GetFMData [00:35:00]wFMCommunicate request_size=4 [00:35:00]MH_SAM_APDU [00:35:00]CAPDU: 80 13 03 00 [00:35:00]Write to MH i2c: E2 08 00 A7 12 80 13 03 00 00 00 00 00 38 [00:35:00]Write i2c OK [00:35:00]MH_I2C_Read... [00:35:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:35:01]Read from MH i2c: E2 [00:35:01]MH_I2C_Read... [00:35:01]Read from MH i2c: E2 FD 00 [00:35:01]MH_I2C_Read... [00:35:01]Read from MH i2c: E2 FD 00 A7 12 00 C1 04 85 04 BD 04 6E 04 04 00 2F D6 02 00 69 04 A3 00 6F 04 04 00 1C D6 02 00 B1 04 05 00 8F 75 C1 1B 04 70 04 05 00 90 4B 8B 9A 03 72 04 04 00 FF 29 36 81 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 FF 8B B9 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 17 43 4F 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 92 [00:35:01]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 2F D6 02 00 69 04 A3 00 6F 04 04 00 1C D6 02 00 B1 04 05 00 8F 75 C1 1B 04 70 04 05 00 90 4B 8B 9A 03 72 04 04 00 FF 29 36 81 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 FF 8B B9 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 17 43 4F 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:01]wFMCommunicate OK [00:35:01]wFMCommunicate request_size=4 [00:35:01]MH_SAM_APDU [00:35:01]CAPDU: 80 17 00 00 [00:35:01]Write to MH i2c: E2 08 00 A8 12 80 17 00 00 00 00 00 00 3A [00:35:01]Write i2c OK [00:35:01]MH_I2C_Read... [00:35:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:01]Read from MH i2c: E2 [00:35:01]MH_I2C_Read... [00:35:01]Read from MH i2c: E2 FD 00 [00:35:01]MH_I2C_Read... [00:35:01]Read from MH i2c: E2 FD 00 A8 12 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 03 [00:35:01]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:01]wFMCommunicate OK [00:35:01]wFMCommunicate request_size=4 [00:35:01]MH_SAM_APDU [00:35:01]CAPDU: 80 17 00 00 [00:35:01]Write to MH i2c: E2 08 00 A9 12 80 17 00 00 00 00 00 00 3B [00:35:01]Write i2c OK [00:35:01]MH_I2C_Read... [00:35:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:01]Read from MH i2c: E2 [00:35:01]MH_I2C_Read... [00:35:01]Read from MH i2c: E2 FD 00 [00:35:01]MH_I2C_Read... [00:35:01]Read from MH i2c: E2 FD 00 A9 12 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 DB [00:35:02]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:02]wFMCommunicate OK [00:35:02]wFMCommunicate request_size=4 [00:35:02]MH_SAM_APDU [00:35:02]CAPDU: 80 17 00 00 [00:35:02]Write to MH i2c: E2 08 00 AA 12 80 17 00 00 00 00 00 00 3C [00:35:02]Write i2c OK [00:35:02]MH_I2C_Read... [00:35:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:02]Read from MH i2c: E2 [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: E2 FD 00 [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: E2 FD 00 AA 12 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 C1 [00:35:02]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:02]wFMCommunicate OK [00:35:02]wFMCommunicate request_size=4 [00:35:02]MH_SAM_APDU [00:35:02]CAPDU: 80 17 00 00 [00:35:02]Write to MH i2c: E2 08 00 AB 12 80 17 00 00 00 00 00 00 3D [00:35:02]Write i2c OK [00:35:02]MH_I2C_Read... [00:35:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:35:02]Read from MH i2c: E2 [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: E2 DE 00 [00:35:02]MH_I2C_Read... [00:35:02]Read from MH i2c: E2 DE 00 AB 12 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1C [00:35:02]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:02]wFMCommunicate OK [00:35:02]SAM_PROTO_GetFMData done [00:35:02]requested_item fm.sale_refund.total is exist - process it [00:35:02]requested_item fm.buy.total is exist - process it [00:35:02]requested_item shift.sale.total is exist - process it [00:35:02]SAM_PROTO_GetShiftData [00:35:02]wFMCommunicate request_size=4 [00:35:02]MH_SAM_APDU [00:35:02]CAPDU: 80 13 02 00 [00:35:02]Write to MH i2c: E2 08 00 AC 12 80 13 02 00 00 00 00 00 3C [00:35:02]Write i2c OK [00:35:02]MH_I2C_Read... [00:35:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:35:03]Read from MH i2c: E2 [00:35:03]MH_I2C_Read... [00:35:03]Read from MH i2c: E2 FD 00 [00:35:03]MH_I2C_Read... [00:35:03]Read from MH i2c: E2 FD 00 AC 12 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 AF [00:35:03]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:03]wFMCommunicate OK [00:35:03]wFMCommunicate request_size=4 [00:35:03]MH_SAM_APDU [00:35:03]CAPDU: 80 17 00 00 [00:35:03]Write to MH i2c: E2 08 00 AD 12 80 17 00 00 00 00 00 00 3F [00:35:03]Write i2c OK [00:35:03]MH_I2C_Read... [00:35:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:03]Read from MH i2c: E2 [00:35:03]MH_I2C_Read... [00:35:03]Read from MH i2c: E2 FD 00 [00:35:03]MH_I2C_Read... [00:35:03]Read from MH i2c: E2 FD 00 AD 12 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 47 [00:35:03]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:04]wFMCommunicate OK [00:35:04]wFMCommunicate request_size=4 [00:35:04]MH_SAM_APDU [00:35:04]CAPDU: 80 17 00 00 [00:35:04]Write to MH i2c: E2 08 00 AE 12 80 17 00 00 00 00 00 00 40 [00:35:04]Write i2c OK [00:35:04]MH_I2C_Read... [00:35:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:04]Read from MH i2c: E2 [00:35:04]MH_I2C_Read... [00:35:04]Read from MH i2c: E2 FD 00 [00:35:04]MH_I2C_Read... [00:35:04]Read from MH i2c: E2 FD 00 AE 12 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 12 [00:35:04]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:04]wFMCommunicate OK [00:35:04]wFMCommunicate request_size=4 [00:35:04]MH_SAM_APDU [00:35:04]CAPDU: 80 17 00 00 [00:35:04]Write to MH i2c: E2 08 00 AF 12 80 17 00 00 00 00 00 00 41 [00:35:04]Write i2c OK [00:35:04]MH_I2C_Read... [00:35:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:04]Read from MH i2c: E2 [00:35:04]MH_I2C_Read... [00:35:04]Read from MH i2c: E2 FD 00 [00:35:04]MH_I2C_Read... [00:35:04]Read from MH i2c: E2 FD 00 AF 12 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 B3 [00:35:04]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:04]wFMCommunicate OK [00:35:04]wFMCommunicate request_size=4 [00:35:04]MH_SAM_APDU [00:35:04]CAPDU: 80 17 00 00 [00:35:04]Write to MH i2c: E2 08 00 B0 12 80 17 00 00 00 00 00 00 42 [00:35:04]Write i2c OK [00:35:04]MH_I2C_Read... [00:35:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:35:05]Read from MH i2c: E2 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: E2 BD 00 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: E2 BD 00 B0 12 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 28 [00:35:05]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:05]wFMCommunicate OK [00:35:05]SAM_PROTO_GetShiftData done [00:35:05]requested_item shift.sale.total_cash is exist - process it [00:35:05]requested_item shift.sale_refund.total is exist - process it [00:35:05]requested_item shift.sale_refund.total_cash is exist - process it [00:35:05]requested_item shift.buy.total is exist - process it [00:35:05]requested_item shift.buy.total_cash is exist - process it [00:35:05]produce_requested_data done [00:35:05]produce_requested_data return {"fm.sale.total":176455325.59,"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:05]process_action_free get_value [00:35:05]json_value_free [00:35:05]json_value_free done [00:35:05]process_json_proto returns [00:35:05]Send response to host [00:35:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176455325.59,"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:05]free response buf [00:35:05]execute_script done [00:35:05]execute_script returns [00:35:05]free content buf [00:35:05]Sock 7.Close socket [00:35:05]Sock 7.Thread stoped [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:20]OFD Sender: No OFD packet to send [00:35:25]OFD Sender: No OFD packet to send [00:35:30]OFD Sender: No OFD packet to send [00:35:35]OFD Sender: No OFD packet to send [00:35:40]OFD Sender: No OFD packet to send [00:35:45]OFD Sender: No OFD packet to send [00:35:50]OFD Sender: No OFD packet to send [00:35:55]OFD Sender: No OFD packet to send [00:36:00]OFD Sender: No OFD packet to send [00:36:05]OFD Sender: No OFD packet to send [00:36:10]OFD Sender: No OFD packet to send [00:36:15]OFD Sender: No OFD packet to send [00:36:20]OFD Sender: No OFD packet to send [00:36:25]OFD Sender: No OFD packet to send [00:36:30]OFD Sender: No OFD packet to send [00:36:35]OFD Sender: No OFD packet to send [00:36:40]OFD Sender: No OFD packet to send [00:36:45]OFD Sender: No OFD packet to send [00:36:50]OFD Sender: No OFD packet to send [00:36:55]OFD Sender: No OFD packet to send [00:37:00]OFD Sender: No OFD packet to send [00:37:05]OFD Sender: No OFD packet to send [00:37:10]OFD Sender: No OFD packet to send [00:37:15]OFD Sender: No OFD packet to send [00:37:20]OFD Sender: No OFD packet to send [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:40]OFD Sender: No OFD packet to send [00:37:45]OFD Sender: No OFD packet to send [00:37:50]OFD Sender: No OFD packet to send [00:37:55]OFD Sender: No OFD packet to send [00:38:00]OFD Sender: No OFD packet to send [00:38:05]OFD Sender: No OFD packet to send [00:38:10]OFD Sender: No OFD packet to send [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:38:30]OFD Sender: No OFD packet to send [00:38:32]accept exits with 9 [00:38:32]New connection [00:38:32]New thread 3066510692 created [00:38:32]Thread 3066654052 joined [00:38:32]Waiting for new connection... [00:38:32] Sock 9.Parse request [00:38:32]Sock 9.Check first char [00:38:32]Sock 9.First char is OK [00:38:32]request: POST /json_proto HTTP/1.0 [00:38:32]Method: POST [00:38:32]URL: /json_proto [00:38:32]Method is POST - this is cgi request [00:38:32]url: /json_proto [00:38:32]query_string will be loaded in cgi processing [00:38:32]execute_cgi json_proto POST (null) [00:38:32]execute_cgi path=json_proto method=POST [00:38:32]POST find Content-Length [00:38:32]Host: 172.17.46.131:8080 [00:38:32]Content-Length: 677 [00:38:32]Content-Type: application/json [00:38:32] [00:38:32]POST finish read [00:38:32]Found Content-Length = 677 [00:38:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412353", "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" ] } } [00:38:32]execute_script... [00:38: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)412353", "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" ] } } [00:38:32]POST & json_proto [00:38:32]process_json_proto [00:38:32]json parsed OK: [00:38:32]protocol is kg_v1.0 [00:38:32]action value=close_receipt [00:38:32]process_action close_receipt [00:38:32]cmd_close_receipt [00:38:32]MH_GetDate [00:38:32]Write to MH i2c: F0 00 00 B1 12 B2 [00:38:32]Write i2c OK [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: F0 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: F0 09 00 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: F0 09 00 B1 12 00 8A 79 B6 67 7E 41 4F 65 4E [00:38:32]GetLastDocTimeStamp 1740011697 [00:38:32]current date 1740011914 [00:38:32]FM_GetShiftState [00:38:32]SAM_PROTO_GetShiftState [00:38:32]wFMCommunicate request_size=4 [00:38:32]MH_SAM_APDU [00:38:32]CAPDU: 80 13 01 00 [00:38:32]Write to MH i2c: E2 08 00 B2 12 80 13 01 00 00 00 00 00 41 [00:38:32]Write i2c OK [00:38:32]MH_I2C_Read... [00:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:32]Read from MH i2c: E2 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: E2 0E 00 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: E2 0E 00 B2 12 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 93 [00:38:32]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [00:38:32]wFMCommunicate OK [00:38:32]SAM_PROTO_GetShiftState done [00:38:32]FM_GetShiftState done [00:38:32]opened in 1740011697 [00:38:32]opened+sec_in_day 1740098097 [00:38:32]quantity*price = 50011 [00:38:32]sum+1 = 50013 [00:38:32]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 СНО: Общий режим Чек 1 20.02.2025 00:38 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187200 ФПД: 221014029361349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T003834&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187200&fm=221014029361349&tin=02508201610067®Number=0000000000091857&sum=50000 [00:38:33]StoreToDocumentArchive [00:38:33]shift 648 fd 187200 [00:38:33]save to /storage/0648/doc_00187200 [00:38:33]save last doc name /storage/0648/doc_00187200 to /storage/kkm_last_doc_name [00:38:33]save OK [00:38:33]Clear old archive folders... [00:38:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:38:33]tlvbuf is 01FAD180 [00:38:33]SAM_PROTO_ClearQueue [00:38:33]wFMCommunicate request_size=4 [00:38:33]MH_SAM_APDU [00:38:33]CAPDU: 80 09 00 00 [00:38:33]Write to MH i2c: E2 08 00 BF 12 80 09 00 00 00 00 00 00 43 [00:38:33]Write i2c OK [00:38:33]MH_I2C_Read... [00:38:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:38:33]Read from MH i2c: E2 [00:38:33]MH_I2C_Read... [00:38:33]Read from MH i2c: E2 03 00 [00:38:33]MH_I2C_Read... [00:38:33]Read from MH i2c: E2 03 00 BF 12 00 90 00 45 [00:38:33]RAPDU: 90 00 [00:38:33]wFMCommunicate OK [00:38:33]SAM_PROTO_ClearQueue done [00:38:33]KKMCreateOFDPacket [00:38:33]OFDProtocolAddRootSTLVToBuf [00:38:33]FM_MakeSignedData [00:38:33]FM_MakeSignedData [00:38:33]SAM_PROTO_SignData [00:38:33]wFMCommunicate request_size=4 [00:38:33]MH_SAM_APDU [00:38:33]CAPDU: 80 0D 01 02 [00:38:33]Write to MH i2c: E2 08 00 C0 12 80 0D 01 02 00 00 00 00 4B [00:38:33]Write i2c OK [00:38:33]MH_I2C_Read... [00:38:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:38:33]Read from MH i2c: E2 [00:38:33]MH_I2C_Read... [00:38:33]Read from MH i2c: E2 03 00 [00:38:33]MH_I2C_Read... [00:38:33]Read from MH i2c: E2 03 00 C0 12 00 90 00 46 [00:38:33]RAPDU: 90 00 [00:38:33]wFMCommunicate OK [00:38:33]wFMCommunicate request_size=255 [00:38:33]MH_SAM_APDU [00:38:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 01 00 00 00 F4 03 04 00 8A 79 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 DB 02 00 35 04 06 00 C9 [00:38:33]Write to MH i2c: E2 02 01 C1 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 01 00 00 00 F4 03 04 00 8A 79 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 DB 02 00 35 04 06 00 C9 00 00 75 [00:38:34]Write i2c OK [00:38:34]MH_I2C_Read... [00:38:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:34]Read from MH i2c: E2 [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: E2 03 00 [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: E2 03 00 C1 12 00 90 00 47 [00:38:34]RAPDU: 90 00 [00:38:34]wFMCommunicate OK [00:38:34]wFMCommunicate request_size=10 [00:38:34]MH_SAM_APDU [00:38:34]CAPDU: 80 0D 02 02 05 02 D6 B5 E0 C5 [00:38:34]Write to MH i2c: E2 0D 00 C2 12 80 0D 02 02 05 00 02 D6 B5 E0 C5 00 00 8A [00:38:34]Write i2c OK [00:38:34]MH_I2C_Read... [00:38:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:34]Read from MH i2c: E2 [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: E2 03 00 [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: E2 03 00 C2 12 00 90 00 48 [00:38:34]RAPDU: 90 00 [00:38:34]wFMCommunicate OK [00:38:34]wFMCommunicate request_size=4 [00:38:34]MH_SAM_APDU [00:38:34]CAPDU: 80 0D 03 02 [00:38:34]Write to MH i2c: E2 08 00 C3 12 80 0D 03 02 00 00 00 00 50 [00:38:34]Write i2c OK [00:38:34]MH_I2C_Read... [00:38:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:38:34]Read from MH i2c: E2 [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: E2 0B 00 [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: E2 0B 00 C3 12 00 66 E8 82 69 F6 A4 BB E2 90 00 C1 [00:38:34]RAPDU: 66 E8 82 69 F6 A4 BB E2 90 00 [00:38:34]wFMCommunicate OK [00:38:34]SAM_PROTO_SignData done [00:38:34]FM_MakeSignedData done [00:38:34]CreateOFDProtocolMessage [00:38:34]wFMCommunicate request_size=4 [00:38:34]MH_SAM_APDU [00:38:34]CAPDU: 80 11 00 00 [00:38:34]Write to MH i2c: E2 08 00 C4 12 80 11 00 00 00 00 00 00 50 [00:38:34]Write i2c OK [00:38:34]MH_I2C_Read... [00:38:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:34]Read from MH i2c: E2 [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: E2 17 00 [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: E2 17 00 C4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A3 [00:38:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:38:34]wFMCommunicate OK [00:38:34]CreateOFDProtocolMessage done [00:38:34]OFDSenderStorePacket 187200 [00:38:34]StoreOFDPacket docnum=187200 [00:38: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 35 B5 07 01 B5 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 01 00 00 00 F4 03 04 00 8A 79 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 DB 02 00 35 04 06 00 C9 02 D6 B5 E0 C5 66 E8 82 69 F6 A4 BB E2 [00:38:34]CheckFolder [00:38:34]dirname=/storage/ofd_packets [00:38:34]CheckFolder done [00:38:34]ProducePacketName [00:38:34]name=ofd_packets/00187200 [00:38:34]NVStorageSaveData ofd_packets/00187200 [00:38:34]File name is /storage/ofd_packets/00187200 [00:38:34]Write 301 bytes [00:38:34]NVStorageSaveData done [00:38:34]OFDSenderStorePacket done [00:38:34]KKMCreateOFDPacket done [00:38:34]NVStorageSaveData kkm_last_timestamp [00:38:34]File name is /storage/kkm_last_timestamp [00:38:34]Write 4 bytes [00:38:34]NVStorageSaveData done [00:38:34]ExternCall_PrintAddStr [00:38:34]wPrintStart [00:38:34]Write to MH i2c: 01 00 00 C5 12 D7 [00:38:34]Write i2c OK [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: 01 [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: 01 07 00 [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: 01 07 00 C5 12 00 00 00 00 00 FF 0F EC [00:38:34]RasterBufferAndPrint [00:38:34]line Счет N : (1)412353 [00:38:34]line ИНН: 02508201610067 [00:38:34]line Контрольно-Кассовый Чек [00:38:34]line ПРОДАЖА [00:38:34]line ТРК (МРК, ГНК) : 22 [00:38:34]line Товар: 2710124130 [00:38:34]line Аи-92-К-2 [00:38:34]line 7.790 * 64.20 [00:38:34]line = 500.12 [00:38:34]line НДС 12% НСП 1% [00:38:34]line > о реализуемом товаре [00:38:34]line ОКРУГЛЕНИЕ: -0.12 [00:38:34]line ИТОГО: 500.00 [00:38:34]line Внесено: 500.00 [00:38:34]line СДАЧА: 0.00 [00:38:34]line НСП 1% : 4.43 [00:38:34]line НДС 12% : 53.11 [00:38:34]line Наличными: 500.00 [00:38:34]line Безнал.: 0.00 [00:38:34]line Место: АЗС № 92 "Партнер Нефть" [00:38:34]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [00:38:34]line СНО: Общий режим [00:38:34]line Чек 1 20.02.2025 00:38 [00:38:34]line Смена: 648 ФФД: 1.0 [00:38:34]line ЗНМ: 0300000118 [00:38:34]line РНМ: 0000000000091857 [00:38:34]line Версия ККМ: 001 [00:38:34]line ФМ: 0000000000871826 [00:38:34]line ФД: 187200 [00:38:34]line ФПД: 221014029361349 [00:38:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T003834&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187200&fm=221014029361349&tin=02508201610067®Number=0000000000091857&sum=50000 [00:38:34]written 0, free lines is 4095 [00:38:34]OFD Sender: Processing packet 187200 [packets to send 49, broken 48] [00:38:34]ProducePacketName [00:38:34]name=ofd_packets/00187200 [00:38:34]OFD Sender: To server: pG, [00:38:34]CommunicateWithHost lk.salyk.kg:30040 [00:38:34]ConnectInit lk.salyk.kg [00:38:34]Connected sock=10 [00:38: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 0F 01 00 00 35 B5 07 01 B5 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 01 00 00 00 F4 03 04 00 8A 79 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 DB 02 00 35 04 06 00 C9 02 D6 B5 E0 C5 66 E8 82 69 F6 A4 BB E2 [00:38: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 F4 3C 47 00 2E D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 DB 02 00 F4 03 04 00 DD 1F B6 67 B6 04 01 00 00 64 12 4F AF 53 3C 6F A6 [00:38:35]CommunicateWithHost err = 0 [00:38:35]CheckOFDResponse [00:38:35]1017 (14) - 77093643461234 [00:38:35]1041 (16) - 0000000000871826 [00:38:35]1040 (4) - 187200 [00:38:35]1012 (4) - 19.02.2025 18:15 [00:38:35]1206 (1) - 0 [00:38:35]OFD Sender: Remove packet 187200 [00:38:35]ProducePacketName [00:38:35]name=ofd_packets/00187200 [00:38:35]NVStorageDeleteData [00:38:35]Write to MH i2c: 01 00 00 F0 12 02 [00:38:35]Write i2c OK [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: 01 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: 01 07 00 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: 01 07 00 F0 12 00 00 00 00 00 E4 0C F9 [00:38:35]RasterBufferAndPrint [00:38:35]line [00:38:35]line [00:38:35]line [00:38:35]line [00:38:35]line [00:38:35]written 0, free lines is 3306 [00:38:35]MH_Cut [00:38:35]Write to MH i2c: D1 01 00 F7 12 01 DB [00:38:35]Write i2c OK [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: D1 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: D1 01 00 [00:38:35]MH_I2C_Read... [00:38:35]Read from MH i2c: D1 01 00 F7 12 00 DA [00:38:35]Write to MH i2c: 01 00 00 F8 12 0A [00:38:35]Write i2c OK [00:38:35]MH_I2C_Read... [00:38:35]OFD Sender: No OFD packet to send [00:38:35]*** Cut start [00:38:35]*** Partial cut [00:38:35]*** CUTSNS_PIN = 1 [00:38:35]*** CUTSNS_PIN = 0 [00:38:36]*** Brake cut motor [00:38:36]Read from MH i2c: 01 [00:38:36]MH_I2C_Read... [00:38:36]*** Stop cut motor [00:38:36]*** Cut end [00:38:36]Read from MH i2c: 01 07 00 [00:38:36]MH_I2C_Read... [00:38:36]Read from MH i2c: 01 07 00 F8 12 00 00 00 00 00 FF 0F 1F [00:38:36]process_action close_receipt done [00:38:36]requested_data is exist [00:38:36]produce_requested_data [00:38:36]requested_item fm.sn is exist - process it [00:38:36]wFMCommunicate request_size=4 [00:38:36]MH_SAM_APDU [00:38:36]CAPDU: 80 11 00 00 [00:38:36]Write to MH i2c: E2 08 00 F9 12 80 11 00 00 00 00 00 00 85 [00:38:36]Write i2c OK [00:38:36]MH_I2C_Read... [00:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:36]Read from MH i2c: E2 [00:38:36]MH_I2C_Read... [00:38:36]Read from MH i2c: E2 17 00 [00:38:36]MH_I2C_Read... [00:38:36]Read from MH i2c: E2 17 00 F9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D8 [00:38: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:38:36]wFMCommunicate OK [00:38:36]requested_item fd.num is exist - process it [00:38:36]SAM_PROTO_GetFieldsCounters [00:38:36]wFMCommunicate request_size=4 [00:38:36]MH_SAM_APDU [00:38:36]CAPDU: 80 13 00 00 [00:38:36]Write to MH i2c: E2 08 00 FA 12 80 13 00 00 00 00 00 00 88 [00:38:36]Write i2c OK [00:38:36]MH_I2C_Read... [00:38:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:38:36]Read from MH i2c: E2 [00:38:36]MH_I2C_Read... [00:38:36]Read from MH i2c: E2 62 00 [00:38:36]MH_I2C_Read... [00:38:36]Read from MH i2c: E2 62 00 FA 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 40 DB 02 00 0E 04 04 00 88 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 58 [00:38: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 40 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:38:36]wFMCommunicate OK [00:38:36]SAM_PROTO_GetFieldsCounters done [00:38:36]requested_item shift.num is exist - process it [00:38:36]requested_item shift.opened is exist - process it [00:38:36]req_shift_opened [00:38:36]FM_GetShiftState [00:38:36]SAM_PROTO_GetShiftState [00:38:36]wFMCommunicate request_size=4 [00:38:36]MH_SAM_APDU [00:38:36]CAPDU: 80 13 01 00 [00:38:36]Write to MH i2c: E2 08 00 FB 12 80 13 01 00 00 00 00 00 8A [00:38:36]Write i2c OK [00:38:36]MH_I2C_Read... [00:38:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:36]Read from MH i2c: E2 [00:38:36]MH_I2C_Read... [00:38:36]Read from MH i2c: E2 0E 00 [00:38:36]MH_I2C_Read... [00:38:36]Read from MH i2c: E2 0E 00 FB 12 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 DC [00:38:36]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [00:38:36]wFMCommunicate OK [00:38:36]SAM_PROTO_GetShiftState done [00:38:36]FM_GetShiftState done [00:38:36]req_shift_opened done [00:38:36]requested_item shift.open_date is exist - process it [00:38:36]req_shift_open_date [00:38:36]req_shift_open_date done [00:38:36]produce_requested_data done [00:38:36]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187200,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [00:38:36]process_action_free close_receipt [00:38:36]json_value_free [00:38:36]json_value_free done [00:38:36]process_json_proto returns [00:38:36]Send response to host [00:38:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187200,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [00:38:36]free response buf [00:38:36]execute_script done [00:38:36]execute_script returns [00:38:36]free content buf [00:38:36]Sock 9.Close socket [00:38:36]Sock 9.Thread stoped [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40:55]OFD Sender: No OFD packet to send [00:41:00]OFD Sender: No OFD packet to send [00:41:05]OFD Sender: No OFD packet to send [00:41:10]OFD Sender: No OFD packet to send [00:41:15]OFD Sender: No OFD packet to send [00:41:20]OFD Sender: No OFD packet to send [00:41:25]OFD Sender: No OFD packet to send [00:41:30]OFD Sender: No OFD packet to send [00:41:35]OFD Sender: No OFD packet to send [00:41:40]OFD Sender: No OFD packet to send [00:41:45]OFD Sender: No OFD packet to send [00:41:50]OFD Sender: No OFD packet to send [00:41:55]OFD Sender: No OFD packet to send [00:42:00]OFD Sender: No OFD packet to send [00:42:05]OFD Sender: No OFD packet to send [00:42:10]OFD Sender: No OFD packet to send [00:42:15]OFD Sender: No OFD packet to send [00:42:20]OFD Sender: No OFD packet to send [00:42:25]OFD Sender: No OFD packet to send [00:42:30]OFD Sender: No OFD packet to send [00:42:35]OFD Sender: No OFD packet to send [00:42:40]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:11]OFD Sender: No OFD packet to send [00:44:16]OFD Sender: No OFD packet to send [00:44:21]OFD Sender: No OFD packet to send [00:44:26]OFD Sender: No OFD packet to send [00:44:31]OFD Sender: No OFD packet to send [00:44:36]OFD Sender: No OFD packet to send [00:44:41]OFD Sender: No OFD packet to send [00:44:46]OFD Sender: No OFD packet to send [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:21]OFD Sender: No OFD packet to send [00:45:26]OFD Sender: No OFD packet to send [00:45:31]OFD Sender: No OFD packet to send [00:45:36]OFD Sender: No OFD packet to send [00:45:41]OFD Sender: No OFD packet to send [00:45:46]OFD Sender: No OFD packet to send [00:45:51]OFD Sender: No OFD packet to send [00:45:56]OFD Sender: No OFD packet to send [00:46:01]OFD Sender: No OFD packet to send [00:46:06]OFD Sender: No OFD packet to send [00:46:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:41]OFD Sender: No OFD packet to send [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:01]OFD Sender: No OFD packet to send [00:50:06]OFD Sender: No OFD packet to send [00:50:11]OFD Sender: No OFD packet to send [00:50:16]OFD Sender: No OFD packet to send [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:56]OFD Sender: No OFD packet to send [00:55:01]OFD Sender: No OFD packet to send [00:55:06]OFD Sender: No OFD packet to send [00:55:11]OFD Sender: No OFD packet to send [00:55:16]OFD Sender: No OFD packet to send [00:55:21]OFD Sender: No OFD packet to send [00:55:26]OFD Sender: No OFD packet to send [00:55:31]OFD Sender: No OFD packet to send [00:55:36]OFD Sender: No OFD packet to send [00:55:41]OFD Sender: No OFD packet to send [00:55:46]OFD Sender: No OFD packet to send [00:55:51]OFD Sender: No OFD packet to send [00:55:56]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:36]OFD Sender: No OFD packet to send [00:56:41]OFD Sender: No OFD packet to send [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:01]OFD Sender: No OFD packet to send [00:57:06]OFD Sender: No OFD packet to send [00:57:11]OFD Sender: No OFD packet to send [00:57:16]OFD Sender: No OFD packet to send [00:57:21]OFD Sender: No OFD packet to send [00:57:26]OFD Sender: No OFD packet to send [00:57:31]OFD Sender: No OFD packet to send [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:51]OFD Sender: No OFD packet to send [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:36]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:11]OFD Sender: No OFD packet to send [01:00:16]OFD Sender: No OFD packet to send [01:00:21]OFD Sender: No OFD packet to send [01:00:26]OFD Sender: No OFD packet to send [01:00:31]OFD Sender: No OFD packet to send [01:00:36]OFD Sender: No OFD packet to send [01:00:41]OFD Sender: No OFD packet to send [01:00:46]OFD Sender: No OFD packet to send [01:00:51]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:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:52]OFD Sender: No OFD packet to send [01:02:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:27]accept exits with 7 [01:05:27]New connection [01:05:27]New thread 3066654052 created [01:05:27]Thread 3066510692 joined [01:05:27]Waiting for new connection... [01:05:27] Sock 7.Parse request [01:05:27]Sock 7.Check first char [01:05:27]Sock 7.First char is OK [01:05:27]request: POST /json_proto HTTP/1.0 [01:05:27]Method: POST [01:05:27]URL: /json_proto [01:05:27]Method is POST - this is cgi request [01:05:27]url: /json_proto [01:05:27]query_string will be loaded in cgi processing [01:05:27]execute_cgi json_proto POST (null) [01:05:27]execute_cgi path=json_proto method=POST [01:05:27]POST find Content-Length [01:05:27]Host: 172.17.46.131:8080 [01:05:27]Content-Length: 677 [01:05:27]Content-Type: application/json [01:05:27] [01:05:27]POST finish read [01:05:27]Found Content-Length = 677 [01:05:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412354", "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" ] } } [01:05:27]execute_script... [01:05:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412354", "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" ] } } [01:05:27]POST & json_proto [01:05:27]process_json_proto [01:05:27]json parsed OK: [01:05:27]protocol is kg_v1.0 [01:05:27]action value=close_receipt [01:05:27]process_action close_receipt [01:05:27]cmd_close_receipt [01:05:27]MH_GetDate [01:05:27]Write to MH i2c: F0 00 00 FC 12 FD [01:05:27]Write i2c OK [01:05:27]MH_I2C_Read... [01:05:27]Read from MH i2c: F0 [01:05:27]MH_I2C_Read... [01:05:27]Read from MH i2c: F0 09 00 [01:05:27]MH_I2C_Read... [01:05:27]Read from MH i2c: F0 09 00 FC 12 00 D9 7F B6 67 7E 41 4F 65 EE [01:05:27]GetLastDocTimeStamp 1740011914 [01:05:27]current date 1740013529 [01:05:27]FM_GetShiftState [01:05:27]SAM_PROTO_GetShiftState [01:05:27]wFMCommunicate request_size=4 [01:05:27]MH_SAM_APDU [01:05:27]CAPDU: 80 13 01 00 [01:05:27]Write to MH i2c: E2 08 00 FD 12 80 13 01 00 00 00 00 00 8C [01:05:27]Write i2c OK [01:05:27]MH_I2C_Read... [01:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:05:27]Read from MH i2c: E2 [01:05:27]MH_I2C_Read... [01:05:27]Read from MH i2c: E2 0E 00 [01:05:27]MH_I2C_Read... [01:05:27]Read from MH i2c: E2 0E 00 FD 12 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 DE [01:05:27]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [01:05:27]wFMCommunicate OK [01:05:27]SAM_PROTO_GetShiftState done [01:05:27]FM_GetShiftState done [01:05:27]opened in 1740011697 [01:05:27]opened+sec_in_day 1740098097 [01:05:27]quantity*price = 60027 [01:05:27]sum+1 = 60028 [01:05:27]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 СНО: Общий режим Чек 2 20.02.2025 01:05 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187201 ФПД: 50897941079651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T010529&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187201&fm=50897941079651&tin=02508201610067®Number=0000000000091857&sum=60000 [01:05:28]StoreToDocumentArchive [01:05:28]shift 648 fd 187201 [01:05:28]save to /storage/0648/doc_00187201 [01:05:28]save last doc name /storage/0648/doc_00187201 to /storage/kkm_last_doc_name [01:05:28]save OK [01:05:28]Clear old archive folders... [01:05:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:05:28]tlvbuf is 01F4FCC0 [01:05:28]SAM_PROTO_ClearQueue [01:05:28]wFMCommunicate request_size=4 [01:05:28]MH_SAM_APDU [01:05:28]CAPDU: 80 09 00 00 [01:05:28]Write to MH i2c: E2 08 00 0A 13 80 09 00 00 00 00 00 00 8F [01:05:28]Write i2c OK [01:05:28]MH_I2C_Read... [01:05:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:05:28]Read from MH i2c: E2 [01:05:28]MH_I2C_Read... [01:05:28]Read from MH i2c: E2 03 00 [01:05:28]MH_I2C_Read... [01:05:28]Read from MH i2c: E2 03 00 0A 13 00 90 00 91 [01:05:28]RAPDU: 90 00 [01:05:28]wFMCommunicate OK [01:05:28]SAM_PROTO_ClearQueue done [01:05:28]KKMCreateOFDPacket [01:05:28]OFDProtocolAddRootSTLVToBuf [01:05:28]FM_MakeSignedData [01:05:28]FM_MakeSignedData [01:05:28]SAM_PROTO_SignData [01:05:28]wFMCommunicate request_size=4 [01:05:28]MH_SAM_APDU [01:05:28]CAPDU: 80 0D 01 02 [01:05:28]Write to MH i2c: E2 08 00 0B 13 80 0D 01 02 00 00 00 00 97 [01:05:28]Write i2c OK [01:05:28]MH_I2C_Read... [01:05:28]Read from MH i2c: E2 [01:05:28]MH_I2C_Read... [01:05:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:05:28]Read from MH i2c: E2 03 00 [01:05:28]MH_I2C_Read... [01:05:28]Read from MH i2c: E2 03 00 0B 13 00 90 00 92 [01:05:28]RAPDU: 90 00 [01:05:28]wFMCommunicate OK [01:05:28]wFMCommunicate request_size=255 [01:05:28]MH_SAM_APDU [01:05: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 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 02 00 00 00 F4 03 04 00 D9 7F B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 DB 02 00 35 04 06 00 2E [01:05:28]Write to MH i2c: E2 02 01 0C 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 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 02 00 00 00 F4 03 04 00 D9 7F B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 DB 02 00 35 04 06 00 2E 00 00 D3 [01:05:28]Write i2c OK [01:05:28]MH_I2C_Read... [01:05:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:05:28]Read from MH i2c: E2 [01:05:28]MH_I2C_Read... [01:05:28]Read from MH i2c: E2 03 00 [01:05:28]MH_I2C_Read... [01:05:28]Read from MH i2c: E2 03 00 0C 13 00 90 00 93 [01:05:28]RAPDU: 90 00 [01:05:28]wFMCommunicate OK [01:05:28]wFMCommunicate request_size=10 [01:05:28]MH_SAM_APDU [01:05:28]CAPDU: 80 0D 02 02 05 4A 99 B2 A6 63 [01:05:28]Write to MH i2c: E2 0D 00 0D 13 80 0D 02 02 05 00 4A 99 B2 A6 63 00 00 42 [01:05:28]Write i2c OK [01:05:28]MH_I2C_Read... [01:05:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:05:28]Read from MH i2c: E2 [01:05:28]MH_I2C_Read... [01:05:28]Read from MH i2c: E2 03 00 [01:05:28]MH_I2C_Read... [01:05:28]Read from MH i2c: E2 03 00 0D 13 00 90 00 94 [01:05:28]RAPDU: 90 00 [01:05:28]wFMCommunicate OK [01:05:28]wFMCommunicate request_size=4 [01:05:28]MH_SAM_APDU [01:05:28]CAPDU: 80 0D 03 02 [01:05:28]Write to MH i2c: E2 08 00 0E 13 80 0D 03 02 00 00 00 00 9C [01:05:28]Write i2c OK [01:05:28]MH_I2C_Read... [01:05:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:05:28]Read from MH i2c: E2 [01:05:28]MH_I2C_Read... [01:05:28]Read from MH i2c: E2 0B 00 [01:05:28]MH_I2C_Read... [01:05:28]Read from MH i2c: E2 0B 00 0E 13 00 DA 4D 11 F1 31 12 9F 01 90 00 A9 [01:05:28]RAPDU: DA 4D 11 F1 31 12 9F 01 90 00 [01:05:28]wFMCommunicate OK [01:05:28]SAM_PROTO_SignData done [01:05:28]FM_MakeSignedData done [01:05:28]CreateOFDProtocolMessage [01:05:28]wFMCommunicate request_size=4 [01:05:28]MH_SAM_APDU [01:05:28]CAPDU: 80 11 00 00 [01:05:28]Write to MH i2c: E2 08 00 0F 13 80 11 00 00 00 00 00 00 9C [01:05:28]Write i2c OK [01:05:28]MH_I2C_Read... [01:05:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:05:28]Read from MH i2c: E2 [01:05:28]MH_I2C_Read... [01:05:28]Read from MH i2c: E2 17 00 [01:05:28]MH_I2C_Read... [01:05:28]Read from MH i2c: E2 17 00 0F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EF [01:05: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:05:28]wFMCommunicate OK [01:05:28]CreateOFDProtocolMessage done [01:05:28]OFDSenderStorePacket 187201 [01:05:28]StoreOFDPacket docnum=187201 [01:05: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 0F 01 00 00 20 AF 07 01 35 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 02 00 00 00 F4 03 04 00 D9 7F B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 DB 02 00 35 04 06 00 2E 4A 99 B2 A6 63 DA 4D 11 F1 31 12 9F 01 [01:05:28]CheckFolder [01:05:28]dirname=/storage/ofd_packets [01:05:28]CheckFolder done [01:05:28]ProducePacketName [01:05:28]name=ofd_packets/00187201 [01:05:28]NVStorageSaveData ofd_packets/00187201 [01:05:28]File name is /storage/ofd_packets/00187201 [01:05:28]Write 301 bytes [01:05:28]NVStorageSaveData done [01:05:28]OFDSenderStorePacket done [01:05:28]KKMCreateOFDPacket done [01:05:28]NVStorageSaveData kkm_last_timestamp [01:05:28]File name is /storage/kkm_last_timestamp [01:05:28]Write 4 bytes [01:05:28]NVStorageSaveData done [01:05:28]ExternCall_PrintAddStr [01:05:28]wPrintStart [01:05:28]Write to MH i2c: 01 00 00 10 13 23 [01:05:28]Write i2c OK [01:05:28]MH_I2C_Read... [01:05:28]Read from MH i2c: 01 [01:05:28]MH_I2C_Read... [01:05:28]Read from MH i2c: 01 07 00 [01:05:28]MH_I2C_Read... [01:05:28]Read from MH i2c: 01 07 00 10 13 00 00 00 00 00 FF 0F 38 [01:05:28]RasterBufferAndPrint [01:05:28]line Счет N : (1)412354 [01:05:28]line ИНН: 02508201610067 [01:05:28]line Контрольно-Кассовый Чек [01:05:28]line ПРОДАЖА [01:05:28]line ТРК (МРК, ГНК) : 22 [01:05:28]line Товар: 2710124130 [01:05:28]line Аи-92-К-2 [01:05:28]line 9.350 * 64.20 [01:05:28]line = 600.27 [01:05:28]line НДС 12% НСП 1% [01:05:28]line > о реализуемом товаре [01:05:28]line ОКРУГЛЕНИЕ: -0.27 [01:05:28]line ИТОГО: 600.00 [01:05:28]line Внесено: 600.00 [01:05:28]line СДАЧА: 0.00 [01:05:28]line НСП 1% : 5.31 [01:05:28]line НДС 12% : 63.74 [01:05:28]line Наличными: 600.00 [01:05:28]line Безнал.: 0.00 [01:05:28]line Место: АЗС № 92 "Партнер Нефть" [01:05:28]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [01:05:28]line СНО: Общий режим [01:05:28]line Чек 2 20.02.2025 01:05 [01:05:28]line Смена: 648 ФФД: 1.0 [01:05:28]line ЗНМ: 0300000118 [01:05:28]line РНМ: 0000000000091857 [01:05:28]line Версия ККМ: 001 [01:05:28]line ФМ: 0000000000871826 [01:05:28]line ФД: 187201 [01:05:28]line ФПД: 50897941079651 [01:05:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T010529&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187201&fm=50897941079651&tin=02508201610067®Number=0000000000091857&sum=60000 [01:05:29]OFD Sender: Processing packet 187201 [packets to send 49, broken 48] [01:05:29]ProducePacketName [01:05:29]name=ofd_packets/00187201 [01:05:29]OFD Sender: To server: pG, [01:05:29]CommunicateWithHost lk.salyk.kg:30040 [01:05:29]ConnectInit lk.salyk.kg [01:05:29]written 0, free lines is 4095 [01:05:29]Connected sock=10 [01:05: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 20 AF 07 01 35 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 02 00 00 00 F4 03 04 00 D9 7F B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 DB 02 00 35 04 06 00 2E 4A 99 B2 A6 63 DA 4D 11 F1 31 12 9F 01 [01:05:29]Write to MH i2c: 01 00 00 3B 13 4E [01:05:29]Write i2c OK [01:05:29]MH_I2C_Read... [01:05:29]Read from MH i2c: 01 [01:05:29]MH_I2C_Read... [01:05:29]Read from MH i2c: 01 07 00 [01:05:29]MH_I2C_Read... [01:05:29]Read from MH i2c: 01 07 00 3B 13 00 00 00 00 00 E4 0C 45 [01:05:29]RasterBufferAndPrint [01:05:29]line [01:05:29]line [01:05:29]line [01:05:29]line [01:05:29]line [01:05:29]written 0, free lines is 3306 [01:05:29]MH_Cut [01:05:29]Write to MH i2c: D1 01 00 42 13 01 27 [01:05:29]Write i2c OK [01:05:29]MH_I2C_Read... [01:05:29]Read from MH i2c: D1 [01:05:29]MH_I2C_Read... [01:05:29]Read from MH i2c: D1 01 00 [01:05:29]MH_I2C_Read... [01:05:29]Read from MH i2c: D1 01 00 42 13 00 26 [01:05:29]Write to MH i2c: 01 00 00 43 13 56 [01:05:29]Write i2c OK [01:05:29]MH_I2C_Read... [01:05: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 65 DF 47 00 9F 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 41 DB 02 00 F4 03 04 00 2B 26 B6 67 B6 04 01 00 00 EE 0A 67 83 D9 99 8E BC [01:05:29]CommunicateWithHost err = 0 [01:05:29]CheckOFDResponse [01:05:29]1017 (14) - 77093643461234 [01:05:29]1041 (16) - 0000000000871826 [01:05:29]1040 (4) - 187201 [01:05:29]1012 (4) - 19.02.2025 18:42 [01:05:29]1206 (1) - 0 [01:05:29]OFD Sender: Remove packet 187201 [01:05:29]ProducePacketName [01:05:29]name=ofd_packets/00187201 [01:05:29]NVStorageDeleteData [01:05:30]OFD Sender: No OFD packet to send [01:05:30]*** Cut start [01:05:30]*** Partial cut [01:05:30]*** CUTSNS_PIN = 1 [01:05:30]*** CUTSNS_PIN = 0 [01:05:30]*** Brake cut motor [01:05:31]Read from MH i2c: 01 [01:05:31]MH_I2C_Read... [01:05:31]*** Stop cut motor [01:05:31]*** Cut end [01:05:31]Read from MH i2c: 01 07 00 [01:05:31]MH_I2C_Read... [01:05:31]Read from MH i2c: 01 07 00 43 13 00 00 00 00 00 FF 0F 6B [01:05:31]process_action close_receipt done [01:05:31]requested_data is exist [01:05:31]produce_requested_data [01:05:31]requested_item fm.sn is exist - process it [01:05:31]wFMCommunicate request_size=4 [01:05:31]MH_SAM_APDU [01:05:31]CAPDU: 80 11 00 00 [01:05:31]Write to MH i2c: E2 08 00 44 13 80 11 00 00 00 00 00 00 D1 [01:05:31]Write i2c OK [01:05:31]MH_I2C_Read... [01:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:05:31]Read from MH i2c: E2 [01:05:31]MH_I2C_Read... [01:05:31]Read from MH i2c: E2 17 00 [01:05:31]MH_I2C_Read... [01:05:31]Read from MH i2c: E2 17 00 44 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 24 [01:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:05:31]wFMCommunicate OK [01:05:31]requested_item fd.num is exist - process it [01:05:31]SAM_PROTO_GetFieldsCounters [01:05:31]wFMCommunicate request_size=4 [01:05:31]MH_SAM_APDU [01:05:31]CAPDU: 80 13 00 00 [01:05:31]Write to MH i2c: E2 08 00 45 13 80 13 00 00 00 00 00 00 D4 [01:05:31]Write i2c OK [01:05:31]MH_I2C_Read... [01:05:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:05:31]Read from MH i2c: E2 [01:05:31]MH_I2C_Read... [01:05:31]Read from MH i2c: E2 62 00 [01:05:31]MH_I2C_Read... [01:05:31]Read from MH i2c: E2 62 00 45 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 41 DB 02 00 0E 04 04 00 88 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 A8 [01:05:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 41 DB 02 00 0E 04 04 00 88 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 [01:05:31]wFMCommunicate OK [01:05:31]SAM_PROTO_GetFieldsCounters done [01:05:31]requested_item shift.num is exist - process it [01:05:31]requested_item shift.opened is exist - process it [01:05:31]req_shift_opened [01:05:31]FM_GetShiftState [01:05:31]SAM_PROTO_GetShiftState [01:05:31]wFMCommunicate request_size=4 [01:05:31]MH_SAM_APDU [01:05:31]CAPDU: 80 13 01 00 [01:05:31]Write to MH i2c: E2 08 00 46 13 80 13 01 00 00 00 00 00 D6 [01:05:31]Write i2c OK [01:05:31]MH_I2C_Read... [01:05:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:05:31]Read from MH i2c: E2 [01:05:31]MH_I2C_Read... [01:05:31]Read from MH i2c: E2 0E 00 [01:05:31]MH_I2C_Read... [01:05:31]Read from MH i2c: E2 0E 00 46 13 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 28 [01:05:31]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [01:05:31]wFMCommunicate OK [01:05:31]SAM_PROTO_GetShiftState done [01:05:31]FM_GetShiftState done [01:05:31]req_shift_opened done [01:05:31]requested_item shift.open_date is exist - process it [01:05:31]req_shift_open_date [01:05:31]req_shift_open_date done [01:05:31]produce_requested_data done [01:05:31]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187201,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [01:05:31]process_action_free close_receipt [01:05:31]json_value_free [01:05:31]json_value_free done [01:05:31]process_json_proto returns [01:05:31]Send response to host [01:05:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187201,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [01:05:31]free response buf [01:05:31]execute_script done [01:05:31]execute_script returns [01:05:31]free content buf [01:05:31]Sock 7.Close socket [01:05:31]Sock 7.Thread stoped [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:40]OFD Sender: No OFD packet to send [01:15:45]OFD Sender: No OFD packet to send [01:15:50]OFD Sender: No OFD packet to send [01:15:55]OFD Sender: No OFD packet to send [01:16:00]OFD Sender: No OFD packet to send [01:16:05]OFD Sender: No OFD packet to send [01:16:10]OFD Sender: No OFD packet to send [01:16:15]OFD Sender: No OFD packet to send [01:16:20]OFD Sender: No OFD packet to send [01:16:25]OFD Sender: No OFD packet to send [01:16:30]OFD Sender: No OFD packet to send [01:16:35]OFD Sender: No OFD packet to send [01:16:40]OFD Sender: No OFD packet to send [01:16:45]OFD Sender: No OFD packet to send [01:16:50]OFD Sender: No OFD packet to send [01:16:55]OFD Sender: No OFD packet to send [01:17:00]OFD Sender: No OFD packet to send [01:17:05]OFD Sender: No OFD packet to send [01:17:10]OFD Sender: No OFD packet to send [01:17:15]OFD Sender: No OFD packet to send [01:17:20]OFD Sender: No OFD packet to send [01:17:25]OFD Sender: No OFD packet to send [01:17:30]OFD Sender: No OFD packet to send [01:17:35]OFD Sender: No OFD packet to send [01:17:40]OFD Sender: No OFD packet to send [01:17:45]OFD Sender: No OFD packet to send [01:17:50]OFD Sender: No OFD packet to send [01:17:55]OFD Sender: No OFD packet to send [01:18:00]OFD Sender: No OFD packet to send [01:18:05]OFD Sender: No OFD packet to send [01:18:10]OFD Sender: No OFD packet to send [01:18:15]OFD Sender: No OFD packet to send [01:18:20]OFD Sender: No OFD packet to send [01:18:25]OFD Sender: No OFD packet to send [01:18:30]OFD Sender: No OFD packet to send [01:18:35]OFD Sender: No OFD packet to send [01:18:40]OFD Sender: No OFD packet to send [01:18:45]OFD Sender: No OFD packet to send [01:18:50]OFD Sender: No OFD packet to send [01:18:55]OFD Sender: No OFD packet to send [01:19:00]OFD Sender: No OFD packet to send [01:19:05]OFD Sender: No OFD packet to send [01:19:10]OFD Sender: No OFD packet to send [01:19:15]OFD Sender: No OFD packet to send [01:19:20]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:56]OFD Sender: No OFD packet to send [01:20:01]OFD Sender: No OFD packet to send [01:20:06]OFD Sender: No OFD packet to send [01:20:11]OFD Sender: No OFD packet to send [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:16]OFD Sender: No OFD packet to send [01:22:21]OFD Sender: No OFD packet to send [01:22:26]OFD Sender: No OFD packet to send [01:22:31]OFD Sender: No OFD packet to send [01:22:36]OFD Sender: No OFD packet to send [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:16]OFD Sender: No OFD packet to send [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:41]OFD Sender: No OFD packet to send [01:23:46]OFD Sender: No OFD packet to send [01:23:51]OFD Sender: No OFD packet to send [01:23:56]OFD Sender: No OFD packet to send [01:24:01]OFD Sender: No OFD packet to send [01:24:06]OFD Sender: No OFD packet to send [01:24:11]OFD Sender: No OFD packet to send [01:24:16]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [01:24:26]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:11]OFD Sender: No OFD packet to send [01:26:16]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:31]OFD Sender: No OFD packet to send [01:26:36]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:46]OFD Sender: No OFD packet to send [01:26:51]OFD Sender: No OFD packet to send [01:26:56]OFD Sender: No OFD packet to send [01:27:01]OFD Sender: No OFD packet to send [01:27:06]OFD Sender: No OFD packet to send [01:27:11]OFD Sender: No OFD packet to send [01:27:16]OFD Sender: No OFD packet to send [01:27:21]OFD Sender: No OFD packet to send [01:27:26]OFD Sender: No OFD packet to send [01:27:31]OFD Sender: No OFD packet to send [01:27:36]OFD Sender: No OFD packet to send [01:27:41]OFD Sender: No OFD packet to send [01:27:46]OFD Sender: No OFD packet to send [01:27:51]OFD Sender: No OFD packet to send [01:27:56]OFD Sender: No OFD packet to send [01:28:01]OFD Sender: No OFD packet to send [01:28:06]OFD Sender: No OFD packet to send [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:21]OFD Sender: No OFD packet to send [01:28:26]OFD Sender: No OFD packet to send [01:28:31]OFD Sender: No OFD packet to send [01:28:36]OFD Sender: No OFD packet to send [01:28:41]OFD Sender: No OFD packet to send [01:28:46]OFD Sender: No OFD packet to send [01:28:51]OFD Sender: No OFD packet to send [01:28:56]OFD Sender: No OFD packet to send [01:29:01]OFD Sender: No OFD packet to send [01:29:06]OFD Sender: No OFD packet to send [01:29:11]OFD Sender: No OFD packet to send [01:29:16]OFD Sender: No OFD packet to send [01:29:21]OFD Sender: No OFD packet to send [01:29:26]OFD Sender: No OFD packet to send [01:29:31]OFD Sender: No OFD packet to send [01:29:36]OFD Sender: No OFD packet to send [01:29:41]OFD Sender: No OFD packet to send [01:29:46]OFD Sender: No OFD packet to send [01:29:51]OFD Sender: No OFD packet to send [01:29:56]OFD Sender: No OFD packet to send [01:30:01]OFD Sender: No OFD packet to send [01:30:06]OFD Sender: No OFD packet to send [01:30:11]OFD Sender: No OFD packet to send [01:30:16]OFD Sender: No OFD packet to send [01:30:21]OFD Sender: No OFD packet to send [01:30:26]OFD Sender: No OFD packet to send [01:30:31]OFD Sender: No OFD packet to send [01:30:36]OFD Sender: No OFD packet to send [01:30:41]OFD Sender: No OFD packet to send [01:30:46]OFD Sender: No OFD packet to send [01:30:51]OFD Sender: No OFD packet to send [01:30:56]OFD Sender: No OFD packet to send [01:31:01]OFD Sender: No OFD packet to send [01:31:06]OFD Sender: No OFD packet to send [01:31:11]OFD Sender: No OFD packet to send [01:31:16]OFD Sender: No OFD packet to send [01:31:21]OFD Sender: No OFD packet to send [01:31:26]OFD Sender: No OFD packet to send [01:31:31]OFD Sender: No OFD packet to send [01:31:36]OFD Sender: No OFD packet to send [01:31:41]OFD Sender: No OFD packet to send [01:31:46]OFD Sender: No OFD packet to send [01:31:51]OFD Sender: No OFD packet to send [01:31:56]OFD Sender: No OFD packet to send [01:32:01]OFD Sender: No OFD packet to send [01:32:06]OFD Sender: No OFD packet to send [01:32:11]OFD Sender: No OFD packet to send [01:32:16]OFD Sender: No OFD packet to send [01:32:21]OFD Sender: No OFD packet to send [01:32:26]OFD Sender: No OFD packet to send [01:32:31]OFD Sender: No OFD packet to send [01:32:36]OFD Sender: No OFD packet to send [01:32:41]OFD Sender: No OFD packet to send [01:32:46]OFD Sender: No OFD packet to send [01:32:51]OFD Sender: No OFD packet to send [01:32:56]OFD Sender: No OFD packet to send [01:33:01]OFD Sender: No OFD packet to send [01:33:06]OFD Sender: No OFD packet to send [01:33:11]OFD Sender: No OFD packet to send [01:33:16]OFD Sender: No OFD packet to send [01:33:21]OFD Sender: No OFD packet to send [01:33:26]OFD Sender: No OFD packet to send [01:33:31]OFD Sender: No OFD packet to send [01:33:36]OFD Sender: No OFD packet to send [01:33:41]OFD Sender: No OFD packet to send [01:33:46]OFD Sender: No OFD packet to send [01:33:51]OFD Sender: No OFD packet to send [01:33:56]OFD Sender: No OFD packet to send [01:34:01]OFD Sender: No OFD packet to send [01:34:06]OFD Sender: No OFD packet to send [01:34:11]OFD Sender: No OFD packet to send [01:34:16]OFD Sender: No OFD packet to send [01:34:21]OFD Sender: No OFD packet to send [01:34:26]OFD Sender: No OFD packet to send [01:34:31]OFD Sender: No OFD packet to send [01:34:36]OFD Sender: No OFD packet to send [01:34:41]OFD Sender: No OFD packet to send [01:34:46]OFD Sender: No OFD packet to send [01:34:51]OFD Sender: No OFD packet to send [01:34:56]OFD Sender: No OFD packet to send [01:35:01]OFD Sender: No OFD packet to send [01:35:06]OFD Sender: No OFD packet to send [01:35:11]OFD Sender: No OFD packet to send [01:35:16]OFD Sender: No OFD packet to send [01:35:21]OFD Sender: No OFD packet to send [01:35:26]OFD Sender: No OFD packet to send [01:35:31]OFD Sender: No OFD packet to send [01:35:36]OFD Sender: No OFD packet to send [01:35:41]OFD Sender: No OFD packet to send [01:35:46]OFD Sender: No OFD packet to send [01:35:51]OFD Sender: No OFD packet to send [01:35:56]OFD Sender: No OFD packet to send [01:36:01]OFD Sender: No OFD packet to send [01:36:06]OFD Sender: No OFD packet to send [01:36:11]OFD Sender: No OFD packet to send [01:36:16]OFD Sender: No OFD packet to send [01:36:21]OFD Sender: No OFD packet to send [01:36:26]OFD Sender: No OFD packet to send [01:36:31]OFD Sender: No OFD packet to send [01:36:36]OFD Sender: No OFD packet to send [01:36:41]OFD Sender: No OFD packet to send [01:36:46]OFD Sender: No OFD packet to send [01:36:51]OFD Sender: No OFD packet to send [01:36:56]OFD Sender: No OFD packet to send [01:37:01]OFD Sender: No OFD packet to send [01:37:06]OFD Sender: No OFD packet to send [01:37:11]OFD Sender: No OFD packet to send [01:37:16]OFD Sender: No OFD packet to send [01:37:21]OFD Sender: No OFD packet to send [01:37:26]OFD Sender: No OFD packet to send [01:37:31]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:32]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51:02]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:22]OFD Sender: No OFD packet to send [01:52:27]OFD Sender: No OFD packet to send [01:52:32]OFD Sender: No OFD packet to send [01:52:37]OFD Sender: No OFD packet to send [01:52:42]OFD Sender: No OFD packet to send [01:52:47]OFD Sender: No OFD packet to send [01:52:52]OFD Sender: No OFD packet to send [01:52:57]OFD Sender: No OFD packet to send [01:53:02]OFD Sender: No OFD packet to send [01:53:07]OFD Sender: No OFD packet to send [01:53:12]OFD Sender: No OFD packet to send [01:53:17]OFD Sender: No OFD packet to send [01:53:22]OFD Sender: No OFD packet to send [01:53:27]OFD Sender: No OFD packet to send [01:53:32]OFD Sender: No OFD packet to send [01:53:37]OFD Sender: No OFD packet to send [01:53:42]OFD Sender: No OFD packet to send [01:53:47]OFD Sender: No OFD packet to send [01:53:52]OFD Sender: No OFD packet to send [01:53:57]OFD Sender: No OFD packet to send [01:54:02]OFD Sender: No OFD packet to send [01:54:07]OFD Sender: No OFD packet to send [01:54:12]OFD Sender: No OFD packet to send [01:54:17]OFD Sender: No OFD packet to send [01:54:22]OFD Sender: No OFD packet to send [01:54:27]OFD Sender: No OFD packet to send [01:54:32]OFD Sender: No OFD packet to send [01:54:37]OFD Sender: No OFD packet to send [01:54:42]OFD Sender: No OFD packet to send [01:54:47]OFD Sender: No OFD packet to send [01:54:52]OFD Sender: No OFD packet to send [01:54:57]OFD Sender: No OFD packet to send [01:55:02]OFD Sender: No OFD packet to send [01:55:07]OFD Sender: No OFD packet to send [01:55:12]OFD Sender: No OFD packet to send [01:55:17]OFD Sender: No OFD packet to send [01:55:22]OFD Sender: No OFD packet to send [01:55:27]OFD Sender: No OFD packet to send [01:55:32]OFD Sender: No OFD packet to send [01:55:37]OFD Sender: No OFD packet to send [01:55:42]OFD Sender: No OFD packet to send [01:55:48]OFD Sender: No OFD packet to send [01:55:53]OFD Sender: No OFD packet to send [01:55:58]OFD Sender: No OFD packet to send [01:56:03]OFD Sender: No OFD packet to send [01:56:08]OFD Sender: No OFD packet to send [01:56:13]OFD Sender: No OFD packet to send [01:56:18]OFD Sender: No OFD packet to send [01:56:23]OFD Sender: No OFD packet to send [01:56:28]OFD Sender: No OFD packet to send [01:56:33]OFD Sender: No OFD packet to send [01:56:38]OFD Sender: No OFD packet to send [01:56:43]OFD Sender: No OFD packet to send [01:56:48]OFD Sender: No OFD packet to send [01:56:53]OFD Sender: No OFD packet to send [01:56:58]OFD Sender: No OFD packet to send [01:57:03]OFD Sender: No OFD packet to send [01:57:08]OFD Sender: No OFD packet to send [01:57:13]OFD Sender: No OFD packet to send [01:57:18]OFD Sender: No OFD packet to send [01:57:23]OFD Sender: No OFD packet to send [01:57:28]OFD Sender: No OFD packet to send [01:57:33]OFD Sender: No OFD packet to send [01:57:38]OFD Sender: No OFD packet to send [01:57:43]OFD Sender: No OFD packet to send [01:57:48]OFD Sender: No OFD packet to send [01:57:53]OFD Sender: No OFD packet to send [01:57:58]OFD Sender: No OFD packet to send [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:13]OFD Sender: No OFD packet to send [01:58:18]OFD Sender: No OFD packet to send [01:58:23]OFD Sender: No OFD packet to send [01:58:28]OFD Sender: No OFD packet to send [01:58:33]OFD Sender: No OFD packet to send [01:58:38]OFD Sender: No OFD packet to send [01:58:43]OFD Sender: No OFD packet to send [01:58:48]OFD Sender: No OFD packet to send [01:58:53]OFD Sender: No OFD packet to send [01:58:58]OFD Sender: No OFD packet to send [01:59:03]OFD Sender: No OFD packet to send [01:59:08]OFD Sender: No OFD packet to send [01:59:13]OFD Sender: No OFD packet to send [01:59:18]OFD Sender: No OFD packet to send [01:59:23]OFD Sender: No OFD packet to send [01:59:28]OFD Sender: No OFD packet to send [01:59:33]OFD Sender: No OFD packet to send [01:59:38]OFD Sender: No OFD packet to send [01:59:43]OFD Sender: No OFD packet to send [01:59:48]OFD Sender: No OFD packet to send [01:59:53]OFD Sender: No OFD packet to send [01:59:58]OFD Sender: No OFD packet to send [02:00:03]OFD Sender: No OFD packet to send [02:00:08]OFD Sender: No OFD packet to send [02:00:13]OFD Sender: No OFD packet to send [02:00:18]OFD Sender: No OFD packet to send [02:00:23]OFD Sender: No OFD packet to send [02:00:28]OFD Sender: No OFD packet to send [02:00:33]OFD Sender: No OFD packet to send [02:00:38]OFD Sender: No OFD packet to send [02:00:43]OFD Sender: No OFD packet to send [02:00:48]OFD Sender: No OFD packet to send [02:00:53]OFD Sender: No OFD packet to send [02:00:58]OFD Sender: No OFD packet to send [02:01:03]OFD Sender: No OFD packet to send [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:28]OFD Sender: No OFD packet to send [02:01:33]OFD Sender: No OFD packet to send [02:01:38]OFD Sender: No OFD packet to send [02:01:43]OFD Sender: No OFD packet to send [02:01:48]OFD Sender: No OFD packet to send [02:01:53]OFD Sender: No OFD packet to send [02:01:58]OFD Sender: No OFD packet to send [02:02:03]OFD Sender: No OFD packet to send [02:02:08]OFD Sender: No OFD packet to send [02:02:13]OFD Sender: No OFD packet to send [02:02:18]OFD Sender: No OFD packet to send [02:02:23]OFD Sender: No OFD packet to send [02:02:28]OFD Sender: No OFD packet to send [02:02:33]OFD Sender: No OFD packet to send [02:02:38]OFD Sender: No OFD packet to send [02:02:43]OFD Sender: No OFD packet to send [02:02:48]OFD Sender: No OFD packet to send [02:02:53]OFD Sender: No OFD packet to send [02:02:58]OFD Sender: No OFD packet to send [02:03:03]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:13]OFD Sender: No OFD packet to send [02:03:18]OFD Sender: No OFD packet to send [02:03:23]OFD Sender: No OFD packet to send [02:03:28]OFD Sender: No OFD packet to send [02:03:33]OFD Sender: No OFD packet to send [02:03:38]OFD Sender: No OFD packet to send [02:03:43]OFD Sender: No OFD packet to send [02:03:48]OFD Sender: No OFD packet to send [02:03:53]OFD Sender: No OFD packet to send [02:03:58]OFD Sender: No OFD packet to send [02:04:03]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:28]OFD Sender: No OFD packet to send [02:05:33]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:25]accept exits with 9 [02:09:25]New connection [02:09:25]New thread 3066510692 created [02:09:25]Thread 3066654052 joined [02:09:25]Waiting for new connection... [02:09:25] Sock 9.Parse request [02:09:25]Sock 9.Check first char [02:09:25]Sock 9.First char is OK [02:09:25]request: POST /json_proto HTTP/1.0 [02:09:25]Method: POST [02:09:25]URL: /json_proto [02:09:25]Method is POST - this is cgi request [02:09:25]url: /json_proto [02:09:25]query_string will be loaded in cgi processing [02:09:25]execute_cgi json_proto POST (null) [02:09:25]execute_cgi path=json_proto method=POST [02:09:25]POST find Content-Length [02:09:25]Host: 172.17.46.131:8080 [02:09:25]Content-Length: 679 [02:09:25]Content-Type: application/json [02:09:25] [02:09:25]POST finish read [02:09:25]Found Content-Length = 679 [02:09:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412355", "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" ] } } [02:09:25]execute_script... [02:09: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)412355", "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" ] } } [02:09:25]POST & json_proto [02:09:25]process_json_proto [02:09:25]json parsed OK: [02:09:25]protocol is kg_v1.0 [02:09:25]action value=close_receipt [02:09:25]process_action close_receipt [02:09:25]cmd_close_receipt [02:09:25]MH_GetDate [02:09:25]Write to MH i2c: F0 00 00 47 13 49 [02:09:25]Write i2c OK [02:09:25]MH_I2C_Read... [02:09:25]Read from MH i2c: F0 [02:09:25]MH_I2C_Read... [02:09:25]Read from MH i2c: F0 09 00 [02:09:25]MH_I2C_Read... [02:09:25]Read from MH i2c: F0 09 00 47 13 00 D7 8E B6 67 7E 41 4F 65 47 [02:09:25]GetLastDocTimeStamp 1740013529 [02:09:25]current date 1740017367 [02:09:25]FM_GetShiftState [02:09:25]SAM_PROTO_GetShiftState [02:09:25]wFMCommunicate request_size=4 [02:09:25]MH_SAM_APDU [02:09:25]CAPDU: 80 13 01 00 [02:09:25]Write to MH i2c: E2 08 00 48 13 80 13 01 00 00 00 00 00 D8 [02:09:25]Write i2c OK [02:09:25]MH_I2C_Read... [02:09:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:09:25]Read from MH i2c: E2 [02:09:25]MH_I2C_Read... [02:09:25]Read from MH i2c: E2 0E 00 [02:09:25]MH_I2C_Read... [02:09:25]Read from MH i2c: E2 0E 00 48 13 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 2A [02:09:25]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [02:09:25]wFMCommunicate OK [02:09:25]SAM_PROTO_GetShiftState done [02:09:25]FM_GetShiftState done [02:09:25]opened in 1740011697 [02:09:25]opened+sec_in_day 1740098097 [02:09:25]quantity*price = 100042 [02:09:25]sum+1 = 100044 [02:09:25]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 СНО: Общий режим Чек 3 20.02.2025 02:09 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187202 ФПД: 264545219575731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T020927&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187202&fm=264545219575731&tin=02508201610067®Number=0000000000091857&sum=100000 [02:09:26]StoreToDocumentArchive [02:09:26]shift 648 fd 187202 [02:09:26]save to /storage/0648/doc_00187202 [02:09:26]save last doc name /storage/0648/doc_00187202 to /storage/kkm_last_doc_name [02:09:26]save OK [02:09:26]Clear old archive folders... [02:09:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:09:26]tlvbuf is 01F7F550 [02:09:26]SAM_PROTO_ClearQueue [02:09:26]wFMCommunicate request_size=4 [02:09:26]MH_SAM_APDU [02:09:26]CAPDU: 80 09 00 00 [02:09:26]Write to MH i2c: E2 08 00 55 13 80 09 00 00 00 00 00 00 DA [02:09:26]Write i2c OK [02:09:26]MH_I2C_Read... [02:09:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:09:26]Read from MH i2c: E2 [02:09:26]MH_I2C_Read... [02:09:26]Read from MH i2c: E2 03 00 [02:09:26]MH_I2C_Read... [02:09:26]Read from MH i2c: E2 03 00 55 13 00 90 00 DC [02:09:26]RAPDU: 90 00 [02:09:26]wFMCommunicate OK [02:09:26]SAM_PROTO_ClearQueue done [02:09:26]KKMCreateOFDPacket [02:09:26]OFDProtocolAddRootSTLVToBuf [02:09:26]FM_MakeSignedData [02:09:26]FM_MakeSignedData [02:09:26]SAM_PROTO_SignData [02:09:26]wFMCommunicate request_size=4 [02:09:26]MH_SAM_APDU [02:09:26]CAPDU: 80 0D 01 02 [02:09:26]Write to MH i2c: E2 08 00 56 13 80 0D 01 02 00 00 00 00 E2 [02:09:26]Write i2c OK [02:09:26]MH_I2C_Read... [02:09:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:09:26]Read from MH i2c: E2 [02:09:26]MH_I2C_Read... [02:09:26]Read from MH i2c: E2 03 00 [02:09:26]MH_I2C_Read... [02:09:26]Read from MH i2c: E2 03 00 56 13 00 90 00 DD [02:09:26]RAPDU: 90 00 [02:09:26]wFMCommunicate OK [02:09:26]wFMCommunicate request_size=255 [02:09:26]MH_SAM_APDU [02:09: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 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 03 00 00 00 F4 03 04 00 D7 8E B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 DB 02 00 35 04 06 00 F0 9A 3B D6 [02:09:26]Write to MH i2c: E2 02 01 57 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 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 03 00 00 00 F4 03 04 00 D7 8E B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 DB 02 00 35 04 06 00 F0 9A 3B D6 00 00 4C [02:09:26]Write i2c OK [02:09:26]MH_I2C_Read... [02:09:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:09:26]Read from MH i2c: E2 [02:09:26]MH_I2C_Read... [02:09:26]Read from MH i2c: E2 03 00 [02:09:26]MH_I2C_Read... [02:09:26]Read from MH i2c: E2 03 00 57 13 00 90 00 DE [02:09:26]RAPDU: 90 00 [02:09:26]wFMCommunicate OK [02:09:26]wFMCommunicate request_size=7 [02:09:26]MH_SAM_APDU [02:09:26]CAPDU: 80 0D 02 02 02 FF B3 [02:09:26]Write to MH i2c: E2 0A 00 58 13 80 0D 02 02 02 00 FF B3 00 00 9B [02:09:26]Write i2c OK [02:09:26]MH_I2C_Read... [02:09:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:09:26]Read from MH i2c: E2 [02:09:26]MH_I2C_Read... [02:09:27]Read from MH i2c: E2 03 00 [02:09:27]MH_I2C_Read... [02:09:27]Read from MH i2c: E2 03 00 58 13 00 90 00 DF [02:09:27]RAPDU: 90 00 [02:09:27]wFMCommunicate OK [02:09:27]wFMCommunicate request_size=4 [02:09:27]MH_SAM_APDU [02:09:27]CAPDU: 80 0D 03 02 [02:09:27]Write to MH i2c: E2 08 00 59 13 80 0D 03 02 00 00 00 00 E7 [02:09:27]Write i2c OK [02:09:27]MH_I2C_Read... [02:09:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:09:27]Read from MH i2c: E2 [02:09:27]MH_I2C_Read... [02:09:27]Read from MH i2c: E2 0B 00 [02:09:27]MH_I2C_Read... [02:09:27]Read from MH i2c: E2 0B 00 59 13 00 E6 24 23 E5 EB CC B0 25 90 00 86 [02:09:27]RAPDU: E6 24 23 E5 EB CC B0 25 90 00 [02:09:27]wFMCommunicate OK [02:09:27]SAM_PROTO_SignData done [02:09:27]FM_MakeSignedData done [02:09:27]CreateOFDProtocolMessage [02:09:27]wFMCommunicate request_size=4 [02:09:27]MH_SAM_APDU [02:09:27]CAPDU: 80 11 00 00 [02:09:27]Write to MH i2c: E2 08 00 5A 13 80 11 00 00 00 00 00 00 E7 [02:09:27]Write i2c OK [02:09:27]MH_I2C_Read... [02:09:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:09:27]Read from MH i2c: E2 [02:09:27]MH_I2C_Read... [02:09:27]Read from MH i2c: E2 17 00 [02:09:27]MH_I2C_Read... [02:09:27]Read from MH i2c: E2 17 00 5A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3A [02:09:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [02:09:27]wFMCommunicate OK [02:09:27]CreateOFDProtocolMessage done [02:09:27]OFDSenderStorePacket 187202 [02:09:27]StoreOFDPacket docnum=187202 [02:09: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 5C E0 04 01 91 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 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 03 00 00 00 F4 03 04 00 D7 8E B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 DB 02 00 35 04 06 00 F0 9A 3B D6 FF B3 E6 24 23 E5 EB CC B0 25 [02:09:27]CheckFolder [02:09:27]dirname=/storage/ofd_packets [02:09:27]CheckFolder done [02:09:27]ProducePacketName [02:09:27]name=ofd_packets/00187202 [02:09:27]NVStorageSaveData ofd_packets/00187202 [02:09:27]File name is /storage/ofd_packets/00187202 [02:09:27]Write 298 bytes [02:09:27]NVStorageSaveData done [02:09:27]OFDSenderStorePacket done [02:09:27]KKMCreateOFDPacket done [02:09:27]NVStorageSaveData kkm_last_timestamp [02:09:27]File name is /storage/kkm_last_timestamp [02:09:27]Write 4 bytes [02:09:27]NVStorageSaveData done [02:09:27]ExternCall_PrintAddStr [02:09:27]wPrintStart [02:09:27]Write to MH i2c: 01 00 00 5B 13 6E [02:09:27]Write i2c OK [02:09:27]MH_I2C_Read... [02:09:27]Read from MH i2c: 01 [02:09:27]MH_I2C_Read... [02:09:27]Read from MH i2c: 01 07 00 [02:09:27]MH_I2C_Read... [02:09:27]Read from MH i2c: 01 07 00 5B 13 00 00 00 00 00 FF 0F 83 [02:09:27]RasterBufferAndPrint [02:09:27]line Счет N : (1)412355 [02:09:27]line ИНН: 02508201610067 [02:09:27]line Контрольно-Кассовый Чек [02:09:27]line ПРОДАЖА [02:09:27]line ТРК (МРК, ГНК) : 41 [02:09:27]line Товар: 2710194210 [02:09:27]line ДТ-К-2 [02:09:27]line 13.780 * 72.60 [02:09:27]line = 1000.43 [02:09:27]line НДС 12% НСП 1% [02:09:27]line > о реализуемом товаре [02:09:27]line ОКРУГЛЕНИЕ: -0.43 [02:09:27]line ИТОГО: 1000.00 [02:09:27]line Внесено: 1000.00 [02:09:27]line СДАЧА: 0.00 [02:09:27]line НСП 1% : 8.85 [02:09:27]line НДС 12% : 106.24 [02:09:27]line Наличными: 1000.00 [02:09:27]line Безнал.: 0.00 [02:09:27]line Место: АЗС № 92 "Партнер Нефть" [02:09:27]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [02:09:27]line СНО: Общий режим [02:09:27]line Чек 3 20.02.2025 02:09 [02:09:27]line Смена: 648 ФФД: 1.0 [02:09:27]line ЗНМ: 0300000118 [02:09:27]line РНМ: 0000000000091857 [02:09:27]line Версия ККМ: 001 [02:09:27]line ФМ: 0000000000871826 [02:09:27]line ФД: 187202 [02:09:27]line ФПД: 264545219575731 [02:09:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T020927&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187202&fm=264545219575731&tin=02508201610067®Number=0000000000091857&sum=100000 [02:09:27]OFD Sender: Processing packet 187202 [packets to send 49, broken 48] [02:09:27]ProducePacketName [02:09:27]name=ofd_packets/00187202 [02:09:27]OFD Sender: To server: pG, [02:09:27]CommunicateWithHost lk.salyk.kg:30040 [02:09:27]ConnectInit lk.salyk.kg [02:09:27]written 0, free lines is 4095 [02:09:27]Connected sock=10 [02:09: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 5C E0 04 01 91 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 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 03 00 00 00 F4 03 04 00 D7 8E B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 DB 02 00 35 04 06 00 F0 9A 3B D6 FF B3 E6 24 23 E5 EB CC B0 25 [02:09: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 3B 87 47 00 8C 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 42 DB 02 00 F4 03 04 00 29 35 B6 67 B6 04 01 00 00 86 3A 4F 14 C1 31 C2 19 [02:09:27]CommunicateWithHost err = 0 [02:09:27]CheckOFDResponse [02:09:27]1017 (14) - 77093643461234 [02:09:27]1041 (16) - 0000000000871826 [02:09:27]1040 (4) - 187202 [02:09:27]1012 (4) - 19.02.2025 19:46 [02:09:27]1206 (1) - 0 [02:09:27]OFD Sender: Remove packet 187202 [02:09:27]ProducePacketName [02:09:27]name=ofd_packets/00187202 [02:09:27]NVStorageDeleteData [02:09:27]Write to MH i2c: 01 00 00 86 13 99 [02:09:27]Write i2c OK [02:09:27]MH_I2C_Read... [02:09:27]Read from MH i2c: 01 [02:09:27]MH_I2C_Read... [02:09:27]Read from MH i2c: 01 07 00 [02:09:27]MH_I2C_Read... [02:09:27]Read from MH i2c: 01 07 00 86 13 00 00 00 00 00 FD 0C A9 [02:09:27]RasterBufferAndPrint [02:09:27]line [02:09:27]line [02:09:27]line [02:09:27]line [02:09:27]line [02:09:27]written 0, free lines is 3331 [02:09:27]MH_Cut [02:09:27]Write to MH i2c: D1 01 00 8D 13 01 72 [02:09:27]Write i2c OK [02:09:27]MH_I2C_Read... [02:09:27]Read from MH i2c: D1 [02:09:27]MH_I2C_Read... [02:09:27]Read from MH i2c: D1 01 00 [02:09:27]MH_I2C_Read... [02:09:27]Read from MH i2c: D1 01 00 8D 13 00 71 [02:09:27]Write to MH i2c: 01 00 00 8E 13 A1 [02:09:27]Write i2c OK [02:09:27]MH_I2C_Read... [02:09:28]OFD Sender: No OFD packet to send [02:09:28]*** Cut start [02:09:28]*** Partial cut [02:09:28]*** CUTSNS_PIN = 1 [02:09:28]*** CUTSNS_PIN = 0 [02:09:28]*** Brake cut motor [02:09:29]Read from MH i2c: 01 [02:09:29]MH_I2C_Read... [02:09:29]*** Stop cut motor [02:09:29]*** Cut end [02:09:29]Read from MH i2c: 01 07 00 [02:09:29]MH_I2C_Read... [02:09:29]Read from MH i2c: 01 07 00 8E 13 00 00 00 00 00 FF 0F B6 [02:09:29]process_action close_receipt done [02:09:29]requested_data is exist [02:09:29]produce_requested_data [02:09:29]requested_item fm.sn is exist - process it [02:09:29]wFMCommunicate request_size=4 [02:09:29]MH_SAM_APDU [02:09:29]CAPDU: 80 11 00 00 [02:09:29]Write to MH i2c: E2 08 00 8F 13 80 11 00 00 00 00 00 00 1C [02:09:29]Write i2c OK [02:09:29]MH_I2C_Read... [02:09:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:09:29]Read from MH i2c: E2 [02:09:29]MH_I2C_Read... [02:09:29]Read from MH i2c: E2 17 00 [02:09:29]MH_I2C_Read... [02:09:29]Read from MH i2c: E2 17 00 8F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6F [02:09:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [02:09:29]wFMCommunicate OK [02:09:29]requested_item fd.num is exist - process it [02:09:29]SAM_PROTO_GetFieldsCounters [02:09:29]wFMCommunicate request_size=4 [02:09:29]MH_SAM_APDU [02:09:29]CAPDU: 80 13 00 00 [02:09:29]Write to MH i2c: E2 08 00 90 13 80 13 00 00 00 00 00 00 1F [02:09:29]Write i2c OK [02:09:29]MH_I2C_Read... [02:09:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:09:29]Read from MH i2c: E2 [02:09:29]MH_I2C_Read... [02:09:29]Read from MH i2c: E2 62 00 [02:09:29]MH_I2C_Read... [02:09:29]Read from MH i2c: E2 62 00 90 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 42 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [02:09: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 42 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:09:29]wFMCommunicate OK [02:09:29]SAM_PROTO_GetFieldsCounters done [02:09:29]requested_item shift.num is exist - process it [02:09:29]requested_item shift.opened is exist - process it [02:09:29]req_shift_opened [02:09:29]FM_GetShiftState [02:09:29]SAM_PROTO_GetShiftState [02:09:29]wFMCommunicate request_size=4 [02:09:29]MH_SAM_APDU [02:09:29]CAPDU: 80 13 01 00 [02:09:29]Write to MH i2c: E2 08 00 91 13 80 13 01 00 00 00 00 00 21 [02:09:29]Write i2c OK [02:09:29]MH_I2C_Read... [02:09:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:09:29]Read from MH i2c: E2 [02:09:29]MH_I2C_Read... [02:09:29]Read from MH i2c: E2 0E 00 [02:09:29]MH_I2C_Read... [02:09:29]Read from MH i2c: E2 0E 00 91 13 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 73 [02:09:29]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [02:09:29]wFMCommunicate OK [02:09:29]SAM_PROTO_GetShiftState done [02:09:29]FM_GetShiftState done [02:09:29]req_shift_opened done [02:09:29]requested_item shift.open_date is exist - process it [02:09:29]req_shift_open_date [02:09:29]req_shift_open_date done [02:09:29]produce_requested_data done [02:09:29]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187202,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [02:09:29]process_action_free close_receipt [02:09:29]json_value_free [02:09:29]json_value_free done [02:09:29]process_json_proto returns [02:09:29]Send response to host [02:09:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187202,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [02:09:29]free response buf [02:09:29]execute_script done [02:09:29]execute_script returns [02:09:29]free content buf [02:09:29]Sock 9.Close socket [02:09:29]Sock 9.Thread stoped [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:13]OFD Sender: No OFD packet to send [02:12:18]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12:28]OFD Sender: No OFD packet to send [02:12:33]OFD Sender: No OFD packet to send [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:39]OFD Sender: No OFD packet to send [02:20:44]OFD Sender: No OFD packet to send [02:20:49]OFD Sender: No OFD packet to send [02:20:54]OFD Sender: No OFD packet to send [02:20:59]OFD Sender: No OFD packet to send [02:21:04]OFD Sender: No OFD packet to send [02:21:09]OFD Sender: No OFD packet to send [02:21:14]OFD Sender: No OFD packet to send [02:21:19]OFD Sender: No OFD packet to send [02:21:24]OFD Sender: No OFD packet to send [02:21:29]OFD Sender: No OFD packet to send [02:21:34]OFD Sender: No OFD packet to send [02:21:39]OFD Sender: No OFD packet to send [02:21:44]OFD Sender: No OFD packet to send [02:21:49]OFD Sender: No OFD packet to send [02:21:54]OFD Sender: No OFD packet to send [02:21:59]OFD Sender: No OFD packet to send [02:22:04]OFD Sender: No OFD packet to send [02:22:09]OFD Sender: No OFD packet to send [02:22:14]OFD Sender: No OFD packet to send [02:22:19]OFD Sender: No OFD packet to send [02:22:24]OFD Sender: No OFD packet to send [02:22:29]OFD Sender: No OFD packet to send [02:22:34]OFD Sender: No OFD packet to send [02:22:39]OFD Sender: No OFD packet to send [02:22:44]OFD Sender: No OFD packet to send [02:22:49]OFD Sender: No OFD packet to send [02:22:54]OFD Sender: No OFD packet to send [02:22:59]OFD Sender: No OFD packet to send [02:23:04]OFD Sender: No OFD packet to send [02:23:09]OFD Sender: No OFD packet to send [02:23:14]OFD Sender: No OFD packet to send [02:23:19]OFD Sender: No OFD packet to send [02:23:24]OFD Sender: No OFD packet to send [02:23:29]OFD Sender: No OFD packet to send [02:23:34]OFD Sender: No OFD packet to send [02:23:39]OFD Sender: No OFD packet to send [02:23:44]OFD Sender: No OFD packet to send [02:23:49]OFD Sender: No OFD packet to send [02:23:54]OFD Sender: No OFD packet to send [02:23:59]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]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:22]accept exits with 7 [02:28:22]New connection [02:28:22]New thread 3066654052 created [02:28:22]Thread 3066510692 joined [02:28:22]Waiting for new connection... [02:28:22] Sock 7.Parse request [02:28:22]Sock 7.Check first char [02:28:22]Sock 7.First char is OK [02:28:22]request: POST /json_proto HTTP/1.0 [02:28:22]Method: POST [02:28:22]URL: /json_proto [02:28:22]Method is POST - this is cgi request [02:28:22]url: /json_proto [02:28:22]query_string will be loaded in cgi processing [02:28:22]execute_cgi json_proto POST (null) [02:28:22]execute_cgi path=json_proto method=POST [02:28:22]POST find Content-Length [02:28:22]Host: 172.17.46.131:8080 [02:28:22]Content-Length: 677 [02:28:22]Content-Type: application/json [02:28:22] [02:28:22]POST finish read [02:28:22]Found Content-Length = 677 [02:28:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412356", "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" ] } } [02:28:22]execute_script... [02:28:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412356", "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" ] } } [02:28:22]POST & json_proto [02:28:22]process_json_proto [02:28:22]json parsed OK: [02:28:22]protocol is kg_v1.0 [02:28:22]action value=close_receipt [02:28:22]process_action close_receipt [02:28:22]cmd_close_receipt [02:28:22]MH_GetDate [02:28:22]Write to MH i2c: F0 00 00 92 13 94 [02:28:22]Write i2c OK [02:28:22]MH_I2C_Read... [02:28:22]Read from MH i2c: F0 [02:28:22]MH_I2C_Read... [02:28:22]Read from MH i2c: F0 09 00 [02:28:22]MH_I2C_Read... [02:28:22]Read from MH i2c: F0 09 00 92 13 00 49 93 B6 67 7E 41 4F 65 09 [02:28:22]GetLastDocTimeStamp 1740017367 [02:28:22]current date 1740018505 [02:28:22]FM_GetShiftState [02:28:22]SAM_PROTO_GetShiftState [02:28:22]wFMCommunicate request_size=4 [02:28:22]MH_SAM_APDU [02:28:22]CAPDU: 80 13 01 00 [02:28:22]Write to MH i2c: E2 08 00 93 13 80 13 01 00 00 00 00 00 23 [02:28:22]Write i2c OK [02:28:22]MH_I2C_Read... [02:28:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:28:22]Read from MH i2c: E2 [02:28:22]MH_I2C_Read... [02:28:22]Read from MH i2c: E2 0E 00 [02:28:22]MH_I2C_Read... [02:28:22]Read from MH i2c: E2 0E 00 93 13 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 75 [02:28:22]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [02:28:22]wFMCommunicate OK [02:28:22]SAM_PROTO_GetShiftState done [02:28:22]FM_GetShiftState done [02:28:22]opened in 1740011697 [02:28:22]opened+sec_in_day 1740098097 [02:28:22]quantity*price = 50011 [02:28:22]sum+1 = 50013 [02:28:22]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 СНО: Общий режим Чек 4 20.02.2025 02:28 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187203 ФПД: 101387583872895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T022825&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187203&fm=101387583872895&tin=02508201610067®Number=0000000000091857&sum=50000 [02:28:24]StoreToDocumentArchive [02:28:24]shift 648 fd 187203 [02:28:24]save to /storage/0648/doc_00187203 [02:28:24]save last doc name /storage/0648/doc_00187203 to /storage/kkm_last_doc_name [02:28:24]save OK [02:28:24]Clear old archive folders... [02:28:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:28:24]tlvbuf is 01F59B70 [02:28:24]SAM_PROTO_ClearQueue [02:28:24]wFMCommunicate request_size=4 [02:28:24]MH_SAM_APDU [02:28:24]CAPDU: 80 09 00 00 [02:28:24]Write to MH i2c: E2 08 00 A0 13 80 09 00 00 00 00 00 00 25 [02:28:24]Write i2c OK [02:28:24]MH_I2C_Read... [02:28:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:28:24]Read from MH i2c: E2 [02:28:24]MH_I2C_Read... [02:28:24]Read from MH i2c: E2 03 00 [02:28:24]MH_I2C_Read... [02:28:24]Read from MH i2c: E2 03 00 A0 13 00 90 00 27 [02:28:24]RAPDU: 90 00 [02:28:24]wFMCommunicate OK [02:28:24]SAM_PROTO_ClearQueue done [02:28:24]KKMCreateOFDPacket [02:28:24]OFDProtocolAddRootSTLVToBuf [02:28:24]FM_MakeSignedData [02:28:24]FM_MakeSignedData [02:28:24]SAM_PROTO_SignData [02:28:24]wFMCommunicate request_size=4 [02:28:24]MH_SAM_APDU [02:28:24]CAPDU: 80 0D 01 02 [02:28:24]Write to MH i2c: E2 08 00 A1 13 80 0D 01 02 00 00 00 00 2D [02:28:24]Write i2c OK [02:28:24]MH_I2C_Read... [02:28:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:28:24]Read from MH i2c: E2 [02:28:24]MH_I2C_Read... [02:28:24]Read from MH i2c: E2 03 00 [02:28:24]MH_I2C_Read... [02:28:24]Read from MH i2c: E2 03 00 A1 13 00 90 00 28 [02:28:24]RAPDU: 90 00 [02:28:24]wFMCommunicate OK [02:28:24]wFMCommunicate request_size=255 [02:28:24]MH_SAM_APDU [02:28:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 04 00 00 00 F4 03 04 00 49 93 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 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 DB 02 00 35 04 06 00 5C [02:28:24]Write to MH i2c: E2 02 01 A2 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 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 04 00 00 00 F4 03 04 00 49 93 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 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 DB 02 00 35 04 06 00 5C 00 00 C9 [02:28:24]Write i2c OK [02:28:24]MH_I2C_Read... [02:28:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:28:24]Read from MH i2c: E2 [02:28:24]MH_I2C_Read... [02:28:24]Read from MH i2c: E2 03 00 [02:28:24]MH_I2C_Read... [02:28:24]Read from MH i2c: E2 03 00 A2 13 00 90 00 29 [02:28:24]RAPDU: 90 00 [02:28:24]wFMCommunicate OK [02:28:24]wFMCommunicate request_size=10 [02:28:24]MH_SAM_APDU [02:28:24]CAPDU: 80 0D 02 02 05 36 22 EB DF 7F [02:28:24]Write to MH i2c: E2 0D 00 A3 13 80 0D 02 02 05 00 36 22 EB DF 7F 00 00 DB [02:28:24]Write i2c OK [02:28:24]MH_I2C_Read... [02:28:24]OFD Sender: No OFD packet to send [02:28:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:28:24]Read from MH i2c: E2 [02:28:24]MH_I2C_Read... [02:28:24]Read from MH i2c: E2 03 00 [02:28:24]MH_I2C_Read... [02:28:24]Read from MH i2c: E2 03 00 A3 13 00 90 00 2A [02:28:24]RAPDU: 90 00 [02:28:24]wFMCommunicate OK [02:28:24]wFMCommunicate request_size=4 [02:28:24]MH_SAM_APDU [02:28:24]CAPDU: 80 0D 03 02 [02:28:24]Write to MH i2c: E2 08 00 A4 13 80 0D 03 02 00 00 00 00 32 [02:28:24]Write i2c OK [02:28:24]MH_I2C_Read... [02:28:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:28:24]Read from MH i2c: E2 [02:28:24]MH_I2C_Read... [02:28:24]Read from MH i2c: E2 0B 00 [02:28:24]MH_I2C_Read... [02:28:24]Read from MH i2c: E2 0B 00 A4 13 00 5C CC 27 33 69 CA 3F 25 90 00 4C [02:28:24]RAPDU: 5C CC 27 33 69 CA 3F 25 90 00 [02:28:24]wFMCommunicate OK [02:28:24]SAM_PROTO_SignData done [02:28:24]FM_MakeSignedData done [02:28:24]CreateOFDProtocolMessage [02:28:24]wFMCommunicate request_size=4 [02:28:24]MH_SAM_APDU [02:28:24]CAPDU: 80 11 00 00 [02:28:24]Write to MH i2c: E2 08 00 A5 13 80 11 00 00 00 00 00 00 32 [02:28:24]Write i2c OK [02:28:24]MH_I2C_Read... [02:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:28:24]Read from MH i2c: E2 [02:28:24]MH_I2C_Read... [02:28:24]Read from MH i2c: E2 17 00 [02:28:24]MH_I2C_Read... [02:28:24]Read from MH i2c: E2 17 00 A5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 85 [02:28: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:28:24]wFMCommunicate OK [02:28:24]CreateOFDProtocolMessage done [02:28:24]OFDSenderStorePacket 187203 [02:28:24]StoreOFDPacket docnum=187203 [02:28: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 22 D6 07 01 13 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 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 04 00 00 00 F4 03 04 00 49 93 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 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 DB 02 00 35 04 06 00 5C 36 22 EB DF 7F 5C CC 27 33 69 CA 3F 25 [02:28:24]CheckFolder [02:28:24]dirname=/storage/ofd_packets [02:28:24]CheckFolder done [02:28:24]ProducePacketName [02:28:24]name=ofd_packets/00187203 [02:28:24]NVStorageSaveData ofd_packets/00187203 [02:28:24]File name is /storage/ofd_packets/00187203 [02:28:24]Write 301 bytes [02:28:24]NVStorageSaveData done [02:28:24]OFDSenderStorePacket done [02:28:24]KKMCreateOFDPacket done [02:28:24]NVStorageSaveData kkm_last_timestamp [02:28:24]File name is /storage/kkm_last_timestamp [02:28:24]Write 4 bytes [02:28:24]NVStorageSaveData done [02:28:24]ExternCall_PrintAddStr [02:28:24]wPrintStart [02:28:24]Write to MH i2c: 01 00 00 A6 13 B9 [02:28:24]Write i2c OK [02:28:24]MH_I2C_Read... [02:28:24]Read from MH i2c: 01 [02:28:24]MH_I2C_Read... [02:28:24]Read from MH i2c: 01 07 00 [02:28:24]MH_I2C_Read... [02:28:24]Read from MH i2c: 01 07 00 A6 13 00 00 00 00 00 FF 0F CE [02:28:24]RasterBufferAndPrint [02:28:24]line Счет N : (1)412356 [02:28:24]line ИНН: 02508201610067 [02:28:24]line Контрольно-Кассовый Чек [02:28:24]line ПРОДАЖА [02:28:24]line ТРК (МРК, ГНК) : 32 [02:28:24]line Товар: 2710124130 [02:28:24]line Аи-92-К-2 [02:28:24]line 7.790 * 64.20 [02:28:24]line = 500.12 [02:28:24]line НДС 12% НСП 1% [02:28:24]line > о реализуемом товаре [02:28:24]line ОКРУГЛЕНИЕ: -0.12 [02:28:24]line ИТОГО: 500.00 [02:28:24]line Внесено: 500.00 [02:28:24]line СДАЧА: 0.00 [02:28:24]line НСП 1% : 4.43 [02:28:24]line НДС 12% : 53.11 [02:28:24]line Наличными: 500.00 [02:28:24]line Безнал.: 0.00 [02:28:24]line Место: АЗС № 92 "Партнер Нефть" [02:28:24]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [02:28:24]line СНО: Общий режим [02:28:24]line Чек 4 20.02.2025 02:28 [02:28:24]line Смена: 648 ФФД: 1.0 [02:28:24]line ЗНМ: 0300000118 [02:28:24]line РНМ: 0000000000091857 [02:28:24]line Версия ККМ: 001 [02:28:24]line ФМ: 0000000000871826 [02:28:24]line ФД: 187203 [02:28:24]line ФПД: 101387583872895 [02:28:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T022825&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187203&fm=101387583872895&tin=02508201610067®Number=0000000000091857&sum=50000 [02:28:24]written 0, free lines is 4095 [02:28:24]OFD Sender: Processing packet 187203 [packets to send 49, broken 48] [02:28:24]ProducePacketName [02:28:24]name=ofd_packets/00187203 [02:28:24]OFD Sender: To server: pG, [02:28:24]CommunicateWithHost lk.salyk.kg:30040 [02:28:24]ConnectInit lk.salyk.kg [02:28:24]Connected sock=10 [02:28:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 22 D6 07 01 13 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 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 04 00 00 00 F4 03 04 00 49 93 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 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 DB 02 00 35 04 06 00 5C 36 22 EB DF 7F 5C CC 27 33 69 CA 3F 25 [02:28:25]Write to MH i2c: 01 00 00 D1 13 E4 [02:28:25]Write i2c OK [02:28:25]MH_I2C_Read... [02:28:25]Read from MH i2c: 01 [02:28:25]MH_I2C_Read... [02:28:25]Read from MH i2c: 01 07 00 [02:28:25]MH_I2C_Read... [02:28:25]Read from MH i2c: 01 07 00 D1 13 00 00 00 00 00 F4 0C EB [02:28:25]RasterBufferAndPrint [02:28:25]line [02:28:25]line [02:28:25]line [02:28:25]line [02:28:25]line [02:28:25]written 0, free lines is 3323 [02:28:25]MH_Cut [02:28:25]Write to MH i2c: D1 01 00 D8 13 01 BD [02:28:25]Write i2c OK [02:28:25]MH_I2C_Read... [02:28:25]Read from MH i2c: D1 [02:28:25]MH_I2C_Read... [02:28:25]Read from MH i2c: D1 01 00 [02:28:25]MH_I2C_Read... [02:28:25]Read from MH i2c: D1 01 00 D8 13 00 BC [02:28:25]Write to MH i2c: 01 00 00 D9 13 EC [02:28:25]Write i2c OK [02:28:25]MH_I2C_Read... [02:28:25]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 43 47 00 6F 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 43 DB 02 00 F4 03 04 00 9B 39 B6 67 B6 04 01 00 00 C0 3F 9D 1F 7A 20 AB A5 [02:28:25]CommunicateWithHost err = 0 [02:28:25]CheckOFDResponse [02:28:25]1017 (14) - 77093643461234 [02:28:25]1041 (16) - 0000000000871826 [02:28:25]1040 (4) - 187203 [02:28:25]1012 (4) - 19.02.2025 20:05 [02:28:25]1206 (1) - 0 [02:28:25]OFD Sender: Remove packet 187203 [02:28:25]ProducePacketName [02:28:25]name=ofd_packets/00187203 [02:28:25]NVStorageDeleteData [02:28:25]OFD Sender: No OFD packet to send [02:28:25]*** Cut start [02:28:25]*** Partial cut [02:28:25]*** CUTSNS_PIN = 1 [02:28:25]*** CUTSNS_PIN = 0 [02:28:26]*** Brake cut motor [02:28:26]Read from MH i2c: 01 [02:28:26]MH_I2C_Read... [02:28:26]*** Stop cut motor [02:28:26]*** Cut end [02:28:26]Read from MH i2c: 01 07 00 [02:28:26]MH_I2C_Read... [02:28:26]Read from MH i2c: 01 07 00 D9 13 00 00 00 00 00 FF 0F 01 [02:28:26]process_action close_receipt done [02:28:26]requested_data is exist [02:28:26]produce_requested_data [02:28:26]requested_item fm.sn is exist - process it [02:28:26]wFMCommunicate request_size=4 [02:28:26]MH_SAM_APDU [02:28:26]CAPDU: 80 11 00 00 [02:28:26]Write to MH i2c: E2 08 00 DA 13 80 11 00 00 00 00 00 00 67 [02:28:26]Write i2c OK [02:28:26]MH_I2C_Read... [02:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:28:26]Read from MH i2c: E2 [02:28:26]MH_I2C_Read... [02:28:26]Read from MH i2c: E2 17 00 [02:28:26]MH_I2C_Read... [02:28:26]Read from MH i2c: E2 17 00 DA 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BA [02:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [02:28:26]wFMCommunicate OK [02:28:26]requested_item fd.num is exist - process it [02:28:26]SAM_PROTO_GetFieldsCounters [02:28:26]wFMCommunicate request_size=4 [02:28:26]MH_SAM_APDU [02:28:26]CAPDU: 80 13 00 00 [02:28:26]Write to MH i2c: E2 08 00 DB 13 80 13 00 00 00 00 00 00 6A [02:28:26]Write i2c OK [02:28:26]MH_I2C_Read... [02:28:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:28:26]Read from MH i2c: E2 [02:28:26]MH_I2C_Read... [02:28:26]Read from MH i2c: E2 62 00 [02:28:26]MH_I2C_Read... [02:28:26]Read from MH i2c: E2 62 00 DB 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 43 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [02:28:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:28:26]wFMCommunicate OK [02:28:26]SAM_PROTO_GetFieldsCounters done [02:28:26]requested_item shift.num is exist - process it [02:28:26]requested_item shift.opened is exist - process it [02:28:26]req_shift_opened [02:28:26]FM_GetShiftState [02:28:26]SAM_PROTO_GetShiftState [02:28:26]wFMCommunicate request_size=4 [02:28:26]MH_SAM_APDU [02:28:26]CAPDU: 80 13 01 00 [02:28:26]Write to MH i2c: E2 08 00 DC 13 80 13 01 00 00 00 00 00 6C [02:28:26]Write i2c OK [02:28:26]MH_I2C_Read... [02:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:28:26]Read from MH i2c: E2 [02:28:26]MH_I2C_Read... [02:28:26]Read from MH i2c: E2 0E 00 [02:28:26]MH_I2C_Read... [02:28:26]Read from MH i2c: E2 0E 00 DC 13 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 BE [02:28:26]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [02:28:26]wFMCommunicate OK [02:28:26]SAM_PROTO_GetShiftState done [02:28:26]FM_GetShiftState done [02:28:26]req_shift_opened done [02:28:26]requested_item shift.open_date is exist - process it [02:28:26]req_shift_open_date [02:28:26]req_shift_open_date done [02:28:26]produce_requested_data done [02:28:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187203,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [02:28:26]process_action_free close_receipt [02:28:26]json_value_free [02:28:26]json_value_free done [02:28:26]process_json_proto returns [02:28:26]Send response to host [02:28:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187203,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [02:28:26]free response buf [02:28:26]execute_script done [02:28:26]execute_script returns [02:28:26]free content buf [02:28:26]Sock 7.Close socket [02:28:26]Sock 7.Thread stoped [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:55]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]OFD Sender: No OFD packet to send [02:32:10]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:20]OFD Sender: No OFD packet to send [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34:05]OFD Sender: No OFD packet to send [02:34:10]OFD Sender: No OFD packet to send [02:34:15]OFD Sender: No OFD packet to send [02:34:20]OFD Sender: No OFD packet to send [02:34:25]OFD Sender: No OFD packet to send [02:34:30]OFD Sender: No OFD packet to send [02:34:35]OFD Sender: No OFD packet to send [02:34:40]OFD Sender: No OFD packet to send [02:34:45]OFD Sender: No OFD packet to send [02:34:50]OFD Sender: No OFD packet to send [02:34:55]OFD Sender: No OFD packet to send [02:35:00]OFD Sender: No OFD packet to send [02:35:05]OFD Sender: No OFD packet to send [02:35:10]OFD Sender: No OFD packet to send [02:35:15]OFD Sender: No OFD packet to send [02:35:20]OFD Sender: No OFD packet to send [02:35:26]OFD Sender: No OFD packet to send [02:35:31]OFD Sender: No OFD packet to send [02:35:36]OFD Sender: No OFD packet to send [02:35:41]OFD Sender: No OFD packet to send [02:35:46]OFD Sender: No OFD packet to send [02:35:51]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:01]OFD Sender: No OFD packet to send [02:36:06]OFD Sender: No OFD packet to send [02:36:11]OFD Sender: No OFD packet to send [02:36:16]OFD Sender: No OFD packet to send [02:36:21]OFD Sender: No OFD packet to send [02:36:26]OFD Sender: No OFD packet to send [02:36:31]OFD Sender: No OFD packet to send [02:36:36]OFD Sender: No OFD packet to send [02:36:41]OFD Sender: No OFD packet to send [02:36:46]OFD Sender: No OFD packet to send [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:06]OFD Sender: No OFD packet to send [02:37:11]OFD Sender: No OFD packet to send [02:37:16]OFD Sender: No OFD packet to send [02:37:21]OFD Sender: No OFD packet to send [02:37:26]OFD Sender: No OFD packet to send [02:37:31]OFD Sender: No OFD packet to send [02:37:36]OFD Sender: No OFD packet to send [02:37:41]OFD Sender: No OFD packet to send [02:37:46]OFD Sender: No OFD packet to send [02:37:51]OFD Sender: No OFD packet to send [02:37:56]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:21]OFD Sender: No OFD packet to send [02:38:26]OFD Sender: No OFD packet to send [02:38:31]OFD Sender: No OFD packet to send [02:38:36]OFD Sender: No OFD packet to send [02:38:41]OFD Sender: No OFD packet to send [02:38:46]OFD Sender: No OFD packet to send [02:38:51]OFD Sender: No OFD packet to send [02:38:56]OFD Sender: No OFD packet to send [02:39:01]OFD Sender: No OFD packet to send [02:39:06]OFD Sender: No OFD packet to send [02:39:11]OFD Sender: No OFD packet to send [02:39:16]OFD Sender: No OFD packet to send [02:39:21]OFD Sender: No OFD packet to send [02:39:26]OFD Sender: No OFD packet to send [02:39:31]OFD Sender: No OFD packet to send [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:49]accept exits with 9 [02:42:49]New connection [02:42:49]New thread 3066510692 created [02:42:49]Thread 3066654052 joined [02:42:49]Waiting for new connection... [02:42:49] Sock 9.Parse request [02:42:49]Sock 9.Check first char [02:42:49]Sock 9.First char is OK [02:42:49]request: POST /json_proto HTTP/1.0 [02:42:49]Method: POST [02:42:49]URL: /json_proto [02:42:49]Method is POST - this is cgi request [02:42:49]url: /json_proto [02:42:49]query_string will be loaded in cgi processing [02:42:49]execute_cgi json_proto POST (null) [02:42:49]execute_cgi path=json_proto method=POST [02:42:49]POST find Content-Length [02:42:49]Host: 172.17.46.131:8080 [02:42:49]Content-Length: 678 [02:42:49]Content-Type: application/json [02:42:49] [02:42:49]POST finish read [02:42:49]Found Content-Length = 678 [02:42:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412357", "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" ] } } [02:42:49]execute_script... [02:42:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412357", "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" ] } } [02:42:49]POST & json_proto [02:42:49]process_json_proto [02:42:49]json parsed OK: [02:42:49]protocol is kg_v1.0 [02:42:49]action value=close_receipt [02:42:49]process_action close_receipt [02:42:49]cmd_close_receipt [02:42:49]MH_GetDate [02:42:49]Write to MH i2c: F0 00 00 DD 13 DF [02:42:49]Write i2c OK [02:42:49]MH_I2C_Read... [02:42:49]Read from MH i2c: F0 [02:42:49]MH_I2C_Read... [02:42:49]Read from MH i2c: F0 09 00 [02:42:49]MH_I2C_Read... [02:42:49]Read from MH i2c: F0 09 00 DD 13 00 AB 96 B6 67 7E 41 4F 65 B9 [02:42:49]GetLastDocTimeStamp 1740018505 [02:42:49]current date 1740019371 [02:42:49]FM_GetShiftState [02:42:49]SAM_PROTO_GetShiftState [02:42:49]wFMCommunicate request_size=4 [02:42:49]MH_SAM_APDU [02:42:49]CAPDU: 80 13 01 00 [02:42:49]Write to MH i2c: E2 08 00 DE 13 80 13 01 00 00 00 00 00 6E [02:42:49]Write i2c OK [02:42:49]MH_I2C_Read... [02:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:42:49]Read from MH i2c: E2 [02:42:49]MH_I2C_Read... [02:42:49]Read from MH i2c: E2 0E 00 [02:42:49]MH_I2C_Read... [02:42:49]Read from MH i2c: E2 0E 00 DE 13 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 C0 [02:42:49]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [02:42:49]wFMCommunicate OK [02:42:49]SAM_PROTO_GetShiftState done [02:42:49]FM_GetShiftState done [02:42:49]opened in 1740011697 [02:42:49]opened+sec_in_day 1740098097 [02:42:49]quantity*price = 100042 [02:42:49]sum+1 = 100044 [02:42:49]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 СНО: Общий режим Чек 5 20.02.2025 02:42 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 187204 ФПД: 127385240915373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T024251&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187204&fm=127385240915373&tin=02508201610067®Number=0000000000091857&sum=100000 [02:42:50]StoreToDocumentArchive [02:42:50]shift 648 fd 187204 [02:42:50]save to /storage/0648/doc_00187204 [02:42:50]save last doc name /storage/0648/doc_00187204 to /storage/kkm_last_doc_name [02:42:50]save OK [02:42:50]Clear old archive folders... [02:42:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:42:50]tlvbuf is 01FAC860 [02:42:50]SAM_PROTO_ClearQueue [02:42:50]wFMCommunicate request_size=4 [02:42:50]MH_SAM_APDU [02:42:50]CAPDU: 80 09 00 00 [02:42:50]Write to MH i2c: E2 08 00 EB 13 80 09 00 00 00 00 00 00 70 [02:42:50]Write i2c OK [02:42:50]MH_I2C_Read... [02:42:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:42:50]Read from MH i2c: E2 [02:42:50]MH_I2C_Read... [02:42:50]Read from MH i2c: E2 03 00 [02:42:50]MH_I2C_Read... [02:42:50]Read from MH i2c: E2 03 00 EB 13 00 90 00 72 [02:42:50]RAPDU: 90 00 [02:42:50]wFMCommunicate OK [02:42:50]SAM_PROTO_ClearQueue done [02:42:50]KKMCreateOFDPacket [02:42:50]OFDProtocolAddRootSTLVToBuf [02:42:50]FM_MakeSignedData [02:42:50]FM_MakeSignedData [02:42:50]SAM_PROTO_SignData [02:42:50]wFMCommunicate request_size=4 [02:42:50]MH_SAM_APDU [02:42:50]CAPDU: 80 0D 01 02 [02:42:50]Write to MH i2c: E2 08 00 EC 13 80 0D 01 02 00 00 00 00 78 [02:42:50]Write i2c OK [02:42:50]MH_I2C_Read... [02:42:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:42:50]Read from MH i2c: E2 [02:42:50]MH_I2C_Read... [02:42:50]Read from MH i2c: E2 03 00 [02:42:50]MH_I2C_Read... [02:42:50]Read from MH i2c: E2 03 00 EC 13 00 90 00 73 [02:42:50]RAPDU: 90 00 [02:42:50]wFMCommunicate OK [02:42:50]wFMCommunicate request_size=255 [02:42:50]MH_SAM_APDU [02:42:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 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 05 00 00 00 F4 03 04 00 AB 96 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 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 DB 02 00 35 04 06 00 73 DB 30 08 [02:42:50]Write to MH i2c: E2 02 01 ED 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 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 05 00 00 00 F4 03 04 00 AB 96 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 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 DB 02 00 35 04 06 00 73 DB 30 08 00 00 B0 [02:42:50]Write i2c OK [02:42:50]MH_I2C_Read... [02:42:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:42:51]Read from MH i2c: E2 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: E2 03 00 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: E2 03 00 ED 13 00 90 00 74 [02:42:51]RAPDU: 90 00 [02:42:51]wFMCommunicate OK [02:42:51]wFMCommunicate request_size=7 [02:42:51]MH_SAM_APDU [02:42:51]CAPDU: 80 0D 02 02 02 CD AD [02:42:51]Write to MH i2c: E2 0A 00 EE 13 80 0D 02 02 02 00 CD AD 00 00 F9 [02:42:51]Write i2c OK [02:42:51]MH_I2C_Read... [02:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:42:51]Read from MH i2c: E2 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: E2 03 00 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: E2 03 00 EE 13 00 90 00 75 [02:42:51]RAPDU: 90 00 [02:42:51]wFMCommunicate OK [02:42:51]wFMCommunicate request_size=4 [02:42:51]MH_SAM_APDU [02:42:51]CAPDU: 80 0D 03 02 [02:42:51]Write to MH i2c: E2 08 00 EF 13 80 0D 03 02 00 00 00 00 7D [02:42:51]Write i2c OK [02:42:51]MH_I2C_Read... [02:42:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:42:51]Read from MH i2c: E2 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: E2 0B 00 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: E2 0B 00 EF 13 00 5E 1B 02 D7 66 5C 6B 70 90 00 6D [02:42:51]RAPDU: 5E 1B 02 D7 66 5C 6B 70 90 00 [02:42:51]wFMCommunicate OK [02:42:51]SAM_PROTO_SignData done [02:42:51]FM_MakeSignedData done [02:42:51]CreateOFDProtocolMessage [02:42:51]wFMCommunicate request_size=4 [02:42:51]MH_SAM_APDU [02:42:51]CAPDU: 80 11 00 00 [02:42:51]Write to MH i2c: E2 08 00 F0 13 80 11 00 00 00 00 00 00 7D [02:42:51]Write i2c OK [02:42:51]MH_I2C_Read... [02:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:42:51]Read from MH i2c: E2 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: E2 17 00 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: E2 17 00 F0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D0 [02: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 [02:42:51]wFMCommunicate OK [02:42:51]CreateOFDProtocolMessage done [02:42:51]OFDSenderStorePacket 187204 [02:42:51]StoreOFDPacket docnum=187204 [02:42: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 52 81 04 01 A3 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 05 00 00 00 F4 03 04 00 AB 96 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 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 DB 02 00 35 04 06 00 73 DB 30 08 CD AD 5E 1B 02 D7 66 5C 6B 70 [02:42:51]CheckFolder [02:42:51]dirname=/storage/ofd_packets [02:42:51]CheckFolder done [02:42:51]ProducePacketName [02:42:51]name=ofd_packets/00187204 [02:42:51]NVStorageSaveData ofd_packets/00187204 [02:42:51]File name is /storage/ofd_packets/00187204 [02:42:51]Write 298 bytes [02:42:51]NVStorageSaveData done [02:42:51]OFDSenderStorePacket done [02:42:51]KKMCreateOFDPacket done [02:42:51]NVStorageSaveData kkm_last_timestamp [02:42:51]File name is /storage/kkm_last_timestamp [02:42:51]Write 4 bytes [02:42:51]NVStorageSaveData done [02:42:51]ExternCall_PrintAddStr [02:42:51]wPrintStart [02:42:51]Write to MH i2c: 01 00 00 F1 13 04 [02:42:51]Write i2c OK [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: 01 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: 01 07 00 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: 01 07 00 F1 13 00 00 00 00 00 FF 0F 19 [02:42:51]RasterBufferAndPrint [02:42:51]line Счет N : (1)412357 [02:42:51]line ИНН: 02508201610067 [02:42:51]line Контрольно-Кассовый Чек [02:42:51]line ПРОДАЖА [02:42:51]line ТРК (МРК, ГНК) : 5 [02:42:51]line Товар: 2710194210 [02:42:51]line ДТ-К-5 [02:42:51]line 13.780 * 72.60 [02:42:51]line = 1000.43 [02:42:51]line НДС 12% НСП 1% [02:42:51]line > о реализуемом товаре [02:42:51]line ОКРУГЛЕНИЕ: -0.43 [02:42:51]line ИТОГО: 1000.00 [02:42:51]line Внесено: 1000.00 [02:42:51]line СДАЧА: 0.00 [02:42:51]line НСП 1% : 8.85 [02:42:51]line НДС 12% : 106.24 [02:42:51]line Наличными: 1000.00 [02:42:51]line Безнал.: 0.00 [02:42:51]line Место: АЗС № 92 "Партнер Нефть" [02:42:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [02:42:51]line СНО: Общий режим [02:42:51]line Чек 5 20.02.2025 02:42 [02:42:51]line Смена: 648 ФФД: 1.0 [02:42:51]line ЗНМ: 0300000118 [02:42:51]line РНМ: 0000000000091857 [02:42:51]line Версия ККМ: 001 [02:42:51]line ФМ: 0000000000871826 [02:42:51]line ФД: 187204 [02:42:51]line ФПД: 127385240915373 [02:42:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T024251&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187204&fm=127385240915373&tin=02508201610067®Number=0000000000091857&sum=100000 [02:42:51]written 0, free lines is 4095 [02:42:51]OFD Sender: Processing packet 187204 [packets to send 49, broken 48] [02:42:51]ProducePacketName [02:42:51]name=ofd_packets/00187204 [02:42:51]OFD Sender: To server: pG, [02:42:51]CommunicateWithHost lk.salyk.kg:30040 [02:42:51]ConnectInit lk.salyk.kg [02:42:51]Connected sock=10 [02:42:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 52 81 04 01 A3 6C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 05 00 00 00 F4 03 04 00 AB 96 B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 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 DB 02 00 35 04 06 00 73 DB 30 08 CD AD 5E 1B 02 D7 66 5C 6B 70 [02:42:51]Write to MH i2c: 01 00 00 1C 14 30 [02:42:51]Write i2c OK [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: 01 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: 01 07 00 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: 01 07 00 1C 14 00 00 00 00 00 EE 0C 31 [02:42:51]RasterBufferAndPrint [02:42:51]line [02:42:51]line [02:42:51]line [02:42:51]line [02:42:51]line [02:42:51]written 0, free lines is 3316 [02:42:51]MH_Cut [02:42:51]Write to MH i2c: D1 01 00 23 14 01 09 [02:42:51]Write i2c OK [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: D1 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: D1 01 00 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: D1 01 00 23 14 00 08 [02:42:51]Write to MH i2c: 01 00 00 24 14 38 [02:42:51]Write i2c OK [02:42:51]MH_I2C_Read... [02:42: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 92 8D 47 00 A1 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 44 DB 02 00 F4 03 04 00 FD 3C B6 67 B6 04 01 00 00 1B 82 28 C8 51 83 E6 FD [02:42:51]CommunicateWithHost err = 0 [02:42:51]CheckOFDResponse [02:42:51]1017 (14) - 77093643461234 [02:42:51]1041 (16) - 0000000000871826 [02:42:51]1040 (4) - 187204 [02:42:51]1012 (4) - 19.02.2025 20:20 [02:42:51]1206 (1) - 0 [02:42:51]OFD Sender: Remove packet 187204 [02:42:51]ProducePacketName [02:42:51]name=ofd_packets/00187204 [02:42:51]NVStorageDeleteData [02:42:52]OFD Sender: No OFD packet to send [02:42:52]*** Cut start [02:42:52]*** Partial cut [02:42:52]*** CUTSNS_PIN = 1 [02:42:52]*** CUTSNS_PIN = 0 [02:42:52]*** Brake cut motor [02:42:53]Read from MH i2c: 01 [02:42:53]MH_I2C_Read... [02:42:53]*** Stop cut motor [02:42:53]*** Cut end [02:42:53]Read from MH i2c: 01 07 00 [02:42:53]MH_I2C_Read... [02:42:53]Read from MH i2c: 01 07 00 24 14 00 00 00 00 00 FF 0F 4D [02:42:53]process_action close_receipt done [02:42:53]requested_data is exist [02:42:53]produce_requested_data [02:42:53]requested_item fm.sn is exist - process it [02:42:53]wFMCommunicate request_size=4 [02:42:53]MH_SAM_APDU [02:42:53]CAPDU: 80 11 00 00 [02:42:53]Write to MH i2c: E2 08 00 25 14 80 11 00 00 00 00 00 00 B3 [02:42:53]Write i2c OK [02:42:53]MH_I2C_Read... [02:42:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:42:53]Read from MH i2c: E2 [02:42:53]MH_I2C_Read... [02:42:53]Read from MH i2c: E2 17 00 [02:42:53]MH_I2C_Read... [02:42:53]Read from MH i2c: E2 17 00 25 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 06 [02:42:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [02:42:53]wFMCommunicate OK [02:42:53]requested_item fd.num is exist - process it [02:42:53]SAM_PROTO_GetFieldsCounters [02:42:53]wFMCommunicate request_size=4 [02:42:53]MH_SAM_APDU [02:42:53]CAPDU: 80 13 00 00 [02:42:53]Write to MH i2c: E2 08 00 26 14 80 13 00 00 00 00 00 00 B6 [02:42:53]Write i2c OK [02:42:53]MH_I2C_Read... [02:42:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:42:53]Read from MH i2c: E2 [02:42:53]MH_I2C_Read... [02:42:53]Read from MH i2c: E2 62 00 [02:42:53]MH_I2C_Read... [02:42:53]Read from MH i2c: E2 62 00 26 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 44 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [02:42:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 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 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:42:53]wFMCommunicate OK [02:42:53]SAM_PROTO_GetFieldsCounters done [02:42:53]requested_item shift.num is exist - process it [02:42:53]requested_item shift.opened is exist - process it [02:42:53]req_shift_opened [02:42:53]FM_GetShiftState [02:42:53]SAM_PROTO_GetShiftState [02:42:53]wFMCommunicate request_size=4 [02:42:53]MH_SAM_APDU [02:42:53]CAPDU: 80 13 01 00 [02:42:53]Write to MH i2c: E2 08 00 27 14 80 13 01 00 00 00 00 00 B8 [02:42:53]Write i2c OK [02:42:53]MH_I2C_Read... [02:42:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:42:53]Read from MH i2c: E2 [02:42:53]MH_I2C_Read... [02:42:53]Read from MH i2c: E2 0E 00 [02:42:53]MH_I2C_Read... [02:42:53]Read from MH i2c: E2 0E 00 27 14 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 0A [02:42:53]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [02:42:53]wFMCommunicate OK [02:42:53]SAM_PROTO_GetShiftState done [02:42:53]FM_GetShiftState done [02:42:53]req_shift_opened done [02:42:53]requested_item shift.open_date is exist - process it [02:42:53]req_shift_open_date [02:42:53]req_shift_open_date done [02:42:53]produce_requested_data done [02:42:53]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187204,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [02:42:53]process_action_free close_receipt [02:42:53]json_value_free [02:42:53]json_value_free done [02:42:53]process_json_proto returns [02:42:53]Send response to host [02:42:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187204,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [02:42:53]free response buf [02:42:53]execute_script done [02:42:53]execute_script returns [02:42:53]free content buf [02:42:53]Sock 9.Close socket [02:42:53]Sock 9.Thread stoped [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:42]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]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:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send [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:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]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:39]accept exits with 7 [03:19:39]New connection [03:19:39]New thread 3066654052 created [03:19:39]Thread 3066510692 joined [03:19:39]Waiting for new connection... [03:19:39] Sock 7.Parse request [03:19:39]Sock 7.Check first char [03:19:39]Sock 7.First char is OK [03:19:39]request: POST /json_proto HTTP/1.0 [03:19:39]Method: POST [03:19:39]URL: /json_proto [03:19:39]Method is POST - this is cgi request [03:19:39]url: /json_proto [03:19:39]query_string will be loaded in cgi processing [03:19:39]execute_cgi json_proto POST (null) [03:19:39]execute_cgi path=json_proto method=POST [03:19:39]POST find Content-Length [03:19:39]Host: 172.17.46.131:8080 [03:19:39]Content-Length: 797 [03:19:39]Content-Type: application/json [03:19:39] [03:19:39]POST finish read [03:19:39]Found Content-Length = 797 [03:19:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)412358", "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" : 5.510, "sum" : 400.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" : 400.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:19:39]execute_script... [03:19: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)412358", "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" : 5.510, "sum" : 400.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" : 400.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:19:39]POST & json_proto [03:19:39]process_json_proto [03:19:39]json parsed OK: [03:19:39]protocol is kg_v1.0 [03:19:39]action value=close_receipt [03:19:39]process_action close_receipt [03:19:39]cmd_close_receipt [03:19:39]MH_GetDate [03:19:39]Write to MH i2c: F0 00 00 28 14 2B [03:19:39]Write i2c OK [03:19:39]MH_I2C_Read... [03:19:39]Read from MH i2c: F0 [03:19:39]MH_I2C_Read... [03:19:39]Read from MH i2c: F0 09 00 [03:19:39]MH_I2C_Read... [03:19:39]Read from MH i2c: F0 09 00 28 14 00 4E 9F B6 67 7E 41 4F 65 B1 [03:19:39]GetLastDocTimeStamp 1740019371 [03:19:39]current date 1740021582 [03:19:39]FM_GetShiftState [03:19:39]SAM_PROTO_GetShiftState [03:19:39]wFMCommunicate request_size=4 [03:19:39]MH_SAM_APDU [03:19:39]CAPDU: 80 13 01 00 [03:19:39]Write to MH i2c: E2 08 00 29 14 80 13 01 00 00 00 00 00 BA [03:19:39]Write i2c OK [03:19:39]MH_I2C_Read... [03:19:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:19:39]Read from MH i2c: E2 [03:19:39]MH_I2C_Read... [03:19:39]Read from MH i2c: E2 0E 00 [03:19:39]MH_I2C_Read... [03:19:39]Read from MH i2c: E2 0E 00 29 14 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 0C [03:19:39]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [03:19:39]wFMCommunicate OK [03:19:39]SAM_PROTO_GetShiftState done [03:19:39]FM_GetShiftState done [03:19:39]opened in 1740011697 [03:19:39]opened+sec_in_day 1740098097 [03:19:39]quantity*price = 40002 [03:19:39]sum+1 = 40004 [03:19:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.03 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.03 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 6 20.02.2025 03:19 Смена: 648 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 187205 ФПД: 118202322401937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T031942&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187205&fm=118202322401937&tin=02508201610067®Number=0000000000091857&sum=40003 [03:19:40]StoreToDocumentArchive [03:19:40]shift 648 fd 187205 [03:19:40]save to /storage/0648/doc_00187205 [03:19:40]save last doc name /storage/0648/doc_00187205 to /storage/kkm_last_doc_name [03:19:40]save OK [03:19:40]Clear old archive folders... [03:19:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:19:40]tlvbuf is 01F429E0 [03:19:40]SAM_PROTO_ClearQueue [03:19:40]wFMCommunicate request_size=4 [03:19:40]MH_SAM_APDU [03:19:40]CAPDU: 80 09 00 00 [03:19:40]Write to MH i2c: E2 08 00 36 14 80 09 00 00 00 00 00 00 BC [03:19:40]Write i2c OK [03:19:40]MH_I2C_Read... [03:19:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:19:40]Read from MH i2c: E2 [03:19:40]MH_I2C_Read... [03:19:40]Read from MH i2c: E2 03 00 [03:19:40]MH_I2C_Read... [03:19:40]Read from MH i2c: E2 03 00 36 14 00 90 00 BE [03:19:40]RAPDU: 90 00 [03:19:40]wFMCommunicate OK [03:19:40]SAM_PROTO_ClearQueue done [03:19:40]KKMCreateOFDPacket [03:19:40]OFDProtocolAddRootSTLVToBuf [03:19:40]FM_MakeSignedData [03:19:40]FM_MakeSignedData [03:19:40]SAM_PROTO_SignData [03:19:40]wFMCommunicate request_size=4 [03:19:40]MH_SAM_APDU [03:19:40]CAPDU: 80 0D 01 02 [03:19:40]Write to MH i2c: E2 08 00 37 14 80 0D 01 02 00 00 00 00 C4 [03:19:40]Write i2c OK [03:19:40]MH_I2C_Read... [03:19:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:19:40]Read from MH i2c: E2 [03:19:40]MH_I2C_Read... [03:19:40]Read from MH i2c: E2 03 00 [03:19:40]MH_I2C_Read... [03:19:40]Read from MH i2c: E2 03 00 37 14 00 90 00 BF [03:19:40]RAPDU: 90 00 [03:19:40]wFMCommunicate OK [03:19:40]wFMCommunicate request_size=255 [03:19:40]MH_SAM_APDU [03:19: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 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 43 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 4E 9F B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 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 DB 02 00 35 04 06 00 6B 81 1F 70 [03:19:40]Write to MH i2c: E2 02 01 38 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 32 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 43 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 4E 9F B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 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 DB 02 00 35 04 06 00 6B 81 1F 70 00 00 15 [03:19:40]Write i2c OK [03:19:40]MH_I2C_Read... [03:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:19:41]Read from MH i2c: E2 [03:19:41]MH_I2C_Read... [03:19:41]Read from MH i2c: E2 03 00 [03:19:41]MH_I2C_Read... [03:19:41]Read from MH i2c: E2 03 00 38 14 00 90 00 C0 [03:19:41]RAPDU: 90 00 [03:19:41]wFMCommunicate OK [03:19:41]wFMCommunicate request_size=7 [03:19:41]MH_SAM_APDU [03:19:41]CAPDU: 80 0D 02 02 02 3A 91 [03:19:41]Write to MH i2c: E2 0A 00 39 14 80 0D 02 02 02 00 3A 91 00 00 96 [03:19:41]Write i2c OK [03:19:41]MH_I2C_Read... [03:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:19:41]Read from MH i2c: E2 [03:19:41]MH_I2C_Read... [03:19:41]Read from MH i2c: E2 03 00 [03:19:41]MH_I2C_Read... [03:19:41]Read from MH i2c: E2 03 00 39 14 00 90 00 C1 [03:19:41]RAPDU: 90 00 [03:19:41]wFMCommunicate OK [03:19:41]wFMCommunicate request_size=4 [03:19:41]MH_SAM_APDU [03:19:41]CAPDU: 80 0D 03 02 [03:19:41]Write to MH i2c: E2 08 00 3A 14 80 0D 03 02 00 00 00 00 C9 [03:19:41]Write i2c OK [03:19:41]MH_I2C_Read... [03:19:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:19:41]Read from MH i2c: E2 [03:19:41]MH_I2C_Read... [03:19:41]Read from MH i2c: E2 0B 00 [03:19:41]MH_I2C_Read... [03:19:41]Read from MH i2c: E2 0B 00 3A 14 00 2C 50 46 8A 99 3F AE C8 90 00 64 [03:19:41]RAPDU: 2C 50 46 8A 99 3F AE C8 90 00 [03:19:41]wFMCommunicate OK [03:19:41]SAM_PROTO_SignData done [03:19:41]FM_MakeSignedData done [03:19:41]CreateOFDProtocolMessage [03:19:41]wFMCommunicate request_size=4 [03:19:41]MH_SAM_APDU [03:19:41]CAPDU: 80 11 00 00 [03:19:41]Write to MH i2c: E2 08 00 3B 14 80 11 00 00 00 00 00 00 C9 [03:19:41]Write i2c OK [03:19:41]MH_I2C_Read... [03:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:19:41]Read from MH i2c: E2 [03:19:41]MH_I2C_Read... [03:19:41]Read from MH i2c: E2 17 00 [03:19:41]MH_I2C_Read... [03:19:41]Read from MH i2c: E2 17 00 3B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1C [03:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [03:19:41]wFMCommunicate OK [03:19:41]CreateOFDProtocolMessage done [03:19:41]OFDSenderStorePacket 187205 [03:19:41]StoreOFDPacket docnum=187205 [03:19: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 9F C1 04 01 B8 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 43 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 4E 9F B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 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 DB 02 00 35 04 06 00 6B 81 1F 70 3A 91 2C 50 46 8A 99 3F AE C8 [03:19:41]CheckFolder [03:19:41]dirname=/storage/ofd_packets [03:19:41]CheckFolder done [03:19:41]ProducePacketName [03:19:41]name=ofd_packets/00187205 [03:19:41]NVStorageSaveData ofd_packets/00187205 [03:19:41]File name is /storage/ofd_packets/00187205 [03:19:41]Write 298 bytes [03:19:41]NVStorageSaveData done [03:19:41]OFDSenderStorePacket done [03:19:41]KKMCreateOFDPacket done [03:19:41]NVStorageSaveData kkm_last_timestamp [03:19:41]File name is /storage/kkm_last_timestamp [03:19:41]Write 4 bytes [03:19:41]NVStorageSaveData done [03:19:41]ExternCall_PrintAddStr [03:19:41]wPrintStart [03:19:41]Write to MH i2c: 01 00 00 3C 14 50 [03:19:41]Write i2c OK [03:19:41]MH_I2C_Read... [03:19:41]Read from MH i2c: 01 [03:19:41]MH_I2C_Read... [03:19:41]Read from MH i2c: 01 07 00 [03:19:41]MH_I2C_Read... [03:19:41]Read from MH i2c: 01 07 00 3C 14 00 00 00 00 00 FF 0F 65 [03:19:41]RasterBufferAndPrint [03:19:41]line Счет N : (1)412358 [03:19:41]line ИНН: 02508201610067 [03:19:41]line Контрольно-Кассовый Чек [03:19:41]line ПРОДАЖА [03:19:41]line ТРК (МРК, ГНК) : 11 [03:19:41]line Товар: 2710194210 [03:19:41]line ДТ-К-2 [03:19:41]line 5.510 * 72.60 [03:19:41]line = 400.03 [03:19:41]line НДС 12% НСП 1% [03:19:41]line > о реализуемом товаре [03:19:41]line ИТОГО: 400.03 [03:19:41]line НСП 1% : 3.54 [03:19:41]line НДС 12% : 42.48 [03:19:41]line Наличными: 0.00 [03:19:41]line Безнал.: 400.03 [03:19:41]line Место: АЗС № 92 "Партнер Нефть" [03:19:41]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [03:19:41]line СНО: Общий режим [03:19:41]line Чек 6 20.02.2025 03:19 [03:19:41]line Смена: 648 ФФД: 1.0 [03:19:41]line ЗНМ: 0300000118 [03:19:41]line РНМ: 0000000000091857 [03:19:41]line Версия ККМ: 001 [03:19:41]line Платежная система: O! деньги [03:19:41]line ФМ: 0000000000871826 [03:19:41]line ФД: 187205 [03:19:41]line ФПД: 118202322401937 [03:19:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250220T031942&type=1&operation_type=1&fn_number=0000000000871826&fd_number=187205&fm=118202322401937&tin=02508201610067®Number=0000000000091857&sum=40003 [03:19:41]OFD Sender: Processing packet 187205 [packets to send 49, broken 48] [03:19:41]ProducePacketName [03:19:41]name=ofd_packets/00187205 [03:19:41]OFD Sender: To server: pG, [03:19:41]CommunicateWithHost lk.salyk.kg:30040 [03:19:41]ConnectInit lk.salyk.kg [03:19:41]written 0, free lines is 4095 [03:19:41]Connected sock=10 [03:19: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 9F C1 04 01 B8 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 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 43 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 4E 9F B6 67 0E 04 04 00 88 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 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 DB 02 00 35 04 06 00 6B 81 1F 70 3A 91 2C 50 46 8A 99 3F AE C8 [03:19: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 EC BE 47 00 63 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 45 DB 02 00 F4 03 04 00 A0 45 B6 67 B6 04 01 00 00 C6 D0 E5 16 8F 62 CB 46 [03:19:42]CommunicateWithHost err = 0 [03:19:42]CheckOFDResponse [03:19:42]1017 (14) - 77093643461234 [03:19:42]1041 (16) - 0000000000871826 [03:19:42]1040 (4) - 187205 [03:19:42]1012 (4) - 19.02.2025 20:57 [03:19:42]1206 (1) - 0 [03:19:42]OFD Sender: Remove packet 187205 [03:19:42]ProducePacketName [03:19:42]name=ofd_packets/00187205 [03:19:42]NVStorageDeleteData [03:19:42]Write to MH i2c: 01 00 00 66 14 7A [03:19:42]Write i2c OK [03:19:42]MH_I2C_Read... [03:19:42]Read from MH i2c: 01 [03:19:42]MH_I2C_Read... [03:19:42]Read from MH i2c: 01 07 00 [03:19:42]MH_I2C_Read... [03:19:42]Read from MH i2c: 01 07 00 66 14 00 00 00 00 00 FA 0C 87 [03:19:42]RasterBufferAndPrint [03:19:42]line [03:19:42]line [03:19:42]line [03:19:42]line [03:19:42]line [03:19:42]written 0, free lines is 3329 [03:19:42]MH_Cut [03:19:42]Write to MH i2c: D1 01 00 6D 14 01 53 [03:19:42]Write i2c OK [03:19:42]MH_I2C_Read... [03:19:42]Read from MH i2c: D1 [03:19:42]MH_I2C_Read... [03:19:42]Read from MH i2c: D1 01 00 [03:19:42]MH_I2C_Read... [03:19:42]Read from MH i2c: D1 01 00 6D 14 00 52 [03:19:42]Write to MH i2c: 01 00 00 6E 14 82 [03:19:42]Write i2c OK [03:19:42]MH_I2C_Read... [03:19:42]OFD Sender: No OFD packet to send [03:19:42]*** Cut start [03:19:42]*** Partial cut [03:19:42]*** CUTSNS_PIN = 1 [03:19:42]*** CUTSNS_PIN = 0 [03:19:43]*** Brake cut motor [03:19:43]Read from MH i2c: 01 [03:19:43]MH_I2C_Read... [03:19:43]*** Stop cut motor [03:19:43]*** Cut end [03:19:43]Read from MH i2c: 01 07 00 [03:19:43]MH_I2C_Read... [03:19:43]Read from MH i2c: 01 07 00 6E 14 00 00 00 00 00 FF 0F 97 [03:19:43]process_action close_receipt done [03:19:43]requested_data is exist [03:19:43]produce_requested_data [03:19:43]requested_item fm.sn is exist - process it [03:19:43]wFMCommunicate request_size=4 [03:19:43]MH_SAM_APDU [03:19:43]CAPDU: 80 11 00 00 [03:19:43]Write to MH i2c: E2 08 00 6F 14 80 11 00 00 00 00 00 00 FD [03:19:43]Write i2c OK [03:19:43]MH_I2C_Read... [03:19:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:19:43]Read from MH i2c: E2 [03:19:43]MH_I2C_Read... [03:19:43]Read from MH i2c: E2 17 00 [03:19:43]MH_I2C_Read... [03:19:43]Read from MH i2c: E2 17 00 6F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 50 [03:19:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [03:19:43]wFMCommunicate OK [03:19:43]requested_item fd.num is exist - process it [03:19:43]SAM_PROTO_GetFieldsCounters [03:19:43]wFMCommunicate request_size=4 [03:19:43]MH_SAM_APDU [03:19:43]CAPDU: 80 13 00 00 [03:19:43]Write to MH i2c: E2 08 00 70 14 80 13 00 00 00 00 00 00 00 [03:19:43]Write i2c OK [03:19:43]MH_I2C_Read... [03:19:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:19:43]Read from MH i2c: E2 [03:19:43]MH_I2C_Read... [03:19:43]Read from MH i2c: E2 62 00 [03:19:43]MH_I2C_Read... [03:19:43]Read from MH i2c: E2 62 00 70 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 45 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [03:19: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 45 DB 02 00 0E 04 04 00 88 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:19:43]wFMCommunicate OK [03:19:43]SAM_PROTO_GetFieldsCounters done [03:19:43]requested_item shift.num is exist - process it [03:19:43]requested_item shift.opened is exist - process it [03:19:43]req_shift_opened [03:19:43]FM_GetShiftState [03:19:43]SAM_PROTO_GetShiftState [03:19:43]wFMCommunicate request_size=4 [03:19:43]MH_SAM_APDU [03:19:43]CAPDU: 80 13 01 00 [03:19:43]Write to MH i2c: E2 08 00 71 14 80 13 01 00 00 00 00 00 02 [03:19:43]Write i2c OK [03:19:43]MH_I2C_Read... [03:19:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:19:43]Read from MH i2c: E2 [03:19:43]MH_I2C_Read... [03:19:43]Read from MH i2c: E2 0E 00 [03:19:43]MH_I2C_Read... [03:19:43]Read from MH i2c: E2 0E 00 71 14 00 09 00 01 B1 78 B6 67 00 00 00 00 90 00 54 [03:19:43]RAPDU: 09 00 01 B1 78 B6 67 00 00 00 00 90 00 [03:19:43]wFMCommunicate OK [03:19:43]SAM_PROTO_GetShiftState done [03:19:43]FM_GetShiftState done [03:19:43]req_shift_opened done [03:19:43]requested_item shift.open_date is exist - process it [03:19:43]req_shift_open_date [03:19:43]req_shift_open_date done [03:19:43]produce_requested_data done [03:19:43]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":187205,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697} [03:19:43]process_action_free close_receipt [03:19:43]json_value_free [03:19:43]json_value_free done [03:19:43]process_json_proto returns [03:19:43]Send response to host [03:19:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":187205,"shift.num":648,"shift.opened":1,"shift.open_date":1740011697}}} [03:19:43]free response buf [03:19:43]execute_script done [03:19:43]execute_script returns [03:19:43]free content buf [03:19:43]Sock 7.Close socket [03:19:43]Sock 7.Thread stoped [03:19:47]OFD Sender: No OFD packet to send [03:19:52]OFD Sender: No OFD packet to send [03:19:57]OFD Sender: No OFD packet to send [03:20:02]OFD Sender: No OFD packet to send [03:20:07]OFD Sender: No OFD packet to send [03:20:12]OFD Sender: No OFD packet to send [03:20:17]OFD Sender: No OFD packet to send [03:20:22]OFD Sender: No OFD packet to send [03:20:27]OFD Sender: No OFD packet to send [03:20:32]OFD Sender: No OFD packet to send [03:20:37]OFD Sender: No OFD packet to send [03:20:42]OFD Sender: No OFD packet to send [03:20:47]OFD Sender: No OFD packet to send [03:20:52]OFD Sender: No OFD packet to send [03:20:57]OFD Sender: No OFD packet to send [03:21:02]OFD Sender: No OFD packet to send [03:21:07]OFD Sender: No OFD packet to send [03:21:12]OFD Sender: No OFD packet to send [03:21:17]OFD Sender: No OFD packet to send [03:21:22]OFD Sender: No OFD packet to send [03:21:27]OFD Sender: No OFD packet to send [03:21:32]OFD Sender: No OFD packet to send [03:21:37]OFD Sender: No OFD packet to send [03:21:42]OFD Sender: No OFD packet to send [03:21:47]OFD Sender: No OFD packet to send [03:21:52]OFD Sender: No OFD packet to send [03:21:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]OFD Sender: No OFD packet to send [03:22:17]OFD Sender: No OFD packet to send [03:22:22]OFD Sender: No OFD packet to send [03:22:27]OFD Sender: No OFD packet to send [03:22:32]OFD Sender: No OFD packet to send